feat: add admin order tags and read state
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsIn, IsOptional, IsString } from "class-validator";
|
||||
import { IsArray, IsIn, IsOptional, IsString } from "class-validator";
|
||||
|
||||
export class UpdateBookingStatusDto {
|
||||
@IsIn(["received", "contacting", "confirmed", "completed", "cancelled"])
|
||||
@@ -8,3 +8,11 @@ export class UpdateBookingStatusDto {
|
||||
@IsString()
|
||||
adminNote?: string;
|
||||
}
|
||||
|
||||
export class CreateTagDto {
|
||||
@IsString() name!: string;
|
||||
}
|
||||
|
||||
export class UpdateBookingTagsDto {
|
||||
@IsArray() @IsString({ each: true }) tagIds!: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user