@opencrvs/toolkit 1.9.6 → 1.9.7-rc.03e4d07
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/api/router.d.ts +29431 -2353
- package/dist/commons/conditionals/conditionals.d.ts +10 -1
- package/dist/commons/conditionals/validate.d.ts +11 -4
- package/dist/commons/events/ActionConfig.d.ts +25043 -1552
- package/dist/commons/events/ActionDocument.d.ts +803 -1856
- package/dist/commons/events/ActionInput.d.ts +277 -1073
- package/dist/commons/events/ActionType.d.ts +86 -9
- package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
- package/dist/commons/events/CompositeFieldValue.d.ts +29 -190
- package/dist/commons/events/Conditional.d.ts +26 -38
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1195 -4223
- package/dist/commons/events/DeduplicationConfig.d.ts +18 -150
- package/dist/commons/events/Draft.d.ts +70 -105
- package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
- package/dist/commons/events/EventConfig.d.ts +19988 -2120
- package/dist/commons/events/EventConfigInput.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +320 -1332
- package/dist/commons/events/EventIndex.d.ts +193 -980
- package/dist/commons/events/EventInput.d.ts +3 -8
- package/dist/commons/events/EventMetadata.d.ts +106 -347
- package/dist/commons/events/FieldConfig.d.ts +4545 -12303
- package/dist/commons/events/FieldType.d.ts +20 -4
- package/dist/commons/events/FieldTypeMapping.d.ts +193 -897
- package/dist/commons/events/FieldValue.d.ts +87 -396
- package/dist/commons/events/Flag.d.ts +67 -0
- package/dist/commons/events/FormConfig.d.ts +14022 -721
- package/dist/commons/events/PageConfig.d.ts +9368 -319
- package/dist/commons/events/SummaryConfig.d.ts +14 -161
- package/dist/commons/events/TemplateConfig.d.ts +2 -3
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
- package/dist/commons/events/WorkqueueConfig.d.ts +1865 -7177
- package/dist/commons/events/deduplication.d.ts +40 -3
- package/dist/commons/events/defineConfig.d.ts +26571 -147
- package/dist/commons/events/eventConfigValidation.d.ts +8 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locations.d.ts +26 -19
- package/dist/commons/events/scopes.d.ts +5 -4
- package/dist/commons/events/state/availableActions.d.ts +0 -2
- package/dist/commons/events/state/flags.d.ts +21 -3
- package/dist/commons/events/state/index.d.ts +22 -19
- package/dist/commons/events/state/utils.d.ts +130 -112
- package/dist/commons/events/test.utils.d.ts +31 -8
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +53180 -367
- package/dist/commons/notification/UserNotifications.d.ts +55 -636
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +45 -11
- package/dist/events/deduplication.d.ts +40 -3
- package/dist/events/deduplication.js +34 -0
- package/dist/events/index.js +2077 -1714
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1677 -1558
- package/dist/scopes/index.d.ts +167 -132
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +133 -94
- package/package.json +5 -5
- package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
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,47 +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.
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
30
|
export type TimeValue = z.infer<typeof TimeValue>;
|
|
42
|
-
export declare const DatetimeValue: z.
|
|
43
|
-
export declare const SelectDateRangeValue: z.ZodEnum<
|
|
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
|
+
}>;
|
|
44
38
|
export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
|
|
45
|
-
start: z.
|
|
46
|
-
end: z.
|
|
47
|
-
},
|
|
48
|
-
start: string;
|
|
49
|
-
end: string;
|
|
50
|
-
}, {
|
|
51
|
-
start: string;
|
|
52
|
-
end: string;
|
|
53
|
-
}>, z.ZodString]>;
|
|
39
|
+
start: z.ZodISODate;
|
|
40
|
+
end: z.ZodISODate;
|
|
41
|
+
}, z.core.$strip>, z.ZodISODate]>;
|
|
54
42
|
export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
|
|
55
43
|
export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
|
|
56
|
-
export declare const EmailValue: z.
|
|
44
|
+
export declare const EmailValue: z.ZodEmail;
|
|
57
45
|
export declare const CheckboxFieldValue: z.ZodBoolean;
|
|
58
46
|
export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
|
|
59
47
|
export declare const NumberFieldValue: z.ZodNumber;
|
|
@@ -62,442 +50,145 @@ export declare const SignatureFieldValue: z.ZodString;
|
|
|
62
50
|
export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
|
|
63
51
|
export declare const ButtonFieldValue: z.ZodNumber;
|
|
64
52
|
export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
|
|
65
|
-
export declare const VerificationStatusValue: z.ZodEnum<
|
|
53
|
+
export declare const VerificationStatusValue: z.ZodEnum<{
|
|
54
|
+
failed: "failed";
|
|
55
|
+
verified: "verified";
|
|
56
|
+
authenticated: "authenticated";
|
|
57
|
+
pending: "pending";
|
|
58
|
+
}>;
|
|
66
59
|
export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
|
|
67
|
-
declare const FieldValuesWithoutDataField: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
60
|
+
declare const FieldValuesWithoutDataField: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
68
61
|
country: z.ZodString;
|
|
69
62
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
70
|
-
}, {
|
|
71
63
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
72
64
|
administrativeArea: z.ZodString;
|
|
73
|
-
}
|
|
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<{
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
66
|
country: z.ZodString;
|
|
85
67
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
|
-
}, {
|
|
87
68
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
88
|
-
}
|
|
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.ZodString, z.ZodObject<{
|
|
69
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
|
|
97
70
|
age: z.ZodNumber;
|
|
98
71
|
asOfDateRef: z.ZodString;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
start: string;
|
|
110
|
-
end: string;
|
|
111
|
-
}, {
|
|
112
|
-
start: string;
|
|
113
|
-
end: string;
|
|
114
|
-
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
115
|
-
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;
|
|
116
82
|
originalFilename: z.ZodString;
|
|
117
83
|
type: z.ZodString;
|
|
118
|
-
},
|
|
119
|
-
|
|
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>;
|
|
84
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
85
|
+
path: z.ZodString;
|
|
128
86
|
originalFilename: z.ZodString;
|
|
129
87
|
type: z.ZodString;
|
|
130
88
|
option: z.ZodString;
|
|
131
|
-
},
|
|
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<{
|
|
89
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
142
90
|
firstname: z.ZodString;
|
|
143
91
|
surname: z.ZodString;
|
|
144
92
|
middlename: z.ZodOptional<z.ZodString>;
|
|
145
|
-
},
|
|
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<{
|
|
93
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
154
94
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
95
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
96
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
|
-
},
|
|
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<{
|
|
97
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
166
98
|
loading: z.ZodBoolean;
|
|
167
99
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
168
100
|
statusCode: z.ZodNumber;
|
|
169
101
|
message: z.ZodString;
|
|
170
|
-
},
|
|
171
|
-
message: string;
|
|
172
|
-
statusCode: number;
|
|
173
|
-
}, {
|
|
174
|
-
message: string;
|
|
175
|
-
statusCode: number;
|
|
176
|
-
}>>>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
177
103
|
data: z.ZodAny;
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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<{
|
|
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<{
|
|
193
110
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
194
|
-
},
|
|
195
|
-
data: Record<string, string>;
|
|
196
|
-
}, {
|
|
197
|
-
data: Record<string, string>;
|
|
198
|
-
}>>>, z.ZodObject<{
|
|
111
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
199
112
|
data: z.ZodAny;
|
|
200
|
-
},
|
|
201
|
-
data?: any;
|
|
202
|
-
}, {
|
|
203
|
-
data?: any;
|
|
204
|
-
}>, z.ZodObject<{
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
114
|
data: z.ZodAny;
|
|
206
|
-
},
|
|
207
|
-
data?: any;
|
|
208
|
-
}, {
|
|
209
|
-
data?: any;
|
|
210
|
-
}>, z.ZodObject<{
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
211
116
|
numericValue: z.ZodNumber;
|
|
212
117
|
unit: z.ZodString;
|
|
213
|
-
},
|
|
214
|
-
numericValue: number;
|
|
215
|
-
unit: string;
|
|
216
|
-
}, {
|
|
217
|
-
numericValue: number;
|
|
218
|
-
unit: string;
|
|
219
|
-
}>, z.ZodObject<{
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
119
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
221
120
|
unit: z.ZodOptional<z.ZodString>;
|
|
222
|
-
},
|
|
223
|
-
numericValue?: number | undefined;
|
|
224
|
-
unit?: string | undefined;
|
|
225
|
-
}, {
|
|
226
|
-
numericValue?: number | undefined;
|
|
227
|
-
unit?: string | undefined;
|
|
228
|
-
}>]>;
|
|
121
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>;
|
|
229
122
|
type FieldValuesWithoutDataField = z.infer<typeof FieldValuesWithoutDataField>;
|
|
230
123
|
export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
231
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
124
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
232
125
|
country: z.ZodString;
|
|
233
126
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
234
|
-
}, {
|
|
235
127
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
236
128
|
administrativeArea: z.ZodString;
|
|
237
|
-
}
|
|
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<{
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
248
130
|
country: z.ZodString;
|
|
249
131
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
250
|
-
}, {
|
|
251
132
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
252
|
-
}
|
|
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.ZodString, z.ZodObject<{
|
|
133
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.ZodISODate, z.ZodObject<{
|
|
261
134
|
age: z.ZodNumber;
|
|
262
135
|
asOfDateRef: z.ZodString;
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}, {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
start: string;
|
|
274
|
-
end: string;
|
|
275
|
-
}, {
|
|
276
|
-
start: string;
|
|
277
|
-
end: string;
|
|
278
|
-
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
279
|
-
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;
|
|
280
146
|
originalFilename: z.ZodString;
|
|
281
147
|
type: z.ZodString;
|
|
282
|
-
},
|
|
283
|
-
|
|
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>;
|
|
148
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
149
|
+
path: z.ZodString;
|
|
292
150
|
originalFilename: z.ZodString;
|
|
293
151
|
type: z.ZodString;
|
|
294
152
|
option: z.ZodString;
|
|
295
|
-
},
|
|
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<{
|
|
153
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
306
154
|
firstname: z.ZodString;
|
|
307
155
|
surname: z.ZodString;
|
|
308
156
|
middlename: z.ZodOptional<z.ZodString>;
|
|
309
|
-
},
|
|
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<{
|
|
157
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
318
158
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
159
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
160
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
-
},
|
|
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<{
|
|
161
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
330
162
|
loading: z.ZodBoolean;
|
|
331
163
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
332
164
|
statusCode: z.ZodNumber;
|
|
333
165
|
message: z.ZodString;
|
|
334
|
-
},
|
|
335
|
-
message: string;
|
|
336
|
-
statusCode: number;
|
|
337
|
-
}, {
|
|
338
|
-
message: string;
|
|
339
|
-
statusCode: number;
|
|
340
|
-
}>>>;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
341
167
|
data: z.ZodAny;
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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<{
|
|
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<{
|
|
357
174
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
358
|
-
},
|
|
359
|
-
data: Record<string, string>;
|
|
360
|
-
}, {
|
|
361
|
-
data: Record<string, string>;
|
|
362
|
-
}>>>, z.ZodObject<{
|
|
175
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
363
176
|
data: z.ZodAny;
|
|
364
|
-
},
|
|
365
|
-
data?: any;
|
|
366
|
-
}, {
|
|
367
|
-
data?: any;
|
|
368
|
-
}>, z.ZodObject<{
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
369
178
|
data: z.ZodAny;
|
|
370
|
-
},
|
|
371
|
-
data?: any;
|
|
372
|
-
}, {
|
|
373
|
-
data?: any;
|
|
374
|
-
}>, z.ZodObject<{
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
180
|
numericValue: z.ZodNumber;
|
|
376
181
|
unit: z.ZodString;
|
|
377
|
-
},
|
|
378
|
-
numericValue: number;
|
|
379
|
-
unit: string;
|
|
380
|
-
}, {
|
|
381
|
-
numericValue: number;
|
|
382
|
-
unit: string;
|
|
383
|
-
}>, z.ZodObject<{
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
384
183
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
385
184
|
unit: z.ZodOptional<z.ZodString>;
|
|
386
|
-
},
|
|
387
|
-
|
|
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
|
-
} | {
|
|
438
|
-
age: number;
|
|
439
|
-
asOfDateRef: string;
|
|
440
|
-
} | {
|
|
441
|
-
start: string;
|
|
442
|
-
end: string;
|
|
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
|
-
}>>>;
|
|
185
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
|
|
186
|
+
}, z.core.$strip>>>;
|
|
496
187
|
export type DataFieldValue = z.infer<typeof DataFieldValue>;
|
|
497
188
|
export type FieldValue = FieldValuesWithoutDataField | DataFieldValue;
|
|
498
189
|
export declare const FieldValue: z.ZodType<FieldValue>;
|
|
499
|
-
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.
|
|
500
|
-
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>;
|
|
501
192
|
export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
|
|
502
193
|
/**
|
|
503
194
|
* NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
|
|
@@ -508,6 +199,6 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
|
|
|
508
199
|
*
|
|
509
200
|
* FieldValueInputSchema uses Input types which have set optional values as nullish
|
|
510
201
|
* */
|
|
511
|
-
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;
|
|
512
203
|
export {};
|
|
513
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
|