@nira-opencrvs/toolkit 1.9.11-rc.1f36427

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 (77) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +4125 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +824 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +101 -0
  10. package/dist/commons/events/ActionConfig.d.ts +1609 -0
  11. package/dist/commons/events/ActionDocument.d.ts +2180 -0
  12. package/dist/commons/events/ActionInput.d.ts +1229 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1538 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +280 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4784 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +233 -0
  21. package/dist/commons/events/Draft.d.ts +118 -0
  22. package/dist/commons/events/DynamicFieldValue.d.ts +139 -0
  23. package/dist/commons/events/EventConfig.d.ts +2255 -0
  24. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  25. package/dist/commons/events/EventDocument.d.ts +1457 -0
  26. package/dist/commons/events/EventIndex.d.ts +1134 -0
  27. package/dist/commons/events/EventInput.d.ts +13 -0
  28. package/dist/commons/events/EventMetadata.d.ts +413 -0
  29. package/dist/commons/events/FieldConfig.d.ts +12935 -0
  30. package/dist/commons/events/FieldType.d.ts +55 -0
  31. package/dist/commons/events/FieldTypeMapping.d.ts +1289 -0
  32. package/dist/commons/events/FieldValue.d.ts +512 -0
  33. package/dist/commons/events/FileUtils.d.ts +4 -0
  34. package/dist/commons/events/FormConfig.d.ts +755 -0
  35. package/dist/commons/events/PageConfig.d.ts +342 -0
  36. package/dist/commons/events/PlainDate.d.ts +19 -0
  37. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  38. package/dist/commons/events/TemplateConfig.d.ts +66 -0
  39. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  40. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  41. package/dist/commons/events/WorkqueueConfig.d.ts +7957 -0
  42. package/dist/commons/events/deduplication.d.ts +69 -0
  43. package/dist/commons/events/defineConfig.d.ts +234 -0
  44. package/dist/commons/events/event.d.ts +80 -0
  45. package/dist/commons/events/field.d.ts +514 -0
  46. package/dist/commons/events/index.d.ts +45 -0
  47. package/dist/commons/events/locations.d.ts +24 -0
  48. package/dist/commons/events/scopes.d.ts +55 -0
  49. package/dist/commons/events/serializer.d.ts +2 -0
  50. package/dist/commons/events/state/availableActions.d.ts +6 -0
  51. package/dist/commons/events/state/flags.d.ts +4 -0
  52. package/dist/commons/events/state/index.d.ts +119 -0
  53. package/dist/commons/events/state/utils.d.ts +311 -0
  54. package/dist/commons/events/test.utils.d.ts +248 -0
  55. package/dist/commons/events/transactions.d.ts +2 -0
  56. package/dist/commons/events/utils.d.ts +486 -0
  57. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  58. package/dist/commons/notification/UserNotifications.d.ts +762 -0
  59. package/dist/commons/notification/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts +2 -0
  61. package/dist/conditionals/index.d.ts.map +1 -0
  62. package/dist/conditionals/index.js +689 -0
  63. package/dist/events/deduplication.d.ts +69 -0
  64. package/dist/events/deduplication.d.ts.map +1 -0
  65. package/dist/events/deduplication.js +101 -0
  66. package/dist/events/index.d.ts +2 -0
  67. package/dist/events/index.d.ts.map +1 -0
  68. package/dist/events/index.js +9327 -0
  69. package/dist/notification/index.d.ts +2 -0
  70. package/dist/notification/index.d.ts.map +1 -0
  71. package/dist/notification/index.js +6674 -0
  72. package/dist/scopes/index.d.ts +385 -0
  73. package/dist/scopes/index.d.ts.map +1 -0
  74. package/dist/scopes/index.js +349 -0
  75. package/package.json +40 -0
  76. package/tsconfig.json +27 -0
  77. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,1289 @@
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';
3
+ import { FieldValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, VerificationStatusValue, AgeValue, FieldUpdateValue } from './FieldValue';
4
+ import { FullDocumentPath } from '../documents';
5
+ import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NumberWithUnitFieldValue } from './CompositeFieldValue';
6
+ import { ActionType } from './ActionType';
7
+ /**
8
+ * Mapping of field types to Zod schema.
9
+ * Useful for building dynamic validations against FieldConfig
10
+ */
11
+ /**
12
+ * Mapping of field types to Zod schema.
13
+ * Useful for building dynamic validations against FieldConfig
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>;
17
+ originalFilename: z.ZodString;
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<{
40
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ 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<{
64
+ country: z.ZodString;
65
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
66
+ }, {
67
+ addressType: z.ZodLiteral<"DOMESTIC">;
68
+ 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<{
80
+ country: z.ZodString;
81
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
82
+ }, {
83
+ 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<{
111
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
113
+ }, {
114
+ addressType: z.ZodLiteral<"DOMESTIC">;
115
+ 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<{
127
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
129
+ }, {
130
+ 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>;
159
+ originalFilename: z.ZodString;
160
+ type: z.ZodString;
161
+ 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<{
188
+ loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
189
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
190
+ statusCode: z.ZodNumber;
191
+ message: z.ZodString;
192
+ }, "strip", z.ZodTypeAny, {
193
+ message: string;
194
+ statusCode: number;
195
+ }, {
196
+ message: string;
197
+ statusCode: number;
198
+ }>>>;
199
+ 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<{
215
+ data: z.ZodRecord<z.ZodString, z.ZodString>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ data: Record<string, string>;
218
+ }, {
219
+ data: Record<string, string>;
220
+ }> | z.ZodObject<{
221
+ data: z.ZodAny;
222
+ }, "strip", z.ZodTypeAny, {
223
+ data?: any;
224
+ }, {
225
+ data?: any;
226
+ }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
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<{
251
+ numericValue: z.ZodNumber;
252
+ 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<{
260
+ numericValue: z.ZodOptional<z.ZodNumber>;
261
+ 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.ZodBranded<z.ZodString, "PlainDate"> | z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "PlainDate">>> | 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<{
278
+ age: z.ZodNumber;
279
+ 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.ZodBranded<z.ZodString, "PlainDate">;
288
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
289
+ }, "strip", z.ZodTypeAny, {
290
+ start: string & z.BRAND<"PlainDate">;
291
+ end: string & z.BRAND<"PlainDate">;
292
+ }, {
293
+ start: string;
294
+ end: string;
295
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
296
+ start: z.ZodBranded<z.ZodString, "PlainDate">;
297
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
298
+ }, "strip", z.ZodTypeAny, {
299
+ start: string & z.BRAND<"PlainDate">;
300
+ end: string & z.BRAND<"PlainDate">;
301
+ }, {
302
+ start: string;
303
+ end: string;
304
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]>>> | 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<{
306
+ country: z.ZodString;
307
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
308
+ }, {
309
+ addressType: z.ZodLiteral<"DOMESTIC">;
310
+ 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<{
322
+ country: z.ZodString;
323
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
324
+ }, {
325
+ 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.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
335
+ age: z.ZodNumber;
336
+ 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.ZodBranded<z.ZodString, "PlainDate">;
345
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
346
+ }, "strip", z.ZodTypeAny, {
347
+ start: string & z.BRAND<"PlainDate">;
348
+ end: string & z.BRAND<"PlainDate">;
349
+ }, {
350
+ start: string;
351
+ end: string;
352
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
353
+ path: z.ZodEffects<z.ZodString, string, string>;
354
+ originalFilename: z.ZodString;
355
+ 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>;
366
+ originalFilename: z.ZodString;
367
+ type: z.ZodString;
368
+ 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<{
380
+ firstname: z.ZodString;
381
+ surname: z.ZodString;
382
+ 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<{
392
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ 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<{
404
+ loading: z.ZodBoolean;
405
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
406
+ statusCode: z.ZodNumber;
407
+ message: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ message: string;
410
+ statusCode: number;
411
+ }, {
412
+ message: string;
413
+ statusCode: number;
414
+ }>>>;
415
+ 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<{
431
+ 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<{
437
+ data: z.ZodAny;
438
+ }, "strip", z.ZodTypeAny, {
439
+ data?: any;
440
+ }, {
441
+ data?: any;
442
+ }>, z.ZodObject<{
443
+ data: z.ZodAny;
444
+ }, "strip", z.ZodTypeAny, {
445
+ data?: any;
446
+ }, {
447
+ data?: any;
448
+ }>, z.ZodObject<{
449
+ numericValue: z.ZodNumber;
450
+ unit: z.ZodString;
451
+ }, "strip", z.ZodTypeAny, {
452
+ numericValue: number;
453
+ unit: string;
454
+ }, {
455
+ numericValue: number;
456
+ unit: string;
457
+ }>, z.ZodObject<{
458
+ numericValue: z.ZodOptional<z.ZodNumber>;
459
+ 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
+ } | (string & z.BRAND<"PlainDate">) | {
512
+ age: number;
513
+ asOfDateRef: string;
514
+ } | {
515
+ start: string & z.BRAND<"PlainDate">;
516
+ end: string & z.BRAND<"PlainDate">;
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<{
571
+ country: z.ZodString;
572
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
573
+ }, {
574
+ addressType: z.ZodLiteral<"DOMESTIC">;
575
+ 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<{
587
+ country: z.ZodString;
588
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
589
+ }, {
590
+ 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.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
600
+ age: z.ZodNumber;
601
+ 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.ZodBranded<z.ZodString, "PlainDate">;
610
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
611
+ }, "strip", z.ZodTypeAny, {
612
+ start: string & z.BRAND<"PlainDate">;
613
+ end: string & z.BRAND<"PlainDate">;
614
+ }, {
615
+ start: string;
616
+ end: string;
617
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
618
+ path: z.ZodEffects<z.ZodString, string, string>;
619
+ originalFilename: z.ZodString;
620
+ 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>;
631
+ originalFilename: z.ZodString;
632
+ type: z.ZodString;
633
+ 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<{
645
+ firstname: z.ZodString;
646
+ surname: z.ZodString;
647
+ 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<{
657
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
+ 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<{
669
+ loading: z.ZodBoolean;
670
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
671
+ statusCode: z.ZodNumber;
672
+ message: z.ZodString;
673
+ }, "strip", z.ZodTypeAny, {
674
+ message: string;
675
+ statusCode: number;
676
+ }, {
677
+ message: string;
678
+ statusCode: number;
679
+ }>>>;
680
+ 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<{
696
+ 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<{
702
+ data: z.ZodAny;
703
+ }, "strip", z.ZodTypeAny, {
704
+ data?: any;
705
+ }, {
706
+ data?: any;
707
+ }>, z.ZodObject<{
708
+ data: z.ZodAny;
709
+ }, "strip", z.ZodTypeAny, {
710
+ data?: any;
711
+ }, {
712
+ data?: any;
713
+ }>, z.ZodObject<{
714
+ numericValue: z.ZodNumber;
715
+ unit: z.ZodString;
716
+ }, "strip", z.ZodTypeAny, {
717
+ numericValue: number;
718
+ unit: string;
719
+ }, {
720
+ numericValue: number;
721
+ unit: string;
722
+ }>, z.ZodObject<{
723
+ numericValue: z.ZodOptional<z.ZodNumber>;
724
+ 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
+ } | (string & z.BRAND<"PlainDate">) | {
777
+ age: number;
778
+ asOfDateRef: string;
779
+ } | {
780
+ start: string & z.BRAND<"PlainDate">;
781
+ end: string & z.BRAND<"PlainDate">;
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<{
835
+ loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
836
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
837
+ statusCode: z.ZodNumber;
838
+ message: z.ZodString;
839
+ }, "strip", z.ZodTypeAny, {
840
+ message: string;
841
+ statusCode: number;
842
+ }, {
843
+ message: string;
844
+ statusCode: number;
845
+ }>>>;
846
+ 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<{
862
+ 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<{
868
+ firstname: z.ZodString;
869
+ surname: z.ZodString;
870
+ 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<{
927
+ country: z.ZodString;
928
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
929
+ }, {
930
+ addressType: z.ZodLiteral<"DOMESTIC">;
931
+ 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<{
943
+ country: z.ZodString;
944
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
945
+ }, {
946
+ 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<{
974
+ firstname: z.ZodString;
975
+ surname: z.ZodString;
976
+ 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
+ }>>>;
986
+ /**
987
+ * Maps complex or nested field types, such as Address fields, to their corresponding empty values.
988
+ */
989
+ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] | {
990
+ country: string;
991
+ addressType: "DOMESTIC";
992
+ administrativeArea: string;
993
+ streetLevelDetails: {};
994
+ path?: undefined;
995
+ originalFilename?: undefined;
996
+ type?: undefined;
997
+ } | {
998
+ path: FullDocumentPath;
999
+ originalFilename: string;
1000
+ type: string;
1001
+ country?: undefined;
1002
+ addressType?: undefined;
1003
+ administrativeArea?: undefined;
1004
+ streetLevelDetails?: undefined;
1005
+ } | null;
1006
+ export declare const isParagraphFieldType: (field: {
1007
+ config: FieldConfig;
1008
+ value: FieldValue;
1009
+ }) => field is {
1010
+ value: string;
1011
+ config: Paragraph;
1012
+ };
1013
+ export declare const isDateFieldType: (field: {
1014
+ config: FieldConfig;
1015
+ value: FieldValue;
1016
+ }) => field is {
1017
+ value: string;
1018
+ config: DateField;
1019
+ };
1020
+ export declare const isAgeFieldType: (field: {
1021
+ config: FieldConfig;
1022
+ value: FieldValue;
1023
+ }) => field is {
1024
+ value: AgeValue | undefined;
1025
+ config: AgeField;
1026
+ };
1027
+ export declare const isTimeFieldType: (field: {
1028
+ config: FieldConfig;
1029
+ value: FieldValue;
1030
+ }) => field is {
1031
+ value: string;
1032
+ config: TimeField;
1033
+ };
1034
+ export declare const isDateRangeFieldType: (field: {
1035
+ config: FieldConfig;
1036
+ value: FieldValue;
1037
+ }) => field is {
1038
+ value: DateRangeFieldValue;
1039
+ config: DateRangeField;
1040
+ };
1041
+ export declare const isSelectDateRangeFieldType: (field: {
1042
+ config: FieldConfig;
1043
+ value: FieldValue;
1044
+ }) => field is {
1045
+ value: SelectDateRangeValue;
1046
+ config: SelectDateRangeField;
1047
+ };
1048
+ export declare const isPageHeaderFieldType: (field: {
1049
+ config: FieldConfig;
1050
+ value: FieldValue;
1051
+ }) => field is {
1052
+ value: string;
1053
+ config: PageHeader;
1054
+ };
1055
+ export declare const isTextFieldType: (field: {
1056
+ config: FieldConfig;
1057
+ value: FieldValue;
1058
+ }) => field is {
1059
+ value: string;
1060
+ config: TextField;
1061
+ };
1062
+ export declare const isNumberFieldType: (field: {
1063
+ config: FieldConfig;
1064
+ value: FieldValue;
1065
+ }) => field is {
1066
+ value: number;
1067
+ config: NumberField;
1068
+ };
1069
+ export declare const isNumberWithUnitFieldType: (field: {
1070
+ config: FieldConfig;
1071
+ value: FieldValue | FieldUpdateValue;
1072
+ }) => field is {
1073
+ value: NumberWithUnitFieldValue;
1074
+ config: NumberWithUnitField;
1075
+ };
1076
+ export declare const isNameFieldType: (field: {
1077
+ config: FieldConfig;
1078
+ value: FieldValue;
1079
+ }) => field is {
1080
+ value: NameFieldValue;
1081
+ config: NameField;
1082
+ };
1083
+ export declare const isPhoneFieldType: (field: {
1084
+ config: FieldConfig;
1085
+ value: FieldValue;
1086
+ }) => field is {
1087
+ value: string;
1088
+ config: PhoneField;
1089
+ };
1090
+ export declare const isIdFieldType: (field: {
1091
+ config: FieldConfig;
1092
+ value: FieldValue;
1093
+ }) => field is {
1094
+ value: string;
1095
+ config: IdField;
1096
+ };
1097
+ export declare const isTextAreaFieldType: (field: {
1098
+ config: FieldConfig;
1099
+ value: FieldValue;
1100
+ }) => field is {
1101
+ value: string;
1102
+ config: TextAreaField;
1103
+ };
1104
+ export declare const isSignatureFieldType: (field: {
1105
+ config: FieldConfig;
1106
+ value: FieldValue | undefined;
1107
+ }) => field is {
1108
+ value: FileFieldValue | undefined;
1109
+ config: SignatureField;
1110
+ };
1111
+ export declare const isEmailFieldType: (field: {
1112
+ config: FieldConfig;
1113
+ value: FieldValue;
1114
+ }) => field is {
1115
+ value: string;
1116
+ config: EmailField;
1117
+ };
1118
+ export declare const isFileFieldType: (field: {
1119
+ config: FieldConfig;
1120
+ value: FieldValue;
1121
+ }) => field is {
1122
+ value: FileFieldValue;
1123
+ config: File;
1124
+ };
1125
+ export declare const isFileFieldWithOptionType: (field: {
1126
+ config: FieldConfig;
1127
+ value: FieldValue;
1128
+ }) => field is {
1129
+ value: FileFieldWithOptionValue;
1130
+ config: FileUploadWithOptions;
1131
+ };
1132
+ export declare const isBulletListFieldType: (field: {
1133
+ config: FieldConfig;
1134
+ value: FieldValue;
1135
+ }) => field is {
1136
+ value: string;
1137
+ config: BulletList;
1138
+ };
1139
+ export declare const isSelectFieldType: (field: {
1140
+ config: FieldConfig;
1141
+ value: FieldValue;
1142
+ }) => field is {
1143
+ value: string;
1144
+ config: SelectField;
1145
+ };
1146
+ export declare const isAddressFieldType: (field: {
1147
+ config: FieldConfig;
1148
+ value: FieldValue;
1149
+ }) => field is {
1150
+ value: AddressFieldValue;
1151
+ config: AddressField;
1152
+ };
1153
+ export declare const isCountryFieldType: (field: {
1154
+ config: FieldConfig;
1155
+ value: FieldValue;
1156
+ }) => field is {
1157
+ value: string;
1158
+ config: Country;
1159
+ };
1160
+ export declare const isCheckboxFieldType: (field: {
1161
+ config: FieldConfig;
1162
+ value: FieldValue;
1163
+ }) => field is {
1164
+ value: boolean;
1165
+ config: Checkbox;
1166
+ };
1167
+ export declare const isRadioGroupFieldType: (field: {
1168
+ config: FieldConfig;
1169
+ value: FieldValue;
1170
+ }) => field is {
1171
+ value: string;
1172
+ config: RadioGroup;
1173
+ };
1174
+ export declare const isLocationFieldType: (field: {
1175
+ config: FieldConfig;
1176
+ value: FieldValue;
1177
+ }) => field is {
1178
+ value: string;
1179
+ config: LocationInput;
1180
+ };
1181
+ export declare const isDividerFieldType: (field: {
1182
+ config: FieldConfig;
1183
+ value: FieldValue;
1184
+ }) => field is {
1185
+ value: string;
1186
+ config: Divider;
1187
+ };
1188
+ export declare const isAdministrativeAreaFieldType: (field: {
1189
+ config: FieldConfig;
1190
+ value: FieldValue;
1191
+ }) => field is {
1192
+ value: string;
1193
+ config: AdministrativeArea;
1194
+ };
1195
+ export declare const isFacilityFieldType: (field: {
1196
+ config: FieldConfig;
1197
+ value: FieldValue;
1198
+ }) => field is {
1199
+ value: string;
1200
+ config: Facility;
1201
+ };
1202
+ export declare const isOfficeFieldType: (field: {
1203
+ config: FieldConfig;
1204
+ value: FieldValue;
1205
+ }) => field is {
1206
+ value: string;
1207
+ config: Office;
1208
+ };
1209
+ export declare const isDataFieldType: (field: {
1210
+ config: FieldConfig;
1211
+ value: FieldValue;
1212
+ }) => field is {
1213
+ value: DataFieldValue;
1214
+ config: DataField;
1215
+ };
1216
+ export declare const isButtonFieldType: (field: {
1217
+ config: FieldConfig;
1218
+ value: FieldValue;
1219
+ }) => field is {
1220
+ value: undefined;
1221
+ config: ButtonField;
1222
+ };
1223
+ export declare const isPrintButtonFieldType: (field: {
1224
+ config: FieldConfig;
1225
+ value: FieldValue;
1226
+ }) => field is {
1227
+ value: undefined;
1228
+ config: AlphaPrintButton;
1229
+ };
1230
+ export declare const isHttpFieldType: (field: {
1231
+ config: FieldConfig;
1232
+ value: FieldValue;
1233
+ }) => field is {
1234
+ value: undefined;
1235
+ config: HttpField;
1236
+ };
1237
+ export declare const isSearchFieldType: (field: {
1238
+ config: FieldConfig;
1239
+ value: FieldValue;
1240
+ }) => field is {
1241
+ value: undefined;
1242
+ config: SearchField;
1243
+ };
1244
+ export declare const isLinkButtonFieldType: (field: {
1245
+ config: FieldConfig;
1246
+ value: FieldValue;
1247
+ }) => field is {
1248
+ value: undefined;
1249
+ config: LinkButtonField;
1250
+ };
1251
+ export declare const isVerificationStatusType: (field: {
1252
+ config: FieldConfig;
1253
+ value: FieldValue;
1254
+ }) => field is {
1255
+ value: VerificationStatusValue | undefined;
1256
+ config: VerificationStatus;
1257
+ };
1258
+ export declare const isQueryParamReaderFieldType: (field: {
1259
+ config: FieldConfig;
1260
+ value: FieldValue;
1261
+ }) => field is {
1262
+ value: undefined;
1263
+ config: QueryParamReaderField;
1264
+ };
1265
+ export declare const isQrReaderFieldType: (field: {
1266
+ config: FieldConfig;
1267
+ value: FieldValue;
1268
+ }) => field is {
1269
+ value: undefined;
1270
+ config: QrReaderField;
1271
+ };
1272
+ export declare const isIdReaderFieldType: (field: {
1273
+ config: FieldConfig;
1274
+ value: FieldValue;
1275
+ }) => field is {
1276
+ value: undefined;
1277
+ config: IdReaderField;
1278
+ };
1279
+ export declare const isLoaderFieldType: (field: {
1280
+ config: FieldConfig;
1281
+ value: FieldValue;
1282
+ }) => field is {
1283
+ value: undefined;
1284
+ config: LoaderField;
1285
+ };
1286
+ export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
1287
+ export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
1288
+ export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
1289
+ //# sourceMappingURL=FieldTypeMapping.d.ts.map