dromo-uploader-js 2.3.0 → 2.5.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.
@@ -369,7 +369,26 @@ export type IUUIDField = {
369
369
  }
370
370
  ];
371
371
  };
372
- export type IDeveloperField = IStringField | ICheckboxField | IEmailField | ISelectField | INumberField | IDateTimeField | IDomainField | IPhoneNumberField | IUrlField | ISSNField | IUUIDField | IUSZipCodeField | {
372
+ export type IDeveloperField = IStringField | ICheckboxField | IEmailField | ISelectField | {
373
+ label: string;
374
+ key: string;
375
+ description?: string | undefined;
376
+ alternateMatches?: string[] | undefined;
377
+ validators?: IValidatorField[];
378
+ invalidValueMessage?: string | undefined;
379
+ readOnly?: boolean;
380
+ hidden?: boolean;
381
+ requireMapping?: boolean | undefined;
382
+ manyToOne?: boolean;
383
+ type: "multi-select" | [
384
+ "multi-select",
385
+ {
386
+ delimiter?: string | undefined;
387
+ trimValues?: boolean | undefined;
388
+ }
389
+ ];
390
+ selectOptions: IDeveloperSelectOption[];
391
+ } | INumberField | IDateTimeField | IDomainField | IPhoneNumberField | IUrlField | ISSNField | IUUIDField | IUSZipCodeField | {
373
392
  label: string;
374
393
  key: string;
375
394
  description?: string | undefined;
@@ -579,6 +598,8 @@ export type IDeveloperSettings = {
579
598
  browserExcelParsing?: boolean;
580
599
  version?: string;
581
600
  alternateDomain?: string | null;
601
+ savePartialSession?: boolean;
602
+ sessionId?: string | null;
582
603
  };
583
604
  export type IUser = {
584
605
  id: string;
@@ -625,7 +646,7 @@ export type WrapAsync<T> = {
625
646
  [P in keyof T]: T[P] extends (...args: infer Args) => infer Return ? (...args: Args) => Promise<Return> : T[P];
626
647
  };
627
648
  export type IPublicConnectionMethods = WrapAsync<Pick<IConnectionMethods, "addField" | "updateInfoMessages" | "setHeaderRowOverride" | "setUser" | "removeField" | "setDevelopmentMode" | "addRows" | "removeRows" | "setConfirmationMessage">>;
628
- export type IDeveloperFieldType = "string" | "checkbox" | "select" | "number" | "domain" | "date" | "ssn" | "datetime" | "phone-number" | "time" | "url" | "us-zip-code" | "country" | "uuid" | "us-state-territory" | "email";
649
+ export type IDeveloperFieldType = "string" | "checkbox" | "select" | "multi-select" | "number" | "domain" | "date" | "ssn" | "datetime" | "phone-number" | "time" | "url" | "us-zip-code" | "country" | "uuid" | "us-state-territory" | "email";
629
650
  export interface ICellRef {
630
651
  rowIndex: number;
631
652
  fieldKey: string;
@@ -750,6 +771,7 @@ export declare enum EStepHook {
750
771
  export interface IUploadStepData {
751
772
  filename: string | null;
752
773
  dataPreview: any[][];
774
+ sessionId: string | null;
753
775
  }
754
776
  export interface IReviewStepData {
755
777
  rawHeaders: string[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dromo-uploader-js",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "Easy to use data (CSV, TSV, Excel) importer",
5
5
  "author": "ankitgoyal100",
6
6
  "license": "MIT",