feat: ui for new importer

This commit is contained in:
liyasthomas
2022-01-14 20:40:54 +05:30
parent 67934fd19a
commit e323b4355e
12 changed files with 116 additions and 50 deletions

View File

@@ -6,21 +6,27 @@ export type StepDefinition = {
FILE_IMPORT: {
returnType: string
metadata: {
caption: string
acceptedFileTypes: string
}
} // String content of the file
TARGET_MY_COLLECTION: {
returnType: number
metadata: never
metadata: {
caption: string
}
} // folderPath
URL_IMPORT: {
returnType: string
metadata: {
caption: string
placeholder: string
}
} // String content of the url
}
export type StepReturnValue = StepDefinition[keyof StepDefinition]["returnType"]
/**
* Defines what the data structure of a step
*/