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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/commons/api/router.d.ts +29385 -2317
  2. package/dist/commons/conditionals/conditionals.d.ts +15 -1
  3. package/dist/commons/conditionals/validate.d.ts +11 -4
  4. package/dist/commons/events/ActionConfig.d.ts +24973 -1552
  5. package/dist/commons/events/ActionDocument.d.ts +803 -1856
  6. package/dist/commons/events/ActionInput.d.ts +277 -1073
  7. package/dist/commons/events/ActionType.d.ts +86 -9
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
  9. package/dist/commons/events/CompositeFieldValue.d.ts +29 -190
  10. package/dist/commons/events/Conditional.d.ts +26 -38
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +1195 -4223
  13. package/dist/commons/events/DeduplicationConfig.d.ts +15 -150
  14. package/dist/commons/events/Draft.d.ts +70 -105
  15. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  16. package/dist/commons/events/EventConfig.d.ts +19932 -2120
  17. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  18. package/dist/commons/events/EventDocument.d.ts +320 -1332
  19. package/dist/commons/events/EventIndex.d.ts +193 -980
  20. package/dist/commons/events/EventInput.d.ts +3 -8
  21. package/dist/commons/events/EventMetadata.d.ts +106 -347
  22. package/dist/commons/events/FieldConfig.d.ts +4526 -12285
  23. package/dist/commons/events/FieldType.d.ts +20 -4
  24. package/dist/commons/events/FieldTypeMapping.d.ts +195 -881
  25. package/dist/commons/events/FieldValue.d.ts +88 -396
  26. package/dist/commons/events/Flag.d.ts +67 -0
  27. package/dist/commons/events/FormConfig.d.ts +13980 -721
  28. package/dist/commons/events/PageConfig.d.ts +9340 -319
  29. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  30. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  31. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  33. package/dist/commons/events/WorkqueueConfig.d.ts +1865 -7177
  34. package/dist/commons/events/deduplication.d.ts +3 -3
  35. package/dist/commons/events/defineConfig.d.ts +26563 -147
  36. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  37. package/dist/commons/events/index.d.ts +1 -0
  38. package/dist/commons/events/locations.d.ts +26 -19
  39. package/dist/commons/events/scopes.d.ts +5 -4
  40. package/dist/commons/events/state/availableActions.d.ts +0 -2
  41. package/dist/commons/events/state/flags.d.ts +21 -3
  42. package/dist/commons/events/state/index.d.ts +22 -19
  43. package/dist/commons/events/state/utils.d.ts +130 -112
  44. package/dist/commons/events/test.utils.d.ts +17 -8
  45. package/dist/commons/events/transactions.d.ts +1 -1
  46. package/dist/commons/events/utils.d.ts +53164 -367
  47. package/dist/commons/notification/UserNotifications.d.ts +55 -636
  48. package/dist/conditionals/index.d.ts.map +1 -1
  49. package/dist/conditionals/index.js +53 -8
  50. package/dist/events/deduplication.d.ts +3 -3
  51. package/dist/events/index.js +2007 -1717
  52. package/dist/notification/index.d.ts.map +1 -1
  53. package/dist/notification/index.js +1665 -1571
  54. package/dist/scopes/index.d.ts +167 -132
  55. package/dist/scopes/index.d.ts.map +1 -1
  56. package/dist/scopes/index.js +133 -94
  57. package/package.json +5 -5
  58. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, NumberWithUnitFieldValue, NumberWithUnitFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue } from './CompositeFieldValue';
1
+ import * as z from 'zod/v4';
2
+ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, NumberWithUnitFieldValue, NumberWithUnitFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue, CustomFieldValue } from './CompositeFieldValue';
3
3
  /**
4
4
  * FieldValues defined in this file are primitive field values.
5
5
  * FieldValues defined in CompositeFieldValue.ts are composed of multiple primitive field values (Address, File etc).
@@ -13,46 +13,35 @@ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWi
13
13
  *
14
14
  */
15
15
  export declare const TextValue: z.ZodString;
16
+ export declare const HiddenFieldValue: z.ZodString;
16
17
  export declare const NonEmptyTextValue: z.ZodString;
17
- export declare const DateValue: z.ZodString;
18
+ export declare const DateValue: z.ZodISODate;
18
19
  export type DateValue = z.infer<typeof DateValue>;
19
20
  export declare const AgeValue: z.ZodObject<{
20
21
  age: z.ZodNumber;
21
22
  asOfDateRef: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- age: number;
24
- asOfDateRef: string;
25
- }, {
26
- age: number;
27
- asOfDateRef: string;
28
- }>;
23
+ }, z.core.$strip>;
29
24
  export type AgeValue = z.infer<typeof AgeValue>;
30
25
  export declare const AgeUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
31
26
  age: z.ZodNumber;
32
27
  asOfDateRef: z.ZodString;
33
- }, "strip", z.ZodTypeAny, {
34
- age: number;
35
- asOfDateRef: string;
36
- }, {
37
- age: number;
38
- asOfDateRef: string;
39
- }>>>;
28
+ }, z.core.$strip>>>;
40
29
  export declare const TimeValue: z.ZodString;
41
- export declare const DatetimeValue: z.ZodString;
42
- export declare const SelectDateRangeValue: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
30
+ export type TimeValue = z.infer<typeof TimeValue>;
31
+ export declare const DatetimeValue: z.ZodISODateTime;
32
+ export declare const SelectDateRangeValue: z.ZodEnum<{
33
+ last7Days: "last7Days";
34
+ last30Days: "last30Days";
35
+ last90Days: "last90Days";
36
+ last365Days: "last365Days";
37
+ }>;
43
38
  export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
44
- start: z.ZodString;
45
- end: z.ZodString;
46
- }, "strip", z.ZodTypeAny, {
47
- start: string;
48
- end: string;
49
- }, {
50
- start: string;
51
- end: string;
52
- }>, z.ZodString]>;
39
+ start: z.ZodISODate;
40
+ end: z.ZodISODate;
41
+ }, z.core.$strip>, z.ZodISODate]>;
53
42
  export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
54
43
  export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
55
- export declare const EmailValue: z.ZodString;
44
+ export declare const EmailValue: z.ZodEmail;
56
45
  export declare const CheckboxFieldValue: z.ZodBoolean;
57
46
  export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
58
47
  export declare const NumberFieldValue: z.ZodNumber;
@@ -61,442 +50,145 @@ export declare const SignatureFieldValue: z.ZodString;
61
50
  export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
62
51
  export declare const ButtonFieldValue: z.ZodNumber;
63
52
  export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
64
- export declare const VerificationStatusValue: z.ZodEnum<["verified", "authenticated", "failed", "pending"]>;
53
+ export declare const VerificationStatusValue: z.ZodEnum<{
54
+ failed: "failed";
55
+ verified: "verified";
56
+ authenticated: "authenticated";
57
+ pending: "pending";
58
+ }>;
65
59
  export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
66
- declare const FieldValuesWithoutDataField: z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
60
+ declare const FieldValuesWithoutDataField: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
67
61
  country: z.ZodString;
68
62
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69
- }, {
70
63
  addressType: z.ZodLiteral<"DOMESTIC">;
71
64
  administrativeArea: z.ZodString;
72
- }>, "strip", z.ZodTypeAny, {
73
- country: string;
74
- addressType: "DOMESTIC";
75
- administrativeArea: string;
76
- streetLevelDetails?: Record<string, string> | undefined;
77
- }, {
78
- country: string;
79
- addressType: "DOMESTIC";
80
- administrativeArea: string;
81
- streetLevelDetails?: Record<string, string> | undefined;
82
- }>, z.ZodObject<z.objectUtil.extendShape<{
65
+ }, z.core.$strip>, z.ZodObject<{
83
66
  country: z.ZodString;
84
67
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
- }, {
86
68
  addressType: z.ZodLiteral<"INTERNATIONAL">;
87
- }>, "strip", z.ZodTypeAny, {
88
- country: string;
89
- addressType: "INTERNATIONAL";
90
- streetLevelDetails?: Record<string, string> | undefined;
91
- }, {
92
- country: string;
93
- addressType: "INTERNATIONAL";
94
- streetLevelDetails?: Record<string, string> | undefined;
95
- }>]>, z.ZodString, z.ZodString, z.ZodObject<{
69
+ }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
96
70
  age: z.ZodNumber;
97
71
  asOfDateRef: z.ZodString;
98
- }, "strip", z.ZodTypeAny, {
99
- age: number;
100
- asOfDateRef: string;
101
- }, {
102
- age: number;
103
- asOfDateRef: string;
104
- }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
105
- start: z.ZodString;
106
- end: z.ZodString;
107
- }, "strip", z.ZodTypeAny, {
108
- start: string;
109
- end: string;
110
- }, {
111
- start: string;
112
- end: string;
113
- }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
114
- path: z.ZodEffects<z.ZodString, string, string>;
72
+ }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
73
+ start: z.ZodISODate;
74
+ end: z.ZodISODate;
75
+ }, z.core.$strip>, z.ZodISODate]>, z.ZodEnum<{
76
+ last7Days: "last7Days";
77
+ last30Days: "last30Days";
78
+ last90Days: "last90Days";
79
+ last365Days: "last365Days";
80
+ }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
81
+ path: z.ZodString;
115
82
  originalFilename: z.ZodString;
116
83
  type: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
118
- type: string;
119
- path: string;
120
- originalFilename: string;
121
- }, {
122
- type: string;
123
- path: string;
124
- originalFilename: string;
125
- }>, z.ZodArray<z.ZodObject<{
126
- path: z.ZodEffects<z.ZodString, string, string>;
84
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
85
+ path: z.ZodString;
127
86
  originalFilename: z.ZodString;
128
87
  type: z.ZodString;
129
88
  option: z.ZodString;
130
- }, "strip", z.ZodTypeAny, {
131
- type: string;
132
- option: string;
133
- path: string;
134
- originalFilename: string;
135
- }, {
136
- type: string;
137
- option: string;
138
- path: string;
139
- originalFilename: string;
140
- }>, "many">, z.ZodObject<{
89
+ }, z.core.$strip>>, z.ZodObject<{
141
90
  firstname: z.ZodString;
142
91
  surname: z.ZodString;
143
92
  middlename: z.ZodOptional<z.ZodString>;
144
- }, "strip", z.ZodTypeAny, {
145
- firstname: string;
146
- surname: string;
147
- middlename?: string | undefined;
148
- }, {
149
- firstname: string;
150
- surname: string;
151
- middlename?: string | undefined;
152
- }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
93
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
153
94
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
95
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
96
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- }, "strip", z.ZodTypeAny, {
157
- firstname?: string | null | undefined;
158
- surname?: string | null | undefined;
159
- middlename?: string | null | undefined;
160
- }, {
161
- firstname?: string | null | undefined;
162
- surname?: string | null | undefined;
163
- middlename?: string | null | undefined;
164
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
97
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
165
98
  loading: z.ZodBoolean;
166
99
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
100
  statusCode: z.ZodNumber;
168
101
  message: z.ZodString;
169
- }, "strip", z.ZodTypeAny, {
170
- message: string;
171
- statusCode: number;
172
- }, {
173
- message: string;
174
- statusCode: number;
175
- }>>>;
102
+ }, z.core.$strip>>>;
176
103
  data: z.ZodAny;
177
- }, "strip", z.ZodTypeAny, {
178
- loading: boolean;
179
- data?: any;
180
- error?: {
181
- message: string;
182
- statusCode: number;
183
- } | null | undefined;
184
- }, {
185
- loading: boolean;
186
- data?: any;
187
- error?: {
188
- message: string;
189
- statusCode: number;
190
- } | null | undefined;
191
- }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
104
+ }, z.core.$strip>, z.ZodEnum<{
105
+ failed: "failed";
106
+ verified: "verified";
107
+ authenticated: "authenticated";
108
+ pending: "pending";
109
+ }>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
192
110
  data: z.ZodRecord<z.ZodString, z.ZodString>;
193
- }, "strip", z.ZodTypeAny, {
194
- data: Record<string, string>;
195
- }, {
196
- data: Record<string, string>;
197
- }>>>, z.ZodObject<{
111
+ }, z.core.$strip>>>, z.ZodObject<{
198
112
  data: z.ZodAny;
199
- }, "strip", z.ZodTypeAny, {
200
- data?: any;
201
- }, {
202
- data?: any;
203
- }>, z.ZodObject<{
113
+ }, z.core.$strip>, z.ZodObject<{
204
114
  data: z.ZodAny;
205
- }, "strip", z.ZodTypeAny, {
206
- data?: any;
207
- }, {
208
- data?: any;
209
- }>, z.ZodObject<{
115
+ }, z.core.$strip>, z.ZodObject<{
210
116
  numericValue: z.ZodNumber;
211
117
  unit: z.ZodString;
212
- }, "strip", z.ZodTypeAny, {
213
- numericValue: number;
214
- unit: string;
215
- }, {
216
- numericValue: number;
217
- unit: string;
218
- }>, z.ZodObject<{
118
+ }, z.core.$strip>, z.ZodObject<{
219
119
  numericValue: z.ZodOptional<z.ZodNumber>;
220
120
  unit: z.ZodOptional<z.ZodString>;
221
- }, "strip", z.ZodTypeAny, {
222
- numericValue?: number | undefined;
223
- unit?: string | undefined;
224
- }, {
225
- numericValue?: number | undefined;
226
- unit?: string | undefined;
227
- }>]>;
121
+ }, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>;
228
122
  type FieldValuesWithoutDataField = z.infer<typeof FieldValuesWithoutDataField>;
229
123
  export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
230
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
124
+ data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
231
125
  country: z.ZodString;
232
126
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
233
- }, {
234
127
  addressType: z.ZodLiteral<"DOMESTIC">;
235
128
  administrativeArea: z.ZodString;
236
- }>, "strip", z.ZodTypeAny, {
237
- country: string;
238
- addressType: "DOMESTIC";
239
- administrativeArea: string;
240
- streetLevelDetails?: Record<string, string> | undefined;
241
- }, {
242
- country: string;
243
- addressType: "DOMESTIC";
244
- administrativeArea: string;
245
- streetLevelDetails?: Record<string, string> | undefined;
246
- }>, z.ZodObject<z.objectUtil.extendShape<{
129
+ }, z.core.$strip>, z.ZodObject<{
247
130
  country: z.ZodString;
248
131
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
249
- }, {
250
132
  addressType: z.ZodLiteral<"INTERNATIONAL">;
251
- }>, "strip", z.ZodTypeAny, {
252
- country: string;
253
- addressType: "INTERNATIONAL";
254
- streetLevelDetails?: Record<string, string> | undefined;
255
- }, {
256
- country: string;
257
- addressType: "INTERNATIONAL";
258
- streetLevelDetails?: Record<string, string> | undefined;
259
- }>]>, z.ZodString, z.ZodString, z.ZodObject<{
133
+ }, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
260
134
  age: z.ZodNumber;
261
135
  asOfDateRef: z.ZodString;
262
- }, "strip", z.ZodTypeAny, {
263
- age: number;
264
- asOfDateRef: string;
265
- }, {
266
- age: number;
267
- asOfDateRef: string;
268
- }>, z.ZodString, z.ZodUnion<[z.ZodObject<{
269
- start: z.ZodString;
270
- end: z.ZodString;
271
- }, "strip", z.ZodTypeAny, {
272
- start: string;
273
- end: string;
274
- }, {
275
- start: string;
276
- end: string;
277
- }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
278
- path: z.ZodEffects<z.ZodString, string, string>;
136
+ }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
137
+ start: z.ZodISODate;
138
+ end: z.ZodISODate;
139
+ }, z.core.$strip>, z.ZodISODate]>, z.ZodEnum<{
140
+ last7Days: "last7Days";
141
+ last30Days: "last30Days";
142
+ last90Days: "last90Days";
143
+ last365Days: "last365Days";
144
+ }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
145
+ path: z.ZodString;
279
146
  originalFilename: z.ZodString;
280
147
  type: z.ZodString;
281
- }, "strip", z.ZodTypeAny, {
282
- type: string;
283
- path: string;
284
- originalFilename: string;
285
- }, {
286
- type: string;
287
- path: string;
288
- originalFilename: string;
289
- }>, z.ZodArray<z.ZodObject<{
290
- path: z.ZodEffects<z.ZodString, string, string>;
148
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
149
+ path: z.ZodString;
291
150
  originalFilename: z.ZodString;
292
151
  type: z.ZodString;
293
152
  option: z.ZodString;
294
- }, "strip", z.ZodTypeAny, {
295
- type: string;
296
- option: string;
297
- path: string;
298
- originalFilename: string;
299
- }, {
300
- type: string;
301
- option: string;
302
- path: string;
303
- originalFilename: string;
304
- }>, "many">, z.ZodObject<{
153
+ }, z.core.$strip>>, z.ZodObject<{
305
154
  firstname: z.ZodString;
306
155
  surname: z.ZodString;
307
156
  middlename: z.ZodOptional<z.ZodString>;
308
- }, "strip", z.ZodTypeAny, {
309
- firstname: string;
310
- surname: string;
311
- middlename?: string | undefined;
312
- }, {
313
- firstname: string;
314
- surname: string;
315
- middlename?: string | undefined;
316
- }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
157
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
317
158
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
159
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
160
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
- }, "strip", z.ZodTypeAny, {
321
- firstname?: string | null | undefined;
322
- surname?: string | null | undefined;
323
- middlename?: string | null | undefined;
324
- }, {
325
- firstname?: string | null | undefined;
326
- surname?: string | null | undefined;
327
- middlename?: string | null | undefined;
328
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
161
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
329
162
  loading: z.ZodBoolean;
330
163
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
331
164
  statusCode: z.ZodNumber;
332
165
  message: z.ZodString;
333
- }, "strip", z.ZodTypeAny, {
334
- message: string;
335
- statusCode: number;
336
- }, {
337
- message: string;
338
- statusCode: number;
339
- }>>>;
166
+ }, z.core.$strip>>>;
340
167
  data: z.ZodAny;
341
- }, "strip", z.ZodTypeAny, {
342
- loading: boolean;
343
- data?: any;
344
- error?: {
345
- message: string;
346
- statusCode: number;
347
- } | null | undefined;
348
- }, {
349
- loading: boolean;
350
- data?: any;
351
- error?: {
352
- message: string;
353
- statusCode: number;
354
- } | null | undefined;
355
- }>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
168
+ }, z.core.$strip>, z.ZodEnum<{
169
+ failed: "failed";
170
+ verified: "verified";
171
+ authenticated: "authenticated";
172
+ pending: "pending";
173
+ }>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
356
174
  data: z.ZodRecord<z.ZodString, z.ZodString>;
357
- }, "strip", z.ZodTypeAny, {
358
- data: Record<string, string>;
359
- }, {
360
- data: Record<string, string>;
361
- }>>>, z.ZodObject<{
175
+ }, z.core.$strip>>>, z.ZodObject<{
362
176
  data: z.ZodAny;
363
- }, "strip", z.ZodTypeAny, {
364
- data?: any;
365
- }, {
366
- data?: any;
367
- }>, z.ZodObject<{
177
+ }, z.core.$strip>, z.ZodObject<{
368
178
  data: z.ZodAny;
369
- }, "strip", z.ZodTypeAny, {
370
- data?: any;
371
- }, {
372
- data?: any;
373
- }>, z.ZodObject<{
179
+ }, z.core.$strip>, z.ZodObject<{
374
180
  numericValue: z.ZodNumber;
375
181
  unit: z.ZodString;
376
- }, "strip", z.ZodTypeAny, {
377
- numericValue: number;
378
- unit: string;
379
- }, {
380
- numericValue: number;
381
- unit: string;
382
- }>, z.ZodObject<{
182
+ }, z.core.$strip>, z.ZodObject<{
383
183
  numericValue: z.ZodOptional<z.ZodNumber>;
384
184
  unit: z.ZodOptional<z.ZodString>;
385
- }, "strip", z.ZodTypeAny, {
386
- numericValue?: number | undefined;
387
- unit?: string | undefined;
388
- }, {
389
- numericValue?: number | undefined;
390
- unit?: string | undefined;
391
- }>]>>;
392
- }, "strip", z.ZodTypeAny, {
393
- data: Record<string, string | number | boolean | {
394
- type: string;
395
- path: string;
396
- originalFilename: string;
397
- } | {
398
- firstname: string;
399
- surname: string;
400
- middlename?: string | undefined;
401
- } | {
402
- firstname?: string | null | undefined;
403
- surname?: string | null | undefined;
404
- middlename?: string | null | undefined;
405
- } | {
406
- country: string;
407
- addressType: "DOMESTIC";
408
- administrativeArea: string;
409
- streetLevelDetails?: Record<string, string> | undefined;
410
- } | {
411
- country: string;
412
- addressType: "INTERNATIONAL";
413
- streetLevelDetails?: Record<string, string> | undefined;
414
- } | {
415
- type: string;
416
- option: string;
417
- path: string;
418
- originalFilename: string;
419
- }[] | {
420
- loading: boolean;
421
- data?: any;
422
- error?: {
423
- message: string;
424
- statusCode: number;
425
- } | null | undefined;
426
- } | {
427
- data: Record<string, string>;
428
- } | {
429
- data?: any;
430
- } | {
431
- numericValue: number;
432
- unit: string;
433
- } | {
434
- numericValue?: number | undefined;
435
- unit?: string | undefined;
436
- } | {
437
- age: number;
438
- asOfDateRef: string;
439
- } | {
440
- start: string;
441
- end: string;
442
- } | null | undefined>;
443
- }, {
444
- data: Record<string, string | number | boolean | {
445
- type: string;
446
- path: string;
447
- originalFilename: string;
448
- } | {
449
- firstname: string;
450
- surname: string;
451
- middlename?: string | undefined;
452
- } | {
453
- firstname?: string | null | undefined;
454
- surname?: string | null | undefined;
455
- middlename?: string | null | undefined;
456
- } | {
457
- country: string;
458
- addressType: "DOMESTIC";
459
- administrativeArea: string;
460
- streetLevelDetails?: Record<string, string> | undefined;
461
- } | {
462
- country: string;
463
- addressType: "INTERNATIONAL";
464
- streetLevelDetails?: Record<string, string> | undefined;
465
- } | {
466
- type: string;
467
- option: string;
468
- path: string;
469
- originalFilename: string;
470
- }[] | {
471
- loading: boolean;
472
- data?: any;
473
- error?: {
474
- message: string;
475
- statusCode: number;
476
- } | null | undefined;
477
- } | {
478
- data: Record<string, string>;
479
- } | {
480
- data?: any;
481
- } | {
482
- numericValue: number;
483
- unit: string;
484
- } | {
485
- numericValue?: number | undefined;
486
- unit?: string | undefined;
487
- } | {
488
- age: number;
489
- asOfDateRef: string;
490
- } | {
491
- start: string;
492
- end: string;
493
- } | null | undefined>;
494
- }>>>;
185
+ }, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
186
+ }, z.core.$strip>>>;
495
187
  export type DataFieldValue = z.infer<typeof DataFieldValue>;
496
188
  export type FieldValue = FieldValuesWithoutDataField | DataFieldValue;
497
189
  export declare const FieldValue: z.ZodType<FieldValue>;
498
- export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodType<z.TypeOf<T[number]>, z.ZodTypeDef, z.TypeOf<T[number]>>;
499
- export type FieldUpdateValue = z.infer<typeof TextValue> | z.infer<typeof DateValue> | 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>;
190
+ export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodAny;
191
+ export type FieldUpdateValue = z.infer<typeof TextValue> | z.infer<typeof DateValue> | 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> | z.infer<typeof CustomFieldValue> | z.infer<typeof HiddenFieldValue>;
500
192
  export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
501
193
  /**
502
194
  * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
@@ -507,6 +199,6 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
507
199
  *
508
200
  * FieldValueInputSchema uses Input types which have set optional values as nullish
509
201
  * */
510
- export type FieldUpdateValueSchema = 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;
202
+ export type FieldUpdateValueSchema = 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 | typeof DateValue | typeof EmailValue | typeof CustomFieldValue | z.ZodString | z.ZodBoolean;
511
203
  export {};
512
204
  //# sourceMappingURL=FieldValue.d.ts.map
@@ -0,0 +1,67 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const InherentFlags: {
3
+ readonly INCOMPLETE: "incomplete";
4
+ readonly REJECTED: "rejected";
5
+ readonly CORRECTION_REQUESTED: "correction-requested";
6
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
7
+ /**
8
+ * This flag is set by the Edit-action and removed after the declaration or registration.
9
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
10
+ *
11
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
12
+ */
13
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
14
+ };
15
+ export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
16
+ export declare const ActionFlag: z.ZodString;
17
+ export type ActionFlag = z.infer<typeof ActionFlag>;
18
+ /** Custom flag identifier defined by the country config. These may not match any InherentFlags or ActionFlag patterns. */
19
+ export declare const CustomFlag: z.ZodString;
20
+ export type CustomFlag = z.infer<typeof CustomFlag>;
21
+ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
22
+ readonly INCOMPLETE: "incomplete";
23
+ readonly REJECTED: "rejected";
24
+ readonly CORRECTION_REQUESTED: "correction-requested";
25
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
26
+ /**
27
+ * This flag is set by the Edit-action and removed after the declaration or registration.
28
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
29
+ *
30
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
31
+ */
32
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
33
+ }>]>, z.ZodString]>;
34
+ export type Flag = z.infer<typeof Flag>;
35
+ /**
36
+ * Configuration of a custom flag that can be associated with a certain event type.
37
+ */
38
+ export declare const FlagConfig: z.ZodObject<{
39
+ id: z.ZodString;
40
+ requiresAction: z.ZodBoolean;
41
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
42
+ }, z.core.$strip>;
43
+ export type FlagConfig = z.infer<typeof FlagConfig>;
44
+ /**
45
+ * Configuration for a flag action, which is executed when the action is performed.
46
+ */
47
+ export declare const ActionFlagConfig: z.ZodObject<{
48
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
49
+ readonly INCOMPLETE: "incomplete";
50
+ readonly REJECTED: "rejected";
51
+ readonly CORRECTION_REQUESTED: "correction-requested";
52
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
53
+ /**
54
+ * This flag is set by the Edit-action and removed after the declaration or registration.
55
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
56
+ *
57
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
58
+ */
59
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
60
+ }>]>, z.ZodString]>;
61
+ operation: z.ZodEnum<{
62
+ add: "add";
63
+ remove: "remove";
64
+ }>;
65
+ conditional: z.ZodOptional<z.ZodAny>;
66
+ }, z.core.$strip>;
67
+ //# sourceMappingURL=Flag.d.ts.map