@ingestro/importer-react 4.2.4 → 4.3.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/index.d.ts CHANGED
@@ -247,9 +247,16 @@ export type IAddColumn = Omit<
247
247
  | 'allowCustomOptions'
248
248
  >;
249
249
 
250
+ export type IUpdateColumnChanges = Partial<Omit<IAddColumn, 'key'>>;
251
+
250
252
  export type ITdmModifier = {
251
- addColumn: (column: IAddColumn) => void;
253
+ addColumn: (column: IAddColumn, options?: { index?: number }) => void;
252
254
  removeColumn: (key: string) => void;
255
+ updateColumn: (
256
+ key: string,
257
+ changes: IUpdateColumnChanges,
258
+ options?: { index?: number }
259
+ ) => void;
253
260
  };
254
261
 
255
262
  export type IReviewEntriesUpdatedData = Record<
@@ -497,6 +504,27 @@ type IAdditionalInfo = {
497
504
  joinSheetsStep?: boolean;
498
505
  };
499
506
 
507
+ export type IApplyMappingMode = 'none' | 'gapFill' | 'always';
508
+
509
+ export type ISkipConfigurationHeader = {
510
+ enabled: boolean;
511
+ showInStepper?: boolean;
512
+ showInfoBox?: boolean;
513
+ };
514
+
515
+ export type ISkipConfigurationMapping = {
516
+ showInStepper?: boolean;
517
+ showInfoBox?: boolean;
518
+ automaticMapping?: boolean;
519
+ applyColumnMapping?: IApplyMappingMode;
520
+ applyOptionMapping?: IApplyMappingMode;
521
+ };
522
+
523
+ export type ISkipConfiguration = {
524
+ header?: ISkipConfigurationHeader;
525
+ mapping?: ISkipConfigurationMapping;
526
+ };
527
+
500
528
  export type SettingsAPI = {
501
529
  developerMode?: boolean;
502
530
  identifier: string;
@@ -509,6 +537,7 @@ export type SettingsAPI = {
509
537
  disableTemplates?: boolean;
510
538
  completeImportAction?: CompleteImportType;
511
539
  enableMassiveErrorAlert?: number;
540
+ /** @deprecated - this setting is deprecated. Use skipConfiguration.header.enabled instead. */
512
541
  automaticHeaderDetection?: boolean;
513
542
  i18nOverrides?: I18nOverrides;
514
543
  embedUploadArea?: boolean;
@@ -522,6 +551,7 @@ export type SettingsAPI = {
522
551
  /** @deprecated - this setting will be deprecated. Use allowCustomOptions from Target Data Model instead. */
523
552
  allowCustomOptions?: boolean;
524
553
  disableExcelTemplate?: boolean;
554
+ /** @deprecated - this setting is deprecated. Use skipConfiguration.mapping instead. */
525
555
  automaticMapping?: boolean;
526
556
  preloadData?: Values;
527
557
  /** @deprecated - this setting is deprecated. Use inputTypes instead. */
@@ -549,6 +579,7 @@ export type SettingsAPI = {
549
579
  transpose?: boolean;
550
580
  mergeHeaders?: boolean;
551
581
  metadataSelection?: boolean;
582
+ skipConfiguration?: SkipConfiguration;
552
583
  };
553
584
 
554
585
  export type FieldValue =
@@ -1157,6 +1188,7 @@ type ColumnMatchThemeAPI = {
1157
1188
  dialogCreateCustomOption?: DialogCreateCustomOption;
1158
1189
  columnPopover?: CSSInterpolation;
1159
1190
  additionalInfo?: IAdditionalInfoTheme;
1191
+ infoBox?: InfoBoxThemeAPI;
1160
1192
  };
1161
1193
 
1162
1194
  type FilterConditionDropdown = {
@@ -1554,6 +1586,15 @@ export type AppendColumnsDialogThemeAPI = JoinSheetCommonDialogThemeAPI & {
1554
1586
  appendColumn?: CSSInterpolation;
1555
1587
  };
1556
1588
 
1589
+ type InfoBoxThemeAPI = {
1590
+ root?: CSSInterpolation;
1591
+ wrapper?: CSSInterpolation;
1592
+ infoIcon?: CSSInterpolation;
1593
+ title?: CSSInterpolation;
1594
+ closeIcon?: CSSInterpolation;
1595
+ description?: CSSInterpolation;
1596
+ };
1597
+
1557
1598
  type JoinSheetThemeAPI = {
1558
1599
  root?: CSSInterpolation;
1559
1600
  pageHeader?: HeaderThemeAPI;
@@ -1585,6 +1626,7 @@ type JoinSheetThemeAPI = {
1585
1626
  sheetName?: CSSInterpolation;
1586
1627
  };
1587
1628
  additionalInfo?: IAdditionalInfoTheme;
1629
+ infoBox?: InfoBoxThemeAPI;
1588
1630
  };
1589
1631
 
1590
1632
  export type SheetPreviewTableThemeAPI = {