@incodetech/core 2.0.0-rc.0 → 2.0.0
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/package.json +3 -3
- package/dist/Actor-CI32dTbG.d.ts +0 -2
- package/dist/BaseWasmProvider-C_DLEI40.esm.js +0 -1118
- package/dist/BrowserStorageProvider-CuOW1Er2.esm.js +0 -55
- package/dist/BrowserTimerProvider-DhNc_x02.esm.js +0 -22
- package/dist/ITimerCapability-C67ZRskg.esm.js +0 -7
- package/dist/IpifyProvider-D7jx52AL.esm.js +0 -139
- package/dist/Manager-C8PrhBOx.d.ts +0 -19
- package/dist/MotionSensorProvider-4v7xkqAp.esm.js +0 -254
- package/dist/OpenViduRecordingProvider-CMu6XVdc.esm.js +0 -87
- package/dist/StateMachine-BCQrZJhf.d.ts +0 -2
- package/dist/WasmUtilProvider-j98OJf-S.esm.js +0 -114
- package/dist/addressSearch-BpTbTWCa.esm.js +0 -430
- package/dist/ae-signature-DDDZmWXj.esm.js +0 -12
- package/dist/ae-signature.d.ts +0 -25
- package/dist/ae-signature.esm.js +0 -8
- package/dist/antifraud.d.ts +0 -57
- package/dist/antifraud.esm.js +0 -45
- package/dist/antifraudStateMachine-O0TMf6yc.esm.js +0 -39
- package/dist/api-CESGtpbH.esm.js +0 -53
- package/dist/authentication.d.ts +0 -12
- package/dist/authentication.esm.js +0 -25
- package/dist/authenticationManager-5M-fKzXx.esm.js +0 -67
- package/dist/authenticationManager-C83GNIhl.d.ts +0 -66
- package/dist/authenticationStateMachine-BMZqatiF.esm.js +0 -139
- package/dist/backCameraStream-DMdMeGk2.esm.js +0 -346
- package/dist/browserSimulation-gxD8cSpM.esm.js +0 -20
- package/dist/camera-DBSxa6ML.d.ts +0 -4
- package/dist/camera-PA2Ljri3.esm.js +0 -22
- package/dist/camera.d.ts +0 -15
- package/dist/camera.esm.js +0 -5
- package/dist/chunk-CRF6K_H_.esm.js +0 -49
- package/dist/consent.d.ts +0 -398
- package/dist/consent.esm.js +0 -79
- package/dist/consentStateMachine-CCT-B60O.esm.js +0 -151
- package/dist/cpf-PPz2Njto.esm.js +0 -38
- package/dist/cpf-ocr.d.ts +0 -204
- package/dist/cpf-ocr.esm.js +0 -177
- package/dist/cross-document-data-match.d.ts +0 -34
- package/dist/cross-document-data-match.esm.js +0 -71
- package/dist/curp-validation.d.ts +0 -188
- package/dist/curp-validation.esm.js +0 -110
- package/dist/curpValidationStateMachine-CitWLr2c.esm.js +0 -595
- package/dist/custom-fields.d.ts +0 -115
- package/dist/custom-fields.esm.js +0 -177
- package/dist/custom-watchlist.d.ts +0 -66
- package/dist/custom-watchlist.esm.js +0 -86
- package/dist/dateUtils-UoN5xswP.esm.js +0 -23
- package/dist/deepsightLoader-Cm4JIT_z.esm.js +0 -52
- package/dist/deepsightService-CEVxzehb.d.ts +0 -412
- package/dist/deepsightService-O74l4Y__.esm.js +0 -489
- package/dist/device.d.ts +0 -46
- package/dist/device.esm.js +0 -106
- package/dist/displayErrors-DqJ_IbsG.d.ts +0 -39
- package/dist/document-capture.d.ts +0 -906
- package/dist/document-capture.esm.js +0 -156
- package/dist/document-upload.d.ts +0 -331
- package/dist/document-upload.esm.js +0 -203
- package/dist/documentCaptureStateMachine-BqzTDy9k.esm.js +0 -394
- package/dist/dynamic-forms.d.ts +0 -178
- package/dist/dynamic-forms.esm.js +0 -323
- package/dist/ekyb.d.ts +0 -148
- package/dist/ekyb.esm.js +0 -127
- package/dist/ekybStateMachine-B59rQjgj.esm.js +0 -674
- package/dist/ekyc.d.ts +0 -164
- package/dist/ekyc.esm.js +0 -104
- package/dist/ekycStateMachine-oeO0Iekd.esm.js +0 -10626
- package/dist/electronic-signature.d.ts +0 -4
- package/dist/electronic-signature.esm.js +0 -7
- package/dist/electronicSignatureManager-D9OHzTpG.esm.js +0 -428
- package/dist/email.d.ts +0 -4
- package/dist/email.esm.js +0 -9
- package/dist/emailManager-DIfnS5g1.d.ts +0 -352
- package/dist/emailManager-wAV0LE-H.esm.js +0 -238
- package/dist/emailStateMachine-DOf4j58N.esm.js +0 -292
- package/dist/endpoints-CnN3SyDa.esm.js +0 -87
- package/dist/events-D6-e4vok.esm.js +0 -596
- package/dist/events.d.ts +0 -265
- package/dist/events.esm.js +0 -4
- package/dist/extensibility.d.ts +0 -122
- package/dist/extensibility.esm.js +0 -43
- package/dist/face-match.d.ts +0 -228
- package/dist/face-match.esm.js +0 -173
- package/dist/faceCaptureManagerFactory-Dh2PdGlF.esm.js +0 -290
- package/dist/faceCaptureManagerFactory-yqtpxjnN.d.ts +0 -690
- package/dist/faceCaptureSetup-B3faSpYA.esm.js +0 -873
- package/dist/faceMatchStateMachine-DNFrxTFS.esm.js +0 -127
- package/dist/flow-events.d.ts +0 -6
- package/dist/flow-events.esm.js +0 -0
- package/dist/flow.d.ts +0 -358
- package/dist/flow.esm.js +0 -825
- package/dist/flowCompletionService-DhkT4SRY.d.ts +0 -10
- package/dist/flowCompletionService-P54yzGvA.esm.js +0 -13
- package/dist/flowServices-DTsm-Vf1.esm.js +0 -188
- package/dist/geolocation.d.ts +0 -127
- package/dist/geolocation.esm.js +0 -89
- package/dist/geolocationStateMachine-asasuHY2.esm.js +0 -105
- package/dist/getBrowser-BSXUTWXw.esm.js +0 -41
- package/dist/getDeviceClass-BSntT9_j.esm.js +0 -14
- package/dist/government-validation.d.ts +0 -67
- package/dist/government-validation.esm.js +0 -81
- package/dist/governmentValidationStateMachine-BDDYrJTo.esm.js +0 -271
- package/dist/home.d.ts +0 -99
- package/dist/home.esm.js +0 -61
- package/dist/http.d.ts +0 -68
- package/dist/http.esm.js +0 -3
- package/dist/id-ocr.d.ts +0 -635
- package/dist/id-ocr.esm.js +0 -86
- package/dist/id-verification.d.ts +0 -190
- package/dist/id-verification.esm.js +0 -43
- package/dist/id.d.ts +0 -24
- package/dist/id.esm.js +0 -164
- package/dist/idCaptureManager-B9TGA5dq.d.ts +0 -956
- package/dist/idCaptureManager-DMK0GIt3.esm.js +0 -581
- package/dist/idCaptureStateMachine-Bq0fVZXl.esm.js +0 -2954
- package/dist/idOcrStateMachine-YbjjC_Gg.esm.js +0 -388
- package/dist/idVerificationStateMachine-xbw9HP1Z.esm.js +0 -71
- package/dist/identity-reuse.d.ts +0 -530
- package/dist/identity-reuse.esm.js +0 -274
- package/dist/index-BLKtMA0g.d.ts +0 -1177
- package/dist/index-BcRG8rtJ.d.ts +0 -97
- package/dist/index.d.ts +0 -3
- package/dist/index.esm.js +0 -12
- package/dist/invokeOnCaptureCallback-rc6kBHo5.esm.js +0 -30
- package/dist/lib-BB0B_qQX.esm.js +0 -12499
- package/dist/mandatory-consent.d.ts +0 -412
- package/dist/mandatory-consent.esm.js +0 -78
- package/dist/mandatoryConsentStateMachine-Cnco1jvn.esm.js +0 -126
- package/dist/openviduLazy-Cm0XFh_v.esm.js +0 -3
- package/dist/openviduLazy-Cok70ZSg.esm.js +0 -12
- package/dist/permissionServices-D_i6nzEw.esm.js +0 -50
- package/dist/phone.d.ts +0 -4
- package/dist/phone.esm.js +0 -9
- package/dist/phoneManager-B6M30hKE.d.ts +0 -397
- package/dist/phoneManager-DAJbGhlY.esm.js +0 -256
- package/dist/phoneStateMachine-CuPARRaT.esm.js +0 -351
- package/dist/platform-CfrjKhmi.esm.js +0 -83
- package/dist/qe-signature-DFo_Cc-I.esm.js +0 -12
- package/dist/qe-signature.d.ts +0 -25
- package/dist/qe-signature.esm.js +0 -8
- package/dist/recordingService-Ig2UgbLv.esm.js +0 -1003
- package/dist/redirect-to-mobile.d.ts +0 -107
- package/dist/redirect-to-mobile.esm.js +0 -102
- package/dist/redirectToMobileStateMachine-BOEqe46A.esm.js +0 -249
- package/dist/runChildModule-CqqwqAkW.esm.js +0 -219
- package/dist/selfie.d.ts +0 -26
- package/dist/selfie.esm.js +0 -146
- package/dist/selfieManager-D0lSgd-J.d.ts +0 -68
- package/dist/selfieManager-Duisl7qN.esm.js +0 -60
- package/dist/selfieStateMachine-D76whWEf.esm.js +0 -68
- package/dist/session-BS-d_vuE.esm.js +0 -3206
- package/dist/session.d.ts +0 -217
- package/dist/session.esm.js +0 -9
- package/dist/setup-Buy-hyj4.esm.js +0 -887
- package/dist/setup-C5AITV8m.d.ts +0 -254
- package/dist/signature.d.ts +0 -94
- package/dist/signature.esm.js +0 -66
- package/dist/signatureStateMachine-B5-QVUve.esm.js +0 -132
- package/dist/stats-CIfiPzb1.esm.js +0 -16
- package/dist/stats.d.ts +0 -16
- package/dist/stats.esm.js +0 -4
- package/dist/trust-graph.d.ts +0 -54
- package/dist/trust-graph.esm.js +0 -56
- package/dist/types-B06Ypu2F.d.ts +0 -49
- package/dist/types-BP1m8VRw.d.ts +0 -340
- package/dist/types-CAD4va6a.d.ts +0 -5
- package/dist/types-CFV9G_7j.d.ts +0 -24
- package/dist/warmup-CEcppFiS.d.ts +0 -63
- package/dist/wasm.d.ts +0 -15
- package/dist/wasm.esm.js +0 -12
- package/dist/watchlist-for-business.d.ts +0 -79
- package/dist/watchlist-for-business.esm.js +0 -148
- package/dist/watchlist.d.ts +0 -62
- package/dist/watchlist.esm.js +0 -86
- package/dist/watchlistServices-DMbUhkBX.esm.js +0 -12
- package/dist/workflow.d.ts +0 -907
- package/dist/workflow.esm.js +0 -702
- package/dist/xstate.esm-B70JrNqo.esm.js +0 -3404
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
2
|
-
import { t as api } from "./api-CESGtpbH.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-CnN3SyDa.esm.js";
|
|
4
|
-
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-B70JrNqo.esm.js";
|
|
5
|
-
|
|
6
|
-
//#region src/modules/email/emailServices.ts
|
|
7
|
-
function getEmailServerFailureReason(error, invalidStatus) {
|
|
8
|
-
if (error.status === invalidStatus) return "invalidEmail";
|
|
9
|
-
return "serverError";
|
|
10
|
-
}
|
|
11
|
-
async function fetchEmail(signal) {
|
|
12
|
-
const res = await api.get(endpoints.getEmail, { signal });
|
|
13
|
-
if (!res.ok) throw new Error(`GET ${endpoints.getEmail} failed: ${res.status} ${res.statusText}`);
|
|
14
|
-
return res.data;
|
|
15
|
-
}
|
|
16
|
-
async function addEmail(params, signal) {
|
|
17
|
-
try {
|
|
18
|
-
return (await api.post(endpoints.email, { email: params.email }, { signal })).data;
|
|
19
|
-
} catch (error) {
|
|
20
|
-
throw new Error(getEmailServerFailureReason(error, 400));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async function sendEmailOtp(signal) {
|
|
24
|
-
try {
|
|
25
|
-
await api.get(`${endpoints.sendSmsOtp}?communicationchannel=EMAIL`, { signal });
|
|
26
|
-
} catch (error) {
|
|
27
|
-
throw new Error(getEmailServerFailureReason(error));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
async function verifyEmailOtp(code, signal) {
|
|
31
|
-
try {
|
|
32
|
-
return (await api.get(`${endpoints.compareOtp}?code=${code}&channel=EMAIL`, { signal })).data;
|
|
33
|
-
} catch (error) {
|
|
34
|
-
throw new Error(getEmailServerFailureReason(error));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/modules/email/emailStateMachine.ts
|
|
40
|
-
function getErrorMessage(error) {
|
|
41
|
-
if (error instanceof Error) return error.message;
|
|
42
|
-
return String(error);
|
|
43
|
-
}
|
|
44
|
-
const RESEND_TIMER_SECONDS = 30;
|
|
45
|
-
const emailMachine = setup({
|
|
46
|
-
types: {
|
|
47
|
-
context: {},
|
|
48
|
-
events: {},
|
|
49
|
-
input: {}
|
|
50
|
-
},
|
|
51
|
-
actors: {
|
|
52
|
-
fetchEmail: fromPromise(async ({ signal }) => {
|
|
53
|
-
return fetchEmail(signal);
|
|
54
|
-
}),
|
|
55
|
-
submitEmail: fromPromise(async ({ input, signal }) => {
|
|
56
|
-
return addEmail({ email: input.email }, signal);
|
|
57
|
-
}),
|
|
58
|
-
sendOtp: fromPromise(async ({ signal }) => {
|
|
59
|
-
return sendEmailOtp(signal);
|
|
60
|
-
}),
|
|
61
|
-
verifyOtp: fromPromise(async ({ input, signal }) => {
|
|
62
|
-
return verifyEmailOtp(input.code, signal);
|
|
63
|
-
}),
|
|
64
|
-
resendTimer: fromCallback(({ input, sendBack }) => {
|
|
65
|
-
const timer = BrowserTimerProvider.getInstance();
|
|
66
|
-
let remaining = input.seconds;
|
|
67
|
-
if (remaining <= 0) return () => {};
|
|
68
|
-
const interval = timer.setInterval(() => {
|
|
69
|
-
sendBack({ type: "TICK" });
|
|
70
|
-
remaining -= 1;
|
|
71
|
-
if (remaining <= 0) timer.clearInterval(interval);
|
|
72
|
-
}, 1e3);
|
|
73
|
-
return () => timer.clearInterval(interval);
|
|
74
|
-
})
|
|
75
|
-
},
|
|
76
|
-
actions: {
|
|
77
|
-
setPrefilledEmail: assign(({ event }) => {
|
|
78
|
-
const email = event.output.email;
|
|
79
|
-
return {
|
|
80
|
-
prefilledEmail: email,
|
|
81
|
-
email
|
|
82
|
-
};
|
|
83
|
-
}),
|
|
84
|
-
setEmail: assign(({ event }) => {
|
|
85
|
-
const e = event;
|
|
86
|
-
return {
|
|
87
|
-
email: e.email,
|
|
88
|
-
isValid: e.isValid,
|
|
89
|
-
emailError: void 0
|
|
90
|
-
};
|
|
91
|
-
}),
|
|
92
|
-
setEmailError: assign(({ event }) => ({ emailError: getErrorMessage(event.error) })),
|
|
93
|
-
setError: assign(({ event }) => ({ error: getErrorMessage(event.error) })),
|
|
94
|
-
clearError: assign({ error: () => void 0 }),
|
|
95
|
-
clearEmailError: assign({ emailError: () => void 0 }),
|
|
96
|
-
setOtpCode: assign(({ event }) => ({
|
|
97
|
-
otpCode: event.code,
|
|
98
|
-
otpError: void 0
|
|
99
|
-
})),
|
|
100
|
-
setOtpError: assign(({ context, event }) => ({
|
|
101
|
-
otpError: getErrorMessage(event.error),
|
|
102
|
-
attemptsRemaining: context.attemptsRemaining - 1
|
|
103
|
-
})),
|
|
104
|
-
setOtpRequestError: assign(({ event }) => ({ otpError: getErrorMessage(event.error) })),
|
|
105
|
-
clearOtpError: assign({
|
|
106
|
-
otpError: () => void 0,
|
|
107
|
-
otpCode: () => ""
|
|
108
|
-
}),
|
|
109
|
-
startResendTimer: assign({
|
|
110
|
-
resendTimer: () => RESEND_TIMER_SECONDS,
|
|
111
|
-
resendTimerActive: () => true
|
|
112
|
-
}),
|
|
113
|
-
tickResendTimer: assign(({ context }) => {
|
|
114
|
-
const newTimer = Math.max(0, context.resendTimer - 1);
|
|
115
|
-
return {
|
|
116
|
-
resendTimer: newTimer,
|
|
117
|
-
resendTimerActive: newTimer > 0
|
|
118
|
-
};
|
|
119
|
-
}),
|
|
120
|
-
resetContext: assign(({ context }) => ({
|
|
121
|
-
config: context.config,
|
|
122
|
-
email: "",
|
|
123
|
-
isValid: false,
|
|
124
|
-
emailError: void 0,
|
|
125
|
-
prefilledEmail: void 0,
|
|
126
|
-
error: void 0,
|
|
127
|
-
otpCode: "",
|
|
128
|
-
otpError: void 0,
|
|
129
|
-
attemptsRemaining: context.config.maxOtpAttempts ?? 3,
|
|
130
|
-
resendTimer: 0,
|
|
131
|
-
resendTimerActive: false
|
|
132
|
-
}))
|
|
133
|
-
},
|
|
134
|
-
guards: {
|
|
135
|
-
hasPrefill: ({ context }) => context.config.prefill === true,
|
|
136
|
-
hasOtpVerification: ({ context }) => context.config.otpVerification,
|
|
137
|
-
isValidEmail: ({ context }) => context.isValid,
|
|
138
|
-
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
|
|
139
|
-
canResend: ({ context }) => !context.resendTimerActive
|
|
140
|
-
}
|
|
141
|
-
}).createMachine({
|
|
142
|
-
id: "email",
|
|
143
|
-
initial: "idle",
|
|
144
|
-
context: ({ input }) => ({
|
|
145
|
-
config: input.config,
|
|
146
|
-
email: "",
|
|
147
|
-
isValid: false,
|
|
148
|
-
emailError: void 0,
|
|
149
|
-
prefilledEmail: void 0,
|
|
150
|
-
error: void 0,
|
|
151
|
-
otpCode: "",
|
|
152
|
-
otpError: void 0,
|
|
153
|
-
attemptsRemaining: input.config.maxOtpAttempts ?? 3,
|
|
154
|
-
resendTimer: 0,
|
|
155
|
-
resendTimerActive: false
|
|
156
|
-
}),
|
|
157
|
-
states: {
|
|
158
|
-
idle: { on: { LOAD: [{
|
|
159
|
-
target: "loadingPrefill",
|
|
160
|
-
guard: "hasPrefill"
|
|
161
|
-
}, { target: "inputting" }] } },
|
|
162
|
-
loadingPrefill: { invoke: {
|
|
163
|
-
id: "fetchEmail",
|
|
164
|
-
src: "fetchEmail",
|
|
165
|
-
onDone: {
|
|
166
|
-
target: "inputting",
|
|
167
|
-
actions: "setPrefilledEmail"
|
|
168
|
-
},
|
|
169
|
-
onError: { target: "inputting" }
|
|
170
|
-
} },
|
|
171
|
-
inputting: { on: {
|
|
172
|
-
EMAIL_CHANGED: { actions: "setEmail" },
|
|
173
|
-
SUBMIT: {
|
|
174
|
-
target: "submitting",
|
|
175
|
-
guard: "isValidEmail",
|
|
176
|
-
actions: "clearEmailError"
|
|
177
|
-
}
|
|
178
|
-
} },
|
|
179
|
-
submitting: { invoke: {
|
|
180
|
-
id: "submitEmail",
|
|
181
|
-
src: "submitEmail",
|
|
182
|
-
input: ({ context }) => ({ email: context.email }),
|
|
183
|
-
onDone: [{
|
|
184
|
-
target: "sendingInitialOtp",
|
|
185
|
-
guard: "hasOtpVerification"
|
|
186
|
-
}, { target: "finished" }],
|
|
187
|
-
onError: {
|
|
188
|
-
target: "inputting",
|
|
189
|
-
actions: "setEmailError"
|
|
190
|
-
}
|
|
191
|
-
} },
|
|
192
|
-
sendingInitialOtp: { invoke: {
|
|
193
|
-
id: "sendOtp",
|
|
194
|
-
src: "sendOtp",
|
|
195
|
-
onDone: {
|
|
196
|
-
target: "awaitingOtp",
|
|
197
|
-
actions: "startResendTimer"
|
|
198
|
-
},
|
|
199
|
-
onError: {
|
|
200
|
-
target: "otpError",
|
|
201
|
-
actions: ["setOtpRequestError", "startResendTimer"]
|
|
202
|
-
}
|
|
203
|
-
} },
|
|
204
|
-
resendingOtp: { invoke: {
|
|
205
|
-
id: "sendOtp",
|
|
206
|
-
src: "sendOtp",
|
|
207
|
-
onDone: {
|
|
208
|
-
target: "awaitingOtp",
|
|
209
|
-
actions: "startResendTimer"
|
|
210
|
-
},
|
|
211
|
-
onError: {
|
|
212
|
-
target: "otpError",
|
|
213
|
-
actions: ["setOtpRequestError", "startResendTimer"]
|
|
214
|
-
}
|
|
215
|
-
} },
|
|
216
|
-
awaitingOtp: {
|
|
217
|
-
invoke: {
|
|
218
|
-
id: "resendTimer",
|
|
219
|
-
src: "resendTimer",
|
|
220
|
-
input: ({ context }) => ({ seconds: context.resendTimer })
|
|
221
|
-
},
|
|
222
|
-
on: {
|
|
223
|
-
TICK: { actions: "tickResendTimer" },
|
|
224
|
-
OTP_CHANGED: { actions: "setOtpCode" },
|
|
225
|
-
VERIFY_OTP: { target: "verifyingOtp" },
|
|
226
|
-
RESEND_OTP: {
|
|
227
|
-
target: "resendingOtp",
|
|
228
|
-
guard: "canResend"
|
|
229
|
-
},
|
|
230
|
-
BACK: { target: "inputting" }
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
verifyingOtp: { invoke: {
|
|
234
|
-
id: "verifyOtp",
|
|
235
|
-
src: "verifyOtp",
|
|
236
|
-
input: ({ context }) => ({ code: context.otpCode }),
|
|
237
|
-
onDone: [
|
|
238
|
-
{
|
|
239
|
-
target: "finished",
|
|
240
|
-
guard: ({ event }) => event.output.success === true
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
target: "otpError",
|
|
244
|
-
guard: "hasAttemptsRemaining",
|
|
245
|
-
actions: assign(({ context }) => ({
|
|
246
|
-
otpError: "otp.errorv2",
|
|
247
|
-
attemptsRemaining: context.attemptsRemaining - 1
|
|
248
|
-
}))
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
target: "error",
|
|
252
|
-
actions: assign({ error: () => "Maximum OTP attempts exceeded" })
|
|
253
|
-
}
|
|
254
|
-
],
|
|
255
|
-
onError: [{
|
|
256
|
-
target: "otpError",
|
|
257
|
-
guard: "hasAttemptsRemaining",
|
|
258
|
-
actions: "setOtpError"
|
|
259
|
-
}, {
|
|
260
|
-
target: "error",
|
|
261
|
-
actions: "setError"
|
|
262
|
-
}]
|
|
263
|
-
} },
|
|
264
|
-
otpError: {
|
|
265
|
-
invoke: {
|
|
266
|
-
id: "resendTimer",
|
|
267
|
-
src: "resendTimer",
|
|
268
|
-
input: ({ context }) => ({ seconds: context.resendTimer })
|
|
269
|
-
},
|
|
270
|
-
on: {
|
|
271
|
-
TICK: { actions: "tickResendTimer" },
|
|
272
|
-
OTP_CHANGED: {
|
|
273
|
-
target: "awaitingOtp",
|
|
274
|
-
actions: "setOtpCode"
|
|
275
|
-
},
|
|
276
|
-
RESEND_OTP: {
|
|
277
|
-
target: "resendingOtp",
|
|
278
|
-
guard: "canResend"
|
|
279
|
-
},
|
|
280
|
-
BACK: { target: "inputting" }
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
finished: { type: "final" },
|
|
284
|
-
error: { on: { RESET: {
|
|
285
|
-
target: "idle",
|
|
286
|
-
actions: "resetContext"
|
|
287
|
-
} } }
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
//#endregion
|
|
292
|
-
export { emailMachine as t };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
//#region src/internal/http/endpoints.ts
|
|
2
|
-
const endpoints = {
|
|
3
|
-
createSession: "/omni/start",
|
|
4
|
-
flow: "/omni/onboarding/flow",
|
|
5
|
-
events: "/omni/interview-events",
|
|
6
|
-
selfie: "/omni/add/face",
|
|
7
|
-
authenticate: "/omni/onboarding-authentications/authenticate",
|
|
8
|
-
recordingCreateSessionV2: "/omni/recordings/create-session/v2",
|
|
9
|
-
recordingStartV2: "/omni/recordings/record-start/v2",
|
|
10
|
-
recordingStopV2: "/omni/recordings/record-stop/v2",
|
|
11
|
-
deepsightVideoImport: "/omni/recordings/import",
|
|
12
|
-
phone: "/omni/add/phone",
|
|
13
|
-
phoneInstant: "/omni/instant/add/phone",
|
|
14
|
-
getPhone: "/omni/get/phone",
|
|
15
|
-
startInfo: "/omni/start-info",
|
|
16
|
-
sendSmsOtp: "/omni/send/sms-otp",
|
|
17
|
-
compareOtp: "/omni/compare/otp",
|
|
18
|
-
email: "/omni/add/email",
|
|
19
|
-
getEmail: "/omni/get/email",
|
|
20
|
-
frontId: "/omni/add/front-id/v2",
|
|
21
|
-
backId: "/omni/add/back-id/v2",
|
|
22
|
-
frontSecondId: "/omni/add/front-second-id/v2",
|
|
23
|
-
backSecondId: "/omni/add/back-second-id/v2",
|
|
24
|
-
getImages: "/omni/get/images",
|
|
25
|
-
getImagesV2: "/omni/get/images/v2",
|
|
26
|
-
getScore: "/omni/get/score",
|
|
27
|
-
getImagesSecondId: "/omni/get/images-second-id",
|
|
28
|
-
processId: "/omni/process/id",
|
|
29
|
-
processSecondId: "/omni/process/second-id",
|
|
30
|
-
processFace: "/omni/process/face",
|
|
31
|
-
governmentValidation: "/omni/process/government-validation",
|
|
32
|
-
deviceStats: "/omni/device/stats",
|
|
33
|
-
featureConfig: "/omni/feature-config",
|
|
34
|
-
deviceFingerprint: "/omni/add/device-fingerprint",
|
|
35
|
-
onboardingStatus: "/omni/get/onboarding/status",
|
|
36
|
-
customFields: "/omni/get/custom-fields",
|
|
37
|
-
addCustomFields: "/omni/add/custom-fields",
|
|
38
|
-
deviceRiskClientId: "/omni/device-risk-client-id",
|
|
39
|
-
ocrData: "/omni/get/ocr-data",
|
|
40
|
-
ocrDataSecondId: "/omni/get/ocr-data-second-id",
|
|
41
|
-
updateEditableOcrData: "/omni/update/editable-ocr-data",
|
|
42
|
-
updateEditableOcrDataSecondId: "/omni/update/editable-ocr-data-second-id",
|
|
43
|
-
addCurp: "/omni/add/curp",
|
|
44
|
-
addCurpV2: "/omni/add/curp/v2",
|
|
45
|
-
addGeolocation: "/omni/add/geolocation",
|
|
46
|
-
ekycSubmit: "/omni/externalVerification/ekyc",
|
|
47
|
-
ekybSubmit: "/omni/externalVerification/ekyb",
|
|
48
|
-
getCombinedConsent: "/omni/get/combined-consent",
|
|
49
|
-
signCombinedConsent: "/omni/sign-combined-consent",
|
|
50
|
-
getConsents: "/omni/consents",
|
|
51
|
-
submitMlConsent: "/omni/consents/submit",
|
|
52
|
-
addressAutocomplete: "/omni/externalVerification/addressAutocomplete",
|
|
53
|
-
otpStatus: "/omni/session/otp-status",
|
|
54
|
-
moduleConfig: "/omni/flow/onboarding/configuration",
|
|
55
|
-
addDocument: "/omni/add/document/v2",
|
|
56
|
-
addressStatement: "/omni/add/address-statement/v2",
|
|
57
|
-
documentV3: "/omni/add/document/v3",
|
|
58
|
-
finalizeDocument: "/omni/finalize/document",
|
|
59
|
-
documentLegacy: "/omni/add/document",
|
|
60
|
-
cfdi: "/omni/process/cfdi",
|
|
61
|
-
finishStatus: "/omni/finish-status",
|
|
62
|
-
updateSession: "/omni/update",
|
|
63
|
-
onboardingUrl: "/omni/onboarding-url",
|
|
64
|
-
sendRedirectSms: "/omni/notify/send-sms",
|
|
65
|
-
qrRefreshUuid: "/omni/qr/refresh",
|
|
66
|
-
qrValidateUuid: "/omni/qr/validate",
|
|
67
|
-
addSignature: "/omni/add/signature",
|
|
68
|
-
addSignatureV2: "/omni/add/signature/v2",
|
|
69
|
-
identityReuseCandidates: "/omni/identity-reuse/candidates",
|
|
70
|
-
identityReuseSubmit: "/omni/identity-reuse/submit",
|
|
71
|
-
processAntifraud: "/omni/process/antifraud",
|
|
72
|
-
processWatchlist: "/omni/process/global-watchlist",
|
|
73
|
-
watchlistForBusinessSubmit: "/omni/businessWatchlist-result",
|
|
74
|
-
aesUnsignedDocuments: "/omni/es/documents/unsigned",
|
|
75
|
-
aesSignDocument: "/omni/es/process/sign",
|
|
76
|
-
qesSignDocument: "/omni/es/process/signQes",
|
|
77
|
-
aesGenerateUploadUrl: "/omni/es/generateDocumentUploadUrl",
|
|
78
|
-
workflowCurrentNode: "/omni/workflow/current/node",
|
|
79
|
-
workflowProcessNode: "/omni/workflow/process/node",
|
|
80
|
-
workflowInfo: "/omni/workflow/info",
|
|
81
|
-
customModuleExecution: "/omni/custom-module/execution",
|
|
82
|
-
processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process",
|
|
83
|
-
dynamicFormsSubmitAnswer: "/omni/form-answer/submit"
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
//#endregion
|
|
87
|
-
export { endpoints as t };
|