@opencrvs/toolkit 1.9.3-rc.8e41e94 → 1.9.3-rc.92b8be0

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 +28089 -2317
  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 +23121 -1547
  5. package/dist/commons/events/ActionDocument.d.ts +840 -1849
  6. package/dist/commons/events/ActionInput.d.ts +290 -1066
  7. package/dist/commons/events/ActionType.d.ts +91 -8
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +222 -1244
  9. package/dist/commons/events/CompositeFieldValue.d.ts +25 -198
  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 +72 -105
  16. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  17. package/dist/commons/events/EventConfig.d.ts +18321 -2122
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +336 -1326
  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 +4170 -12057
  24. package/dist/commons/events/FieldType.d.ts +9 -5
  25. package/dist/commons/events/FieldTypeMapping.d.ts +172 -896
  26. package/dist/commons/events/FieldValue.d.ts +84 -405
  27. package/dist/commons/events/Flag.d.ts +70 -0
  28. package/dist/commons/events/FormConfig.d.ts +12876 -721
  29. package/dist/commons/events/PageConfig.d.ts +8604 -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 +1695 -7156
  35. package/dist/commons/events/deduplication.d.ts +3 -3
  36. package/dist/commons/events/defineConfig.d.ts +25160 -152
  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 +3 -1
  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 +142 -110
  45. package/dist/commons/events/test.utils.d.ts +23 -6
  46. package/dist/commons/events/transactions.d.ts +1 -1
  47. package/dist/commons/events/utils.d.ts +50368 -369
  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 +1812 -1749
  53. package/dist/notification/index.d.ts.map +1 -1
  54. package/dist/notification/index.js +1463 -1629
  55. package/dist/scopes/index.d.ts +138 -138
  56. package/dist/scopes/index.d.ts.map +1 -1
  57. package/dist/scopes/index.js +123 -93
  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, 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, 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, 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 } from './CompositeFieldValue';
6
6
  import { ActionType } from './ActionType';
7
7
  /**
8
8
  * Mapping of field types to Zod schema.
@@ -12,959 +12,235 @@ 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<{
55
+ }, z.core.$strip> | z.ZodObject<{
221
56
  data: z.ZodAny;
222
- }, "strip", z.ZodTypeAny, {
223
- data?: any;
224
- }, {
225
- data?: any;
226
- }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
227
- data: z.ZodAny;
228
- }, "strip", z.ZodTypeAny, {
229
- data?: any;
230
- }, {
231
- data?: any;
232
- }>>> | z.ZodObject<{
233
- numericValue: z.ZodOptional<z.ZodNumber>;
234
- 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<{
251
- age: z.ZodNumber;
252
- 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<{
57
+ }, z.core.$strip> | z.ZodISODate | z.ZodObject<{
260
58
  age: z.ZodNumber;
261
59
  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<{
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<{
288
70
  country: z.ZodString;
289
71
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
290
- }, {
291
72
  addressType: z.ZodLiteral<"DOMESTIC">;
292
73
  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<{
74
+ }, z.core.$strip>, z.ZodObject<{
304
75
  country: z.ZodString;
305
76
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
306
- }, {
307
77
  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<{
78
+ }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
317
79
  age: z.ZodNumber;
318
80
  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>;
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;
336
91
  originalFilename: z.ZodString;
337
92
  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>;
93
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
94
+ path: z.ZodString;
348
95
  originalFilename: z.ZodString;
349
96
  type: z.ZodString;
350
97
  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<{
98
+ }, z.core.$strip>>, z.ZodObject<{
362
99
  firstname: z.ZodString;
363
100
  surname: z.ZodString;
364
101
  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<{
102
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
374
103
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
104
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
105
  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<{
106
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
386
107
  loading: z.ZodBoolean;
387
108
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
388
109
  statusCode: z.ZodNumber;
389
110
  message: z.ZodString;
390
- }, "strip", z.ZodTypeAny, {
391
- message: string;
392
- statusCode: number;
393
- }, {
394
- message: string;
395
- statusCode: number;
396
- }>>>;
111
+ }, z.core.$strip>>>;
397
112
  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<{
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<{
413
119
  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<{
120
+ }, z.core.$strip>>>, z.ZodObject<{
419
121
  data: z.ZodAny;
420
- }, "strip", z.ZodTypeAny, {
421
- data?: any;
422
- }, {
423
- data?: any;
424
- }>, z.ZodObject<{
122
+ }, z.core.$strip>, z.ZodObject<{
425
123
  data: z.ZodAny;
426
- }, "strip", z.ZodTypeAny, {
427
- data?: any;
428
- }, {
429
- data?: any;
430
- }>, z.ZodObject<{
431
- numericValue: z.ZodNumber;
432
- unit: z.ZodString;
433
- }, "strip", z.ZodTypeAny, {
434
- numericValue: number;
435
- unit: string;
436
- }, {
437
- numericValue: number;
438
- unit: string;
439
- }>, z.ZodObject<{
440
- numericValue: z.ZodOptional<z.ZodNumber>;
441
- 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<{
124
+ }, z.core.$strip>]>>;
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<{
553
153
  country: z.ZodString;
554
154
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
555
- }, {
556
155
  addressType: z.ZodLiteral<"DOMESTIC">;
557
156
  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<{
157
+ }, z.core.$strip>, z.ZodObject<{
569
158
  country: z.ZodString;
570
159
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
571
- }, {
572
160
  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<{
161
+ }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
582
162
  age: z.ZodNumber;
583
163
  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>;
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;
601
174
  originalFilename: z.ZodString;
602
175
  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>;
176
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
177
+ path: z.ZodString;
613
178
  originalFilename: z.ZodString;
614
179
  type: z.ZodString;
615
180
  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<{
181
+ }, z.core.$strip>>, z.ZodObject<{
627
182
  firstname: z.ZodString;
628
183
  surname: z.ZodString;
629
184
  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<{
185
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
639
186
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
187
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
188
  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<{
189
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
651
190
  loading: z.ZodBoolean;
652
191
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
653
192
  statusCode: z.ZodNumber;
654
193
  message: z.ZodString;
655
- }, "strip", z.ZodTypeAny, {
656
- message: string;
657
- statusCode: number;
658
- }, {
659
- message: string;
660
- statusCode: number;
661
- }>>>;
194
+ }, z.core.$strip>>>;
662
195
  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<{
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<{
678
202
  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<{
203
+ }, z.core.$strip>>>, z.ZodObject<{
684
204
  data: z.ZodAny;
685
- }, "strip", z.ZodTypeAny, {
686
- data?: any;
687
- }, {
688
- data?: any;
689
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
690
206
  data: z.ZodAny;
691
- }, "strip", z.ZodTypeAny, {
692
- data?: any;
693
- }, {
694
- data?: any;
695
- }>, z.ZodObject<{
696
- numericValue: z.ZodNumber;
697
- unit: z.ZodString;
698
- }, "strip", z.ZodTypeAny, {
699
- numericValue: number;
700
- unit: string;
701
- }, {
702
- numericValue: number;
703
- unit: string;
704
- }>, z.ZodObject<{
705
- numericValue: z.ZodOptional<z.ZodNumber>;
706
- 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<{
207
+ }, z.core.$strip>]>>;
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<{
817
213
  loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
818
214
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
819
215
  statusCode: z.ZodNumber;
820
216
  message: z.ZodString;
821
- }, "strip", z.ZodTypeAny, {
822
- message: string;
823
- statusCode: number;
824
- }, {
825
- message: string;
826
- statusCode: number;
827
- }>>>;
217
+ }, z.core.$strip>>>;
828
218
  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<{
219
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
844
220
  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<{
221
+ }, z.core.$strip>>> | z.ZodObject<{
850
222
  firstname: z.ZodString;
851
223
  surname: z.ZodString;
852
224
  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<{
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.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<{
909
231
  country: z.ZodString;
910
232
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
911
- }, {
912
233
  addressType: z.ZodLiteral<"DOMESTIC">;
913
234
  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<{
235
+ }, z.core.$strip>, z.ZodObject<{
925
236
  country: z.ZodString;
926
237
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
927
- }, {
928
238
  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<{
239
+ }, z.core.$strip>], "addressType">>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
956
240
  firstname: z.ZodString;
957
241
  surname: z.ZodString;
958
242
  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
- }>>>;
243
+ }, z.core.$strip>>>;
968
244
  /**
969
245
  * Maps complex or nested field types, such as Address fields, to their corresponding empty values.
970
246
  */
@@ -987,284 +263,284 @@ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] |
987
263
  } | null;
988
264
  export declare const isParagraphFieldType: (field: {
989
265
  config: FieldConfig;
990
- value: FieldValue;
266
+ value: FieldValue | FieldUpdateValue;
991
267
  }) => field is {
992
268
  value: string;
993
269
  config: Paragraph;
994
270
  };
995
271
  export declare const isDateFieldType: (field: {
996
272
  config: FieldConfig;
997
- value: FieldValue;
273
+ value: FieldValue | FieldUpdateValue;
998
274
  }) => field is {
999
275
  value: string;
1000
276
  config: DateField;
1001
277
  };
1002
278
  export declare const isAgeFieldType: (field: {
1003
279
  config: FieldConfig;
1004
- value: FieldValue;
280
+ value: FieldValue | FieldUpdateValue;
1005
281
  }) => field is {
1006
282
  value: AgeValue | undefined;
1007
283
  config: AgeField;
1008
284
  };
1009
285
  export declare const isTimeFieldType: (field: {
1010
286
  config: FieldConfig;
1011
- value: FieldValue;
287
+ value: FieldValue | FieldUpdateValue;
1012
288
  }) => field is {
1013
289
  value: string;
1014
290
  config: TimeField;
1015
291
  };
1016
292
  export declare const isDateRangeFieldType: (field: {
1017
293
  config: FieldConfig;
1018
- value: FieldValue;
294
+ value: FieldValue | FieldUpdateValue;
1019
295
  }) => field is {
1020
296
  value: DateRangeFieldValue;
1021
297
  config: DateRangeField;
1022
298
  };
1023
299
  export declare const isSelectDateRangeFieldType: (field: {
1024
300
  config: FieldConfig;
1025
- value: FieldValue;
301
+ value: FieldValue | FieldUpdateValue;
1026
302
  }) => field is {
1027
303
  value: SelectDateRangeValue;
1028
304
  config: SelectDateRangeField;
1029
305
  };
1030
306
  export declare const isPageHeaderFieldType: (field: {
1031
307
  config: FieldConfig;
1032
- value: FieldValue;
308
+ value: FieldValue | FieldUpdateValue;
1033
309
  }) => field is {
1034
310
  value: string;
1035
311
  config: PageHeader;
1036
312
  };
1037
313
  export declare const isTextFieldType: (field: {
1038
314
  config: FieldConfig;
1039
- value: FieldValue;
315
+ value: FieldValue | FieldUpdateValue;
1040
316
  }) => field is {
1041
317
  value: string;
1042
318
  config: TextField;
1043
319
  };
1044
320
  export declare const isNumberFieldType: (field: {
1045
321
  config: FieldConfig;
1046
- value: FieldValue;
322
+ value: FieldValue | FieldUpdateValue;
1047
323
  }) => field is {
1048
324
  value: number;
1049
325
  config: NumberField;
1050
326
  };
1051
- export declare const isNumberWithUnitFieldType: (field: {
1052
- config: FieldConfig;
1053
- value: FieldValue | FieldUpdateValue;
1054
- }) => field is {
1055
- value: NumberWithUnitFieldValue;
1056
- config: NumberWithUnitField;
1057
- };
1058
327
  export declare const isNameFieldType: (field: {
1059
328
  config: FieldConfig;
1060
- value: FieldValue;
329
+ value: FieldValue | FieldUpdateValue;
1061
330
  }) => field is {
1062
331
  value: NameFieldValue;
1063
332
  config: NameField;
1064
333
  };
1065
334
  export declare const isPhoneFieldType: (field: {
1066
335
  config: FieldConfig;
1067
- value: FieldValue;
336
+ value: FieldValue | FieldUpdateValue;
1068
337
  }) => field is {
1069
338
  value: string;
1070
339
  config: PhoneField;
1071
340
  };
1072
341
  export declare const isIdFieldType: (field: {
1073
342
  config: FieldConfig;
1074
- value: FieldValue;
343
+ value: FieldValue | FieldUpdateValue;
1075
344
  }) => field is {
1076
345
  value: string;
1077
346
  config: IdField;
1078
347
  };
1079
348
  export declare const isTextAreaFieldType: (field: {
1080
349
  config: FieldConfig;
1081
- value: FieldValue;
350
+ value: FieldValue | FieldUpdateValue;
1082
351
  }) => field is {
1083
352
  value: string;
1084
353
  config: TextAreaField;
1085
354
  };
1086
355
  export declare const isSignatureFieldType: (field: {
1087
356
  config: FieldConfig;
1088
- value: FieldValue | undefined;
357
+ value: FieldValue | FieldUpdateValue | undefined;
1089
358
  }) => field is {
1090
359
  value: FileFieldValue | undefined;
1091
360
  config: SignatureField;
1092
361
  };
1093
362
  export declare const isEmailFieldType: (field: {
1094
363
  config: FieldConfig;
1095
- value: FieldValue;
364
+ value: FieldValue | FieldUpdateValue;
1096
365
  }) => field is {
1097
366
  value: string;
1098
367
  config: EmailField;
1099
368
  };
1100
369
  export declare const isFileFieldType: (field: {
1101
370
  config: FieldConfig;
1102
- value: FieldValue;
371
+ value: FieldValue | FieldUpdateValue;
1103
372
  }) => field is {
1104
373
  value: FileFieldValue;
1105
374
  config: File;
1106
375
  };
1107
376
  export declare const isFileFieldWithOptionType: (field: {
1108
377
  config: FieldConfig;
1109
- value: FieldValue;
378
+ value: FieldValue | FieldUpdateValue;
1110
379
  }) => field is {
1111
380
  value: FileFieldWithOptionValue;
1112
381
  config: FileUploadWithOptions;
1113
382
  };
1114
383
  export declare const isBulletListFieldType: (field: {
1115
384
  config: FieldConfig;
1116
- value: FieldValue;
385
+ value: FieldValue | FieldUpdateValue;
1117
386
  }) => field is {
1118
387
  value: string;
1119
388
  config: BulletList;
1120
389
  };
1121
390
  export declare const isSelectFieldType: (field: {
1122
391
  config: FieldConfig;
1123
- value: FieldValue;
392
+ value: FieldValue | FieldUpdateValue;
1124
393
  }) => field is {
1125
394
  value: string;
1126
395
  config: SelectField;
1127
396
  };
1128
397
  export declare const isAddressFieldType: (field: {
1129
398
  config: FieldConfig;
1130
- value: FieldValue;
399
+ value: FieldValue | FieldUpdateValue;
1131
400
  }) => field is {
1132
401
  value: AddressFieldValue;
1133
402
  config: AddressField;
1134
403
  };
1135
404
  export declare const isCountryFieldType: (field: {
1136
405
  config: FieldConfig;
1137
- value: FieldValue;
406
+ value: FieldValue | FieldUpdateValue;
1138
407
  }) => field is {
1139
408
  value: string;
1140
409
  config: Country;
1141
410
  };
1142
411
  export declare const isCheckboxFieldType: (field: {
1143
412
  config: FieldConfig;
1144
- value: FieldValue;
413
+ value: FieldValue | FieldUpdateValue;
1145
414
  }) => field is {
1146
415
  value: boolean;
1147
416
  config: Checkbox;
1148
417
  };
1149
418
  export declare const isRadioGroupFieldType: (field: {
1150
419
  config: FieldConfig;
1151
- value: FieldValue;
420
+ value: FieldValue | FieldUpdateValue;
1152
421
  }) => field is {
1153
422
  value: string;
1154
423
  config: RadioGroup;
1155
424
  };
1156
425
  export declare const isLocationFieldType: (field: {
1157
426
  config: FieldConfig;
1158
- value: FieldValue;
427
+ value: FieldValue | FieldUpdateValue;
1159
428
  }) => field is {
1160
429
  value: string;
1161
430
  config: LocationInput;
1162
431
  };
1163
432
  export declare const isDividerFieldType: (field: {
1164
433
  config: FieldConfig;
1165
- value: FieldValue;
434
+ value: FieldValue | FieldUpdateValue;
1166
435
  }) => field is {
1167
436
  value: string;
1168
437
  config: Divider;
1169
438
  };
1170
439
  export declare const isAdministrativeAreaFieldType: (field: {
1171
440
  config: FieldConfig;
1172
- value: FieldValue;
441
+ value: FieldValue | FieldUpdateValue;
1173
442
  }) => field is {
1174
443
  value: string;
1175
444
  config: AdministrativeArea;
1176
445
  };
1177
446
  export declare const isFacilityFieldType: (field: {
1178
447
  config: FieldConfig;
1179
- value: FieldValue;
448
+ value: FieldValue | FieldUpdateValue;
1180
449
  }) => field is {
1181
450
  value: string;
1182
451
  config: Facility;
1183
452
  };
1184
453
  export declare const isOfficeFieldType: (field: {
1185
454
  config: FieldConfig;
1186
- value: FieldValue;
455
+ value: FieldValue | FieldUpdateValue;
1187
456
  }) => field is {
1188
457
  value: string;
1189
458
  config: Office;
1190
459
  };
1191
460
  export declare const isDataFieldType: (field: {
1192
461
  config: FieldConfig;
1193
- value: FieldValue;
462
+ value: FieldValue | FieldUpdateValue;
1194
463
  }) => field is {
1195
464
  value: DataFieldValue;
1196
465
  config: DataField;
1197
466
  };
1198
467
  export declare const isButtonFieldType: (field: {
1199
468
  config: FieldConfig;
1200
- value: FieldValue;
469
+ value: FieldValue | FieldUpdateValue;
1201
470
  }) => field is {
1202
471
  value: undefined;
1203
472
  config: ButtonField;
1204
473
  };
1205
474
  export declare const isPrintButtonFieldType: (field: {
1206
475
  config: FieldConfig;
1207
- value: FieldValue;
476
+ value: FieldValue | FieldUpdateValue;
1208
477
  }) => field is {
1209
478
  value: undefined;
1210
479
  config: AlphaPrintButton;
1211
480
  };
1212
481
  export declare const isHttpFieldType: (field: {
1213
482
  config: FieldConfig;
1214
- value: FieldValue;
483
+ value: FieldValue | FieldUpdateValue;
1215
484
  }) => field is {
1216
485
  value: undefined;
1217
486
  config: HttpField;
1218
487
  };
1219
488
  export declare const isSearchFieldType: (field: {
1220
489
  config: FieldConfig;
1221
- value: FieldValue;
490
+ value: FieldValue | FieldUpdateValue;
1222
491
  }) => field is {
1223
492
  value: undefined;
1224
493
  config: SearchField;
1225
494
  };
1226
495
  export declare const isLinkButtonFieldType: (field: {
1227
496
  config: FieldConfig;
1228
- value: FieldValue;
497
+ value: FieldValue | FieldUpdateValue;
1229
498
  }) => field is {
1230
499
  value: undefined;
1231
500
  config: LinkButtonField;
1232
501
  };
1233
502
  export declare const isVerificationStatusType: (field: {
1234
503
  config: FieldConfig;
1235
- value: FieldValue;
504
+ value: FieldValue | FieldUpdateValue;
1236
505
  }) => field is {
1237
506
  value: VerificationStatusValue | undefined;
1238
507
  config: VerificationStatus;
1239
508
  };
1240
509
  export declare const isQueryParamReaderFieldType: (field: {
1241
510
  config: FieldConfig;
1242
- value: FieldValue;
511
+ value: FieldValue | FieldUpdateValue;
1243
512
  }) => field is {
1244
513
  value: undefined;
1245
514
  config: QueryParamReaderField;
1246
515
  };
1247
516
  export declare const isQrReaderFieldType: (field: {
1248
517
  config: FieldConfig;
1249
- value: FieldValue;
518
+ value: FieldValue | FieldUpdateValue;
1250
519
  }) => field is {
1251
520
  value: undefined;
1252
521
  config: QrReaderField;
1253
522
  };
1254
523
  export declare const isIdReaderFieldType: (field: {
1255
524
  config: FieldConfig;
1256
- value: FieldValue;
525
+ value: FieldValue | FieldUpdateValue;
1257
526
  }) => field is {
1258
527
  value: undefined;
1259
528
  config: IdReaderField;
1260
529
  };
1261
530
  export declare const isLoaderFieldType: (field: {
1262
531
  config: FieldConfig;
1263
- value: FieldValue;
532
+ value: FieldValue | FieldUpdateValue;
1264
533
  }) => field is {
1265
534
  value: undefined;
1266
535
  config: LoaderField;
1267
536
  };
537
+ export declare const isHiddenFieldType: (field: {
538
+ config: FieldConfig;
539
+ value: FieldValue | FieldUpdateValue;
540
+ }) => field is {
541
+ value: undefined;
542
+ config: HiddenField;
543
+ };
1268
544
  export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
1269
545
  export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
1270
546
  export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;