@regulaforensics/idv-capture-web 0.1.82-nightly → 0.1.83-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
@@ -27,13 +27,15 @@ export declare enum IdvEventTargets {
27
27
  }
28
28
 
29
29
  export declare class IdvIntegrationService {
30
- constructor(options: IIdvOptions);
31
30
  getWorkFlows(params?: GetWorkFlowsRequest): Promise<GetWorkFlowsResult>;
31
+ initialize(config: IIdvConfig): void;
32
32
  setNonce(id: string): void;
33
- prepareWorkflow(id: string): void;
34
- playWorkflow(): void;
33
+ prepareWorkflow({ workfowId }: {
34
+ workfowId: string;
35
+ }): Promise<void>;
36
+ startWorkflow(): Promise<void>;
35
37
  isIdvServiceRunning(): boolean | undefined;
36
- shutdownService(): void;
38
+ deinitialize(): void;
37
39
  }
38
40
 
39
41
  export declare type IdvMessageEvent = {
@@ -45,6 +47,7 @@ export declare type IdvMessageEvent = {
45
47
  };
46
48
 
47
49
  export declare enum IdvServiceMessages {
50
+ INITIALIZED = "INITIALIZED",
48
51
  READY_TO_PLAY = "READY_TO_PLAY",
49
52
  CONNECT_TO_IDV = "CONNECT_TO_IDV",
50
53
  START_SESSION = "START_SESSION",
@@ -80,8 +83,14 @@ export declare enum IdvWebComponentMessages {
80
83
  CLOSE_BUTTON_CLICKED = "CLOSE_BUTTON_WAS_CLICKED"
81
84
  }
82
85
 
86
+ declare type IIdvConfig = {
87
+ connectionConfig: IIdvOptions;
88
+ modulesConfig: Record<string, any>;
89
+ includedModules: string[];
90
+ listener: (message: IdvMessageEvent) => void;
91
+ };
92
+
83
93
  declare type IIdvOptions = {
84
- workflowId?: string;
85
94
  host: string;
86
95
  httpRetryCount?: number;
87
96
  httpTimeoutMs?: number;
@@ -90,7 +99,6 @@ declare type IIdvOptions = {
90
99
  port?: number;
91
100
  schema?: string;
92
101
  userName: string;
93
- listener: (message: IdvMessageEvent) => void;
94
102
  };
95
103
 
96
104
  export { }