@incodetech/core 0.0.0-dev-20260507-df83b23 → 0.0.0-dev-20260507-78f2d13
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/{OpenViduRecordingProvider-VSC4Wgmh.esm.js → OpenViduRecordingProvider-DnYd4TKr.esm.js} +1 -1
- package/dist/{WasmUtilProvider-DsAa3yqJ.esm.js → WasmUtilProvider-Cj17GAox.esm.js} +1 -1
- package/dist/{addressSearch-1EhIahE5.esm.js → addressSearch-DGVL5bWp.esm.js} +4 -4
- package/dist/{ae-signature-BPAhuail.esm.js → ae-signature-CW0Y3VGK.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +6 -6
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +5 -5
- package/dist/{antifraudStateMachine-CaTkXzvS.esm.js → antifraudStateMachine-D4G28SI4.esm.js} +3 -3
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +23 -23
- package/dist/{authenticationManager-BmRvJPaH.esm.js → authenticationManager-BMGIFm3Y.esm.js} +6 -6
- package/dist/{authenticationManager-ii8ZNmw2.d.ts → authenticationManager-BuChl5GH.d.ts} +2 -2
- package/dist/{authenticationStateMachine-wCMzEk11.esm.js → authenticationStateMachine-Dd9HMJiq.esm.js} +6 -6
- package/dist/{backCameraStream-5ADnns4R.esm.js → backCameraStream-bztcEWzY.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 +5 -5
- package/dist/{consentStateMachine-KnKYoONj.esm.js → consentStateMachine-Bda2QqSh.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +21 -21
- package/dist/cpf-ocr.esm.js +5 -5
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +5 -5
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +5 -5
- package/dist/{curpValidationStateMachine-C5h4uWTM.esm.js → curpValidationStateMachine-CYXt-Why.esm.js} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +5 -26
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +5 -5
- package/dist/dateUtils-DuJi5-S5.esm.js +23 -0
- package/dist/{deepsightLoader-Czuy5gmc.esm.js → deepsightLoader-C1UShQg2.esm.js} +10 -10
- package/dist/{deepsightService-DljAhyUS.d.ts → deepsightService-CGSDjjBz.d.ts} +2 -2
- package/dist/{deepsightService-Bcszplg_.esm.js → deepsightService-gNTXZu7Y.esm.js} +5 -5
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +80 -80
- package/dist/document-capture.esm.js +9 -9
- package/dist/document-upload.d.ts +53 -53
- package/dist/document-upload.esm.js +8 -8
- package/dist/{documentCaptureStateMachine-CCXTJumz.esm.js → documentCaptureStateMachine-SQ3AsME6.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +178 -0
- package/dist/dynamic-forms.esm.js +323 -0
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +11 -11
- package/dist/{ekybStateMachine-B5BNo1Mw.esm.js → ekybStateMachine-of_oFZ3p.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +8 -8
- package/dist/{ekycStateMachine-DBW6AZE4.esm.js → ekycStateMachine-B-R_nMk9.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +5 -5
- package/dist/{electronicSignatureManager-CO2GTZLe.esm.js → electronicSignatureManager-W3dYg32m.esm.js} +4 -4
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +7 -7
- package/dist/{emailManager-4RL2kin0.esm.js → emailManager-Dcdv3r8N.esm.js} +3 -3
- package/dist/{emailManager-CveAxTDP.d.ts → emailManager-DsYl45qf.d.ts} +2 -2
- package/dist/{emailStateMachine-D2rWFesQ.esm.js → emailStateMachine-CfL8um8y.esm.js} +4 -4
- package/dist/{endpoints-DNtRS0G7.esm.js → endpoints-B3V1U9Dg.esm.js} +2 -1
- package/dist/{events-uIxiN9N7.esm.js → events-Bt1azl2B.esm.js} +1 -1
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +34 -34
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-trA9Rn6f.d.ts → faceCaptureManagerFactory-FX5Lw2Q5.d.ts} +8 -8
- package/dist/{faceCaptureManagerFactory-BmFLgwZH.esm.js → faceCaptureManagerFactory-bM8uVQhs.esm.js} +2 -2
- package/dist/{faceCaptureSetup-9eFWtwWI.esm.js → faceCaptureSetup-n0z3bm3G.esm.js} +4 -4
- package/dist/{faceMatchStateMachine-hMwJymwg.esm.js → faceMatchStateMachine-o_4FAl-g.esm.js} +3 -3
- package/dist/flow-events.d.ts +5 -5
- package/dist/flow.d.ts +9 -9
- package/dist/flow.esm.js +10 -10
- package/dist/{flowCompletionService-BWnQnePV.esm.js → flowCompletionService-BuVIVPT_.esm.js} +2 -2
- package/dist/{flowServices-CVA1Qt0E.esm.js → flowServices-BNMNk6sc.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +6 -6
- package/dist/{geolocationStateMachine-Do1_kljB.esm.js → geolocationStateMachine-Oj4giZl6.esm.js} +4 -4
- package/dist/{getDeviceClass-DheTn1ak.esm.js → getDeviceClass-BTVS59zg.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +6 -6
- package/dist/{governmentValidationStateMachine-BssAqWED.esm.js → governmentValidationStateMachine-DwZUuGG9.esm.js} +4 -4
- package/dist/home.d.ts +14 -14
- package/dist/home.esm.js +3 -3
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +6 -6
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +23 -23
- package/dist/{idCaptureManager-C4r9_xsU.esm.js → idCaptureManager-C3qcCILu.esm.js} +4 -4
- package/dist/{idCaptureManager-DcGzjbMw.d.ts → idCaptureManager-xbLvlmaw.d.ts} +7 -7
- package/dist/{idCaptureStateMachine-CoaY0n7f.esm.js → idCaptureStateMachine-CgZiukTi.esm.js} +17 -17
- package/dist/{idOcrStateMachine-BpMmG450.esm.js → idOcrStateMachine-Bh_LFdKk.esm.js} +5 -5
- package/dist/identity-reuse.d.ts +46 -46
- package/dist/identity-reuse.esm.js +4 -4
- package/dist/{index-BpTtY0jy.d.ts → index-CmFkidgy.d.ts} +2 -2
- package/dist/{index-CciEmEkD.d.ts → index-P6znUbAD.d.ts} +120 -120
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +10 -10
- package/dist/{lib-e9A3TaUp.esm.js → lib-KUTgonKm.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +57 -57
- package/dist/mandatory-consent.esm.js +5 -5
- package/dist/{mandatoryConsentStateMachine-u2Dejbsq.esm.js → mandatoryConsentStateMachine-b5d37Xvb.esm.js} +3 -3
- package/dist/openviduLazy-DYsQwkcJ.esm.js +3 -0
- package/dist/{openviduLazy-CH1qVdk4.esm.js → openviduLazy-yJ7zb0TW.esm.js} +2 -2
- package/dist/{permissionServices-eL_s8LM6.esm.js → permissionServices-DIxFacTA.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +7 -7
- package/dist/{phoneManager-DTsFubQ_.esm.js → phoneManager-CBupL3Zp.esm.js} +3 -3
- package/dist/{phoneManager-CXU5qAEp.d.ts → phoneManager-CeAs-QB1.d.ts} +2 -2
- package/dist/{phoneStateMachine-QEx9QC81.esm.js → phoneStateMachine-B0KqPCut.esm.js} +4 -4
- package/dist/{qe-signature-C5aBKDWr.esm.js → qe-signature-CLobj5mQ.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +6 -6
- package/dist/{recordingService-DmAnFiD_.esm.js → recordingService-DkKKvn0o.esm.js} +13 -13
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +6 -6
- package/dist/{redirectToMobileStateMachine-CcwBfjQG.esm.js → redirectToMobileStateMachine-Dvias_ax.esm.js} +4 -4
- package/dist/{runChildModule-DKpZakUb.esm.js → runChildModule-BpsyjQ6x.esm.js} +2 -2
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +23 -23
- package/dist/{selfieManager-BfsykqaD.esm.js → selfieManager-Bh9G13aS.esm.js} +6 -6
- package/dist/{selfieManager-BM3gX8wt.d.ts → selfieManager-DPQzO4ua.d.ts} +2 -2
- package/dist/{selfieStateMachine-CzExLyb6.esm.js → selfieStateMachine-DPHgsHPA.esm.js} +3 -3
- package/dist/{session-D703R287.esm.js → session-CEQEqTvJ.esm.js} +6 -6
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +7 -7
- package/dist/{setup-DmpirIL4.esm.js → setup-BVz1gFkj.esm.js} +7 -7
- package/dist/{setup-DR-GXYcF.d.ts → setup-DKabjTK6.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +5 -5
- package/dist/{signatureStateMachine-Bs0_U_Lo.esm.js → signatureStateMachine-PoXfqqBQ.esm.js} +4 -4
- package/dist/{stats-B8cIMClD.esm.js → stats-KJxmByg8.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-BYfGowzf.d.ts → types-BA181GDD.d.ts} +2 -1
- package/dist/{types-CB9HxtLU.d.ts → types-DJSt3Ovt.d.ts} +1 -1
- package/dist/{types-BRSrJ9_B.d.ts → types-WKAQ7Ai4.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +10 -10
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +4 -4
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +5 -5
- package/dist/{watchlistServices-CyOZaglV.esm.js → watchlistServices-DwhjRlRl.esm.js} +2 -2
- package/dist/workflow.d.ts +93 -93
- package/dist/workflow.esm.js +47 -47
- package/package.json +6 -1
- package/dist/openviduLazy-C35XN0G5.esm.js +0 -3
- /package/dist/{Actor-DPJ2L-q1.d.ts → Actor-YjWTo26u.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-CkIHbYdx.esm.js → BaseWasmProvider-QTXpU_qs.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-DVqF8tnD.esm.js → BrowserStorageProvider-CoUfuy0u.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-OUipjf3B.esm.js → BrowserTimerProvider-BZGH3sYJ.esm.js} +0 -0
- /package/dist/{ITimerCapability-CSQe9nqt.esm.js → ITimerCapability-2pw-S97e.esm.js} +0 -0
- /package/dist/{IpifyProvider-wp6qqO1v.esm.js → IpifyProvider-ByL6JYxg.esm.js} +0 -0
- /package/dist/{Manager-D09zXsjJ.d.ts → Manager-D9pehGyp.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-CzLW8Zb8.esm.js → MotionSensorProvider-DuErU0Pn.esm.js} +0 -0
- /package/dist/{StateMachine-Dg9ghlLh.d.ts → StateMachine-CJG7thvx.d.ts} +0 -0
- /package/dist/{api-DZdHZLhE.esm.js → api-eqRXuVG-.esm.js} +0 -0
- /package/dist/{browserSimulation-B5_Amlr4.esm.js → browserSimulation-CAH-V_iE.esm.js} +0 -0
- /package/dist/{camera-DV8Ep-_K.d.ts → camera-B6UAKpM1.d.ts} +0 -0
- /package/dist/{camera-3XOyIO-y.esm.js → camera-PA2Ljri3.esm.js} +0 -0
- /package/dist/{chunk-B0Z3lHdK.esm.js → chunk-DnCz0mJK.esm.js} +0 -0
- /package/dist/{cpf-Dalbmi8t.esm.js → cpf-DTvbZfOI.esm.js} +0 -0
- /package/dist/{displayErrors-Qx-DuMvI.d.ts → displayErrors-DO0TIjQ-.d.ts} +0 -0
- /package/dist/{flowCompletionService-B4VbRg-J.d.ts → flowCompletionService-C376JZwA.d.ts} +0 -0
- /package/dist/{getBrowser-FtGDQirD.esm.js → getBrowser-jTObqSyg.esm.js} +0 -0
- /package/dist/{platform-C3jlX5mh.esm.js → platform-Dpzd9p3X.esm.js} +0 -0
- /package/dist/{types--DdSD2gk.d.ts → types-CarMMtoz.d.ts} +0 -0
- /package/dist/{warmup-Br1UnuWP.d.ts → warmup-DHGg8wQZ.d.ts} +0 -0
- /package/dist/{xstate.esm-COokXZK9.esm.js → xstate.esm-C19_S3_9.esm.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-
|
|
5
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
|
+
import "./Actor-YjWTo26u.js";
|
|
3
|
+
import "./camera-B6UAKpM1.js";
|
|
4
|
+
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DJSt3Ovt.js";
|
|
5
|
+
import * as xstate736 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
8
|
-
declare const documentUploadMachine:
|
|
8
|
+
declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContext, {
|
|
9
9
|
type: "START";
|
|
10
10
|
} | {
|
|
11
11
|
type: "CAPTURE";
|
|
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "CLOSE";
|
|
20
20
|
}, {
|
|
21
|
-
[x: string]:
|
|
21
|
+
[x: string]: xstate736.ActorRefFromLogic<xstate736.PromiseActorLogic<MediaStream, void, xstate736.EventObject>> | xstate736.ActorRefFromLogic<xstate736.PromiseActorLogic<void, {
|
|
22
22
|
imageBase64: string;
|
|
23
23
|
documentType: string;
|
|
24
24
|
onProgress: (progress: number) => void;
|
|
25
|
-
},
|
|
26
|
-
},
|
|
25
|
+
}, xstate736.EventObject>> | undefined;
|
|
26
|
+
}, xstate736.Values<{
|
|
27
27
|
uploadDocument: {
|
|
28
28
|
src: "uploadDocument";
|
|
29
|
-
logic:
|
|
29
|
+
logic: xstate736.PromiseActorLogic<void, {
|
|
30
30
|
imageBase64: string;
|
|
31
31
|
documentType: string;
|
|
32
32
|
onProgress: (progress: number) => void;
|
|
33
|
-
},
|
|
33
|
+
}, xstate736.EventObject>;
|
|
34
34
|
id: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
initCamera: {
|
|
37
37
|
src: "initCamera";
|
|
38
|
-
logic:
|
|
38
|
+
logic: xstate736.PromiseActorLogic<MediaStream, void, xstate736.EventObject>;
|
|
39
39
|
id: string | undefined;
|
|
40
40
|
};
|
|
41
|
-
}>,
|
|
42
|
-
setError: {
|
|
43
|
-
type: "setError";
|
|
44
|
-
params: xstate560.NonReducibleUnknown;
|
|
45
|
-
};
|
|
46
|
-
clearError: {
|
|
47
|
-
type: "clearError";
|
|
48
|
-
params: xstate560.NonReducibleUnknown;
|
|
49
|
-
};
|
|
41
|
+
}>, xstate736.Values<{
|
|
50
42
|
setStream: {
|
|
51
43
|
type: "setStream";
|
|
52
|
-
params:
|
|
53
|
-
};
|
|
54
|
-
setImageAndClearError: {
|
|
55
|
-
type: "setImageAndClearError";
|
|
56
|
-
params: xstate560.NonReducibleUnknown;
|
|
44
|
+
params: xstate736.NonReducibleUnknown;
|
|
57
45
|
};
|
|
58
46
|
setProgress: {
|
|
59
47
|
type: "setProgress";
|
|
60
|
-
params:
|
|
48
|
+
params: xstate736.NonReducibleUnknown;
|
|
49
|
+
};
|
|
50
|
+
clearError: {
|
|
51
|
+
type: "clearError";
|
|
52
|
+
params: xstate736.NonReducibleUnknown;
|
|
61
53
|
};
|
|
62
54
|
stopStream: {
|
|
63
55
|
type: "stopStream";
|
|
64
|
-
params:
|
|
56
|
+
params: xstate736.NonReducibleUnknown;
|
|
57
|
+
};
|
|
58
|
+
setError: {
|
|
59
|
+
type: "setError";
|
|
60
|
+
params: xstate736.NonReducibleUnknown;
|
|
61
|
+
};
|
|
62
|
+
setImageAndClearError: {
|
|
63
|
+
type: "setImageAndClearError";
|
|
64
|
+
params: xstate736.NonReducibleUnknown;
|
|
65
65
|
};
|
|
66
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput,
|
|
66
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate736.NonReducibleUnknown, xstate736.EventObject, xstate736.MetaObject, {
|
|
67
67
|
readonly id: "documentUpload";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: ({
|
|
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
72
72
|
spawn: {
|
|
73
73
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
74
74
|
src: "uploadDocument";
|
|
75
|
-
logic:
|
|
75
|
+
logic: xstate736.PromiseActorLogic<void, {
|
|
76
76
|
imageBase64: string;
|
|
77
77
|
documentType: string;
|
|
78
78
|
onProgress: (progress: number) => void;
|
|
79
|
-
},
|
|
79
|
+
}, xstate736.EventObject>;
|
|
80
80
|
id: string | undefined;
|
|
81
81
|
} extends infer T ? T extends {
|
|
82
82
|
src: "uploadDocument";
|
|
83
|
-
logic:
|
|
83
|
+
logic: xstate736.PromiseActorLogic<void, {
|
|
84
84
|
imageBase64: string;
|
|
85
85
|
documentType: string;
|
|
86
86
|
onProgress: (progress: number) => void;
|
|
87
|
-
},
|
|
87
|
+
}, xstate736.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
} ? T extends {
|
|
90
90
|
src: TSrc;
|
|
91
|
-
} ?
|
|
91
|
+
} ? xstate736.ConditionalRequired<[options?: ({
|
|
92
92
|
id?: T["id"] | undefined;
|
|
93
93
|
systemId?: string;
|
|
94
|
-
input?:
|
|
94
|
+
input?: xstate736.InputFrom<T["logic"]> | undefined;
|
|
95
95
|
syncSnapshot?: boolean;
|
|
96
|
-
} & { [K in
|
|
96
|
+
} & { [K in xstate736.RequiredActorOptions<T>]: unknown }) | undefined], xstate736.IsNotNever<xstate736.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
97
97
|
src: "initCamera";
|
|
98
|
-
logic:
|
|
98
|
+
logic: xstate736.PromiseActorLogic<MediaStream, void, xstate736.EventObject>;
|
|
99
99
|
id: string | undefined;
|
|
100
100
|
} extends infer T_1 ? T_1 extends {
|
|
101
101
|
src: "initCamera";
|
|
102
|
-
logic:
|
|
102
|
+
logic: xstate736.PromiseActorLogic<MediaStream, void, xstate736.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} ? T_1 extends {
|
|
105
105
|
src: TSrc;
|
|
106
|
-
} ?
|
|
106
|
+
} ? xstate736.ConditionalRequired<[options?: ({
|
|
107
107
|
id?: T_1["id"] | undefined;
|
|
108
108
|
systemId?: string;
|
|
109
|
-
input?:
|
|
109
|
+
input?: xstate736.InputFrom<T_1["logic"]> | undefined;
|
|
110
110
|
syncSnapshot?: boolean;
|
|
111
|
-
} & { [K_1 in
|
|
111
|
+
} & { [K_1 in xstate736.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate736.IsNotNever<xstate736.RequiredActorOptions<T_1>>> : never : never : never)): xstate736.ActorRefFromLogic<xstate736.GetConcreteByKey<xstate736.Values<{
|
|
112
112
|
uploadDocument: {
|
|
113
113
|
src: "uploadDocument";
|
|
114
|
-
logic:
|
|
114
|
+
logic: xstate736.PromiseActorLogic<void, {
|
|
115
115
|
imageBase64: string;
|
|
116
116
|
documentType: string;
|
|
117
117
|
onProgress: (progress: number) => void;
|
|
118
|
-
},
|
|
118
|
+
}, xstate736.EventObject>;
|
|
119
119
|
id: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
initCamera: {
|
|
122
122
|
src: "initCamera";
|
|
123
|
-
logic:
|
|
123
|
+
logic: xstate736.PromiseActorLogic<MediaStream, void, xstate736.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
};
|
|
126
126
|
}>, "src", TSrc>["logic"]>;
|
|
127
|
-
<TLogic extends
|
|
127
|
+
<TLogic extends xstate736.AnyActorLogic>(src: TLogic, ...[options]: xstate736.ConditionalRequired<[options?: ({
|
|
128
128
|
id?: never;
|
|
129
129
|
systemId?: string;
|
|
130
|
-
input?:
|
|
130
|
+
input?: xstate736.InputFrom<TLogic> | undefined;
|
|
131
131
|
syncSnapshot?: boolean;
|
|
132
|
-
} & { [K in
|
|
132
|
+
} & { [K in xstate736.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate736.IsNotNever<xstate736.RequiredLogicInput<TLogic>>>): xstate736.ActorRefFromLogic<TLogic>;
|
|
133
133
|
};
|
|
134
134
|
input: DocumentUploadInput;
|
|
135
|
-
self:
|
|
135
|
+
self: xstate736.ActorRef<xstate736.MachineSnapshot<DocumentUploadContext, {
|
|
136
136
|
type: "START";
|
|
137
137
|
} | {
|
|
138
138
|
type: "CAPTURE";
|
|
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
144
144
|
type: "RETRY";
|
|
145
145
|
} | {
|
|
146
146
|
type: "CLOSE";
|
|
147
|
-
}, Record<string,
|
|
147
|
+
}, Record<string, xstate736.AnyActorRef | undefined>, xstate736.StateValue, string, unknown, any, any>, {
|
|
148
148
|
type: "START";
|
|
149
149
|
} | {
|
|
150
150
|
type: "CAPTURE";
|
|
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
156
156
|
type: "RETRY";
|
|
157
157
|
} | {
|
|
158
158
|
type: "CLOSE";
|
|
159
|
-
},
|
|
159
|
+
}, xstate736.AnyEventObject>;
|
|
160
160
|
}) => {
|
|
161
161
|
config: DocumentUploadConfig;
|
|
162
162
|
stream: undefined;
|
|
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "CLOSE";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate736.ActorRef<xstate736.MachineSnapshot<DocumentUploadContext, {
|
|
230
230
|
type: "START";
|
|
231
231
|
} | {
|
|
232
232
|
type: "CAPTURE";
|
|
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
238
238
|
type: "RETRY";
|
|
239
239
|
} | {
|
|
240
240
|
type: "CLOSE";
|
|
241
|
-
}, Record<string,
|
|
241
|
+
}, Record<string, xstate736.AnyActorRef>, xstate736.StateValue, string, unknown, any, any>, {
|
|
242
242
|
type: "START";
|
|
243
243
|
} | {
|
|
244
244
|
type: "CAPTURE";
|
|
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate560.StateMachine<DocumentUploadContex
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate736.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-
|
|
5
|
-
import { i as stopCameraStream } from "./camera-
|
|
6
|
-
import "./platform-
|
|
7
|
-
import "./ITimerCapability-
|
|
8
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
|
|
4
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
|
|
5
|
+
import { i as stopCameraStream } from "./camera-PA2Ljri3.esm.js";
|
|
6
|
+
import "./platform-Dpzd9p3X.esm.js";
|
|
7
|
+
import "./ITimerCapability-2pw-S97e.esm.js";
|
|
8
|
+
import { t as getBackCameraStream } from "./backCameraStream-bztcEWzY.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/document-upload/documentUploadServices.ts
|
|
11
11
|
async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { i as stopCameraStream } from "./camera-
|
|
5
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
|
|
4
|
+
import { i as stopCameraStream } from "./camera-PA2Ljri3.esm.js";
|
|
5
|
+
import { t as getBackCameraStream } from "./backCameraStream-bztcEWzY.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-capture/types.ts
|
|
8
8
|
const PROCESSING_TYPE_MAP = {
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
|
+
import "./Actor-YjWTo26u.js";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/dynamic-forms/types.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Input types supported by dynamic form questions.
|
|
8
|
+
* `inputType` on `Question` is optional so unknown future API values degrade
|
|
9
|
+
* gracefully to the text fallback rather than requiring this union to be widened.
|
|
10
|
+
*/
|
|
11
|
+
type InputType = 'TEXT' | 'DATE' | 'COUNTRY' | 'NATIONALITY' | 'NUMBER' | 'EMAIL' | 'PHONE' | 'CPF' | 'NAME' | 'YESNO' | 'SELECT' | 'MULTISELECT';
|
|
12
|
+
/**
|
|
13
|
+
* A single question within a dynamic form screen.
|
|
14
|
+
*/
|
|
15
|
+
type Question = {
|
|
16
|
+
questionId: string;
|
|
17
|
+
/** Display label shown to the user */
|
|
18
|
+
question: string;
|
|
19
|
+
inputType?: InputType;
|
|
20
|
+
/** Fallback type used when `inputType` is absent */
|
|
21
|
+
overrides?: InputType;
|
|
22
|
+
isPredefined?: boolean;
|
|
23
|
+
isOptional?: boolean;
|
|
24
|
+
options?: string[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A single screen within the dynamic form flow.
|
|
28
|
+
*/
|
|
29
|
+
type Screen = {
|
|
30
|
+
title?: string;
|
|
31
|
+
hideTitle?: boolean;
|
|
32
|
+
questions: Question[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for the dynamic forms module.
|
|
36
|
+
* Provide either `screens` (pre-loaded) or `flowId` (fetched from API).
|
|
37
|
+
*/
|
|
38
|
+
type DynamicFormsConfig = {
|
|
39
|
+
/** Flow ID used to fetch screens from the API when `screens` is not provided */
|
|
40
|
+
flowId?: string;
|
|
41
|
+
/** Pre-loaded screens — skips the API fetch when provided */
|
|
42
|
+
screens?: Screen[];
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/modules/dynamic-forms/dynamicFormsStateMachine.d.ts
|
|
46
|
+
/** Whether the form completed normally or was skipped due to a screen-loading failure. */
|
|
47
|
+
type DynamicFormsResult = 'completed' | 'skipped';
|
|
48
|
+
declare const dynamicFormsMachine: any;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/modules/dynamic-forms/dynamicFormsActor.d.ts
|
|
51
|
+
type CreateDynamicFormsActorOptions = {
|
|
52
|
+
config: DynamicFormsConfig;
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/modules/dynamic-forms/dynamicFormsManager.d.ts
|
|
56
|
+
/** Dynamic forms manager is in initial state, waiting for `load()` */
|
|
57
|
+
type DynamicFormsIdleState = {
|
|
58
|
+
status: 'idle';
|
|
59
|
+
};
|
|
60
|
+
/** Fetching screen configuration from the backend */
|
|
61
|
+
type DynamicFormsLoadingState = {
|
|
62
|
+
status: 'loadingScreens';
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Ready for user input on the current screen.
|
|
66
|
+
* @property currentScreen - The screen definition to render
|
|
67
|
+
* @property screenIndex - 0-based index of the current screen
|
|
68
|
+
* @property totalScreens - Total number of screens in the form
|
|
69
|
+
* @property answers - Current answer values keyed by questionId
|
|
70
|
+
* @property answerValidity - Per-question format validity reported via `setAnswerValidity` (phone, email, CPF, etc.)
|
|
71
|
+
* @property canSubmit - True when all required questions have non-empty answers AND no validity flag is false
|
|
72
|
+
*/
|
|
73
|
+
type DynamicFormsInputtingState = {
|
|
74
|
+
status: 'inputting';
|
|
75
|
+
currentScreen: Screen;
|
|
76
|
+
screenIndex: number;
|
|
77
|
+
totalScreens: number;
|
|
78
|
+
answers: Record<string, string>;
|
|
79
|
+
answerValidity: Record<string, boolean>;
|
|
80
|
+
canSubmit: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Submitting the current screen's answers to the backend.
|
|
84
|
+
* The screen data is preserved so the UI can keep the form visible (with
|
|
85
|
+
* disabled fields and a button spinner) while the request is in-flight.
|
|
86
|
+
* @property screenIndex - Index of the screen being submitted
|
|
87
|
+
* @property totalScreens - Total number of screens in the form
|
|
88
|
+
* @property currentScreen - The screen whose answers are being submitted
|
|
89
|
+
* @property answers - Frozen answer values at submission time
|
|
90
|
+
* @property answerValidity - Frozen validity flags at submission time
|
|
91
|
+
*/
|
|
92
|
+
type DynamicFormsSubmittingState = {
|
|
93
|
+
status: 'submitting';
|
|
94
|
+
screenIndex: number;
|
|
95
|
+
totalScreens: number;
|
|
96
|
+
currentScreen: Screen;
|
|
97
|
+
answers: Record<string, string>;
|
|
98
|
+
answerValidity: Record<string, boolean>;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* All screens submitted — success screen visible for ~3 s before
|
|
102
|
+
* transitioning to `finished`.
|
|
103
|
+
*/
|
|
104
|
+
type DynamicFormsSuccessState = {
|
|
105
|
+
status: 'success';
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* All screens completed or skipped.
|
|
109
|
+
* @property result - `'completed'` when all screens were submitted successfully;
|
|
110
|
+
* `'skipped'` when screen configuration could not be loaded (fire-and-forget).
|
|
111
|
+
*/
|
|
112
|
+
type DynamicFormsFinishedState = {
|
|
113
|
+
status: 'finished';
|
|
114
|
+
result: DynamicFormsResult;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Neither `screens` nor `flowId` was provided — misconfiguration, not a runtime error.
|
|
118
|
+
* Call `close()` to dismiss. Fix the config (provide `screens` or `flowId`) instead.
|
|
119
|
+
*/
|
|
120
|
+
type DynamicFormsMisconfiguredState = {
|
|
121
|
+
status: 'misconfigured';
|
|
122
|
+
};
|
|
123
|
+
/** User dismissed the module */
|
|
124
|
+
type DynamicFormsClosedState = {
|
|
125
|
+
status: 'closed';
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Union of all possible dynamic forms manager states.
|
|
129
|
+
*/
|
|
130
|
+
type DynamicFormsState = DynamicFormsIdleState | DynamicFormsLoadingState | DynamicFormsInputtingState | DynamicFormsSubmittingState | DynamicFormsSuccessState | DynamicFormsFinishedState | DynamicFormsMisconfiguredState | DynamicFormsClosedState;
|
|
131
|
+
/**
|
|
132
|
+
* Creates a dynamic forms manager for headless or UI-driven usage.
|
|
133
|
+
*
|
|
134
|
+
* @param options - Configuration options
|
|
135
|
+
* @param options.config - Dynamic forms configuration (flowId or pre-loaded screens)
|
|
136
|
+
*
|
|
137
|
+
* @returns Dynamic forms manager with state, API methods, and subscription
|
|
138
|
+
*/
|
|
139
|
+
declare function createDynamicFormsManager(options: CreateDynamicFormsActorOptions): Manager<DynamicFormsState> & {
|
|
140
|
+
/**
|
|
141
|
+
* Initializes the dynamic forms flow.
|
|
142
|
+
* Transitions from 'idle' to 'loadingScreens' or 'inputting'.
|
|
143
|
+
* Must be called before any other method.
|
|
144
|
+
*/
|
|
145
|
+
load(): void;
|
|
146
|
+
/**
|
|
147
|
+
* Updates the answer value for a single question.
|
|
148
|
+
* Should be called when state is 'inputting'.
|
|
149
|
+
*
|
|
150
|
+
* @param questionId - The question ID from the screen definition
|
|
151
|
+
* @param value - The raw user input value (formatting is stripped in Core before submission)
|
|
152
|
+
*/
|
|
153
|
+
setAnswer(questionId: string, value: string): void;
|
|
154
|
+
/**
|
|
155
|
+
* Reports the format validity of a question's current value.
|
|
156
|
+
* Used for fields with format constraints (PHONE, EMAIL, CPF).
|
|
157
|
+
* Core factors this into `canSubmit` — a false entry blocks submission.
|
|
158
|
+
*
|
|
159
|
+
* @param questionId - The question ID from the screen definition
|
|
160
|
+
* @param isValid - Whether the current value passes format validation
|
|
161
|
+
*/
|
|
162
|
+
setAnswerValidity(questionId: string, isValid: boolean): void;
|
|
163
|
+
/**
|
|
164
|
+
* Submits the current screen's answers.
|
|
165
|
+
* Transitions to 'submitting', then advances to the next screen or 'finished'.
|
|
166
|
+
* Answer submission failures are fire-and-forget and do not block progression.
|
|
167
|
+
*/
|
|
168
|
+
submit(): void;
|
|
169
|
+
/**
|
|
170
|
+
* Dismisses the module from 'misconfigured' state.
|
|
171
|
+
* Fix the config (provide `screens` or `flowId`) rather than calling `reset()`.
|
|
172
|
+
*/
|
|
173
|
+
close(): void;
|
|
174
|
+
};
|
|
175
|
+
/** Type representing a dynamic forms manager instance. */
|
|
176
|
+
type DynamicFormsManager = ReturnType<typeof createDynamicFormsManager>;
|
|
177
|
+
//#endregion
|
|
178
|
+
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|