@opencrvs/toolkit 1.9.3-rc.da977ad → 1.9.3-rc.e47111c
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 +2428 -28200
- 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 +1547 -23121
- package/dist/commons/events/ActionDocument.d.ts +1849 -840
- package/dist/commons/events/ActionInput.d.ts +1066 -290
- package/dist/commons/events/ActionType.d.ts +8 -91
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1244 -222
- package/dist/commons/events/CompositeFieldValue.d.ts +198 -25
- 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 +4169 -931
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
- package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
- package/dist/commons/events/Draft.d.ts +105 -72
- package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
- package/dist/commons/events/EventConfig.d.ts +2122 -18321
- package/dist/commons/events/EventConfigInput.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +1326 -336
- package/dist/commons/events/EventIndex.d.ts +967 -197
- package/dist/commons/events/EventInput.d.ts +8 -2
- package/dist/commons/events/EventMetadata.d.ts +346 -106
- package/dist/commons/events/FieldConfig.d.ts +12051 -4164
- package/dist/commons/events/FieldType.d.ts +5 -9
- package/dist/commons/events/FieldTypeMapping.d.ts +896 -172
- package/dist/commons/events/FieldValue.d.ts +405 -84
- package/dist/commons/events/FormConfig.d.ts +721 -12876
- package/dist/commons/events/PageConfig.d.ts +319 -8604
- package/dist/commons/events/SummaryConfig.d.ts +161 -14
- 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 +37 -74
- package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1619
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +163 -25171
- package/dist/commons/events/event.d.ts +4 -4
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +19 -15
- package/dist/commons/events/scopes.d.ts +1 -3
- package/dist/commons/events/state/availableActions.d.ts +1 -2
- package/dist/commons/events/state/flags.d.ts +3 -21
- package/dist/commons/events/state/index.d.ts +19 -23
- package/dist/commons/events/state/utils.d.ts +110 -142
- package/dist/commons/events/test.utils.d.ts +6 -23
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +385 -50384
- package/dist/commons/notification/UserNotifications.d.ts +636 -55
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +5 -38
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +1748 -1811
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1662 -1496
- package/dist/scopes/index.d.ts +138 -138
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +93 -123
- package/package.json +5 -5
- package/dist/commons/events/Flag.d.ts +0 -70
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue } from './CompositeFieldValue';
|
|
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,34 +13,46 @@ 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
|
-
export declare const DatetimeValue: z.
|
|
31
|
-
export declare const SelectDateRangeValue: z.ZodEnum<
|
|
32
|
-
last7Days: "last7Days";
|
|
33
|
-
last30Days: "last30Days";
|
|
34
|
-
last90Days: "last90Days";
|
|
35
|
-
last365Days: "last365Days";
|
|
36
|
-
}>;
|
|
41
|
+
export declare const DatetimeValue: z.ZodString;
|
|
42
|
+
export declare const SelectDateRangeValue: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
|
|
37
43
|
export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
|
|
38
|
-
start: z.
|
|
39
|
-
end: z.
|
|
40
|
-
},
|
|
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]>;
|
|
41
53
|
export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
|
|
42
54
|
export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
|
|
43
|
-
export declare const EmailValue: z.
|
|
55
|
+
export declare const EmailValue: z.ZodString;
|
|
44
56
|
export declare const CheckboxFieldValue: z.ZodBoolean;
|
|
45
57
|
export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
|
|
46
58
|
export declare const NumberFieldValue: z.ZodNumber;
|
|
@@ -49,143 +61,452 @@ export declare const SignatureFieldValue: z.ZodString;
|
|
|
49
61
|
export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
|
|
50
62
|
export declare const ButtonFieldValue: z.ZodNumber;
|
|
51
63
|
export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
|
|
52
|
-
export declare const VerificationStatusValue: z.ZodEnum<
|
|
53
|
-
failed: "failed";
|
|
54
|
-
verified: "verified";
|
|
55
|
-
authenticated: "authenticated";
|
|
56
|
-
pending: "pending";
|
|
57
|
-
}>;
|
|
64
|
+
export declare const VerificationStatusValue: z.ZodEnum<["verified", "authenticated", "failed", "pending"]>;
|
|
58
65
|
export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
|
|
59
|
-
declare const FieldValuesWithoutDataField: z.ZodUnion<
|
|
66
|
+
declare const FieldValuesWithoutDataField: z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
60
67
|
country: z.ZodString;
|
|
61
68
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
69
|
+
}, {
|
|
62
70
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
63
71
|
administrativeArea: z.ZodString;
|
|
64
|
-
}, z.
|
|
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
83
|
country: z.ZodString;
|
|
66
84
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
|
+
}, {
|
|
67
86
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
68
|
-
}
|
|
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
96
|
age: z.ZodNumber;
|
|
70
97
|
asOfDateRef: z.ZodString;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
+
numericValue: z.ZodNumber;
|
|
115
|
+
unit: z.ZodString;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
numericValue: number;
|
|
118
|
+
unit: string;
|
|
119
|
+
}, {
|
|
120
|
+
numericValue: number;
|
|
121
|
+
unit: string;
|
|
122
|
+
}>, z.ZodObject<{
|
|
123
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
numericValue?: number | undefined;
|
|
127
|
+
unit?: string | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
numericValue?: number | undefined;
|
|
130
|
+
unit?: string | undefined;
|
|
131
|
+
}>, z.ZodObject<{
|
|
132
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
81
133
|
originalFilename: z.ZodString;
|
|
82
134
|
type: z.ZodString;
|
|
83
|
-
},
|
|
84
|
-
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
type: string;
|
|
137
|
+
path: string;
|
|
138
|
+
originalFilename: string;
|
|
139
|
+
}, {
|
|
140
|
+
type: string;
|
|
141
|
+
path: string;
|
|
142
|
+
originalFilename: string;
|
|
143
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
144
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
85
145
|
originalFilename: z.ZodString;
|
|
86
146
|
type: z.ZodString;
|
|
87
147
|
option: z.ZodString;
|
|
88
|
-
},
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
type: string;
|
|
150
|
+
option: string;
|
|
151
|
+
path: string;
|
|
152
|
+
originalFilename: string;
|
|
153
|
+
}, {
|
|
154
|
+
type: string;
|
|
155
|
+
option: string;
|
|
156
|
+
path: string;
|
|
157
|
+
originalFilename: string;
|
|
158
|
+
}>, "many">, z.ZodObject<{
|
|
89
159
|
firstname: z.ZodString;
|
|
90
160
|
surname: z.ZodString;
|
|
91
161
|
middlename: z.ZodOptional<z.ZodString>;
|
|
92
|
-
},
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
firstname: string;
|
|
164
|
+
surname: string;
|
|
165
|
+
middlename?: string | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
firstname: string;
|
|
168
|
+
surname: string;
|
|
169
|
+
middlename?: string | undefined;
|
|
170
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
93
171
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
172
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
173
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
-
},
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
firstname?: string | null | undefined;
|
|
176
|
+
surname?: string | null | undefined;
|
|
177
|
+
middlename?: string | null | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
firstname?: string | null | undefined;
|
|
180
|
+
surname?: string | null | undefined;
|
|
181
|
+
middlename?: string | null | undefined;
|
|
182
|
+
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
97
183
|
loading: z.ZodBoolean;
|
|
98
184
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
185
|
statusCode: z.ZodNumber;
|
|
100
186
|
message: z.ZodString;
|
|
101
|
-
}, z.
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
message: string;
|
|
189
|
+
statusCode: number;
|
|
190
|
+
}, {
|
|
191
|
+
message: string;
|
|
192
|
+
statusCode: number;
|
|
193
|
+
}>>>;
|
|
102
194
|
data: z.ZodAny;
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
loading: boolean;
|
|
197
|
+
data?: any;
|
|
198
|
+
error?: {
|
|
199
|
+
message: string;
|
|
200
|
+
statusCode: number;
|
|
201
|
+
} | null | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
loading: boolean;
|
|
204
|
+
data?: any;
|
|
205
|
+
error?: {
|
|
206
|
+
message: string;
|
|
207
|
+
statusCode: number;
|
|
208
|
+
} | null | undefined;
|
|
209
|
+
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
109
210
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
110
|
-
},
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
data: Record<string, string>;
|
|
213
|
+
}, {
|
|
214
|
+
data: Record<string, string>;
|
|
215
|
+
}>>>, z.ZodObject<{
|
|
111
216
|
data: z.ZodAny;
|
|
112
|
-
},
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
data?: any;
|
|
219
|
+
}, {
|
|
220
|
+
data?: any;
|
|
221
|
+
}>, z.ZodObject<{
|
|
113
222
|
data: z.ZodAny;
|
|
114
|
-
}, z.
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
data?: any;
|
|
225
|
+
}, {
|
|
226
|
+
data?: any;
|
|
227
|
+
}>]>;
|
|
115
228
|
type FieldValuesWithoutDataField = z.infer<typeof FieldValuesWithoutDataField>;
|
|
116
229
|
export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
117
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
230
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
118
231
|
country: z.ZodString;
|
|
119
232
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
233
|
+
}, {
|
|
120
234
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
121
235
|
administrativeArea: z.ZodString;
|
|
122
|
-
}, z.
|
|
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<{
|
|
123
247
|
country: z.ZodString;
|
|
124
248
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
249
|
+
}, {
|
|
125
250
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
126
|
-
}
|
|
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<{
|
|
127
260
|
age: z.ZodNumber;
|
|
128
261
|
asOfDateRef: z.ZodString;
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
+
numericValue: z.ZodNumber;
|
|
279
|
+
unit: z.ZodString;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
numericValue: number;
|
|
282
|
+
unit: string;
|
|
283
|
+
}, {
|
|
284
|
+
numericValue: number;
|
|
285
|
+
unit: string;
|
|
286
|
+
}>, z.ZodObject<{
|
|
287
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
numericValue?: number | undefined;
|
|
291
|
+
unit?: string | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
numericValue?: number | undefined;
|
|
294
|
+
unit?: string | undefined;
|
|
295
|
+
}>, z.ZodObject<{
|
|
296
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
139
297
|
originalFilename: z.ZodString;
|
|
140
298
|
type: z.ZodString;
|
|
141
|
-
},
|
|
142
|
-
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
type: string;
|
|
301
|
+
path: string;
|
|
302
|
+
originalFilename: string;
|
|
303
|
+
}, {
|
|
304
|
+
type: string;
|
|
305
|
+
path: string;
|
|
306
|
+
originalFilename: string;
|
|
307
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
308
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
143
309
|
originalFilename: z.ZodString;
|
|
144
310
|
type: z.ZodString;
|
|
145
311
|
option: z.ZodString;
|
|
146
|
-
},
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
type: string;
|
|
314
|
+
option: string;
|
|
315
|
+
path: string;
|
|
316
|
+
originalFilename: string;
|
|
317
|
+
}, {
|
|
318
|
+
type: string;
|
|
319
|
+
option: string;
|
|
320
|
+
path: string;
|
|
321
|
+
originalFilename: string;
|
|
322
|
+
}>, "many">, z.ZodObject<{
|
|
147
323
|
firstname: z.ZodString;
|
|
148
324
|
surname: z.ZodString;
|
|
149
325
|
middlename: z.ZodOptional<z.ZodString>;
|
|
150
|
-
},
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
firstname: string;
|
|
328
|
+
surname: string;
|
|
329
|
+
middlename?: string | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
firstname: string;
|
|
332
|
+
surname: string;
|
|
333
|
+
middlename?: string | undefined;
|
|
334
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
151
335
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
336
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
337
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
-
},
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
firstname?: string | null | undefined;
|
|
340
|
+
surname?: string | null | undefined;
|
|
341
|
+
middlename?: string | null | undefined;
|
|
342
|
+
}, {
|
|
343
|
+
firstname?: string | null | undefined;
|
|
344
|
+
surname?: string | null | undefined;
|
|
345
|
+
middlename?: string | null | undefined;
|
|
346
|
+
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
155
347
|
loading: z.ZodBoolean;
|
|
156
348
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
157
349
|
statusCode: z.ZodNumber;
|
|
158
350
|
message: z.ZodString;
|
|
159
|
-
}, z.
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
message: string;
|
|
353
|
+
statusCode: number;
|
|
354
|
+
}, {
|
|
355
|
+
message: string;
|
|
356
|
+
statusCode: number;
|
|
357
|
+
}>>>;
|
|
160
358
|
data: z.ZodAny;
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
loading: boolean;
|
|
361
|
+
data?: any;
|
|
362
|
+
error?: {
|
|
363
|
+
message: string;
|
|
364
|
+
statusCode: number;
|
|
365
|
+
} | null | undefined;
|
|
366
|
+
}, {
|
|
367
|
+
loading: boolean;
|
|
368
|
+
data?: any;
|
|
369
|
+
error?: {
|
|
370
|
+
message: string;
|
|
371
|
+
statusCode: number;
|
|
372
|
+
} | null | undefined;
|
|
373
|
+
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
167
374
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
168
|
-
},
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
data: Record<string, string>;
|
|
377
|
+
}, {
|
|
378
|
+
data: Record<string, string>;
|
|
379
|
+
}>>>, z.ZodObject<{
|
|
169
380
|
data: z.ZodAny;
|
|
170
|
-
},
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
data?: any;
|
|
383
|
+
}, {
|
|
384
|
+
data?: any;
|
|
385
|
+
}>, z.ZodObject<{
|
|
171
386
|
data: z.ZodAny;
|
|
172
|
-
}, z.
|
|
173
|
-
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
data?: any;
|
|
389
|
+
}, {
|
|
390
|
+
data?: any;
|
|
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
|
+
}>>>;
|
|
174
495
|
export type DataFieldValue = z.infer<typeof DataFieldValue>;
|
|
175
496
|
export type FieldValue = FieldValuesWithoutDataField | DataFieldValue;
|
|
176
497
|
export declare const FieldValue: z.ZodType<FieldValue>;
|
|
177
|
-
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.
|
|
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
|
|
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>;
|
|
179
500
|
export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
|
|
180
501
|
/**
|
|
181
502
|
* NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
|
|
182
503
|
* */
|
|
183
|
-
export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof DataFieldValue | typeof NameFieldValue | z.ZodString | z.ZodBoolean;
|
|
504
|
+
export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof DataFieldValue | typeof NameFieldValue | z.ZodString | z.ZodBoolean;
|
|
184
505
|
/**
|
|
185
506
|
* NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
|
|
186
507
|
*
|
|
187
508
|
* FieldValueInputSchema uses Input types which have set optional values as nullish
|
|
188
509
|
* */
|
|
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 |
|
|
510
|
+
export type FieldUpdateValueSchema = typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | z.ZodString | z.ZodBoolean;
|
|
190
511
|
export {};
|
|
191
512
|
//# sourceMappingURL=FieldValue.d.ts.map
|