@regulaforensics/idv-capture-web 0.1.57-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/README.md +3 -0
- package/dist/index-CnurXO_T.js +19997 -0
- package/dist/index-CzhVd-BY.js +15254 -0
- package/dist/index-LAItSFJM.js +15026 -0
- package/dist/index.d.ts +96 -0
- package/dist/main.iife.js +895 -0
- package/dist/main.js +9 -0
- package/dist/style.css +1 -0
- package/package.json +26 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export declare enum ErrorTypes {
|
|
2
|
+
WASM_ERROR = "WASM_ERROR"
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type GetWorkFlowsRequest = {
|
|
6
|
+
limit: number;
|
|
7
|
+
skip: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare type GetWorkFlowsResult = {
|
|
11
|
+
count: number;
|
|
12
|
+
items: unknown[];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
declare enum IDV_TEMPLATES {
|
|
16
|
+
FACE_LIVENESS = "LIVENESS",
|
|
17
|
+
INFO = "INFO",
|
|
18
|
+
INFO_DETAILS = "INFO_DETAILS",
|
|
19
|
+
DOC_READER = "DOC_READER",
|
|
20
|
+
TO_PHONE = "TO_PHONE",
|
|
21
|
+
STATUS = "STATUS",
|
|
22
|
+
PROGRESS = "PROGRESS"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare enum IdvEventTargets {
|
|
26
|
+
WEB_COMPONENT = "WEB_COMPONENT",
|
|
27
|
+
SERVICE = "SERVICE"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare class IdvIntegrationService {
|
|
31
|
+
constructor(options: IIdvOptions);
|
|
32
|
+
getWorkFlows(params?: GetWorkFlowsRequest): Promise<GetWorkFlowsResult>;
|
|
33
|
+
setNonce(id: string): void;
|
|
34
|
+
prepareWorkflow(id: string): void;
|
|
35
|
+
playWorkflow(): void;
|
|
36
|
+
isIdvServiceRunning(): boolean | undefined;
|
|
37
|
+
shutdownService(): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare type IdvMessageEvent = {
|
|
41
|
+
target: 'SERVICE' | 'WEB_COMPONENT';
|
|
42
|
+
eventType: 'ERROR' | 'MESSAGE';
|
|
43
|
+
module?: IDV_TEMPLATES | 'IDV';
|
|
44
|
+
message: any;
|
|
45
|
+
details?: any;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export declare enum IdvServiceMessages {
|
|
49
|
+
READY_TO_PLAY = "READY_TO_PLAY",
|
|
50
|
+
CONNECT_TO_IDV = "CONNECT_TO_IDV",
|
|
51
|
+
START_SESSION = "START_SESSION",
|
|
52
|
+
SHUT_DOWN = "SHUT_DOWN",
|
|
53
|
+
WASM_ERROR = "WASM_ERROR",
|
|
54
|
+
PLAY_WORKFLOW_ERROR = "PLAY_WORKFLOW_ERROR",
|
|
55
|
+
SERVICE_NOT_RUNNING_ERROR = "SERVICE_NOT_RUNNING_ERROR",
|
|
56
|
+
CURRENT_STEP = "CURRENT_STEP",
|
|
57
|
+
GET_SESSION_STATE_ERROR = "GET_SESSION_STATE_ERROR"
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare class IdvWebComponent extends HTMLElement implements IdvWebComponent_2 {
|
|
61
|
+
private _root;
|
|
62
|
+
private _mounted;
|
|
63
|
+
private _nonce?;
|
|
64
|
+
constructor();
|
|
65
|
+
static get observedAttributes(): Array<string>;
|
|
66
|
+
private setNonce;
|
|
67
|
+
connectedCallback(): void;
|
|
68
|
+
get version(): string;
|
|
69
|
+
private render;
|
|
70
|
+
disconnectedCallback(): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class IdvWebComponent_2 extends HTMLElement {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export declare enum IdvWebComponentMessages {
|
|
77
|
+
ELEMENT_VISIBLE = "IDV_VISIBLE",
|
|
78
|
+
DOC_READER = "DOC_READER",
|
|
79
|
+
LIVENESS = "LIVENESS",
|
|
80
|
+
CLOSE_BUTTON_CLICKED = "CLOSE_BUTTON_WAS_CLICKED"
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare type IIdvOptions = {
|
|
84
|
+
workflowId?: string;
|
|
85
|
+
host: string;
|
|
86
|
+
httpRetryCount?: number;
|
|
87
|
+
httpTimeoutMs?: number;
|
|
88
|
+
isSecure?: boolean;
|
|
89
|
+
password: string;
|
|
90
|
+
port?: number;
|
|
91
|
+
schema?: string;
|
|
92
|
+
userName: string;
|
|
93
|
+
listener: (message: IdvMessageEvent) => void;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export { }
|