TypeAlias.CreateImportMapper
type CreateImportMapper = {
application: string;
cronFrequency?: string | null;
csvHasHeader?: boolean | null;
name: string;
rows: {
destination: string;
source: string;
type: "path" | "const" | "column";
}[];
sourceStructure?: | {
columns: string[];
format: "csv";
}
| {
format: "json";
paths: string[];
}
| null;
type: "url" | "file";
url?: string | null;
};
Body shape for creating an import mapper.
Type Declaration
| Name | Type |
|---|---|
application | string |
cronFrequency? | string |
csvHasHeader? | boolean |
name | string |
rows | { destination: string; source: string; type: "path" |
sourceStructure? | |
type | "url" |
url? | string |