@incodetech/core 0.0.0-dev-20260512-e44bacb → 0.0.0-dev-20260512-cffbe28
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/{BaseWasmProvider-C2cw9STp.esm.js → BaseWasmProvider-IiHnsP8E.esm.js} +17 -17
- package/dist/{WasmUtilProvider-B8VtGgvF.esm.js → WasmUtilProvider-BrEYcdhY.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-D0Yv5R02.esm.js → authenticationManager-CKDxnLtG.esm.js} +2 -2
- package/dist/{authenticationStateMachine-CFiP6P_V.esm.js → authenticationStateMachine-BNs4VCxh.esm.js} +2 -2
- package/dist/consent.d.ts +50 -50
- package/dist/cpf-ocr.d.ts +17 -17
- package/dist/{deepsightLoader-CFNSfs2N.esm.js → deepsightLoader-BMeAmiNh.esm.js} +2 -2
- package/dist/document-capture.d.ts +76 -76
- package/dist/document-upload.d.ts +49 -49
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-Cq7M50sN.esm.js → ekybStateMachine-tZ1_L9vE.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +1 -1
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureSetup-zLRBv0-5.esm.js → faceCaptureSetup-CUzqUwkP.esm.js} +1 -1
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-CLnM71N7.esm.js → flowServices-CLo2qihS.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-C4xBRJNt.d.ts → idCaptureManager-DiFBYm7h.d.ts} +43 -1
- package/dist/{idCaptureManager-vkJ6QLuk.esm.js → idCaptureManager-ZtfBOR6V.esm.js} +64 -1
- package/dist/{idCaptureStateMachine-C94NHeR2.esm.js → idCaptureStateMachine-BuX1-VlB.esm.js} +358 -14
- package/dist/identity-reuse.d.ts +40 -40
- package/dist/{index-CNrrk1gH.d.ts → index-BRdxM5zm.d.ts} +119 -119
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/mandatory-consent.d.ts +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{recordingService-BsYjkILQ.esm.js → recordingService-DMaVUhWY.esm.js} +2 -2
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-ByCKxpZC.esm.js → selfieManager-DC9hKgt7.esm.js} +2 -2
- package/dist/{selfieStateMachine-ecwZ7tWK.esm.js → selfieStateMachine-DvOTE42w.esm.js} +2 -2
- package/dist/{session-DWFMKdX6.esm.js → session-DAspZUCj.esm.js} +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{setup-D3rE3N3K.d.ts → setup-DM301Lyz.d.ts} +39 -5
- package/dist/{setup-h75-vL1d.esm.js → setup-DyspWyTY.esm.js} +326 -169
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +4 -4
- package/dist/workflow.d.ts +84 -84
- package/dist/workflow.esm.js +9 -9
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import "./BaseWasmProvider-IiHnsP8E.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrEYcdhY.esm.js";
|
|
3
3
|
import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
|
|
4
4
|
import "./api-eqRXuVG-.esm.js";
|
|
5
5
|
import "./events-Bt1azl2B.esm.js";
|
|
6
6
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
7
|
-
import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-
|
|
7
|
+
import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-DAspZUCj.esm.js";
|
|
8
8
|
import { t as IpifyProvider } from "./IpifyProvider-ByL6JYxg.esm.js";
|
|
9
9
|
import "./browserSimulation-CAH-V_iE.esm.js";
|
|
10
10
|
import { a as fromPromise, o as createActor } from "./xstate.esm-7GmmAwg6.esm.js";
|
|
11
11
|
import "./faceCaptureManagerFactory-ByAGjOLF.esm.js";
|
|
12
12
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
13
|
-
import "./recordingService-
|
|
13
|
+
import "./recordingService-DMaVUhWY.esm.js";
|
|
14
14
|
import "./deepsightService-IxmrmdKl.esm.js";
|
|
15
15
|
import "./camera-Bm3wb89Z.esm.js";
|
|
16
16
|
import "./getBrowser-Y88tNVud.esm.js";
|
|
@@ -21,15 +21,15 @@ import "./platform-Dpzd9p3X.esm.js";
|
|
|
21
21
|
import "./ITimerCapability-2pw-S97e.esm.js";
|
|
22
22
|
import "./backCameraStream-DWZ1cNVA.esm.js";
|
|
23
23
|
import "./getDeviceClass-DmoqR7G2.esm.js";
|
|
24
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
25
|
-
import "./authenticationStateMachine-
|
|
26
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
24
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CUzqUwkP.esm.js";
|
|
25
|
+
import "./authenticationStateMachine-BNs4VCxh.esm.js";
|
|
26
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CKDxnLtG.esm.js";
|
|
27
27
|
import "./emailStateMachine-BW4tiYqt.esm.js";
|
|
28
28
|
import { n as createEmailManagerFromActor } from "./emailManager-CJAgi4be.esm.js";
|
|
29
|
-
import "./selfieStateMachine-
|
|
30
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
31
|
-
import "./idCaptureStateMachine-
|
|
32
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
29
|
+
import "./selfieStateMachine-DvOTE42w.esm.js";
|
|
30
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-DC9hKgt7.esm.js";
|
|
31
|
+
import "./idCaptureStateMachine-BuX1-VlB.esm.js";
|
|
32
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-ZtfBOR6V.esm.js";
|
|
33
33
|
import "./phoneStateMachine-dDqWuk_Q.esm.js";
|
|
34
34
|
import { n as createPhoneManagerFromActor } from "./phoneManager-BgAfR0DQ.esm.js";
|
|
35
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as getToken } from "./api-eqRXuVG-.esm.js";
|
|
2
2
|
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-7GmmAwg6.esm.js";
|
|
3
|
-
import { _ as StreamCanvasCapture, a as initializeDeepsightSession, c as stopStream, h as flagFaceManualReview, i as initializeCamera, n as preloadOpenViduProvider, o as sendLabelInspectionEvent, r as encryptSelfieImage, s as startDetection, t as createRecordingService, v as FACE_ERROR_CODES } from "./recordingService-
|
|
3
|
+
import { _ as StreamCanvasCapture, a as initializeDeepsightSession, c as stopStream, h as flagFaceManualReview, i as initializeCamera, n as preloadOpenViduProvider, o as sendLabelInspectionEvent, r as encryptSelfieImage, s as startDetection, t as createRecordingService, v as FACE_ERROR_CODES } from "./recordingService-DMaVUhWY.esm.js";
|
|
4
4
|
import { n as requestPermission, t as checkPermission } from "./permissionServices-ACBX6sNZ.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/faceCapture/faceCaptureSetup.ts
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./api-eqRXuVG-.esm.js";
|
|
2
2
|
import "./events-Bt1azl2B.esm.js";
|
|
3
3
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
4
|
-
import "./session-
|
|
4
|
+
import "./session-DAspZUCj.esm.js";
|
|
5
5
|
import "./IpifyProvider-ByL6JYxg.esm.js";
|
|
6
6
|
import "./browserSimulation-CAH-V_iE.esm.js";
|
|
7
7
|
import { a as fromPromise, o as createActor, r as assign, s as createManager, t as setup } from "./xstate.esm-7GmmAwg6.esm.js";
|
|
8
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
8
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CLo2qihS.esm.js";
|
|
9
9
|
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B16ocpd4.esm.js";
|
|
10
10
|
import { t as getFinishStatus } from "./flowCompletionService-BuVIVPT_.esm.js";
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
|
|
3
|
-
import { n as getSessionFingerprintResult, r as initializeSession } from "./session-
|
|
3
|
+
import { n as getSessionFingerprintResult, r as initializeSession } from "./session-DAspZUCj.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowUtils.ts
|
|
6
6
|
const WASM_MODULE_PIPELINES = {
|
package/dist/home.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
|
2
2
|
import "./camera-B6UAKpM1.js";
|
|
3
3
|
import "./types-DJSt3Ovt.js";
|
|
4
4
|
import { t as EmptyConfig } from "./types-BA181GDD.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate468 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/home/types.d.ts
|
|
8
8
|
type HomeConfig = EmptyConfig;
|
|
@@ -34,41 +34,41 @@ type HomeContext = {
|
|
|
34
34
|
type HomeInput = {
|
|
35
35
|
config: EmptyConfig;
|
|
36
36
|
};
|
|
37
|
-
declare const homeMachine:
|
|
37
|
+
declare const homeMachine: xstate468.StateMachine<HomeContext, {
|
|
38
38
|
type: "LOAD";
|
|
39
39
|
} | {
|
|
40
40
|
type: "COMPLETE";
|
|
41
41
|
} | {
|
|
42
42
|
type: "RESET";
|
|
43
|
-
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput,
|
|
43
|
+
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate468.NonReducibleUnknown, xstate468.EventObject, xstate468.MetaObject, {
|
|
44
44
|
readonly id: "home";
|
|
45
45
|
readonly initial: "idle";
|
|
46
46
|
readonly context: ({
|
|
47
47
|
input
|
|
48
48
|
}: {
|
|
49
49
|
spawn: {
|
|
50
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never):
|
|
51
|
-
<TLogic extends
|
|
50
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): xstate468.ActorRefFromLogic<never>;
|
|
51
|
+
<TLogic extends xstate468.AnyActorLogic>(src: TLogic, ...[options]: xstate468.ConditionalRequired<[options?: ({
|
|
52
52
|
id?: never;
|
|
53
53
|
systemId?: string;
|
|
54
|
-
input?:
|
|
54
|
+
input?: xstate468.InputFrom<TLogic> | undefined;
|
|
55
55
|
syncSnapshot?: boolean;
|
|
56
|
-
} & { [K in
|
|
56
|
+
} & { [K in xstate468.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate468.IsNotNever<xstate468.RequiredLogicInput<TLogic>>>): xstate468.ActorRefFromLogic<TLogic>;
|
|
57
57
|
};
|
|
58
58
|
input: HomeInput;
|
|
59
|
-
self:
|
|
59
|
+
self: xstate468.ActorRef<xstate468.MachineSnapshot<HomeContext, {
|
|
60
60
|
type: "LOAD";
|
|
61
61
|
} | {
|
|
62
62
|
type: "COMPLETE";
|
|
63
63
|
} | {
|
|
64
64
|
type: "RESET";
|
|
65
|
-
}, Record<string,
|
|
65
|
+
}, Record<string, xstate468.AnyActorRef | undefined>, xstate468.StateValue, string, unknown, any, any>, {
|
|
66
66
|
type: "LOAD";
|
|
67
67
|
} | {
|
|
68
68
|
type: "COMPLETE";
|
|
69
69
|
} | {
|
|
70
70
|
type: "RESET";
|
|
71
|
-
},
|
|
71
|
+
}, xstate468.AnyEventObject>;
|
|
72
72
|
}) => {
|
|
73
73
|
config: EmptyConfig;
|
|
74
74
|
};
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate395 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/id-ocr/types.d.ts
|
|
6
6
|
type IdOcrConfig = {
|
|
@@ -177,7 +177,7 @@ type IdOcrContext = {
|
|
|
177
177
|
type IdOcrInput = {
|
|
178
178
|
config: IdOcrConfig;
|
|
179
179
|
};
|
|
180
|
-
declare const idOcrStateMachine:
|
|
180
|
+
declare const idOcrStateMachine: xstate395.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate395.ActorRefFromLogic<xstate395.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate395.EventObject>> | xstate395.ActorRefFromLogic<xstate395.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate395.EventObject>> | undefined;
|
|
200
|
+
}, xstate395.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate395.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate395.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate395.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate395.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate395.Values<{
|
|
217
|
+
setError: {
|
|
218
|
+
type: "setError";
|
|
219
|
+
params: xstate395.NonReducibleUnknown;
|
|
220
|
+
};
|
|
217
221
|
setInitialData: {
|
|
218
222
|
type: "setInitialData";
|
|
219
|
-
params:
|
|
223
|
+
params: xstate395.NonReducibleUnknown;
|
|
220
224
|
};
|
|
221
225
|
updateField: {
|
|
222
226
|
type: "updateField";
|
|
223
|
-
params:
|
|
227
|
+
params: xstate395.NonReducibleUnknown;
|
|
224
228
|
};
|
|
225
229
|
clearFieldValidationError: {
|
|
226
230
|
type: "clearFieldValidationError";
|
|
227
|
-
params:
|
|
231
|
+
params: xstate395.NonReducibleUnknown;
|
|
228
232
|
};
|
|
229
233
|
setOcrValidationErrors: {
|
|
230
234
|
type: "setOcrValidationErrors";
|
|
231
|
-
params:
|
|
235
|
+
params: xstate395.NonReducibleUnknown;
|
|
232
236
|
};
|
|
233
237
|
validateFormField: {
|
|
234
238
|
type: "validateFormField";
|
|
235
|
-
params:
|
|
236
|
-
};
|
|
237
|
-
setError: {
|
|
238
|
-
type: "setError";
|
|
239
|
-
params: xstate0.NonReducibleUnknown;
|
|
239
|
+
params: xstate395.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate395.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate395.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate395.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate395.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate395.NonReducibleUnknown, xstate395.EventObject, xstate395.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate395.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate395.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate395.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate395.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate395.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate395.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate395.RequiredActorOptions<T>]: unknown }) | undefined], xstate395.IsNotNever<xstate395.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate395.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate395.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate395.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate395.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate395.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate395.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate395.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate395.IsNotNever<xstate395.RequiredActorOptions<T_1>>> : never : never : never)): xstate395.ActorRefFromLogic<xstate395.GetConcreteByKey<xstate395.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate395.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate395.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate395.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate395.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate395.AnyActorLogic>(src: TLogic, ...[options]: xstate395.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate395.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate395.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate395.IsNotNever<xstate395.RequiredLogicInput<TLogic>>>): xstate395.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate395.ActorRef<xstate395.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
358
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
359
|
+
}, Record<string, xstate395.AnyActorRef | undefined>, xstate395.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
371
|
type: "RETRY";
|
|
372
|
-
},
|
|
372
|
+
}, xstate395.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
405
405
|
} | {
|
|
406
406
|
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate395.ActorRef<xstate395.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
420
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
421
|
+
}, Record<string, xstate395.AnyActorRef>, xstate395.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
433
|
type: "RETRY";
|
|
434
|
-
},
|
|
434
|
+
}, xstate395.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
510
510
|
} | {
|
|
511
511
|
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate395.ActorRef<xstate395.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
525
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
526
|
+
}, Record<string, xstate395.AnyActorRef>, xstate395.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
|
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
538
|
type: "RETRY";
|
|
539
|
-
},
|
|
539
|
+
}, xstate395.AnyEventObject>;
|
|
540
540
|
}) => {
|
|
541
541
|
params: UpdateOcrDataParams;
|
|
542
542
|
isSecondId: boolean;
|
package/dist/id.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ import "./types-DJSt3Ovt.js";
|
|
|
7
7
|
import "./types-BA181GDD.js";
|
|
8
8
|
import "./deepsightService-CGSDjjBz.js";
|
|
9
9
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CarMMtoz.js";
|
|
10
|
-
import { A as IdCaptureConfig, B as IdErrorCode, C as IdCaptureMachine, D as DetectionArea, E as CapturedImage, F as IdCaptureInput, G as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, H as RecordingSession, I as IdCaptureMode, J as ManualUploadSide, K as MANUAL_UPLOAD_MAX_RETRIES, L as IdCaptureThresholds, M as IdCaptureDependencies, N as IdCaptureEvent, O as DetectionStatus, P as IdCaptureGeometry, R as IdDocumentType, S as createIdCaptureActor, T as CaptureIdResponse, U as UploadIdResponse, V as IdFlowStep, W as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, X as DetectionOrientation, Y as ManualUploadTab, Z as IdCaptureSettings, _ as uploadIdImage, a as IdCaptureInitResult, b as CreateIdCaptureActorOptions, c as UploadIdImageParams, d as initializeIdCapture, f as preloadIdRecordingProvider, g as stopStream, h as stopRecording, j as IdCaptureContext, k as ID_ERROR_CODES, l as UploadManualIdFileParams, m as startRecordingSession, n as IdCaptureState, o as InitializeIdCaptureParams, p as processId, q as ManualUploadContext, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as ValidationError, v as uploadManualIdFile, w as idCaptureMachine, x as IdCaptureActor, y as validateUploadResponse, z as IdError } from "./idCaptureManager-
|
|
10
|
+
import { A as IdCaptureConfig, B as IdErrorCode, C as IdCaptureMachine, D as DetectionArea, E as CapturedImage, F as IdCaptureInput, G as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, H as RecordingSession, I as IdCaptureMode, J as ManualUploadSide, K as MANUAL_UPLOAD_MAX_RETRIES, L as IdCaptureThresholds, M as IdCaptureDependencies, N as IdCaptureEvent, O as DetectionStatus, P as IdCaptureGeometry, R as IdDocumentType, S as createIdCaptureActor, T as CaptureIdResponse, U as UploadIdResponse, V as IdFlowStep, W as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, X as DetectionOrientation, Y as ManualUploadTab, Z as IdCaptureSettings, _ as uploadIdImage, a as IdCaptureInitResult, b as CreateIdCaptureActorOptions, c as UploadIdImageParams, d as initializeIdCapture, f as preloadIdRecordingProvider, g as stopStream, h as stopRecording, j as IdCaptureContext, k as ID_ERROR_CODES, l as UploadManualIdFileParams, m as startRecordingSession, n as IdCaptureState, o as InitializeIdCaptureParams, p as processId, q as ManualUploadContext, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as ValidationError, v as uploadManualIdFile, w as idCaptureMachine, x as IdCaptureActor, y as validateUploadResponse, z as IdError } from "./idCaptureManager-DiFBYm7h.js";
|
|
11
11
|
export { CameraStream, CaptureIdResponse, CapturedImage, type CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, type IdCaptureContext, IdCaptureDependencies, type IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, type IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, ManualUploadContext, ManualUploadSide, ManualUploadTab, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
1
|
+
import "./BaseWasmProvider-IiHnsP8E.esm.js";
|
|
2
2
|
import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
|
|
3
3
|
import "./api-eqRXuVG-.esm.js";
|
|
4
4
|
import "./events-Bt1azl2B.esm.js";
|
|
5
5
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
6
|
-
import "./session-
|
|
6
|
+
import "./session-DAspZUCj.esm.js";
|
|
7
7
|
import "./IpifyProvider-ByL6JYxg.esm.js";
|
|
8
8
|
import "./browserSimulation-CAH-V_iE.esm.js";
|
|
9
9
|
import "./xstate.esm-7GmmAwg6.esm.js";
|
|
10
10
|
import "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
11
|
-
import "./recordingService-
|
|
11
|
+
import "./recordingService-DMaVUhWY.esm.js";
|
|
12
12
|
import "./deepsightService-IxmrmdKl.esm.js";
|
|
13
13
|
import "./camera-Bm3wb89Z.esm.js";
|
|
14
14
|
import "./getBrowser-Y88tNVud.esm.js";
|
|
@@ -19,7 +19,7 @@ import "./platform-Dpzd9p3X.esm.js";
|
|
|
19
19
|
import "./ITimerCapability-2pw-S97e.esm.js";
|
|
20
20
|
import "./backCameraStream-DWZ1cNVA.esm.js";
|
|
21
21
|
import "./getDeviceClass-DmoqR7G2.esm.js";
|
|
22
|
-
import { a as
|
|
23
|
-
import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
22
|
+
import { a as preloadIdRecordingProvider, c as stopRecording, d as uploadManualIdFile, f as validateUploadResponse, g as MANUAL_UPLOAD_MAX_RETRIES, h as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as initializeIdCapture, l as stopStream, m as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, o as processId, p as ID_ERROR_CODES, s as startRecordingSession, t as idCaptureMachine, u as uploadIdImage } from "./idCaptureStateMachine-BuX1-VlB.esm.js";
|
|
23
|
+
import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-ZtfBOR6V.esm.js";
|
|
24
24
|
|
|
25
25
|
export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
@@ -469,6 +469,21 @@ type IdCaptureEvent = {
|
|
|
469
469
|
type: 'MANUAL_UPLOAD_CONTINUE';
|
|
470
470
|
} | {
|
|
471
471
|
type: 'MANUAL_UPLOAD_RESET';
|
|
472
|
+
} | {
|
|
473
|
+
type: 'DIGITAL_UPLOAD_NEXT_STEP';
|
|
474
|
+
} | {
|
|
475
|
+
type: 'DIGITAL_UPLOAD_FILE_PICKED';
|
|
476
|
+
file: File;
|
|
477
|
+
} | {
|
|
478
|
+
type: 'DIGITAL_UPLOAD_CONFIRM';
|
|
479
|
+
} | {
|
|
480
|
+
type: 'DIGITAL_UPLOAD_REPLACE';
|
|
481
|
+
} | {
|
|
482
|
+
type: 'DIGITAL_UPLOAD_RETRY';
|
|
483
|
+
} | {
|
|
484
|
+
type: 'DIGITAL_UPLOAD_SCAN_INSTEAD';
|
|
485
|
+
} | {
|
|
486
|
+
type: 'DIGITAL_UPLOAD_CHOOSE_ANOTHER';
|
|
472
487
|
};
|
|
473
488
|
type IdCaptureDependencies = {
|
|
474
489
|
storage: IStorageCapability;
|
|
@@ -582,6 +597,9 @@ type UploadManualIdFileParams = {
|
|
|
582
597
|
*/
|
|
583
598
|
declare function uploadManualIdFile(params: UploadManualIdFileParams): Promise<UploadIdResponse>;
|
|
584
599
|
//#endregion
|
|
600
|
+
//#region src/modules/id/digitalUpload/types.d.ts
|
|
601
|
+
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
602
|
+
//#endregion
|
|
585
603
|
//#region src/modules/id/idCaptureManager.d.ts
|
|
586
604
|
type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'uploading' | 'uploadError' | 'success';
|
|
587
605
|
type IdCaptureIdleState = {
|
|
@@ -679,7 +697,17 @@ type IdCaptureManualUploadState = {
|
|
|
679
697
|
/** i18n key for the current error message, if any. */
|
|
680
698
|
errorKey: string | null;
|
|
681
699
|
};
|
|
682
|
-
type
|
|
700
|
+
type IdCaptureDigitalUploadState = {
|
|
701
|
+
status: 'digitalIdUpload';
|
|
702
|
+
phase: 'tutorial' | 'selecting' | 'reviewing' | 'uploading' | 'holding' | 'success' | 'error' | 'fileTooLarge' | 'exhausted';
|
|
703
|
+
file: File | null;
|
|
704
|
+
fileName: string | undefined;
|
|
705
|
+
failReason: DigitalUploadFailReason | null;
|
|
706
|
+
attemptsRemaining: number;
|
|
707
|
+
uploadProgress: number;
|
|
708
|
+
pickerRequestId: number;
|
|
709
|
+
};
|
|
710
|
+
type IdCaptureState = IdCaptureIdleState | IdCaptureChooserState | IdCaptureLoadingState | IdCaptureTutorialState | IdCaptureAgeVerificationState | IdCapturePermissionsState | IdCaptureCaptureState | IdCaptureMandatoryConsentState | IdCaptureFrontFinishedState | IdCaptureBackFinishedState | IdCaptureProcessingState | IdCaptureExpiredState | IdCaptureFinishedState | IdCaptureClosedState | IdCaptureErrorState | IdCaptureManualUploadState | IdCaptureDigitalUploadState;
|
|
683
711
|
declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): Manager<IdCaptureState> & {
|
|
684
712
|
load(): void;
|
|
685
713
|
selectDocument(documentType: IdDocumentType): void;
|
|
@@ -714,6 +742,13 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
714
742
|
manualUploadSelectFile(side: ManualUploadSide, file: File): void;
|
|
715
743
|
manualUploadContinue(): void;
|
|
716
744
|
manualUploadReset(): void;
|
|
745
|
+
digitalUploadNextStep(): void;
|
|
746
|
+
digitalUploadPickFile(file: File): void;
|
|
747
|
+
digitalUploadConfirm(): void;
|
|
748
|
+
digitalUploadReplace(): void;
|
|
749
|
+
digitalUploadRetry(): void;
|
|
750
|
+
digitalUploadScanInstead(): void;
|
|
751
|
+
digitalUploadChooseAnother(): void;
|
|
717
752
|
};
|
|
718
753
|
declare function createIdCaptureManagerFromActor(actor: IdCaptureActor): Manager<IdCaptureState> & {
|
|
719
754
|
load(): void;
|
|
@@ -749,6 +784,13 @@ declare function createIdCaptureManagerFromActor(actor: IdCaptureActor): Manager
|
|
|
749
784
|
manualUploadSelectFile(side: ManualUploadSide, file: File): void;
|
|
750
785
|
manualUploadContinue(): void;
|
|
751
786
|
manualUploadReset(): void;
|
|
787
|
+
digitalUploadNextStep(): void;
|
|
788
|
+
digitalUploadPickFile(file: File): void;
|
|
789
|
+
digitalUploadConfirm(): void;
|
|
790
|
+
digitalUploadReplace(): void;
|
|
791
|
+
digitalUploadRetry(): void;
|
|
792
|
+
digitalUploadScanInstead(): void;
|
|
793
|
+
digitalUploadChooseAnother(): void;
|
|
752
794
|
};
|
|
753
795
|
type IdCaptureManager = ReturnType<typeof createIdCaptureManager>;
|
|
754
796
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
|
|
2
2
|
import { o as createActor, s as createManager } from "./xstate.esm-7GmmAwg6.esm.js";
|
|
3
3
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { g as MANUAL_UPLOAD_MAX_RETRIES, n as mapDigitalIdScreenName, r as DIGITAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-BuX1-VlB.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/id/idCaptureActor.ts
|
|
7
7
|
function createIdCaptureActor(options) {
|
|
@@ -176,6 +176,32 @@ function mapManualUploadState(snapshot) {
|
|
|
176
176
|
errorKey: childCtx?.errorMessage ?? null
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
+
function mapDigitalUploadState(snapshot) {
|
|
180
|
+
const childSnapshot = snapshot.children["digitalIdUpload"]?.getSnapshot();
|
|
181
|
+
const childCtx = childSnapshot?.context;
|
|
182
|
+
const childValue = childSnapshot?.value;
|
|
183
|
+
return {
|
|
184
|
+
status: "digitalIdUpload",
|
|
185
|
+
phase: (() => {
|
|
186
|
+
if (childValue === "tutorial") return "tutorial";
|
|
187
|
+
if (childValue === "selecting") return "selecting";
|
|
188
|
+
if (childValue === "reviewing") return "reviewing";
|
|
189
|
+
if (childValue === "success") return "success";
|
|
190
|
+
if (childValue === "error") return "error";
|
|
191
|
+
if (childValue === "fileTooLarge") return "fileTooLarge";
|
|
192
|
+
if (childValue === "retriesExhausted") return "exhausted";
|
|
193
|
+
if (childSnapshot?.matches({ uploading: "holding" })) return "holding";
|
|
194
|
+
if (childSnapshot?.matches({ uploading: "analyzing" })) return "uploading";
|
|
195
|
+
return "selecting";
|
|
196
|
+
})(),
|
|
197
|
+
file: childCtx?.file ?? null,
|
|
198
|
+
fileName: childCtx?.file?.name,
|
|
199
|
+
failReason: childCtx?.failReason ?? null,
|
|
200
|
+
attemptsRemaining: childCtx?.attemptsRemaining ?? DIGITAL_UPLOAD_MAX_RETRIES,
|
|
201
|
+
uploadProgress: childCtx?.uploadProgress ?? 0,
|
|
202
|
+
pickerRequestId: childCtx?.pickerRequestId ?? 0
|
|
203
|
+
};
|
|
204
|
+
}
|
|
179
205
|
function mapState(snapshot) {
|
|
180
206
|
const { context } = snapshot;
|
|
181
207
|
if (snapshot.matches("idle")) return { status: "idle" };
|
|
@@ -218,6 +244,7 @@ function mapState(snapshot) {
|
|
|
218
244
|
error: context.error ?? "Unknown error"
|
|
219
245
|
};
|
|
220
246
|
if (snapshot.matches("manualIdUpload")) return mapManualUploadState(snapshot);
|
|
247
|
+
if (snapshot.matches("digitalIdUpload")) return mapDigitalUploadState(snapshot);
|
|
221
248
|
return { status: "idle" };
|
|
222
249
|
}
|
|
223
250
|
function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
|
|
@@ -321,6 +348,37 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
321
348
|
manualUploadReset() {
|
|
322
349
|
trackElementClicked?.("manualUpload.reset");
|
|
323
350
|
actor.send({ type: "MANUAL_UPLOAD_RESET" });
|
|
351
|
+
},
|
|
352
|
+
digitalUploadNextStep() {
|
|
353
|
+
trackElementClicked?.("digitalUpload.nextStep");
|
|
354
|
+
actor.send({ type: "DIGITAL_UPLOAD_NEXT_STEP" });
|
|
355
|
+
},
|
|
356
|
+
digitalUploadPickFile(file) {
|
|
357
|
+
trackElementClicked?.("digitalUpload.pickFile");
|
|
358
|
+
actor.send({
|
|
359
|
+
type: "DIGITAL_UPLOAD_FILE_PICKED",
|
|
360
|
+
file
|
|
361
|
+
});
|
|
362
|
+
},
|
|
363
|
+
digitalUploadConfirm() {
|
|
364
|
+
trackElementClicked?.("digitalUpload.confirmFile");
|
|
365
|
+
actor.send({ type: "DIGITAL_UPLOAD_CONFIRM" });
|
|
366
|
+
},
|
|
367
|
+
digitalUploadReplace() {
|
|
368
|
+
trackElementClicked?.("digitalUpload.replaceFile");
|
|
369
|
+
actor.send({ type: "DIGITAL_UPLOAD_REPLACE" });
|
|
370
|
+
},
|
|
371
|
+
digitalUploadRetry() {
|
|
372
|
+
trackElementClicked?.("digitalUpload.retry");
|
|
373
|
+
actor.send({ type: "DIGITAL_UPLOAD_RETRY" });
|
|
374
|
+
},
|
|
375
|
+
digitalUploadScanInstead() {
|
|
376
|
+
trackElementClicked?.("digitalUpload.scanInstead");
|
|
377
|
+
actor.send({ type: "DIGITAL_UPLOAD_SCAN_INSTEAD" });
|
|
378
|
+
},
|
|
379
|
+
digitalUploadChooseAnother() {
|
|
380
|
+
trackElementClicked?.("digitalUpload.chooseAnother");
|
|
381
|
+
actor.send({ type: "DIGITAL_UPLOAD_CHOOSE_ANOTHER" });
|
|
324
382
|
}
|
|
325
383
|
};
|
|
326
384
|
}
|
|
@@ -454,6 +512,11 @@ function getIdCaptureScreenName(snapshot) {
|
|
|
454
512
|
case "finished": return "idCapture.finished";
|
|
455
513
|
case "closed": return "idCapture.closed";
|
|
456
514
|
case "error": return "idCapture.error";
|
|
515
|
+
case "digitalIdUpload": {
|
|
516
|
+
const child = snapshot.children["digitalIdUpload"]?.getSnapshot();
|
|
517
|
+
const childContext = child?.context;
|
|
518
|
+
return mapDigitalIdScreenName(child?.value, childContext?.failReason ?? null);
|
|
519
|
+
}
|
|
457
520
|
default: return `idCapture.${topLevel}`;
|
|
458
521
|
}
|
|
459
522
|
}
|