Allow editing org team member name, mobile, and password from settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-04 12:31:07 +03:30
co-authored by Cursor
parent 39e2eb24a6
commit 75ff2c36c4
5 changed files with 219 additions and 1 deletions
+20
View File
@@ -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)