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; }