@incodetech/core 0.0.0-dev-20260414-db434be → 0.0.0-dev-20260415-432dcaa

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.
Files changed (146) hide show
  1. package/dist/{OpenViduRecordingProvider-CCUuM9nV.esm.js → OpenViduRecordingProvider-Ciy_C-1w.esm.js} +1 -1
  2. package/dist/{WasmUtilProvider-CYe0Xlh-.esm.js → WasmUtilProvider-RZBzkh7k.esm.js} +1 -1
  3. package/dist/{addressSearch-Ui2rQ1v-.esm.js → addressSearch-Cz9NYgko.esm.js} +4 -4
  4. package/dist/ae-signature.d.ts +24 -0
  5. package/dist/ae-signature.esm.js +15 -0
  6. package/dist/antifraud.d.ts +1 -1
  7. package/dist/antifraud.esm.js +4 -4
  8. package/dist/{antifraudStateMachine-ZNM45OSv.esm.js → antifraudStateMachine-CVr29EJh.esm.js} +3 -3
  9. package/dist/authentication.d.ts +11 -11
  10. package/dist/authentication.esm.js +22 -22
  11. package/dist/{authenticationManager-CwWzwxMp.esm.js → authenticationManager-BxcMxtQl.esm.js} +6 -6
  12. package/dist/{authenticationManager-BuWdnIab.d.ts → authenticationManager-CK4l8wr4.d.ts} +2 -2
  13. package/dist/{authenticationStateMachine-CAvcWS_b.esm.js → authenticationStateMachine-BWKN0R2c.esm.js} +6 -6
  14. package/dist/{backCameraStream-amVBjSd6.esm.js → backCameraStream-CpBKOMnS.esm.js} +3 -3
  15. package/dist/camera.d.ts +1 -1
  16. package/dist/camera.esm.js +3 -3
  17. package/dist/consent.d.ts +55 -55
  18. package/dist/consent.esm.js +4 -4
  19. package/dist/{consentStateMachine-YbOlYveq.esm.js → consentStateMachine-DbBjzAXB.esm.js} +3 -3
  20. package/dist/cross-document-data-match.d.ts +1 -1
  21. package/dist/cross-document-data-match.esm.js +4 -4
  22. package/dist/curp-validation.d.ts +5 -5
  23. package/dist/curp-validation.esm.js +4 -4
  24. package/dist/{curpValidationStateMachine-D3NZ1SVG.esm.js → curpValidationStateMachine-AuZoCjxU.esm.js} +3 -3
  25. package/dist/{deepsightLoader-BqeQIeno.esm.js → deepsightLoader-9DucrEFj.esm.js} +10 -10
  26. package/dist/{deepsightService-CNR9-7As.d.ts → deepsightService-C28DG6Ft.d.ts} +2 -2
  27. package/dist/{deepsightService-B14izXzw.esm.js → deepsightService-EaIu5DxV.esm.js} +5 -5
  28. package/dist/device.esm.js +3 -3
  29. package/dist/document-capture.d.ts +98 -106
  30. package/dist/document-capture.esm.js +8 -8
  31. package/dist/document-upload.d.ts +72 -72
  32. package/dist/document-upload.esm.js +7 -7
  33. package/dist/{documentCaptureStateMachine-CFNsZHSs.esm.js → documentCaptureStateMachine-DenkJZKV.esm.js} +14 -23
  34. package/dist/ekyb.d.ts +3 -3
  35. package/dist/ekyb.esm.js +10 -10
  36. package/dist/{ekybStateMachine-BJS8bjot.esm.js → ekybStateMachine-Cl7b0XCy.esm.js} +5 -5
  37. package/dist/ekyc.d.ts +3 -3
  38. package/dist/ekyc.esm.js +6 -6
  39. package/dist/{ekycStateMachine-CYGpzMDd.esm.js → ekycStateMachine-aVfjxZ41.esm.js} +4 -4
  40. package/dist/electronicSignatureManager-BqePYetY.esm.js +432 -0
  41. package/dist/electronicSignatureManager-C6fUzNt6.d.ts +1153 -0
  42. package/dist/email.d.ts +3 -3
  43. package/dist/email.esm.js +6 -6
  44. package/dist/{emailManager-DT0plT1F.d.ts → emailManager-DAWpPgCJ.d.ts} +2 -2
  45. package/dist/{emailManager-BNmWTggA.esm.js → emailManager-DTYtzTYm.esm.js} +3 -3
  46. package/dist/{emailStateMachine-vD2VtYZM.esm.js → emailStateMachine-BHNluo0p.esm.js} +4 -4
  47. package/dist/{events-B3HfNWqp.esm.js → events-DmzL4OZZ.esm.js} +7 -1
  48. package/dist/events.d.ts +2 -0
  49. package/dist/events.esm.js +2 -2
  50. package/dist/extensibility.d.ts +15 -15
  51. package/dist/extensibility.esm.js +33 -33
  52. package/dist/face-match.d.ts +1 -1
  53. package/dist/face-match.esm.js +4 -4
  54. package/dist/{faceCaptureManagerFactory-odfjA0d8.esm.js → faceCaptureManagerFactory-CJsHKhu8.esm.js} +2 -2
  55. package/dist/{faceCaptureManagerFactory-BBwp70tn.d.ts → faceCaptureManagerFactory-Car0SoBv.d.ts} +8 -8
  56. package/dist/{faceCaptureSetup-CdYYDgN6.esm.js → faceCaptureSetup-H3x5y_nm.esm.js} +4 -4
  57. package/dist/{faceMatchStateMachine-DptHGpKT.esm.js → faceMatchStateMachine-CmFGmxtP.esm.js} +3 -3
  58. package/dist/flow.d.ts +8 -8
  59. package/dist/flow.esm.js +9 -9
  60. package/dist/{flowCompletionService-BhzS182Y.esm.js → flowCompletionService-DvZhkDzr.esm.js} +2 -2
  61. package/dist/{flowServices-D_yVNocO.esm.js → flowServices-uftC020V.esm.js} +3 -3
  62. package/dist/geolocation.d.ts +2 -2
  63. package/dist/geolocation.esm.js +5 -5
  64. package/dist/{geolocationStateMachine-DY8eWROq.esm.js → geolocationStateMachine-cw1LrE-R.esm.js} +4 -4
  65. package/dist/{getDeviceClass-CkdEWjAM.esm.js → getDeviceClass-DvSG23zt.esm.js} +1 -1
  66. package/dist/government-validation.d.ts +2 -2
  67. package/dist/government-validation.esm.js +5 -5
  68. package/dist/{governmentValidationStateMachine-DCqdkm8Z.esm.js → governmentValidationStateMachine-B5X079V6.esm.js} +4 -4
  69. package/dist/home.d.ts +14 -14
  70. package/dist/home.esm.js +3 -3
  71. package/dist/http.esm.js +1 -1
  72. package/dist/id.d.ts +10 -10
  73. package/dist/id.esm.js +22 -22
  74. package/dist/{idCaptureManager-_e78xuEM.esm.js → idCaptureManager-B0ipfrTC.esm.js} +4 -4
  75. package/dist/{idCaptureManager-D1MiNNuR.d.ts → idCaptureManager-C2y_hNL4.d.ts} +7 -7
  76. package/dist/{idCaptureStateMachine-CYPfS8iO.esm.js → idCaptureStateMachine-aKKT9PIC.esm.js} +16 -16
  77. package/dist/identity-reuse.d.ts +49 -49
  78. package/dist/identity-reuse.esm.js +3 -3
  79. package/dist/index.d.ts +2 -2
  80. package/dist/index.esm.js +8 -8
  81. package/dist/{lib-BcTqNgYu.esm.js → lib-CTYFcYOn.esm.js} +1 -1
  82. package/dist/mandatory-consent.d.ts +59 -59
  83. package/dist/mandatory-consent.esm.js +4 -4
  84. package/dist/{mandatoryConsentStateMachine-D0weA8Cn.esm.js → mandatoryConsentStateMachine-BqOdr8kI.esm.js} +3 -3
  85. package/dist/openviduLazy-CYWQSgV9.esm.js +3 -0
  86. package/dist/{openviduLazy-BiBkiXcn.esm.js → openviduLazy-CsZvAzAX.esm.js} +2 -2
  87. package/dist/{permissionServices-ElKNJ-9J.esm.js → permissionServices-CMsg2Z9E.esm.js} +2 -2
  88. package/dist/phone.d.ts +3 -3
  89. package/dist/phone.esm.js +6 -6
  90. package/dist/{phoneManager-BxWESUBK.d.ts → phoneManager-Bj2WG_9H.d.ts} +2 -2
  91. package/dist/{phoneManager-CRVt9rvr.esm.js → phoneManager-DMlXPxkM.esm.js} +3 -3
  92. package/dist/{phoneStateMachine-BMTT0tvu.esm.js → phoneStateMachine-DOySziDt.esm.js} +4 -4
  93. package/dist/qe-signature.d.ts +24 -0
  94. package/dist/qe-signature.esm.js +15 -0
  95. package/dist/{recordingService-BNOxJMAM.esm.js → recordingService-BmI8K0rU.esm.js} +13 -13
  96. package/dist/redirect-to-mobile.d.ts +2 -2
  97. package/dist/redirect-to-mobile.esm.js +5 -5
  98. package/dist/{redirectToMobileStateMachine-8yOC9dnH.esm.js → redirectToMobileStateMachine-Df9Wiij3.esm.js} +4 -4
  99. package/dist/{runChildModule-eBqC5Z25.esm.js → runChildModule-BdmUJlUx.esm.js} +1 -1
  100. package/dist/selfie.d.ts +11 -11
  101. package/dist/selfie.esm.js +22 -22
  102. package/dist/{selfieManager-B7XmNptL.d.ts → selfieManager-C3FdEHmA.d.ts} +2 -2
  103. package/dist/{selfieManager-C6pl5f2B.esm.js → selfieManager-_Vz0tGue.esm.js} +6 -6
  104. package/dist/{selfieStateMachine-B88Q3SFX.esm.js → selfieStateMachine-Dt_3P1iP.esm.js} +3 -3
  105. package/dist/{session-D2s2kUoa.esm.js → session-DCwK8lml.esm.js} +4 -4
  106. package/dist/session.d.ts +1 -1
  107. package/dist/session.esm.js +6 -6
  108. package/dist/{setup-DR4SBtyZ.d.ts → setup-C9KXCo_m.d.ts} +1 -1
  109. package/dist/{setup-nE0hEkGl.esm.js → setup-TyKY9awM.esm.js} +5 -5
  110. package/dist/signature.d.ts +2 -2
  111. package/dist/signature.esm.js +4 -4
  112. package/dist/{signatureStateMachine-BOdPhzPM.esm.js → signatureStateMachine-D3QtzFAx.esm.js} +3 -3
  113. package/dist/{stats-D0m-GAIR.esm.js → stats-nPGKzcyf.esm.js} +1 -1
  114. package/dist/stats.esm.js +2 -2
  115. package/dist/{types-DR5Xxm-c.d.ts → types-C6RDNA3x.d.ts} +1 -1
  116. package/dist/{types-BoV6HZZE.d.ts → types-DoaP1d4y.d.ts} +1 -1
  117. package/dist/{types-vklwHgIM.d.ts → types-Dt0PX_G8.d.ts} +1 -1
  118. package/dist/wasm.d.ts +2 -2
  119. package/dist/wasm.esm.js +8 -8
  120. package/dist/watchlist.d.ts +1 -1
  121. package/dist/watchlist.esm.js +3 -3
  122. package/dist/workflow.d.ts +86 -86
  123. package/dist/workflow.esm.js +41 -41
  124. package/package.json +13 -1
  125. package/dist/openviduLazy-CrjlHYIL.esm.js +0 -3
  126. /package/dist/{Actor-iMyH_hBY.d.ts → Actor-3i5cyga0.d.ts} +0 -0
  127. /package/dist/{BaseWasmProvider-DFM6aa1Z.esm.js → BaseWasmProvider-RaPH9kjo.esm.js} +0 -0
  128. /package/dist/{BrowserEnvironmentProvider-4Vr7ceoW.esm.js → BrowserEnvironmentProvider-CcXAZs6A.esm.js} +0 -0
  129. /package/dist/{BrowserStorageProvider-Dp9k9EzW.esm.js → BrowserStorageProvider-Dhz61PBs.esm.js} +0 -0
  130. /package/dist/{BrowserTimerProvider-BfL0cWbj.esm.js → BrowserTimerProvider-evgXyST-.esm.js} +0 -0
  131. /package/dist/{ITimerCapability-_YySEUj7.esm.js → ITimerCapability-3xSd36bT.esm.js} +0 -0
  132. /package/dist/{Manager-BzPNdMJn.d.ts → Manager-JJUrroR5.d.ts} +0 -0
  133. /package/dist/{MotionSensorProvider-Bi6DuLLP.esm.js → MotionSensorProvider-68EX-ga5.esm.js} +0 -0
  134. /package/dist/{StateMachine-DIeoDJ7r.d.ts → StateMachine-BgnvBNw_.d.ts} +0 -0
  135. /package/dist/{api-CGdjmBzR.esm.js → api-Dp5p_Y6w.esm.js} +0 -0
  136. /package/dist/{browserSimulation-D9FTZt0Z.esm.js → browserSimulation-CPICg9y_.esm.js} +0 -0
  137. /package/dist/{camera-C4T2nh2F.esm.js → camera-B8eOgxVH.esm.js} +0 -0
  138. /package/dist/{camera-DdgjYGQh.d.ts → camera-CXTjb-hl.d.ts} +0 -0
  139. /package/dist/{chunk-CT7w1OiQ.esm.js → chunk-B08Z0byF.esm.js} +0 -0
  140. /package/dist/{displayErrors-CGztf2Nk.d.ts → displayErrors-BmAb2BTD.d.ts} +0 -0
  141. /package/dist/{flowCompletionService-CNpeRlnP.d.ts → flowCompletionService-B91gpDV1.d.ts} +0 -0
  142. /package/dist/{getBrowser-DR_WEE3I.esm.js → getBrowser-CWOVfVnz.esm.js} +0 -0
  143. /package/dist/{platform-B81QvKKx.esm.js → platform-CvkRGlos.esm.js} +0 -0
  144. /package/dist/{types-Bo7LR34d.d.ts → types-DOxS53jV.d.ts} +0 -0
  145. /package/dist/{warmup-C5bT21Jo.d.ts → warmup-BOX_DSYX.d.ts} +0 -0
  146. /package/dist/{xstate.esm-DW_uPCba.esm.js → xstate.esm-CitJJ2CJ.esm.js} +0 -0
@@ -0,0 +1,1153 @@
1
+ import * as xstate0 from "xstate";
2
+
3
+ //#region src/internal/electronicSignature/types.d.ts
4
+ type ElectronicSignatureVariant = 'ae' | 'qe';
5
+ type ElectronicSignatureConfig = {
6
+ variant?: ElectronicSignatureVariant;
7
+ uploadDocument?: boolean;
8
+ downloadDocument?: boolean;
9
+ };
10
+ type ElectronicSignatureDocument = {
11
+ documentRef: string;
12
+ documentUrl: string;
13
+ };
14
+ type SignedDocument = {
15
+ signedDocumentUrl: string;
16
+ };
17
+ declare const AE_CONSENT_KEYS: readonly ["terms", "signElectronically", "signDisplayed"];
18
+ declare const QE_CONSENT_KEYS: readonly ["issuance", "qesAcknowledgement", "qscdConfirmation", "termsAgreement", "documentsReviewed"];
19
+ type AeConsentKey = (typeof AE_CONSENT_KEYS)[number];
20
+ type QeConsentKey = (typeof QE_CONSENT_KEYS)[number];
21
+ type ConsentKey = AeConsentKey | QeConsentKey;
22
+ type ConsentChecks = Partial<Record<ConsentKey, boolean>>;
23
+ declare function getDefaultConsentChecks(variant: ElectronicSignatureVariant): ConsentChecks;
24
+ declare function areAllConsented(checks: ConsentChecks): boolean;
25
+ type UnsignedDocsResponse = {
26
+ documents: ElectronicSignatureDocument[];
27
+ };
28
+ type ElectronicSignatureErrorSource = 'upload' | 'fetchDocs' | 'signing';
29
+ type ElectronicSignatureContext = {
30
+ config: ElectronicSignatureConfig;
31
+ getFileData: () => ArrayBuffer | null;
32
+ documents: ElectronicSignatureDocument[];
33
+ signedDocuments: SignedDocument[];
34
+ fileName: string | null;
35
+ fileSize: number | null;
36
+ fileUrl: string | null;
37
+ consentChecks: ConsentChecks;
38
+ viewingDocumentUrl: string | null;
39
+ errorMessage: string;
40
+ errorSource: ElectronicSignatureErrorSource | null;
41
+ };
42
+ type ElectronicSignatureInput = {
43
+ config: ElectronicSignatureConfig;
44
+ getFileData: () => ArrayBuffer | null;
45
+ };
46
+ //#endregion
47
+ //#region src/internal/electronicSignature/electronicSignatureStateMachine.d.ts
48
+ declare const electronicSignatureMachine: xstate0.StateMachine<ElectronicSignatureContext, {
49
+ type: "LOAD";
50
+ } | {
51
+ type: "SELECT_FILE";
52
+ fileName: string;
53
+ fileSize: number;
54
+ fileUrl: string;
55
+ } | {
56
+ type: "REPLACE_FILE";
57
+ } | {
58
+ type: "CONFIRM_FILE";
59
+ } | {
60
+ type: "SET_CONSENT";
61
+ name: ConsentKey;
62
+ checked: boolean;
63
+ } | {
64
+ type: "VIEW_DOCUMENT";
65
+ url: string;
66
+ } | {
67
+ type: "CLOSE_DOCUMENT_VIEW";
68
+ } | {
69
+ type: "SIGN";
70
+ } | {
71
+ type: "FINISH";
72
+ } | {
73
+ type: "RETRY";
74
+ } | {
75
+ type: "CLOSE";
76
+ }, {
77
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
78
+ getFileData: () => ArrayBuffer | null;
79
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<SignedDocument[], {
80
+ documents: ElectronicSignatureDocument[];
81
+ variant: ElectronicSignatureVariant;
82
+ }, xstate0.EventObject>> | undefined;
83
+ }, xstate0.Values<{
84
+ uploadDocument: {
85
+ src: "uploadDocument";
86
+ logic: xstate0.PromiseActorLogic<void, {
87
+ getFileData: () => ArrayBuffer | null;
88
+ }, xstate0.EventObject>;
89
+ id: string | undefined;
90
+ };
91
+ fetchUnsignedDocs: {
92
+ src: "fetchUnsignedDocs";
93
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
94
+ id: string | undefined;
95
+ };
96
+ signDocuments: {
97
+ src: "signDocuments";
98
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
99
+ documents: ElectronicSignatureDocument[];
100
+ variant: ElectronicSignatureVariant;
101
+ }, xstate0.EventObject>;
102
+ id: string | undefined;
103
+ };
104
+ }>, xstate0.Values<{
105
+ setDocuments: {
106
+ type: "setDocuments";
107
+ params: xstate0.NonReducibleUnknown;
108
+ };
109
+ setSignedDocuments: {
110
+ type: "setSignedDocuments";
111
+ params: xstate0.NonReducibleUnknown;
112
+ };
113
+ setFile: {
114
+ type: "setFile";
115
+ params: xstate0.NonReducibleUnknown;
116
+ };
117
+ updateConsent: {
118
+ type: "updateConsent";
119
+ params: xstate0.NonReducibleUnknown;
120
+ };
121
+ setViewingDocument: {
122
+ type: "setViewingDocument";
123
+ params: xstate0.NonReducibleUnknown;
124
+ };
125
+ clearViewingDocument: {
126
+ type: "clearViewingDocument";
127
+ params: xstate0.NonReducibleUnknown;
128
+ };
129
+ }>, xstate0.Values<{
130
+ errorFromUpload: {
131
+ type: "errorFromUpload";
132
+ params: unknown;
133
+ };
134
+ errorFromSigning: {
135
+ type: "errorFromSigning";
136
+ params: unknown;
137
+ };
138
+ shouldUpload: {
139
+ type: "shouldUpload";
140
+ params: unknown;
141
+ };
142
+ shouldDownload: {
143
+ type: "shouldDownload";
144
+ params: unknown;
145
+ };
146
+ allConsented: {
147
+ type: "allConsented";
148
+ params: unknown;
149
+ };
150
+ hasDocuments: {
151
+ type: "hasDocuments";
152
+ params: unknown;
153
+ };
154
+ allSigned: {
155
+ type: "allSigned";
156
+ params: unknown;
157
+ };
158
+ allSignedAndDownload: {
159
+ type: "allSignedAndDownload";
160
+ params: unknown;
161
+ };
162
+ }>, never, "error" | "signing" | "idle" | "uploading" | "fetchingDocs" | "reviewing" | "closed" | "uploadingFile" | "processing" | "successDownload" | "success" | "finished", string, ElectronicSignatureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
163
+ readonly id: "electronicSignature";
164
+ readonly initial: "idle";
165
+ readonly context: ({
166
+ input
167
+ }: {
168
+ spawn: {
169
+ <TSrc extends "uploadDocument" | "fetchUnsignedDocs" | "signDocuments">(logic: TSrc, ...[options]: ({
170
+ src: "uploadDocument";
171
+ logic: xstate0.PromiseActorLogic<void, {
172
+ getFileData: () => ArrayBuffer | null;
173
+ }, xstate0.EventObject>;
174
+ id: string | undefined;
175
+ } extends infer T ? T extends {
176
+ src: "uploadDocument";
177
+ logic: xstate0.PromiseActorLogic<void, {
178
+ getFileData: () => ArrayBuffer | null;
179
+ }, xstate0.EventObject>;
180
+ id: string | undefined;
181
+ } ? T extends {
182
+ src: TSrc;
183
+ } ? xstate0.ConditionalRequired<[options?: ({
184
+ id?: T["id"] | undefined;
185
+ systemId?: string;
186
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
187
+ syncSnapshot?: boolean;
188
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
189
+ src: "fetchUnsignedDocs";
190
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
191
+ id: string | undefined;
192
+ } extends infer T_1 ? T_1 extends {
193
+ src: "fetchUnsignedDocs";
194
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
195
+ id: string | undefined;
196
+ } ? T_1 extends {
197
+ src: TSrc;
198
+ } ? xstate0.ConditionalRequired<[options?: ({
199
+ id?: T_1["id"] | undefined;
200
+ systemId?: string;
201
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
202
+ syncSnapshot?: boolean;
203
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
204
+ src: "signDocuments";
205
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
206
+ documents: ElectronicSignatureDocument[];
207
+ variant: ElectronicSignatureVariant;
208
+ }, xstate0.EventObject>;
209
+ id: string | undefined;
210
+ } extends infer T_2 ? T_2 extends {
211
+ src: "signDocuments";
212
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
213
+ documents: ElectronicSignatureDocument[];
214
+ variant: ElectronicSignatureVariant;
215
+ }, xstate0.EventObject>;
216
+ id: string | undefined;
217
+ } ? T_2 extends {
218
+ src: TSrc;
219
+ } ? xstate0.ConditionalRequired<[options?: ({
220
+ id?: T_2["id"] | undefined;
221
+ systemId?: string;
222
+ input?: xstate0.InputFrom<T_2["logic"]> | undefined;
223
+ syncSnapshot?: boolean;
224
+ } & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
225
+ uploadDocument: {
226
+ src: "uploadDocument";
227
+ logic: xstate0.PromiseActorLogic<void, {
228
+ getFileData: () => ArrayBuffer | null;
229
+ }, xstate0.EventObject>;
230
+ id: string | undefined;
231
+ };
232
+ fetchUnsignedDocs: {
233
+ src: "fetchUnsignedDocs";
234
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
235
+ id: string | undefined;
236
+ };
237
+ signDocuments: {
238
+ src: "signDocuments";
239
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
240
+ documents: ElectronicSignatureDocument[];
241
+ variant: ElectronicSignatureVariant;
242
+ }, xstate0.EventObject>;
243
+ id: string | undefined;
244
+ };
245
+ }>, "src", TSrc>["logic"]>;
246
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
247
+ id?: never;
248
+ systemId?: string;
249
+ input?: xstate0.InputFrom<TLogic> | undefined;
250
+ syncSnapshot?: boolean;
251
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
252
+ };
253
+ input: ElectronicSignatureInput;
254
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ElectronicSignatureContext, {
255
+ type: "LOAD";
256
+ } | {
257
+ type: "SELECT_FILE";
258
+ fileName: string;
259
+ fileSize: number;
260
+ fileUrl: string;
261
+ } | {
262
+ type: "REPLACE_FILE";
263
+ } | {
264
+ type: "CONFIRM_FILE";
265
+ } | {
266
+ type: "SET_CONSENT";
267
+ name: ConsentKey;
268
+ checked: boolean;
269
+ } | {
270
+ type: "VIEW_DOCUMENT";
271
+ url: string;
272
+ } | {
273
+ type: "CLOSE_DOCUMENT_VIEW";
274
+ } | {
275
+ type: "SIGN";
276
+ } | {
277
+ type: "FINISH";
278
+ } | {
279
+ type: "RETRY";
280
+ } | {
281
+ type: "CLOSE";
282
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
283
+ type: "LOAD";
284
+ } | {
285
+ type: "SELECT_FILE";
286
+ fileName: string;
287
+ fileSize: number;
288
+ fileUrl: string;
289
+ } | {
290
+ type: "REPLACE_FILE";
291
+ } | {
292
+ type: "CONFIRM_FILE";
293
+ } | {
294
+ type: "SET_CONSENT";
295
+ name: ConsentKey;
296
+ checked: boolean;
297
+ } | {
298
+ type: "VIEW_DOCUMENT";
299
+ url: string;
300
+ } | {
301
+ type: "CLOSE_DOCUMENT_VIEW";
302
+ } | {
303
+ type: "SIGN";
304
+ } | {
305
+ type: "FINISH";
306
+ } | {
307
+ type: "RETRY";
308
+ } | {
309
+ type: "CLOSE";
310
+ }, xstate0.AnyEventObject>;
311
+ }) => {
312
+ config: ElectronicSignatureConfig;
313
+ getFileData: () => ArrayBuffer | null;
314
+ documents: never[];
315
+ signedDocuments: never[];
316
+ fileName: null;
317
+ fileSize: null;
318
+ fileUrl: null;
319
+ consentChecks: Partial<Record<ConsentKey, boolean>>;
320
+ viewingDocumentUrl: null;
321
+ errorMessage: string;
322
+ errorSource: null;
323
+ };
324
+ readonly states: {
325
+ readonly idle: {
326
+ readonly on: {
327
+ readonly LOAD: readonly [{
328
+ readonly target: "uploading";
329
+ readonly guard: "shouldUpload";
330
+ }, {
331
+ readonly target: "fetchingDocs";
332
+ }];
333
+ };
334
+ };
335
+ readonly uploading: {
336
+ readonly on: {
337
+ readonly SELECT_FILE: {
338
+ readonly target: "reviewing";
339
+ readonly actions: "setFile";
340
+ };
341
+ readonly CLOSE: {
342
+ readonly target: "closed";
343
+ };
344
+ };
345
+ };
346
+ readonly reviewing: {
347
+ readonly on: {
348
+ readonly REPLACE_FILE: {
349
+ readonly target: "uploading";
350
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, {
351
+ type: "REPLACE_FILE";
352
+ }, {
353
+ type: "LOAD";
354
+ } | {
355
+ type: "SELECT_FILE";
356
+ fileName: string;
357
+ fileSize: number;
358
+ fileUrl: string;
359
+ } | {
360
+ type: "REPLACE_FILE";
361
+ } | {
362
+ type: "CONFIRM_FILE";
363
+ } | {
364
+ type: "SET_CONSENT";
365
+ name: ConsentKey;
366
+ checked: boolean;
367
+ } | {
368
+ type: "VIEW_DOCUMENT";
369
+ url: string;
370
+ } | {
371
+ type: "CLOSE_DOCUMENT_VIEW";
372
+ } | {
373
+ type: "SIGN";
374
+ } | {
375
+ type: "FINISH";
376
+ } | {
377
+ type: "RETRY";
378
+ } | {
379
+ type: "CLOSE";
380
+ }, undefined, xstate0.Values<{
381
+ uploadDocument: {
382
+ src: "uploadDocument";
383
+ logic: xstate0.PromiseActorLogic<void, {
384
+ getFileData: () => ArrayBuffer | null;
385
+ }, xstate0.EventObject>;
386
+ id: string | undefined;
387
+ };
388
+ fetchUnsignedDocs: {
389
+ src: "fetchUnsignedDocs";
390
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
391
+ id: string | undefined;
392
+ };
393
+ signDocuments: {
394
+ src: "signDocuments";
395
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
396
+ documents: ElectronicSignatureDocument[];
397
+ variant: ElectronicSignatureVariant;
398
+ }, xstate0.EventObject>;
399
+ id: string | undefined;
400
+ };
401
+ }>, never, never, never, never>;
402
+ };
403
+ readonly CONFIRM_FILE: {
404
+ readonly target: "uploadingFile";
405
+ };
406
+ readonly CLOSE: {
407
+ readonly target: "closed";
408
+ };
409
+ };
410
+ };
411
+ readonly uploadingFile: {
412
+ readonly invoke: {
413
+ readonly id: "uploadDocument";
414
+ readonly src: "uploadDocument";
415
+ readonly input: ({
416
+ context
417
+ }: {
418
+ context: ElectronicSignatureContext;
419
+ event: {
420
+ type: "LOAD";
421
+ } | {
422
+ type: "SELECT_FILE";
423
+ fileName: string;
424
+ fileSize: number;
425
+ fileUrl: string;
426
+ } | {
427
+ type: "REPLACE_FILE";
428
+ } | {
429
+ type: "CONFIRM_FILE";
430
+ } | {
431
+ type: "SET_CONSENT";
432
+ name: ConsentKey;
433
+ checked: boolean;
434
+ } | {
435
+ type: "VIEW_DOCUMENT";
436
+ url: string;
437
+ } | {
438
+ type: "CLOSE_DOCUMENT_VIEW";
439
+ } | {
440
+ type: "SIGN";
441
+ } | {
442
+ type: "FINISH";
443
+ } | {
444
+ type: "RETRY";
445
+ } | {
446
+ type: "CLOSE";
447
+ };
448
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ElectronicSignatureContext, {
449
+ type: "LOAD";
450
+ } | {
451
+ type: "SELECT_FILE";
452
+ fileName: string;
453
+ fileSize: number;
454
+ fileUrl: string;
455
+ } | {
456
+ type: "REPLACE_FILE";
457
+ } | {
458
+ type: "CONFIRM_FILE";
459
+ } | {
460
+ type: "SET_CONSENT";
461
+ name: ConsentKey;
462
+ checked: boolean;
463
+ } | {
464
+ type: "VIEW_DOCUMENT";
465
+ url: string;
466
+ } | {
467
+ type: "CLOSE_DOCUMENT_VIEW";
468
+ } | {
469
+ type: "SIGN";
470
+ } | {
471
+ type: "FINISH";
472
+ } | {
473
+ type: "RETRY";
474
+ } | {
475
+ type: "CLOSE";
476
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
477
+ type: "LOAD";
478
+ } | {
479
+ type: "SELECT_FILE";
480
+ fileName: string;
481
+ fileSize: number;
482
+ fileUrl: string;
483
+ } | {
484
+ type: "REPLACE_FILE";
485
+ } | {
486
+ type: "CONFIRM_FILE";
487
+ } | {
488
+ type: "SET_CONSENT";
489
+ name: ConsentKey;
490
+ checked: boolean;
491
+ } | {
492
+ type: "VIEW_DOCUMENT";
493
+ url: string;
494
+ } | {
495
+ type: "CLOSE_DOCUMENT_VIEW";
496
+ } | {
497
+ type: "SIGN";
498
+ } | {
499
+ type: "FINISH";
500
+ } | {
501
+ type: "RETRY";
502
+ } | {
503
+ type: "CLOSE";
504
+ }, xstate0.AnyEventObject>;
505
+ }) => {
506
+ getFileData: () => ArrayBuffer | null;
507
+ };
508
+ readonly onDone: {
509
+ readonly target: "fetchingDocs";
510
+ };
511
+ readonly onError: {
512
+ readonly target: "error";
513
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, xstate0.ErrorActorEvent<unknown, string>, {
514
+ type: "LOAD";
515
+ } | {
516
+ type: "SELECT_FILE";
517
+ fileName: string;
518
+ fileSize: number;
519
+ fileUrl: string;
520
+ } | {
521
+ type: "REPLACE_FILE";
522
+ } | {
523
+ type: "CONFIRM_FILE";
524
+ } | {
525
+ type: "SET_CONSENT";
526
+ name: ConsentKey;
527
+ checked: boolean;
528
+ } | {
529
+ type: "VIEW_DOCUMENT";
530
+ url: string;
531
+ } | {
532
+ type: "CLOSE_DOCUMENT_VIEW";
533
+ } | {
534
+ type: "SIGN";
535
+ } | {
536
+ type: "FINISH";
537
+ } | {
538
+ type: "RETRY";
539
+ } | {
540
+ type: "CLOSE";
541
+ }, undefined, xstate0.Values<{
542
+ uploadDocument: {
543
+ src: "uploadDocument";
544
+ logic: xstate0.PromiseActorLogic<void, {
545
+ getFileData: () => ArrayBuffer | null;
546
+ }, xstate0.EventObject>;
547
+ id: string | undefined;
548
+ };
549
+ fetchUnsignedDocs: {
550
+ src: "fetchUnsignedDocs";
551
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
552
+ id: string | undefined;
553
+ };
554
+ signDocuments: {
555
+ src: "signDocuments";
556
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
557
+ documents: ElectronicSignatureDocument[];
558
+ variant: ElectronicSignatureVariant;
559
+ }, xstate0.EventObject>;
560
+ id: string | undefined;
561
+ };
562
+ }>, never, never, never, never>;
563
+ };
564
+ };
565
+ };
566
+ readonly fetchingDocs: {
567
+ readonly invoke: {
568
+ readonly id: "fetchUnsignedDocs";
569
+ readonly src: "fetchUnsignedDocs";
570
+ readonly onDone: readonly [{
571
+ readonly target: "signing";
572
+ readonly guard: "hasDocuments";
573
+ readonly actions: "setDocuments";
574
+ }, {
575
+ readonly target: "error";
576
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, xstate0.DoneActorEvent<UnsignedDocsResponse, string>, {
577
+ type: "LOAD";
578
+ } | {
579
+ type: "SELECT_FILE";
580
+ fileName: string;
581
+ fileSize: number;
582
+ fileUrl: string;
583
+ } | {
584
+ type: "REPLACE_FILE";
585
+ } | {
586
+ type: "CONFIRM_FILE";
587
+ } | {
588
+ type: "SET_CONSENT";
589
+ name: ConsentKey;
590
+ checked: boolean;
591
+ } | {
592
+ type: "VIEW_DOCUMENT";
593
+ url: string;
594
+ } | {
595
+ type: "CLOSE_DOCUMENT_VIEW";
596
+ } | {
597
+ type: "SIGN";
598
+ } | {
599
+ type: "FINISH";
600
+ } | {
601
+ type: "RETRY";
602
+ } | {
603
+ type: "CLOSE";
604
+ }, undefined, xstate0.Values<{
605
+ uploadDocument: {
606
+ src: "uploadDocument";
607
+ logic: xstate0.PromiseActorLogic<void, {
608
+ getFileData: () => ArrayBuffer | null;
609
+ }, xstate0.EventObject>;
610
+ id: string | undefined;
611
+ };
612
+ fetchUnsignedDocs: {
613
+ src: "fetchUnsignedDocs";
614
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
615
+ id: string | undefined;
616
+ };
617
+ signDocuments: {
618
+ src: "signDocuments";
619
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
620
+ documents: ElectronicSignatureDocument[];
621
+ variant: ElectronicSignatureVariant;
622
+ }, xstate0.EventObject>;
623
+ id: string | undefined;
624
+ };
625
+ }>, never, never, never, never>;
626
+ }];
627
+ readonly onError: {
628
+ readonly target: "error";
629
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, xstate0.ErrorActorEvent<unknown, string>, {
630
+ type: "LOAD";
631
+ } | {
632
+ type: "SELECT_FILE";
633
+ fileName: string;
634
+ fileSize: number;
635
+ fileUrl: string;
636
+ } | {
637
+ type: "REPLACE_FILE";
638
+ } | {
639
+ type: "CONFIRM_FILE";
640
+ } | {
641
+ type: "SET_CONSENT";
642
+ name: ConsentKey;
643
+ checked: boolean;
644
+ } | {
645
+ type: "VIEW_DOCUMENT";
646
+ url: string;
647
+ } | {
648
+ type: "CLOSE_DOCUMENT_VIEW";
649
+ } | {
650
+ type: "SIGN";
651
+ } | {
652
+ type: "FINISH";
653
+ } | {
654
+ type: "RETRY";
655
+ } | {
656
+ type: "CLOSE";
657
+ }, undefined, xstate0.Values<{
658
+ uploadDocument: {
659
+ src: "uploadDocument";
660
+ logic: xstate0.PromiseActorLogic<void, {
661
+ getFileData: () => ArrayBuffer | null;
662
+ }, xstate0.EventObject>;
663
+ id: string | undefined;
664
+ };
665
+ fetchUnsignedDocs: {
666
+ src: "fetchUnsignedDocs";
667
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
668
+ id: string | undefined;
669
+ };
670
+ signDocuments: {
671
+ src: "signDocuments";
672
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
673
+ documents: ElectronicSignatureDocument[];
674
+ variant: ElectronicSignatureVariant;
675
+ }, xstate0.EventObject>;
676
+ id: string | undefined;
677
+ };
678
+ }>, never, never, never, never>;
679
+ };
680
+ };
681
+ };
682
+ readonly signing: {
683
+ readonly on: {
684
+ readonly SET_CONSENT: {
685
+ readonly actions: "updateConsent";
686
+ };
687
+ readonly VIEW_DOCUMENT: {
688
+ readonly actions: "setViewingDocument";
689
+ };
690
+ readonly CLOSE_DOCUMENT_VIEW: {
691
+ readonly actions: "clearViewingDocument";
692
+ };
693
+ readonly SIGN: {
694
+ readonly target: "processing";
695
+ readonly guard: "allConsented";
696
+ };
697
+ readonly CLOSE: {
698
+ readonly target: "closed";
699
+ };
700
+ };
701
+ };
702
+ readonly processing: {
703
+ readonly invoke: {
704
+ readonly id: "signDocuments";
705
+ readonly src: "signDocuments";
706
+ readonly input: ({
707
+ context
708
+ }: {
709
+ context: ElectronicSignatureContext;
710
+ event: {
711
+ type: "LOAD";
712
+ } | {
713
+ type: "SELECT_FILE";
714
+ fileName: string;
715
+ fileSize: number;
716
+ fileUrl: string;
717
+ } | {
718
+ type: "REPLACE_FILE";
719
+ } | {
720
+ type: "CONFIRM_FILE";
721
+ } | {
722
+ type: "SET_CONSENT";
723
+ name: ConsentKey;
724
+ checked: boolean;
725
+ } | {
726
+ type: "VIEW_DOCUMENT";
727
+ url: string;
728
+ } | {
729
+ type: "CLOSE_DOCUMENT_VIEW";
730
+ } | {
731
+ type: "SIGN";
732
+ } | {
733
+ type: "FINISH";
734
+ } | {
735
+ type: "RETRY";
736
+ } | {
737
+ type: "CLOSE";
738
+ };
739
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ElectronicSignatureContext, {
740
+ type: "LOAD";
741
+ } | {
742
+ type: "SELECT_FILE";
743
+ fileName: string;
744
+ fileSize: number;
745
+ fileUrl: string;
746
+ } | {
747
+ type: "REPLACE_FILE";
748
+ } | {
749
+ type: "CONFIRM_FILE";
750
+ } | {
751
+ type: "SET_CONSENT";
752
+ name: ConsentKey;
753
+ checked: boolean;
754
+ } | {
755
+ type: "VIEW_DOCUMENT";
756
+ url: string;
757
+ } | {
758
+ type: "CLOSE_DOCUMENT_VIEW";
759
+ } | {
760
+ type: "SIGN";
761
+ } | {
762
+ type: "FINISH";
763
+ } | {
764
+ type: "RETRY";
765
+ } | {
766
+ type: "CLOSE";
767
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
768
+ type: "LOAD";
769
+ } | {
770
+ type: "SELECT_FILE";
771
+ fileName: string;
772
+ fileSize: number;
773
+ fileUrl: string;
774
+ } | {
775
+ type: "REPLACE_FILE";
776
+ } | {
777
+ type: "CONFIRM_FILE";
778
+ } | {
779
+ type: "SET_CONSENT";
780
+ name: ConsentKey;
781
+ checked: boolean;
782
+ } | {
783
+ type: "VIEW_DOCUMENT";
784
+ url: string;
785
+ } | {
786
+ type: "CLOSE_DOCUMENT_VIEW";
787
+ } | {
788
+ type: "SIGN";
789
+ } | {
790
+ type: "FINISH";
791
+ } | {
792
+ type: "RETRY";
793
+ } | {
794
+ type: "CLOSE";
795
+ }, xstate0.AnyEventObject>;
796
+ }) => {
797
+ documents: ElectronicSignatureDocument[];
798
+ variant: ElectronicSignatureVariant;
799
+ };
800
+ readonly onDone: readonly [{
801
+ readonly target: "successDownload";
802
+ readonly guard: "allSignedAndDownload";
803
+ readonly actions: "setSignedDocuments";
804
+ }, {
805
+ readonly target: "success";
806
+ readonly guard: "allSigned";
807
+ readonly actions: "setSignedDocuments";
808
+ }, {
809
+ readonly target: "error";
810
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, xstate0.DoneActorEvent<SignedDocument[], string>, {
811
+ type: "LOAD";
812
+ } | {
813
+ type: "SELECT_FILE";
814
+ fileName: string;
815
+ fileSize: number;
816
+ fileUrl: string;
817
+ } | {
818
+ type: "REPLACE_FILE";
819
+ } | {
820
+ type: "CONFIRM_FILE";
821
+ } | {
822
+ type: "SET_CONSENT";
823
+ name: ConsentKey;
824
+ checked: boolean;
825
+ } | {
826
+ type: "VIEW_DOCUMENT";
827
+ url: string;
828
+ } | {
829
+ type: "CLOSE_DOCUMENT_VIEW";
830
+ } | {
831
+ type: "SIGN";
832
+ } | {
833
+ type: "FINISH";
834
+ } | {
835
+ type: "RETRY";
836
+ } | {
837
+ type: "CLOSE";
838
+ }, undefined, xstate0.Values<{
839
+ uploadDocument: {
840
+ src: "uploadDocument";
841
+ logic: xstate0.PromiseActorLogic<void, {
842
+ getFileData: () => ArrayBuffer | null;
843
+ }, xstate0.EventObject>;
844
+ id: string | undefined;
845
+ };
846
+ fetchUnsignedDocs: {
847
+ src: "fetchUnsignedDocs";
848
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
849
+ id: string | undefined;
850
+ };
851
+ signDocuments: {
852
+ src: "signDocuments";
853
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
854
+ documents: ElectronicSignatureDocument[];
855
+ variant: ElectronicSignatureVariant;
856
+ }, xstate0.EventObject>;
857
+ id: string | undefined;
858
+ };
859
+ }>, never, never, never, never>;
860
+ }];
861
+ readonly onError: {
862
+ readonly target: "error";
863
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, xstate0.ErrorActorEvent<unknown, string>, {
864
+ type: "LOAD";
865
+ } | {
866
+ type: "SELECT_FILE";
867
+ fileName: string;
868
+ fileSize: number;
869
+ fileUrl: string;
870
+ } | {
871
+ type: "REPLACE_FILE";
872
+ } | {
873
+ type: "CONFIRM_FILE";
874
+ } | {
875
+ type: "SET_CONSENT";
876
+ name: ConsentKey;
877
+ checked: boolean;
878
+ } | {
879
+ type: "VIEW_DOCUMENT";
880
+ url: string;
881
+ } | {
882
+ type: "CLOSE_DOCUMENT_VIEW";
883
+ } | {
884
+ type: "SIGN";
885
+ } | {
886
+ type: "FINISH";
887
+ } | {
888
+ type: "RETRY";
889
+ } | {
890
+ type: "CLOSE";
891
+ }, undefined, xstate0.Values<{
892
+ uploadDocument: {
893
+ src: "uploadDocument";
894
+ logic: xstate0.PromiseActorLogic<void, {
895
+ getFileData: () => ArrayBuffer | null;
896
+ }, xstate0.EventObject>;
897
+ id: string | undefined;
898
+ };
899
+ fetchUnsignedDocs: {
900
+ src: "fetchUnsignedDocs";
901
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
902
+ id: string | undefined;
903
+ };
904
+ signDocuments: {
905
+ src: "signDocuments";
906
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
907
+ documents: ElectronicSignatureDocument[];
908
+ variant: ElectronicSignatureVariant;
909
+ }, xstate0.EventObject>;
910
+ id: string | undefined;
911
+ };
912
+ }>, never, never, never, never>;
913
+ };
914
+ };
915
+ };
916
+ readonly success: {
917
+ readonly after: {
918
+ readonly 3000: "finished";
919
+ };
920
+ };
921
+ readonly successDownload: {
922
+ readonly on: {
923
+ readonly FINISH: {
924
+ readonly target: "finished";
925
+ };
926
+ readonly CLOSE: {
927
+ readonly target: "closed";
928
+ };
929
+ };
930
+ };
931
+ readonly error: {
932
+ readonly on: {
933
+ readonly RETRY: readonly [{
934
+ readonly target: "uploading";
935
+ readonly guard: "errorFromUpload";
936
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, {
937
+ type: "RETRY";
938
+ }, {
939
+ type: "LOAD";
940
+ } | {
941
+ type: "SELECT_FILE";
942
+ fileName: string;
943
+ fileSize: number;
944
+ fileUrl: string;
945
+ } | {
946
+ type: "REPLACE_FILE";
947
+ } | {
948
+ type: "CONFIRM_FILE";
949
+ } | {
950
+ type: "SET_CONSENT";
951
+ name: ConsentKey;
952
+ checked: boolean;
953
+ } | {
954
+ type: "VIEW_DOCUMENT";
955
+ url: string;
956
+ } | {
957
+ type: "CLOSE_DOCUMENT_VIEW";
958
+ } | {
959
+ type: "SIGN";
960
+ } | {
961
+ type: "FINISH";
962
+ } | {
963
+ type: "RETRY";
964
+ } | {
965
+ type: "CLOSE";
966
+ }, undefined, xstate0.Values<{
967
+ uploadDocument: {
968
+ src: "uploadDocument";
969
+ logic: xstate0.PromiseActorLogic<void, {
970
+ getFileData: () => ArrayBuffer | null;
971
+ }, xstate0.EventObject>;
972
+ id: string | undefined;
973
+ };
974
+ fetchUnsignedDocs: {
975
+ src: "fetchUnsignedDocs";
976
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
977
+ id: string | undefined;
978
+ };
979
+ signDocuments: {
980
+ src: "signDocuments";
981
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
982
+ documents: ElectronicSignatureDocument[];
983
+ variant: ElectronicSignatureVariant;
984
+ }, xstate0.EventObject>;
985
+ id: string | undefined;
986
+ };
987
+ }>, never, never, never, never>;
988
+ }, {
989
+ readonly target: "signing";
990
+ readonly guard: "errorFromSigning";
991
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, {
992
+ type: "RETRY";
993
+ }, {
994
+ type: "LOAD";
995
+ } | {
996
+ type: "SELECT_FILE";
997
+ fileName: string;
998
+ fileSize: number;
999
+ fileUrl: string;
1000
+ } | {
1001
+ type: "REPLACE_FILE";
1002
+ } | {
1003
+ type: "CONFIRM_FILE";
1004
+ } | {
1005
+ type: "SET_CONSENT";
1006
+ name: ConsentKey;
1007
+ checked: boolean;
1008
+ } | {
1009
+ type: "VIEW_DOCUMENT";
1010
+ url: string;
1011
+ } | {
1012
+ type: "CLOSE_DOCUMENT_VIEW";
1013
+ } | {
1014
+ type: "SIGN";
1015
+ } | {
1016
+ type: "FINISH";
1017
+ } | {
1018
+ type: "RETRY";
1019
+ } | {
1020
+ type: "CLOSE";
1021
+ }, undefined, xstate0.Values<{
1022
+ uploadDocument: {
1023
+ src: "uploadDocument";
1024
+ logic: xstate0.PromiseActorLogic<void, {
1025
+ getFileData: () => ArrayBuffer | null;
1026
+ }, xstate0.EventObject>;
1027
+ id: string | undefined;
1028
+ };
1029
+ fetchUnsignedDocs: {
1030
+ src: "fetchUnsignedDocs";
1031
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
1032
+ id: string | undefined;
1033
+ };
1034
+ signDocuments: {
1035
+ src: "signDocuments";
1036
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
1037
+ documents: ElectronicSignatureDocument[];
1038
+ variant: ElectronicSignatureVariant;
1039
+ }, xstate0.EventObject>;
1040
+ id: string | undefined;
1041
+ };
1042
+ }>, never, never, never, never>;
1043
+ }, {
1044
+ readonly target: "fetchingDocs";
1045
+ readonly actions: xstate0.ActionFunction<ElectronicSignatureContext, {
1046
+ type: "RETRY";
1047
+ }, {
1048
+ type: "LOAD";
1049
+ } | {
1050
+ type: "SELECT_FILE";
1051
+ fileName: string;
1052
+ fileSize: number;
1053
+ fileUrl: string;
1054
+ } | {
1055
+ type: "REPLACE_FILE";
1056
+ } | {
1057
+ type: "CONFIRM_FILE";
1058
+ } | {
1059
+ type: "SET_CONSENT";
1060
+ name: ConsentKey;
1061
+ checked: boolean;
1062
+ } | {
1063
+ type: "VIEW_DOCUMENT";
1064
+ url: string;
1065
+ } | {
1066
+ type: "CLOSE_DOCUMENT_VIEW";
1067
+ } | {
1068
+ type: "SIGN";
1069
+ } | {
1070
+ type: "FINISH";
1071
+ } | {
1072
+ type: "RETRY";
1073
+ } | {
1074
+ type: "CLOSE";
1075
+ }, undefined, xstate0.Values<{
1076
+ uploadDocument: {
1077
+ src: "uploadDocument";
1078
+ logic: xstate0.PromiseActorLogic<void, {
1079
+ getFileData: () => ArrayBuffer | null;
1080
+ }, xstate0.EventObject>;
1081
+ id: string | undefined;
1082
+ };
1083
+ fetchUnsignedDocs: {
1084
+ src: "fetchUnsignedDocs";
1085
+ logic: xstate0.PromiseActorLogic<UnsignedDocsResponse, void, xstate0.EventObject>;
1086
+ id: string | undefined;
1087
+ };
1088
+ signDocuments: {
1089
+ src: "signDocuments";
1090
+ logic: xstate0.PromiseActorLogic<SignedDocument[], {
1091
+ documents: ElectronicSignatureDocument[];
1092
+ variant: ElectronicSignatureVariant;
1093
+ }, xstate0.EventObject>;
1094
+ id: string | undefined;
1095
+ };
1096
+ }>, never, never, never, never>;
1097
+ }];
1098
+ readonly CLOSE: {
1099
+ readonly target: "closed";
1100
+ };
1101
+ };
1102
+ };
1103
+ readonly finished: {
1104
+ readonly type: "final";
1105
+ };
1106
+ readonly closed: {
1107
+ readonly type: "final";
1108
+ };
1109
+ };
1110
+ }>;
1111
+ //#endregion
1112
+ //#region src/internal/electronicSignature/electronicSignatureManager.d.ts
1113
+ type ElectronicSignatureLoadingState = {
1114
+ status: 'loading';
1115
+ };
1116
+ type ElectronicSignatureUploadingState = {
1117
+ status: 'uploading';
1118
+ fileName: string | null;
1119
+ };
1120
+ type ElectronicSignatureReviewingState = {
1121
+ status: 'reviewing';
1122
+ fileName: string;
1123
+ fileUrl: string;
1124
+ };
1125
+ type ElectronicSignatureSigningState = {
1126
+ status: 'signing';
1127
+ variant: ElectronicSignatureVariant;
1128
+ documents: ElectronicSignatureDocument[];
1129
+ consentChecks: ConsentChecks;
1130
+ allConsented: boolean;
1131
+ viewingDocumentUrl: string | null;
1132
+ };
1133
+ type ElectronicSignatureProcessingState = {
1134
+ status: 'processing';
1135
+ };
1136
+ type ElectronicSignatureSuccessState = {
1137
+ status: 'success';
1138
+ signedDocuments: SignedDocument[];
1139
+ downloadDocument: boolean;
1140
+ };
1141
+ type ElectronicSignatureErrorState = {
1142
+ status: 'error';
1143
+ errorMessage: string;
1144
+ };
1145
+ type ElectronicSignatureFinishedState = {
1146
+ status: 'finished';
1147
+ };
1148
+ type ElectronicSignatureClosedState = {
1149
+ status: 'closed';
1150
+ };
1151
+ type ElectronicSignatureState = ElectronicSignatureLoadingState | ElectronicSignatureUploadingState | ElectronicSignatureReviewingState | ElectronicSignatureSigningState | ElectronicSignatureProcessingState | ElectronicSignatureSuccessState | ElectronicSignatureErrorState | ElectronicSignatureFinishedState | ElectronicSignatureClosedState;
1152
+ //#endregion
1153
+ export { ConsentKey as a, QE_CONSENT_KEYS as c, ConsentChecks as i, areAllConsented as l, electronicSignatureMachine as n, ElectronicSignatureConfig as o, AE_CONSENT_KEYS as r, ElectronicSignatureDocument as s, ElectronicSignatureState as t, getDefaultConsentChecks as u };