@regulaforensics/idv-capture-web 2.5.191-nightly → 2.5.194-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 +2 -22
- package/dist/index-0QTthvzN.js +23138 -0
- package/dist/index-DK971U5K.js +16434 -0
- package/dist/index-_djGM_-z.js +23544 -0
- package/dist/index.d.ts +17 -31
- package/dist/main.iife.js +226 -55
- package/dist/main.js +14 -20684
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -86,23 +86,11 @@ declare class BaseTokenInitializationError extends BaseError {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
declare type ConfigureCompletion = {
|
|
90
90
|
error?: BaseInitializationError;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
host: string;
|
|
95
|
-
apiKey: string;
|
|
96
|
-
isSecure?: boolean;
|
|
97
|
-
port?: number;
|
|
98
|
-
deviceDescriptor: {
|
|
99
|
-
ttl: number;
|
|
100
|
-
} & Record<string, unknown>;
|
|
101
|
-
httpRetryCount?: number;
|
|
102
|
-
httpTimeoutMs?: number;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export declare type ConnectionConfig = {
|
|
93
|
+
declare type ConnectionConfig = {
|
|
106
94
|
host: string;
|
|
107
95
|
httpRetryCount?: number;
|
|
108
96
|
httpTimeoutMs?: number;
|
|
@@ -111,9 +99,6 @@ export declare type ConnectionConfig = {
|
|
|
111
99
|
port?: number;
|
|
112
100
|
schema?: string;
|
|
113
101
|
userName: string;
|
|
114
|
-
deviceDescriptor?: {
|
|
115
|
-
ttl?: number;
|
|
116
|
-
} & Record<string, unknown>;
|
|
117
102
|
};
|
|
118
103
|
|
|
119
104
|
export declare enum ConnectionError {
|
|
@@ -142,7 +127,7 @@ export declare class IdvIntegrationService {
|
|
|
142
127
|
initialize(config: InitConfig): Promise<{
|
|
143
128
|
error?: BaseInitializationError;
|
|
144
129
|
}>;
|
|
145
|
-
configure(config: ConnectionConfig | UrlConnectionConfig
|
|
130
|
+
configure(config: ConnectionConfig | UrlConnectionConfig): Promise<ConfigureCompletion | UrlConfigureCompletion>;
|
|
146
131
|
getWorkFlows(params?: WorkflowListRequest): Promise<WorkflowListCompletion>;
|
|
147
132
|
prepareWorkflow({ workflowId }: {
|
|
148
133
|
workflowId: string;
|
|
@@ -172,8 +157,7 @@ export declare type IdvModulesType = (typeof IdvModules)[keyof typeof IdvModules
|
|
|
172
157
|
export declare enum IdvServiceMessages {
|
|
173
158
|
DID_START_SESSION = "DID_START_SESSION",
|
|
174
159
|
DID_END_SESSION = "DID_END_SESSION",
|
|
175
|
-
DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION"
|
|
176
|
-
DID_CONTINUE_REMOTE_SESSION = "DID_CONTINUE_REMOTE_SESSION"
|
|
160
|
+
DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION"
|
|
177
161
|
}
|
|
178
162
|
|
|
179
163
|
export declare class IdvWebComponent extends HTMLElement {
|
|
@@ -187,14 +171,14 @@ export declare class IdvWebComponent extends HTMLElement {
|
|
|
187
171
|
disconnectedCallback(): void;
|
|
188
172
|
}
|
|
189
173
|
|
|
190
|
-
|
|
174
|
+
declare type InitConfig = {
|
|
191
175
|
modulesConfig?: {
|
|
192
176
|
docreader?: {
|
|
193
177
|
devLicense: string;
|
|
194
178
|
};
|
|
195
179
|
face?: Record<string, any>;
|
|
196
180
|
};
|
|
197
|
-
includedModules:
|
|
181
|
+
includedModules: IdvModulesType[];
|
|
198
182
|
};
|
|
199
183
|
|
|
200
184
|
export declare type InitializeCompletion = {
|
|
@@ -223,7 +207,7 @@ export declare enum PrepareWorkflowError {
|
|
|
223
207
|
export declare enum ScenarioError {
|
|
224
208
|
INITIALIZATION_REQUIRED = 0,
|
|
225
209
|
PREPARED_REQUIRED = 1,
|
|
226
|
-
|
|
210
|
+
START_SESSION_ERROR = 2,
|
|
227
211
|
UNKNOWN_STEP = 3,
|
|
228
212
|
MODULES_ISSUE = 4,
|
|
229
213
|
ALREADY_STARTED = 5,
|
|
@@ -252,11 +236,10 @@ export declare enum StartSessionError {
|
|
|
252
236
|
HTTP_ISSUE = 0,
|
|
253
237
|
PROVIDER_ERROR = 1,
|
|
254
238
|
DECODING_FAILED = 2,
|
|
255
|
-
TOKEN_ERROR = 3
|
|
256
|
-
CONNECTION_ISSUE = 4
|
|
239
|
+
TOKEN_ERROR = 3
|
|
257
240
|
}
|
|
258
241
|
|
|
259
|
-
|
|
242
|
+
declare type StartWorkflowConfig = {
|
|
260
243
|
metadata?: Record<string, unknown>;
|
|
261
244
|
locale?: string;
|
|
262
245
|
};
|
|
@@ -266,14 +249,12 @@ declare enum TokenInitializeError {
|
|
|
266
249
|
WORKFLOW_ISSUE = 1
|
|
267
250
|
}
|
|
268
251
|
|
|
269
|
-
|
|
252
|
+
declare type UrlConfigureCompletion = {
|
|
270
253
|
workflows: string[];
|
|
271
254
|
error?: BaseTokenInitializationError;
|
|
272
255
|
};
|
|
273
256
|
|
|
274
|
-
|
|
275
|
-
url: string;
|
|
276
|
-
};
|
|
257
|
+
declare type UrlConnectionConfig = string;
|
|
277
258
|
|
|
278
259
|
declare type Workflow = {
|
|
279
260
|
id: string;
|
|
@@ -284,6 +265,11 @@ declare type Workflow = {
|
|
|
284
265
|
};
|
|
285
266
|
} & Record<string, any>;
|
|
286
267
|
|
|
268
|
+
/**
|
|
269
|
+
* @deprecated Use `WorkflowCompletion` instead.
|
|
270
|
+
*/
|
|
271
|
+
export declare type WorkflowCompetion = WorkflowCompletion;
|
|
272
|
+
|
|
287
273
|
export declare type WorkflowCompletion = {
|
|
288
274
|
results?: ScenarioResults;
|
|
289
275
|
error?: BaseScenarioError;
|
|
@@ -300,7 +286,7 @@ export declare type WorkflowListCompletion = {
|
|
|
300
286
|
error?: BasePrepareWorkflowError;
|
|
301
287
|
};
|
|
302
288
|
|
|
303
|
-
|
|
289
|
+
declare type WorkflowListRequest = {
|
|
304
290
|
limit: number;
|
|
305
291
|
skip: number;
|
|
306
292
|
};
|