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