dromo-uploader-js 1.2.20 → 1.2.21

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.
@@ -62,6 +62,7 @@ export interface IDeveloperSettings {
62
62
  matchingStep?: {
63
63
  helpText?: string;
64
64
  headerRowOverride?: number | null;
65
+ fuzzyMatchHeaders?: boolean;
65
66
  };
66
67
  reviewStep?: {
67
68
  helpText?: string;
@@ -184,12 +185,19 @@ export interface IRowHookOutput {
184
185
  export interface IRowHookOutputInternal extends IRowHookOutput {
185
186
  index: number;
186
187
  }
188
+ export declare type IFieldMetadata = Record<string, {
189
+ fileHeader: string | null;
190
+ fileHeaderIndex: number | null;
191
+ isCustom: boolean;
192
+ }>;
187
193
  export interface IResultMetadata {
188
194
  id: string | null;
189
195
  filename: string | null;
190
196
  importIdentifier: string;
191
197
  user: IUser;
192
198
  rowsWithError: number[];
199
+ rawHeaders: string[] | null;
200
+ fields: IFieldMetadata;
193
201
  }
194
202
  export declare type TLocaleShorthand = "en" | "de";
195
203
  export declare enum EStepHook {
@@ -206,11 +214,13 @@ export interface IReviewStepData {
206
214
  headerMapping: {
207
215
  [header: string]: string | undefined;
208
216
  };
217
+ fields: IFieldMetadata;
209
218
  }
210
219
  export interface IReviewStepPostHooksData {
211
220
  headerMapping: {
212
221
  [header: string]: string | undefined;
213
222
  };
223
+ fields: IFieldMetadata;
214
224
  }
215
225
  export interface IStepHook {
216
226
  type: keyof typeof EStepHook;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dromo-uploader-js",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
4
4
  "description": "Easy to use data (CSV, TSV, Excel) importer",
5
5
  "author": "ankitgoyal100",
6
6
  "license": "MIT",