@trulioo/docv-capture-web 2.13.0

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/LICENSE.md ADDED
@@ -0,0 +1,13 @@
1
+ BY DOWNLOADING, INSTALLING, ACCESSING, OR OTHERWISE USING THE IMAGE CAPTURE SDK (DEFINED BELOW) PROVIDED OR MADE AVAILABLE BY TRULIOO INFORMATION SERVICES INC. (“**us**,” “**we**,” or “**our**”), YOU HEREBY AGREE TO BE BOUND BY THE TERMS AND CONDITIONS SET FORTH BELOW (“**Terms**”). IF YOU DO NOT AGREE TO THESE TERMS, THEN YOU DO NOT HAVE OUR PERMISSION TO USE THE IMAGE CAPTURE SDK. THESE TERMS DO NOT GRANT YOU OR ANY USER OF YOUR APPLICATION (AS DEFINED BELOW) THE RIGHT TO ACCESS OR USE ANY OF OUR OTHER PRODUCTS AND SERVICES (“**Services**”), AND ANY ACCESS TO OR USE OF THE SERVICES IS SUBJECT TO THE CUSTOMER AGREEMENT ENTERED INTO BETWEEN YOU AND US (IF ANY) GOVERNING SUCH ACCESS AND USE (“**Customer Agreement**”). IF THE IMAGE CAPTURE SDK IS BEING USED ON BEHALF OF A COMPANY, ORGANIZATION, OR OTHER ENTITY, THEN ALL REFERENCES TO “YOU,” OR “YOUR” REFER TO SUCH ENTITY AND ITS AFFILIATES, AND THE INDIVIDUAL AGREEING TO THESE TERMS ON YOUR BEHALF REPRESENTS AND WARRANTS THAT THEY HAVE AUTHORITY TO BIND YOU TO THESE TERMS.
2
+
3
+ 1. <u>License; License Keys</u>. Subject to your compliance with these Terms, we hereby grant you a limited, non-exclusive, non-sublicensable, non-transferable, royalty-free, fully paid-up license, exercisable by and through your employees and contractors, to internally use and reproduce a reasonable number of copies of the software development kit (including any portion thereof) provided or made available by us to you under these Terms (“**Image Capture SDK**”) for the sole purpose of your internal development and testing of a software application developed by you or on your behalf that interoperates with Services (“**Application**”). Any use of the Image Capture SDK in a production format of your Application, for commercial purposes, or for any other purpose not expressly permitted by this Section 1 requires a license key provided by us to you pursuant to the Customer Agreement (“**License Key(s)**”). You hereby acknowledge and agree that: (a) the Image Capture SDK, the License Keys, and any know-how and trade secrets relating thereto are our sole and exclusive property and are confidential and proprietary to us; and (b) you will protect each of them using the same degree of care, but no less than a reasonable degree of care, as you use to protect your own confidential information.
4
+
5
+ 2. <u>Restrictions</u>. Except to the extent otherwise permitted under these Terms or under applicable law, you will not, nor will you permit any third party to: (a) implement the Image Capture SDK in any software other than your Application or for any purpose other than its interoperation with the Services; (b) modify, translate, or create a derivative work of any portion of the Image Capture SDK; (c) sell, lease, loan, provide, distribute, disclose, expose, or otherwise transfer any portion of the Image Capture SDK (including any License Keys) to any third party (except for the limited right to distribute, in object code format, any source code (modified or unmodified) or object code provided with the Image Capture SDK solely as integrated components of your Application); (d) reverse engineer, disassemble, decompile, or otherwise attempt to gain access to the source code of the Services or the Image Capture SDK; (e) remove, alter, or obscure any copyright notices or other proprietary rights notices displayed on any portion of the Image Capture SDK; (f) use the Image Capture SDK or the License Keys to develop any software (including your Application) or other technology that (1) can be used with any service or product other than the Services, or (2) is competitive, directly or indirectly, with the Services; (g) interfere with the normal operation and security of the Image Capture SDK or the Services; (h) release or commercially distribute to third parties an Application in production format that is (1) not fully compatible with the Image Capture SDK and the Services, or (2) integrated or interoperable with any application programming interface not provided with the Image Capture SDK; or (i) circumvent or disable any technological, usage, or security features, restrictions, or limitations of any portion of the Image Capture SDK (including any License Keys).
6
+
7
+ 3. <u>Other Terms</u>. The Image Capture SDK is licensed, not sold, to you. All rights not expressly granted herein are reserved by us. No additional rights whatsoever are granted to you by implication, estoppel or otherwise. The Image Capture SDK may incorporate third-party open-source software (“OSS”), as specified by us in the Image Capture SDK documentation or upon your prior written request, and any use of OSS on a stand-alone basis will be subject to the terms of the applicable OSS license and not these Terms. We reserve the right to modify or discontinue our provision of all or any portion of the Image Capture SDK at any time, temporarily or permanently, without notice to you. These Terms and the rights and licenses granted hereunder: (a) can be terminated by us at any time for any reason or for no reason at all, without notice to you; and (b) will automatically terminate if you breach any provision of these Terms. Upon any termination of these Terms, you must immediately cease all use of the Image Capture SDK and destroy all copies of the Image Capture SDK in your control or possession. If you have entered into a Customer Agreement with us or have otherwise agreed to other policies, guidelines, or terms and conditions (click-through, click-wrap, or otherwise) with us, they may contain additional rights, restrictions, and obligations relating to your access to and use of the Image Capture SDK that are not expressly set forth herein, and you are responsible for complying with them.
8
+
9
+ 4. <u>Disclaimer</u>. THE IMAGE CAPTURE SDK AND ALL INTELLECTUAL PROPERTY MADE AVAILABLE OR LICENSED BY US UNDER THESE TERMS ARE PROVIDED “AS IS” WITHOUT ANY REPRESENTATION OR WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NON INFRINGEMENT, QUALITY, ACCURACY, AND FITNESS FOR A PARTICULAR PURPOSE. ANY USE OF THE IMAGE CAPTURE SDK IS AT YOUR OWN RISK.
10
+
11
+ 5. <u>Limitation of Liability</u>. TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL WE, UNDER THESE TERMS, HAVE ANY (a) LIABILITY TO YOU OR TO ANY THIRD PARTY HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE), or (b) OBLIGATION TO INDEMNIFY, DEFEND, OR HOLD YOU OR ANY THIRD PARTY HARMLESS. TO THE EXTENT THAT A COURT HOLDS THAT THESE TERMS ARE INVALID OR UNENFORCEABLE AS A RESULT OF OUR DISCLAIMING ALL LIABILITY AND DAMAGES UNDER THESE TERMS PURSUANT TO THIS SECTION 5, THEN, TO THE FULLEST EXTENT PERMITTED BY LAW, OUR TOTAL LIABILITY TO YOU HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) WILL NOT EXCEED $50.00 (USD).
12
+
13
+ 6. <u>Miscellaneous</u>. These Terms are governed by the laws of British Columbia, Canada without regard to conflict of law principles. You may not assign or transfer these Terms or your rights hereunder, in whole or in part, by operation of law, change of control, or otherwise, without our prior written consent. Any attempted assignment by you in violation of this Section will be null and void. If any part of these Terms is held to be invalid or unenforceable, then the unenforceable part will be given effect to the greatest extent possible, and the remaining parts will remain in full force and effect.
package/README.md ADDED
@@ -0,0 +1,155 @@
1
+ # @trulioo/docv-capture-web
2
+
3
+ Trulioo DocVCapture Web SDK
4
+
5
+ <hr />
6
+
7
+ ## Document Capture and Verification Flow Overview
8
+
9
+ ### Starting a new document verification transaction
10
+
11
+ Create an instance of `TruliooCapture` and call the `initialize` function using the shortcode obtained from the Trulioo API endpoint: `/customer/handoff`.
12
+ This will create a new document verification transaction with a unique Transaction ID.
13
+
14
+ ```javascript showLineNumbers
15
+ const shortCode = "generatedFromTruliooAPI"
16
+
17
+ const truliooCapture = new TruliooCapture()
18
+
19
+ truliooCapture.initialize(shortCode).then((transactionId) => {
20
+ console.log(`Success initialize with transaction ID: ${transactionId}`)
21
+ }).catch(error => {
22
+ console.log(`Error on initialize: ${error}`)
23
+ })
24
+
25
+ ```
26
+
27
+ ### Creating and rendering a camera component
28
+
29
+ Using the same created instance of `TruliooCapture`, we can get a camera component to be rendered later by calling the `getCameraComponent` function.
30
+ We can specify the camera detection type by providing a `ITruliooCameraConfig` with the desired `DetectionType`.
31
+
32
+ ```javascript showLineNumbers
33
+
34
+ // Will get a document detection type camera by default.
35
+ const documentCamera = truliooCapture.getCameraComponent()
36
+
37
+
38
+ // To get a selfie detection type camera.
39
+ const selfieCamera = truliooCaptureSdkInstance.getCameraComponent({
40
+ detectionType: DetectionType.BIOMETRIC_SELFIE,
41
+ })
42
+ ```
43
+
44
+ To render the camera component on the screen, we just need to call the `renderCamera` function. This will render a full screen camera on the screen by attaching
45
+ a video element to the parent element based on the provided element id. We can also include a callback function that will be called by the SDK when the camera is successfully loaded.
46
+ The `onCaptureRegionChange` callback function is provided, which will return the current capture frame coordinates location (the location on the camera screen where the document/face should be located to do a capture).
47
+ We can utilize this coordinate information to render custom UI overlay.
48
+
49
+ ```javascript showLineNumbers
50
+ documentCamera.renderCamera("parent-element-id", (cameraLoadSuccess) => {
51
+ if (cameraLoadSuccess) {
52
+ console.log("Camera loaded successfully!")
53
+ } else {
54
+ console.log("Failed to load camera.")
55
+ }
56
+ }, {
57
+ onCaptureRegionChange: (captureRegion) => {
58
+ // Utilize the given captureRegion data to render custom UI.
59
+ }
60
+ })
61
+ ```
62
+
63
+ To remove/unrender the current camera on the screen, call the `removeCamera` function.
64
+
65
+ ```javascript showLineNumbers
66
+ documentCamera.removeCamera()
67
+ ```
68
+
69
+ ### Starting the document capture flow
70
+
71
+
72
+ Once the camera component is loaded and ready. We can start the document capture experience by calling `startFeedback` from previously created `TruliooCapture` instance.
73
+
74
+
75
+ To do an auto capture experience (a good document/selfie image criteria decided entirely by SDK), we can simply call `startFeedback` by just providing the camera id that refers to the
76
+ currently active/rendered camera component. The promise will only resolve when the SDK manage to capture a good image that is presented in front of the camera capture frame.
77
+
78
+ ```javascript showLineNumbers
79
+ truliooCapture.startFeedback(documentCamera.id).then((result: ITruliooCaptureResponse) => {
80
+ console.log(`Succesfully captured a good image: ${result}`)
81
+ })
82
+ ```
83
+
84
+ We can also stop the feedback by calling the `stopFeedback` function. This will stop any ongoing feedback from the camera component.
85
+
86
+ ```javascript showLineNumbers
87
+ truliooCapture.stopFeedback(documentCamera.id)
88
+
89
+ ```
90
+
91
+
92
+ The SDK also provides the `onFeedbackState` function that we can listen to for the ongoing capture state updates that is started by the `startFeedback` function.
93
+ This allows us to add any logic needed or render any necessary custom UI needed based on the current capture state.
94
+ It is recommended to call the `onFeedbackState` function and start listening to the feedback state before calling the `startFeedback` function.
95
+
96
+ ```javascript showLineNumbers
97
+ truliooCapture.onFeedbackState(
98
+ (feedbackState: FeedbackState) => {
99
+ switch (feedbackState) {
100
+ case FeedbackState.NONE:
101
+ // Nothing happened yet/no document detected at this point.
102
+ break
103
+ case FeedbackState.CAPTURING:
104
+ // Currently in the middle of capturing a document.
105
+ break
106
+ case FeedbackState.BLUR:
107
+ // The detected document is blurry. Show a blur UI feedback to user.
108
+ break
109
+ case FeedbackState.SUCCESS:
110
+ // Manage to captured a document.
111
+ break
112
+ default:
113
+ break
114
+ }
115
+ },
116
+ )
117
+ ```
118
+
119
+ Note that the above flow is the same for the selfie capture type too.
120
+
121
+
122
+ ### Analysing the captured image result through post capture verify feedback
123
+
124
+
125
+ Once we have the resulting `ITruliooCaptureResponse` image data, we are able to get a post capture feedback by simply calling the `verifyImage` function that is
126
+ part of the response data. This will give use more information regarding the captured image and let us decide whether we should submit the captured image for
127
+ verification by calling the `acceptImage` function.
128
+
129
+
130
+
131
+ ```javascript showLineNumbers
132
+ // As an example, we will submit the captured image for document verification if the post capture feedback returns a CAN_BE_PROCESSED status.
133
+ result.verifyImage().then((verifyFeedback: ITruliooVerifyResponse) => {
134
+ if (verifyFeedback.verificationStatus == VerificationStatus.CAN_BE_PROCESSED) {
135
+ // Note that the acceptImage can be called outside of the verifyImage function.
136
+ result.acceptImage().then((status: boolean) => {
137
+ console.log("Successfully submitted the image")
138
+ })
139
+ } else {
140
+ // Do something else. Ex. notify the user about the not accepted image and retake a new image.
141
+ }
142
+ })
143
+ ```
144
+
145
+
146
+ ### Finalize the document verification transaction
147
+
148
+ Once we submitted all the necessary image for the transaction, we can finalize the transaction by calling the `submitTransaction` function.
149
+
150
+
151
+ ```javascript showLineNumbers
152
+ truliooCapture.submitTransaction().then((status: Boolean) => {
153
+ console.log("Transaction Successfully submitted.")
154
+ })
155
+ ```
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@trulioo/docv-capture-web",
3
+ "version": "2.13.0",
4
+ "main": "trulioo-docv-capture-web.js",
5
+ "types": "trulioo-docv-capture-web.d.ts",
6
+ "devDependencies": {
7
+ "webpack": "5.82.0",
8
+ "webpack-cli": "5.1.0",
9
+ "source-map-loader": "4.0.1",
10
+ "typescript": "5.0.4",
11
+ "webpack-dev-server": "4.15.0",
12
+ "hash.js": "1.1.7",
13
+ "lottie-web": "5.12.2",
14
+ "intl-tel-input": "20.3.0",
15
+ "@connectrpc/connect": "1.4.0",
16
+ "@connectrpc/connect-web": "1.4.0",
17
+ "@bufbuild/protobuf": "1.10.0",
18
+ "format-util": "^1.0.5",
19
+ "node-fetch": "2.6.7",
20
+ "abort-controller": "3.0.0",
21
+ "ws": "8.5.0",
22
+ "@js-joda/core": "3.2.0"
23
+ },
24
+ "dependencies": {},
25
+ "peerDependencies": {},
26
+ "optionalDependencies": {},
27
+ "bundledDependencies": [],
28
+ "license": "SEE LICENSE IN LICENSE.md"
29
+ }
@@ -0,0 +1,208 @@
1
+ type Nullable<T> = T | null | undefined
2
+ export declare namespace com.trulioo.docv.core.workflow {
3
+ abstract class Sequence {
4
+ private constructor();
5
+ static get WELCOME(): com.trulioo.docv.core.workflow.Sequence & {
6
+ get name(): "WELCOME";
7
+ get ordinal(): 0;
8
+ };
9
+ static get USER_CONSENT(): com.trulioo.docv.core.workflow.Sequence & {
10
+ get name(): "USER_CONSENT";
11
+ get ordinal(): 1;
12
+ };
13
+ static get CAPTURE_DOCUMENT(): com.trulioo.docv.core.workflow.Sequence & {
14
+ get name(): "CAPTURE_DOCUMENT";
15
+ get ordinal(): 2;
16
+ };
17
+ static get CAPTURE_FACE(): com.trulioo.docv.core.workflow.Sequence & {
18
+ get name(): "CAPTURE_FACE";
19
+ get ordinal(): 3;
20
+ };
21
+ static get COMPLETE(): com.trulioo.docv.core.workflow.Sequence & {
22
+ get name(): "COMPLETE";
23
+ get ordinal(): 4;
24
+ };
25
+ static values(): Array<com.trulioo.docv.core.workflow.Sequence>;
26
+ static valueOf(value: string): com.trulioo.docv.core.workflow.Sequence;
27
+ get name(): "WELCOME" | "USER_CONSENT" | "CAPTURE_DOCUMENT" | "CAPTURE_FACE" | "COMPLETE";
28
+ get ordinal(): 0 | 1 | 2 | 3 | 4;
29
+ }
30
+ }
31
+ export declare namespace com.trulioo.docv.core.workflow {
32
+ class WorkflowTheme {
33
+ constructor(logoSource?: Nullable<string>, primaryButtonColor?: Nullable<string>, primaryButtonTextColor?: Nullable<string>);
34
+ get logoSource(): Nullable<string>;
35
+ get primaryButtonColor(): Nullable<string>;
36
+ get primaryButtonTextColor(): Nullable<string>;
37
+ copy(logoSource?: Nullable<string>, primaryButtonColor?: Nullable<string>, primaryButtonTextColor?: Nullable<string>): com.trulioo.docv.core.workflow.WorkflowTheme;
38
+ toString(): string;
39
+ hashCode(): number;
40
+ equals(other: Nullable<any>): boolean;
41
+ }
42
+ }
43
+ export declare class TruliooCamera /* extends capture.Camera */ {
44
+ constructor(cameraId: string, cameraDetectionType: DetectionType);
45
+ get id(): string;
46
+ get detectionType(): DetectionType;
47
+ removeCamera(): void;
48
+ renderCamera(parentElementId: string, onCameraLoaded?: (p0: boolean) => void, cameraProps?: Nullable<CameraProps>): void;
49
+ }
50
+ export declare class CameraProps {
51
+ constructor(backgroundColor: Nullable<string>, onCaptureRegionChange: Nullable<(p0: CaptureRegion) => void>);
52
+ get backgroundColor(): Nullable<string>;
53
+ get onCaptureRegionChange(): Nullable<(p0: CaptureRegion) => void>;
54
+ copy(backgroundColor?: Nullable<string>, onCaptureRegionChange?: Nullable<(p0: CaptureRegion) => void>): CameraProps;
55
+ toString(): string;
56
+ hashCode(): number;
57
+ equals(other: Nullable<any>): boolean;
58
+ }
59
+ export declare interface CaptureRegion {
60
+ readonly bottomRight: PointCoordinates;
61
+ readonly center: PointCoordinates;
62
+ readonly selfieRadius: number;
63
+ readonly topLeft: PointCoordinates;
64
+ readonly __doNotUseOrImplementIt: {
65
+ readonly CaptureRegion: unique symbol;
66
+ };
67
+ }
68
+ export declare interface PointCoordinates {
69
+ readonly x: number;
70
+ readonly y: number;
71
+ readonly __doNotUseOrImplementIt: {
72
+ readonly PointCoordinates: unique symbol;
73
+ };
74
+ }
75
+ export declare class TruliooCapture {
76
+ constructor();
77
+ initialize(shortCode: string, previewMode?: boolean): Promise<string>;
78
+ getCameraComponent(config?: Nullable<TruliooCameraConfig>): TruliooCamera;
79
+ startFeedback(cameraId: string, imageFeedback?: Nullable<(p0: TruliooImageFeedback) => void>): Promise<TruliooCaptureResponse>;
80
+ stopFeedback(cameraId: string): Promise<boolean>;
81
+ onFeedbackState(feedback: (p0: TruliooFeedbackState) => void): void;
82
+ captureLatestFrame(): Promise<TruliooCaptureResponse>;
83
+ submitTransaction(): Promise<boolean>;
84
+ }
85
+ export declare interface TruliooCameraConfig {
86
+ readonly detectionType: DetectionType;
87
+ readonly __doNotUseOrImplementIt: {
88
+ readonly TruliooCameraConfig: unique symbol;
89
+ };
90
+ }
91
+ export declare abstract class DetectionType {
92
+ private constructor();
93
+ static get DOCUMENT(): DetectionType & {
94
+ get name(): "DOCUMENT";
95
+ get ordinal(): 0;
96
+ };
97
+ static get PASSPORT(): DetectionType & {
98
+ get name(): "PASSPORT";
99
+ get ordinal(): 1;
100
+ };
101
+ static get BIOMETRIC_SELFIE(): DetectionType & {
102
+ get name(): "BIOMETRIC_SELFIE";
103
+ get ordinal(): 2;
104
+ };
105
+ static get NO_DETECTION(): DetectionType & {
106
+ get name(): "NO_DETECTION";
107
+ get ordinal(): 3;
108
+ };
109
+ static values(): Array<DetectionType>;
110
+ static valueOf(value: string): DetectionType;
111
+ get name(): "DOCUMENT" | "PASSPORT" | "BIOMETRIC_SELFIE" | "NO_DETECTION";
112
+ get ordinal(): 0 | 1 | 2 | 3;
113
+ }
114
+ export declare interface TruliooImageFeedback {
115
+ readonly imageId: string;
116
+ readonly detectionType: DetectionType;
117
+ readonly hasAcceptableQuality: boolean;
118
+ readonly hasBlur: boolean;
119
+ readonly hasDetection: boolean;
120
+ readonly __doNotUseOrImplementIt: {
121
+ readonly TruliooImageFeedback: unique symbol;
122
+ };
123
+ }
124
+ export declare interface TruliooCaptureResponse extends TruliooImageFeedback {
125
+ readonly acceptImage: () => Promise<boolean>;
126
+ readonly requiresBackCapture: boolean;
127
+ readonly tooClose: boolean;
128
+ readonly tooFar: boolean;
129
+ readonly verifyImage: () => Promise<TruliooVerifyFeedback>;
130
+ readonly imageId: string;
131
+ readonly detectionType: DetectionType;
132
+ readonly hasAcceptableQuality: boolean;
133
+ readonly hasBlur: boolean;
134
+ readonly hasDetection: boolean;
135
+ readonly __doNotUseOrImplementIt: {
136
+ readonly TruliooCaptureResponse: unique symbol;
137
+ } & TruliooImageFeedback["__doNotUseOrImplementIt"];
138
+ }
139
+ export declare interface TruliooVerifyFeedback {
140
+ readonly isVerifyAttemptAvailable: boolean;
141
+ readonly verificationStatus: VerificationStatus;
142
+ readonly __doNotUseOrImplementIt: {
143
+ readonly TruliooVerifyFeedback: unique symbol;
144
+ };
145
+ }
146
+ export declare abstract class VerificationStatus {
147
+ private constructor();
148
+ static get CAN_BE_PROCESSED(): VerificationStatus & {
149
+ get name(): "CAN_BE_PROCESSED";
150
+ get ordinal(): 0;
151
+ };
152
+ static get CANNOT_BE_CLASSIFIED(): VerificationStatus & {
153
+ get name(): "CANNOT_BE_CLASSIFIED";
154
+ get ordinal(): 1;
155
+ };
156
+ static get UNSUPPORTED_DOCUMENT(): VerificationStatus & {
157
+ get name(): "UNSUPPORTED_DOCUMENT";
158
+ get ordinal(): 2;
159
+ };
160
+ static get EXPIRED_DOCUMENT(): VerificationStatus & {
161
+ get name(): "EXPIRED_DOCUMENT";
162
+ get ordinal(): 3;
163
+ };
164
+ static get ERROR(): VerificationStatus & {
165
+ get name(): "ERROR";
166
+ get ordinal(): 4;
167
+ };
168
+ static values(): Array<VerificationStatus>;
169
+ static valueOf(value: string): VerificationStatus;
170
+ get name(): "CAN_BE_PROCESSED" | "CANNOT_BE_CLASSIFIED" | "UNSUPPORTED_DOCUMENT" | "EXPIRED_DOCUMENT" | "ERROR";
171
+ get ordinal(): 0 | 1 | 2 | 3 | 4;
172
+ }
173
+ export declare abstract class TruliooFeedbackState {
174
+ private constructor();
175
+ static get NONE(): TruliooFeedbackState & {
176
+ get name(): "NONE";
177
+ get ordinal(): 0;
178
+ };
179
+ static get CAPTURING(): TruliooFeedbackState & {
180
+ get name(): "CAPTURING";
181
+ get ordinal(): 1;
182
+ };
183
+ static get BLUR(): TruliooFeedbackState & {
184
+ get name(): "BLUR";
185
+ get ordinal(): 2;
186
+ };
187
+ static get SUCCESS(): TruliooFeedbackState & {
188
+ get name(): "SUCCESS";
189
+ get ordinal(): 3;
190
+ };
191
+ static get ERROR(): TruliooFeedbackState & {
192
+ get name(): "ERROR";
193
+ get ordinal(): 4;
194
+ };
195
+ static get TOO_CLOSE(): TruliooFeedbackState & {
196
+ get name(): "TOO_CLOSE";
197
+ get ordinal(): 5;
198
+ };
199
+ static get TOO_FAR(): TruliooFeedbackState & {
200
+ get name(): "TOO_FAR";
201
+ get ordinal(): 6;
202
+ };
203
+ static values(): Array<TruliooFeedbackState>;
204
+ static valueOf(value: string): TruliooFeedbackState;
205
+ get name(): "NONE" | "CAPTURING" | "BLUR" | "SUCCESS" | "ERROR" | "TOO_CLOSE" | "TOO_FAR";
206
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
207
+ }
208
+ export as namespace trulioo_docv_capture_web;