@regulaforensics/idv-document 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 +5 -0
- package/dist/index.d.ts +80 -0
- package/dist/main.js +27075 -0
- package/package.json +27 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DocumentReaderDetailType } from '@regulaforensics/vp-frontend-document-components';
|
|
2
|
+
import { DocumentReaderWebComponent } from '@regulaforensics/vp-frontend-document-components';
|
|
3
|
+
import { InternalScenarios } from '@regulaforensics/vp-frontend-document-components';
|
|
4
|
+
import { TransactionEvent } from '@regulaforensics/vp-frontend-document-components';
|
|
5
|
+
|
|
6
|
+
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
7
|
+
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
8
|
+
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class DocreaderIdv extends BaseModule<DocreaderModuleProps, DocreaderModulesConfig> {
|
|
12
|
+
props: IdvModuleProps<DocreaderModuleProps, DocreaderModulesConfig> | null;
|
|
13
|
+
webComponent: DocumentReaderWebComponent | null;
|
|
14
|
+
private _mounted;
|
|
15
|
+
constructor();
|
|
16
|
+
static displayName: string;
|
|
17
|
+
listener: (data: CustomEvent<DocumentReaderDetailType | TransactionEvent>) => void;
|
|
18
|
+
setProps(props: IdvModuleProps<DocreaderModuleProps, DocreaderModulesConfig>): void;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
render(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
static isReady(): boolean;
|
|
23
|
+
static getSupportedTemplates: () => DocumentIdvSteps[];
|
|
24
|
+
static initialize(modulesConfig: DocreaderModulesConfig): void;
|
|
25
|
+
static deinitialize(): void;
|
|
26
|
+
static getIdentifier: () => string;
|
|
27
|
+
}
|
|
28
|
+
export { DocreaderIdv }
|
|
29
|
+
export default DocreaderIdv;
|
|
30
|
+
|
|
31
|
+
declare type DocreaderModuleProps = {
|
|
32
|
+
processParam?: {
|
|
33
|
+
multipageProcessing?: boolean;
|
|
34
|
+
scenario: string;
|
|
35
|
+
internalScenario: string | InternalScenarios;
|
|
36
|
+
backendProcessing?: {
|
|
37
|
+
serviceURL?: string;
|
|
38
|
+
rfidServerSideChipVerification?: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
functionality?: {
|
|
42
|
+
recordScanningProcess?: boolean;
|
|
43
|
+
showCaptureButtonDelayFromStart?: number;
|
|
44
|
+
showCaptureButton?: boolean;
|
|
45
|
+
showSkipNextPageButton?: boolean;
|
|
46
|
+
locale?: string;
|
|
47
|
+
};
|
|
48
|
+
customization: {
|
|
49
|
+
cameraFrameWidthOffset?: number;
|
|
50
|
+
backgroundMaskAlpha?: number;
|
|
51
|
+
backgroundMaskColor?: string;
|
|
52
|
+
cameraFrameActiveColor?: string;
|
|
53
|
+
cameraFrameDefaultColor?: string;
|
|
54
|
+
};
|
|
55
|
+
copyright?: boolean;
|
|
56
|
+
tag?: string;
|
|
57
|
+
templateId: string;
|
|
58
|
+
sessionId?: string;
|
|
59
|
+
serviceToken?: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare type DocreaderModulesConfig = {
|
|
63
|
+
docreader: {
|
|
64
|
+
devLicense: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare enum DocumentIdvSteps {
|
|
69
|
+
DOC_READER = "DOC_READER"
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
73
|
+
isProcessing?: (isProcessing: boolean) => void;
|
|
74
|
+
moduleProps: TModuleProps;
|
|
75
|
+
modulesConfig?: TModulesConfig;
|
|
76
|
+
perform: (data: any) => void;
|
|
77
|
+
idvEventListener: (module: string, data: any) => void;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export { }
|