@incodetech/core 0.0.0-dev-20260327-07875df → 0.0.0-dev-20260330-e91ed6b
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/{addressSearch-B_Vjy2UE.esm.js → addressSearch-CVORoFHv.esm.js} +1 -1
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-CoeHnXPS.esm.js → authenticationManager-DMbrmeCK.esm.js} +3 -3
- package/dist/{backCameraStream-jiRgi6k7.esm.js → backCameraStream-CTPugcLL.esm.js} +1 -1
- package/dist/consent.d.ts +50 -50
- package/dist/consent.esm.js +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{deepsightLoader-BRQ6an4b.esm.js → deepsightLoader-ZyEiKNss.esm.js} +2 -2
- package/dist/{deepsightService-lTQvj-Wf.esm.js → deepsightService-qolSLlqQ.esm.js} +1 -1
- package/dist/document-capture.d.ts +57 -57
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +49 -49
- package/dist/document-upload.esm.js +2 -2
- package/dist/ekyb.esm.js +4 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-C8EeT_ZS.esm.js → emailManager-bG4KnBIC.esm.js} +1 -1
- package/dist/extensibility.d.ts +27 -1
- package/dist/extensibility.esm.js +12 -12
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureSetup-CP7WXoGS.esm.js → faceCaptureSetup-Ca7SG6Xe.esm.js} +4 -4
- package/dist/flow.esm.js +3 -3
- package/dist/{flowServices-D4YyGfcD.esm.js → flowServices-C65cm0LX.esm.js} +1 -1
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/id.esm.js +6 -6
- package/dist/{idCaptureManager-BxlkQJq-.esm.js → idCaptureManager-CDEC7BSu.esm.js} +5 -5
- package/dist/index.esm.js +6 -6
- package/dist/mandatory-consent.d.ts +52 -52
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-Chu-DkAG.esm.js → phoneManager-DES56A95.esm.js} +1 -1
- package/dist/{recordingsRepository-COovU1i4.esm.js → recordingsRepository-IvkvHqPF.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-DZTwDE-b.esm.js → selfieManager-BIQkjPBF.esm.js} +2 -2
- package/dist/{session-CRPiwwF-.esm.js → session-CVMjvvmd.esm.js} +9 -2
- package/dist/signature.esm.js +1 -1
- package/dist/{src-DCc0dMkT.esm.js → src-NguNDCeE.esm.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as fromCallback } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { _ as BrowserTimerProvider } from "./src-
|
|
2
|
+
import { _ as BrowserTimerProvider } from "./src-NguNDCeE.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
2
|
+
import "./backCameraStream-CTPugcLL.esm.js";
|
|
3
|
+
import "./src-NguNDCeE.esm.js";
|
|
4
|
+
import "./recordingsRepository-IvkvHqPF.esm.js";
|
|
5
5
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
6
|
import "./api-G4JA8CXK.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import "./deepsightService-
|
|
8
|
+
import "./deepsightService-qolSLlqQ.esm.js";
|
|
9
9
|
import "./stats-D0m3TvIg.esm.js";
|
|
10
|
-
import "./faceCaptureSetup-
|
|
11
|
-
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
10
|
+
import "./faceCaptureSetup-Ca7SG6Xe.esm.js";
|
|
11
|
+
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DMbrmeCK.esm.js";
|
|
12
12
|
|
|
13
13
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-CoeHnXPS.esm.js → authenticationManager-DMbrmeCK.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { o as WasmUtilProvider, v as BrowserStorageProvider } from "./src-
|
|
3
|
-
import { u as getDeviceClass } from "./recordingsRepository-
|
|
2
|
+
import { o as WasmUtilProvider, v as BrowserStorageProvider } from "./src-NguNDCeE.esm.js";
|
|
3
|
+
import { u as getDeviceClass } from "./recordingsRepository-IvkvHqPF.esm.js";
|
|
4
4
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-Ca7SG6Xe.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as stopCameraStream,
|
|
1
|
+
import { A as stopCameraStream, D as applyTrackConstraints, H as isSafari, L as isAndroid, O as enumerateVideoDevices, V as isIPhone14OrHigher, k as requestCameraAccess, z as isIOS } from "./src-NguNDCeE.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate417 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/consent/types.d.ts
|
|
5
5
|
type ConsentConfig = {
|
|
@@ -35,7 +35,7 @@ type ConsentContext = {
|
|
|
35
35
|
type ConsentInput = {
|
|
36
36
|
config: ConsentConfig;
|
|
37
37
|
};
|
|
38
|
-
declare const consentMachine:
|
|
38
|
+
declare const consentMachine: xstate417.StateMachine<ConsentContext, {
|
|
39
39
|
type: "LOAD";
|
|
40
40
|
} | {
|
|
41
41
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -47,53 +47,53 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
47
47
|
} | {
|
|
48
48
|
type: "RESET";
|
|
49
49
|
}, {
|
|
50
|
-
[x: string]:
|
|
50
|
+
[x: string]: xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
51
51
|
consentId: string;
|
|
52
|
-
},
|
|
52
|
+
}, xstate417.EventObject>> | xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<void, {
|
|
53
53
|
languageConsentId: string;
|
|
54
54
|
checkboxes: ConsentCheckbox[];
|
|
55
|
-
},
|
|
56
|
-
},
|
|
55
|
+
}, xstate417.EventObject>> | undefined;
|
|
56
|
+
}, xstate417.Values<{
|
|
57
57
|
fetchConsent: {
|
|
58
58
|
src: "fetchConsent";
|
|
59
|
-
logic:
|
|
59
|
+
logic: xstate417.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
60
60
|
consentId: string;
|
|
61
|
-
},
|
|
61
|
+
}, xstate417.EventObject>;
|
|
62
62
|
id: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
submitConsent: {
|
|
65
65
|
src: "submitConsent";
|
|
66
|
-
logic:
|
|
66
|
+
logic: xstate417.PromiseActorLogic<void, {
|
|
67
67
|
languageConsentId: string;
|
|
68
68
|
checkboxes: ConsentCheckbox[];
|
|
69
|
-
},
|
|
69
|
+
}, xstate417.EventObject>;
|
|
70
70
|
id: string | undefined;
|
|
71
71
|
};
|
|
72
|
-
}>,
|
|
73
|
-
resetContext: {
|
|
74
|
-
type: "resetContext";
|
|
75
|
-
params: xstate353.NonReducibleUnknown;
|
|
76
|
-
};
|
|
72
|
+
}>, xstate417.Values<{
|
|
77
73
|
setError: {
|
|
78
74
|
type: "setError";
|
|
79
|
-
params:
|
|
75
|
+
params: xstate417.NonReducibleUnknown;
|
|
80
76
|
};
|
|
81
77
|
clearError: {
|
|
82
78
|
type: "clearError";
|
|
83
|
-
params:
|
|
79
|
+
params: xstate417.NonReducibleUnknown;
|
|
80
|
+
};
|
|
81
|
+
resetContext: {
|
|
82
|
+
type: "resetContext";
|
|
83
|
+
params: xstate417.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
setConsentData: {
|
|
86
86
|
type: "setConsentData";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate417.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
toggleCheckbox: {
|
|
90
90
|
type: "toggleCheckbox";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate417.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
}>, {
|
|
94
94
|
type: "canSubmit";
|
|
95
95
|
params: unknown;
|
|
96
|
-
}, never, "error" | "idle" | "
|
|
96
|
+
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate417.NonReducibleUnknown, xstate417.EventObject, xstate417.MetaObject, {
|
|
97
97
|
readonly id: "consent";
|
|
98
98
|
readonly initial: "idle";
|
|
99
99
|
readonly context: ({
|
|
@@ -102,70 +102,70 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
102
102
|
spawn: {
|
|
103
103
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
104
104
|
src: "fetchConsent";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate417.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
106
106
|
consentId: string;
|
|
107
|
-
},
|
|
107
|
+
}, xstate417.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
} extends infer T ? T extends {
|
|
110
110
|
src: "fetchConsent";
|
|
111
|
-
logic:
|
|
111
|
+
logic: xstate417.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
112
112
|
consentId: string;
|
|
113
|
-
},
|
|
113
|
+
}, xstate417.EventObject>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
} ? T extends {
|
|
116
116
|
src: TSrc;
|
|
117
|
-
} ?
|
|
117
|
+
} ? xstate417.ConditionalRequired<[options?: ({
|
|
118
118
|
id?: T["id"] | undefined;
|
|
119
119
|
systemId?: string;
|
|
120
|
-
input?:
|
|
120
|
+
input?: xstate417.InputFrom<T["logic"]> | undefined;
|
|
121
121
|
syncSnapshot?: boolean;
|
|
122
|
-
} & { [K in
|
|
122
|
+
} & { [K in xstate417.RequiredActorOptions<T>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
123
123
|
src: "submitConsent";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate417.PromiseActorLogic<void, {
|
|
125
125
|
languageConsentId: string;
|
|
126
126
|
checkboxes: ConsentCheckbox[];
|
|
127
|
-
},
|
|
127
|
+
}, xstate417.EventObject>;
|
|
128
128
|
id: string | undefined;
|
|
129
129
|
} extends infer T_1 ? T_1 extends {
|
|
130
130
|
src: "submitConsent";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate417.PromiseActorLogic<void, {
|
|
132
132
|
languageConsentId: string;
|
|
133
133
|
checkboxes: ConsentCheckbox[];
|
|
134
|
-
},
|
|
134
|
+
}, xstate417.EventObject>;
|
|
135
135
|
id: string | undefined;
|
|
136
136
|
} ? T_1 extends {
|
|
137
137
|
src: TSrc;
|
|
138
|
-
} ?
|
|
138
|
+
} ? xstate417.ConditionalRequired<[options?: ({
|
|
139
139
|
id?: T_1["id"] | undefined;
|
|
140
140
|
systemId?: string;
|
|
141
|
-
input?:
|
|
141
|
+
input?: xstate417.InputFrom<T_1["logic"]> | undefined;
|
|
142
142
|
syncSnapshot?: boolean;
|
|
143
|
-
} & { [K_1 in
|
|
143
|
+
} & { [K_1 in xstate417.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T_1>>> : never : never : never)): xstate417.ActorRefFromLogic<xstate417.GetConcreteByKey<xstate417.Values<{
|
|
144
144
|
fetchConsent: {
|
|
145
145
|
src: "fetchConsent";
|
|
146
|
-
logic:
|
|
146
|
+
logic: xstate417.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
147
147
|
consentId: string;
|
|
148
|
-
},
|
|
148
|
+
}, xstate417.EventObject>;
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
};
|
|
151
151
|
submitConsent: {
|
|
152
152
|
src: "submitConsent";
|
|
153
|
-
logic:
|
|
153
|
+
logic: xstate417.PromiseActorLogic<void, {
|
|
154
154
|
languageConsentId: string;
|
|
155
155
|
checkboxes: ConsentCheckbox[];
|
|
156
|
-
},
|
|
156
|
+
}, xstate417.EventObject>;
|
|
157
157
|
id: string | undefined;
|
|
158
158
|
};
|
|
159
159
|
}>, "src", TSrc>["logic"]>;
|
|
160
|
-
<TLogic extends
|
|
160
|
+
<TLogic extends xstate417.AnyActorLogic>(src: TLogic, ...[options]: xstate417.ConditionalRequired<[options?: ({
|
|
161
161
|
id?: never;
|
|
162
162
|
systemId?: string;
|
|
163
|
-
input?:
|
|
163
|
+
input?: xstate417.InputFrom<TLogic> | undefined;
|
|
164
164
|
syncSnapshot?: boolean;
|
|
165
|
-
} & { [K in
|
|
165
|
+
} & { [K in xstate417.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredLogicInput<TLogic>>>): xstate417.ActorRefFromLogic<TLogic>;
|
|
166
166
|
};
|
|
167
167
|
input: ConsentInput;
|
|
168
|
-
self:
|
|
168
|
+
self: xstate417.ActorRef<xstate417.MachineSnapshot<ConsentContext, {
|
|
169
169
|
type: "LOAD";
|
|
170
170
|
} | {
|
|
171
171
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -176,7 +176,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
176
176
|
type: "RETRY";
|
|
177
177
|
} | {
|
|
178
178
|
type: "RESET";
|
|
179
|
-
}, Record<string,
|
|
179
|
+
}, Record<string, xstate417.AnyActorRef | undefined>, xstate417.StateValue, string, unknown, any, any>, {
|
|
180
180
|
type: "LOAD";
|
|
181
181
|
} | {
|
|
182
182
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -187,7 +187,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate417.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: ConsentConfig;
|
|
193
193
|
title: string;
|
|
@@ -225,7 +225,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "RESET";
|
|
227
227
|
};
|
|
228
|
-
self:
|
|
228
|
+
self: xstate417.ActorRef<xstate417.MachineSnapshot<ConsentContext, {
|
|
229
229
|
type: "LOAD";
|
|
230
230
|
} | {
|
|
231
231
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -236,7 +236,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -247,7 +247,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
247
247
|
type: "RETRY";
|
|
248
248
|
} | {
|
|
249
249
|
type: "RESET";
|
|
250
|
-
},
|
|
250
|
+
}, xstate417.AnyEventObject>;
|
|
251
251
|
}) => {
|
|
252
252
|
consentId: string;
|
|
253
253
|
};
|
|
@@ -296,7 +296,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
296
296
|
} | {
|
|
297
297
|
type: "RESET";
|
|
298
298
|
};
|
|
299
|
-
self:
|
|
299
|
+
self: xstate417.ActorRef<xstate417.MachineSnapshot<ConsentContext, {
|
|
300
300
|
type: "LOAD";
|
|
301
301
|
} | {
|
|
302
302
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -307,7 +307,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
307
307
|
type: "RETRY";
|
|
308
308
|
} | {
|
|
309
309
|
type: "RESET";
|
|
310
|
-
}, Record<string,
|
|
310
|
+
}, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
|
|
311
311
|
type: "LOAD";
|
|
312
312
|
} | {
|
|
313
313
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -318,7 +318,7 @@ declare const consentMachine: xstate353.StateMachine<ConsentContext, {
|
|
|
318
318
|
type: "RETRY";
|
|
319
319
|
} | {
|
|
320
320
|
type: "RESET";
|
|
321
|
-
},
|
|
321
|
+
}, xstate417.AnyEventObject>;
|
|
322
322
|
}) => {
|
|
323
323
|
languageConsentId: string;
|
|
324
324
|
checkboxes: ConsentCheckbox[];
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { j as createManager } from "./src-
|
|
2
|
+
import { j as createManager } from "./src-NguNDCeE.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { j as createManager } from "./src-
|
|
2
|
+
import { j as createManager } from "./src-NguNDCeE.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as BrowserEnvironmentProvider, o as WasmUtilProvider, p as MotionSensorProvider, u as VisibilityProvider } from "./src-
|
|
1
|
+
import { b as BrowserEnvironmentProvider, o as WasmUtilProvider, p as MotionSensorProvider, u as VisibilityProvider } from "./src-NguNDCeE.esm.js";
|
|
2
2
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
3
3
|
import "./api-G4JA8CXK.esm.js";
|
|
4
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
4
|
+
import { t as createDeepsightService } from "./deepsightService-qolSLlqQ.esm.js";
|
|
5
5
|
import "./stats-D0m3TvIg.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/deepsight/deepsightLoader.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as stopCameraStream, E as IncodeCanvas,
|
|
1
|
+
import { A as stopCameraStream, E as IncodeCanvas, I as getUserAgent, P as getDeviceInfo, T as createHiddenVideoElement, k as requestCameraAccess } from "./src-NguNDCeE.esm.js";
|
|
2
2
|
import { t as isBrowserSimulation } from "./browserSimulation-C8gNnn5p.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as addDeviceStats } from "./stats-D0m3TvIg.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as CameraStream, f as Manager } from "./index-BTaLQSj9.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate344 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/document-capture/types.d.ts
|
|
5
5
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -71,7 +71,7 @@ type DocumentCaptureInput = {
|
|
|
71
71
|
};
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
74
|
-
declare const documentCaptureMachine:
|
|
74
|
+
declare const documentCaptureMachine: xstate344.StateMachine<DocumentCaptureContext, {
|
|
75
75
|
type: "CAPTURE";
|
|
76
76
|
} | {
|
|
77
77
|
type: "FILE_SELECTED";
|
|
@@ -94,84 +94,84 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
94
94
|
} | {
|
|
95
95
|
type: "CLOSE";
|
|
96
96
|
}, {
|
|
97
|
-
[x: string]:
|
|
97
|
+
[x: string]: xstate344.ActorRefFromLogic<xstate344.PromiseActorLogic<MediaStream, void, xstate344.EventObject>> | xstate344.ActorRefFromLogic<xstate344.PromiseActorLogic<DocumentUploadResponse, {
|
|
98
98
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
99
99
|
processingType: string;
|
|
100
100
|
onProgress: (progress: number) => void;
|
|
101
|
-
},
|
|
102
|
-
},
|
|
101
|
+
}, xstate344.EventObject>> | undefined;
|
|
102
|
+
}, xstate344.Values<{
|
|
103
103
|
initCamera: {
|
|
104
104
|
src: "initCamera";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate344.PromiseActorLogic<MediaStream, void, xstate344.EventObject>;
|
|
106
106
|
id: string | undefined;
|
|
107
107
|
};
|
|
108
108
|
uploadDocument: {
|
|
109
109
|
src: "uploadDocument";
|
|
110
|
-
logic:
|
|
110
|
+
logic: xstate344.PromiseActorLogic<DocumentUploadResponse, {
|
|
111
111
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
112
112
|
processingType: string;
|
|
113
113
|
onProgress: (progress: number) => void;
|
|
114
|
-
},
|
|
114
|
+
}, xstate344.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
};
|
|
117
|
-
}>,
|
|
117
|
+
}>, xstate344.Values<{
|
|
118
|
+
setStream: {
|
|
119
|
+
type: "setStream";
|
|
120
|
+
params: xstate344.NonReducibleUnknown;
|
|
121
|
+
};
|
|
122
|
+
setProgress: {
|
|
123
|
+
type: "setProgress";
|
|
124
|
+
params: xstate344.NonReducibleUnknown;
|
|
125
|
+
};
|
|
118
126
|
clearError: {
|
|
119
127
|
type: "clearError";
|
|
120
|
-
params:
|
|
128
|
+
params: xstate344.NonReducibleUnknown;
|
|
121
129
|
};
|
|
122
|
-
|
|
123
|
-
type: "
|
|
124
|
-
params:
|
|
130
|
+
stopStream: {
|
|
131
|
+
type: "stopStream";
|
|
132
|
+
params: xstate344.NonReducibleUnknown;
|
|
125
133
|
};
|
|
126
134
|
setCapturedDocument: {
|
|
127
135
|
type: "setCapturedDocument";
|
|
128
|
-
params:
|
|
136
|
+
params: xstate344.NonReducibleUnknown;
|
|
129
137
|
};
|
|
130
138
|
setFileTooLargeError: {
|
|
131
139
|
type: "setFileTooLargeError";
|
|
132
|
-
params:
|
|
133
|
-
};
|
|
134
|
-
setProgress: {
|
|
135
|
-
type: "setProgress";
|
|
136
|
-
params: xstate280.NonReducibleUnknown;
|
|
140
|
+
params: xstate344.NonReducibleUnknown;
|
|
137
141
|
};
|
|
138
142
|
setUploadError: {
|
|
139
143
|
type: "setUploadError";
|
|
140
|
-
params:
|
|
144
|
+
params: xstate344.NonReducibleUnknown;
|
|
141
145
|
};
|
|
142
146
|
decrementAttemptsRemaining: {
|
|
143
147
|
type: "decrementAttemptsRemaining";
|
|
144
|
-
params:
|
|
148
|
+
params: xstate344.NonReducibleUnknown;
|
|
145
149
|
};
|
|
146
150
|
setCaptureMethodFile: {
|
|
147
151
|
type: "setCaptureMethodFile";
|
|
148
|
-
params:
|
|
152
|
+
params: xstate344.NonReducibleUnknown;
|
|
149
153
|
};
|
|
150
154
|
setCaptureMethodCamera: {
|
|
151
155
|
type: "setCaptureMethodCamera";
|
|
152
|
-
params:
|
|
156
|
+
params: xstate344.NonReducibleUnknown;
|
|
153
157
|
};
|
|
154
158
|
clearCapturedDocument: {
|
|
155
159
|
type: "clearCapturedDocument";
|
|
156
|
-
params:
|
|
160
|
+
params: xstate344.NonReducibleUnknown;
|
|
157
161
|
};
|
|
158
162
|
setPendingNextPage: {
|
|
159
163
|
type: "setPendingNextPage";
|
|
160
|
-
params:
|
|
164
|
+
params: xstate344.NonReducibleUnknown;
|
|
161
165
|
};
|
|
162
166
|
clearForNextPage: {
|
|
163
167
|
type: "clearForNextPage";
|
|
164
|
-
params:
|
|
168
|
+
params: xstate344.NonReducibleUnknown;
|
|
165
169
|
};
|
|
166
170
|
resetProgress: {
|
|
167
171
|
type: "resetProgress";
|
|
168
|
-
params:
|
|
169
|
-
};
|
|
170
|
-
stopStream: {
|
|
171
|
-
type: "stopStream";
|
|
172
|
-
params: xstate280.NonReducibleUnknown;
|
|
172
|
+
params: xstate344.NonReducibleUnknown;
|
|
173
173
|
};
|
|
174
|
-
}>,
|
|
174
|
+
}>, xstate344.Values<{
|
|
175
175
|
allowSkip: {
|
|
176
176
|
type: "allowSkip";
|
|
177
177
|
params: unknown;
|
|
@@ -208,7 +208,7 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
208
208
|
type: "isPendingNextPage";
|
|
209
209
|
params: unknown;
|
|
210
210
|
};
|
|
211
|
-
}>, never, "
|
|
211
|
+
}>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate344.NonReducibleUnknown, xstate344.EventObject, xstate344.MetaObject, {
|
|
212
212
|
readonly id: "documentCapture";
|
|
213
213
|
readonly initial: "tutorial";
|
|
214
214
|
readonly context: ({
|
|
@@ -217,67 +217,67 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
217
217
|
spawn: {
|
|
218
218
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
219
219
|
src: "initCamera";
|
|
220
|
-
logic:
|
|
220
|
+
logic: xstate344.PromiseActorLogic<MediaStream, void, xstate344.EventObject>;
|
|
221
221
|
id: string | undefined;
|
|
222
222
|
} extends infer T ? T extends {
|
|
223
223
|
src: "initCamera";
|
|
224
|
-
logic:
|
|
224
|
+
logic: xstate344.PromiseActorLogic<MediaStream, void, xstate344.EventObject>;
|
|
225
225
|
id: string | undefined;
|
|
226
226
|
} ? T extends {
|
|
227
227
|
src: TSrc;
|
|
228
|
-
} ?
|
|
228
|
+
} ? xstate344.ConditionalRequired<[options?: ({
|
|
229
229
|
id?: T["id"] | undefined;
|
|
230
230
|
systemId?: string;
|
|
231
|
-
input?:
|
|
231
|
+
input?: xstate344.InputFrom<T["logic"]> | undefined;
|
|
232
232
|
syncSnapshot?: boolean;
|
|
233
|
-
} & { [K in
|
|
233
|
+
} & { [K in xstate344.RequiredActorOptions<T>]: unknown }) | undefined], xstate344.IsNotNever<xstate344.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
234
234
|
src: "uploadDocument";
|
|
235
|
-
logic:
|
|
235
|
+
logic: xstate344.PromiseActorLogic<DocumentUploadResponse, {
|
|
236
236
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
237
237
|
processingType: string;
|
|
238
238
|
onProgress: (progress: number) => void;
|
|
239
|
-
},
|
|
239
|
+
}, xstate344.EventObject>;
|
|
240
240
|
id: string | undefined;
|
|
241
241
|
} extends infer T_1 ? T_1 extends {
|
|
242
242
|
src: "uploadDocument";
|
|
243
|
-
logic:
|
|
243
|
+
logic: xstate344.PromiseActorLogic<DocumentUploadResponse, {
|
|
244
244
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
245
245
|
processingType: string;
|
|
246
246
|
onProgress: (progress: number) => void;
|
|
247
|
-
},
|
|
247
|
+
}, xstate344.EventObject>;
|
|
248
248
|
id: string | undefined;
|
|
249
249
|
} ? T_1 extends {
|
|
250
250
|
src: TSrc;
|
|
251
|
-
} ?
|
|
251
|
+
} ? xstate344.ConditionalRequired<[options?: ({
|
|
252
252
|
id?: T_1["id"] | undefined;
|
|
253
253
|
systemId?: string;
|
|
254
|
-
input?:
|
|
254
|
+
input?: xstate344.InputFrom<T_1["logic"]> | undefined;
|
|
255
255
|
syncSnapshot?: boolean;
|
|
256
|
-
} & { [K_1 in
|
|
256
|
+
} & { [K_1 in xstate344.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate344.IsNotNever<xstate344.RequiredActorOptions<T_1>>> : never : never : never)): xstate344.ActorRefFromLogic<xstate344.GetConcreteByKey<xstate344.Values<{
|
|
257
257
|
initCamera: {
|
|
258
258
|
src: "initCamera";
|
|
259
|
-
logic:
|
|
259
|
+
logic: xstate344.PromiseActorLogic<MediaStream, void, xstate344.EventObject>;
|
|
260
260
|
id: string | undefined;
|
|
261
261
|
};
|
|
262
262
|
uploadDocument: {
|
|
263
263
|
src: "uploadDocument";
|
|
264
|
-
logic:
|
|
264
|
+
logic: xstate344.PromiseActorLogic<DocumentUploadResponse, {
|
|
265
265
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
266
266
|
processingType: string;
|
|
267
267
|
onProgress: (progress: number) => void;
|
|
268
|
-
},
|
|
268
|
+
}, xstate344.EventObject>;
|
|
269
269
|
id: string | undefined;
|
|
270
270
|
};
|
|
271
271
|
}>, "src", TSrc>["logic"]>;
|
|
272
|
-
<TLogic extends
|
|
272
|
+
<TLogic extends xstate344.AnyActorLogic>(src: TLogic, ...[options]: xstate344.ConditionalRequired<[options?: ({
|
|
273
273
|
id?: never;
|
|
274
274
|
systemId?: string;
|
|
275
|
-
input?:
|
|
275
|
+
input?: xstate344.InputFrom<TLogic> | undefined;
|
|
276
276
|
syncSnapshot?: boolean;
|
|
277
|
-
} & { [K in
|
|
277
|
+
} & { [K in xstate344.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate344.IsNotNever<xstate344.RequiredLogicInput<TLogic>>>): xstate344.ActorRefFromLogic<TLogic>;
|
|
278
278
|
};
|
|
279
279
|
input: DocumentCaptureInput;
|
|
280
|
-
self:
|
|
280
|
+
self: xstate344.ActorRef<xstate344.MachineSnapshot<DocumentCaptureContext, {
|
|
281
281
|
type: "CAPTURE";
|
|
282
282
|
} | {
|
|
283
283
|
type: "FILE_SELECTED";
|
|
@@ -299,7 +299,7 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
299
299
|
type: "SKIP";
|
|
300
300
|
} | {
|
|
301
301
|
type: "CLOSE";
|
|
302
|
-
}, Record<string,
|
|
302
|
+
}, Record<string, xstate344.AnyActorRef | undefined>, xstate344.StateValue, string, unknown, any, any>, {
|
|
303
303
|
type: "CAPTURE";
|
|
304
304
|
} | {
|
|
305
305
|
type: "FILE_SELECTED";
|
|
@@ -321,7 +321,7 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
321
321
|
type: "SKIP";
|
|
322
322
|
} | {
|
|
323
323
|
type: "CLOSE";
|
|
324
|
-
},
|
|
324
|
+
}, xstate344.AnyEventObject>;
|
|
325
325
|
}) => {
|
|
326
326
|
config: {
|
|
327
327
|
processingType: DocumentType;
|
|
@@ -458,7 +458,7 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
458
458
|
} | {
|
|
459
459
|
type: "CLOSE";
|
|
460
460
|
};
|
|
461
|
-
self:
|
|
461
|
+
self: xstate344.ActorRef<xstate344.MachineSnapshot<DocumentCaptureContext, {
|
|
462
462
|
type: "CAPTURE";
|
|
463
463
|
} | {
|
|
464
464
|
type: "FILE_SELECTED";
|
|
@@ -480,7 +480,7 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
480
480
|
type: "SKIP";
|
|
481
481
|
} | {
|
|
482
482
|
type: "CLOSE";
|
|
483
|
-
}, Record<string,
|
|
483
|
+
}, Record<string, xstate344.AnyActorRef>, xstate344.StateValue, string, unknown, any, any>, {
|
|
484
484
|
type: "CAPTURE";
|
|
485
485
|
} | {
|
|
486
486
|
type: "FILE_SELECTED";
|
|
@@ -502,7 +502,7 @@ declare const documentCaptureMachine: xstate280.StateMachine<DocumentCaptureCont
|
|
|
502
502
|
type: "SKIP";
|
|
503
503
|
} | {
|
|
504
504
|
type: "CLOSE";
|
|
505
|
-
},
|
|
505
|
+
}, xstate344.AnyEventObject>;
|
|
506
506
|
}) => {
|
|
507
507
|
capturedDocument: CapturedDocument;
|
|
508
508
|
processingType: DocumentType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as stopCameraStream, j as createManager } from "./src-
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-CTPugcLL.esm.js";
|
|
3
|
+
import { A as stopCameraStream, j as createManager } from "./src-NguNDCeE.esm.js";
|
|
4
4
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
6
|
|