Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | import { ContentViewTypes } from "./match.types";
export type FilesFieldType = {
file: File;
id: string;
updatedAt: number;
fileName: string;
fileURL: string;
fileType: string;
tag?: string;
label?: string;
};
export enum MatchStatusEnum {
Confirmed_match = "confirmed_match",
Clear = "clear",
}
export type ReportFormFields = {
findings: string;
files: FilesFieldType[];
status: MatchStatusEnum;
matchResult: Record<string, any>;
};
export interface IComponentProps {
merchantID: number;
handleChangeView: (value: ContentViewTypes) => void;
}
export type UseSubmitMatchReportType = {
merchantID: number;
onSubmitSuccess: () => void;
};
export type MATCH_STATUS = "clear" | "confirmed_match";
export type MATCHFormFields = {
findings?: string;
status: MATCH_STATUS;
files?: ReportFile[];
};
export type MATCHDataType = {
merchantID: number;
data: MATCHFormFields;
};
export type ReportType = {
accID: number;
createdAt: number;
deletedAt: number | null;
findings: string;
ID: number;
statusName: MATCH_STATUS;
updatedAt: number | null;
files: any | null;
matchResult?: Record<string, any>;
// MTC002 read-back — the AI summary persisted for this MATCH (Story 1 / BE).
// Present once the backend surfaces it on the report read; undefined until then.
aiSummary?: string | null;
};
export type ReportFile = {
file: File;
id: string | number;
updatedAt: number;
fileName: string;
fileURL: string;
fileType: string;
};
|