@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,8 +1,8 @@
1
- import * as z from 'zod/v4';
2
- import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, LocationInput, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, AlphaPrintButton, HttpField, SearchField, ButtonField, LinkButtonField, VerificationStatus, QueryParamReaderField, QrReaderField, IdReaderField, LoaderField, AgeField, CustomField, HiddenField } from './FieldConfig';
3
- import { FieldValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, VerificationStatusValue, AgeValue, FieldUpdateValue } from './FieldValue';
1
+ import { z } from 'zod';
2
+ import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, LocationInput, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, AlphaPrintButton, HttpField, SearchField, ButtonField, LinkButtonField, VerificationStatus, QueryParamReaderField, QrReaderField, IdReaderField, LoaderField, AgeField } from './FieldConfig';
3
+ import { FieldValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, VerificationStatusValue, AgeValue } from './FieldValue';
4
4
  import { FullDocumentPath } from '../documents';
5
- import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, CustomFieldValue } from './CompositeFieldValue';
5
+ import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue } from './CompositeFieldValue';
6
6
  import { ActionType } from './ActionType';
7
7
  /**
8
8
  * Mapping of field types to Zod schema.
@@ -12,239 +12,885 @@ import { ActionType } from './ActionType';
12
12
  * Mapping of field types to Zod schema.
13
13
  * Useful for building dynamic validations against FieldConfig
14
14
  */
15
- export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodObject<{
16
- path: z.ZodString;
15
+ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodObject<{
16
+ path: z.ZodEffects<z.ZodString, string, string>;
17
17
  originalFilename: z.ZodString;
18
18
  type: z.ZodString;
19
- }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: string;
21
+ path: string;
22
+ originalFilename: string;
23
+ }, {
24
+ type: string;
25
+ path: string;
26
+ originalFilename: string;
27
+ }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
+ path: z.ZodEffects<z.ZodString, string, string>;
29
+ originalFilename: z.ZodString;
30
+ type: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: string;
33
+ path: string;
34
+ originalFilename: string;
35
+ }, {
36
+ type: string;
37
+ path: string;
38
+ originalFilename: string;
39
+ }>>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
20
40
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
41
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
42
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodDiscriminatedUnion<[z.ZodObject<{
43
+ }, "strip", z.ZodTypeAny, {
44
+ firstname?: string | null | undefined;
45
+ surname?: string | null | undefined;
46
+ middlename?: string | null | undefined;
47
+ }, {
48
+ firstname?: string | null | undefined;
49
+ surname?: string | null | undefined;
50
+ middlename?: string | null | undefined;
51
+ }>, z.ZodNull]>, z.ZodUndefined]> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
52
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ firstname?: string | null | undefined;
57
+ surname?: string | null | undefined;
58
+ middlename?: string | null | undefined;
59
+ }, {
60
+ firstname?: string | null | undefined;
61
+ surname?: string | null | undefined;
62
+ middlename?: string | null | undefined;
63
+ }>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodEffects<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
24
64
  country: z.ZodString;
25
65
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
66
+ }, {
26
67
  addressType: z.ZodLiteral<"DOMESTIC">;
27
68
  administrativeArea: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
69
+ }>, "strip", z.ZodTypeAny, {
70
+ country: string;
71
+ addressType: "DOMESTIC";
72
+ administrativeArea: string;
73
+ streetLevelDetails?: Record<string, string> | undefined;
74
+ }, {
75
+ country: string;
76
+ addressType: "DOMESTIC";
77
+ administrativeArea: string;
78
+ streetLevelDetails?: Record<string, string> | undefined;
79
+ }>, z.ZodObject<z.objectUtil.extendShape<{
29
80
  country: z.ZodString;
30
81
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
82
+ }, {
31
83
  addressType: z.ZodLiteral<"INTERNATIONAL">;
32
- }, z.core.$strip>], "addressType"> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ }>, "strip", z.ZodTypeAny, {
85
+ country: string;
86
+ addressType: "INTERNATIONAL";
87
+ streetLevelDetails?: Record<string, string> | undefined;
88
+ }, {
89
+ country: string;
90
+ addressType: "INTERNATIONAL";
91
+ streetLevelDetails?: Record<string, string> | undefined;
92
+ }>]>, {
93
+ country: string;
94
+ addressType: "DOMESTIC";
95
+ administrativeArea: string;
96
+ streetLevelDetails?: Record<string, string> | undefined;
97
+ } | {
98
+ country: string;
99
+ addressType: "INTERNATIONAL";
100
+ streetLevelDetails?: Record<string, string> | undefined;
101
+ }, {
102
+ country: string;
103
+ addressType: "DOMESTIC";
104
+ administrativeArea: string;
105
+ streetLevelDetails?: Record<string, string> | undefined;
106
+ } | {
107
+ country: string;
108
+ addressType: "INTERNATIONAL";
109
+ streetLevelDetails?: Record<string, string> | undefined;
110
+ }> | z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
33
111
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
112
  streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
113
+ }, {
35
114
  addressType: z.ZodLiteral<"DOMESTIC">;
36
115
  administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- }, z.core.$strip>, z.ZodObject<{
116
+ }>, "strip", z.ZodTypeAny, {
117
+ addressType: "DOMESTIC";
118
+ country?: string | null | undefined;
119
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
120
+ administrativeArea?: string | null | undefined;
121
+ }, {
122
+ addressType: "DOMESTIC";
123
+ country?: string | null | undefined;
124
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
125
+ administrativeArea?: string | null | undefined;
126
+ }>, z.ZodObject<z.objectUtil.extendShape<{
38
127
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
128
  streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
129
+ }, {
40
130
  addressType: z.ZodLiteral<"INTERNATIONAL">;
41
- }, z.core.$strip>], "addressType">>> | z.ZodArray<z.ZodObject<{
42
- path: z.ZodString;
131
+ }>, "strip", z.ZodTypeAny, {
132
+ addressType: "INTERNATIONAL";
133
+ country?: string | null | undefined;
134
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
135
+ }, {
136
+ addressType: "INTERNATIONAL";
137
+ country?: string | null | undefined;
138
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
139
+ }>]>>>, {
140
+ addressType: "DOMESTIC";
141
+ country?: string | null | undefined;
142
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
143
+ administrativeArea?: string | null | undefined;
144
+ } | {
145
+ addressType: "INTERNATIONAL";
146
+ country?: string | null | undefined;
147
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
148
+ } | null | undefined, {
149
+ addressType: "DOMESTIC";
150
+ country?: string | null | undefined;
151
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
152
+ administrativeArea?: string | null | undefined;
153
+ } | {
154
+ addressType: "INTERNATIONAL";
155
+ country?: string | null | undefined;
156
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
157
+ } | null | undefined> | z.ZodArray<z.ZodObject<{
158
+ path: z.ZodEffects<z.ZodString, string, string>;
43
159
  originalFilename: z.ZodString;
44
160
  type: z.ZodString;
45
161
  option: z.ZodString;
46
- }, z.core.$strip>> | z.ZodBoolean | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
162
+ }, "strip", z.ZodTypeAny, {
163
+ type: string;
164
+ option: string;
165
+ path: string;
166
+ originalFilename: string;
167
+ }, {
168
+ type: string;
169
+ option: string;
170
+ path: string;
171
+ originalFilename: string;
172
+ }>, "many"> | z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
173
+ path: z.ZodEffects<z.ZodString, string, string>;
174
+ originalFilename: z.ZodString;
175
+ type: z.ZodString;
176
+ option: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: string;
179
+ option: string;
180
+ path: string;
181
+ originalFilename: string;
182
+ }, {
183
+ type: string;
184
+ option: string;
185
+ path: string;
186
+ originalFilename: string;
187
+ }>, "many">>> | z.ZodBoolean | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
47
188
  loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
48
189
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
190
  statusCode: z.ZodNumber;
50
191
  message: z.ZodString;
51
- }, z.core.$strip>>>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ message: string;
194
+ statusCode: number;
195
+ }, {
196
+ message: string;
197
+ statusCode: number;
198
+ }>>>;
52
199
  data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
53
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodObject<{
200
+ }, "strip", z.ZodTypeAny, {
201
+ data?: any;
202
+ error?: {
203
+ message: string;
204
+ statusCode: number;
205
+ } | null | undefined;
206
+ loading?: boolean | null | undefined;
207
+ }, {
208
+ data?: any;
209
+ error?: {
210
+ message: string;
211
+ statusCode: number;
212
+ } | null | undefined;
213
+ loading?: boolean | null | undefined;
214
+ }>, z.ZodNull]>, z.ZodUndefined]> | z.ZodObject<{
54
215
  data: z.ZodRecord<z.ZodString, z.ZodString>;
55
- }, z.core.$strip> | z.ZodObject<{
216
+ }, "strip", z.ZodTypeAny, {
217
+ data: Record<string, string>;
218
+ }, {
219
+ data: Record<string, string>;
220
+ }> | z.ZodObject<{
221
+ data: z.ZodAny;
222
+ }, "strip", z.ZodTypeAny, {
223
+ data?: any;
224
+ }, {
225
+ data?: any;
226
+ }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
227
  data: z.ZodAny;
57
- }, z.core.$strip> | z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"> | z.ZodISODate | z.ZodObject<{
228
+ }, "strip", z.ZodTypeAny, {
229
+ data?: any;
230
+ }, {
231
+ data?: any;
232
+ }>>> | z.ZodObject<{
58
233
  age: z.ZodNumber;
59
234
  asOfDateRef: z.ZodString;
60
- }, z.core.$strip> | z.ZodEnum<{
61
- last7Days: "last7Days";
62
- last30Days: "last30Days";
63
- last90Days: "last90Days";
64
- last365Days: "last365Days";
65
- }> | z.ZodUnion<[z.ZodObject<{
66
- start: z.ZodISODate;
67
- end: z.ZodISODate;
68
- }, z.core.$strip>, z.ZodISODate]> | z.ZodEmail | z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
- data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
235
+ }, "strip", z.ZodTypeAny, {
236
+ age: number;
237
+ asOfDateRef: string;
238
+ }, {
239
+ age: number;
240
+ asOfDateRef: string;
241
+ }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
242
+ age: z.ZodNumber;
243
+ asOfDateRef: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ age: number;
246
+ asOfDateRef: string;
247
+ }, {
248
+ age: number;
249
+ asOfDateRef: string;
250
+ }>>> | z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]> | 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.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
260
+ start: z.ZodString;
261
+ end: z.ZodString;
262
+ }, "strip", z.ZodTypeAny, {
263
+ start: string;
264
+ end: string;
265
+ }, {
266
+ start: string;
267
+ end: string;
268
+ }>, z.ZodString]>>> | z.ZodOptional<z.ZodNullable<z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
269
+ data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
70
270
  country: z.ZodString;
71
271
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
272
+ }, {
72
273
  addressType: z.ZodLiteral<"DOMESTIC">;
73
274
  administrativeArea: z.ZodString;
74
- }, z.core.$strip>, z.ZodObject<{
275
+ }>, "strip", z.ZodTypeAny, {
276
+ country: string;
277
+ addressType: "DOMESTIC";
278
+ administrativeArea: string;
279
+ streetLevelDetails?: Record<string, string> | undefined;
280
+ }, {
281
+ country: string;
282
+ addressType: "DOMESTIC";
283
+ administrativeArea: string;
284
+ streetLevelDetails?: Record<string, string> | undefined;
285
+ }>, z.ZodObject<z.objectUtil.extendShape<{
75
286
  country: z.ZodString;
76
287
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
288
+ }, {
77
289
  addressType: z.ZodLiteral<"INTERNATIONAL">;
78
- }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
290
+ }>, "strip", z.ZodTypeAny, {
291
+ country: string;
292
+ addressType: "INTERNATIONAL";
293
+ streetLevelDetails?: Record<string, string> | undefined;
294
+ }, {
295
+ country: string;
296
+ addressType: "INTERNATIONAL";
297
+ streetLevelDetails?: Record<string, string> | undefined;
298
+ }>]>, z.ZodString, z.ZodString, z.ZodObject<{
79
299
  age: z.ZodNumber;
80
300
  asOfDateRef: z.ZodString;
81
- }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
82
- start: z.ZodISODate;
83
- end: z.ZodISODate;
84
- }, z.core.$strip>, z.ZodISODate]>, z.ZodEnum<{
85
- last7Days: "last7Days";
86
- last30Days: "last30Days";
87
- last90Days: "last90Days";
88
- last365Days: "last365Days";
89
- }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
90
- path: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ age: number;
303
+ asOfDateRef: string;
304
+ }, {
305
+ age: number;
306
+ asOfDateRef: string;
307
+ }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
308
+ start: z.ZodString;
309
+ end: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ start: string;
312
+ end: string;
313
+ }, {
314
+ start: string;
315
+ end: string;
316
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
317
+ path: z.ZodEffects<z.ZodString, string, string>;
91
318
  originalFilename: z.ZodString;
92
319
  type: z.ZodString;
93
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
94
- path: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ type: string;
322
+ path: string;
323
+ originalFilename: string;
324
+ }, {
325
+ type: string;
326
+ path: string;
327
+ originalFilename: string;
328
+ }>, z.ZodArray<z.ZodObject<{
329
+ path: z.ZodEffects<z.ZodString, string, string>;
95
330
  originalFilename: z.ZodString;
96
331
  type: z.ZodString;
97
332
  option: z.ZodString;
98
- }, z.core.$strip>>, z.ZodObject<{
333
+ }, "strip", z.ZodTypeAny, {
334
+ type: string;
335
+ option: string;
336
+ path: string;
337
+ originalFilename: string;
338
+ }, {
339
+ type: string;
340
+ option: string;
341
+ path: string;
342
+ originalFilename: string;
343
+ }>, "many">, z.ZodObject<{
99
344
  firstname: z.ZodString;
100
345
  surname: z.ZodString;
101
346
  middlename: z.ZodOptional<z.ZodString>;
102
- }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
347
+ }, "strip", z.ZodTypeAny, {
348
+ firstname: string;
349
+ surname: string;
350
+ middlename?: string | undefined;
351
+ }, {
352
+ firstname: string;
353
+ surname: string;
354
+ middlename?: string | undefined;
355
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
103
356
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
357
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
358
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
359
+ }, "strip", z.ZodTypeAny, {
360
+ firstname?: string | null | undefined;
361
+ surname?: string | null | undefined;
362
+ middlename?: string | null | undefined;
363
+ }, {
364
+ firstname?: string | null | undefined;
365
+ surname?: string | null | undefined;
366
+ middlename?: string | null | undefined;
367
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
107
368
  loading: z.ZodBoolean;
108
369
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
109
370
  statusCode: z.ZodNumber;
110
371
  message: z.ZodString;
111
- }, z.core.$strip>>>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ message: string;
374
+ statusCode: number;
375
+ }, {
376
+ message: string;
377
+ statusCode: number;
378
+ }>>>;
112
379
  data: z.ZodAny;
113
- }, z.core.$strip>, z.ZodEnum<{
114
- failed: "failed";
115
- verified: "verified";
116
- authenticated: "authenticated";
117
- pending: "pending";
118
- }>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
+ }, "strip", z.ZodTypeAny, {
381
+ loading: boolean;
382
+ data?: any;
383
+ error?: {
384
+ message: string;
385
+ statusCode: number;
386
+ } | null | undefined;
387
+ }, {
388
+ loading: boolean;
389
+ data?: any;
390
+ error?: {
391
+ message: string;
392
+ statusCode: number;
393
+ } | null | undefined;
394
+ }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
119
395
  data: z.ZodRecord<z.ZodString, z.ZodString>;
120
- }, z.core.$strip>>>, z.ZodObject<{
396
+ }, "strip", z.ZodTypeAny, {
397
+ data: Record<string, string>;
398
+ }, {
399
+ data: Record<string, string>;
400
+ }>>>, z.ZodObject<{
121
401
  data: z.ZodAny;
122
- }, z.core.$strip>, z.ZodObject<{
402
+ }, "strip", z.ZodTypeAny, {
403
+ data?: any;
404
+ }, {
405
+ data?: any;
406
+ }>, z.ZodObject<{
123
407
  data: z.ZodAny;
124
- }, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
125
- }, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodISODate>> | z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
126
- country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
- streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
128
- addressType: z.ZodLiteral<"DOMESTIC">;
129
- administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
- }, z.core.$strip>, z.ZodObject<{
131
- country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
- streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
133
- addressType: z.ZodLiteral<"INTERNATIONAL">;
134
- }, z.core.$strip>], "addressType">>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
135
- start: z.ZodISODate;
136
- end: z.ZodISODate;
137
- }, z.core.$strip>, z.ZodISODate]>>> | z.ZodOptional<z.ZodNullable<z.ZodEnum<{
138
- last7Days: "last7Days";
139
- last30Days: "last30Days";
140
- last90Days: "last90Days";
141
- last365Days: "last365Days";
142
- }>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
143
- path: z.ZodString;
144
- originalFilename: z.ZodString;
145
- type: z.ZodString;
146
- }, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
147
- path: z.ZodString;
148
- originalFilename: z.ZodString;
149
- type: z.ZodString;
150
- option: z.ZodString;
151
- }, z.core.$strip>>>> | z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
152
- data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
408
+ }, "strip", z.ZodTypeAny, {
409
+ data?: any;
410
+ }, {
411
+ data?: any;
412
+ }>]>>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ data: Record<string, string | number | boolean | {
415
+ type: string;
416
+ path: string;
417
+ originalFilename: string;
418
+ } | {
419
+ firstname: string;
420
+ surname: string;
421
+ middlename?: string | undefined;
422
+ } | {
423
+ firstname?: string | null | undefined;
424
+ surname?: string | null | undefined;
425
+ middlename?: string | null | undefined;
426
+ } | {
427
+ country: string;
428
+ addressType: "DOMESTIC";
429
+ administrativeArea: string;
430
+ streetLevelDetails?: Record<string, string> | undefined;
431
+ } | {
432
+ country: string;
433
+ addressType: "INTERNATIONAL";
434
+ streetLevelDetails?: Record<string, string> | undefined;
435
+ } | {
436
+ type: string;
437
+ option: string;
438
+ path: string;
439
+ originalFilename: string;
440
+ }[] | {
441
+ loading: boolean;
442
+ data?: any;
443
+ error?: {
444
+ message: string;
445
+ statusCode: number;
446
+ } | null | undefined;
447
+ } | {
448
+ data: Record<string, string>;
449
+ } | {
450
+ data?: any;
451
+ } | {
452
+ age: number;
453
+ asOfDateRef: string;
454
+ } | {
455
+ start: string;
456
+ end: string;
457
+ } | null | undefined>;
458
+ }, {
459
+ data: Record<string, string | number | boolean | {
460
+ type: string;
461
+ path: string;
462
+ originalFilename: string;
463
+ } | {
464
+ firstname: string;
465
+ surname: string;
466
+ middlename?: string | undefined;
467
+ } | {
468
+ firstname?: string | null | undefined;
469
+ surname?: string | null | undefined;
470
+ middlename?: string | null | undefined;
471
+ } | {
472
+ country: string;
473
+ addressType: "DOMESTIC";
474
+ administrativeArea: string;
475
+ streetLevelDetails?: Record<string, string> | undefined;
476
+ } | {
477
+ country: string;
478
+ addressType: "INTERNATIONAL";
479
+ streetLevelDetails?: Record<string, string> | undefined;
480
+ } | {
481
+ type: string;
482
+ option: string;
483
+ path: string;
484
+ originalFilename: string;
485
+ }[] | {
486
+ loading: boolean;
487
+ data?: any;
488
+ error?: {
489
+ message: string;
490
+ statusCode: number;
491
+ } | null | undefined;
492
+ } | {
493
+ data: Record<string, string>;
494
+ } | {
495
+ data?: any;
496
+ } | {
497
+ age: number;
498
+ asOfDateRef: string;
499
+ } | {
500
+ start: string;
501
+ end: string;
502
+ } | null | undefined>;
503
+ }>>> | z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
504
+ data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
153
505
  country: z.ZodString;
154
506
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
507
+ }, {
155
508
  addressType: z.ZodLiteral<"DOMESTIC">;
156
509
  administrativeArea: z.ZodString;
157
- }, z.core.$strip>, z.ZodObject<{
510
+ }>, "strip", z.ZodTypeAny, {
511
+ country: string;
512
+ addressType: "DOMESTIC";
513
+ administrativeArea: string;
514
+ streetLevelDetails?: Record<string, string> | undefined;
515
+ }, {
516
+ country: string;
517
+ addressType: "DOMESTIC";
518
+ administrativeArea: string;
519
+ streetLevelDetails?: Record<string, string> | undefined;
520
+ }>, z.ZodObject<z.objectUtil.extendShape<{
158
521
  country: z.ZodString;
159
522
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
523
+ }, {
160
524
  addressType: z.ZodLiteral<"INTERNATIONAL">;
161
- }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
525
+ }>, "strip", z.ZodTypeAny, {
526
+ country: string;
527
+ addressType: "INTERNATIONAL";
528
+ streetLevelDetails?: Record<string, string> | undefined;
529
+ }, {
530
+ country: string;
531
+ addressType: "INTERNATIONAL";
532
+ streetLevelDetails?: Record<string, string> | undefined;
533
+ }>]>, z.ZodString, z.ZodString, z.ZodObject<{
162
534
  age: z.ZodNumber;
163
535
  asOfDateRef: z.ZodString;
164
- }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
165
- start: z.ZodISODate;
166
- end: z.ZodISODate;
167
- }, z.core.$strip>, z.ZodISODate]>, z.ZodEnum<{
168
- last7Days: "last7Days";
169
- last30Days: "last30Days";
170
- last90Days: "last90Days";
171
- last365Days: "last365Days";
172
- }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
173
- path: z.ZodString;
536
+ }, "strip", z.ZodTypeAny, {
537
+ age: number;
538
+ asOfDateRef: string;
539
+ }, {
540
+ age: number;
541
+ asOfDateRef: string;
542
+ }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
543
+ start: z.ZodString;
544
+ end: z.ZodString;
545
+ }, "strip", z.ZodTypeAny, {
546
+ start: string;
547
+ end: string;
548
+ }, {
549
+ start: string;
550
+ end: string;
551
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
552
+ path: z.ZodEffects<z.ZodString, string, string>;
174
553
  originalFilename: z.ZodString;
175
554
  type: z.ZodString;
176
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
177
- path: z.ZodString;
555
+ }, "strip", z.ZodTypeAny, {
556
+ type: string;
557
+ path: string;
558
+ originalFilename: string;
559
+ }, {
560
+ type: string;
561
+ path: string;
562
+ originalFilename: string;
563
+ }>, z.ZodArray<z.ZodObject<{
564
+ path: z.ZodEffects<z.ZodString, string, string>;
178
565
  originalFilename: z.ZodString;
179
566
  type: z.ZodString;
180
567
  option: z.ZodString;
181
- }, z.core.$strip>>, z.ZodObject<{
568
+ }, "strip", z.ZodTypeAny, {
569
+ type: string;
570
+ option: string;
571
+ path: string;
572
+ originalFilename: string;
573
+ }, {
574
+ type: string;
575
+ option: string;
576
+ path: string;
577
+ originalFilename: string;
578
+ }>, "many">, z.ZodObject<{
182
579
  firstname: z.ZodString;
183
580
  surname: z.ZodString;
184
581
  middlename: z.ZodOptional<z.ZodString>;
185
- }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
582
+ }, "strip", z.ZodTypeAny, {
583
+ firstname: string;
584
+ surname: string;
585
+ middlename?: string | undefined;
586
+ }, {
587
+ firstname: string;
588
+ surname: string;
589
+ middlename?: string | undefined;
590
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
186
591
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
592
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
593
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
594
+ }, "strip", z.ZodTypeAny, {
595
+ firstname?: string | null | undefined;
596
+ surname?: string | null | undefined;
597
+ middlename?: string | null | undefined;
598
+ }, {
599
+ firstname?: string | null | undefined;
600
+ surname?: string | null | undefined;
601
+ middlename?: string | null | undefined;
602
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
190
603
  loading: z.ZodBoolean;
191
604
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
192
605
  statusCode: z.ZodNumber;
193
606
  message: z.ZodString;
194
- }, z.core.$strip>>>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ message: string;
609
+ statusCode: number;
610
+ }, {
611
+ message: string;
612
+ statusCode: number;
613
+ }>>>;
195
614
  data: z.ZodAny;
196
- }, z.core.$strip>, z.ZodEnum<{
197
- failed: "failed";
198
- verified: "verified";
199
- authenticated: "authenticated";
200
- pending: "pending";
201
- }>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
615
+ }, "strip", z.ZodTypeAny, {
616
+ loading: boolean;
617
+ data?: any;
618
+ error?: {
619
+ message: string;
620
+ statusCode: number;
621
+ } | null | undefined;
622
+ }, {
623
+ loading: boolean;
624
+ data?: any;
625
+ error?: {
626
+ message: string;
627
+ statusCode: number;
628
+ } | null | undefined;
629
+ }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
202
630
  data: z.ZodRecord<z.ZodString, z.ZodString>;
203
- }, z.core.$strip>>>, z.ZodObject<{
631
+ }, "strip", z.ZodTypeAny, {
632
+ data: Record<string, string>;
633
+ }, {
634
+ data: Record<string, string>;
635
+ }>>>, z.ZodObject<{
204
636
  data: z.ZodAny;
205
- }, z.core.$strip>, z.ZodObject<{
637
+ }, "strip", z.ZodTypeAny, {
638
+ data?: any;
639
+ }, {
640
+ data?: any;
641
+ }>, z.ZodObject<{
206
642
  data: z.ZodAny;
207
- }, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
208
- }, z.core.$strip>>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
209
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
- middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
643
+ }, "strip", z.ZodTypeAny, {
644
+ data?: any;
645
+ }, {
646
+ data?: any;
647
+ }>]>>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ data: Record<string, string | number | boolean | {
650
+ type: string;
651
+ path: string;
652
+ originalFilename: string;
653
+ } | {
654
+ firstname: string;
655
+ surname: string;
656
+ middlename?: string | undefined;
657
+ } | {
658
+ firstname?: string | null | undefined;
659
+ surname?: string | null | undefined;
660
+ middlename?: string | null | undefined;
661
+ } | {
662
+ country: string;
663
+ addressType: "DOMESTIC";
664
+ administrativeArea: string;
665
+ streetLevelDetails?: Record<string, string> | undefined;
666
+ } | {
667
+ country: string;
668
+ addressType: "INTERNATIONAL";
669
+ streetLevelDetails?: Record<string, string> | undefined;
670
+ } | {
671
+ type: string;
672
+ option: string;
673
+ path: string;
674
+ originalFilename: string;
675
+ }[] | {
676
+ loading: boolean;
677
+ data?: any;
678
+ error?: {
679
+ message: string;
680
+ statusCode: number;
681
+ } | null | undefined;
682
+ } | {
683
+ data: Record<string, string>;
684
+ } | {
685
+ data?: any;
686
+ } | {
687
+ age: number;
688
+ asOfDateRef: string;
689
+ } | {
690
+ start: string;
691
+ end: string;
692
+ } | null | undefined>;
693
+ }, {
694
+ data: Record<string, string | number | boolean | {
695
+ type: string;
696
+ path: string;
697
+ originalFilename: string;
698
+ } | {
699
+ firstname: string;
700
+ surname: string;
701
+ middlename?: string | undefined;
702
+ } | {
703
+ firstname?: string | null | undefined;
704
+ surname?: string | null | undefined;
705
+ middlename?: string | null | undefined;
706
+ } | {
707
+ country: string;
708
+ addressType: "DOMESTIC";
709
+ administrativeArea: string;
710
+ streetLevelDetails?: Record<string, string> | undefined;
711
+ } | {
712
+ country: string;
713
+ addressType: "INTERNATIONAL";
714
+ streetLevelDetails?: Record<string, string> | undefined;
715
+ } | {
716
+ type: string;
717
+ option: string;
718
+ path: string;
719
+ originalFilename: string;
720
+ }[] | {
721
+ loading: boolean;
722
+ data?: any;
723
+ error?: {
724
+ message: string;
725
+ statusCode: number;
726
+ } | null | undefined;
727
+ } | {
728
+ data: Record<string, string>;
729
+ } | {
730
+ data?: any;
731
+ } | {
732
+ age: number;
733
+ asOfDateRef: string;
734
+ } | {
735
+ start: string;
736
+ end: string;
737
+ } | null | undefined>;
738
+ }>>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
213
739
  loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
214
740
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
215
741
  statusCode: z.ZodNumber;
216
742
  message: z.ZodString;
217
- }, z.core.$strip>>>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ message: string;
745
+ statusCode: number;
746
+ }, {
747
+ message: string;
748
+ statusCode: number;
749
+ }>>>;
218
750
  data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
219
- }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
751
+ }, "strip", z.ZodTypeAny, {
752
+ data?: any;
753
+ error?: {
754
+ message: string;
755
+ statusCode: number;
756
+ } | null | undefined;
757
+ loading?: boolean | null | undefined;
758
+ }, {
759
+ data?: any;
760
+ error?: {
761
+ message: string;
762
+ statusCode: number;
763
+ } | null | undefined;
764
+ loading?: boolean | null | undefined;
765
+ }>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
220
766
  data: z.ZodRecord<z.ZodString, z.ZodString>;
221
- }, z.core.$strip>>> | z.ZodObject<{
767
+ }, "strip", z.ZodTypeAny, {
768
+ data: Record<string, string>;
769
+ }, {
770
+ data: Record<string, string>;
771
+ }>>> | z.ZodObject<{
222
772
  firstname: z.ZodString;
223
773
  surname: z.ZodString;
224
774
  middlename: z.ZodString | z.ZodOptional<z.ZodString>;
225
- }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
226
- data: z.ZodAny;
227
- }, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
228
- age: z.ZodNumber;
229
- asOfDateRef: z.ZodString;
230
- }, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodEmail>> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
775
+ }, "strip", z.ZodTypeAny, {
776
+ firstname: string;
777
+ surname: string;
778
+ middlename?: string | undefined;
779
+ }, {
780
+ firstname: string;
781
+ surname: string;
782
+ middlename?: string | undefined;
783
+ }> | z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
784
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
786
+ }, {
787
+ addressType: z.ZodLiteral<"DOMESTIC">;
788
+ administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ }>, "strip", z.ZodTypeAny, {
790
+ addressType: "DOMESTIC";
791
+ country?: string | null | undefined;
792
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
793
+ administrativeArea?: string | null | undefined;
794
+ }, {
795
+ addressType: "DOMESTIC";
796
+ country?: string | null | undefined;
797
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
798
+ administrativeArea?: string | null | undefined;
799
+ }>, z.ZodObject<z.objectUtil.extendShape<{
800
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
802
+ }, {
803
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
804
+ }>, "strip", z.ZodTypeAny, {
805
+ addressType: "INTERNATIONAL";
806
+ country?: string | null | undefined;
807
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
808
+ }, {
809
+ addressType: "INTERNATIONAL";
810
+ country?: string | null | undefined;
811
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
812
+ }>]>>>, {
813
+ addressType: "DOMESTIC";
814
+ country?: string | null | undefined;
815
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
816
+ administrativeArea?: string | null | undefined;
817
+ } | {
818
+ addressType: "INTERNATIONAL";
819
+ country?: string | null | undefined;
820
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
821
+ } | null | undefined, {
822
+ addressType: "DOMESTIC";
823
+ country?: string | null | undefined;
824
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
825
+ administrativeArea?: string | null | undefined;
826
+ } | {
827
+ addressType: "INTERNATIONAL";
828
+ country?: string | null | undefined;
829
+ streetLevelDetails?: Record<string, string | null> | null | undefined;
830
+ } | null | undefined>>> | z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
231
831
  country: z.ZodString;
232
832
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
833
+ }, {
233
834
  addressType: z.ZodLiteral<"DOMESTIC">;
234
835
  administrativeArea: z.ZodString;
235
- }, z.core.$strip>, z.ZodObject<{
836
+ }>, "strip", z.ZodTypeAny, {
837
+ country: string;
838
+ addressType: "DOMESTIC";
839
+ administrativeArea: string;
840
+ streetLevelDetails?: Record<string, string> | undefined;
841
+ }, {
842
+ country: string;
843
+ addressType: "DOMESTIC";
844
+ administrativeArea: string;
845
+ streetLevelDetails?: Record<string, string> | undefined;
846
+ }>, z.ZodObject<z.objectUtil.extendShape<{
236
847
  country: z.ZodString;
237
848
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
849
+ }, {
238
850
  addressType: z.ZodLiteral<"INTERNATIONAL">;
239
- }, z.core.$strip>], "addressType">>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
851
+ }>, "strip", z.ZodTypeAny, {
852
+ country: string;
853
+ addressType: "INTERNATIONAL";
854
+ streetLevelDetails?: Record<string, string> | undefined;
855
+ }, {
856
+ country: string;
857
+ addressType: "INTERNATIONAL";
858
+ streetLevelDetails?: Record<string, string> | undefined;
859
+ }>]>, {
860
+ country: string;
861
+ addressType: "DOMESTIC";
862
+ administrativeArea: string;
863
+ streetLevelDetails?: Record<string, string> | undefined;
864
+ } | {
865
+ country: string;
866
+ addressType: "INTERNATIONAL";
867
+ streetLevelDetails?: Record<string, string> | undefined;
868
+ }, {
869
+ country: string;
870
+ addressType: "DOMESTIC";
871
+ administrativeArea: string;
872
+ streetLevelDetails?: Record<string, string> | undefined;
873
+ } | {
874
+ country: string;
875
+ addressType: "INTERNATIONAL";
876
+ streetLevelDetails?: Record<string, string> | undefined;
877
+ }>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
240
878
  firstname: z.ZodString;
241
879
  surname: z.ZodString;
242
880
  middlename: z.ZodString | z.ZodOptional<z.ZodString>;
243
- }, z.core.$strip>>>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ firstname: string;
883
+ surname: string;
884
+ middlename?: string | undefined;
885
+ }, {
886
+ firstname: string;
887
+ surname: string;
888
+ middlename?: string | undefined;
889
+ }>>>;
244
890
  /**
245
891
  * Maps complex or nested field types, such as Address fields, to their corresponding empty values.
246
892
  */
247
- export declare function mapFieldTypeToEmptyValue(field: FieldConfig): z.core.$brand<"CustomFieldValue"> | never[] | {
893
+ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] | {
248
894
  country: string;
249
895
  addressType: "DOMESTIC";
250
896
  administrativeArea: string;
@@ -263,291 +909,277 @@ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): z.core.$br
263
909
  } | null;
264
910
  export declare const isParagraphFieldType: (field: {
265
911
  config: FieldConfig;
266
- value: FieldValue | FieldUpdateValue;
912
+ value: FieldValue;
267
913
  }) => field is {
268
914
  value: string;
269
915
  config: Paragraph;
270
916
  };
271
917
  export declare const isDateFieldType: (field: {
272
918
  config: FieldConfig;
273
- value: FieldValue | FieldUpdateValue;
919
+ value: FieldValue;
274
920
  }) => field is {
275
921
  value: string;
276
922
  config: DateField;
277
923
  };
278
924
  export declare const isAgeFieldType: (field: {
279
925
  config: FieldConfig;
280
- value: FieldValue | FieldUpdateValue;
926
+ value: FieldValue;
281
927
  }) => field is {
282
928
  value: AgeValue | undefined;
283
929
  config: AgeField;
284
930
  };
285
931
  export declare const isTimeFieldType: (field: {
286
932
  config: FieldConfig;
287
- value: FieldValue | FieldUpdateValue;
933
+ value: FieldValue;
288
934
  }) => field is {
289
935
  value: string;
290
936
  config: TimeField;
291
937
  };
292
938
  export declare const isDateRangeFieldType: (field: {
293
939
  config: FieldConfig;
294
- value: FieldValue | FieldUpdateValue;
940
+ value: FieldValue;
295
941
  }) => field is {
296
942
  value: DateRangeFieldValue;
297
943
  config: DateRangeField;
298
944
  };
299
945
  export declare const isSelectDateRangeFieldType: (field: {
300
946
  config: FieldConfig;
301
- value: FieldValue | FieldUpdateValue;
947
+ value: FieldValue;
302
948
  }) => field is {
303
949
  value: SelectDateRangeValue;
304
950
  config: SelectDateRangeField;
305
951
  };
306
952
  export declare const isPageHeaderFieldType: (field: {
307
953
  config: FieldConfig;
308
- value: FieldValue | FieldUpdateValue;
954
+ value: FieldValue;
309
955
  }) => field is {
310
956
  value: string;
311
957
  config: PageHeader;
312
958
  };
313
959
  export declare const isTextFieldType: (field: {
314
960
  config: FieldConfig;
315
- value: FieldValue | FieldUpdateValue;
961
+ value: FieldValue;
316
962
  }) => field is {
317
963
  value: string;
318
964
  config: TextField;
319
965
  };
320
966
  export declare const isNumberFieldType: (field: {
321
967
  config: FieldConfig;
322
- value: FieldValue | FieldUpdateValue;
968
+ value: FieldValue;
323
969
  }) => field is {
324
970
  value: number;
325
971
  config: NumberField;
326
972
  };
327
973
  export declare const isNameFieldType: (field: {
328
974
  config: FieldConfig;
329
- value: FieldValue | FieldUpdateValue;
975
+ value: FieldValue;
330
976
  }) => field is {
331
977
  value: NameFieldValue;
332
978
  config: NameField;
333
979
  };
334
980
  export declare const isPhoneFieldType: (field: {
335
981
  config: FieldConfig;
336
- value: FieldValue | FieldUpdateValue;
982
+ value: FieldValue;
337
983
  }) => field is {
338
984
  value: string;
339
985
  config: PhoneField;
340
986
  };
341
987
  export declare const isIdFieldType: (field: {
342
988
  config: FieldConfig;
343
- value: FieldValue | FieldUpdateValue;
989
+ value: FieldValue;
344
990
  }) => field is {
345
991
  value: string;
346
992
  config: IdField;
347
993
  };
348
994
  export declare const isTextAreaFieldType: (field: {
349
995
  config: FieldConfig;
350
- value: FieldValue | FieldUpdateValue;
996
+ value: FieldValue;
351
997
  }) => field is {
352
998
  value: string;
353
999
  config: TextAreaField;
354
1000
  };
355
1001
  export declare const isSignatureFieldType: (field: {
356
1002
  config: FieldConfig;
357
- value: FieldValue | FieldUpdateValue | undefined;
1003
+ value: FieldValue | undefined;
358
1004
  }) => field is {
359
1005
  value: FileFieldValue | undefined;
360
1006
  config: SignatureField;
361
1007
  };
362
1008
  export declare const isEmailFieldType: (field: {
363
1009
  config: FieldConfig;
364
- value: FieldValue | FieldUpdateValue;
1010
+ value: FieldValue;
365
1011
  }) => field is {
366
1012
  value: string;
367
1013
  config: EmailField;
368
1014
  };
369
1015
  export declare const isFileFieldType: (field: {
370
1016
  config: FieldConfig;
371
- value: FieldValue | FieldUpdateValue;
1017
+ value: FieldValue;
372
1018
  }) => field is {
373
1019
  value: FileFieldValue;
374
1020
  config: File;
375
1021
  };
376
1022
  export declare const isFileFieldWithOptionType: (field: {
377
1023
  config: FieldConfig;
378
- value: FieldValue | FieldUpdateValue;
1024
+ value: FieldValue;
379
1025
  }) => field is {
380
1026
  value: FileFieldWithOptionValue;
381
1027
  config: FileUploadWithOptions;
382
1028
  };
383
1029
  export declare const isBulletListFieldType: (field: {
384
1030
  config: FieldConfig;
385
- value: FieldValue | FieldUpdateValue;
1031
+ value: FieldValue;
386
1032
  }) => field is {
387
1033
  value: string;
388
1034
  config: BulletList;
389
1035
  };
390
1036
  export declare const isSelectFieldType: (field: {
391
1037
  config: FieldConfig;
392
- value: FieldValue | FieldUpdateValue;
1038
+ value: FieldValue;
393
1039
  }) => field is {
394
1040
  value: string;
395
1041
  config: SelectField;
396
1042
  };
397
1043
  export declare const isAddressFieldType: (field: {
398
1044
  config: FieldConfig;
399
- value: FieldValue | FieldUpdateValue;
1045
+ value: FieldValue;
400
1046
  }) => field is {
401
1047
  value: AddressFieldValue;
402
1048
  config: AddressField;
403
1049
  };
404
1050
  export declare const isCountryFieldType: (field: {
405
1051
  config: FieldConfig;
406
- value: FieldValue | FieldUpdateValue;
1052
+ value: FieldValue;
407
1053
  }) => field is {
408
1054
  value: string;
409
1055
  config: Country;
410
1056
  };
411
1057
  export declare const isCheckboxFieldType: (field: {
412
1058
  config: FieldConfig;
413
- value: FieldValue | FieldUpdateValue;
1059
+ value: FieldValue;
414
1060
  }) => field is {
415
1061
  value: boolean;
416
1062
  config: Checkbox;
417
1063
  };
418
1064
  export declare const isRadioGroupFieldType: (field: {
419
1065
  config: FieldConfig;
420
- value: FieldValue | FieldUpdateValue;
1066
+ value: FieldValue;
421
1067
  }) => field is {
422
1068
  value: string;
423
1069
  config: RadioGroup;
424
1070
  };
425
1071
  export declare const isLocationFieldType: (field: {
426
1072
  config: FieldConfig;
427
- value: FieldValue | FieldUpdateValue;
1073
+ value: FieldValue;
428
1074
  }) => field is {
429
1075
  value: string;
430
1076
  config: LocationInput;
431
1077
  };
432
1078
  export declare const isDividerFieldType: (field: {
433
1079
  config: FieldConfig;
434
- value: FieldValue | FieldUpdateValue;
1080
+ value: FieldValue;
435
1081
  }) => field is {
436
1082
  value: string;
437
1083
  config: Divider;
438
1084
  };
439
1085
  export declare const isAdministrativeAreaFieldType: (field: {
440
1086
  config: FieldConfig;
441
- value: FieldValue | FieldUpdateValue;
1087
+ value: FieldValue;
442
1088
  }) => field is {
443
1089
  value: string;
444
1090
  config: AdministrativeArea;
445
1091
  };
446
1092
  export declare const isFacilityFieldType: (field: {
447
1093
  config: FieldConfig;
448
- value: FieldValue | FieldUpdateValue;
1094
+ value: FieldValue;
449
1095
  }) => field is {
450
1096
  value: string;
451
1097
  config: Facility;
452
1098
  };
453
1099
  export declare const isOfficeFieldType: (field: {
454
1100
  config: FieldConfig;
455
- value: FieldValue | FieldUpdateValue;
1101
+ value: FieldValue;
456
1102
  }) => field is {
457
1103
  value: string;
458
1104
  config: Office;
459
1105
  };
460
1106
  export declare const isDataFieldType: (field: {
461
1107
  config: FieldConfig;
462
- value: FieldValue | FieldUpdateValue;
1108
+ value: FieldValue;
463
1109
  }) => field is {
464
1110
  value: DataFieldValue;
465
1111
  config: DataField;
466
1112
  };
467
1113
  export declare const isButtonFieldType: (field: {
468
1114
  config: FieldConfig;
469
- value: FieldValue | FieldUpdateValue;
1115
+ value: FieldValue;
470
1116
  }) => field is {
471
1117
  value: undefined;
472
1118
  config: ButtonField;
473
1119
  };
474
1120
  export declare const isPrintButtonFieldType: (field: {
475
1121
  config: FieldConfig;
476
- value: FieldValue | FieldUpdateValue;
1122
+ value: FieldValue;
477
1123
  }) => field is {
478
1124
  value: undefined;
479
1125
  config: AlphaPrintButton;
480
1126
  };
481
1127
  export declare const isHttpFieldType: (field: {
482
1128
  config: FieldConfig;
483
- value: FieldValue | FieldUpdateValue;
1129
+ value: FieldValue;
484
1130
  }) => field is {
485
1131
  value: undefined;
486
1132
  config: HttpField;
487
1133
  };
488
1134
  export declare const isSearchFieldType: (field: {
489
1135
  config: FieldConfig;
490
- value: FieldValue | FieldUpdateValue;
1136
+ value: FieldValue;
491
1137
  }) => field is {
492
1138
  value: undefined;
493
1139
  config: SearchField;
494
1140
  };
495
1141
  export declare const isLinkButtonFieldType: (field: {
496
1142
  config: FieldConfig;
497
- value: FieldValue | FieldUpdateValue;
1143
+ value: FieldValue;
498
1144
  }) => field is {
499
1145
  value: undefined;
500
1146
  config: LinkButtonField;
501
1147
  };
502
1148
  export declare const isVerificationStatusType: (field: {
503
1149
  config: FieldConfig;
504
- value: FieldValue | FieldUpdateValue;
1150
+ value: FieldValue;
505
1151
  }) => field is {
506
1152
  value: VerificationStatusValue | undefined;
507
1153
  config: VerificationStatus;
508
1154
  };
509
1155
  export declare const isQueryParamReaderFieldType: (field: {
510
1156
  config: FieldConfig;
511
- value: FieldValue | FieldUpdateValue;
1157
+ value: FieldValue;
512
1158
  }) => field is {
513
1159
  value: undefined;
514
1160
  config: QueryParamReaderField;
515
1161
  };
516
1162
  export declare const isQrReaderFieldType: (field: {
517
1163
  config: FieldConfig;
518
- value: FieldValue | FieldUpdateValue;
1164
+ value: FieldValue;
519
1165
  }) => field is {
520
1166
  value: undefined;
521
1167
  config: QrReaderField;
522
1168
  };
523
1169
  export declare const isIdReaderFieldType: (field: {
524
1170
  config: FieldConfig;
525
- value: FieldValue | FieldUpdateValue;
1171
+ value: FieldValue;
526
1172
  }) => field is {
527
1173
  value: undefined;
528
1174
  config: IdReaderField;
529
1175
  };
530
1176
  export declare const isLoaderFieldType: (field: {
531
1177
  config: FieldConfig;
532
- value: FieldValue | FieldUpdateValue;
1178
+ value: FieldValue;
533
1179
  }) => field is {
534
1180
  value: undefined;
535
1181
  config: LoaderField;
536
1182
  };
537
- export declare const isCustomFieldType: (field: {
538
- config: FieldConfig;
539
- value: FieldValue | FieldUpdateValue;
540
- }) => field is {
541
- value: CustomFieldValue;
542
- config: CustomField;
543
- };
544
- export declare const isHiddenFieldType: (field: {
545
- config: FieldConfig;
546
- value: FieldValue | FieldUpdateValue;
547
- }) => field is {
548
- value: undefined;
549
- config: HiddenField;
550
- };
551
1183
  export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
552
1184
  export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
553
1185
  export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;