TypeAlias.ImportMapper
type ImportMapper = {
application: string;
createdAt: string;
cronFrequency: string | null;
csvHasHeader: boolean | null;
id: string;
name: string;
rows: {
createdAt: string;
destination: string;
id: string;
position: number;
source: string;
type: "path" | "const" | "column";
updatedAt: string;
}[];
type: "url" | "file";
updatedAt: string;
url: string | null;
};
An import mapper: an ordered list of field mappings used to transform an imported JSON payload into a target model.