feat: wip import resource

This commit is contained in:
Ahmed Bouhuolia
2024-03-13 02:14:25 +02:00
parent 4270d66928
commit daa1e3a6bd
13 changed files with 411 additions and 52 deletions

View File

@@ -1,3 +1,5 @@
import { IModelMetaField } from '@/interfaces';
export interface ImportMappingAttr {
from: string;
to: string;
@@ -8,3 +10,11 @@ export interface ImportValidationError {
property: string;
constraints: Record<string, string>;
}
export type ResourceMetaFieldsMap = { [key: string]: IModelMetaField };
export interface ImportInsertError {
rowNumber: number;
errorCode: string;
errorMessage: string;
}