@opencrvs/toolkit 1.9.4-rc.0e695b2 → 1.9.4-rc.469f912

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 (58) hide show
  1. package/dist/commons/api/router.d.ts +2440 -28495
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -10
  3. package/dist/commons/conditionals/validate.d.ts +4 -11
  4. package/dist/commons/events/ActionConfig.d.ts +1552 -23416
  5. package/dist/commons/events/ActionDocument.d.ts +1856 -803
  6. package/dist/commons/events/ActionInput.d.ts +1073 -277
  7. package/dist/commons/events/ActionType.d.ts +9 -86
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -228
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -27
  10. package/dist/commons/events/Conditional.d.ts +38 -26
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -931
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
  15. package/dist/commons/events/Draft.d.ts +105 -70
  16. package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
  17. package/dist/commons/events/EventConfig.d.ts +2120 -18663
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1332 -320
  20. package/dist/commons/events/EventIndex.d.ts +967 -197
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +346 -106
  23. package/dist/commons/events/FieldConfig.d.ts +11774 -4259
  24. package/dist/commons/events/FieldType.d.ts +4 -20
  25. package/dist/commons/events/FieldTypeMapping.d.ts +813 -181
  26. package/dist/commons/events/FieldValue.d.ts +356 -83
  27. package/dist/commons/events/FormConfig.d.ts +721 -13140
  28. package/dist/commons/events/PageConfig.d.ts +319 -8780
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  31. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  33. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1615
  34. package/dist/commons/events/deduplication.d.ts +3 -3
  35. package/dist/commons/events/defineConfig.d.ts +163 -25639
  36. package/dist/commons/events/event.d.ts +4 -4
  37. package/dist/commons/events/index.d.ts +0 -1
  38. package/dist/commons/events/locations.d.ts +19 -15
  39. package/dist/commons/events/scopes.d.ts +4 -5
  40. package/dist/commons/events/state/availableActions.d.ts +1 -2
  41. package/dist/commons/events/state/flags.d.ts +3 -21
  42. package/dist/commons/events/state/index.d.ts +19 -23
  43. package/dist/commons/events/state/utils.d.ts +112 -130
  44. package/dist/commons/events/test.utils.d.ts +8 -17
  45. package/dist/commons/events/transactions.d.ts +1 -1
  46. package/dist/commons/events/utils.d.ts +373 -51350
  47. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  48. package/dist/conditionals/index.d.ts.map +1 -1
  49. package/dist/conditionals/index.js +5 -38
  50. package/dist/events/deduplication.d.ts +3 -3
  51. package/dist/events/index.js +1545 -1805
  52. package/dist/notification/index.d.ts.map +1 -1
  53. package/dist/notification/index.js +1412 -1430
  54. package/dist/scopes/index.d.ts +132 -167
  55. package/dist/scopes/index.d.ts.map +1 -1
  56. package/dist/scopes/index.js +94 -133
  57. package/package.json +5 -5
  58. package/dist/commons/events/Flag.d.ts +0 -70
@@ -1,5 +1,5 @@
1
- import * as z from 'zod/v4';
2
- import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue, CustomFieldValue } from './CompositeFieldValue';
1
+ import { z } from 'zod';
2
+ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue } from './CompositeFieldValue';
3
3
  /**
4
4
  * FieldValues defined in this file are primitive field values.
5
5
  * FieldValues defined in CompositeFieldValue.ts are composed of multiple primitive field values (Address, File etc).
@@ -13,34 +13,46 @@ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWi
13
13
  *
14
14
  */
15
15
  export declare const TextValue: z.ZodString;
16
- export declare const HiddenFieldValue: z.ZodString;
17
16
  export declare const NonEmptyTextValue: z.ZodString;
18
- export declare const DateValue: z.ZodISODate;
17
+ export declare const DateValue: z.ZodString;
19
18
  export type DateValue = z.infer<typeof DateValue>;
20
19
  export declare const AgeValue: z.ZodObject<{
21
20
  age: z.ZodNumber;
22
21
  asOfDateRef: z.ZodString;
23
- }, z.core.$strip>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ age: number;
24
+ asOfDateRef: string;
25
+ }, {
26
+ age: number;
27
+ asOfDateRef: string;
28
+ }>;
24
29
  export type AgeValue = z.infer<typeof AgeValue>;
25
30
  export declare const AgeUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
26
31
  age: z.ZodNumber;
27
32
  asOfDateRef: z.ZodString;
28
- }, z.core.$strip>>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ age: number;
35
+ asOfDateRef: string;
36
+ }, {
37
+ age: number;
38
+ asOfDateRef: string;
39
+ }>>>;
29
40
  export declare const TimeValue: z.ZodString;
30
- export declare const DatetimeValue: z.ZodISODateTime;
31
- export declare const SelectDateRangeValue: z.ZodEnum<{
32
- last7Days: "last7Days";
33
- last30Days: "last30Days";
34
- last90Days: "last90Days";
35
- last365Days: "last365Days";
36
- }>;
41
+ export declare const DatetimeValue: z.ZodString;
42
+ export declare const SelectDateRangeValue: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
37
43
  export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
38
- start: z.ZodISODate;
39
- end: z.ZodISODate;
40
- }, z.core.$strip>, z.ZodISODate]>;
44
+ start: z.ZodString;
45
+ end: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ start: string;
48
+ end: string;
49
+ }, {
50
+ start: string;
51
+ end: string;
52
+ }>, z.ZodString]>;
41
53
  export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
42
54
  export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
43
- export declare const EmailValue: z.ZodEmail;
55
+ export declare const EmailValue: z.ZodString;
44
56
  export declare const CheckboxFieldValue: z.ZodBoolean;
45
57
  export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
46
58
  export declare const NumberFieldValue: z.ZodNumber;
@@ -49,133 +61,394 @@ export declare const SignatureFieldValue: z.ZodString;
49
61
  export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
50
62
  export declare const ButtonFieldValue: z.ZodNumber;
51
63
  export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
52
- export declare const VerificationStatusValue: z.ZodEnum<{
53
- failed: "failed";
54
- verified: "verified";
55
- authenticated: "authenticated";
56
- pending: "pending";
57
- }>;
64
+ export declare const VerificationStatusValue: z.ZodEnum<["verified", "authenticated", "failed", "pending"]>;
58
65
  export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
59
- declare const FieldValuesWithoutDataField: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
66
+ declare const FieldValuesWithoutDataField: z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
60
67
  country: z.ZodString;
61
68
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69
+ }, {
62
70
  addressType: z.ZodLiteral<"DOMESTIC">;
63
71
  administrativeArea: z.ZodString;
64
- }, z.core.$strip>, z.ZodObject<{
72
+ }>, "strip", z.ZodTypeAny, {
73
+ country: string;
74
+ addressType: "DOMESTIC";
75
+ administrativeArea: string;
76
+ streetLevelDetails?: Record<string, string> | undefined;
77
+ }, {
78
+ country: string;
79
+ addressType: "DOMESTIC";
80
+ administrativeArea: string;
81
+ streetLevelDetails?: Record<string, string> | undefined;
82
+ }>, z.ZodObject<z.objectUtil.extendShape<{
65
83
  country: z.ZodString;
66
84
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
+ }, {
67
86
  addressType: z.ZodLiteral<"INTERNATIONAL">;
68
- }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
87
+ }>, "strip", z.ZodTypeAny, {
88
+ country: string;
89
+ addressType: "INTERNATIONAL";
90
+ streetLevelDetails?: Record<string, string> | undefined;
91
+ }, {
92
+ country: string;
93
+ addressType: "INTERNATIONAL";
94
+ streetLevelDetails?: Record<string, string> | undefined;
95
+ }>]>, z.ZodString, z.ZodString, z.ZodObject<{
69
96
  age: z.ZodNumber;
70
97
  asOfDateRef: z.ZodString;
71
- }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
72
- start: z.ZodISODate;
73
- end: z.ZodISODate;
74
- }, z.core.$strip>, z.ZodISODate]>, z.ZodEnum<{
75
- last7Days: "last7Days";
76
- last30Days: "last30Days";
77
- last90Days: "last90Days";
78
- last365Days: "last365Days";
79
- }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
80
- path: z.ZodString;
98
+ }, "strip", z.ZodTypeAny, {
99
+ age: number;
100
+ asOfDateRef: string;
101
+ }, {
102
+ age: number;
103
+ asOfDateRef: string;
104
+ }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
105
+ start: z.ZodString;
106
+ end: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ start: string;
109
+ end: string;
110
+ }, {
111
+ start: string;
112
+ end: string;
113
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
114
+ path: z.ZodEffects<z.ZodString, string, string>;
81
115
  originalFilename: z.ZodString;
82
116
  type: z.ZodString;
83
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
84
- path: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: string;
119
+ path: string;
120
+ originalFilename: string;
121
+ }, {
122
+ type: string;
123
+ path: string;
124
+ originalFilename: string;
125
+ }>, z.ZodArray<z.ZodObject<{
126
+ path: z.ZodEffects<z.ZodString, string, string>;
85
127
  originalFilename: z.ZodString;
86
128
  type: z.ZodString;
87
129
  option: z.ZodString;
88
- }, z.core.$strip>>, z.ZodObject<{
130
+ }, "strip", z.ZodTypeAny, {
131
+ type: string;
132
+ option: string;
133
+ path: string;
134
+ originalFilename: string;
135
+ }, {
136
+ type: string;
137
+ option: string;
138
+ path: string;
139
+ originalFilename: string;
140
+ }>, "many">, z.ZodObject<{
89
141
  firstname: z.ZodString;
90
142
  surname: z.ZodString;
91
143
  middlename: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
144
+ }, "strip", z.ZodTypeAny, {
145
+ firstname: string;
146
+ surname: string;
147
+ middlename?: string | undefined;
148
+ }, {
149
+ firstname: string;
150
+ surname: string;
151
+ middlename?: string | undefined;
152
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
93
153
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
154
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
155
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
156
+ }, "strip", z.ZodTypeAny, {
157
+ firstname?: string | null | undefined;
158
+ surname?: string | null | undefined;
159
+ middlename?: string | null | undefined;
160
+ }, {
161
+ firstname?: string | null | undefined;
162
+ surname?: string | null | undefined;
163
+ middlename?: string | null | undefined;
164
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
97
165
  loading: z.ZodBoolean;
98
166
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
167
  statusCode: z.ZodNumber;
100
168
  message: z.ZodString;
101
- }, z.core.$strip>>>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ message: string;
171
+ statusCode: number;
172
+ }, {
173
+ message: string;
174
+ statusCode: number;
175
+ }>>>;
102
176
  data: z.ZodAny;
103
- }, z.core.$strip>, z.ZodEnum<{
104
- failed: "failed";
105
- verified: "verified";
106
- authenticated: "authenticated";
107
- pending: "pending";
108
- }>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
177
+ }, "strip", z.ZodTypeAny, {
178
+ loading: boolean;
179
+ data?: any;
180
+ error?: {
181
+ message: string;
182
+ statusCode: number;
183
+ } | null | undefined;
184
+ }, {
185
+ loading: boolean;
186
+ data?: any;
187
+ error?: {
188
+ message: string;
189
+ statusCode: number;
190
+ } | null | undefined;
191
+ }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
109
192
  data: z.ZodRecord<z.ZodString, z.ZodString>;
110
- }, z.core.$strip>>>, z.ZodObject<{
193
+ }, "strip", z.ZodTypeAny, {
194
+ data: Record<string, string>;
195
+ }, {
196
+ data: Record<string, string>;
197
+ }>>>, z.ZodObject<{
111
198
  data: z.ZodAny;
112
- }, z.core.$strip>, z.ZodObject<{
199
+ }, "strip", z.ZodTypeAny, {
200
+ data?: any;
201
+ }, {
202
+ data?: any;
203
+ }>, z.ZodObject<{
113
204
  data: z.ZodAny;
114
- }, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ data?: any;
207
+ }, {
208
+ data?: any;
209
+ }>]>;
115
210
  type FieldValuesWithoutDataField = z.infer<typeof FieldValuesWithoutDataField>;
116
211
  export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
- data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
118
213
  country: z.ZodString;
119
214
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
215
+ }, {
120
216
  addressType: z.ZodLiteral<"DOMESTIC">;
121
217
  administrativeArea: z.ZodString;
122
- }, z.core.$strip>, z.ZodObject<{
218
+ }>, "strip", z.ZodTypeAny, {
219
+ country: string;
220
+ addressType: "DOMESTIC";
221
+ administrativeArea: string;
222
+ streetLevelDetails?: Record<string, string> | undefined;
223
+ }, {
224
+ country: string;
225
+ addressType: "DOMESTIC";
226
+ administrativeArea: string;
227
+ streetLevelDetails?: Record<string, string> | undefined;
228
+ }>, z.ZodObject<z.objectUtil.extendShape<{
123
229
  country: z.ZodString;
124
230
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
231
+ }, {
125
232
  addressType: z.ZodLiteral<"INTERNATIONAL">;
126
- }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
233
+ }>, "strip", z.ZodTypeAny, {
234
+ country: string;
235
+ addressType: "INTERNATIONAL";
236
+ streetLevelDetails?: Record<string, string> | undefined;
237
+ }, {
238
+ country: string;
239
+ addressType: "INTERNATIONAL";
240
+ streetLevelDetails?: Record<string, string> | undefined;
241
+ }>]>, z.ZodString, z.ZodString, z.ZodObject<{
127
242
  age: z.ZodNumber;
128
243
  asOfDateRef: z.ZodString;
129
- }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
130
- start: z.ZodISODate;
131
- end: z.ZodISODate;
132
- }, z.core.$strip>, z.ZodISODate]>, z.ZodEnum<{
133
- last7Days: "last7Days";
134
- last30Days: "last30Days";
135
- last90Days: "last90Days";
136
- last365Days: "last365Days";
137
- }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
138
- path: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ age: number;
246
+ asOfDateRef: string;
247
+ }, {
248
+ age: number;
249
+ asOfDateRef: string;
250
+ }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
251
+ start: z.ZodString;
252
+ end: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ start: string;
255
+ end: string;
256
+ }, {
257
+ start: string;
258
+ end: string;
259
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
260
+ path: z.ZodEffects<z.ZodString, string, string>;
139
261
  originalFilename: z.ZodString;
140
262
  type: z.ZodString;
141
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
142
- path: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ type: string;
265
+ path: string;
266
+ originalFilename: string;
267
+ }, {
268
+ type: string;
269
+ path: string;
270
+ originalFilename: string;
271
+ }>, z.ZodArray<z.ZodObject<{
272
+ path: z.ZodEffects<z.ZodString, string, string>;
143
273
  originalFilename: z.ZodString;
144
274
  type: z.ZodString;
145
275
  option: z.ZodString;
146
- }, z.core.$strip>>, z.ZodObject<{
276
+ }, "strip", z.ZodTypeAny, {
277
+ type: string;
278
+ option: string;
279
+ path: string;
280
+ originalFilename: string;
281
+ }, {
282
+ type: string;
283
+ option: string;
284
+ path: string;
285
+ originalFilename: string;
286
+ }>, "many">, z.ZodObject<{
147
287
  firstname: z.ZodString;
148
288
  surname: z.ZodString;
149
289
  middlename: z.ZodOptional<z.ZodString>;
150
- }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
290
+ }, "strip", z.ZodTypeAny, {
291
+ firstname: string;
292
+ surname: string;
293
+ middlename?: string | undefined;
294
+ }, {
295
+ firstname: string;
296
+ surname: string;
297
+ middlename?: string | undefined;
298
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
151
299
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
300
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
301
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
302
+ }, "strip", z.ZodTypeAny, {
303
+ firstname?: string | null | undefined;
304
+ surname?: string | null | undefined;
305
+ middlename?: string | null | undefined;
306
+ }, {
307
+ firstname?: string | null | undefined;
308
+ surname?: string | null | undefined;
309
+ middlename?: string | null | undefined;
310
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
155
311
  loading: z.ZodBoolean;
156
312
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
157
313
  statusCode: z.ZodNumber;
158
314
  message: z.ZodString;
159
- }, z.core.$strip>>>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ message: string;
317
+ statusCode: number;
318
+ }, {
319
+ message: string;
320
+ statusCode: number;
321
+ }>>>;
160
322
  data: z.ZodAny;
161
- }, z.core.$strip>, z.ZodEnum<{
162
- failed: "failed";
163
- verified: "verified";
164
- authenticated: "authenticated";
165
- pending: "pending";
166
- }>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
323
+ }, "strip", z.ZodTypeAny, {
324
+ loading: boolean;
325
+ data?: any;
326
+ error?: {
327
+ message: string;
328
+ statusCode: number;
329
+ } | null | undefined;
330
+ }, {
331
+ loading: boolean;
332
+ data?: any;
333
+ error?: {
334
+ message: string;
335
+ statusCode: number;
336
+ } | null | undefined;
337
+ }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
338
  data: z.ZodRecord<z.ZodString, z.ZodString>;
168
- }, z.core.$strip>>>, z.ZodObject<{
339
+ }, "strip", z.ZodTypeAny, {
340
+ data: Record<string, string>;
341
+ }, {
342
+ data: Record<string, string>;
343
+ }>>>, z.ZodObject<{
169
344
  data: z.ZodAny;
170
- }, z.core.$strip>, z.ZodObject<{
345
+ }, "strip", z.ZodTypeAny, {
346
+ data?: any;
347
+ }, {
348
+ data?: any;
349
+ }>, z.ZodObject<{
171
350
  data: z.ZodAny;
172
- }, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
173
- }, z.core.$strip>>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ data?: any;
353
+ }, {
354
+ data?: any;
355
+ }>]>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ data: Record<string, string | number | boolean | {
358
+ type: string;
359
+ path: string;
360
+ originalFilename: string;
361
+ } | {
362
+ firstname: string;
363
+ surname: string;
364
+ middlename?: string | undefined;
365
+ } | {
366
+ firstname?: string | null | undefined;
367
+ surname?: string | null | undefined;
368
+ middlename?: string | null | undefined;
369
+ } | {
370
+ country: string;
371
+ addressType: "DOMESTIC";
372
+ administrativeArea: string;
373
+ streetLevelDetails?: Record<string, string> | undefined;
374
+ } | {
375
+ country: string;
376
+ addressType: "INTERNATIONAL";
377
+ streetLevelDetails?: Record<string, string> | undefined;
378
+ } | {
379
+ type: string;
380
+ option: string;
381
+ path: string;
382
+ originalFilename: string;
383
+ }[] | {
384
+ loading: boolean;
385
+ data?: any;
386
+ error?: {
387
+ message: string;
388
+ statusCode: number;
389
+ } | null | undefined;
390
+ } | {
391
+ data: Record<string, string>;
392
+ } | {
393
+ data?: any;
394
+ } | {
395
+ age: number;
396
+ asOfDateRef: string;
397
+ } | {
398
+ start: string;
399
+ end: string;
400
+ } | null | undefined>;
401
+ }, {
402
+ data: Record<string, string | number | boolean | {
403
+ type: string;
404
+ path: string;
405
+ originalFilename: string;
406
+ } | {
407
+ firstname: string;
408
+ surname: string;
409
+ middlename?: string | undefined;
410
+ } | {
411
+ firstname?: string | null | undefined;
412
+ surname?: string | null | undefined;
413
+ middlename?: string | null | undefined;
414
+ } | {
415
+ country: string;
416
+ addressType: "DOMESTIC";
417
+ administrativeArea: string;
418
+ streetLevelDetails?: Record<string, string> | undefined;
419
+ } | {
420
+ country: string;
421
+ addressType: "INTERNATIONAL";
422
+ streetLevelDetails?: Record<string, string> | undefined;
423
+ } | {
424
+ type: string;
425
+ option: string;
426
+ path: string;
427
+ originalFilename: string;
428
+ }[] | {
429
+ loading: boolean;
430
+ data?: any;
431
+ error?: {
432
+ message: string;
433
+ statusCode: number;
434
+ } | null | undefined;
435
+ } | {
436
+ data: Record<string, string>;
437
+ } | {
438
+ data?: any;
439
+ } | {
440
+ age: number;
441
+ asOfDateRef: string;
442
+ } | {
443
+ start: string;
444
+ end: string;
445
+ } | null | undefined>;
446
+ }>>>;
174
447
  export type DataFieldValue = z.infer<typeof DataFieldValue>;
175
448
  export type FieldValue = FieldValuesWithoutDataField | DataFieldValue;
176
449
  export declare const FieldValue: z.ZodType<FieldValue>;
177
- export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodAny;
178
- export type FieldUpdateValue = z.infer<typeof TextValue> | z.infer<typeof DateValue> | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | z.infer<typeof DataFieldValue> | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue> | z.infer<typeof CustomFieldValue> | z.infer<typeof HiddenFieldValue>;
450
+ export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodType<z.TypeOf<T[number]>, z.ZodTypeDef, z.TypeOf<T[number]>>;
451
+ export type FieldUpdateValue = z.infer<typeof TextValue> | z.infer<typeof DateValue> | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | z.infer<typeof DataFieldValue> | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue>;
179
452
  export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
180
453
  /**
181
454
  * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
@@ -186,6 +459,6 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
186
459
  *
187
460
  * FieldValueInputSchema uses Input types which have set optional values as nullish
188
461
  * */
189
- export type FieldUpdateValueSchema = typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof DataFieldValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | typeof DateValue | typeof EmailValue | typeof CustomFieldValue | z.ZodString | z.ZodBoolean;
462
+ export type FieldUpdateValueSchema = typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof DataFieldValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | z.ZodString | z.ZodBoolean;
190
463
  export {};
191
464
  //# sourceMappingURL=FieldValue.d.ts.map