@regulaforensics/idv-capture-web 0.1.87-nightly → 0.1.88-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-Ce9SnvVJ.js → index-ByAq3yWj.js} +8032 -7681
- package/dist/{index-GAo1QwPj.js → index-C481QERt.js} +5051 -5046
- package/dist/{index-B4tV5Z25.js → index-DJxylN9j.js} +4636 -4628
- package/dist/index.d.ts +57 -20
- package/dist/main.iife.js +65 -65
- package/dist/main.js +7 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IdvMessageEvent as IdvMessageEvent_2 } from '../../dist';
|
|
2
|
+
|
|
1
3
|
declare class BaseDeinitializationError extends BaseError {
|
|
2
4
|
private static readonly MODULE;
|
|
3
5
|
private static readonly ERROR_ENUM_NAME;
|
|
@@ -74,13 +76,41 @@ declare class BaseScenarioError extends BaseError {
|
|
|
74
76
|
});
|
|
75
77
|
}
|
|
76
78
|
|
|
79
|
+
declare class BaseTokenInitializationError extends BaseError {
|
|
80
|
+
private static readonly MODULE;
|
|
81
|
+
private static readonly ERROR_ENUM_NAME;
|
|
82
|
+
private static readonly SHORT_CODE;
|
|
83
|
+
constructor({ errorCode, message, underlyingError, underlyingBaseError, }: {
|
|
84
|
+
errorCode: TokenInitializeError;
|
|
85
|
+
message?: string;
|
|
86
|
+
underlyingError?: string;
|
|
87
|
+
underlyingBaseError?: BaseError;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare type ConfigureCompletion = {
|
|
92
|
+
error?: BaseInitializationError;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare type ConnectionConfig = {
|
|
96
|
+
host: string;
|
|
97
|
+
httpRetryCount?: number;
|
|
98
|
+
httpTimeoutMs?: number;
|
|
99
|
+
isSecure?: boolean;
|
|
100
|
+
password: string;
|
|
101
|
+
port?: number;
|
|
102
|
+
schema?: string;
|
|
103
|
+
userName: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
77
106
|
export declare enum ConnectionError {
|
|
78
107
|
HTTP_ISSUE = 0,
|
|
79
108
|
PROVIDER_ERROR = 1
|
|
80
109
|
}
|
|
81
110
|
|
|
82
111
|
export declare enum DeinitializationError {
|
|
83
|
-
|
|
112
|
+
INITIALIZATION_REQUIRED = 0,
|
|
113
|
+
SCENARIO_IN_PROGRESS = 3
|
|
84
114
|
}
|
|
85
115
|
|
|
86
116
|
export declare type DeinitializeCompletion = {
|
|
@@ -98,18 +128,22 @@ declare enum IdvEventTypes {
|
|
|
98
128
|
}
|
|
99
129
|
|
|
100
130
|
export declare class IdvIntegrationService {
|
|
101
|
-
|
|
131
|
+
/** main commands */
|
|
132
|
+
initialize(config: InitConfig): Promise<{
|
|
102
133
|
error?: BaseInitializationError;
|
|
103
134
|
}>;
|
|
104
|
-
|
|
105
|
-
setSessionRestoreMode(isEnabled: boolean): void;
|
|
106
|
-
get currentSessionId(): string | null;
|
|
135
|
+
configure(config: ConnectionConfig | UrlConnectionConfig): Promise<ConfigureCompletion | UrlConfigureCompelition>;
|
|
107
136
|
getWorkFlows(params?: WorkflowListRequest): Promise<WorkflowListCompletion>;
|
|
108
137
|
prepareWorkflow({ workfowId }: {
|
|
109
138
|
workfowId: string;
|
|
110
139
|
}): Promise<PrepareWorkflowCompletion>;
|
|
111
140
|
startWorkflow(): Promise<WorkflowCompetion>;
|
|
112
141
|
deinitialize(): Promise<DeinitializeCompletion>;
|
|
142
|
+
/** service commands */
|
|
143
|
+
setNonce(id: string): void;
|
|
144
|
+
set eventListener(callback: (message: IdvMessageEvent_2) => void);
|
|
145
|
+
set sessionRestoreMode(isEnabled: boolean);
|
|
146
|
+
get currentSessionId(): string | null;
|
|
113
147
|
}
|
|
114
148
|
|
|
115
149
|
export declare type IdvMessageEvent = {
|
|
@@ -121,6 +155,11 @@ export declare type IdvMessageEvent = {
|
|
|
121
155
|
details?: any;
|
|
122
156
|
};
|
|
123
157
|
|
|
158
|
+
export declare enum IdvModules {
|
|
159
|
+
LIVENESS = "LIVENESS",
|
|
160
|
+
DOC_READER = "DOC_READER"
|
|
161
|
+
}
|
|
162
|
+
|
|
124
163
|
export declare enum IdvServiceErrors {
|
|
125
164
|
CONNECT_TO_IDV_ERROR = "CONNECT_TO_IDV_ERROR",
|
|
126
165
|
PLAY_WORKFLOW_ERROR = "PLAY_WORKFLOW_ERROR",
|
|
@@ -155,23 +194,9 @@ export declare class IdvWebComponent extends HTMLElement {
|
|
|
155
194
|
disconnectedCallback(): void;
|
|
156
195
|
}
|
|
157
196
|
|
|
158
|
-
|
|
159
|
-
connectionConfig: IIdvOptions;
|
|
197
|
+
declare type InitConfig = {
|
|
160
198
|
modulesConfig?: Record<string, any>;
|
|
161
199
|
includedModules: any[];
|
|
162
|
-
licenseConfig?: Record<string, any>;
|
|
163
|
-
listener?: (message: IdvMessageEvent) => void;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export declare type IIdvOptions = {
|
|
167
|
-
host: string;
|
|
168
|
-
httpRetryCount?: number;
|
|
169
|
-
httpTimeoutMs?: number;
|
|
170
|
-
isSecure?: boolean;
|
|
171
|
-
password: string;
|
|
172
|
-
port?: number;
|
|
173
|
-
schema?: string;
|
|
174
|
-
userName: string;
|
|
175
200
|
};
|
|
176
201
|
|
|
177
202
|
export declare type InitializeCompletion = {
|
|
@@ -227,6 +252,18 @@ export declare enum StartSessionError {
|
|
|
227
252
|
DECODING_FAILED = 2
|
|
228
253
|
}
|
|
229
254
|
|
|
255
|
+
declare enum TokenInitializeError {
|
|
256
|
+
CONNECTION_ISSUE = 0,
|
|
257
|
+
WORKFLOW_ISSUE = 1
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare type UrlConfigureCompelition = {
|
|
261
|
+
workflows: string[];
|
|
262
|
+
error?: BaseTokenInitializationError;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
declare type UrlConnectionConfig = string;
|
|
266
|
+
|
|
230
267
|
declare type Workflow = {
|
|
231
268
|
id: string;
|
|
232
269
|
steps: Array<WorkflowStep>;
|