@incodetech/core 0.0.0-dev-20260324-90ddcfd → 0.0.0-dev-20260324-5c4350d
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/consent.d.ts +53 -53
- package/dist/document-upload.d.ts +40 -40
- package/dist/mandatory-consent.d.ts +50 -50
- package/package.json +1 -1
package/dist/consent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate72 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/consent/types.d.ts
|
|
5
5
|
type ConsentConfig = {
|
|
@@ -35,7 +35,7 @@ type ConsentContext = {
|
|
|
35
35
|
type ConsentInput = {
|
|
36
36
|
config: ConsentConfig;
|
|
37
37
|
};
|
|
38
|
-
declare const consentMachine:
|
|
38
|
+
declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
39
39
|
type: "LOAD";
|
|
40
40
|
} | {
|
|
41
41
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -47,53 +47,53 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
47
47
|
} | {
|
|
48
48
|
type: "RESET";
|
|
49
49
|
}, {
|
|
50
|
-
[x: string]:
|
|
50
|
+
[x: string]: xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
51
51
|
consentId: string;
|
|
52
|
-
},
|
|
52
|
+
}, xstate72.EventObject>> | xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<void, {
|
|
53
53
|
languageConsentId: string;
|
|
54
54
|
checkboxes: ConsentCheckbox[];
|
|
55
|
-
},
|
|
56
|
-
},
|
|
55
|
+
}, xstate72.EventObject>> | undefined;
|
|
56
|
+
}, xstate72.Values<{
|
|
57
57
|
fetchConsent: {
|
|
58
58
|
src: "fetchConsent";
|
|
59
|
-
logic:
|
|
59
|
+
logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
60
60
|
consentId: string;
|
|
61
|
-
},
|
|
61
|
+
}, xstate72.EventObject>;
|
|
62
62
|
id: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
submitConsent: {
|
|
65
65
|
src: "submitConsent";
|
|
66
|
-
logic:
|
|
66
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
67
67
|
languageConsentId: string;
|
|
68
68
|
checkboxes: ConsentCheckbox[];
|
|
69
|
-
},
|
|
69
|
+
}, xstate72.EventObject>;
|
|
70
70
|
id: string | undefined;
|
|
71
71
|
};
|
|
72
|
-
}>,
|
|
72
|
+
}>, xstate72.Values<{
|
|
73
73
|
clearError: {
|
|
74
74
|
type: "clearError";
|
|
75
|
-
params:
|
|
76
|
-
};
|
|
77
|
-
resetContext: {
|
|
78
|
-
type: "resetContext";
|
|
79
|
-
params: xstate285.NonReducibleUnknown;
|
|
80
|
-
};
|
|
81
|
-
setError: {
|
|
82
|
-
type: "setError";
|
|
83
|
-
params: xstate285.NonReducibleUnknown;
|
|
75
|
+
params: xstate72.NonReducibleUnknown;
|
|
84
76
|
};
|
|
85
77
|
setConsentData: {
|
|
86
78
|
type: "setConsentData";
|
|
87
|
-
params:
|
|
79
|
+
params: xstate72.NonReducibleUnknown;
|
|
88
80
|
};
|
|
89
81
|
toggleCheckbox: {
|
|
90
82
|
type: "toggleCheckbox";
|
|
91
|
-
params:
|
|
83
|
+
params: xstate72.NonReducibleUnknown;
|
|
84
|
+
};
|
|
85
|
+
setError: {
|
|
86
|
+
type: "setError";
|
|
87
|
+
params: xstate72.NonReducibleUnknown;
|
|
88
|
+
};
|
|
89
|
+
resetContext: {
|
|
90
|
+
type: "resetContext";
|
|
91
|
+
params: xstate72.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
}>, {
|
|
94
94
|
type: "canSubmit";
|
|
95
95
|
params: unknown;
|
|
96
|
-
}, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput,
|
|
96
|
+
}, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.MetaObject, {
|
|
97
97
|
readonly id: "consent";
|
|
98
98
|
readonly initial: "idle";
|
|
99
99
|
readonly context: ({
|
|
@@ -102,70 +102,70 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
102
102
|
spawn: {
|
|
103
103
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
104
104
|
src: "fetchConsent";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
106
106
|
consentId: string;
|
|
107
|
-
},
|
|
107
|
+
}, xstate72.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
} extends infer T ? T extends {
|
|
110
110
|
src: "fetchConsent";
|
|
111
|
-
logic:
|
|
111
|
+
logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
112
112
|
consentId: string;
|
|
113
|
-
},
|
|
113
|
+
}, xstate72.EventObject>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
} ? T extends {
|
|
116
116
|
src: TSrc;
|
|
117
|
-
} ?
|
|
117
|
+
} ? xstate72.ConditionalRequired<[options?: ({
|
|
118
118
|
id?: T["id"] | undefined;
|
|
119
119
|
systemId?: string;
|
|
120
|
-
input?:
|
|
120
|
+
input?: xstate72.InputFrom<T["logic"]> | undefined;
|
|
121
121
|
syncSnapshot?: boolean;
|
|
122
|
-
} & { [K in
|
|
122
|
+
} & { [K in xstate72.RequiredActorOptions<T>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
123
123
|
src: "submitConsent";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
125
125
|
languageConsentId: string;
|
|
126
126
|
checkboxes: ConsentCheckbox[];
|
|
127
|
-
},
|
|
127
|
+
}, xstate72.EventObject>;
|
|
128
128
|
id: string | undefined;
|
|
129
129
|
} extends infer T_1 ? T_1 extends {
|
|
130
130
|
src: "submitConsent";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
132
132
|
languageConsentId: string;
|
|
133
133
|
checkboxes: ConsentCheckbox[];
|
|
134
|
-
},
|
|
134
|
+
}, xstate72.EventObject>;
|
|
135
135
|
id: string | undefined;
|
|
136
136
|
} ? T_1 extends {
|
|
137
137
|
src: TSrc;
|
|
138
|
-
} ?
|
|
138
|
+
} ? xstate72.ConditionalRequired<[options?: ({
|
|
139
139
|
id?: T_1["id"] | undefined;
|
|
140
140
|
systemId?: string;
|
|
141
|
-
input?:
|
|
141
|
+
input?: xstate72.InputFrom<T_1["logic"]> | undefined;
|
|
142
142
|
syncSnapshot?: boolean;
|
|
143
|
-
} & { [K_1 in
|
|
143
|
+
} & { [K_1 in xstate72.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T_1>>> : never : never : never)): xstate72.ActorRefFromLogic<xstate72.GetConcreteByKey<xstate72.Values<{
|
|
144
144
|
fetchConsent: {
|
|
145
145
|
src: "fetchConsent";
|
|
146
|
-
logic:
|
|
146
|
+
logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
147
147
|
consentId: string;
|
|
148
|
-
},
|
|
148
|
+
}, xstate72.EventObject>;
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
};
|
|
151
151
|
submitConsent: {
|
|
152
152
|
src: "submitConsent";
|
|
153
|
-
logic:
|
|
153
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
154
154
|
languageConsentId: string;
|
|
155
155
|
checkboxes: ConsentCheckbox[];
|
|
156
|
-
},
|
|
156
|
+
}, xstate72.EventObject>;
|
|
157
157
|
id: string | undefined;
|
|
158
158
|
};
|
|
159
159
|
}>, "src", TSrc>["logic"]>;
|
|
160
|
-
<TLogic extends
|
|
160
|
+
<TLogic extends xstate72.AnyActorLogic>(src: TLogic, ...[options]: xstate72.ConditionalRequired<[options?: ({
|
|
161
161
|
id?: never;
|
|
162
162
|
systemId?: string;
|
|
163
|
-
input?:
|
|
163
|
+
input?: xstate72.InputFrom<TLogic> | undefined;
|
|
164
164
|
syncSnapshot?: boolean;
|
|
165
|
-
} & { [K in
|
|
165
|
+
} & { [K in xstate72.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredLogicInput<TLogic>>>): xstate72.ActorRefFromLogic<TLogic>;
|
|
166
166
|
};
|
|
167
167
|
input: ConsentInput;
|
|
168
|
-
self:
|
|
168
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<ConsentContext, {
|
|
169
169
|
type: "LOAD";
|
|
170
170
|
} | {
|
|
171
171
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -176,7 +176,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
176
176
|
type: "RETRY";
|
|
177
177
|
} | {
|
|
178
178
|
type: "RESET";
|
|
179
|
-
}, Record<string,
|
|
179
|
+
}, Record<string, xstate72.AnyActorRef | undefined>, xstate72.StateValue, string, unknown, any, any>, {
|
|
180
180
|
type: "LOAD";
|
|
181
181
|
} | {
|
|
182
182
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -187,7 +187,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate72.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: ConsentConfig;
|
|
193
193
|
title: string;
|
|
@@ -225,7 +225,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "RESET";
|
|
227
227
|
};
|
|
228
|
-
self:
|
|
228
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<ConsentContext, {
|
|
229
229
|
type: "LOAD";
|
|
230
230
|
} | {
|
|
231
231
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -236,7 +236,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate72.AnyActorRef>, xstate72.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -247,7 +247,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
247
247
|
type: "RETRY";
|
|
248
248
|
} | {
|
|
249
249
|
type: "RESET";
|
|
250
|
-
},
|
|
250
|
+
}, xstate72.AnyEventObject>;
|
|
251
251
|
}) => {
|
|
252
252
|
consentId: string;
|
|
253
253
|
};
|
|
@@ -296,7 +296,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
296
296
|
} | {
|
|
297
297
|
type: "RESET";
|
|
298
298
|
};
|
|
299
|
-
self:
|
|
299
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<ConsentContext, {
|
|
300
300
|
type: "LOAD";
|
|
301
301
|
} | {
|
|
302
302
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -307,7 +307,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
307
307
|
type: "RETRY";
|
|
308
308
|
} | {
|
|
309
309
|
type: "RESET";
|
|
310
|
-
}, Record<string,
|
|
310
|
+
}, Record<string, xstate72.AnyActorRef>, xstate72.StateValue, string, unknown, any, any>, {
|
|
311
311
|
type: "LOAD";
|
|
312
312
|
} | {
|
|
313
313
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -318,7 +318,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
|
318
318
|
type: "RETRY";
|
|
319
319
|
} | {
|
|
320
320
|
type: "RESET";
|
|
321
|
-
},
|
|
321
|
+
}, xstate72.AnyEventObject>;
|
|
322
322
|
}) => {
|
|
323
323
|
languageConsentId: string;
|
|
324
324
|
checkboxes: ConsentCheckbox[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
2
2
|
import "./camera-BCRgkMoe.js";
|
|
3
3
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BYFeUhw0.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate208 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
7
|
-
declare const documentUploadMachine:
|
|
7
|
+
declare const documentUploadMachine: xstate208.StateMachine<DocumentUploadContext, {
|
|
8
8
|
type: "START";
|
|
9
9
|
} | {
|
|
10
10
|
type: "CAPTURE";
|
|
@@ -17,52 +17,52 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
17
17
|
} | {
|
|
18
18
|
type: "CLOSE";
|
|
19
19
|
}, {
|
|
20
|
-
[x: string]:
|
|
20
|
+
[x: string]: xstate208.ActorRefFromLogic<xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>> | xstate208.ActorRefFromLogic<xstate208.PromiseActorLogic<void, {
|
|
21
21
|
imageBase64: string;
|
|
22
22
|
documentType: string;
|
|
23
23
|
onProgress: (progress: number) => void;
|
|
24
|
-
},
|
|
25
|
-
},
|
|
24
|
+
}, xstate208.EventObject>> | undefined;
|
|
25
|
+
}, xstate208.Values<{
|
|
26
26
|
initCamera: {
|
|
27
27
|
src: "initCamera";
|
|
28
|
-
logic:
|
|
28
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
29
29
|
id: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
uploadDocument: {
|
|
32
32
|
src: "uploadDocument";
|
|
33
|
-
logic:
|
|
33
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
34
34
|
imageBase64: string;
|
|
35
35
|
documentType: string;
|
|
36
36
|
onProgress: (progress: number) => void;
|
|
37
|
-
},
|
|
37
|
+
}, xstate208.EventObject>;
|
|
38
38
|
id: string | undefined;
|
|
39
39
|
};
|
|
40
|
-
}>,
|
|
40
|
+
}>, xstate208.Values<{
|
|
41
41
|
setStream: {
|
|
42
42
|
type: "setStream";
|
|
43
|
-
params:
|
|
43
|
+
params: xstate208.NonReducibleUnknown;
|
|
44
44
|
};
|
|
45
45
|
setProgress: {
|
|
46
46
|
type: "setProgress";
|
|
47
|
-
params:
|
|
47
|
+
params: xstate208.NonReducibleUnknown;
|
|
48
48
|
};
|
|
49
49
|
clearError: {
|
|
50
50
|
type: "clearError";
|
|
51
|
-
params:
|
|
51
|
+
params: xstate208.NonReducibleUnknown;
|
|
52
52
|
};
|
|
53
53
|
stopStream: {
|
|
54
54
|
type: "stopStream";
|
|
55
|
-
params:
|
|
55
|
+
params: xstate208.NonReducibleUnknown;
|
|
56
56
|
};
|
|
57
57
|
setError: {
|
|
58
58
|
type: "setError";
|
|
59
|
-
params:
|
|
59
|
+
params: xstate208.NonReducibleUnknown;
|
|
60
60
|
};
|
|
61
61
|
setImageAndClearError: {
|
|
62
62
|
type: "setImageAndClearError";
|
|
63
|
-
params:
|
|
63
|
+
params: xstate208.NonReducibleUnknown;
|
|
64
64
|
};
|
|
65
|
-
}>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput,
|
|
65
|
+
}>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate208.NonReducibleUnknown, xstate208.EventObject, xstate208.MetaObject, {
|
|
66
66
|
readonly id: "documentUpload";
|
|
67
67
|
readonly initial: "idle";
|
|
68
68
|
readonly context: ({
|
|
@@ -71,67 +71,67 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
71
71
|
spawn: {
|
|
72
72
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
73
73
|
src: "initCamera";
|
|
74
|
-
logic:
|
|
74
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
75
75
|
id: string | undefined;
|
|
76
76
|
} extends infer T ? T extends {
|
|
77
77
|
src: "initCamera";
|
|
78
|
-
logic:
|
|
78
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
79
79
|
id: string | undefined;
|
|
80
80
|
} ? T extends {
|
|
81
81
|
src: TSrc;
|
|
82
|
-
} ?
|
|
82
|
+
} ? xstate208.ConditionalRequired<[options?: ({
|
|
83
83
|
id?: T["id"] | undefined;
|
|
84
84
|
systemId?: string;
|
|
85
|
-
input?:
|
|
85
|
+
input?: xstate208.InputFrom<T["logic"]> | undefined;
|
|
86
86
|
syncSnapshot?: boolean;
|
|
87
|
-
} & { [K in
|
|
87
|
+
} & { [K in xstate208.RequiredActorOptions<T>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
88
88
|
src: "uploadDocument";
|
|
89
|
-
logic:
|
|
89
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
90
90
|
imageBase64: string;
|
|
91
91
|
documentType: string;
|
|
92
92
|
onProgress: (progress: number) => void;
|
|
93
|
-
},
|
|
93
|
+
}, xstate208.EventObject>;
|
|
94
94
|
id: string | undefined;
|
|
95
95
|
} extends infer T_1 ? T_1 extends {
|
|
96
96
|
src: "uploadDocument";
|
|
97
|
-
logic:
|
|
97
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
98
98
|
imageBase64: string;
|
|
99
99
|
documentType: string;
|
|
100
100
|
onProgress: (progress: number) => void;
|
|
101
|
-
},
|
|
101
|
+
}, xstate208.EventObject>;
|
|
102
102
|
id: string | undefined;
|
|
103
103
|
} ? T_1 extends {
|
|
104
104
|
src: TSrc;
|
|
105
|
-
} ?
|
|
105
|
+
} ? xstate208.ConditionalRequired<[options?: ({
|
|
106
106
|
id?: T_1["id"] | undefined;
|
|
107
107
|
systemId?: string;
|
|
108
|
-
input?:
|
|
108
|
+
input?: xstate208.InputFrom<T_1["logic"]> | undefined;
|
|
109
109
|
syncSnapshot?: boolean;
|
|
110
|
-
} & { [K_1 in
|
|
110
|
+
} & { [K_1 in xstate208.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredActorOptions<T_1>>> : never : never : never)): xstate208.ActorRefFromLogic<xstate208.GetConcreteByKey<xstate208.Values<{
|
|
111
111
|
initCamera: {
|
|
112
112
|
src: "initCamera";
|
|
113
|
-
logic:
|
|
113
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
};
|
|
116
116
|
uploadDocument: {
|
|
117
117
|
src: "uploadDocument";
|
|
118
|
-
logic:
|
|
118
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
119
119
|
imageBase64: string;
|
|
120
120
|
documentType: string;
|
|
121
121
|
onProgress: (progress: number) => void;
|
|
122
|
-
},
|
|
122
|
+
}, xstate208.EventObject>;
|
|
123
123
|
id: string | undefined;
|
|
124
124
|
};
|
|
125
125
|
}>, "src", TSrc>["logic"]>;
|
|
126
|
-
<TLogic extends
|
|
126
|
+
<TLogic extends xstate208.AnyActorLogic>(src: TLogic, ...[options]: xstate208.ConditionalRequired<[options?: ({
|
|
127
127
|
id?: never;
|
|
128
128
|
systemId?: string;
|
|
129
|
-
input?:
|
|
129
|
+
input?: xstate208.InputFrom<TLogic> | undefined;
|
|
130
130
|
syncSnapshot?: boolean;
|
|
131
|
-
} & { [K in
|
|
131
|
+
} & { [K in xstate208.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredLogicInput<TLogic>>>): xstate208.ActorRefFromLogic<TLogic>;
|
|
132
132
|
};
|
|
133
133
|
input: DocumentUploadInput;
|
|
134
|
-
self:
|
|
134
|
+
self: xstate208.ActorRef<xstate208.MachineSnapshot<DocumentUploadContext, {
|
|
135
135
|
type: "START";
|
|
136
136
|
} | {
|
|
137
137
|
type: "CAPTURE";
|
|
@@ -143,7 +143,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
143
143
|
type: "RETRY";
|
|
144
144
|
} | {
|
|
145
145
|
type: "CLOSE";
|
|
146
|
-
}, Record<string,
|
|
146
|
+
}, Record<string, xstate208.AnyActorRef | undefined>, xstate208.StateValue, string, unknown, any, any>, {
|
|
147
147
|
type: "START";
|
|
148
148
|
} | {
|
|
149
149
|
type: "CAPTURE";
|
|
@@ -155,7 +155,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
155
155
|
type: "RETRY";
|
|
156
156
|
} | {
|
|
157
157
|
type: "CLOSE";
|
|
158
|
-
},
|
|
158
|
+
}, xstate208.AnyEventObject>;
|
|
159
159
|
}) => {
|
|
160
160
|
config: DocumentUploadConfig;
|
|
161
161
|
stream: undefined;
|
|
@@ -225,7 +225,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "CLOSE";
|
|
227
227
|
};
|
|
228
|
-
self:
|
|
228
|
+
self: xstate208.ActorRef<xstate208.MachineSnapshot<DocumentUploadContext, {
|
|
229
229
|
type: "START";
|
|
230
230
|
} | {
|
|
231
231
|
type: "CAPTURE";
|
|
@@ -237,7 +237,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "CLOSE";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate208.AnyActorRef>, xstate208.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "START";
|
|
242
242
|
} | {
|
|
243
243
|
type: "CAPTURE";
|
|
@@ -249,7 +249,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
249
249
|
type: "RETRY";
|
|
250
250
|
} | {
|
|
251
251
|
type: "CLOSE";
|
|
252
|
-
},
|
|
252
|
+
}, xstate208.AnyEventObject>;
|
|
253
253
|
}) => {
|
|
254
254
|
imageBase64: string;
|
|
255
255
|
documentType: string;
|
|
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
|
2
2
|
import "./camera-BCRgkMoe.js";
|
|
3
3
|
import "./types-BYFeUhw0.js";
|
|
4
4
|
import { i as RegulationTypes } from "./types-0A1THNYO.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate140 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
8
8
|
type MandatoryConsentConfig = {
|
|
@@ -29,7 +29,7 @@ type MandatoryConsentContext = {
|
|
|
29
29
|
type MandatoryConsentInput = {
|
|
30
30
|
config: MandatoryConsentConfig;
|
|
31
31
|
};
|
|
32
|
-
declare const mandatoryConsentMachine:
|
|
32
|
+
declare const mandatoryConsentMachine: xstate140.StateMachine<MandatoryConsentContext, {
|
|
33
33
|
type: "LOAD";
|
|
34
34
|
} | {
|
|
35
35
|
type: "TOGGLE";
|
|
@@ -42,53 +42,53 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
42
42
|
} | {
|
|
43
43
|
type: "RESET";
|
|
44
44
|
}, {
|
|
45
|
-
[x: string]:
|
|
45
|
+
[x: string]: xstate140.ActorRefFromLogic<xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
46
46
|
config: MandatoryConsentConfig;
|
|
47
|
-
},
|
|
47
|
+
}, xstate140.EventObject>> | xstate140.ActorRefFromLogic<xstate140.PromiseActorLogic<void, {
|
|
48
48
|
consentId: string;
|
|
49
49
|
isSigned: boolean;
|
|
50
|
-
},
|
|
51
|
-
},
|
|
50
|
+
}, xstate140.EventObject>> | undefined;
|
|
51
|
+
}, xstate140.Values<{
|
|
52
52
|
fetchConsent: {
|
|
53
53
|
src: "fetchConsent";
|
|
54
|
-
logic:
|
|
54
|
+
logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
55
55
|
config: MandatoryConsentConfig;
|
|
56
|
-
},
|
|
56
|
+
}, xstate140.EventObject>;
|
|
57
57
|
id: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
submitConsent: {
|
|
60
60
|
src: "submitConsent";
|
|
61
|
-
logic:
|
|
61
|
+
logic: xstate140.PromiseActorLogic<void, {
|
|
62
62
|
consentId: string;
|
|
63
63
|
isSigned: boolean;
|
|
64
|
-
},
|
|
64
|
+
}, xstate140.EventObject>;
|
|
65
65
|
id: string | undefined;
|
|
66
66
|
};
|
|
67
|
-
}>,
|
|
67
|
+
}>, xstate140.Values<{
|
|
68
68
|
clearError: {
|
|
69
69
|
type: "clearError";
|
|
70
|
-
params:
|
|
71
|
-
};
|
|
72
|
-
resetContext: {
|
|
73
|
-
type: "resetContext";
|
|
74
|
-
params: xstate417.NonReducibleUnknown;
|
|
70
|
+
params: xstate140.NonReducibleUnknown;
|
|
75
71
|
};
|
|
76
72
|
setError: {
|
|
77
73
|
type: "setError";
|
|
78
|
-
params:
|
|
74
|
+
params: xstate140.NonReducibleUnknown;
|
|
75
|
+
};
|
|
76
|
+
resetContext: {
|
|
77
|
+
type: "resetContext";
|
|
78
|
+
params: xstate140.NonReducibleUnknown;
|
|
79
79
|
};
|
|
80
80
|
setConsent: {
|
|
81
81
|
type: "setConsent";
|
|
82
|
-
params:
|
|
82
|
+
params: xstate140.NonReducibleUnknown;
|
|
83
83
|
};
|
|
84
84
|
toggleSigned: {
|
|
85
85
|
type: "toggleSigned";
|
|
86
|
-
params:
|
|
86
|
+
params: xstate140.NonReducibleUnknown;
|
|
87
87
|
};
|
|
88
88
|
}>, {
|
|
89
89
|
type: "canSubmit";
|
|
90
90
|
params: unknown;
|
|
91
|
-
}, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput,
|
|
91
|
+
}, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate140.NonReducibleUnknown, xstate140.EventObject, xstate140.MetaObject, {
|
|
92
92
|
readonly id: "mandatoryConsent";
|
|
93
93
|
readonly initial: "idle";
|
|
94
94
|
readonly context: ({
|
|
@@ -97,70 +97,70 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
97
97
|
spawn: {
|
|
98
98
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
99
99
|
src: "fetchConsent";
|
|
100
|
-
logic:
|
|
100
|
+
logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
101
101
|
config: MandatoryConsentConfig;
|
|
102
|
-
},
|
|
102
|
+
}, xstate140.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} extends infer T ? T extends {
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
107
107
|
config: MandatoryConsentConfig;
|
|
108
|
-
},
|
|
108
|
+
}, xstate140.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} ? T extends {
|
|
111
111
|
src: TSrc;
|
|
112
|
-
} ?
|
|
112
|
+
} ? xstate140.ConditionalRequired<[options?: ({
|
|
113
113
|
id?: T["id"] | undefined;
|
|
114
114
|
systemId?: string;
|
|
115
|
-
input?:
|
|
115
|
+
input?: xstate140.InputFrom<T["logic"]> | undefined;
|
|
116
116
|
syncSnapshot?: boolean;
|
|
117
|
-
} & { [K in
|
|
117
|
+
} & { [K in xstate140.RequiredActorOptions<T>]: unknown }) | undefined], xstate140.IsNotNever<xstate140.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
118
118
|
src: "submitConsent";
|
|
119
|
-
logic:
|
|
119
|
+
logic: xstate140.PromiseActorLogic<void, {
|
|
120
120
|
consentId: string;
|
|
121
121
|
isSigned: boolean;
|
|
122
|
-
},
|
|
122
|
+
}, xstate140.EventObject>;
|
|
123
123
|
id: string | undefined;
|
|
124
124
|
} extends infer T_1 ? T_1 extends {
|
|
125
125
|
src: "submitConsent";
|
|
126
|
-
logic:
|
|
126
|
+
logic: xstate140.PromiseActorLogic<void, {
|
|
127
127
|
consentId: string;
|
|
128
128
|
isSigned: boolean;
|
|
129
|
-
},
|
|
129
|
+
}, xstate140.EventObject>;
|
|
130
130
|
id: string | undefined;
|
|
131
131
|
} ? T_1 extends {
|
|
132
132
|
src: TSrc;
|
|
133
|
-
} ?
|
|
133
|
+
} ? xstate140.ConditionalRequired<[options?: ({
|
|
134
134
|
id?: T_1["id"] | undefined;
|
|
135
135
|
systemId?: string;
|
|
136
|
-
input?:
|
|
136
|
+
input?: xstate140.InputFrom<T_1["logic"]> | undefined;
|
|
137
137
|
syncSnapshot?: boolean;
|
|
138
|
-
} & { [K_1 in
|
|
138
|
+
} & { [K_1 in xstate140.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate140.IsNotNever<xstate140.RequiredActorOptions<T_1>>> : never : never : never)): xstate140.ActorRefFromLogic<xstate140.GetConcreteByKey<xstate140.Values<{
|
|
139
139
|
fetchConsent: {
|
|
140
140
|
src: "fetchConsent";
|
|
141
|
-
logic:
|
|
141
|
+
logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
142
142
|
config: MandatoryConsentConfig;
|
|
143
|
-
},
|
|
143
|
+
}, xstate140.EventObject>;
|
|
144
144
|
id: string | undefined;
|
|
145
145
|
};
|
|
146
146
|
submitConsent: {
|
|
147
147
|
src: "submitConsent";
|
|
148
|
-
logic:
|
|
148
|
+
logic: xstate140.PromiseActorLogic<void, {
|
|
149
149
|
consentId: string;
|
|
150
150
|
isSigned: boolean;
|
|
151
|
-
},
|
|
151
|
+
}, xstate140.EventObject>;
|
|
152
152
|
id: string | undefined;
|
|
153
153
|
};
|
|
154
154
|
}>, "src", TSrc>["logic"]>;
|
|
155
|
-
<TLogic extends
|
|
155
|
+
<TLogic extends xstate140.AnyActorLogic>(src: TLogic, ...[options]: xstate140.ConditionalRequired<[options?: ({
|
|
156
156
|
id?: never;
|
|
157
157
|
systemId?: string;
|
|
158
|
-
input?:
|
|
158
|
+
input?: xstate140.InputFrom<TLogic> | undefined;
|
|
159
159
|
syncSnapshot?: boolean;
|
|
160
|
-
} & { [K in
|
|
160
|
+
} & { [K in xstate140.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate140.IsNotNever<xstate140.RequiredLogicInput<TLogic>>>): xstate140.ActorRefFromLogic<TLogic>;
|
|
161
161
|
};
|
|
162
162
|
input: MandatoryConsentInput;
|
|
163
|
-
self:
|
|
163
|
+
self: xstate140.ActorRef<xstate140.MachineSnapshot<MandatoryConsentContext, {
|
|
164
164
|
type: "LOAD";
|
|
165
165
|
} | {
|
|
166
166
|
type: "TOGGLE";
|
|
@@ -172,7 +172,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
172
172
|
type: "RETRY";
|
|
173
173
|
} | {
|
|
174
174
|
type: "RESET";
|
|
175
|
-
}, Record<string,
|
|
175
|
+
}, Record<string, xstate140.AnyActorRef | undefined>, xstate140.StateValue, string, unknown, any, any>, {
|
|
176
176
|
type: "LOAD";
|
|
177
177
|
} | {
|
|
178
178
|
type: "TOGGLE";
|
|
@@ -184,7 +184,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
184
184
|
type: "RETRY";
|
|
185
185
|
} | {
|
|
186
186
|
type: "RESET";
|
|
187
|
-
},
|
|
187
|
+
}, xstate140.AnyEventObject>;
|
|
188
188
|
}) => {
|
|
189
189
|
config: MandatoryConsentConfig;
|
|
190
190
|
consent: undefined;
|
|
@@ -221,7 +221,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
221
221
|
} | {
|
|
222
222
|
type: "RESET";
|
|
223
223
|
};
|
|
224
|
-
self:
|
|
224
|
+
self: xstate140.ActorRef<xstate140.MachineSnapshot<MandatoryConsentContext, {
|
|
225
225
|
type: "LOAD";
|
|
226
226
|
} | {
|
|
227
227
|
type: "TOGGLE";
|
|
@@ -233,7 +233,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
233
233
|
type: "RETRY";
|
|
234
234
|
} | {
|
|
235
235
|
type: "RESET";
|
|
236
|
-
}, Record<string,
|
|
236
|
+
}, Record<string, xstate140.AnyActorRef>, xstate140.StateValue, string, unknown, any, any>, {
|
|
237
237
|
type: "LOAD";
|
|
238
238
|
} | {
|
|
239
239
|
type: "TOGGLE";
|
|
@@ -245,7 +245,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
245
245
|
type: "RETRY";
|
|
246
246
|
} | {
|
|
247
247
|
type: "RESET";
|
|
248
|
-
},
|
|
248
|
+
}, xstate140.AnyEventObject>;
|
|
249
249
|
}) => {
|
|
250
250
|
config: MandatoryConsentConfig;
|
|
251
251
|
};
|
|
@@ -298,7 +298,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
298
298
|
} | {
|
|
299
299
|
type: "RESET";
|
|
300
300
|
};
|
|
301
|
-
self:
|
|
301
|
+
self: xstate140.ActorRef<xstate140.MachineSnapshot<MandatoryConsentContext, {
|
|
302
302
|
type: "LOAD";
|
|
303
303
|
} | {
|
|
304
304
|
type: "TOGGLE";
|
|
@@ -310,7 +310,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
310
310
|
type: "RETRY";
|
|
311
311
|
} | {
|
|
312
312
|
type: "RESET";
|
|
313
|
-
}, Record<string,
|
|
313
|
+
}, Record<string, xstate140.AnyActorRef>, xstate140.StateValue, string, unknown, any, any>, {
|
|
314
314
|
type: "LOAD";
|
|
315
315
|
} | {
|
|
316
316
|
type: "TOGGLE";
|
|
@@ -322,7 +322,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
|
|
|
322
322
|
type: "RETRY";
|
|
323
323
|
} | {
|
|
324
324
|
type: "RESET";
|
|
325
|
-
},
|
|
325
|
+
}, xstate140.AnyEventObject>;
|
|
326
326
|
}) => {
|
|
327
327
|
consentId: string;
|
|
328
328
|
isSigned: boolean;
|