@regulaforensics/idv-capture-web 3.1.232-nightly → 3.1.238-rc

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
@@ -28,7 +28,7 @@ declare class BaseDeinitializationError extends BaseError {
28
28
  });
29
29
  }
30
30
 
31
- export declare class BaseError {
31
+ declare class BaseError {
32
32
  errorCode: number | string;
33
33
  errorCodeKey: string;
34
34
  message?: string;
@@ -68,11 +68,6 @@ declare class BaseInitializationError extends BaseError {
68
68
  });
69
69
  }
70
70
 
71
- export declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
72
- abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
73
- abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
74
- }
75
-
76
71
  declare class BasePrepareWorkflowError extends BaseError {
77
72
  private static readonly MODULE;
78
73
  private static readonly ERROR_ENUM_NAME;
@@ -172,23 +167,6 @@ export declare type IdvMessageEvent = {
172
167
  message?: IdvServiceMessages;
173
168
  };
174
169
 
175
- export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
176
- isProcessing?: (isProcessing: boolean) => void;
177
- moduleProps: TModuleProps;
178
- modulesConfig?: TModulesConfig;
179
- perform: (data: any) => void;
180
- idvEventListener: (module: string, data: any) => void;
181
- };
182
-
183
- export declare interface IdvModuleStaticMethods {
184
- displayName: string;
185
- isReady(): boolean;
186
- getSupportedTemplates(): string[];
187
- initialize(modulesConfig: Record<string, unknown>): void;
188
- deinitialize(): void;
189
- getIdentifier(): string;
190
- }
191
-
192
170
  export declare enum IdvServiceMessages {
193
171
  DID_START_SESSION = "DID_START_SESSION",
194
172
  DID_END_SESSION = "DID_END_SESSION",
@@ -227,8 +205,6 @@ export declare enum InitializeError {
227
205
  INITIALIZATION_IN_PROGRESS = 2
228
206
  }
229
207
 
230
- export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
231
-
232
208
  export declare type PrepareWorkflowCompletion = {
233
209
  workflow?: Workflow;
234
210
  error?: BasePrepareWorkflowError;
@@ -242,8 +218,6 @@ export declare enum PrepareWorkflowError {
242
218
  SCENARIO_IN_PROGRESS = 4
243
219
  }
244
220
 
245
- export declare function registerModule<TModuleProps = unknown, TModulesConfig = unknown>(name: string, ModuleClass: ModuleClass<TModuleProps, TModulesConfig>): void;
246
-
247
221
  export declare enum SessionError {
248
222
  HTTP_ISSUE = 0,
249
223
  PROVIDER_ERROR = 1,