@incodetech/core 0.0.0-dev-20260402-43cf9b8 → 0.0.0-dev-20260402-7cf9db4
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-capture.d.ts +55 -55
- package/dist/document-upload.d.ts +43 -43
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +1 -1
- package/dist/{emailManager-B-CZIR0O.d.ts → emailManager-BIq6pJa8.d.ts} +9 -3
- package/dist/{emailManager-DJp8zUDV.esm.js → emailManager-C5GCSw78.esm.js} +40 -20
- package/dist/extensibility.d.ts +2 -2
- package/dist/extensibility.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +1 -1
- package/dist/{phoneManager-DsMwQU5C.d.ts → phoneManager-Ba66ysK2.d.ts} +7 -1
- package/dist/{phoneManager-2JbMadIR.esm.js → phoneManager-CQJim-Ky.esm.js} +29 -18
- package/package.json +1 -1
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Actor-phIcsUhv.js";
|
|
2
2
|
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate0 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/types.d.ts
|
|
6
6
|
type ConsentConfig = {
|
|
@@ -36,7 +36,7 @@ type ConsentContext = {
|
|
|
36
36
|
type ConsentInput = {
|
|
37
37
|
config: ConsentConfig;
|
|
38
38
|
};
|
|
39
|
-
declare const consentMachine:
|
|
39
|
+
declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate0.EventObject>> | undefined;
|
|
57
|
+
}, xstate0.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate0.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate0.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
73
|
+
}>, xstate0.Values<{
|
|
74
|
+
setConsentData: {
|
|
75
|
+
type: "setConsentData";
|
|
76
|
+
params: xstate0.NonReducibleUnknown;
|
|
77
|
+
};
|
|
78
|
+
toggleCheckbox: {
|
|
79
|
+
type: "toggleCheckbox";
|
|
80
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
|
+
};
|
|
74
82
|
setError: {
|
|
75
83
|
type: "setError";
|
|
76
|
-
params:
|
|
84
|
+
params: xstate0.NonReducibleUnknown;
|
|
77
85
|
};
|
|
78
86
|
clearError: {
|
|
79
87
|
type: "clearError";
|
|
80
|
-
params:
|
|
88
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
89
|
};
|
|
82
90
|
resetContext: {
|
|
83
91
|
type: "resetContext";
|
|
84
|
-
params:
|
|
85
|
-
};
|
|
86
|
-
setConsentData: {
|
|
87
|
-
type: "setConsentData";
|
|
88
|
-
params: xstate67.NonReducibleUnknown;
|
|
89
|
-
};
|
|
90
|
-
toggleCheckbox: {
|
|
91
|
-
type: "toggleCheckbox";
|
|
92
|
-
params: xstate67.NonReducibleUnknown;
|
|
92
|
+
params: xstate0.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate0.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate0.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate0.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate0.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate0.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate0.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate0.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate0.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate67.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate0.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./Actor-phIcsUhv.js";
|
|
2
2
|
import { t as CameraStream } from "./camera-Dv2WEhGe.js";
|
|
3
3
|
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate67 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/document-capture/types.d.ts
|
|
7
7
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -73,7 +73,7 @@ type DocumentCaptureInput = {
|
|
|
73
73
|
};
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
76
|
-
declare const documentCaptureMachine:
|
|
76
|
+
declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureContext, {
|
|
77
77
|
type: "CAPTURE";
|
|
78
78
|
} | {
|
|
79
79
|
type: "FILE_SELECTED";
|
|
@@ -96,84 +96,84 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
96
96
|
} | {
|
|
97
97
|
type: "CLOSE";
|
|
98
98
|
}, {
|
|
99
|
-
[x: string]:
|
|
99
|
+
[x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
100
100
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
101
101
|
processingType: string;
|
|
102
102
|
onProgress: (progress: number) => void;
|
|
103
|
-
},
|
|
104
|
-
},
|
|
103
|
+
}, xstate67.EventObject>> | undefined;
|
|
104
|
+
}, xstate67.Values<{
|
|
105
105
|
initCamera: {
|
|
106
106
|
src: "initCamera";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
};
|
|
110
110
|
uploadDocument: {
|
|
111
111
|
src: "uploadDocument";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
113
113
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
114
114
|
processingType: string;
|
|
115
115
|
onProgress: (progress: number) => void;
|
|
116
|
-
},
|
|
116
|
+
}, xstate67.EventObject>;
|
|
117
117
|
id: string | undefined;
|
|
118
118
|
};
|
|
119
|
-
}>,
|
|
119
|
+
}>, xstate67.Values<{
|
|
120
120
|
clearError: {
|
|
121
121
|
type: "clearError";
|
|
122
|
-
params:
|
|
122
|
+
params: xstate67.NonReducibleUnknown;
|
|
123
123
|
};
|
|
124
124
|
setStream: {
|
|
125
125
|
type: "setStream";
|
|
126
|
-
params:
|
|
127
|
-
};
|
|
128
|
-
setProgress: {
|
|
129
|
-
type: "setProgress";
|
|
130
|
-
params: xstate199.NonReducibleUnknown;
|
|
131
|
-
};
|
|
132
|
-
stopStream: {
|
|
133
|
-
type: "stopStream";
|
|
134
|
-
params: xstate199.NonReducibleUnknown;
|
|
126
|
+
params: xstate67.NonReducibleUnknown;
|
|
135
127
|
};
|
|
136
128
|
setCapturedDocument: {
|
|
137
129
|
type: "setCapturedDocument";
|
|
138
|
-
params:
|
|
130
|
+
params: xstate67.NonReducibleUnknown;
|
|
139
131
|
};
|
|
140
132
|
setFileTooLargeError: {
|
|
141
133
|
type: "setFileTooLargeError";
|
|
142
|
-
params:
|
|
134
|
+
params: xstate67.NonReducibleUnknown;
|
|
135
|
+
};
|
|
136
|
+
setProgress: {
|
|
137
|
+
type: "setProgress";
|
|
138
|
+
params: xstate67.NonReducibleUnknown;
|
|
143
139
|
};
|
|
144
140
|
setUploadError: {
|
|
145
141
|
type: "setUploadError";
|
|
146
|
-
params:
|
|
142
|
+
params: xstate67.NonReducibleUnknown;
|
|
147
143
|
};
|
|
148
144
|
decrementAttemptsRemaining: {
|
|
149
145
|
type: "decrementAttemptsRemaining";
|
|
150
|
-
params:
|
|
146
|
+
params: xstate67.NonReducibleUnknown;
|
|
151
147
|
};
|
|
152
148
|
setCaptureMethodFile: {
|
|
153
149
|
type: "setCaptureMethodFile";
|
|
154
|
-
params:
|
|
150
|
+
params: xstate67.NonReducibleUnknown;
|
|
155
151
|
};
|
|
156
152
|
setCaptureMethodCamera: {
|
|
157
153
|
type: "setCaptureMethodCamera";
|
|
158
|
-
params:
|
|
154
|
+
params: xstate67.NonReducibleUnknown;
|
|
159
155
|
};
|
|
160
156
|
clearCapturedDocument: {
|
|
161
157
|
type: "clearCapturedDocument";
|
|
162
|
-
params:
|
|
158
|
+
params: xstate67.NonReducibleUnknown;
|
|
163
159
|
};
|
|
164
160
|
setPendingNextPage: {
|
|
165
161
|
type: "setPendingNextPage";
|
|
166
|
-
params:
|
|
162
|
+
params: xstate67.NonReducibleUnknown;
|
|
167
163
|
};
|
|
168
164
|
clearForNextPage: {
|
|
169
165
|
type: "clearForNextPage";
|
|
170
|
-
params:
|
|
166
|
+
params: xstate67.NonReducibleUnknown;
|
|
171
167
|
};
|
|
172
168
|
resetProgress: {
|
|
173
169
|
type: "resetProgress";
|
|
174
|
-
params:
|
|
170
|
+
params: xstate67.NonReducibleUnknown;
|
|
171
|
+
};
|
|
172
|
+
stopStream: {
|
|
173
|
+
type: "stopStream";
|
|
174
|
+
params: xstate67.NonReducibleUnknown;
|
|
175
175
|
};
|
|
176
|
-
}>,
|
|
176
|
+
}>, xstate67.Values<{
|
|
177
177
|
allowSkip: {
|
|
178
178
|
type: "allowSkip";
|
|
179
179
|
params: unknown;
|
|
@@ -210,7 +210,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
210
210
|
type: "isPendingNextPage";
|
|
211
211
|
params: unknown;
|
|
212
212
|
};
|
|
213
|
-
}>, never, "
|
|
213
|
+
}>, never, "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "closed" | "failure" | "uploading" | "success", string, DocumentCaptureInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
|
|
214
214
|
readonly id: "documentCapture";
|
|
215
215
|
readonly initial: "tutorial";
|
|
216
216
|
readonly context: ({
|
|
@@ -219,67 +219,67 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
219
219
|
spawn: {
|
|
220
220
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
221
221
|
src: "initCamera";
|
|
222
|
-
logic:
|
|
222
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
223
223
|
id: string | undefined;
|
|
224
224
|
} extends infer T ? T extends {
|
|
225
225
|
src: "initCamera";
|
|
226
|
-
logic:
|
|
226
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
227
227
|
id: string | undefined;
|
|
228
228
|
} ? T extends {
|
|
229
229
|
src: TSrc;
|
|
230
|
-
} ?
|
|
230
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
231
231
|
id?: T["id"] | undefined;
|
|
232
232
|
systemId?: string;
|
|
233
|
-
input?:
|
|
233
|
+
input?: xstate67.InputFrom<T["logic"]> | undefined;
|
|
234
234
|
syncSnapshot?: boolean;
|
|
235
|
-
} & { [K in
|
|
235
|
+
} & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
236
236
|
src: "uploadDocument";
|
|
237
|
-
logic:
|
|
237
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
238
238
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
239
239
|
processingType: string;
|
|
240
240
|
onProgress: (progress: number) => void;
|
|
241
|
-
},
|
|
241
|
+
}, xstate67.EventObject>;
|
|
242
242
|
id: string | undefined;
|
|
243
243
|
} extends infer T_1 ? T_1 extends {
|
|
244
244
|
src: "uploadDocument";
|
|
245
|
-
logic:
|
|
245
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
246
246
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
247
247
|
processingType: string;
|
|
248
248
|
onProgress: (progress: number) => void;
|
|
249
|
-
},
|
|
249
|
+
}, xstate67.EventObject>;
|
|
250
250
|
id: string | undefined;
|
|
251
251
|
} ? T_1 extends {
|
|
252
252
|
src: TSrc;
|
|
253
|
-
} ?
|
|
253
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
254
254
|
id?: T_1["id"] | undefined;
|
|
255
255
|
systemId?: string;
|
|
256
|
-
input?:
|
|
256
|
+
input?: xstate67.InputFrom<T_1["logic"]> | undefined;
|
|
257
257
|
syncSnapshot?: boolean;
|
|
258
|
-
} & { [K_1 in
|
|
258
|
+
} & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
|
|
259
259
|
initCamera: {
|
|
260
260
|
src: "initCamera";
|
|
261
|
-
logic:
|
|
261
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
262
262
|
id: string | undefined;
|
|
263
263
|
};
|
|
264
264
|
uploadDocument: {
|
|
265
265
|
src: "uploadDocument";
|
|
266
|
-
logic:
|
|
266
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
267
267
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
268
268
|
processingType: string;
|
|
269
269
|
onProgress: (progress: number) => void;
|
|
270
|
-
},
|
|
270
|
+
}, xstate67.EventObject>;
|
|
271
271
|
id: string | undefined;
|
|
272
272
|
};
|
|
273
273
|
}>, "src", TSrc>["logic"]>;
|
|
274
|
-
<TLogic extends
|
|
274
|
+
<TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
|
|
275
275
|
id?: never;
|
|
276
276
|
systemId?: string;
|
|
277
|
-
input?:
|
|
277
|
+
input?: xstate67.InputFrom<TLogic> | undefined;
|
|
278
278
|
syncSnapshot?: boolean;
|
|
279
|
-
} & { [K in
|
|
279
|
+
} & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
|
|
280
280
|
};
|
|
281
281
|
input: DocumentCaptureInput;
|
|
282
|
-
self:
|
|
282
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentCaptureContext, {
|
|
283
283
|
type: "CAPTURE";
|
|
284
284
|
} | {
|
|
285
285
|
type: "FILE_SELECTED";
|
|
@@ -301,7 +301,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
301
301
|
type: "SKIP";
|
|
302
302
|
} | {
|
|
303
303
|
type: "CLOSE";
|
|
304
|
-
}, Record<string,
|
|
304
|
+
}, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
|
|
305
305
|
type: "CAPTURE";
|
|
306
306
|
} | {
|
|
307
307
|
type: "FILE_SELECTED";
|
|
@@ -323,7 +323,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
323
323
|
type: "SKIP";
|
|
324
324
|
} | {
|
|
325
325
|
type: "CLOSE";
|
|
326
|
-
},
|
|
326
|
+
}, xstate67.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
config: {
|
|
329
329
|
processingType: DocumentType;
|
|
@@ -460,7 +460,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
460
460
|
} | {
|
|
461
461
|
type: "CLOSE";
|
|
462
462
|
};
|
|
463
|
-
self:
|
|
463
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentCaptureContext, {
|
|
464
464
|
type: "CAPTURE";
|
|
465
465
|
} | {
|
|
466
466
|
type: "FILE_SELECTED";
|
|
@@ -482,7 +482,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
482
482
|
type: "SKIP";
|
|
483
483
|
} | {
|
|
484
484
|
type: "CLOSE";
|
|
485
|
-
}, Record<string,
|
|
485
|
+
}, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
|
|
486
486
|
type: "CAPTURE";
|
|
487
487
|
} | {
|
|
488
488
|
type: "FILE_SELECTED";
|
|
@@ -504,7 +504,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
504
504
|
type: "SKIP";
|
|
505
505
|
} | {
|
|
506
506
|
type: "CLOSE";
|
|
507
|
-
},
|
|
507
|
+
}, xstate67.AnyEventObject>;
|
|
508
508
|
}) => {
|
|
509
509
|
capturedDocument: CapturedDocument;
|
|
510
510
|
processingType: DocumentType;
|