Allow editing org team member name, mobile, and password from settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -44,6 +44,26 @@ export class InviteUserDto {
|
||||
orgRoleId?: string;
|
||||
}
|
||||
|
||||
export class UpdateOrgUserDto {
|
||||
@IsString()
|
||||
@MinLength(2)
|
||||
@MaxLength(120)
|
||||
fullName!: string;
|
||||
|
||||
@IsString()
|
||||
@Matches(/^09\d{9}$|^\+98\d{10}$|^98\d{10}$|^9\d{9}$/, {
|
||||
message: 'شماره موبایل معتبر نیست',
|
||||
})
|
||||
mobile!: string;
|
||||
|
||||
@IsOptional()
|
||||
@ValidateIf((_, value) => typeof value === 'string' && value.length > 0)
|
||||
@IsString()
|
||||
@MinLength(8)
|
||||
@MaxLength(72)
|
||||
password?: string;
|
||||
}
|
||||
|
||||
export class UpdateUserRoleDto {
|
||||
@IsOptional()
|
||||
@IsIn(ALL_ROLES)
|
||||
|
||||
Reference in New Issue
Block a user