@regulaforensics/idv-interfaces 3.2.253-nightly → 3.2.254-nightly

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/dist/index.d.ts CHANGED
@@ -37,7 +37,7 @@ export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
37
37
  isProcessing?: (isProcessing: boolean) => void;
38
38
  moduleProps: TModuleProps;
39
39
  modulesConfig?: TModulesConfig;
40
- perform: (data: any) => void;
40
+ perform: (data: any, type?: PerformType) => void;
41
41
  idvEventListener: (module: string, data: any) => void;
42
42
  };
43
43
 
@@ -54,6 +54,13 @@ export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown
54
54
 
55
55
  export declare function parseClientJSON<T>(json: T): T;
56
56
 
57
+ export declare type PerformType = (typeof performType)[keyof typeof performType] | undefined;
58
+
59
+ export declare const performType: {
60
+ readonly FORM: "form";
61
+ readonly DATA: "data";
62
+ };
63
+
57
64
  export declare function registerModule<TModuleProps = unknown, TModulesConfig = unknown>(name: string, ModuleClass: ModuleClass<TModuleProps, TModulesConfig>): void;
58
65
 
59
66
  export { }
package/dist/main.js CHANGED
@@ -15,13 +15,13 @@ class o {
15
15
  errorCodeKey: i,
16
16
  message: t,
17
17
  underlyingError: n,
18
- underlyingBaseError: g,
19
- domain: f,
20
- module: c,
21
- errorEnumName: a,
18
+ underlyingBaseError: f,
19
+ domain: g,
20
+ module: a,
21
+ errorEnumName: c,
22
22
  shortDomainCode: p
23
23
  }) {
24
- this.errorCode = e, this.errorCodeKey = i, this.message = t, this.underlyingError = n, this.underlyingBaseError = g, this.module = c, this.domain = f, this.errorEnumName = a, this.shortDomainCode = p;
24
+ this.errorCode = e, this.errorCodeKey = i, this.message = t, this.underlyingError = n, this.underlyingBaseError = f, this.module = a, this.domain = g, this.errorEnumName = c, this.shortDomainCode = p;
25
25
  }
26
26
  static getErrorKey(e, i) {
27
27
  const t = Object.keys(i).find((n) => i[n] === e);
@@ -93,10 +93,15 @@ function d(r) {
93
93
  function N(r) {
94
94
  return Object.fromEntries(Object.entries(r).filter(([, e]) => e !== void 0));
95
95
  }
96
+ const B = {
97
+ FORM: "form",
98
+ DATA: "data"
99
+ };
96
100
  export {
97
101
  o as BaseError,
98
102
  b as BaseModule,
99
103
  N as cleanObjectFromUndefined,
100
104
  d as parseClientJSON,
105
+ B as performType,
101
106
  w as registerModule
102
107
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-interfaces",
3
- "version": "3.2.253-nightly",
3
+ "version": "3.2.254-nightly",
4
4
  "description": "Regula framework agnostic web components to work with document idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",