@opencrvs/toolkit 1.9.4-rc.793f834 → 1.9.4-rc.f09603b

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 +28204 -2149
  2. package/dist/commons/conditionals/conditionals.d.ts +10 -1
  3. package/dist/commons/conditionals/validate.d.ts +11 -4
  4. package/dist/commons/events/ActionConfig.d.ts +23416 -1552
  5. package/dist/commons/events/ActionDocument.d.ts +803 -1856
  6. package/dist/commons/events/ActionInput.d.ts +277 -1073
  7. package/dist/commons/events/ActionType.d.ts +86 -9
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
  9. package/dist/commons/events/CompositeFieldValue.d.ts +27 -176
  10. package/dist/commons/events/Conditional.d.ts +26 -38
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +931 -4169
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +15 -150
  15. package/dist/commons/events/Draft.d.ts +70 -105
  16. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  17. package/dist/commons/events/EventConfig.d.ts +18663 -2120
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +320 -1332
  20. package/dist/commons/events/EventIndex.d.ts +197 -967
  21. package/dist/commons/events/EventInput.d.ts +2 -8
  22. package/dist/commons/events/EventMetadata.d.ts +106 -346
  23. package/dist/commons/events/FieldConfig.d.ts +4267 -11782
  24. package/dist/commons/events/FieldType.d.ts +20 -4
  25. package/dist/commons/events/FieldTypeMapping.d.ts +181 -813
  26. package/dist/commons/events/FieldValue.d.ts +83 -356
  27. package/dist/commons/events/Flag.d.ts +70 -0
  28. package/dist/commons/events/FormConfig.d.ts +13140 -721
  29. package/dist/commons/events/PageConfig.d.ts +8780 -319
  30. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  31. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  32. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  33. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  34. package/dist/commons/events/WorkqueueConfig.d.ts +1691 -7156
  35. package/dist/commons/events/deduplication.d.ts +3 -3
  36. package/dist/commons/events/defineConfig.d.ts +25626 -150
  37. package/dist/commons/events/event.d.ts +4 -4
  38. package/dist/commons/events/index.d.ts +1 -0
  39. package/dist/commons/events/locations.d.ts +15 -19
  40. package/dist/commons/events/scopes.d.ts +5 -4
  41. package/dist/commons/events/state/availableActions.d.ts +2 -1
  42. package/dist/commons/events/state/flags.d.ts +21 -3
  43. package/dist/commons/events/state/index.d.ts +23 -19
  44. package/dist/commons/events/state/utils.d.ts +130 -112
  45. package/dist/commons/events/test.utils.d.ts +17 -8
  46. package/dist/commons/events/transactions.d.ts +1 -1
  47. package/dist/commons/events/utils.d.ts +51339 -362
  48. package/dist/commons/notification/UserNotifications.d.ts +55 -636
  49. package/dist/conditionals/index.d.ts.map +1 -1
  50. package/dist/conditionals/index.js +38 -5
  51. package/dist/events/deduplication.d.ts +3 -3
  52. package/dist/events/index.js +1810 -1550
  53. package/dist/notification/index.d.ts.map +1 -1
  54. package/dist/notification/index.js +1430 -1412
  55. package/dist/scopes/index.d.ts +167 -132
  56. package/dist/scopes/index.d.ts.map +1 -1
  57. package/dist/scopes/index.js +133 -94
  58. package/package.json +5 -5
@@ -1,8 +1,8 @@
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';
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';
4
4
  import { FullDocumentPath } from '../documents';
5
- import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue } from './CompositeFieldValue';
5
+ import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, CustomFieldValue } from './CompositeFieldValue';
6
6
  import { ActionType } from './ActionType';
7
7
  /**
8
8
  * Mapping of field types to Zod schema.
@@ -12,885 +12,239 @@ 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.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodObject<{
16
- path: z.ZodEffects<z.ZodString, string, string>;
15
+ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodObject<{
16
+ path: z.ZodString;
17
17
  originalFilename: z.ZodString;
18
18
  type: z.ZodString;
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<{
19
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
40
20
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
21
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
22
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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<{
23
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodDiscriminatedUnion<[z.ZodObject<{
64
24
  country: z.ZodString;
65
25
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
66
- }, {
67
26
  addressType: z.ZodLiteral<"DOMESTIC">;
68
27
  administrativeArea: z.ZodString;
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<{
28
+ }, z.core.$strip>, z.ZodObject<{
80
29
  country: z.ZodString;
81
30
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
82
- }, {
83
31
  addressType: z.ZodLiteral<"INTERNATIONAL">;
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<{
32
+ }, z.core.$strip>], "addressType"> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
111
33
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
34
  streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
113
- }, {
114
35
  addressType: z.ZodLiteral<"DOMESTIC">;
115
36
  administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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<{
37
+ }, z.core.$strip>, z.ZodObject<{
127
38
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
39
  streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
129
- }, {
130
40
  addressType: z.ZodLiteral<"INTERNATIONAL">;
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>;
41
+ }, z.core.$strip>], "addressType">>> | z.ZodArray<z.ZodObject<{
42
+ path: z.ZodString;
159
43
  originalFilename: z.ZodString;
160
44
  type: z.ZodString;
161
45
  option: z.ZodString;
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<{
46
+ }, z.core.$strip>> | z.ZodBoolean | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
188
47
  loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
189
48
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
190
49
  statusCode: z.ZodNumber;
191
50
  message: z.ZodString;
192
- }, "strip", z.ZodTypeAny, {
193
- message: string;
194
- statusCode: number;
195
- }, {
196
- message: string;
197
- statusCode: number;
198
- }>>>;
51
+ }, z.core.$strip>>>;
199
52
  data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
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<{
53
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodObject<{
215
54
  data: z.ZodRecord<z.ZodString, z.ZodString>;
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<{
55
+ }, z.core.$strip> | z.ZodObject<{
227
56
  data: z.ZodAny;
228
- }, "strip", z.ZodTypeAny, {
229
- data?: any;
230
- }, {
231
- data?: any;
232
- }>>> | z.ZodObject<{
57
+ }, z.core.$strip> | z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"> | z.ZodISODate | z.ZodObject<{
233
58
  age: z.ZodNumber;
234
59
  asOfDateRef: z.ZodString;
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<{
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<{
270
70
  country: z.ZodString;
271
71
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
272
- }, {
273
72
  addressType: z.ZodLiteral<"DOMESTIC">;
274
73
  administrativeArea: z.ZodString;
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<{
74
+ }, z.core.$strip>, z.ZodObject<{
286
75
  country: z.ZodString;
287
76
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
288
- }, {
289
77
  addressType: z.ZodLiteral<"INTERNATIONAL">;
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<{
78
+ }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
299
79
  age: z.ZodNumber;
300
80
  asOfDateRef: 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>;
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;
318
91
  originalFilename: z.ZodString;
319
92
  type: 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>;
93
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
94
+ path: z.ZodString;
330
95
  originalFilename: z.ZodString;
331
96
  type: z.ZodString;
332
97
  option: z.ZodString;
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<{
98
+ }, z.core.$strip>>, z.ZodObject<{
344
99
  firstname: z.ZodString;
345
100
  surname: z.ZodString;
346
101
  middlename: z.ZodOptional<z.ZodString>;
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<{
102
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
356
103
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
104
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
105
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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<{
106
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
368
107
  loading: z.ZodBoolean;
369
108
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
370
109
  statusCode: z.ZodNumber;
371
110
  message: z.ZodString;
372
- }, "strip", z.ZodTypeAny, {
373
- message: string;
374
- statusCode: number;
375
- }, {
376
- message: string;
377
- statusCode: number;
378
- }>>>;
111
+ }, z.core.$strip>>>;
379
112
  data: z.ZodAny;
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<{
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<{
395
119
  data: z.ZodRecord<z.ZodString, z.ZodString>;
396
- }, "strip", z.ZodTypeAny, {
397
- data: Record<string, string>;
398
- }, {
399
- data: Record<string, string>;
400
- }>>>, z.ZodObject<{
120
+ }, z.core.$strip>>>, z.ZodObject<{
401
121
  data: z.ZodAny;
402
- }, "strip", z.ZodTypeAny, {
403
- data?: any;
404
- }, {
405
- data?: any;
406
- }>, z.ZodObject<{
122
+ }, z.core.$strip>, z.ZodObject<{
407
123
  data: z.ZodAny;
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<{
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<{
505
153
  country: z.ZodString;
506
154
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
507
- }, {
508
155
  addressType: z.ZodLiteral<"DOMESTIC">;
509
156
  administrativeArea: z.ZodString;
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<{
157
+ }, z.core.$strip>, z.ZodObject<{
521
158
  country: z.ZodString;
522
159
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
523
- }, {
524
160
  addressType: z.ZodLiteral<"INTERNATIONAL">;
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<{
161
+ }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
534
162
  age: z.ZodNumber;
535
163
  asOfDateRef: 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>;
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;
553
174
  originalFilename: z.ZodString;
554
175
  type: 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>;
176
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
177
+ path: z.ZodString;
565
178
  originalFilename: z.ZodString;
566
179
  type: z.ZodString;
567
180
  option: z.ZodString;
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<{
181
+ }, z.core.$strip>>, z.ZodObject<{
579
182
  firstname: z.ZodString;
580
183
  surname: z.ZodString;
581
184
  middlename: z.ZodOptional<z.ZodString>;
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<{
185
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
591
186
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
187
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
188
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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<{
189
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
603
190
  loading: z.ZodBoolean;
604
191
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
605
192
  statusCode: z.ZodNumber;
606
193
  message: z.ZodString;
607
- }, "strip", z.ZodTypeAny, {
608
- message: string;
609
- statusCode: number;
610
- }, {
611
- message: string;
612
- statusCode: number;
613
- }>>>;
194
+ }, z.core.$strip>>>;
614
195
  data: z.ZodAny;
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<{
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<{
630
202
  data: z.ZodRecord<z.ZodString, z.ZodString>;
631
- }, "strip", z.ZodTypeAny, {
632
- data: Record<string, string>;
633
- }, {
634
- data: Record<string, string>;
635
- }>>>, z.ZodObject<{
203
+ }, z.core.$strip>>>, z.ZodObject<{
636
204
  data: z.ZodAny;
637
- }, "strip", z.ZodTypeAny, {
638
- data?: any;
639
- }, {
640
- data?: any;
641
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
642
206
  data: z.ZodAny;
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<{
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<{
739
213
  loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
740
214
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
741
215
  statusCode: z.ZodNumber;
742
216
  message: z.ZodString;
743
- }, "strip", z.ZodTypeAny, {
744
- message: string;
745
- statusCode: number;
746
- }, {
747
- message: string;
748
- statusCode: number;
749
- }>>>;
217
+ }, z.core.$strip>>>;
750
218
  data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
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<{
219
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
766
220
  data: z.ZodRecord<z.ZodString, z.ZodString>;
767
- }, "strip", z.ZodTypeAny, {
768
- data: Record<string, string>;
769
- }, {
770
- data: Record<string, string>;
771
- }>>> | z.ZodObject<{
221
+ }, z.core.$strip>>> | z.ZodObject<{
772
222
  firstname: z.ZodString;
773
223
  surname: z.ZodString;
774
224
  middlename: z.ZodString | z.ZodOptional<z.ZodString>;
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<{
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<{
831
231
  country: z.ZodString;
832
232
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
833
- }, {
834
233
  addressType: z.ZodLiteral<"DOMESTIC">;
835
234
  administrativeArea: z.ZodString;
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<{
235
+ }, z.core.$strip>, z.ZodObject<{
847
236
  country: z.ZodString;
848
237
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
849
- }, {
850
238
  addressType: z.ZodLiteral<"INTERNATIONAL">;
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<{
239
+ }, z.core.$strip>], "addressType">>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
878
240
  firstname: z.ZodString;
879
241
  surname: z.ZodString;
880
242
  middlename: z.ZodString | z.ZodOptional<z.ZodString>;
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
- }>>>;
243
+ }, z.core.$strip>>>;
890
244
  /**
891
245
  * Maps complex or nested field types, such as Address fields, to their corresponding empty values.
892
246
  */
893
- export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] | {
247
+ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): z.core.$brand<"CustomFieldValue"> | never[] | {
894
248
  country: string;
895
249
  addressType: "DOMESTIC";
896
250
  administrativeArea: string;
@@ -909,277 +263,291 @@ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] |
909
263
  } | null;
910
264
  export declare const isParagraphFieldType: (field: {
911
265
  config: FieldConfig;
912
- value: FieldValue;
266
+ value: FieldValue | FieldUpdateValue;
913
267
  }) => field is {
914
268
  value: string;
915
269
  config: Paragraph;
916
270
  };
917
271
  export declare const isDateFieldType: (field: {
918
272
  config: FieldConfig;
919
- value: FieldValue;
273
+ value: FieldValue | FieldUpdateValue;
920
274
  }) => field is {
921
275
  value: string;
922
276
  config: DateField;
923
277
  };
924
278
  export declare const isAgeFieldType: (field: {
925
279
  config: FieldConfig;
926
- value: FieldValue;
280
+ value: FieldValue | FieldUpdateValue;
927
281
  }) => field is {
928
282
  value: AgeValue | undefined;
929
283
  config: AgeField;
930
284
  };
931
285
  export declare const isTimeFieldType: (field: {
932
286
  config: FieldConfig;
933
- value: FieldValue;
287
+ value: FieldValue | FieldUpdateValue;
934
288
  }) => field is {
935
289
  value: string;
936
290
  config: TimeField;
937
291
  };
938
292
  export declare const isDateRangeFieldType: (field: {
939
293
  config: FieldConfig;
940
- value: FieldValue;
294
+ value: FieldValue | FieldUpdateValue;
941
295
  }) => field is {
942
296
  value: DateRangeFieldValue;
943
297
  config: DateRangeField;
944
298
  };
945
299
  export declare const isSelectDateRangeFieldType: (field: {
946
300
  config: FieldConfig;
947
- value: FieldValue;
301
+ value: FieldValue | FieldUpdateValue;
948
302
  }) => field is {
949
303
  value: SelectDateRangeValue;
950
304
  config: SelectDateRangeField;
951
305
  };
952
306
  export declare const isPageHeaderFieldType: (field: {
953
307
  config: FieldConfig;
954
- value: FieldValue;
308
+ value: FieldValue | FieldUpdateValue;
955
309
  }) => field is {
956
310
  value: string;
957
311
  config: PageHeader;
958
312
  };
959
313
  export declare const isTextFieldType: (field: {
960
314
  config: FieldConfig;
961
- value: FieldValue;
315
+ value: FieldValue | FieldUpdateValue;
962
316
  }) => field is {
963
317
  value: string;
964
318
  config: TextField;
965
319
  };
966
320
  export declare const isNumberFieldType: (field: {
967
321
  config: FieldConfig;
968
- value: FieldValue;
322
+ value: FieldValue | FieldUpdateValue;
969
323
  }) => field is {
970
324
  value: number;
971
325
  config: NumberField;
972
326
  };
973
327
  export declare const isNameFieldType: (field: {
974
328
  config: FieldConfig;
975
- value: FieldValue;
329
+ value: FieldValue | FieldUpdateValue;
976
330
  }) => field is {
977
331
  value: NameFieldValue;
978
332
  config: NameField;
979
333
  };
980
334
  export declare const isPhoneFieldType: (field: {
981
335
  config: FieldConfig;
982
- value: FieldValue;
336
+ value: FieldValue | FieldUpdateValue;
983
337
  }) => field is {
984
338
  value: string;
985
339
  config: PhoneField;
986
340
  };
987
341
  export declare const isIdFieldType: (field: {
988
342
  config: FieldConfig;
989
- value: FieldValue;
343
+ value: FieldValue | FieldUpdateValue;
990
344
  }) => field is {
991
345
  value: string;
992
346
  config: IdField;
993
347
  };
994
348
  export declare const isTextAreaFieldType: (field: {
995
349
  config: FieldConfig;
996
- value: FieldValue;
350
+ value: FieldValue | FieldUpdateValue;
997
351
  }) => field is {
998
352
  value: string;
999
353
  config: TextAreaField;
1000
354
  };
1001
355
  export declare const isSignatureFieldType: (field: {
1002
356
  config: FieldConfig;
1003
- value: FieldValue | undefined;
357
+ value: FieldValue | FieldUpdateValue | undefined;
1004
358
  }) => field is {
1005
359
  value: FileFieldValue | undefined;
1006
360
  config: SignatureField;
1007
361
  };
1008
362
  export declare const isEmailFieldType: (field: {
1009
363
  config: FieldConfig;
1010
- value: FieldValue;
364
+ value: FieldValue | FieldUpdateValue;
1011
365
  }) => field is {
1012
366
  value: string;
1013
367
  config: EmailField;
1014
368
  };
1015
369
  export declare const isFileFieldType: (field: {
1016
370
  config: FieldConfig;
1017
- value: FieldValue;
371
+ value: FieldValue | FieldUpdateValue;
1018
372
  }) => field is {
1019
373
  value: FileFieldValue;
1020
374
  config: File;
1021
375
  };
1022
376
  export declare const isFileFieldWithOptionType: (field: {
1023
377
  config: FieldConfig;
1024
- value: FieldValue;
378
+ value: FieldValue | FieldUpdateValue;
1025
379
  }) => field is {
1026
380
  value: FileFieldWithOptionValue;
1027
381
  config: FileUploadWithOptions;
1028
382
  };
1029
383
  export declare const isBulletListFieldType: (field: {
1030
384
  config: FieldConfig;
1031
- value: FieldValue;
385
+ value: FieldValue | FieldUpdateValue;
1032
386
  }) => field is {
1033
387
  value: string;
1034
388
  config: BulletList;
1035
389
  };
1036
390
  export declare const isSelectFieldType: (field: {
1037
391
  config: FieldConfig;
1038
- value: FieldValue;
392
+ value: FieldValue | FieldUpdateValue;
1039
393
  }) => field is {
1040
394
  value: string;
1041
395
  config: SelectField;
1042
396
  };
1043
397
  export declare const isAddressFieldType: (field: {
1044
398
  config: FieldConfig;
1045
- value: FieldValue;
399
+ value: FieldValue | FieldUpdateValue;
1046
400
  }) => field is {
1047
401
  value: AddressFieldValue;
1048
402
  config: AddressField;
1049
403
  };
1050
404
  export declare const isCountryFieldType: (field: {
1051
405
  config: FieldConfig;
1052
- value: FieldValue;
406
+ value: FieldValue | FieldUpdateValue;
1053
407
  }) => field is {
1054
408
  value: string;
1055
409
  config: Country;
1056
410
  };
1057
411
  export declare const isCheckboxFieldType: (field: {
1058
412
  config: FieldConfig;
1059
- value: FieldValue;
413
+ value: FieldValue | FieldUpdateValue;
1060
414
  }) => field is {
1061
415
  value: boolean;
1062
416
  config: Checkbox;
1063
417
  };
1064
418
  export declare const isRadioGroupFieldType: (field: {
1065
419
  config: FieldConfig;
1066
- value: FieldValue;
420
+ value: FieldValue | FieldUpdateValue;
1067
421
  }) => field is {
1068
422
  value: string;
1069
423
  config: RadioGroup;
1070
424
  };
1071
425
  export declare const isLocationFieldType: (field: {
1072
426
  config: FieldConfig;
1073
- value: FieldValue;
427
+ value: FieldValue | FieldUpdateValue;
1074
428
  }) => field is {
1075
429
  value: string;
1076
430
  config: LocationInput;
1077
431
  };
1078
432
  export declare const isDividerFieldType: (field: {
1079
433
  config: FieldConfig;
1080
- value: FieldValue;
434
+ value: FieldValue | FieldUpdateValue;
1081
435
  }) => field is {
1082
436
  value: string;
1083
437
  config: Divider;
1084
438
  };
1085
439
  export declare const isAdministrativeAreaFieldType: (field: {
1086
440
  config: FieldConfig;
1087
- value: FieldValue;
441
+ value: FieldValue | FieldUpdateValue;
1088
442
  }) => field is {
1089
443
  value: string;
1090
444
  config: AdministrativeArea;
1091
445
  };
1092
446
  export declare const isFacilityFieldType: (field: {
1093
447
  config: FieldConfig;
1094
- value: FieldValue;
448
+ value: FieldValue | FieldUpdateValue;
1095
449
  }) => field is {
1096
450
  value: string;
1097
451
  config: Facility;
1098
452
  };
1099
453
  export declare const isOfficeFieldType: (field: {
1100
454
  config: FieldConfig;
1101
- value: FieldValue;
455
+ value: FieldValue | FieldUpdateValue;
1102
456
  }) => field is {
1103
457
  value: string;
1104
458
  config: Office;
1105
459
  };
1106
460
  export declare const isDataFieldType: (field: {
1107
461
  config: FieldConfig;
1108
- value: FieldValue;
462
+ value: FieldValue | FieldUpdateValue;
1109
463
  }) => field is {
1110
464
  value: DataFieldValue;
1111
465
  config: DataField;
1112
466
  };
1113
467
  export declare const isButtonFieldType: (field: {
1114
468
  config: FieldConfig;
1115
- value: FieldValue;
469
+ value: FieldValue | FieldUpdateValue;
1116
470
  }) => field is {
1117
471
  value: undefined;
1118
472
  config: ButtonField;
1119
473
  };
1120
474
  export declare const isPrintButtonFieldType: (field: {
1121
475
  config: FieldConfig;
1122
- value: FieldValue;
476
+ value: FieldValue | FieldUpdateValue;
1123
477
  }) => field is {
1124
478
  value: undefined;
1125
479
  config: AlphaPrintButton;
1126
480
  };
1127
481
  export declare const isHttpFieldType: (field: {
1128
482
  config: FieldConfig;
1129
- value: FieldValue;
483
+ value: FieldValue | FieldUpdateValue;
1130
484
  }) => field is {
1131
485
  value: undefined;
1132
486
  config: HttpField;
1133
487
  };
1134
488
  export declare const isSearchFieldType: (field: {
1135
489
  config: FieldConfig;
1136
- value: FieldValue;
490
+ value: FieldValue | FieldUpdateValue;
1137
491
  }) => field is {
1138
492
  value: undefined;
1139
493
  config: SearchField;
1140
494
  };
1141
495
  export declare const isLinkButtonFieldType: (field: {
1142
496
  config: FieldConfig;
1143
- value: FieldValue;
497
+ value: FieldValue | FieldUpdateValue;
1144
498
  }) => field is {
1145
499
  value: undefined;
1146
500
  config: LinkButtonField;
1147
501
  };
1148
502
  export declare const isVerificationStatusType: (field: {
1149
503
  config: FieldConfig;
1150
- value: FieldValue;
504
+ value: FieldValue | FieldUpdateValue;
1151
505
  }) => field is {
1152
506
  value: VerificationStatusValue | undefined;
1153
507
  config: VerificationStatus;
1154
508
  };
1155
509
  export declare const isQueryParamReaderFieldType: (field: {
1156
510
  config: FieldConfig;
1157
- value: FieldValue;
511
+ value: FieldValue | FieldUpdateValue;
1158
512
  }) => field is {
1159
513
  value: undefined;
1160
514
  config: QueryParamReaderField;
1161
515
  };
1162
516
  export declare const isQrReaderFieldType: (field: {
1163
517
  config: FieldConfig;
1164
- value: FieldValue;
518
+ value: FieldValue | FieldUpdateValue;
1165
519
  }) => field is {
1166
520
  value: undefined;
1167
521
  config: QrReaderField;
1168
522
  };
1169
523
  export declare const isIdReaderFieldType: (field: {
1170
524
  config: FieldConfig;
1171
- value: FieldValue;
525
+ value: FieldValue | FieldUpdateValue;
1172
526
  }) => field is {
1173
527
  value: undefined;
1174
528
  config: IdReaderField;
1175
529
  };
1176
530
  export declare const isLoaderFieldType: (field: {
1177
531
  config: FieldConfig;
1178
- value: FieldValue;
532
+ value: FieldValue | FieldUpdateValue;
1179
533
  }) => field is {
1180
534
  value: undefined;
1181
535
  config: LoaderField;
1182
536
  };
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
+ };
1183
551
  export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
1184
552
  export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
1185
553
  export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;