@incodetech/core 0.0.0-dev-20260409-a38d5e8 → 0.0.0-dev-20260409-09dfd52
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/BrowserStorageProvider-CXaS5Ooj.esm.js +55 -0
- package/dist/{OpenViduRecordingProvider-Bn2meybK.esm.js → OpenViduRecordingProvider-D_cVAwYQ.esm.js} +1 -1
- package/dist/{WasmUtilProvider-BpZSvZbg.esm.js → WasmUtilProvider-mWSXzp7b.esm.js} +1 -1
- package/dist/{addressSearch-DOFI7lwy.esm.js → addressSearch-C26OZIx0.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +4 -37
- package/dist/antifraudStateMachine-B74mO8vr.esm.js +39 -0
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +22 -19
- package/dist/authenticationManager-BBQHippG.esm.js +67 -0
- package/dist/{authenticationManager-C2mk36yK.d.ts → authenticationManager-DOTo1EYF.d.ts} +2 -2
- package/dist/{authenticationManager-C7dL_avf.esm.js → authenticationStateMachine-DCJ0ArAt.esm.js} +7 -67
- package/dist/{backCameraStream-tabTmwDS.esm.js → backCameraStream-D9g2wyil.esm.js} +3 -3
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +55 -55
- package/dist/consent.esm.js +4 -149
- package/dist/consentStateMachine-DIdJXJW0.esm.js +151 -0
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +4 -417
- package/dist/curpValidationStateMachine-Dp5WB6__.esm.js +419 -0
- package/dist/{deepsightLoader-Cj6SyUQ-.esm.js → deepsightLoader-CaULV07H.esm.js} +10 -10
- package/dist/{deepsightService-ByD6uIs7.d.ts → deepsightService-S-tU77m-.d.ts} +2 -2
- package/dist/{deepsightService-BjgXl5hs.esm.js → deepsightService-rPGLH8Xp.esm.js} +5 -5
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +80 -78
- package/dist/document-capture.esm.js +8 -403
- package/dist/document-upload.d.ts +53 -53
- package/dist/document-upload.esm.js +7 -7
- package/dist/documentCaptureStateMachine-ByYOCKz5.esm.js +403 -0
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +10 -655
- package/dist/ekybStateMachine-DRku_YmR.esm.js +653 -0
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +6 -10614
- package/dist/ekycStateMachine-CSWaaWVl.esm.js +10615 -0
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +6 -5
- package/dist/{emailManager-CU_hzrsl.d.ts → emailManager-D6CHM2QO.d.ts} +4 -3
- package/dist/emailManager-DByjyeY8.esm.js +238 -0
- package/dist/{emailManager-_9R4vm6g.esm.js → emailStateMachine-BoIkeCw5.esm.js} +6 -239
- package/dist/{events-DlHrOIRc.esm.js → events-W91zLpx4.esm.js} +5 -1
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +33 -26
- package/dist/face-match.d.ts +7 -6
- package/dist/face-match.esm.js +8 -129
- package/dist/faceCaptureManagerFactory-Bspg2Tyf.esm.js +117 -0
- package/dist/{faceCaptureManagerFactory-Da_-ohdg.d.ts → faceCaptureManagerFactory-P2yy30KU.d.ts} +8 -8
- package/dist/{faceCaptureSetup-CaVWkjvE.esm.js → faceCaptureSetup-CQevz86q.esm.js} +5 -119
- package/dist/faceMatchStateMachine-CLterVEC.esm.js +127 -0
- package/dist/flow.d.ts +8 -13
- package/dist/flow.esm.js +10 -29
- package/dist/{flowCompletionService-B5JemmC6.esm.js → flowCompletionService-DZSDUXus.esm.js} +2 -2
- package/dist/{flowServices-p22wrYPf.esm.js → flowServices-YATk0fgY.esm.js} +3 -3
- package/dist/geolocation.d.ts +7 -6
- package/dist/geolocation.esm.js +7 -105
- package/dist/geolocationStateMachine-CRRUCl9K.esm.js +105 -0
- package/dist/{getDeviceClass-DEzz4cmY.esm.js → getDeviceClass-DBF-ExLR.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +5 -269
- package/dist/governmentValidationStateMachine-C_iPX9VE.esm.js +271 -0
- package/dist/http.esm.js +1 -1
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +22 -20
- package/dist/idCaptureManager-CJfatzuY.esm.js +335 -0
- package/dist/{idCaptureManager-CV08v1e3.d.ts → idCaptureManager-CbZvdr9y.d.ts} +7 -7
- package/dist/{idCaptureManager-dyZzKv8L.esm.js → idCaptureStateMachine-gf-Q9piu.esm.js} +17 -346
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +8 -8
- package/dist/{lib-Bavz2qmt.esm.js → lib-BzVJ-zxG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +4 -124
- package/dist/mandatoryConsentStateMachine-BZNBJ1fK.esm.js +126 -0
- package/dist/{openviduLazy-vhrVZCr_.esm.js → openviduLazy-CLg_-u0m.esm.js} +2 -2
- package/dist/openviduLazy-rFXBtZVZ.esm.js +3 -0
- package/dist/{permissionServices-Cskq32Yd.esm.js → permissionServices-Cisv73eQ.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +6 -5
- package/dist/phoneManager-DhC4obPF.esm.js +258 -0
- package/dist/{phoneManager-ulJuGvJ8.d.ts → phoneManager-Zwr-qCnC.d.ts} +2 -2
- package/dist/{phoneManager-DerdUfd4.esm.js → phoneStateMachine-Cc_w4tC0.esm.js} +5 -258
- package/dist/{recordingService-483wQ6kR.esm.js → recordingService-CCfxUY7-.esm.js} +14 -68
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +5 -247
- package/dist/redirectToMobileStateMachine-vOe27Ufw.esm.js +249 -0
- package/dist/runChildModule-DVC4JEjp.esm.js +27 -0
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +22 -19
- package/dist/selfieManager-CorEST5h.esm.js +60 -0
- package/dist/{selfieManager-DCRP7X75.d.ts → selfieManager-DNwfxieF.d.ts} +2 -2
- package/dist/selfieStateMachine-3b19ON1z.esm.js +56 -0
- package/dist/{session-CUh77zj3.esm.js → session-B_rKSRql.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{setup-DpHakxsC.d.ts → setup-BYqwVLiv.d.ts} +1 -1
- package/dist/{setup-XpxfZgKn.esm.js → setup-DLvhsDol.esm.js} +6 -5
- package/dist/signature.d.ts +4 -3
- package/dist/signature.esm.js +6 -189
- package/dist/signatureStateMachine-CU92zCXU.esm.js +189 -0
- package/dist/{stats-DHDoqSBV.esm.js → stats-gFD2351t.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-2OPf1pyv.d.ts → types-CYJ0Ish6.d.ts} +1 -1
- package/dist/types-CjsEZRcz.d.ts +35 -0
- package/dist/{types-CVJVQ7fp.d.ts → types-DU8HmI5U.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +8 -8
- package/dist/workflow.d.ts +813 -0
- package/dist/workflow.esm.js +600 -0
- package/package.json +7 -3
- package/dist/openviduLazy-BIPHozOu.esm.js +0 -3
- package/dist/selfieManager-DeOcNel4.esm.js +0 -110
- /package/dist/{Actor-Ba71-_30.d.ts → Actor-DbWH1K6E.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-D-s_6M5H.esm.js → BaseWasmProvider-DoYDYH1z.esm.js} +0 -0
- /package/dist/{BrowserEnvironmentProvider-DaHeLJQw.esm.js → BrowserEnvironmentProvider-BtKLxTx4.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-BhD2MlHg.esm.js → BrowserTimerProvider-v7bpbrAk.esm.js} +0 -0
- /package/dist/{ITimerCapability-oixwa6nj.esm.js → ITimerCapability-BZO_FsCo.esm.js} +0 -0
- /package/dist/{Manager-BN2g_I8W.d.ts → Manager-DcPMRgTm.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-CodM3e0E.esm.js → MotionSensorProvider-D90R4qwV.esm.js} +0 -0
- /package/dist/{StateMachine-BoJsfMvg.d.ts → StateMachine-BBuIgsHT.d.ts} +0 -0
- /package/dist/{api-DzpnV6O7.esm.js → api-aa9Mx20l.esm.js} +0 -0
- /package/dist/{browserSimulation-B4ubb2OL.esm.js → browserSimulation-DFqGKQAD.esm.js} +0 -0
- /package/dist/{camera-1eeGnAaL.d.ts → camera-DATT31my.d.ts} +0 -0
- /package/dist/{camera-DmkFpf5N.esm.js → camera-DpPQS_-5.esm.js} +0 -0
- /package/dist/{chunk-DsxENsBR.esm.js → chunk-YGHKo4MY.esm.js} +0 -0
- /package/dist/{displayErrors-BZLX7idb.d.ts → displayErrors-xrg0ejaS.d.ts} +0 -0
- /package/dist/{flowCompletionService-D-3YCHyO.d.ts → flowCompletionService-gxt5reFV.d.ts} +0 -0
- /package/dist/{getBrowser-Dtyt9J_h.esm.js → getBrowser-DCcD7H-M.esm.js} +0 -0
- /package/dist/{platform-Dv7a2fv-.esm.js → platform-DctkySJU.esm.js} +0 -0
- /package/dist/{types-D_QfFKxT.d.ts → types-CIjb0FKu.d.ts} +0 -0
- /package/dist/{warmup-CIj_wEV_.d.ts → warmup-Ckb1hN85.d.ts} +0 -0
- /package/dist/{xstate.esm-Bv55-lJ4.esm.js → xstate.esm-B7FPE6br.esm.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { i as RegulationTypes } from "./types-
|
|
6
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-DcPMRgTm.js";
|
|
2
|
+
import "./Actor-DbWH1K6E.js";
|
|
3
|
+
import "./camera-DATT31my.js";
|
|
4
|
+
import "./types-CYJ0Ish6.js";
|
|
5
|
+
import { i as RegulationTypes } from "./types-DU8HmI5U.js";
|
|
6
|
+
import * as xstate63 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: xstate63.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate63.EventObject>> | undefined;
|
|
52
|
+
}, xstate63.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate63.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate63.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
68
|
+
}>, xstate63.Values<{
|
|
69
69
|
setError: {
|
|
70
70
|
type: "setError";
|
|
71
|
-
params:
|
|
71
|
+
params: xstate63.NonReducibleUnknown;
|
|
72
72
|
};
|
|
73
73
|
clearError: {
|
|
74
74
|
type: "clearError";
|
|
75
|
-
params:
|
|
76
|
-
};
|
|
77
|
-
resetContext: {
|
|
78
|
-
type: "resetContext";
|
|
79
|
-
params: xstate67.NonReducibleUnknown;
|
|
75
|
+
params: xstate63.NonReducibleUnknown;
|
|
80
76
|
};
|
|
81
77
|
setConsent: {
|
|
82
78
|
type: "setConsent";
|
|
83
|
-
params:
|
|
79
|
+
params: xstate63.NonReducibleUnknown;
|
|
84
80
|
};
|
|
85
81
|
toggleSigned: {
|
|
86
82
|
type: "toggleSigned";
|
|
87
|
-
params:
|
|
83
|
+
params: xstate63.NonReducibleUnknown;
|
|
84
|
+
};
|
|
85
|
+
resetContext: {
|
|
86
|
+
type: "resetContext";
|
|
87
|
+
params: xstate63.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, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate63.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate63.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate63.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate63.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate63.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate63.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate63.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate63.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate63.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate63.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate63.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate63.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
|
@@ -1,128 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { a as createActor,
|
|
1
|
+
import "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BZNBJ1fK.esm.js";
|
|
4
5
|
|
|
5
|
-
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
|
6
|
-
async function fetchMandatoryConsent(regulationType, signal) {
|
|
7
|
-
const res = await api.get(endpoints.getConsents, {
|
|
8
|
-
signal,
|
|
9
|
-
query: {
|
|
10
|
-
type: "MANDATORY",
|
|
11
|
-
language: "en",
|
|
12
|
-
regulationType
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
if (!res.ok) throw new Error(`GET ${endpoints.getConsents} failed: ${res.status} ${res.statusText}`);
|
|
16
|
-
return res.data;
|
|
17
|
-
}
|
|
18
|
-
async function submitMandatoryConsent(params, signal) {
|
|
19
|
-
const res = await api.post(endpoints.submitMlConsent, params, { signal });
|
|
20
|
-
if (!res.ok) throw new Error(`POST ${endpoints.submitMlConsent} failed: ${res.status} ${res.statusText}`);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.ts
|
|
25
|
-
const mandatoryConsentMachine = setup({
|
|
26
|
-
types: {
|
|
27
|
-
context: {},
|
|
28
|
-
events: {},
|
|
29
|
-
input: {}
|
|
30
|
-
},
|
|
31
|
-
actors: {
|
|
32
|
-
fetchConsent: fromPromise(async ({ input, signal }) => fetchMandatoryConsent(input.config.consentType, signal)),
|
|
33
|
-
submitConsent: fromPromise(async ({ input, signal }) => submitMandatoryConsent({ consents: [{
|
|
34
|
-
id: input.consentId,
|
|
35
|
-
isSigned: input.isSigned
|
|
36
|
-
}] }, signal))
|
|
37
|
-
},
|
|
38
|
-
actions: {
|
|
39
|
-
setConsent: assign(({ event }) => {
|
|
40
|
-
return {
|
|
41
|
-
consent: event.output.consents[0],
|
|
42
|
-
isSigned: false,
|
|
43
|
-
error: void 0
|
|
44
|
-
};
|
|
45
|
-
}),
|
|
46
|
-
toggleSigned: assign(({ context }) => ({ isSigned: !context.isSigned })),
|
|
47
|
-
setError: assign(({ event }) => ({ error: String(event.error) })),
|
|
48
|
-
clearError: assign({ error: () => void 0 }),
|
|
49
|
-
resetContext: assign(({ context }) => ({
|
|
50
|
-
config: context.config,
|
|
51
|
-
consent: void 0,
|
|
52
|
-
isSigned: false,
|
|
53
|
-
error: void 0
|
|
54
|
-
}))
|
|
55
|
-
},
|
|
56
|
-
guards: { canSubmit: ({ context }) => Boolean(context.consent?.id) && context.isSigned }
|
|
57
|
-
}).createMachine({
|
|
58
|
-
id: "mandatoryConsent",
|
|
59
|
-
initial: "idle",
|
|
60
|
-
context: ({ input }) => ({
|
|
61
|
-
config: input.config,
|
|
62
|
-
consent: void 0,
|
|
63
|
-
isSigned: false,
|
|
64
|
-
error: void 0
|
|
65
|
-
}),
|
|
66
|
-
states: {
|
|
67
|
-
idle: { on: { LOAD: {
|
|
68
|
-
target: "loading",
|
|
69
|
-
actions: "clearError"
|
|
70
|
-
} } },
|
|
71
|
-
loading: { invoke: {
|
|
72
|
-
id: "fetchConsent",
|
|
73
|
-
src: "fetchConsent",
|
|
74
|
-
input: ({ context }) => ({ config: context.config }),
|
|
75
|
-
onDone: {
|
|
76
|
-
target: "display",
|
|
77
|
-
actions: "setConsent"
|
|
78
|
-
},
|
|
79
|
-
onError: {
|
|
80
|
-
target: "error",
|
|
81
|
-
actions: "setError"
|
|
82
|
-
}
|
|
83
|
-
} },
|
|
84
|
-
display: { on: {
|
|
85
|
-
TOGGLE: { actions: "toggleSigned" },
|
|
86
|
-
SUBMIT: {
|
|
87
|
-
target: "submitting",
|
|
88
|
-
guard: "canSubmit"
|
|
89
|
-
},
|
|
90
|
-
CANCEL: { target: "closed" },
|
|
91
|
-
RETRY: {
|
|
92
|
-
target: "loading",
|
|
93
|
-
actions: "clearError"
|
|
94
|
-
}
|
|
95
|
-
} },
|
|
96
|
-
submitting: { invoke: {
|
|
97
|
-
id: "submitConsent",
|
|
98
|
-
src: "submitConsent",
|
|
99
|
-
input: ({ context }) => ({
|
|
100
|
-
consentId: context.consent?.id ?? "",
|
|
101
|
-
isSigned: context.isSigned
|
|
102
|
-
}),
|
|
103
|
-
onDone: { target: "finished" },
|
|
104
|
-
onError: {
|
|
105
|
-
target: "display",
|
|
106
|
-
actions: "setError"
|
|
107
|
-
}
|
|
108
|
-
} },
|
|
109
|
-
error: { on: {
|
|
110
|
-
RETRY: {
|
|
111
|
-
target: "loading",
|
|
112
|
-
actions: "clearError"
|
|
113
|
-
},
|
|
114
|
-
CANCEL: { target: "closed" },
|
|
115
|
-
RESET: {
|
|
116
|
-
target: "idle",
|
|
117
|
-
actions: "resetContext"
|
|
118
|
-
}
|
|
119
|
-
} },
|
|
120
|
-
finished: { type: "final" },
|
|
121
|
-
closed: { type: "final" }
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
//#endregion
|
|
126
6
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
127
7
|
function createMandatoryConsentActor(options) {
|
|
128
8
|
return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { t as api } from "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
|
6
|
+
async function fetchMandatoryConsent(regulationType, signal) {
|
|
7
|
+
const res = await api.get(endpoints.getConsents, {
|
|
8
|
+
signal,
|
|
9
|
+
query: {
|
|
10
|
+
type: "MANDATORY",
|
|
11
|
+
language: "en",
|
|
12
|
+
regulationType
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
if (!res.ok) throw new Error(`GET ${endpoints.getConsents} failed: ${res.status} ${res.statusText}`);
|
|
16
|
+
return res.data;
|
|
17
|
+
}
|
|
18
|
+
async function submitMandatoryConsent(params, signal) {
|
|
19
|
+
const res = await api.post(endpoints.submitMlConsent, params, { signal });
|
|
20
|
+
if (!res.ok) throw new Error(`POST ${endpoints.submitMlConsent} failed: ${res.status} ${res.statusText}`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.ts
|
|
25
|
+
const mandatoryConsentMachine = setup({
|
|
26
|
+
types: {
|
|
27
|
+
context: {},
|
|
28
|
+
events: {},
|
|
29
|
+
input: {}
|
|
30
|
+
},
|
|
31
|
+
actors: {
|
|
32
|
+
fetchConsent: fromPromise(async ({ input, signal }) => fetchMandatoryConsent(input.config.consentType, signal)),
|
|
33
|
+
submitConsent: fromPromise(async ({ input, signal }) => submitMandatoryConsent({ consents: [{
|
|
34
|
+
id: input.consentId,
|
|
35
|
+
isSigned: input.isSigned
|
|
36
|
+
}] }, signal))
|
|
37
|
+
},
|
|
38
|
+
actions: {
|
|
39
|
+
setConsent: assign(({ event }) => {
|
|
40
|
+
return {
|
|
41
|
+
consent: event.output.consents[0],
|
|
42
|
+
isSigned: false,
|
|
43
|
+
error: void 0
|
|
44
|
+
};
|
|
45
|
+
}),
|
|
46
|
+
toggleSigned: assign(({ context }) => ({ isSigned: !context.isSigned })),
|
|
47
|
+
setError: assign(({ event }) => ({ error: String(event.error) })),
|
|
48
|
+
clearError: assign({ error: () => void 0 }),
|
|
49
|
+
resetContext: assign(({ context }) => ({
|
|
50
|
+
config: context.config,
|
|
51
|
+
consent: void 0,
|
|
52
|
+
isSigned: false,
|
|
53
|
+
error: void 0
|
|
54
|
+
}))
|
|
55
|
+
},
|
|
56
|
+
guards: { canSubmit: ({ context }) => Boolean(context.consent?.id) && context.isSigned }
|
|
57
|
+
}).createMachine({
|
|
58
|
+
id: "mandatoryConsent",
|
|
59
|
+
initial: "idle",
|
|
60
|
+
context: ({ input }) => ({
|
|
61
|
+
config: input.config,
|
|
62
|
+
consent: void 0,
|
|
63
|
+
isSigned: false,
|
|
64
|
+
error: void 0
|
|
65
|
+
}),
|
|
66
|
+
states: {
|
|
67
|
+
idle: { on: { LOAD: {
|
|
68
|
+
target: "loading",
|
|
69
|
+
actions: "clearError"
|
|
70
|
+
} } },
|
|
71
|
+
loading: { invoke: {
|
|
72
|
+
id: "fetchConsent",
|
|
73
|
+
src: "fetchConsent",
|
|
74
|
+
input: ({ context }) => ({ config: context.config }),
|
|
75
|
+
onDone: {
|
|
76
|
+
target: "display",
|
|
77
|
+
actions: "setConsent"
|
|
78
|
+
},
|
|
79
|
+
onError: {
|
|
80
|
+
target: "error",
|
|
81
|
+
actions: "setError"
|
|
82
|
+
}
|
|
83
|
+
} },
|
|
84
|
+
display: { on: {
|
|
85
|
+
TOGGLE: { actions: "toggleSigned" },
|
|
86
|
+
SUBMIT: {
|
|
87
|
+
target: "submitting",
|
|
88
|
+
guard: "canSubmit"
|
|
89
|
+
},
|
|
90
|
+
CANCEL: { target: "closed" },
|
|
91
|
+
RETRY: {
|
|
92
|
+
target: "loading",
|
|
93
|
+
actions: "clearError"
|
|
94
|
+
}
|
|
95
|
+
} },
|
|
96
|
+
submitting: { invoke: {
|
|
97
|
+
id: "submitConsent",
|
|
98
|
+
src: "submitConsent",
|
|
99
|
+
input: ({ context }) => ({
|
|
100
|
+
consentId: context.consent?.id ?? "",
|
|
101
|
+
isSigned: context.isSigned
|
|
102
|
+
}),
|
|
103
|
+
onDone: { target: "finished" },
|
|
104
|
+
onError: {
|
|
105
|
+
target: "display",
|
|
106
|
+
actions: "setError"
|
|
107
|
+
}
|
|
108
|
+
} },
|
|
109
|
+
error: { on: {
|
|
110
|
+
RETRY: {
|
|
111
|
+
target: "loading",
|
|
112
|
+
actions: "clearError"
|
|
113
|
+
},
|
|
114
|
+
CANCEL: { target: "closed" },
|
|
115
|
+
RESET: {
|
|
116
|
+
target: "idle",
|
|
117
|
+
actions: "resetContext"
|
|
118
|
+
}
|
|
119
|
+
} },
|
|
120
|
+
finished: { type: "final" },
|
|
121
|
+
closed: { type: "final" }
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
//#endregion
|
|
126
|
+
export { mandatoryConsentMachine as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __toDynamicImportESM } from "./chunk-
|
|
1
|
+
import { a as __toDynamicImportESM } from "./chunk-YGHKo4MY.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/providers/browser/openviduLazy.ts
|
|
4
4
|
let openViduImport;
|
|
5
5
|
async function loadOpenVidu() {
|
|
6
6
|
if (openViduImport) return openViduImport;
|
|
7
|
-
openViduImport = import("./lib-
|
|
7
|
+
openViduImport = import("./lib-BzVJ-zxG.esm.js").then(__toDynamicImportESM(1));
|
|
8
8
|
return openViduImport;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-
|
|
2
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-
|
|
1
|
+
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DpPQS_-5.esm.js";
|
|
2
|
+
import { t as MotionSensorProvider } from "./MotionSensorProvider-D90R4qwV.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/media/permissions.ts
|
|
5
5
|
async function queryPermission(name) {
|
package/dist/phone.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import "./Manager-DcPMRgTm.js";
|
|
2
|
+
import "./Actor-DbWH1K6E.js";
|
|
3
|
+
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-Zwr-qCnC.js";
|
|
4
4
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./xstate.esm-
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import {
|
|
1
|
+
import "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import "./events-W91zLpx4.esm.js";
|
|
3
|
+
import "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-v7bpbrAk.esm.js";
|
|
5
|
+
import { t as phoneMachine } from "./phoneStateMachine-Cc_w4tC0.esm.js";
|
|
6
|
+
import { t as createPhoneManager } from "./phoneManager-DhC4obPF.esm.js";
|
|
6
7
|
|
|
7
8
|
export { createPhoneManager, phoneMachine };
|