@regulaforensics/idv-capture-web 0.1.114-nightly → 0.1.116-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/README.md +174 -2
- package/dist/{index-BbNKUhQM.js → index-7D6yWl-J.js} +35 -31
- package/dist/{index-B6hxrk0b.js → index-B1U7Xfsi.js} +913 -910
- package/dist/{index-Dwq1rPYR.js → index-q2zL8shY.js} +7790 -7684
- package/dist/index.d.ts +22 -38
- package/dist/main.iife.js +69 -69
- package/dist/main.js +9 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IdvMessageEvent as IdvMessageEvent_2 } from '../../dist';
|
|
2
|
-
|
|
3
1
|
declare class BaseDeinitializationError extends BaseError {
|
|
4
2
|
private static readonly MODULE;
|
|
5
3
|
private static readonly ERROR_ENUM_NAME;
|
|
@@ -108,6 +106,12 @@ export declare enum ConnectionError {
|
|
|
108
106
|
PROVIDER_ERROR = 1
|
|
109
107
|
}
|
|
110
108
|
|
|
109
|
+
declare type CurrentScreenConfig = {
|
|
110
|
+
templateId: string;
|
|
111
|
+
sessionId?: string;
|
|
112
|
+
serviceToken?: string;
|
|
113
|
+
} & Record<string, any>;
|
|
114
|
+
|
|
111
115
|
export declare enum DeinitializationError {
|
|
112
116
|
INITIALIZATION_REQUIRED = 0,
|
|
113
117
|
SCENARIO_IN_PROGRESS = 3
|
|
@@ -117,15 +121,12 @@ export declare type DeinitializeCompletion = {
|
|
|
117
121
|
error?: BaseDeinitializationError;
|
|
118
122
|
};
|
|
119
123
|
|
|
120
|
-
export declare
|
|
121
|
-
WEB_COMPONENT = "WEB_COMPONENT",
|
|
122
|
-
SERVICE = "SERVICE"
|
|
123
|
-
}
|
|
124
|
+
export declare type IdvEventTypes = (typeof IdvEventTypesEnum)[keyof typeof IdvEventTypesEnum];
|
|
124
125
|
|
|
125
|
-
declare
|
|
126
|
-
MESSAGE
|
|
127
|
-
ERROR
|
|
128
|
-
}
|
|
126
|
+
export declare const IdvEventTypesEnum: {
|
|
127
|
+
readonly MESSAGE: "MESSAGE";
|
|
128
|
+
readonly ERROR: "ERROR";
|
|
129
|
+
};
|
|
129
130
|
|
|
130
131
|
export declare class IdvIntegrationService {
|
|
131
132
|
/** main commands */
|
|
@@ -141,46 +142,28 @@ export declare class IdvIntegrationService {
|
|
|
141
142
|
deinitialize(): Promise<DeinitializeCompletion>;
|
|
142
143
|
/** service commands */
|
|
143
144
|
setNonce(id: string): void;
|
|
144
|
-
set eventListener(callback: (message:
|
|
145
|
+
set eventListener(callback: (message: IdvMessageEvent) => void);
|
|
145
146
|
set sessionRestoreMode(isEnabled: boolean);
|
|
146
147
|
get currentSessionId(): string | null;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
export declare type IdvMessageEvent = {
|
|
150
|
-
target: IdvEventTargets;
|
|
151
151
|
eventType: IdvEventTypes;
|
|
152
152
|
module?: string | 'IDV';
|
|
153
153
|
message?: IdvServiceMessages;
|
|
154
|
-
error?: IdvServiceErrors;
|
|
155
|
-
details?: any;
|
|
156
154
|
};
|
|
157
155
|
|
|
158
|
-
export declare
|
|
159
|
-
LIVENESS
|
|
160
|
-
DOC_READER
|
|
161
|
-
}
|
|
156
|
+
export declare const IdvModules: {
|
|
157
|
+
readonly LIVENESS: "LIVENESS";
|
|
158
|
+
readonly DOC_READER: "DOC_READER";
|
|
159
|
+
};
|
|
162
160
|
|
|
163
|
-
export declare
|
|
164
|
-
CONNECT_TO_IDV_ERROR = "CONNECT_TO_IDV_ERROR",
|
|
165
|
-
PLAY_WORKFLOW_ERROR = "PLAY_WORKFLOW_ERROR",
|
|
166
|
-
SERVICE_NOT_RUNNING_ERROR = "SERVICE_NOT_RUNNING_ERROR",
|
|
167
|
-
WASM_ERROR = "WASM_ERROR",
|
|
168
|
-
GET_SESSION_STATE_ERROR = "GET_SESSION_STATE_ERROR",
|
|
169
|
-
PUSH_DATA_ERROR = "PUSH_DATA_ERROR",
|
|
170
|
-
SET_MODULES_ERROR = "SET_MODULES_ERROR"
|
|
171
|
-
}
|
|
161
|
+
export declare type IdvModulesType = (typeof IdvModules)[keyof typeof IdvModules];
|
|
172
162
|
|
|
173
163
|
export declare enum IdvServiceMessages {
|
|
174
|
-
INITIALIZED = "INITIALIZED",
|
|
175
164
|
DID_START_SESSION = "DID_START_SESSION",
|
|
176
165
|
DID_END_SESSION = "DID_END_SESSION",
|
|
177
|
-
DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION"
|
|
178
|
-
READY_TO_PLAY = "READY_TO_PLAY",
|
|
179
|
-
CONNECT_TO_IDV = "CONNECT_TO_IDV",
|
|
180
|
-
START_SESSION = "START_SESSION",
|
|
181
|
-
SHUT_DOWN = "SHUT_DOWN",
|
|
182
|
-
CURRENT_STEP = "CURRENT_STEP",
|
|
183
|
-
FINAL = "FINAL"
|
|
166
|
+
DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION"
|
|
184
167
|
}
|
|
185
168
|
|
|
186
169
|
export declare class IdvWebComponent extends HTMLElement {
|
|
@@ -201,7 +184,7 @@ declare type InitConfig = {
|
|
|
201
184
|
};
|
|
202
185
|
face?: Record<string, any>;
|
|
203
186
|
};
|
|
204
|
-
includedModules:
|
|
187
|
+
includedModules: IdvModulesType[];
|
|
205
188
|
};
|
|
206
189
|
|
|
207
190
|
export declare type InitializeCompletion = {
|
|
@@ -254,7 +237,8 @@ export declare enum SessionError {
|
|
|
254
237
|
export declare enum StartSessionError {
|
|
255
238
|
HTTP_ISSUE = 0,
|
|
256
239
|
PROVIDER_ERROR = 1,
|
|
257
|
-
DECODING_FAILED = 2
|
|
240
|
+
DECODING_FAILED = 2,
|
|
241
|
+
TOKEN_ERROR = 3
|
|
258
242
|
}
|
|
259
243
|
|
|
260
244
|
declare enum TokenInitializeError {
|
|
@@ -274,7 +258,7 @@ declare type Workflow = {
|
|
|
274
258
|
steps: Array<WorkflowStep>;
|
|
275
259
|
client: {
|
|
276
260
|
layout: Record<string, any>;
|
|
277
|
-
steps: Array<
|
|
261
|
+
steps: Array<CurrentScreenConfig>;
|
|
278
262
|
};
|
|
279
263
|
} & Record<string, any>;
|
|
280
264
|
|