This commit is contained in:
SepehrYahyaee
2026-05-24 13:34:43 +03:30
parent 866696094f
commit 2bdd0d507e
9 changed files with 566 additions and 234 deletions

View File

@@ -0,0 +1,38 @@
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
export type ExpertFileAssignStatus =
| "assigned"
| "already_assigned_to_you"
| "locked"
| "unavailable";
export class ExpertFileAssignResultDto {
@ApiProperty({ example: true })
success: boolean;
@ApiProperty({
enum: ["assigned", "already_assigned_to_you", "locked", "unavailable"],
example: "assigned",
})
status: ExpertFileAssignStatus;
@ApiPropertyOptional({
example: "You already started processing this request",
})
message?: string;
@ApiPropertyOptional({
description: "When the expert was assigned (ISO 8601).",
example: "2026-05-24T12:00:00.000Z",
})
assignedAt?: string;
@ApiPropertyOptional({
description: "Present when status is locked (another expert).",
})
lockedBy?: {
actorId: string;
actorName?: string;
lockedAt?: string;
};
}