@incodetech/core 0.0.0-dev-20260505-e06a25f → 0.0.0-dev-20260505-4dd3003
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseWasmProvider-BTKqWpeB.esm.js → BaseWasmProvider-CkIHbYdx.esm.js} +112 -60
- package/dist/{WasmUtilProvider-DqCiPXV6.esm.js → WasmUtilProvider-DsAa3yqJ.esm.js} +1 -1
- package/dist/{addressSearch-CGORc_Ur.esm.js → addressSearch-B-gRk55b.esm.js} +2 -2
- package/dist/{ae-signature-BHcbLPOX.esm.js → ae-signature-CD2xVkh6.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/ae-signature.esm.js +4 -4
- package/dist/antifraud.esm.js +3 -3
- package/dist/{antifraudStateMachine-DAo-TkJ8.esm.js → antifraudStateMachine-BpA9DsDL.esm.js} +2 -2
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +9 -9
- package/dist/{authenticationManager-DzBrRrX7.esm.js → authenticationManager-BlExOsgX.esm.js} +7 -7
- package/dist/{authenticationManager-DBgL1B8m.d.ts → authenticationManager-D53H93OW.d.ts} +1 -1
- package/dist/{authenticationStateMachine-Dg19Awyc.esm.js → authenticationStateMachine-B2KkS-0r.esm.js} +4 -4
- package/dist/consent.d.ts +50 -50
- package/dist/consent.esm.js +3 -3
- package/dist/{consentStateMachine-BVxTa1A4.esm.js → consentStateMachine-DSGt1SyM.esm.js} +2 -2
- package/dist/cpf-ocr.d.ts +20 -20
- package/dist/cpf-ocr.esm.js +2 -2
- package/dist/cross-document-data-match.esm.js +2 -2
- package/dist/curp-validation.esm.js +3 -3
- package/dist/{curpValidationStateMachine-Cm2EjX_L.esm.js → curpValidationStateMachine-B_cFIz9T.esm.js} +2 -2
- package/dist/custom-fields.esm.js +2 -2
- package/dist/custom-watchlist.esm.js +3 -3
- package/dist/{deepsightLoader-BnMFKE9b.esm.js → deepsightLoader-nn8-Chjr.esm.js} +2 -2
- package/dist/document-capture.d.ts +77 -77
- package/dist/document-capture.esm.js +3 -3
- package/dist/document-upload.d.ts +46 -46
- package/dist/document-upload.esm.js +2 -2
- package/dist/{documentCaptureStateMachine-Jwp09yGJ.esm.js → documentCaptureStateMachine-DWZUY2Aw.esm.js} +2 -2
- package/dist/ekyb.esm.js +6 -6
- package/dist/{ekybStateMachine-6pezQvlL.esm.js → ekybStateMachine-BLfzFOAD.esm.js} +4 -4
- package/dist/ekyc.esm.js +4 -4
- package/dist/{ekycStateMachine-CWWeCUx5.esm.js → ekycStateMachine-02EweGtj.esm.js} +3 -3
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +3 -3
- package/dist/{electronicSignatureManager-C0UgrX1L.esm.js → electronicSignatureManager-BbRP-Oph.esm.js} +2 -2
- package/dist/email.esm.js +4 -4
- package/dist/{emailManager-_gunG-AE.esm.js → emailManager-C2W-MJQ8.esm.js} +3 -3
- package/dist/{emailStateMachine-DWrTdkZY.esm.js → emailStateMachine-Df_AcoGW.esm.js} +2 -2
- package/dist/{events-237AXtL7.esm.js → events-s0VL5FYh.esm.js} +9 -2
- package/dist/events.d.ts +3 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +3 -3
- package/dist/extensibility.esm.js +18 -18
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CgwUMlyj.d.ts → faceCaptureManagerFactory-Cf6AcIJI.d.ts} +1 -1
- package/dist/faceCaptureManagerFactory-Dix0LYX3.esm.js +288 -0
- package/dist/{faceCaptureSetup-Cclz77d6.esm.js → faceCaptureSetup-GGxPo8Cc.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-Cd70G-3Q.esm.js → faceMatchStateMachine-Cjc-2700.esm.js} +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +8 -10
- package/dist/{flowCompletionService-DKHUsKiX.esm.js → flowCompletionService-DhTdMWSB.esm.js} +1 -1
- package/dist/{flowServices-Bh4UKZez.esm.js → flowServices-QTK0C4Ek.esm.js} +2 -2
- package/dist/geolocation.esm.js +3 -3
- package/dist/{geolocationStateMachine-CFsc46Hs.esm.js → geolocationStateMachine-BUp3qs8o.esm.js} +2 -2
- package/dist/government-validation.esm.js +3 -3
- package/dist/{governmentValidationStateMachine-BGGZE44p.esm.js → governmentValidationStateMachine-DBAuZdbq.esm.js} +2 -2
- package/dist/home.d.ts +10 -10
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id.esm.js +7 -7
- package/dist/{idCaptureManager-D8nzFJJv.esm.js → idCaptureManager-BtqsBcWw.esm.js} +107 -48
- package/dist/{idCaptureStateMachine-B-KOFEK9.esm.js → idCaptureStateMachine-CvdoaLtU.esm.js} +6 -6
- package/dist/identity-reuse.d.ts +43 -43
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{index-BaZskbWt.d.ts → index-B7qp9qsj.d.ts} +119 -119
- package/dist/index.esm.js +5 -5
- package/dist/mandatory-consent.d.ts +52 -52
- package/dist/mandatory-consent.esm.js +3 -3
- package/dist/{mandatoryConsentStateMachine-nVfQa5zS.esm.js → mandatoryConsentStateMachine-BJF3K6w1.esm.js} +2 -2
- package/dist/phone.esm.js +4 -4
- package/dist/{phoneManager-L4XCPUwQ.esm.js → phoneManager-DskgpnGL.esm.js} +3 -3
- package/dist/{phoneStateMachine-Dl0c8Bs4.esm.js → phoneStateMachine-CswpoAaH.esm.js} +2 -2
- package/dist/{qe-signature-D-CUO7mB.esm.js → qe-signature-Dy3nLSvu.esm.js} +1 -1
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +4 -4
- package/dist/{recordingService-Cen0Qmop.esm.js → recordingService-Nn-BBO6j.esm.js} +4 -4
- package/dist/redirect-to-mobile.esm.js +3 -3
- package/dist/{redirectToMobileStateMachine-DFBsB5IY.esm.js → redirectToMobileStateMachine-DmY7A9iM.esm.js} +2 -2
- package/dist/{runChildModule-BiTJSa1K.esm.js → runChildModule-DP-gEBHS.esm.js} +2 -2
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +9 -9
- package/dist/{selfieManager-DGAsMXpK.esm.js → selfieManager-BI4smYEE.esm.js} +7 -7
- package/dist/{selfieManager-BtyIr64h.d.ts → selfieManager-xZ0EHWY3.d.ts} +1 -1
- package/dist/{selfieStateMachine-C_VXHzeA.esm.js → selfieStateMachine-B-stjSD5.esm.js} +3 -3
- package/dist/{session-DcLfiFln.esm.js → session-oIjERqhS.esm.js} +2 -2
- package/dist/session.esm.js +3 -3
- package/dist/{setup-CGmPXQZb.esm.js → setup-BIkp7Hbm.esm.js} +4 -4
- package/dist/signature.esm.js +3 -3
- package/dist/{signatureStateMachine-C0dnpux6.esm.js → signatureStateMachine-CW8TVU_C.esm.js} +2 -2
- package/dist/wasm.esm.js +5 -5
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +3 -3
- package/dist/{watchlistServices-xsf8fmMG.esm.js → watchlistServices-DuWR27Y8.esm.js} +1 -1
- package/dist/workflow.d.ts +114 -114
- package/dist/workflow.esm.js +30 -30
- package/dist/{xstate.esm-CSiDcEjt.esm.js → xstate.esm-cL1KdW6d.esm.js} +16 -16
- package/package.json +1 -1
- package/dist/faceCaptureManagerFactory-DM_o6znS.esm.js +0 -187
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CcbnIt3T.js";
|
|
2
2
|
import "./Actor-CazhiaK7.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate388 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/id-ocr/types.d.ts
|
|
6
6
|
type IdOcrConfig = {
|
|
@@ -177,7 +177,7 @@ type IdOcrContext = {
|
|
|
177
177
|
type IdOcrInput = {
|
|
178
178
|
config: IdOcrConfig;
|
|
179
179
|
};
|
|
180
|
-
declare const idOcrStateMachine:
|
|
180
|
+
declare const idOcrStateMachine: xstate388.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate388.ActorRefFromLogic<xstate388.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate388.EventObject>> | xstate388.ActorRefFromLogic<xstate388.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate388.EventObject>> | undefined;
|
|
200
|
+
}, xstate388.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate388.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate388.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate388.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate388.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate388.Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: xstate388.NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: xstate388.NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: xstate388.NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: xstate388.NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: xstate388.NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: xstate388.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate388.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate388.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate388.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate388.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate388.NonReducibleUnknown, xstate388.EventObject, xstate388.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate388.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate388.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate388.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate388.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate388.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate388.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate388.RequiredActorOptions<T>]: unknown }) | undefined], xstate388.IsNotNever<xstate388.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate388.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate388.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate388.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate388.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate388.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate388.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate388.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate388.IsNotNever<xstate388.RequiredActorOptions<T_1>>> : never : never : never)): xstate388.ActorRefFromLogic<xstate388.GetConcreteByKey<xstate388.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate388.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate388.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate388.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate388.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate388.AnyActorLogic>(src: TLogic, ...[options]: xstate388.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate388.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate388.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate388.IsNotNever<xstate388.RequiredLogicInput<TLogic>>>): xstate388.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate388.ActorRef<xstate388.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
358
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
359
|
+
}, Record<string, xstate388.AnyActorRef | undefined>, xstate388.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
371
|
type: "RETRY";
|
|
372
|
-
},
|
|
372
|
+
}, xstate388.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
405
405
|
} | {
|
|
406
406
|
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate388.ActorRef<xstate388.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
420
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
421
|
+
}, Record<string, xstate388.AnyActorRef>, xstate388.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
433
|
type: "RETRY";
|
|
434
|
-
},
|
|
434
|
+
}, xstate388.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
510
510
|
} | {
|
|
511
511
|
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate388.ActorRef<xstate388.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
525
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
526
|
+
}, Record<string, xstate388.AnyActorRef>, xstate388.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
|
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
538
|
type: "RETRY";
|
|
539
|
-
},
|
|
539
|
+
}, xstate388.AnyEventObject>;
|
|
540
540
|
}) => {
|
|
541
541
|
params: UpdateOcrDataParams;
|
|
542
542
|
isSecondId: boolean;
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-3IquGyW5.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, v as endpoints, y as getTimestamp } from "./events-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as endpoints, y as getTimestamp } from "./events-s0VL5FYh.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-cL1KdW6d.esm.js";
|
|
4
4
|
import { t as validateCPF } from "./cpf-B42J7pld.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/providers/browser/DateFormattingProvider.ts
|
package/dist/id.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
1
|
+
import "./BaseWasmProvider-CkIHbYdx.esm.js";
|
|
2
2
|
import "./api-3IquGyW5.esm.js";
|
|
3
|
-
import "./events-
|
|
4
|
-
import "./session-
|
|
3
|
+
import "./events-s0VL5FYh.esm.js";
|
|
4
|
+
import "./session-oIjERqhS.esm.js";
|
|
5
5
|
import "./IpifyProvider-CVIOst3c.esm.js";
|
|
6
6
|
import "./browserSimulation-DMJIC-23.esm.js";
|
|
7
|
-
import "./xstate.esm-
|
|
7
|
+
import "./xstate.esm-cL1KdW6d.esm.js";
|
|
8
8
|
import "./BrowserStorageProvider-DeByegPK.esm.js";
|
|
9
|
-
import "./recordingService-
|
|
9
|
+
import "./recordingService-Nn-BBO6j.esm.js";
|
|
10
10
|
import "./deepsightService-CU4xtxzz.esm.js";
|
|
11
11
|
import "./permissionServices-DiAThhLg.esm.js";
|
|
12
12
|
import "./camera-CSPAwp2o.esm.js";
|
|
@@ -18,7 +18,7 @@ import "./ITimerCapability-r7XXQS6a.esm.js";
|
|
|
18
18
|
import "./backCameraStream-BIzYKDy2.esm.js";
|
|
19
19
|
import "./getDeviceClass-AjL3Pr7R.esm.js";
|
|
20
20
|
import "./BrowserTimerProvider-Bc6BRm6-.esm.js";
|
|
21
|
-
import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-
|
|
22
|
-
import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
21
|
+
import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-CvdoaLtU.esm.js";
|
|
22
|
+
import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-BtqsBcWw.esm.js";
|
|
23
23
|
|
|
24
24
|
export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation
|
|
2
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-s0VL5FYh.esm.js";
|
|
2
|
+
import { a as createActor, o as createManager } from "./xstate.esm-cL1KdW6d.esm.js";
|
|
3
3
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DeByegPK.esm.js";
|
|
4
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
4
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-CvdoaLtU.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/id/idCaptureActor.ts
|
|
7
7
|
function createIdCaptureActor(options) {
|
|
@@ -323,22 +323,22 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
const FRONT_SCREENS = {
|
|
326
|
-
tutorial:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
tutorial: "idCapture.tutorial.front",
|
|
327
|
+
capturePrefix: "idCapture.frontCapture",
|
|
328
|
+
analyzingPrefix: "idCapture.frontAnalyzing",
|
|
329
|
+
errorPrefix: "idCapture.frontCaptureError",
|
|
330
|
+
successPrefix: "idCapture.frontCaptureSuccess",
|
|
331
|
+
liveCueSide: "showfront"
|
|
332
332
|
};
|
|
333
333
|
const BACK_SCREENS = {
|
|
334
|
-
tutorial:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
334
|
+
tutorial: "idCapture.tutorial.back",
|
|
335
|
+
capturePrefix: "idCapture.backCapture",
|
|
336
|
+
analyzingPrefix: "idCapture.backAnalyzing",
|
|
337
|
+
errorPrefix: "idCapture.backCaptureError",
|
|
338
|
+
successPrefix: "idCapture.backCaptureSuccess",
|
|
339
|
+
liveCueSide: "showback"
|
|
340
340
|
};
|
|
341
|
-
const PASSPORT_SCREENS = { tutorial:
|
|
341
|
+
const PASSPORT_SCREENS = { tutorial: "idCapture.tutorial.passport" };
|
|
342
342
|
function getSideScreens(mode) {
|
|
343
343
|
if (mode === "back") return BACK_SCREENS;
|
|
344
344
|
if (mode === "passport") return {
|
|
@@ -347,28 +347,87 @@ function getSideScreens(mode) {
|
|
|
347
347
|
};
|
|
348
348
|
return FRONT_SCREENS;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function getCaptureLiveCueScreen(screens, detectionStatus) {
|
|
351
|
+
switch (detectionStatus) {
|
|
352
|
+
case "wrongSide": return `${screens.capturePrefix}.livecue-${screens.liveCueSide}`;
|
|
353
|
+
case "blur": return `${screens.capturePrefix}.livecue-blur`;
|
|
354
|
+
case "farAway":
|
|
355
|
+
case "idNotDetected": return `${screens.capturePrefix}.livecue-align`;
|
|
356
|
+
case "glare": return `${screens.capturePrefix}.livecue-glare`;
|
|
357
|
+
case "offline": return `${screens.capturePrefix}.livecue-dark`;
|
|
358
|
+
case "manualCapture": return `${screens.capturePrefix}.manual`;
|
|
359
|
+
case "capturing": return `${screens.capturePrefix}.takingphoto`;
|
|
360
|
+
case "detecting":
|
|
361
|
+
case "idle":
|
|
362
|
+
default: return `${screens.capturePrefix}.default`;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function getCaptureErrorScreen(screens, errorCode) {
|
|
366
|
+
switch (errorCode) {
|
|
367
|
+
case "WRONG_DOCUMENT_SIDE": return `${screens.errorPrefix}.wrongside`;
|
|
368
|
+
case "GLARE_DETECTED": return `${screens.errorPrefix}.glare`;
|
|
369
|
+
case "LOW_SHARPNESS": return `${screens.errorPrefix}.blur`;
|
|
370
|
+
case "READABILITY_ISSUE": return `${screens.errorPrefix}.notreadable`;
|
|
371
|
+
case "ID_TYPE_UNACCEPTABLE":
|
|
372
|
+
case "CLASSIFICATION_FAILED": return `${screens.errorPrefix}.notaccepted`;
|
|
373
|
+
case "RETRY_EXHAUSTED_CONTINUE_TO_BACK":
|
|
374
|
+
case "RETRY_EXHAUSTED_SKIP_BACK":
|
|
375
|
+
case "NO_MORE_TRIES": return `${screens.errorPrefix}.failedExhausted`;
|
|
376
|
+
case "NO_TOKEN":
|
|
377
|
+
case "SERVER_ERROR": return `${screens.errorPrefix}.nointernet`;
|
|
378
|
+
case "UPLOAD_ERROR":
|
|
379
|
+
case "UNEXPECTED_ERROR":
|
|
380
|
+
case "PERMISSION_DENIED":
|
|
381
|
+
case "USER_CANCELLED":
|
|
382
|
+
default: return `${screens.errorPrefix}.failed`;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
function getSuccessScreen(snapshot, screens) {
|
|
386
|
+
const { config } = snapshot.context;
|
|
387
|
+
if (config?.onlyFront === true || config?.onlyBack === true || config?.showCaptureButtonInAuto === true) return `${screens.successPrefix}.captureonly`;
|
|
388
|
+
return `${screens.successPrefix}.default`;
|
|
389
|
+
}
|
|
390
|
+
function getCaptureSubstateScreen(snapshot, screens) {
|
|
391
|
+
const { value, context } = snapshot;
|
|
351
392
|
if (typeof value !== "object" || value === null) return void 0;
|
|
352
393
|
const captureValue = value.capture;
|
|
353
394
|
if (captureValue === void 0) return void 0;
|
|
354
395
|
if (typeof captureValue === "string") switch (captureValue) {
|
|
355
|
-
case "
|
|
356
|
-
case "
|
|
357
|
-
case "
|
|
358
|
-
case "
|
|
396
|
+
case "checkingStream":
|
|
397
|
+
case "initializing":
|
|
398
|
+
case "initializingDeepsight": return "idCapture.loader.preparingcamera";
|
|
399
|
+
case "detecting": return getCaptureLiveCueScreen(screens, context.detectionStatus);
|
|
400
|
+
case "manualCaptureWaiting": return `${screens.capturePrefix}.manual`;
|
|
401
|
+
case "capturing": return `${screens.capturePrefix}.takingphoto`;
|
|
402
|
+
case "capturingManual": return `${screens.capturePrefix}.manual`;
|
|
359
403
|
case "uploading":
|
|
360
|
-
case "validatingUpload": return screens.
|
|
361
|
-
case "uploadError": return screens.
|
|
362
|
-
case "success": return screens
|
|
404
|
+
case "validatingUpload": return `${screens.analyzingPrefix}.uploading`;
|
|
405
|
+
case "uploadError": return getCaptureErrorScreen(screens, context.uploadError);
|
|
406
|
+
case "success": return getSuccessScreen(snapshot, screens);
|
|
363
407
|
}
|
|
364
408
|
if (typeof captureValue === "object" && captureValue !== null) {
|
|
365
409
|
const substates = Object.keys(captureValue);
|
|
366
|
-
if (substates.includes("
|
|
367
|
-
if (substates.includes("
|
|
368
|
-
if (substates.includes("
|
|
369
|
-
if (substates.includes("
|
|
410
|
+
if (substates.includes("checkingStream") || substates.includes("initializing") || substates.includes("initializingDeepsight")) return "idCapture.loader.preparingcamera";
|
|
411
|
+
if (substates.includes("detecting")) return getCaptureLiveCueScreen(screens, context.detectionStatus);
|
|
412
|
+
if (substates.includes("manualCaptureWaiting")) return `${screens.capturePrefix}.manual`;
|
|
413
|
+
if (substates.includes("capturing")) return `${screens.capturePrefix}.takingphoto`;
|
|
414
|
+
if (substates.includes("capturingManual")) return `${screens.capturePrefix}.manual`;
|
|
415
|
+
if (substates.includes("uploading") || substates.includes("validatingUpload")) return `${screens.analyzingPrefix}.uploading`;
|
|
416
|
+
if (substates.includes("uploadError")) return getCaptureErrorScreen(screens, context.uploadError);
|
|
417
|
+
if (substates.includes("success")) return getSuccessScreen(snapshot, screens);
|
|
418
|
+
}
|
|
419
|
+
return `${screens.capturePrefix}.default`;
|
|
420
|
+
}
|
|
421
|
+
function getPermissionScreen(value) {
|
|
422
|
+
if (typeof value !== "object" || value === null) return "idCapture.permissions.default";
|
|
423
|
+
switch (value.permissions) {
|
|
424
|
+
case "requesting": return "idCapture.permissions.required";
|
|
425
|
+
case "denied": return "idCapture.permissions.quit";
|
|
426
|
+
case "learnMore": return "idCapture.commonissues.default";
|
|
427
|
+
case "idle":
|
|
428
|
+
case "waitingForUser":
|
|
429
|
+
default: return "idCapture.permissions.default";
|
|
370
430
|
}
|
|
371
|
-
return screens.cameraCapture;
|
|
372
431
|
}
|
|
373
432
|
function getIdCaptureScreenName(snapshot) {
|
|
374
433
|
const { value, context } = snapshot;
|
|
@@ -378,22 +437,22 @@ function getIdCaptureScreenName(snapshot) {
|
|
|
378
437
|
const side = context.currentMode;
|
|
379
438
|
const screens = getSideScreens(side);
|
|
380
439
|
switch (topLevel) {
|
|
381
|
-
case "idle": return "
|
|
382
|
-
case "chooser": return "
|
|
383
|
-
case "loading": return "
|
|
440
|
+
case "idle": return "idCapture.loader.default";
|
|
441
|
+
case "chooser": return "idCapture.documentchooser";
|
|
442
|
+
case "loading": return "idCapture.loader.default";
|
|
384
443
|
case "tutorial": return screens.tutorial;
|
|
385
|
-
case "ageVerification": return "
|
|
386
|
-
case "permissions": return
|
|
387
|
-
case "capture": return getCaptureSubstateScreen(
|
|
388
|
-
case "mandatoryConsent": return "
|
|
389
|
-
case "frontFinished": return
|
|
390
|
-
case "backFinished": return
|
|
391
|
-
case "processing": return
|
|
392
|
-
case "expired": return "
|
|
393
|
-
case "finished": return "
|
|
394
|
-
case "closed": return "
|
|
395
|
-
case "error": return "
|
|
396
|
-
default: return topLevel
|
|
444
|
+
case "ageVerification": return "idCapture.tutorial.ageverification";
|
|
445
|
+
case "permissions": return getPermissionScreen(value);
|
|
446
|
+
case "capture": return getCaptureSubstateScreen(snapshot, screens);
|
|
447
|
+
case "mandatoryConsent": return "idCapture.mandatoryConsent";
|
|
448
|
+
case "frontFinished": return "idCapture.flipid.showback";
|
|
449
|
+
case "backFinished": return "idCapture.flipid.showfront";
|
|
450
|
+
case "processing": return `${screens.analyzingPrefix}.processing`;
|
|
451
|
+
case "expired": return "idCapture.expired";
|
|
452
|
+
case "finished": return "idCapture.finished";
|
|
453
|
+
case "closed": return "idCapture.closed";
|
|
454
|
+
case "error": return "idCapture.error";
|
|
455
|
+
default: return `idCapture.${topLevel}`;
|
|
397
456
|
}
|
|
398
457
|
}
|
|
399
458
|
function mapIdCaptureScreenName(snapshot) {
|
|
@@ -409,8 +468,8 @@ function createIdCaptureManager(options) {
|
|
|
409
468
|
actor: createIdCaptureActor(options),
|
|
410
469
|
mapState,
|
|
411
470
|
createApi,
|
|
412
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.
|
|
413
|
-
|
|
471
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.idCapture, {
|
|
472
|
+
getEventScreenName: mapIdCaptureScreenName,
|
|
414
473
|
getErrorPayload: getIdCaptureErrorPayload
|
|
415
474
|
})
|
|
416
475
|
});
|
|
@@ -420,8 +479,8 @@ function createIdCaptureManagerFromActor(actor) {
|
|
|
420
479
|
actor,
|
|
421
480
|
mapState,
|
|
422
481
|
createApi,
|
|
423
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.
|
|
424
|
-
|
|
482
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.idCapture, {
|
|
483
|
+
getEventScreenName: mapIdCaptureScreenName,
|
|
425
484
|
getErrorPayload: getIdCaptureErrorPayload
|
|
426
485
|
})
|
|
427
486
|
});
|
package/dist/{idCaptureStateMachine-B-KOFEK9.esm.js → idCaptureStateMachine-CvdoaLtU.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as IdCaptureModelType, i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
1
|
+
import { a as IdCaptureModelType, i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-CkIHbYdx.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-3IquGyW5.esm.js";
|
|
3
|
-
import { b as revokeObjectURL, v as endpoints } from "./events-
|
|
4
|
-
import { t as getDisableIpify } from "./session-
|
|
5
|
-
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
6
|
-
import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1 } from "./recordingService-
|
|
3
|
+
import { b as revokeObjectURL, v as endpoints } from "./events-s0VL5FYh.esm.js";
|
|
4
|
+
import { t as getDisableIpify } from "./session-oIjERqhS.esm.js";
|
|
5
|
+
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-cL1KdW6d.esm.js";
|
|
6
|
+
import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1 } from "./recordingService-Nn-BBO6j.esm.js";
|
|
7
7
|
import { n as IncodeCanvas } from "./deepsightService-CU4xtxzz.esm.js";
|
|
8
8
|
import { n as requestPermission, r as clearCameraPermissionCache, t as checkPermission } from "./permissionServices-DiAThhLg.esm.js";
|
|
9
9
|
import { r as getWindowDimensions } from "./getBrowser-bVw76elx.esm.js";
|
|
@@ -840,7 +840,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
840
840
|
});
|
|
841
841
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
842
842
|
if (!input.dependencies) return;
|
|
843
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
843
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-nn8-Chjr.esm.js");
|
|
844
844
|
return loadDeepsightSession({
|
|
845
845
|
ds: input.ds,
|
|
846
846
|
storage: input.dependencies.storage,
|