@opencrvs/toolkit 1.9.6 → 1.9.7-rc.03e4d07

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