@ingestro/importer-react 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-OPYMH566.js → chunk-523BT7JN.js} +1 -1
- package/{chunk-CQHSLEFA.js → chunk-F7ASAXPY.js} +1 -1
- package/{chunk-MJ4XZSRH.js → chunk-TXUOXDJO.js} +1 -1
- package/chunk-VJNSVCH6.js +1 -0
- package/index.d.ts +49 -5
- package/index.js +409 -345
- package/package.json +1 -1
- package/workers/hooks/index.js +1 -1
- package/workers/matchValues/index.js +1 -1
- package/workers/searchAndReplace/index.js +1 -1
- package/chunk-AINUNGZU.js +0 -1
package/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ type SpreadSheetType =
|
|
|
60
60
|
| 'tsv'
|
|
61
61
|
| 'psv'
|
|
62
62
|
| 'xlsx'
|
|
63
|
+
| 'ods'
|
|
63
64
|
| 'json'
|
|
64
65
|
| 'xml'
|
|
65
66
|
| 'dynamic-import';
|
|
@@ -309,6 +310,27 @@ export type IStepHandler = {
|
|
|
309
310
|
reviewStep?: IReviewStepHandler;
|
|
310
311
|
};
|
|
311
312
|
|
|
313
|
+
export type StepIdentifier =
|
|
314
|
+
| 'upload'
|
|
315
|
+
| 'sheet-selection'
|
|
316
|
+
| 'header-selection'
|
|
317
|
+
| 'join-sheets'
|
|
318
|
+
| 'match-columns'
|
|
319
|
+
| 'review-entries'
|
|
320
|
+
| 'complete';
|
|
321
|
+
|
|
322
|
+
export declare const STEP_IDENTIFIERS: {
|
|
323
|
+
readonly UPLOAD: 'upload';
|
|
324
|
+
readonly SHEET_SELECTION: 'sheet-selection';
|
|
325
|
+
readonly HEADER_SELECTION: 'header-selection';
|
|
326
|
+
readonly JOIN_SHEETS: 'join-sheets';
|
|
327
|
+
readonly MATCH_COLUMNS: 'match-columns';
|
|
328
|
+
readonly REVIEW_ENTRIES: 'review-entries';
|
|
329
|
+
readonly COMPLETE: 'complete';
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export type OnStepChange = (step: StepIdentifier) => void;
|
|
333
|
+
|
|
312
334
|
export type ConfigureAPI = {
|
|
313
335
|
licenseKey: string;
|
|
314
336
|
settings: SettingsAPI;
|
|
@@ -317,6 +339,7 @@ export type ConfigureAPI = {
|
|
|
317
339
|
onCancel?: OnCancel;
|
|
318
340
|
onEntryChange?: OnEntryChange;
|
|
319
341
|
onEntryInit?: OnEntryInit;
|
|
342
|
+
onStepChange?: OnStepChange;
|
|
320
343
|
/** @deprecated - this setting is deprecated. */
|
|
321
344
|
dataHandler?: DataHandler;
|
|
322
345
|
stepHandler?: IStepHandler;
|
|
@@ -354,6 +377,22 @@ export type ColumnType =
|
|
|
354
377
|
| 'gtin'
|
|
355
378
|
| 'iban';
|
|
356
379
|
|
|
380
|
+
export type ActiveColumnType = Exclude<
|
|
381
|
+
ColumnType,
|
|
382
|
+
| 'category'
|
|
383
|
+
| 'date_dmy'
|
|
384
|
+
| 'date_mdy'
|
|
385
|
+
| 'date_iso'
|
|
386
|
+
| 'datetime'
|
|
387
|
+
| 'time_hms'
|
|
388
|
+
| 'time_hms_24'
|
|
389
|
+
| 'time_hm'
|
|
390
|
+
| 'time_hm_24'
|
|
391
|
+
| 'country_code_alpha_2'
|
|
392
|
+
| 'country_code_alpha_3'
|
|
393
|
+
| 'currency_code'
|
|
394
|
+
>;
|
|
395
|
+
|
|
357
396
|
export type ValidationTypeAPI =
|
|
358
397
|
| 'required'
|
|
359
398
|
| 'unique'
|
|
@@ -381,6 +420,12 @@ export type ValidatorAPI = {
|
|
|
381
420
|
|
|
382
421
|
export type DropdownOptionType = 'string' | 'float' | 'int';
|
|
383
422
|
|
|
423
|
+
export type PreserveUnmappedOptions =
|
|
424
|
+
| 'none'
|
|
425
|
+
| 'optional-off'
|
|
426
|
+
| 'optional-on'
|
|
427
|
+
| 'always';
|
|
428
|
+
|
|
384
429
|
export type ButtonModeType = 'import' | 'edit' | 'both';
|
|
385
430
|
|
|
386
431
|
export type ProcessorType = 'default' | 'node';
|
|
@@ -393,7 +438,8 @@ export type InputType =
|
|
|
393
438
|
| 'tsv'
|
|
394
439
|
| 'xlsx'
|
|
395
440
|
| 'xls'
|
|
396
|
-
| 'psv'
|
|
441
|
+
| 'psv'
|
|
442
|
+
| 'ods';
|
|
397
443
|
|
|
398
444
|
export type DropdownOptionAPI = DropdownOptionAPIBase &
|
|
399
445
|
(DropdownOptionAPIString | DropdownOptionAPINumber);
|
|
@@ -472,6 +518,7 @@ export type ColumnAPI = {
|
|
|
472
518
|
outputFormat?: string | null;
|
|
473
519
|
allowCustomOptions?: boolean;
|
|
474
520
|
allowedCustomOptionTypes?: DropdownOptionType[];
|
|
521
|
+
preserveUnmappedOptions?: PreserveUnmappedOptions;
|
|
475
522
|
numberFormat?: 'eu' | 'us';
|
|
476
523
|
/**
|
|
477
524
|
* @deprecated This property should not be used
|
|
@@ -548,6 +595,7 @@ export type SettingsAPI = {
|
|
|
548
595
|
allowManualInput?: boolean;
|
|
549
596
|
onlyMappedColumns?: boolean;
|
|
550
597
|
allowCustomColumns?: boolean;
|
|
598
|
+
allowedCustomColumnTypes?: ActiveColumnType[];
|
|
551
599
|
columnResize?: boolean;
|
|
552
600
|
/** @deprecated - this setting will be deprecated. Use allowCustomOptions from Target Data Model instead. */
|
|
553
601
|
allowCustomOptions?: boolean;
|
|
@@ -1179,10 +1227,6 @@ type ColumnMatchThemeAPI = {
|
|
|
1179
1227
|
};
|
|
1180
1228
|
errorPopover?: CSSInterpolation;
|
|
1181
1229
|
};
|
|
1182
|
-
notMatchingValue?: {
|
|
1183
|
-
root?: CSSInterpolation;
|
|
1184
|
-
icon?: CSSInterpolation;
|
|
1185
|
-
};
|
|
1186
1230
|
joinBadge?: CSSInterpolation;
|
|
1187
1231
|
sheetInfo?: CSSInterpolation;
|
|
1188
1232
|
dialogCreateCustomColumn?: DialogCreateCustomColumn;
|