@nira-opencrvs/toolkit 1.9.11-rc.39d8d68

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,512 @@
1
+ import { z } from 'zod';
2
+ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, NumberWithUnitFieldValue, NumberWithUnitFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue } from './CompositeFieldValue';
3
+ import { PlainDate, plainDateToLocalDate } from './PlainDate';
4
+ export { PlainDate, plainDateToLocalDate };
5
+ /**
6
+ * FieldValues defined in this file are primitive field values.
7
+ * FieldValues defined in CompositeFieldValue.ts are composed of multiple primitive field values (Address, File etc).
8
+ *
9
+ * FieldValue is a union of primitive and composite field values.
10
+ * FieldValue can never be null.
11
+ *
12
+ * FieldUpdateValue accepts null values for primitive field values when they are optional.
13
+ * API is build assuming partial (PATCH) updates. In order to edit and remove optional value, we need to accept null values.
14
+ * Omitting a field value in partial updates leaves it untouched.
15
+ *
16
+ */
17
+ export declare const TextValue: z.ZodString;
18
+ export declare const NonEmptyTextValue: z.ZodString;
19
+ export declare const AgeValue: z.ZodObject<{
20
+ age: z.ZodNumber;
21
+ asOfDateRef: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ age: number;
24
+ asOfDateRef: string;
25
+ }, {
26
+ age: number;
27
+ asOfDateRef: string;
28
+ }>;
29
+ export type AgeValue = z.infer<typeof AgeValue>;
30
+ export declare const AgeUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
31
+ age: z.ZodNumber;
32
+ asOfDateRef: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ age: number;
35
+ asOfDateRef: string;
36
+ }, {
37
+ age: number;
38
+ asOfDateRef: string;
39
+ }>>>;
40
+ export declare const TimeValue: z.ZodString;
41
+ export type TimeValue = z.infer<typeof TimeValue>;
42
+ export declare const DatetimeValue: z.ZodString;
43
+ export declare const SelectDateRangeValue: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
44
+ export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
45
+ start: z.ZodBranded<z.ZodString, "PlainDate">;
46
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
47
+ }, "strip", z.ZodTypeAny, {
48
+ start: string & z.BRAND<"PlainDate">;
49
+ end: string & z.BRAND<"PlainDate">;
50
+ }, {
51
+ start: string;
52
+ end: string;
53
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]>;
54
+ export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
55
+ export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
56
+ export declare const EmailValue: z.ZodString;
57
+ export declare const CheckboxFieldValue: z.ZodBoolean;
58
+ export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
59
+ export declare const NumberFieldValue: z.ZodNumber;
60
+ export type NumberFieldValue = z.infer<typeof NumberFieldValue>;
61
+ export declare const SignatureFieldValue: z.ZodString;
62
+ export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
63
+ export declare const ButtonFieldValue: z.ZodNumber;
64
+ export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
65
+ export declare const VerificationStatusValue: z.ZodEnum<["verified", "authenticated", "failed", "pending"]>;
66
+ export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
67
+ declare const FieldValuesWithoutDataField: z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
68
+ country: z.ZodString;
69
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ }, {
71
+ addressType: z.ZodLiteral<"DOMESTIC">;
72
+ administrativeArea: z.ZodString;
73
+ }>, "strip", z.ZodTypeAny, {
74
+ country: string;
75
+ addressType: "DOMESTIC";
76
+ administrativeArea: string;
77
+ streetLevelDetails?: Record<string, string> | undefined;
78
+ }, {
79
+ country: string;
80
+ addressType: "DOMESTIC";
81
+ administrativeArea: string;
82
+ streetLevelDetails?: Record<string, string> | undefined;
83
+ }>, z.ZodObject<z.objectUtil.extendShape<{
84
+ country: z.ZodString;
85
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ }, {
87
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
88
+ }>, "strip", z.ZodTypeAny, {
89
+ country: string;
90
+ addressType: "INTERNATIONAL";
91
+ streetLevelDetails?: Record<string, string> | undefined;
92
+ }, {
93
+ country: string;
94
+ addressType: "INTERNATIONAL";
95
+ streetLevelDetails?: Record<string, string> | undefined;
96
+ }>]>, z.ZodString, z.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
97
+ age: z.ZodNumber;
98
+ asOfDateRef: z.ZodString;
99
+ }, "strip", z.ZodTypeAny, {
100
+ age: number;
101
+ asOfDateRef: string;
102
+ }, {
103
+ age: number;
104
+ asOfDateRef: string;
105
+ }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
106
+ start: z.ZodBranded<z.ZodString, "PlainDate">;
107
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
108
+ }, "strip", z.ZodTypeAny, {
109
+ start: string & z.BRAND<"PlainDate">;
110
+ end: string & z.BRAND<"PlainDate">;
111
+ }, {
112
+ start: string;
113
+ end: string;
114
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
115
+ path: z.ZodEffects<z.ZodString, string, string>;
116
+ originalFilename: z.ZodString;
117
+ type: z.ZodString;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: string;
120
+ path: string;
121
+ originalFilename: string;
122
+ }, {
123
+ type: string;
124
+ path: string;
125
+ originalFilename: string;
126
+ }>, z.ZodArray<z.ZodObject<{
127
+ path: z.ZodEffects<z.ZodString, string, string>;
128
+ originalFilename: z.ZodString;
129
+ type: z.ZodString;
130
+ option: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: string;
133
+ option: string;
134
+ path: string;
135
+ originalFilename: string;
136
+ }, {
137
+ type: string;
138
+ option: string;
139
+ path: string;
140
+ originalFilename: string;
141
+ }>, "many">, z.ZodObject<{
142
+ firstname: z.ZodString;
143
+ surname: z.ZodString;
144
+ middlename: z.ZodOptional<z.ZodString>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ firstname: string;
147
+ surname: string;
148
+ middlename?: string | undefined;
149
+ }, {
150
+ firstname: string;
151
+ surname: string;
152
+ middlename?: string | undefined;
153
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
154
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ firstname?: string | null | undefined;
159
+ surname?: string | null | undefined;
160
+ middlename?: string | null | undefined;
161
+ }, {
162
+ firstname?: string | null | undefined;
163
+ surname?: string | null | undefined;
164
+ middlename?: string | null | undefined;
165
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
166
+ loading: z.ZodBoolean;
167
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
168
+ statusCode: z.ZodNumber;
169
+ message: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ message: string;
172
+ statusCode: number;
173
+ }, {
174
+ message: string;
175
+ statusCode: number;
176
+ }>>>;
177
+ data: z.ZodAny;
178
+ }, "strip", z.ZodTypeAny, {
179
+ loading: boolean;
180
+ data?: any;
181
+ error?: {
182
+ message: string;
183
+ statusCode: number;
184
+ } | null | undefined;
185
+ }, {
186
+ loading: boolean;
187
+ data?: any;
188
+ error?: {
189
+ message: string;
190
+ statusCode: number;
191
+ } | null | undefined;
192
+ }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
193
+ data: z.ZodRecord<z.ZodString, z.ZodString>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ data: Record<string, string>;
196
+ }, {
197
+ data: Record<string, string>;
198
+ }>>>, z.ZodObject<{
199
+ data: z.ZodAny;
200
+ }, "strip", z.ZodTypeAny, {
201
+ data?: any;
202
+ }, {
203
+ data?: any;
204
+ }>, z.ZodObject<{
205
+ data: z.ZodAny;
206
+ }, "strip", z.ZodTypeAny, {
207
+ data?: any;
208
+ }, {
209
+ data?: any;
210
+ }>, z.ZodObject<{
211
+ numericValue: z.ZodNumber;
212
+ unit: z.ZodString;
213
+ }, "strip", z.ZodTypeAny, {
214
+ numericValue: number;
215
+ unit: string;
216
+ }, {
217
+ numericValue: number;
218
+ unit: string;
219
+ }>, z.ZodObject<{
220
+ numericValue: z.ZodOptional<z.ZodNumber>;
221
+ unit: z.ZodOptional<z.ZodString>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ numericValue?: number | undefined;
224
+ unit?: string | undefined;
225
+ }, {
226
+ numericValue?: number | undefined;
227
+ unit?: string | undefined;
228
+ }>]>;
229
+ type FieldValuesWithoutDataField = z.infer<typeof FieldValuesWithoutDataField>;
230
+ export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
231
+ data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
232
+ country: z.ZodString;
233
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
234
+ }, {
235
+ addressType: z.ZodLiteral<"DOMESTIC">;
236
+ administrativeArea: z.ZodString;
237
+ }>, "strip", z.ZodTypeAny, {
238
+ country: string;
239
+ addressType: "DOMESTIC";
240
+ administrativeArea: string;
241
+ streetLevelDetails?: Record<string, string> | undefined;
242
+ }, {
243
+ country: string;
244
+ addressType: "DOMESTIC";
245
+ administrativeArea: string;
246
+ streetLevelDetails?: Record<string, string> | undefined;
247
+ }>, z.ZodObject<z.objectUtil.extendShape<{
248
+ country: z.ZodString;
249
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
250
+ }, {
251
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
252
+ }>, "strip", z.ZodTypeAny, {
253
+ country: string;
254
+ addressType: "INTERNATIONAL";
255
+ streetLevelDetails?: Record<string, string> | undefined;
256
+ }, {
257
+ country: string;
258
+ addressType: "INTERNATIONAL";
259
+ streetLevelDetails?: Record<string, string> | undefined;
260
+ }>]>, z.ZodString, z.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
261
+ age: z.ZodNumber;
262
+ asOfDateRef: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ age: number;
265
+ asOfDateRef: string;
266
+ }, {
267
+ age: number;
268
+ asOfDateRef: string;
269
+ }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
270
+ start: z.ZodBranded<z.ZodString, "PlainDate">;
271
+ end: z.ZodBranded<z.ZodString, "PlainDate">;
272
+ }, "strip", z.ZodTypeAny, {
273
+ start: string & z.BRAND<"PlainDate">;
274
+ end: string & z.BRAND<"PlainDate">;
275
+ }, {
276
+ start: string;
277
+ end: string;
278
+ }>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
279
+ path: z.ZodEffects<z.ZodString, string, string>;
280
+ originalFilename: z.ZodString;
281
+ type: z.ZodString;
282
+ }, "strip", z.ZodTypeAny, {
283
+ type: string;
284
+ path: string;
285
+ originalFilename: string;
286
+ }, {
287
+ type: string;
288
+ path: string;
289
+ originalFilename: string;
290
+ }>, z.ZodArray<z.ZodObject<{
291
+ path: z.ZodEffects<z.ZodString, string, string>;
292
+ originalFilename: z.ZodString;
293
+ type: z.ZodString;
294
+ option: z.ZodString;
295
+ }, "strip", z.ZodTypeAny, {
296
+ type: string;
297
+ option: string;
298
+ path: string;
299
+ originalFilename: string;
300
+ }, {
301
+ type: string;
302
+ option: string;
303
+ path: string;
304
+ originalFilename: string;
305
+ }>, "many">, z.ZodObject<{
306
+ firstname: z.ZodString;
307
+ surname: z.ZodString;
308
+ middlename: z.ZodOptional<z.ZodString>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ firstname: string;
311
+ surname: string;
312
+ middlename?: string | undefined;
313
+ }, {
314
+ firstname: string;
315
+ surname: string;
316
+ middlename?: string | undefined;
317
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
318
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ firstname?: string | null | undefined;
323
+ surname?: string | null | undefined;
324
+ middlename?: string | null | undefined;
325
+ }, {
326
+ firstname?: string | null | undefined;
327
+ surname?: string | null | undefined;
328
+ middlename?: string | null | undefined;
329
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
330
+ loading: z.ZodBoolean;
331
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ statusCode: z.ZodNumber;
333
+ message: z.ZodString;
334
+ }, "strip", z.ZodTypeAny, {
335
+ message: string;
336
+ statusCode: number;
337
+ }, {
338
+ message: string;
339
+ statusCode: number;
340
+ }>>>;
341
+ data: z.ZodAny;
342
+ }, "strip", z.ZodTypeAny, {
343
+ loading: boolean;
344
+ data?: any;
345
+ error?: {
346
+ message: string;
347
+ statusCode: number;
348
+ } | null | undefined;
349
+ }, {
350
+ loading: boolean;
351
+ data?: any;
352
+ error?: {
353
+ message: string;
354
+ statusCode: number;
355
+ } | null | undefined;
356
+ }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
357
+ data: z.ZodRecord<z.ZodString, z.ZodString>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ data: Record<string, string>;
360
+ }, {
361
+ data: Record<string, string>;
362
+ }>>>, z.ZodObject<{
363
+ data: z.ZodAny;
364
+ }, "strip", z.ZodTypeAny, {
365
+ data?: any;
366
+ }, {
367
+ data?: any;
368
+ }>, z.ZodObject<{
369
+ data: z.ZodAny;
370
+ }, "strip", z.ZodTypeAny, {
371
+ data?: any;
372
+ }, {
373
+ data?: any;
374
+ }>, z.ZodObject<{
375
+ numericValue: z.ZodNumber;
376
+ unit: z.ZodString;
377
+ }, "strip", z.ZodTypeAny, {
378
+ numericValue: number;
379
+ unit: string;
380
+ }, {
381
+ numericValue: number;
382
+ unit: string;
383
+ }>, z.ZodObject<{
384
+ numericValue: z.ZodOptional<z.ZodNumber>;
385
+ unit: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ numericValue?: number | undefined;
388
+ unit?: string | undefined;
389
+ }, {
390
+ numericValue?: number | undefined;
391
+ unit?: string | undefined;
392
+ }>]>>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ data: Record<string, string | number | boolean | {
395
+ type: string;
396
+ path: string;
397
+ originalFilename: string;
398
+ } | {
399
+ firstname: string;
400
+ surname: string;
401
+ middlename?: string | undefined;
402
+ } | {
403
+ firstname?: string | null | undefined;
404
+ surname?: string | null | undefined;
405
+ middlename?: string | null | undefined;
406
+ } | {
407
+ country: string;
408
+ addressType: "DOMESTIC";
409
+ administrativeArea: string;
410
+ streetLevelDetails?: Record<string, string> | undefined;
411
+ } | {
412
+ country: string;
413
+ addressType: "INTERNATIONAL";
414
+ streetLevelDetails?: Record<string, string> | undefined;
415
+ } | {
416
+ type: string;
417
+ option: string;
418
+ path: string;
419
+ originalFilename: string;
420
+ }[] | {
421
+ loading: boolean;
422
+ data?: any;
423
+ error?: {
424
+ message: string;
425
+ statusCode: number;
426
+ } | null | undefined;
427
+ } | {
428
+ data: Record<string, string>;
429
+ } | {
430
+ data?: any;
431
+ } | {
432
+ numericValue: number;
433
+ unit: string;
434
+ } | {
435
+ numericValue?: number | undefined;
436
+ unit?: string | undefined;
437
+ } | (string & z.BRAND<"PlainDate">) | {
438
+ age: number;
439
+ asOfDateRef: string;
440
+ } | {
441
+ start: string & z.BRAND<"PlainDate">;
442
+ end: string & z.BRAND<"PlainDate">;
443
+ } | null | undefined>;
444
+ }, {
445
+ data: Record<string, string | number | boolean | {
446
+ type: string;
447
+ path: string;
448
+ originalFilename: string;
449
+ } | {
450
+ firstname: string;
451
+ surname: string;
452
+ middlename?: string | undefined;
453
+ } | {
454
+ firstname?: string | null | undefined;
455
+ surname?: string | null | undefined;
456
+ middlename?: string | null | undefined;
457
+ } | {
458
+ country: string;
459
+ addressType: "DOMESTIC";
460
+ administrativeArea: string;
461
+ streetLevelDetails?: Record<string, string> | undefined;
462
+ } | {
463
+ country: string;
464
+ addressType: "INTERNATIONAL";
465
+ streetLevelDetails?: Record<string, string> | undefined;
466
+ } | {
467
+ type: string;
468
+ option: string;
469
+ path: string;
470
+ originalFilename: string;
471
+ }[] | {
472
+ loading: boolean;
473
+ data?: any;
474
+ error?: {
475
+ message: string;
476
+ statusCode: number;
477
+ } | null | undefined;
478
+ } | {
479
+ data: Record<string, string>;
480
+ } | {
481
+ data?: any;
482
+ } | {
483
+ numericValue: number;
484
+ unit: string;
485
+ } | {
486
+ numericValue?: number | undefined;
487
+ unit?: string | undefined;
488
+ } | {
489
+ age: number;
490
+ asOfDateRef: string;
491
+ } | {
492
+ start: string;
493
+ end: string;
494
+ } | null | undefined>;
495
+ }>>>;
496
+ export type DataFieldValue = z.infer<typeof DataFieldValue>;
497
+ export type FieldValue = FieldValuesWithoutDataField | DataFieldValue;
498
+ export declare const FieldValue: z.ZodType<FieldValue, z.ZodTypeDef, unknown>;
499
+ export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodType<z.TypeOf<T[number]>, z.ZodTypeDef, z.TypeOf<T[number]>>;
500
+ export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof NumberWithUnitFieldUpdateValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | z.infer<typeof DataFieldValue> | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue>;
501
+ export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
502
+ /**
503
+ * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
504
+ * */
505
+ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof DataFieldValue | typeof NameFieldValue | z.ZodString | z.ZodBoolean;
506
+ /**
507
+ * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
508
+ *
509
+ * FieldValueInputSchema uses Input types which have set optional values as nullish
510
+ * */
511
+ export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | z.ZodString | z.ZodBoolean;
512
+ //# sourceMappingURL=FieldValue.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { FullDocumentPath } from '../documents';
2
+ import { EventDocument } from './EventDocument';
3
+ export declare function getFilePathsFromEvent(event: EventDocument): FullDocumentPath[];
4
+ //# sourceMappingURL=FileUtils.d.ts.map