1
0
forked from Yara724/api

Fix v3 mirror flow

This commit is contained in:
SepehrYahyaee
2026-06-22 17:30:58 +03:30
parent 83e82ea68e
commit db569db9d1
15 changed files with 1004 additions and 248 deletions

View File

@@ -0,0 +1,36 @@
import { ApiProperty } from "@nestjs/swagger";
import {
UNIFIED_FILE_STATUS_KEYS,
UnifiedFileStatusDefinition,
UnifiedFileStatusKey,
} from "src/helpers/unified-file-status";
export class UnifiedFileStatusDefinitionDto implements UnifiedFileStatusDefinition {
@ApiProperty({ enum: UNIFIED_FILE_STATUS_KEYS })
key: UnifiedFileStatusKey;
@ApiProperty()
labelEn: string;
@ApiProperty()
labelFa: string;
@ApiProperty()
description: string;
}
export class UnifiedFileStatusReportDto {
@ApiProperty({ type: [UnifiedFileStatusDefinitionDto] })
statuses: UnifiedFileStatusDefinitionDto[];
@ApiProperty({
description: "Counts per unified status key plus `all`",
example: {
all: 42,
IN_PROGRESS: 10,
WAITING_FOR_DAMAGE_EXPERT: 5,
COMPLETED: 12,
},
})
counts: Record<string, number>;
}