idmission-web-sdk 2.3.206 → 2.3.207
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/components/submission/Errors.d.ts +4 -0
- package/dist/components/submission/Errors.d.ts.map +1 -1
- package/dist/components/submission/SubmissionErrorOverlay.d.ts +2 -2
- package/dist/components/submission/SubmissionErrorOverlay.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +2 -2
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/lib/locales/de.d.ts +2 -0
- package/dist/lib/locales/de.d.ts.map +1 -1
- package/dist/lib/locales/es.d.ts +2 -0
- package/dist/lib/locales/es.d.ts.map +1 -1
- package/dist/lib/locales/fr.d.ts +2 -0
- package/dist/lib/locales/fr.d.ts.map +1 -1
- package/dist/lib/locales/index.d.ts +16 -0
- package/dist/lib/locales/index.d.ts.map +1 -1
- package/dist/lib/locales/it.d.ts +2 -0
- package/dist/lib/locales/it.d.ts.map +1 -1
- package/dist/lib/locales/ja.d.ts +2 -0
- package/dist/lib/locales/ja.d.ts.map +1 -1
- package/dist/lib/locales/pt.d.ts +2 -0
- package/dist/lib/locales/pt.d.ts.map +1 -1
- package/dist/lib/locales/ru.d.ts +2 -0
- package/dist/lib/locales/ru.d.ts.map +1 -1
- package/dist/lib/locales/zh.d.ts +2 -0
- package/dist/lib/locales/zh.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +91 -43
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +91 -43
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +91 -43
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,10 @@ export declare class SubmissionError extends Error {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class NetworkError extends Error {
|
|
7
7
|
}
|
|
8
|
+
export declare class AuthenticationError extends Error {
|
|
9
|
+
statusCode: number;
|
|
10
|
+
constructor(statusCode: number, message?: string);
|
|
11
|
+
}
|
|
8
12
|
export declare class SessionValidationFailedError extends Error {
|
|
9
13
|
err: Error;
|
|
10
14
|
host: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../src/components/submission/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD,qBAAa,eAAgB,SAAQ,KAAK;IACrB,MAAM,EAAE,wBAAwB;gBAAhC,MAAM,EAAE,wBAAwB;CAGpD;AAED,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAE1C,qBAAa,4BAA6B,SAAQ,KAAK;IAE5C,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;gBADZ,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,MAAM;CAItB"}
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../src/components/submission/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD,qBAAa,eAAgB,SAAQ,KAAK;IACrB,MAAM,EAAE,wBAAwB;gBAAhC,MAAM,EAAE,wBAAwB;CAGpD;AAED,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAE1C,qBAAa,mBAAoB,SAAQ,KAAK;IAEnC,UAAU,EAAE,MAAM;gBAAlB,UAAU,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,MAAM;CAInB;AAED,qBAAa,4BAA6B,SAAQ,KAAK;IAE5C,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;gBADZ,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,MAAM;CAItB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { NetworkError, SubmissionError } from './Errors';
|
|
2
|
+
import { AuthenticationError, NetworkError, SubmissionError } from './Errors';
|
|
3
3
|
export type SubmissionErrorOverlayProps = {
|
|
4
|
-
error: SubmissionError | NetworkError;
|
|
4
|
+
error: SubmissionError | NetworkError | AuthenticationError;
|
|
5
5
|
onRetry?: () => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const SubmissionErrorOverlay: ({ error, onRetry, }: SubmissionErrorOverlayProps) => ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmissionErrorOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAA;AAElE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"SubmissionErrorOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAA;AAElE,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAM7E,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,eAAe,GAAG,YAAY,GAAG,mBAAmB,CAAA;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,sBAAsB,wBAGhC,2BAA2B,KAAG,YAoBhC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { UploadedDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
3
3
|
import { SignatureData } from '../signature_capture/data';
|
|
4
|
-
import { NetworkError, SubmissionError } from './Errors';
|
|
4
|
+
import { AuthenticationError, NetworkError, SubmissionError } from './Errors';
|
|
5
5
|
import { CapturedDocumentType, CapturedDocuments } from '../id_capture/CapturedDocuments';
|
|
6
6
|
import { BarcodeDecodeSummary } from '../../lib/barcode/decodeSummary';
|
|
7
7
|
import { CaptureAttemptMetadata, CardData, CustomerDataMatchConfig, DocumentFileMetadata, IdData, LivenessCheckRequest, LivenessCheckResponse, PersonalData, SubmissionAction, SubmissionDocumentKey, SubmissionEnvironment, SubmissionRequest, SubmissionResponse, SubmissionStatus } from './types';
|
|
@@ -33,7 +33,7 @@ export type SubmissionState = {
|
|
|
33
33
|
submissionStatus: SubmissionStatus;
|
|
34
34
|
submissionRequest: SubmissionRequest | null;
|
|
35
35
|
submissionResponse: SubmissionResponse | null;
|
|
36
|
-
submissionError: SubmissionError | NetworkError | null;
|
|
36
|
+
submissionError: SubmissionError | NetworkError | AuthenticationError | null;
|
|
37
37
|
submissionEnvironment: SubmissionEnvironment;
|
|
38
38
|
idFrontImage: string | null;
|
|
39
39
|
idBackImage: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmissionProvider.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,YAAY,EAOb,MAAM,OAAO,CAAA;AAWd,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAGzD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"SubmissionProvider.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,YAAY,EAOb,MAAM,OAAO,CAAA;AAWd,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAA;AAC3F,OAAO,EAAE,aAAa,EA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@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/de.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/de.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoLC"}
|
package/dist/lib/locales/es.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/es.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/es.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA2LC"}
|
package/dist/lib/locales/fr.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/fr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/fr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuLC"}
|
|
@@ -84,6 +84,8 @@ export declare const resources: {
|
|
|
84
84
|
'Video signature has been successfully captured!': string;
|
|
85
85
|
'Network unreachable': string;
|
|
86
86
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
87
|
+
'Authentication failed': string;
|
|
88
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
87
89
|
"We're sorry an unexpected error has occurred.": string;
|
|
88
90
|
'Document Capture': string;
|
|
89
91
|
Capture: string;
|
|
@@ -218,6 +220,8 @@ export declare const resources: {
|
|
|
218
220
|
'Video signature has been successfully captured!': string;
|
|
219
221
|
'Network unreachable': string;
|
|
220
222
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
223
|
+
'Authentication failed': string;
|
|
224
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
221
225
|
"We're sorry an unexpected error has occurred.": string;
|
|
222
226
|
'Document Capture': string;
|
|
223
227
|
Capture: string;
|
|
@@ -352,6 +356,8 @@ export declare const resources: {
|
|
|
352
356
|
'Video signature has been successfully captured!': string;
|
|
353
357
|
'Network unreachable': string;
|
|
354
358
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
359
|
+
'Authentication failed': string;
|
|
360
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
355
361
|
"We're sorry an unexpected error has occurred.": string;
|
|
356
362
|
'Document Capture': string;
|
|
357
363
|
Capture: string;
|
|
@@ -486,6 +492,8 @@ export declare const resources: {
|
|
|
486
492
|
'Video signature has been successfully captured!': string;
|
|
487
493
|
'Network unreachable': string;
|
|
488
494
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
495
|
+
'Authentication failed': string;
|
|
496
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
489
497
|
"We're sorry an unexpected error has occurred.": string;
|
|
490
498
|
'Document Capture': string;
|
|
491
499
|
Capture: string;
|
|
@@ -620,6 +628,8 @@ export declare const resources: {
|
|
|
620
628
|
'Video signature has been successfully captured!': string;
|
|
621
629
|
'Network unreachable': string;
|
|
622
630
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
631
|
+
'Authentication failed': string;
|
|
632
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
623
633
|
"We're sorry an unexpected error has occurred.": string;
|
|
624
634
|
'Document Capture': string;
|
|
625
635
|
Capture: string;
|
|
@@ -754,6 +764,8 @@ export declare const resources: {
|
|
|
754
764
|
'Video signature has been successfully captured!': string;
|
|
755
765
|
'Network unreachable': string;
|
|
756
766
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
767
|
+
'Authentication failed': string;
|
|
768
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
757
769
|
"We're sorry an unexpected error has occurred.": string;
|
|
758
770
|
'Document Capture': string;
|
|
759
771
|
Capture: string;
|
|
@@ -888,6 +900,8 @@ export declare const resources: {
|
|
|
888
900
|
'Video signature has been successfully captured!': string;
|
|
889
901
|
'Network unreachable': string;
|
|
890
902
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
903
|
+
'Authentication failed': string;
|
|
904
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
891
905
|
"We're sorry an unexpected error has occurred.": string;
|
|
892
906
|
'Document Capture': string;
|
|
893
907
|
Capture: string;
|
|
@@ -1022,6 +1036,8 @@ export declare const resources: {
|
|
|
1022
1036
|
'Video signature has been successfully captured!': string;
|
|
1023
1037
|
'Network unreachable': string;
|
|
1024
1038
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
1039
|
+
'Authentication failed': string;
|
|
1040
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
1025
1041
|
"We're sorry an unexpected error has occurred.": string;
|
|
1026
1042
|
'Document Capture': string;
|
|
1027
1043
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAsB,MAAM,OAAO,CAAA;AAevE,eAAO,MAAM,aAAa,yEAWhB,CAAA;AACV,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAA;AAC9C,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;AAErD,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAsB,MAAM,OAAO,CAAA;AAevE,eAAO,MAAM,aAAa,yEAWhB,CAAA;AACV,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAA;AAC9C,MAAM,MAAM,UAAU,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUrB,CAAA;AAED,wBAAgB,cAAc,SAW7B;AAED,eAAO,MAAM,WAAW,SAAU,UAAU,KAAG,IAS9C,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,4BAA4B,GAC5B,aAAa,GACb,SAAS,CAAA;AACb,MAAM,MAAM,uBAAuB,GAC/B,wBAAwB,GACxB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;CAAE,CAAA;AAyB9C,wBAAgB,WAAW,CACzB,QAAQ,EAAE,wBAAwB,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,GAAG,YAAY,CAOvB;AAED,wBAAgB,eAAe,CAC7B,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;CAAE,EAEpD,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,SAAS,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM;CAAE,GACpC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,YAAY;CAAE,CAqB3C"}
|
package/dist/lib/locales/it.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/it.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/it.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuLC"}
|
package/dist/lib/locales/ja.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/ja.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/ja.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8KC"}
|
package/dist/lib/locales/pt.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/pt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/pt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAqLC"}
|
package/dist/lib/locales/ru.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/ru.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/ru.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoLC"}
|
package/dist/lib/locales/zh.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ declare const _default: {
|
|
|
75
75
|
'Video signature has been successfully captured!': string;
|
|
76
76
|
'Network unreachable': string;
|
|
77
77
|
"We're having trouble reaching our services please check your connection and try again.": string;
|
|
78
|
+
'Authentication failed': string;
|
|
79
|
+
'Your session could not be authenticated. Please start a new session and try again.': string;
|
|
78
80
|
"We're sorry an unexpected error has occurred.": string;
|
|
79
81
|
'Document Capture': string;
|
|
80
82
|
Capture: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/zh.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/lib/locales/zh.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4JC"}
|
|
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
235
235
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
var webSdkVersion = '2.3.
|
|
238
|
+
var webSdkVersion = '2.3.207';
|
|
239
239
|
|
|
240
240
|
function getPlatform() {
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -650,6 +650,15 @@ var NetworkError = /** @class */function (_super) {
|
|
|
650
650
|
}
|
|
651
651
|
return NetworkError;
|
|
652
652
|
}(Error);
|
|
653
|
+
var AuthenticationError = /** @class */function (_super) {
|
|
654
|
+
__extends(AuthenticationError, _super);
|
|
655
|
+
function AuthenticationError(statusCode, message) {
|
|
656
|
+
var _this = _super.call(this, message) || this;
|
|
657
|
+
_this.statusCode = statusCode;
|
|
658
|
+
return _this;
|
|
659
|
+
}
|
|
660
|
+
return AuthenticationError;
|
|
661
|
+
}(Error);
|
|
653
662
|
var SessionValidationFailedError = /** @class */function (_super) {
|
|
654
663
|
__extends(SessionValidationFailedError, _super);
|
|
655
664
|
function SessionValidationFailedError(err, host) {
|
|
@@ -791,7 +800,9 @@ var SubmissionErrorOverlay = function SubmissionErrorOverlay(_a) {
|
|
|
791
800
|
alignItems: 'center',
|
|
792
801
|
display: 'flex'
|
|
793
802
|
}
|
|
794
|
-
}, error instanceof
|
|
803
|
+
}, error instanceof AuthenticationError ? (/*#__PURE__*/React__namespace.default.createElement(AuthenticationErrorContent, {
|
|
804
|
+
error: error
|
|
805
|
+
})) : error instanceof NetworkError ? (/*#__PURE__*/React__namespace.default.createElement(NetworkErrorContent, {
|
|
795
806
|
error: error,
|
|
796
807
|
onRetry: onRetry
|
|
797
808
|
})) : (/*#__PURE__*/React__namespace.default.createElement(SubmissionErrorContent, {
|
|
@@ -832,6 +843,13 @@ var SubmissionErrorContent = function SubmissionErrorContent(_a) {
|
|
|
832
843
|
onClick: onRetry
|
|
833
844
|
}, retryText))));
|
|
834
845
|
};
|
|
846
|
+
var AuthenticationErrorContent = function AuthenticationErrorContent(_a) {
|
|
847
|
+
var error = _a.error;
|
|
848
|
+
var t = reactI18next.useTranslation().t;
|
|
849
|
+
var headingText = t('Authentication failed');
|
|
850
|
+
var messageText = t("Your session could not be authenticated. Please start a new session and try again.");
|
|
851
|
+
return /*#__PURE__*/React__namespace.default.createElement(ErrorContainer, null, /*#__PURE__*/React__namespace.default.createElement(ErrorIcon, null, "!"), /*#__PURE__*/React__namespace.default.createElement(Heading$b, null, headingText), /*#__PURE__*/React__namespace.default.createElement(Message$1, null, messageText), /*#__PURE__*/React__namespace.default.createElement(StatusBadge$1, null, /*#__PURE__*/React__namespace.default.createElement(StatusLabel, null, "Status"), /*#__PURE__*/React__namespace.default.createElement(StatusValue, null, error.statusCode)));
|
|
852
|
+
};
|
|
835
853
|
var NetworkErrorContent = function NetworkErrorContent(_a) {
|
|
836
854
|
var onRetry = _a.onRetry;
|
|
837
855
|
var t = reactI18next.useTranslation().t;
|
|
@@ -2492,10 +2510,10 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
2492
2510
|
}, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, customerDataMatchConfig, deduplicationEnabled, deduplicationSynchronous, barcodeCaptureAttempts, documentFileMetadata, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idBackIrImage, idBackImageCapturedAt, idBackUvImage, idBarcodeImage, idBarcodeImageCapturedAt, idCaptureVideoAudioCapturedAt, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoCapturedAt, idCaptureVideoIdBackImage, idCaptureVideoIdBackImageCapturedAt, idCaptureVideoIdFrontImage, idCaptureVideoIdFrontImageCapturedAt, idCaptureVideoUrl, idCardForFaceMatch, idData, idFrontCaptureAttempts, idFrontImage, idFrontImageCapturedAt, idFrontIrImage, idFrontUvImage, idImageResolutionCheck, jobId, manualReviewRequired, needImmediateResponse, ocrMetadata, barcodeDecodeSummary, passportImage, passportImageCapturedAt, personalData, selfieCaptureAttempts, selfieImage, selfieImageCapturedAt, signatureData, signatureImageCapturedAt, signatureVideoCapturedAt, signatureVideoUrl, signatureVideoMetadata, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksFireOnReviewURL, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters, webhooksURL]);
|
|
2493
2511
|
var defaultOnSubmit = React.useCallback(function () {
|
|
2494
2512
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2495
|
-
var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
|
|
2496
|
-
var
|
|
2497
|
-
return __generator(this, function (
|
|
2498
|
-
switch (
|
|
2513
|
+
var submissionResponse_1, payload, host, endpoint, response, _a, _b, statusMessage, submissionResponse_2, e_1, err;
|
|
2514
|
+
var _c, _d, _e;
|
|
2515
|
+
return __generator(this, function (_f) {
|
|
2516
|
+
switch (_f.label) {
|
|
2499
2517
|
case 0:
|
|
2500
2518
|
if (action === SubmissionAction.NONE) {
|
|
2501
2519
|
submissionResponse_1 = {
|
|
@@ -2509,12 +2527,12 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
2509
2527
|
return [2 /*return*/, submissionResponse_1];
|
|
2510
2528
|
}
|
|
2511
2529
|
setSubmissionStatus(SubmissionStatus.SUBMITTING);
|
|
2512
|
-
|
|
2530
|
+
_f.label = 1;
|
|
2513
2531
|
case 1:
|
|
2514
|
-
|
|
2532
|
+
_f.trys.push([1, 9,, 10]);
|
|
2515
2533
|
return [4 /*yield*/, buildSubmissionPayload()];
|
|
2516
2534
|
case 2:
|
|
2517
|
-
payload =
|
|
2535
|
+
payload = _f.sent();
|
|
2518
2536
|
host = submissionUrl || determineSubmissionHost(environment);
|
|
2519
2537
|
endpoint = determineSubmissionEndpoint(action, !!(idFrontImage || idBackImage || passportImage), !!selfieImage);
|
|
2520
2538
|
return [4 /*yield*/, fetch(host + endpoint, {
|
|
@@ -2525,45 +2543,52 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
2525
2543
|
throw new NetworkError(e.message);
|
|
2526
2544
|
})];
|
|
2527
2545
|
case 3:
|
|
2528
|
-
response =
|
|
2529
|
-
if (!(!response || !response.ok)) return [3 /*break*/,
|
|
2530
|
-
|
|
2546
|
+
response = _f.sent();
|
|
2547
|
+
if (!(!response || !response.ok)) return [3 /*break*/, 7];
|
|
2548
|
+
if (!((response === null || response === void 0 ? void 0 : response.status) === 401 || (response === null || response === void 0 ? void 0 : response.status) === 403)) return [3 /*break*/, 5];
|
|
2549
|
+
_a = AuthenticationError.bind;
|
|
2550
|
+
_b = [void 0, response.status];
|
|
2551
|
+
return [4 /*yield*/, response.text()];
|
|
2531
2552
|
case 4:
|
|
2532
|
-
|
|
2553
|
+
throw new (_a.apply(AuthenticationError, _b.concat([_f.sent()])))();
|
|
2554
|
+
case 5:
|
|
2555
|
+
return [4 /*yield*/, response === null || response === void 0 ? void 0 : response.text()];
|
|
2556
|
+
case 6:
|
|
2557
|
+
statusMessage = _f.sent();
|
|
2533
2558
|
if (!statusMessage || statusMessage === 'Load failed') throw new NetworkError(statusMessage);
|
|
2534
2559
|
throw new SubmissionError({
|
|
2535
|
-
statusCode: (
|
|
2560
|
+
statusCode: (_c = response === null || response === void 0 ? void 0 : response.statusText) !== null && _c !== void 0 ? _c : '???',
|
|
2536
2561
|
statusMessage: statusMessage
|
|
2537
2562
|
});
|
|
2538
|
-
case
|
|
2563
|
+
case 7:
|
|
2539
2564
|
return [4 /*yield*/, response.json()];
|
|
2540
|
-
case
|
|
2541
|
-
submissionResponse_2 =
|
|
2565
|
+
case 8:
|
|
2566
|
+
submissionResponse_2 = _f.sent();
|
|
2542
2567
|
if (submissionResponse_2.status.statusCode !== '000') {
|
|
2543
2568
|
throw new SubmissionError(submissionResponse_2.status);
|
|
2544
2569
|
}
|
|
2545
2570
|
setSubmissionRequest(payload);
|
|
2546
2571
|
setSubmissionResponse(submissionResponse_2);
|
|
2547
2572
|
setSubmissionStatus(SubmissionStatus.SUBMITTED);
|
|
2548
|
-
(
|
|
2573
|
+
(_d = onResponseReceived.current) === null || _d === void 0 ? void 0 : _d.call(onResponseReceived, submissionResponse_2, payload);
|
|
2549
2574
|
return [2 /*return*/, submissionResponse_2];
|
|
2550
|
-
case
|
|
2551
|
-
e_1 =
|
|
2575
|
+
case 9:
|
|
2576
|
+
e_1 = _f.sent();
|
|
2552
2577
|
err = e_1;
|
|
2553
2578
|
setSubmissionStatus(SubmissionStatus.FAILED);
|
|
2554
|
-
setSubmissionError(e_1 instanceof SubmissionError || e_1 instanceof NetworkError ? e_1 : err.message === 'Load failed' ? new NetworkError() : new SubmissionError({
|
|
2579
|
+
setSubmissionError(e_1 instanceof SubmissionError || e_1 instanceof NetworkError || e_1 instanceof AuthenticationError ? e_1 : err.message === 'Load failed' ? new NetworkError() : new SubmissionError({
|
|
2555
2580
|
statusCode: '',
|
|
2556
2581
|
statusMessage: err.message
|
|
2557
2582
|
}));
|
|
2558
2583
|
setRetrySubmission(function () {
|
|
2559
|
-
return ['VERIFY', 'IDENTIFY'].includes(action) ? function () {
|
|
2584
|
+
return e_1 instanceof AuthenticationError || ['VERIFY', 'IDENTIFY'].includes(action) ? function () {
|
|
2560
2585
|
return null;
|
|
2561
2586
|
} : defaultOnSubmit;
|
|
2562
2587
|
});
|
|
2563
|
-
(
|
|
2588
|
+
(_e = onRequestFailure.current) === null || _e === void 0 ? void 0 : _e.call(onRequestFailure, err);
|
|
2564
2589
|
if (throwErrorsOnFailure) throw err;
|
|
2565
|
-
return [3 /*break*/,
|
|
2566
|
-
case
|
|
2590
|
+
return [3 /*break*/, 10];
|
|
2591
|
+
case 10:
|
|
2567
2592
|
return [2 /*return*/];
|
|
2568
2593
|
}
|
|
2569
2594
|
});
|
|
@@ -2668,15 +2693,15 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
2668
2693
|
}, [clientRequestID, documentServiceUrl, estimateAge, geolocationResult, barcodeCaptureAttempts, barcodeDecodeSummary, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, jobId, predictGender, selfieCaptureAttempts, uploadDocument, useDocumentServiceForLivenessChecks, webhooksStripSpecialCharacters]);
|
|
2669
2694
|
var checkLiveness = React.useCallback(function (imageDataUrl) {
|
|
2670
2695
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2671
|
-
var request, host, endpoint, response, statusMessage, submissionResponse_3, e_2, err;
|
|
2672
|
-
var
|
|
2673
|
-
return __generator(this, function (
|
|
2674
|
-
switch (
|
|
2696
|
+
var request, host, endpoint, response, _a, _b, statusMessage, submissionResponse_3, e_2, err;
|
|
2697
|
+
var _c;
|
|
2698
|
+
return __generator(this, function (_d) {
|
|
2699
|
+
switch (_d.label) {
|
|
2675
2700
|
case 0:
|
|
2676
|
-
|
|
2701
|
+
_d.trys.push([0, 8,, 9]);
|
|
2677
2702
|
return [4 /*yield*/, buildLivenessCheckPayload(imageDataUrl)];
|
|
2678
2703
|
case 1:
|
|
2679
|
-
request =
|
|
2704
|
+
request = _d.sent();
|
|
2680
2705
|
host = submissionUrl || determineSubmissionHost(environment);
|
|
2681
2706
|
endpoint = liveCheckEndpoint(!!idCardForFaceMatch);
|
|
2682
2707
|
return [4 /*yield*/, fetch(host + endpoint, {
|
|
@@ -2687,30 +2712,37 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
2687
2712
|
throw new NetworkError(e.message);
|
|
2688
2713
|
})];
|
|
2689
2714
|
case 2:
|
|
2690
|
-
response =
|
|
2691
|
-
if (!!response.ok) return [3 /*break*/,
|
|
2715
|
+
response = _d.sent();
|
|
2716
|
+
if (!!response.ok) return [3 /*break*/, 6];
|
|
2717
|
+
if (!(response.status === 401 || response.status === 403)) return [3 /*break*/, 4];
|
|
2718
|
+
_a = AuthenticationError.bind;
|
|
2719
|
+
_b = [void 0, response.status];
|
|
2692
2720
|
return [4 /*yield*/, response.text()];
|
|
2693
2721
|
case 3:
|
|
2694
|
-
|
|
2722
|
+
throw new (_a.apply(AuthenticationError, _b.concat([_d.sent()])))();
|
|
2723
|
+
case 4:
|
|
2724
|
+
return [4 /*yield*/, response.text()];
|
|
2725
|
+
case 5:
|
|
2726
|
+
statusMessage = _d.sent();
|
|
2695
2727
|
if (!statusMessage || statusMessage === 'Load failed') throw new NetworkError(statusMessage);
|
|
2696
2728
|
throw new SubmissionError({
|
|
2697
2729
|
statusCode: response.statusText,
|
|
2698
2730
|
statusMessage: statusMessage
|
|
2699
2731
|
});
|
|
2700
|
-
case
|
|
2732
|
+
case 6:
|
|
2701
2733
|
return [4 /*yield*/, response.json()];
|
|
2702
|
-
case
|
|
2703
|
-
submissionResponse_3 =
|
|
2734
|
+
case 7:
|
|
2735
|
+
submissionResponse_3 = _d.sent();
|
|
2704
2736
|
if (submissionResponse_3.status.statusCode !== '000') {
|
|
2705
2737
|
throw new SubmissionError(submissionResponse_3.status);
|
|
2706
2738
|
}
|
|
2707
2739
|
setSubmissionResponse(submissionResponse_3);
|
|
2708
2740
|
return [2 /*return*/, submissionResponse_3];
|
|
2709
|
-
case
|
|
2710
|
-
e_2 =
|
|
2741
|
+
case 8:
|
|
2742
|
+
e_2 = _d.sent();
|
|
2711
2743
|
err = e_2;
|
|
2712
2744
|
setSubmissionStatus(SubmissionStatus.FAILED);
|
|
2713
|
-
setSubmissionError(e_2 instanceof SubmissionError || e_2 instanceof NetworkError ? e_2 : err.message === 'Load failed' ? new NetworkError() : new SubmissionError({
|
|
2745
|
+
setSubmissionError(e_2 instanceof SubmissionError || e_2 instanceof NetworkError || e_2 instanceof AuthenticationError ? e_2 : err.message === 'Load failed' ? new NetworkError() : new SubmissionError({
|
|
2714
2746
|
statusCode: '',
|
|
2715
2747
|
statusMessage: err.message
|
|
2716
2748
|
}));
|
|
@@ -2720,10 +2752,10 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
2720
2752
|
return null;
|
|
2721
2753
|
};
|
|
2722
2754
|
});
|
|
2723
|
-
(
|
|
2755
|
+
(_c = onRequestFailure.current) === null || _c === void 0 ? void 0 : _c.call(onRequestFailure, err);
|
|
2724
2756
|
if (throwErrorsOnFailure) throw err;
|
|
2725
|
-
return [3 /*break*/,
|
|
2726
|
-
case
|
|
2757
|
+
return [3 /*break*/, 9];
|
|
2758
|
+
case 9:
|
|
2727
2759
|
return [2 /*return*/];
|
|
2728
2760
|
}
|
|
2729
2761
|
});
|
|
@@ -4526,6 +4558,8 @@ var es = {
|
|
|
4526
4558
|
'Video signature has been successfully captured!': 'La video firma se ha capturado correctamente.',
|
|
4527
4559
|
'Network unreachable': 'No hay conexión a internet.',
|
|
4528
4560
|
"We're having trouble reaching our services please check your connection and try again.": '`Estamos teniendo problemas para alcanzar nuestros servicios, por favor hay que verificar la conexión a internet e intentar de nuevo.`',
|
|
4561
|
+
'Authentication failed': 'Fallo de autenticación',
|
|
4562
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'No se pudo autenticar la sesión. Por favor, inicie una nueva sesión e inténtelo de nuevo.',
|
|
4529
4563
|
"We're sorry an unexpected error has occurred.": '`Lo sentimos, se ha producido un error inesperado.`',
|
|
4530
4564
|
'Document Capture': 'Captura de documento',
|
|
4531
4565
|
Capture: 'Capturar',
|
|
@@ -4659,6 +4693,8 @@ var de = {
|
|
|
4659
4693
|
'Video signature has been successfully captured!': 'Videosignatur wurde erfolgreich erfasst!',
|
|
4660
4694
|
'Network unreachable': 'Netzwerk nicht erreichbar',
|
|
4661
4695
|
"We're having trouble reaching our services please check your connection and try again.": 'Wir haben Probleme, unsere Dienste zu erreichen. Bitte prüfen Sie Ihre Verbindung und versuchen Sie es erneut.',
|
|
4696
|
+
'Authentication failed': 'Authentifizierung fehlgeschlagen',
|
|
4697
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'Ihre Sitzung konnte nicht authentifiziert werden. Bitte starten Sie eine neue Sitzung und versuchen Sie es erneut.',
|
|
4662
4698
|
"We're sorry an unexpected error has occurred.": 'Leider ist ein unerwarteter Fehler aufgetreten.',
|
|
4663
4699
|
'Document Capture': 'Dokument erfassen',
|
|
4664
4700
|
Capture: 'Erfassen',
|
|
@@ -4792,6 +4828,8 @@ var fr = {
|
|
|
4792
4828
|
'Video signature has been successfully captured!': 'La signature vidéo a été capturée avec succès!',
|
|
4793
4829
|
'Network unreachable': 'Réseau inaccessible',
|
|
4794
4830
|
"We're having trouble reaching our services please check your connection and try again.": 'Nous rencontrons des difficultés pour accéder à nos services, veuillez vérifier votre connexion et réessayer.',
|
|
4831
|
+
'Authentication failed': 'Échec de l’authentification',
|
|
4832
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'Votre session n’a pas pu être authentifiée. Veuillez démarrer une nouvelle session et réessayer.',
|
|
4795
4833
|
"We're sorry an unexpected error has occurred.": 'Nous sommes désolés, une erreur inattendue est survenue.',
|
|
4796
4834
|
'Document Capture': 'Capture de document',
|
|
4797
4835
|
Capture: 'Capturer',
|
|
@@ -4925,6 +4963,8 @@ var it = {
|
|
|
4925
4963
|
'Video signature has been successfully captured!': 'La firma video è stata acquisita correttamente!',
|
|
4926
4964
|
'Network unreachable': 'Rete non raggiungibile',
|
|
4927
4965
|
"We're having trouble reaching our services please check your connection and try again.": 'Si è verificato un problema nel raggiungere i nostri servizi, verificare la connessione e riprovare.',
|
|
4966
|
+
'Authentication failed': 'Autenticazione fallita',
|
|
4967
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'Non è stato possibile autenticare la sessione. Avviare una nuova sessione e riprovare.',
|
|
4928
4968
|
"We're sorry an unexpected error has occurred.": 'Spiacenti, si è verificato un errore inatteso.',
|
|
4929
4969
|
'Document Capture': 'Acquisizione documento',
|
|
4930
4970
|
Capture: 'Acquisisci',
|
|
@@ -5058,6 +5098,8 @@ var ja = {
|
|
|
5058
5098
|
'Video signature has been successfully captured!': 'ビデオ署名を撮影しました',
|
|
5059
5099
|
'Network unreachable': 'ネットワークに接続できません',
|
|
5060
5100
|
"We're having trouble reaching our services please check your connection and try again.": 'サービス接続時に問題が発生しています。接続を確認して再度お試しください。',
|
|
5101
|
+
'Authentication failed': '認証に失敗しました',
|
|
5102
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'セッションを認証できませんでした。新しいセッションを開始してもう一度お試しください。',
|
|
5061
5103
|
"We're sorry an unexpected error has occurred.": '不慮のエラーが発生しました。申し訳ありません。',
|
|
5062
5104
|
'Document Capture': 'ドキュメントの撮影',
|
|
5063
5105
|
Capture: '撮影',
|
|
@@ -5191,6 +5233,8 @@ var pt = {
|
|
|
5191
5233
|
'Video signature has been successfully captured!': 'A assinatura de vídeo foi capturada com sucesso!',
|
|
5192
5234
|
'Network unreachable': 'Rede inacessível',
|
|
5193
5235
|
"We're having trouble reaching our services please check your connection and try again.": 'Estamos com dificuldades para acessar nossos serviços, verifique sua conexão e tente novamente.',
|
|
5236
|
+
'Authentication failed': 'Falha na autenticação',
|
|
5237
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'Não foi possível autenticar a sua sessão. Inicie uma nova sessão e tente novamente.',
|
|
5194
5238
|
"We're sorry an unexpected error has occurred.": 'Lamentamos, mas ocorreu um erro inesperado.',
|
|
5195
5239
|
'Document Capture': 'Captura de Documento',
|
|
5196
5240
|
Capture: 'Capturar',
|
|
@@ -5324,6 +5368,8 @@ var ru = {
|
|
|
5324
5368
|
'Video signature has been successfully captured!': 'Видеоподпись успешно записана!',
|
|
5325
5369
|
'Network unreachable': 'Сеть недоступна',
|
|
5326
5370
|
"We're having trouble reaching our services please check your connection and try again.": 'У нас возникли проблемы с доступом к нашим службам, проверьте подключение и повторите попытку.',
|
|
5371
|
+
'Authentication failed': 'Ошибка аутентификации',
|
|
5372
|
+
'Your session could not be authenticated. Please start a new session and try again.': 'Не удалось пройти аутентификацию сессии. Пожалуйста, начните новую сессию и повторите попытку.',
|
|
5327
5373
|
"We're sorry an unexpected error has occurred.": 'К сожалению, произошла непредвиденная ошибка.',
|
|
5328
5374
|
'Document Capture': 'Съемка документа',
|
|
5329
5375
|
Capture: 'Съемка',
|
|
@@ -5457,6 +5503,8 @@ var zh = {
|
|
|
5457
5503
|
'Video signature has been successfully captured!': '已成功拍攝影片簽名!',
|
|
5458
5504
|
'Network unreachable': '網路無法連線',
|
|
5459
5505
|
"We're having trouble reaching our services please check your connection and try again.": '無法與服務連線,請檢查連線並再試一次。',
|
|
5506
|
+
'Authentication failed': '驗證失敗',
|
|
5507
|
+
'Your session could not be authenticated. Please start a new session and try again.': '無法驗證您的工作階段。請開始新的工作階段後再試一次。',
|
|
5460
5508
|
"We're sorry an unexpected error has occurred.": '很抱歉,發生非預期錯誤。',
|
|
5461
5509
|
'Document Capture': '文件拍攝',
|
|
5462
5510
|
Capture: '拍攝',
|