@opencrvs/toolkit 1.9.7-rc.5cbeaf4 → 1.9.7-rc.672dd49

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