forked from Yara724/api
Fix v3 mirror flow
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
MaxLength,
|
||||
Min,
|
||||
} from "class-validator";
|
||||
import { UNIFIED_FILE_STATUS_KEYS } from "src/helpers/unified-file-status";
|
||||
|
||||
/** Allowed sort keys for V2 list endpoints (claims / blame). */
|
||||
export const LIST_SORT_BY_V2 = [
|
||||
@@ -75,4 +76,13 @@ export class ListQueryV2Dto {
|
||||
@IsString()
|
||||
@MaxLength(64)
|
||||
search?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
enum: UNIFIED_FILE_STATUS_KEYS,
|
||||
description:
|
||||
"Filter by calculated unified file status (blame + claim combined).",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsIn([...UNIFIED_FILE_STATUS_KEYS])
|
||||
unifiedStatus?: (typeof UNIFIED_FILE_STATUS_KEYS)[number];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user