mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 07:10:57 +00:00
37 lines
702 B
TypeScript
37 lines
702 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsString, MinLength } from 'class-validator';
|
|
|
|
export class RequestChangesDto {
|
|
@ApiProperty({ description: 'Staff note explaining what the customer must fix' })
|
|
@IsString()
|
|
@MinLength(1)
|
|
note!: string;
|
|
}
|
|
|
|
export class StaffRejectDto {
|
|
@ApiProperty()
|
|
@IsString()
|
|
@MinLength(1)
|
|
reason!: string;
|
|
}
|
|
|
|
export class ApproveStepDto {
|
|
@ApiProperty({ description: 'LINE_STAFF | DIRECTOR | CEO' })
|
|
@IsString()
|
|
requiredRole!: string;
|
|
}
|
|
|
|
export class RejectStepDto {
|
|
@ApiProperty()
|
|
@IsString()
|
|
@MinLength(1)
|
|
reason!: string;
|
|
}
|
|
|
|
export class CancelBookingDto {
|
|
@ApiProperty()
|
|
@IsString()
|
|
@MinLength(1)
|
|
reason!: string;
|
|
}
|