@opencrvs/toolkit 1.9.7-rc.5cbeaf4 → 1.9.7-rc.672dd49
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 +2459 -29529
- package/dist/commons/conditionals/conditionals.d.ts +1 -10
- package/dist/commons/conditionals/validate.d.ts +4 -11
- package/dist/commons/events/ActionConfig.d.ts +1552 -24973
- package/dist/commons/events/ActionDocument.d.ts +1856 -803
- package/dist/commons/events/ActionInput.d.ts +1073 -277
- package/dist/commons/events/ActionType.d.ts +9 -86
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -228
- package/dist/commons/events/CompositeFieldValue.d.ts +190 -29
- package/dist/commons/events/Conditional.d.ts +38 -26
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4223 -1195
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/DeduplicationConfig.d.ts +171 -15
- package/dist/commons/events/Draft.d.ts +105 -70
- package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
- package/dist/commons/events/EventConfig.d.ts +2120 -19932
- package/dist/commons/events/EventConfigInput.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +1332 -320
- package/dist/commons/events/EventIndex.d.ts +980 -193
- package/dist/commons/events/EventInput.d.ts +8 -3
- package/dist/commons/events/EventMetadata.d.ts +347 -106
- package/dist/commons/events/FieldConfig.d.ts +12296 -4517
- package/dist/commons/events/FieldType.d.ts +4 -20
- package/dist/commons/events/FieldTypeMapping.d.ts +897 -193
- package/dist/commons/events/FieldValue.d.ts +396 -87
- package/dist/commons/events/FormConfig.d.ts +721 -13980
- package/dist/commons/events/PageConfig.d.ts +319 -9340
- package/dist/commons/events/SummaryConfig.d.ts +161 -14
- package/dist/commons/events/TemplateConfig.d.ts +3 -2
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
- package/dist/commons/events/WorkqueueConfig.d.ts +7131 -1819
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +162 -26578
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +19 -26
- package/dist/commons/events/scopes.d.ts +4 -5
- package/dist/commons/events/state/availableActions.d.ts +2 -0
- package/dist/commons/events/state/flags.d.ts +3 -21
- package/dist/commons/events/state/index.d.ts +19 -22
- package/dist/commons/events/state/utils.d.ts +112 -130
- package/dist/commons/events/test.utils.d.ts +8 -31
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +381 -53178
- package/dist/commons/notification/UserNotifications.d.ts +636 -55
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +11 -45
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +1719 -2044
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1505 -1589
- package/dist/scopes/index.d.ts +132 -167
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +94 -133
- package/package.json +5 -5
- package/dist/commons/events/Flag.d.ts +0 -67
- package/dist/commons/events/eventConfigValidation.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, NumberWithUnitFieldValue, NumberWithUnitFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, NumberWithUnitFieldValue, NumberWithUnitFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue } 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,35 +13,47 @@ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWi
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export declare const TextValue: z.ZodString;
|
|
16
|
-
export declare const HiddenFieldValue: z.ZodString;
|
|
17
16
|
export declare const NonEmptyTextValue: z.ZodString;
|
|
18
|
-
export declare const DateValue: z.
|
|
17
|
+
export declare const DateValue: z.ZodString;
|
|
19
18
|
export type DateValue = z.infer<typeof DateValue>;
|
|
20
19
|
export declare const AgeValue: z.ZodObject<{
|
|
21
20
|
age: z.ZodNumber;
|
|
22
21
|
asOfDateRef: z.ZodString;
|
|
23
|
-
}, z.
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
age: number;
|
|
24
|
+
asOfDateRef: string;
|
|
25
|
+
}, {
|
|
26
|
+
age: number;
|
|
27
|
+
asOfDateRef: string;
|
|
28
|
+
}>;
|
|
24
29
|
export type AgeValue = z.infer<typeof AgeValue>;
|
|
25
30
|
export declare const AgeUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
31
|
age: z.ZodNumber;
|
|
27
32
|
asOfDateRef: z.ZodString;
|
|
28
|
-
}, z.
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
age: number;
|
|
35
|
+
asOfDateRef: string;
|
|
36
|
+
}, {
|
|
37
|
+
age: number;
|
|
38
|
+
asOfDateRef: string;
|
|
39
|
+
}>>>;
|
|
29
40
|
export declare const TimeValue: z.ZodString;
|
|
30
41
|
export type TimeValue = z.infer<typeof TimeValue>;
|
|
31
|
-
export declare const DatetimeValue: z.
|
|
32
|
-
export declare const SelectDateRangeValue: z.ZodEnum<
|
|
33
|
-
last7Days: "last7Days";
|
|
34
|
-
last30Days: "last30Days";
|
|
35
|
-
last90Days: "last90Days";
|
|
36
|
-
last365Days: "last365Days";
|
|
37
|
-
}>;
|
|
42
|
+
export declare const DatetimeValue: z.ZodString;
|
|
43
|
+
export declare const SelectDateRangeValue: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
|
|
38
44
|
export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
|
|
39
|
-
start: z.
|
|
40
|
-
end: z.
|
|
41
|
-
},
|
|
45
|
+
start: z.ZodString;
|
|
46
|
+
end: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
start: string;
|
|
49
|
+
end: string;
|
|
50
|
+
}, {
|
|
51
|
+
start: string;
|
|
52
|
+
end: string;
|
|
53
|
+
}>, z.ZodString]>;
|
|
42
54
|
export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
|
|
43
55
|
export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
|
|
44
|
-
export declare const EmailValue: z.
|
|
56
|
+
export declare const EmailValue: z.ZodString;
|
|
45
57
|
export declare const CheckboxFieldValue: z.ZodBoolean;
|
|
46
58
|
export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
|
|
47
59
|
export declare const NumberFieldValue: z.ZodNumber;
|
|
@@ -50,145 +62,442 @@ export declare const SignatureFieldValue: z.ZodString;
|
|
|
50
62
|
export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
|
|
51
63
|
export declare const ButtonFieldValue: z.ZodNumber;
|
|
52
64
|
export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
|
|
53
|
-
export declare const VerificationStatusValue: z.ZodEnum<
|
|
54
|
-
failed: "failed";
|
|
55
|
-
verified: "verified";
|
|
56
|
-
authenticated: "authenticated";
|
|
57
|
-
pending: "pending";
|
|
58
|
-
}>;
|
|
65
|
+
export declare const VerificationStatusValue: z.ZodEnum<["verified", "authenticated", "failed", "pending"]>;
|
|
59
66
|
export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
|
|
60
|
-
declare const FieldValuesWithoutDataField: z.ZodUnion<
|
|
67
|
+
declare const FieldValuesWithoutDataField: z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
61
68
|
country: z.ZodString;
|
|
62
69
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
70
|
+
}, {
|
|
63
71
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
64
72
|
administrativeArea: z.ZodString;
|
|
65
|
-
}, z.
|
|
73
|
+
}>, "strip", z.ZodTypeAny, {
|
|
74
|
+
country: string;
|
|
75
|
+
addressType: "DOMESTIC";
|
|
76
|
+
administrativeArea: string;
|
|
77
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
country: string;
|
|
80
|
+
addressType: "DOMESTIC";
|
|
81
|
+
administrativeArea: string;
|
|
82
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
83
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
66
84
|
country: z.ZodString;
|
|
67
85
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
|
+
}, {
|
|
68
87
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
69
|
-
}
|
|
88
|
+
}>, "strip", z.ZodTypeAny, {
|
|
89
|
+
country: string;
|
|
90
|
+
addressType: "INTERNATIONAL";
|
|
91
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
country: string;
|
|
94
|
+
addressType: "INTERNATIONAL";
|
|
95
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
96
|
+
}>]>, z.ZodString, z.ZodString, z.ZodObject<{
|
|
70
97
|
age: z.ZodNumber;
|
|
71
98
|
asOfDateRef: z.ZodString;
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
age: number;
|
|
101
|
+
asOfDateRef: string;
|
|
102
|
+
}, {
|
|
103
|
+
age: number;
|
|
104
|
+
asOfDateRef: string;
|
|
105
|
+
}>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
106
|
+
start: z.ZodString;
|
|
107
|
+
end: z.ZodString;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
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>;
|
|
82
116
|
originalFilename: z.ZodString;
|
|
83
117
|
type: z.ZodString;
|
|
84
|
-
},
|
|
85
|
-
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: string;
|
|
120
|
+
path: string;
|
|
121
|
+
originalFilename: string;
|
|
122
|
+
}, {
|
|
123
|
+
type: string;
|
|
124
|
+
path: string;
|
|
125
|
+
originalFilename: string;
|
|
126
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
127
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
86
128
|
originalFilename: z.ZodString;
|
|
87
129
|
type: z.ZodString;
|
|
88
130
|
option: z.ZodString;
|
|
89
|
-
},
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
type: string;
|
|
133
|
+
option: string;
|
|
134
|
+
path: string;
|
|
135
|
+
originalFilename: string;
|
|
136
|
+
}, {
|
|
137
|
+
type: string;
|
|
138
|
+
option: string;
|
|
139
|
+
path: string;
|
|
140
|
+
originalFilename: string;
|
|
141
|
+
}>, "many">, z.ZodObject<{
|
|
90
142
|
firstname: z.ZodString;
|
|
91
143
|
surname: z.ZodString;
|
|
92
144
|
middlename: z.ZodOptional<z.ZodString>;
|
|
93
|
-
},
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
firstname: string;
|
|
147
|
+
surname: string;
|
|
148
|
+
middlename?: string | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
firstname: string;
|
|
151
|
+
surname: string;
|
|
152
|
+
middlename?: string | undefined;
|
|
153
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
94
154
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
155
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
156
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
},
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
firstname?: string | null | undefined;
|
|
159
|
+
surname?: string | null | undefined;
|
|
160
|
+
middlename?: string | null | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
firstname?: string | null | undefined;
|
|
163
|
+
surname?: string | null | undefined;
|
|
164
|
+
middlename?: string | null | undefined;
|
|
165
|
+
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
98
166
|
loading: z.ZodBoolean;
|
|
99
167
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
100
168
|
statusCode: z.ZodNumber;
|
|
101
169
|
message: z.ZodString;
|
|
102
|
-
}, z.
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
message: string;
|
|
172
|
+
statusCode: number;
|
|
173
|
+
}, {
|
|
174
|
+
message: string;
|
|
175
|
+
statusCode: number;
|
|
176
|
+
}>>>;
|
|
103
177
|
data: z.ZodAny;
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
loading: boolean;
|
|
180
|
+
data?: any;
|
|
181
|
+
error?: {
|
|
182
|
+
message: string;
|
|
183
|
+
statusCode: number;
|
|
184
|
+
} | null | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
loading: boolean;
|
|
187
|
+
data?: any;
|
|
188
|
+
error?: {
|
|
189
|
+
message: string;
|
|
190
|
+
statusCode: number;
|
|
191
|
+
} | null | undefined;
|
|
192
|
+
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
110
193
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
111
|
-
},
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
data: Record<string, string>;
|
|
196
|
+
}, {
|
|
197
|
+
data: Record<string, string>;
|
|
198
|
+
}>>>, z.ZodObject<{
|
|
112
199
|
data: z.ZodAny;
|
|
113
|
-
},
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
data?: any;
|
|
202
|
+
}, {
|
|
203
|
+
data?: any;
|
|
204
|
+
}>, z.ZodObject<{
|
|
114
205
|
data: z.ZodAny;
|
|
115
|
-
},
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
data?: any;
|
|
208
|
+
}, {
|
|
209
|
+
data?: any;
|
|
210
|
+
}>, z.ZodObject<{
|
|
116
211
|
numericValue: z.ZodNumber;
|
|
117
212
|
unit: z.ZodString;
|
|
118
|
-
},
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
numericValue: number;
|
|
215
|
+
unit: string;
|
|
216
|
+
}, {
|
|
217
|
+
numericValue: number;
|
|
218
|
+
unit: string;
|
|
219
|
+
}>, z.ZodObject<{
|
|
119
220
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
120
221
|
unit: z.ZodOptional<z.ZodString>;
|
|
121
|
-
},
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
numericValue?: number | undefined;
|
|
224
|
+
unit?: string | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
numericValue?: number | undefined;
|
|
227
|
+
unit?: string | undefined;
|
|
228
|
+
}>]>;
|
|
122
229
|
type FieldValuesWithoutDataField = z.infer<typeof FieldValuesWithoutDataField>;
|
|
123
230
|
export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
124
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
231
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
125
232
|
country: z.ZodString;
|
|
126
233
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
234
|
+
}, {
|
|
127
235
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
128
236
|
administrativeArea: z.ZodString;
|
|
129
|
-
}, z.
|
|
237
|
+
}>, "strip", z.ZodTypeAny, {
|
|
238
|
+
country: string;
|
|
239
|
+
addressType: "DOMESTIC";
|
|
240
|
+
administrativeArea: string;
|
|
241
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
country: string;
|
|
244
|
+
addressType: "DOMESTIC";
|
|
245
|
+
administrativeArea: string;
|
|
246
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
247
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
130
248
|
country: z.ZodString;
|
|
131
249
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
250
|
+
}, {
|
|
132
251
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
133
|
-
}
|
|
252
|
+
}>, "strip", z.ZodTypeAny, {
|
|
253
|
+
country: string;
|
|
254
|
+
addressType: "INTERNATIONAL";
|
|
255
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
country: string;
|
|
258
|
+
addressType: "INTERNATIONAL";
|
|
259
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
260
|
+
}>]>, z.ZodString, z.ZodString, z.ZodObject<{
|
|
134
261
|
age: z.ZodNumber;
|
|
135
262
|
asOfDateRef: z.ZodString;
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
age: number;
|
|
265
|
+
asOfDateRef: string;
|
|
266
|
+
}, {
|
|
267
|
+
age: number;
|
|
268
|
+
asOfDateRef: string;
|
|
269
|
+
}>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
270
|
+
start: z.ZodString;
|
|
271
|
+
end: z.ZodString;
|
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
|
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>;
|
|
146
280
|
originalFilename: z.ZodString;
|
|
147
281
|
type: z.ZodString;
|
|
148
|
-
},
|
|
149
|
-
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
type: string;
|
|
284
|
+
path: string;
|
|
285
|
+
originalFilename: string;
|
|
286
|
+
}, {
|
|
287
|
+
type: string;
|
|
288
|
+
path: string;
|
|
289
|
+
originalFilename: string;
|
|
290
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
291
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
150
292
|
originalFilename: z.ZodString;
|
|
151
293
|
type: z.ZodString;
|
|
152
294
|
option: z.ZodString;
|
|
153
|
-
},
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
type: string;
|
|
297
|
+
option: string;
|
|
298
|
+
path: string;
|
|
299
|
+
originalFilename: string;
|
|
300
|
+
}, {
|
|
301
|
+
type: string;
|
|
302
|
+
option: string;
|
|
303
|
+
path: string;
|
|
304
|
+
originalFilename: string;
|
|
305
|
+
}>, "many">, z.ZodObject<{
|
|
154
306
|
firstname: z.ZodString;
|
|
155
307
|
surname: z.ZodString;
|
|
156
308
|
middlename: z.ZodOptional<z.ZodString>;
|
|
157
|
-
},
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
firstname: string;
|
|
311
|
+
surname: string;
|
|
312
|
+
middlename?: string | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
firstname: string;
|
|
315
|
+
surname: string;
|
|
316
|
+
middlename?: string | undefined;
|
|
317
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
158
318
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
319
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
320
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
-
},
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
firstname?: string | null | undefined;
|
|
323
|
+
surname?: string | null | undefined;
|
|
324
|
+
middlename?: string | null | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
firstname?: string | null | undefined;
|
|
327
|
+
surname?: string | null | undefined;
|
|
328
|
+
middlename?: string | null | undefined;
|
|
329
|
+
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
162
330
|
loading: z.ZodBoolean;
|
|
163
331
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
164
332
|
statusCode: z.ZodNumber;
|
|
165
333
|
message: z.ZodString;
|
|
166
|
-
}, z.
|
|
334
|
+
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
message: string;
|
|
336
|
+
statusCode: number;
|
|
337
|
+
}, {
|
|
338
|
+
message: string;
|
|
339
|
+
statusCode: number;
|
|
340
|
+
}>>>;
|
|
167
341
|
data: z.ZodAny;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
loading: boolean;
|
|
344
|
+
data?: any;
|
|
345
|
+
error?: {
|
|
346
|
+
message: string;
|
|
347
|
+
statusCode: number;
|
|
348
|
+
} | null | undefined;
|
|
349
|
+
}, {
|
|
350
|
+
loading: boolean;
|
|
351
|
+
data?: any;
|
|
352
|
+
error?: {
|
|
353
|
+
message: string;
|
|
354
|
+
statusCode: number;
|
|
355
|
+
} | null | undefined;
|
|
356
|
+
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
174
357
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
175
|
-
},
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
data: Record<string, string>;
|
|
360
|
+
}, {
|
|
361
|
+
data: Record<string, string>;
|
|
362
|
+
}>>>, z.ZodObject<{
|
|
176
363
|
data: z.ZodAny;
|
|
177
|
-
},
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
data?: any;
|
|
366
|
+
}, {
|
|
367
|
+
data?: any;
|
|
368
|
+
}>, z.ZodObject<{
|
|
178
369
|
data: z.ZodAny;
|
|
179
|
-
},
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
data?: any;
|
|
372
|
+
}, {
|
|
373
|
+
data?: any;
|
|
374
|
+
}>, z.ZodObject<{
|
|
180
375
|
numericValue: z.ZodNumber;
|
|
181
376
|
unit: z.ZodString;
|
|
182
|
-
},
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
numericValue: number;
|
|
379
|
+
unit: string;
|
|
380
|
+
}, {
|
|
381
|
+
numericValue: number;
|
|
382
|
+
unit: string;
|
|
383
|
+
}>, z.ZodObject<{
|
|
183
384
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
184
385
|
unit: z.ZodOptional<z.ZodString>;
|
|
185
|
-
},
|
|
186
|
-
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
numericValue?: number | undefined;
|
|
388
|
+
unit?: string | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
numericValue?: number | undefined;
|
|
391
|
+
unit?: string | undefined;
|
|
392
|
+
}>]>>;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
data: Record<string, string | number | boolean | {
|
|
395
|
+
type: string;
|
|
396
|
+
path: string;
|
|
397
|
+
originalFilename: string;
|
|
398
|
+
} | {
|
|
399
|
+
firstname: string;
|
|
400
|
+
surname: string;
|
|
401
|
+
middlename?: string | undefined;
|
|
402
|
+
} | {
|
|
403
|
+
firstname?: string | null | undefined;
|
|
404
|
+
surname?: string | null | undefined;
|
|
405
|
+
middlename?: string | null | undefined;
|
|
406
|
+
} | {
|
|
407
|
+
country: string;
|
|
408
|
+
addressType: "DOMESTIC";
|
|
409
|
+
administrativeArea: string;
|
|
410
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
411
|
+
} | {
|
|
412
|
+
country: string;
|
|
413
|
+
addressType: "INTERNATIONAL";
|
|
414
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
415
|
+
} | {
|
|
416
|
+
type: string;
|
|
417
|
+
option: string;
|
|
418
|
+
path: string;
|
|
419
|
+
originalFilename: string;
|
|
420
|
+
}[] | {
|
|
421
|
+
loading: boolean;
|
|
422
|
+
data?: any;
|
|
423
|
+
error?: {
|
|
424
|
+
message: string;
|
|
425
|
+
statusCode: number;
|
|
426
|
+
} | null | undefined;
|
|
427
|
+
} | {
|
|
428
|
+
data: Record<string, string>;
|
|
429
|
+
} | {
|
|
430
|
+
data?: any;
|
|
431
|
+
} | {
|
|
432
|
+
numericValue: number;
|
|
433
|
+
unit: string;
|
|
434
|
+
} | {
|
|
435
|
+
numericValue?: number | undefined;
|
|
436
|
+
unit?: string | undefined;
|
|
437
|
+
} | {
|
|
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
|
+
}>>>;
|
|
187
496
|
export type DataFieldValue = z.infer<typeof DataFieldValue>;
|
|
188
497
|
export type FieldValue = FieldValuesWithoutDataField | DataFieldValue;
|
|
189
498
|
export declare const FieldValue: z.ZodType<FieldValue>;
|
|
190
|
-
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.
|
|
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
|
|
499
|
+
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodType<z.TypeOf<T[number]>, z.ZodTypeDef, z.TypeOf<T[number]>>;
|
|
500
|
+
export type FieldUpdateValue = z.infer<typeof TextValue> | 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>;
|
|
192
501
|
export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
|
|
193
502
|
/**
|
|
194
503
|
* NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
|
|
@@ -199,6 +508,6 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
|
|
|
199
508
|
*
|
|
200
509
|
* FieldValueInputSchema uses Input types which have set optional values as nullish
|
|
201
510
|
* */
|
|
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 |
|
|
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;
|
|
203
512
|
export {};
|
|
204
513
|
//# sourceMappingURL=FieldValue.d.ts.map
|