Creating import&export excel
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user