flatfile-csv-importer
Version:
A simple adapter for elegantly importing CSV files via flatfile.io (Typescript, ES6, Browser)
26 lines (25 loc) • 606 B
TypeScript
export default interface IValidationResponse {
/**
* A string referencing the key affected by the problem
*/
key: string;
/**
* The validation error message
*/
message: string;
/**
* The type of validation response - currently only 'error' is supported
*/
level?: 'error';
}
export interface IDataHookResponse {
[key: string]: IDataHookRecord;
}
export interface IDataHookRecord {
value?: string | boolean | number;
info?: IDataHookInfo[];
}
export interface IDataHookInfo {
message: string;
level?: 'error' | 'warning' | 'info';
}