feat: add admin tests read and update endpoints

This commit is contained in:
2026-06-06 13:33:56 +03:30
parent 39e6c96113
commit 28c1a4831e
31 changed files with 330 additions and 101 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export class PhoneDTO {
}),
})
@Transform(({ value }) => Utils.StringUtils.normalizePhone(value as string))
phone: string;
phone!: string;
}
export class LoginDTO extends PhoneDTO {
+1 -1
View File
@@ -3,5 +3,5 @@ import { IsNotEmpty, IsString } from 'class-validator';
export class RefreshTokenDTO {
@IsNotEmpty()
@IsString()
refreshToken: string;
refreshToken!: string;
}
+1 -1
View File
@@ -9,5 +9,5 @@ export class VerifyOtpDTO extends PhoneDTO {
field: '$t(auth.fields.otp)',
}),
})
otp: string;
otp!: string;
}