init studio admin backend
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { IsEnum, IsISO8601, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
import { LicenseCode } from './license-enums';
|
||||
|
||||
export class ListUserLicensesQuery {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keyword?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsEnum(LicenseCode)
|
||||
licenseCode?: LicenseCode;
|
||||
}
|
||||
|
||||
export class AssignLicenseDto {
|
||||
@IsEnum(LicenseCode)
|
||||
licenseCode!: LicenseCode;
|
||||
|
||||
@IsOptional()
|
||||
@IsISO8601()
|
||||
startsAt?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsISO8601()
|
||||
expiresAt?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
assignedById?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user