Creating import&export excel

This commit is contained in:
2026-09-15 17:33:05 +03:30
parent 9ae176bec0
commit 44f9849d0e
26 changed files with 3682 additions and 474 deletions
+20 -2
View File
@@ -1,7 +1,9 @@
import { Type } from 'class-transformer';
import {
IsBoolean,
IsIn,
IsNumber,
IsOptional,
IsString,
Matches,
Max,
@@ -30,13 +32,29 @@ export class InviteUserDto {
@MaxLength(72)
password!: string;
@IsOptional()
@IsIn(INVITE_ROLES)
role!: (typeof INVITE_ROLES)[number];
role?: (typeof INVITE_ROLES)[number];
@IsOptional()
@IsString()
orgRoleId?: string;
}
export class UpdateUserRoleDto {
@IsOptional()
@IsIn(ALL_ROLES)
role!: (typeof ALL_ROLES)[number];
role?: (typeof ALL_ROLES)[number];
@IsOptional()
@IsString()
orgRoleId?: string;
}
export class UpdateUserStatusDto {
@Type(() => Boolean)
@IsBoolean()
isActive!: boolean;
}
export class UpdateUserCommissionDto {