improve app registration and component service ports
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
+29
-1
@@ -1,4 +1,4 @@
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
import { IsEmail, IsIn, IsOptional, IsString, IsUUID, MinLength } from 'class-validator';
|
||||
|
||||
export class ListUserSessionsQuery {
|
||||
@IsOptional()
|
||||
@@ -9,3 +9,31 @@ export class ListUserSessionsQuery {
|
||||
@IsString()
|
||||
state?: string;
|
||||
}
|
||||
|
||||
export class CreateManagedUserDto {
|
||||
@IsEmail()
|
||||
email!: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(8)
|
||||
password!: string;
|
||||
|
||||
@IsString()
|
||||
name!: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
organizationId?: string | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
department?: string | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
position?: string | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsIn(['FREE', 'EDU', 'PRO'])
|
||||
licenseCode?: 'FREE' | 'EDU' | 'PRO';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user