@opencrvs/toolkit 1.9.6-rc.b9a5c96 → 1.9.6-rc.bb63e64

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