@regulaforensics/idv-face 2.5.175-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 +6 -0
- package/dist/index.d.ts +62 -0
- package/dist/main.js +19642 -0
- package/package.json +27 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FaceLivenessDetailType } from '@regulaforensics/vp-frontend-face-components';
|
|
2
|
+
import { FaceLivenessWebComponent } from '@regulaforensics/vp-frontend-face-components';
|
|
3
|
+
import { RecordingProcess } from '@regulaforensics/vp-frontend-face-components';
|
|
4
|
+
|
|
5
|
+
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
6
|
+
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
7
|
+
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class FaceIdv extends BaseModule<FaceIdvProps, FaceIdvModulesConfig> {
|
|
11
|
+
props: IdvModuleProps<FaceIdvProps, FaceIdvModulesConfig> | null;
|
|
12
|
+
webComponent: FaceLivenessWebComponent | null;
|
|
13
|
+
private _mounted;
|
|
14
|
+
private _isFinishWithExitOnce;
|
|
15
|
+
constructor();
|
|
16
|
+
static displayName: string;
|
|
17
|
+
listener: (data: CustomEvent<FaceLivenessDetailType>) => void;
|
|
18
|
+
setProps(props: IdvModuleProps<FaceIdvProps, FaceIdvModulesConfig>): void;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
render(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
static isReady(): boolean;
|
|
23
|
+
static getSupportedTemplates: () => FaceIdvSteps[];
|
|
24
|
+
static initialize(modulesConfig: Record<string, unknown>): void;
|
|
25
|
+
static deinitialize(): void;
|
|
26
|
+
static getIdentifier: () => string;
|
|
27
|
+
}
|
|
28
|
+
export { FaceIdv }
|
|
29
|
+
export default FaceIdv;
|
|
30
|
+
|
|
31
|
+
declare type FaceIdvModulesConfig = object;
|
|
32
|
+
|
|
33
|
+
declare type FaceIdvProps = {
|
|
34
|
+
config?: {
|
|
35
|
+
attemptsCount?: number;
|
|
36
|
+
copyright?: boolean;
|
|
37
|
+
recordingProcess?: RecordingProcessKeys;
|
|
38
|
+
};
|
|
39
|
+
copyright: boolean;
|
|
40
|
+
serviceURL?: string;
|
|
41
|
+
recordingProcess: RecordingProcessKeys;
|
|
42
|
+
locale?: string;
|
|
43
|
+
templateId: string;
|
|
44
|
+
sessionId?: string;
|
|
45
|
+
serviceToken?: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
declare enum FaceIdvSteps {
|
|
49
|
+
LIVENESS = "LIVENESS"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
53
|
+
isProcessing?: (isProcessing: boolean) => void;
|
|
54
|
+
moduleProps: TModuleProps;
|
|
55
|
+
modulesConfig?: TModulesConfig;
|
|
56
|
+
perform: (data: any) => void;
|
|
57
|
+
idvEventListener: (module: string, data: any) => void;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
declare type RecordingProcessKeys = keyof typeof RecordingProcess;
|
|
61
|
+
|
|
62
|
+
export { }
|