@incodetech/core 0.0.0-dev-20260407-8c4e1e2 → 0.0.0-dev-20260408-62a5f2f
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-CUpyIZFm.esm.js → addressSearch-DOFI7lwy.esm.js} +1 -1
- package/dist/antifraud.esm.js +1 -1
- package/dist/authentication.esm.js +4 -4
- package/dist/{authenticationManager-CgnkS8vY.esm.js → authenticationManager-C7dL_avf.esm.js} +3 -3
- package/dist/consent.d.ts +50 -50
- package/dist/consent.esm.js +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/document-capture.d.ts +84 -76
- package/dist/document-capture.esm.js +20 -11
- package/dist/document-upload.d.ts +49 -49
- package/dist/document-upload.esm.js +1 -1
- package/dist/ekyb.esm.js +4 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-vEDs15ZG.esm.js → emailManager-_9R4vm6g.esm.js} +1 -1
- package/dist/{events-Eg8xe-Yf.esm.js → events-DlHrOIRc.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.esm.js +9 -9
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureSetup-KdDqG9e8.esm.js → faceCaptureSetup-CaVWkjvE.esm.js} +2 -2
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-QZVT-TEp.esm.js → flowCompletionService-B5JemmC6.esm.js} +1 -1
- package/dist/{flowServices-CKu0cMWh.esm.js → flowServices-p22wrYPf.esm.js} +2 -2
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureManager-DbWmUEJo.esm.js → idCaptureManager-dyZzKv8L.esm.js} +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BFbZDpKO.esm.js → phoneManager-DerdUfd4.esm.js} +1 -1
- package/dist/{recordingService-B896Supr.esm.js → recordingService-483wQ6kR.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-Dn89KOGE.esm.js → selfieManager-DeOcNel4.esm.js} +3 -3
- package/dist/{session-jtJ8k-IF.esm.js → session-CUh77zj3.esm.js} +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{setup-Q8hlJT8S.esm.js → setup-XpxfZgKn.esm.js} +2 -2
- package/dist/signature.d.ts +1 -0
- package/dist/signature.esm.js +33 -9
- package/dist/wasm.esm.js +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import "./Actor-Ba71-_30.js";
|
|
|
3
3
|
import "./camera-1eeGnAaL.js";
|
|
4
4
|
import "./types-2OPf1pyv.js";
|
|
5
5
|
import { i as RegulationTypes } from "./types-CVJVQ7fp.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate131 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate131.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate131.EventObject>> | xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate131.EventObject>> | undefined;
|
|
52
|
+
}, xstate131.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate131.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate131.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate131.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate131.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
69
|
-
setConsent: {
|
|
70
|
-
type: "setConsent";
|
|
71
|
-
params: xstate0.NonReducibleUnknown;
|
|
72
|
-
};
|
|
73
|
-
toggleSigned: {
|
|
74
|
-
type: "toggleSigned";
|
|
75
|
-
params: xstate0.NonReducibleUnknown;
|
|
76
|
-
};
|
|
68
|
+
}>, xstate131.Values<{
|
|
77
69
|
setError: {
|
|
78
70
|
type: "setError";
|
|
79
|
-
params:
|
|
71
|
+
params: xstate131.NonReducibleUnknown;
|
|
80
72
|
};
|
|
81
73
|
clearError: {
|
|
82
74
|
type: "clearError";
|
|
83
|
-
params:
|
|
75
|
+
params: xstate131.NonReducibleUnknown;
|
|
84
76
|
};
|
|
85
77
|
resetContext: {
|
|
86
78
|
type: "resetContext";
|
|
87
|
-
params:
|
|
79
|
+
params: xstate131.NonReducibleUnknown;
|
|
80
|
+
};
|
|
81
|
+
setConsent: {
|
|
82
|
+
type: "setConsent";
|
|
83
|
+
params: xstate131.NonReducibleUnknown;
|
|
84
|
+
};
|
|
85
|
+
toggleSigned: {
|
|
86
|
+
type: "toggleSigned";
|
|
87
|
+
params: xstate131.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "idle" | "
|
|
92
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate131.NonReducibleUnknown, xstate131.EventObject, xstate131.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate131.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate131.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate131.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate131.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate131.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate131.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate131.RequiredActorOptions<T>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate131.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate131.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate131.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate131.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate131.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate131.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate131.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T_1>>> : never : never : never)): xstate131.ActorRefFromLogic<xstate131.GetConcreteByKey<xstate131.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate131.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate131.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate131.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate131.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate131.AnyActorLogic>(src: TLogic, ...[options]: xstate131.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate131.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate131.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredLogicInput<TLogic>>>): xstate131.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate131.ActorRef<xstate131.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate131.AnyActorRef | undefined>, xstate131.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate131.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate131.ActorRef<xstate131.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate131.AnyActorRef>, xstate131.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate131.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate131.ActorRef<xstate131.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate131.AnyActorRef>, xstate131.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate131.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-Bv55-lJ4.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import "./events-
|
|
2
|
+
import "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import "./xstate.esm-Bv55-lJ4.esm.js";
|
|
4
4
|
import "./BrowserTimerProvider-BhD2MlHg.esm.js";
|
|
5
|
-
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-
|
|
5
|
+
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-DerdUfd4.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, r as fromCallback, t as setup } from "./xstate.esm-Bv55-lJ4.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BhD2MlHg.esm.js";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-D-s_6M5H.esm.js";
|
|
2
2
|
import { t as api } from "./api-DzpnV6O7.esm.js";
|
|
3
|
-
import { _ as endpoints } from "./events-
|
|
3
|
+
import { _ as endpoints } from "./events-DlHrOIRc.esm.js";
|
|
4
4
|
import { n as IncodeCanvas } from "./deepsightService-BjgXl5hs.esm.js";
|
|
5
5
|
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DmkFpf5N.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-DHDoqSBV.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, r as fromCallback, t as setup } from "./xstate.esm-Bv55-lJ4.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BhD2MlHg.esm.js";
|
|
5
5
|
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./BaseWasmProvider-D-s_6M5H.esm.js";
|
|
2
2
|
import "./WasmUtilProvider-BpZSvZbg.esm.js";
|
|
3
3
|
import "./api-DzpnV6O7.esm.js";
|
|
4
|
-
import "./events-
|
|
4
|
+
import "./events-DlHrOIRc.esm.js";
|
|
5
5
|
import "./browserSimulation-B4ubb2OL.esm.js";
|
|
6
6
|
import "./xstate.esm-Bv55-lJ4.esm.js";
|
|
7
|
-
import "./faceCaptureSetup-
|
|
8
|
-
import { l as processFace } from "./recordingService-
|
|
7
|
+
import "./faceCaptureSetup-CaVWkjvE.esm.js";
|
|
8
|
+
import { l as processFace } from "./recordingService-483wQ6kR.esm.js";
|
|
9
9
|
import "./deepsightService-BjgXl5hs.esm.js";
|
|
10
10
|
import "./camera-DmkFpf5N.esm.js";
|
|
11
11
|
import "./getBrowser-Dtyt9J_h.esm.js";
|
|
@@ -16,6 +16,6 @@ import "./platform-Dv7a2fv-.esm.js";
|
|
|
16
16
|
import "./ITimerCapability-oixwa6nj.esm.js";
|
|
17
17
|
import "./backCameraStream-tabTmwDS.esm.js";
|
|
18
18
|
import "./getDeviceClass-DEzz4cmY.esm.js";
|
|
19
|
-
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-
|
|
19
|
+
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-DeOcNel4.esm.js";
|
|
20
20
|
|
|
21
21
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BpZSvZbg.esm.js";
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
2
|
+
import { n as eventModuleNames } from "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-Bv55-lJ4.esm.js";
|
|
4
|
-
import { n as createFaceCaptureManagerFromActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
5
|
-
import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES, y as BrowserStorageProvider } from "./recordingService-
|
|
4
|
+
import { n as createFaceCaptureManagerFromActor, t as faceCaptureMachine } from "./faceCaptureSetup-CaVWkjvE.esm.js";
|
|
5
|
+
import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES, y as BrowserStorageProvider } from "./recordingService-483wQ6kR.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
8
8
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getApi, t as api } from "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import { _ as endpoints, m as addEvent } from "./events-
|
|
2
|
+
import { _ as endpoints, m as addEvent } from "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import { t as BrowserEnvironmentProvider } from "./BrowserEnvironmentProvider-DaHeLJQw.esm.js";
|
|
4
4
|
import { t as isBrowserSimulation } from "./browserSimulation-B4ubb2OL.esm.js";
|
|
5
5
|
|
package/dist/session.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import "./events-
|
|
3
|
-
import { c as createSession } from "./session-
|
|
2
|
+
import "./events-DlHrOIRc.esm.js";
|
|
3
|
+
import { c as createSession } from "./session-CUh77zj3.esm.js";
|
|
4
4
|
import "./BrowserEnvironmentProvider-DaHeLJQw.esm.js";
|
|
5
5
|
import "./browserSimulation-B4ubb2OL.esm.js";
|
|
6
|
-
import { t as getFinishStatus } from "./flowCompletionService-
|
|
6
|
+
import { t as getFinishStatus } from "./flowCompletionService-B5JemmC6.esm.js";
|
|
7
7
|
|
|
8
8
|
export { createSession, getFinishStatus };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as warmupWasm } from "./BaseWasmProvider-D-s_6M5H.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BpZSvZbg.esm.js";
|
|
3
3
|
import { a as resetApi, o as setClient, s as setToken } from "./api-DzpnV6O7.esm.js";
|
|
4
|
-
import { h as flushEventQueue } from "./events-
|
|
5
|
-
import { i as resetSessionInit, r as initializeSession } from "./session-
|
|
4
|
+
import { h as flushEventQueue } from "./events-DlHrOIRc.esm.js";
|
|
5
|
+
import { i as resetSessionInit, r as initializeSession } from "./session-CUh77zj3.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region ../infra/src/http/createApi.ts
|
|
8
8
|
var FetchHttpError = class extends Error {
|
package/dist/signature.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import "./Actor-Ba71-_30.js";
|
|
|
7
7
|
* The flow is always: initials (Continue) → full signature (Done), then success.
|
|
8
8
|
*/
|
|
9
9
|
type SignatureConfig = {
|
|
10
|
+
type?: string;
|
|
10
11
|
/**
|
|
11
12
|
* Optional header title for both steps. When omitted, the UI uses per-step defaults
|
|
12
13
|
* (“Write your initials” / “Draw your signature”).
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-DzpnV6O7.esm.js";
|
|
2
|
-
import { _ as endpoints, m as addEvent, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-
|
|
2
|
+
import { _ as endpoints, m as addEvent, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-DlHrOIRc.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-Bv55-lJ4.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/signature/signatureServices.ts
|
|
@@ -20,6 +20,23 @@ async function addSignature(params, signal) {
|
|
|
20
20
|
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
|
|
21
21
|
return res.data;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Uploads a initials image to the Omni API.
|
|
25
|
+
* Uses JSON + base64 when `sendBase64` is true, otherwise sends raw JPEG bytes.
|
|
26
|
+
* Throws on failure.
|
|
27
|
+
*/
|
|
28
|
+
async function addInitials(params, signal) {
|
|
29
|
+
const { image, type, sendBase64 = false } = params;
|
|
30
|
+
const url = endpoints.addInitials;
|
|
31
|
+
const body = sendBase64 ? { base64Image: image } : image;
|
|
32
|
+
const res = await api.post(url, body, {
|
|
33
|
+
signal,
|
|
34
|
+
headers: { "Content-Type": sendBase64 ? "application/json" : "image/jpeg" },
|
|
35
|
+
query: { type }
|
|
36
|
+
});
|
|
37
|
+
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
|
|
38
|
+
return res.data;
|
|
39
|
+
}
|
|
23
40
|
|
|
24
41
|
//#endregion
|
|
25
42
|
//#region src/modules/signature/signatureStateMachine.ts
|
|
@@ -38,11 +55,18 @@ const signatureMachine = setup({
|
|
|
38
55
|
events: {},
|
|
39
56
|
input: {}
|
|
40
57
|
},
|
|
41
|
-
actors: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
actors: {
|
|
59
|
+
submitInitials: fromPromise(async ({ input, signal }) => addInitials({
|
|
60
|
+
image: input.image,
|
|
61
|
+
type: input.type,
|
|
62
|
+
sendBase64: input.sendBase64
|
|
63
|
+
}, signal)),
|
|
64
|
+
submitSignature: fromPromise(async ({ input, signal }) => addSignature({
|
|
65
|
+
image: input.image,
|
|
66
|
+
type: input.type,
|
|
67
|
+
sendBase64: input.sendBase64
|
|
68
|
+
}, signal))
|
|
69
|
+
},
|
|
46
70
|
actions: {
|
|
47
71
|
setSignatureValidity: assign(({ event }) => {
|
|
48
72
|
return {
|
|
@@ -111,10 +135,10 @@ const signatureMachine = setup({
|
|
|
111
135
|
entry: "trackSubmitAttempt",
|
|
112
136
|
invoke: {
|
|
113
137
|
id: "submitInitials",
|
|
114
|
-
src: "
|
|
138
|
+
src: "submitInitials",
|
|
115
139
|
input: ({ context }) => ({
|
|
116
140
|
image: context.image,
|
|
117
|
-
type:
|
|
141
|
+
type: context.config.type,
|
|
118
142
|
sendBase64: context.config.sendBase64 ?? false
|
|
119
143
|
}),
|
|
120
144
|
onDone: {
|
|
@@ -142,7 +166,7 @@ const signatureMachine = setup({
|
|
|
142
166
|
src: "submitSignature",
|
|
143
167
|
input: ({ context }) => ({
|
|
144
168
|
image: context.image,
|
|
145
|
-
type:
|
|
169
|
+
type: context.config.type,
|
|
146
170
|
sendBase64: context.config.sendBase64 ?? false
|
|
147
171
|
}),
|
|
148
172
|
onDone: {
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-
|
|
1
|
+
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-XpxfZgKn.esm.js";
|
|
2
2
|
import { n as warmupWasm } from "./BaseWasmProvider-D-s_6M5H.esm.js";
|
|
3
3
|
import "./WasmUtilProvider-BpZSvZbg.esm.js";
|
|
4
4
|
import "./api-DzpnV6O7.esm.js";
|
|
5
|
-
import "./events-
|
|
6
|
-
import "./session-
|
|
5
|
+
import "./events-DlHrOIRc.esm.js";
|
|
6
|
+
import "./session-CUh77zj3.esm.js";
|
|
7
7
|
import "./BrowserEnvironmentProvider-DaHeLJQw.esm.js";
|
|
8
8
|
import "./browserSimulation-B4ubb2OL.esm.js";
|
|
9
9
|
|