@opencrvs/toolkit 1.9.12-rc.ace398e → 1.9.12-rc.ad09474
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/build.sh +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/application-config/index.d.ts +2 -0
- package/dist/application-config/index.d.ts.map +1 -0
- package/dist/application-config/index.js +124 -0
- package/dist/commons/api/router.d.ts +3369 -2269
- package/dist/commons/application-config/index.d.ts +87 -0
- package/dist/commons/conditionals/conditionals.d.ts +27 -3
- package/dist/commons/conditionals/validate.d.ts +13 -2
- package/dist/commons/events/ActionConfig.d.ts +415 -1555
- package/dist/commons/events/ActionDocument.d.ts +889 -1942
- package/dist/commons/events/ActionInput.d.ts +277 -1073
- package/dist/commons/events/ActionType.d.ts +91 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +288 -1496
- package/dist/commons/events/AuditLog.d.ts +405 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +30 -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 +1345 -4495
- package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
- package/dist/commons/events/Draft.d.ts +73 -108
- package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
- package/dist/commons/events/EventConfig.d.ts +35 -2420
- package/dist/commons/events/EventConfigInput.d.ts +0 -3
- package/dist/commons/events/EventDocument.d.ts +354 -1366
- package/dist/commons/events/EventIndex.d.ts +208 -1014
- package/dist/commons/events/EventInput.d.ts +3 -8
- package/dist/commons/events/EventMetadata.d.ts +130 -357
- package/dist/commons/events/FieldConfig.d.ts +2776 -12896
- package/dist/commons/events/FieldType.d.ts +25 -4
- package/dist/commons/events/FieldTypeMapping.d.ts +289 -907
- package/dist/commons/events/FieldValue.d.ts +121 -527
- package/dist/commons/events/FileUtils.d.ts +2 -2
- package/dist/commons/events/Flag.d.ts +67 -0
- package/dist/commons/events/FormConfig.d.ts +54 -721
- package/dist/commons/events/PageConfig.d.ts +58 -320
- package/dist/commons/events/PlainDate.d.ts +1 -1
- 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 +2008 -7597
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +2 -243
- package/dist/commons/events/eventConfigValidation.d.ts +8 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/locations.d.ts +57 -20
- package/dist/commons/events/scopes.d.ts +35 -34
- package/dist/commons/events/state/availableActions.d.ts +7 -2
- package/dist/commons/events/state/flags.d.ts +21 -3
- package/dist/commons/events/state/index.d.ts +30 -27
- package/dist/commons/events/state/utils.d.ts +191 -173
- package/dist/commons/events/test.utils.d.ts +52 -11
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +413 -310
- package/dist/commons/notification/UserNotifications.d.ts +61 -637
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +294 -14
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +2721 -2099
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +2016 -1763
- package/dist/scopes/index.d.ts +623 -357
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +329 -301
- package/opencrvs-toolkit-1.9.12-rc.ad09474.tgz +0 -0
- package/package.json +11 -5
- package/tsconfig.json +9 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AddressFieldValue,
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { AddressFieldUpdateValue, AddressFieldValue, CustomFieldValue, FileFieldValue, FileFieldWithOptionValue, HttpFieldUpdateValue, IdReaderFieldValue, NameFieldUpdateValue, NameFieldValue, NumberWithUnitFieldUpdateValue, NumberWithUnitFieldValue, QrReaderFieldValue, QueryParamReaderFieldUpdateValue } from './CompositeFieldValue';
|
|
3
3
|
import { PlainDate, plainDateToLocalDate } from './PlainDate';
|
|
4
4
|
export { PlainDate, plainDateToLocalDate };
|
|
5
5
|
/**
|
|
@@ -15,652 +15,246 @@ export { PlainDate, plainDateToLocalDate };
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
export declare const TextValue: z.ZodString;
|
|
18
|
+
export declare const HiddenFieldValue: z.ZodString;
|
|
18
19
|
export declare const NonEmptyTextValue: z.ZodString;
|
|
20
|
+
export declare const DateValue: z.ZodISODate;
|
|
21
|
+
export type DateValue = z.infer<typeof DateValue>;
|
|
19
22
|
export declare const AgeValue: z.ZodObject<{
|
|
20
23
|
age: z.ZodNumber;
|
|
21
24
|
asOfDateRef: z.ZodString;
|
|
22
|
-
},
|
|
23
|
-
age: number;
|
|
24
|
-
asOfDateRef: string;
|
|
25
|
-
}, {
|
|
26
|
-
age: number;
|
|
27
|
-
asOfDateRef: string;
|
|
28
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
29
26
|
export type AgeValue = z.infer<typeof AgeValue>;
|
|
30
27
|
export declare const AgeUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
31
28
|
age: z.ZodNumber;
|
|
32
29
|
asOfDateRef: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
age: number;
|
|
35
|
-
asOfDateRef: string;
|
|
36
|
-
}, {
|
|
37
|
-
age: number;
|
|
38
|
-
asOfDateRef: string;
|
|
39
|
-
}>>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
40
31
|
export declare const TimeValue: z.ZodString;
|
|
41
32
|
export type TimeValue = z.infer<typeof TimeValue>;
|
|
42
|
-
export declare const DatetimeValue: z.
|
|
43
|
-
export declare const SelectDateRangeValue: z.ZodEnum<
|
|
33
|
+
export declare const DatetimeValue: z.ZodISODateTime;
|
|
34
|
+
export declare const SelectDateRangeValue: z.ZodEnum<{
|
|
35
|
+
last7Days: "last7Days";
|
|
36
|
+
last30Days: "last30Days";
|
|
37
|
+
last90Days: "last90Days";
|
|
38
|
+
last365Days: "last365Days";
|
|
39
|
+
}>;
|
|
44
40
|
export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
|
|
45
|
-
start: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
46
|
-
end: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
47
|
-
},
|
|
48
|
-
start: string & z.BRAND<"PlainDate">;
|
|
49
|
-
end: string & z.BRAND<"PlainDate">;
|
|
50
|
-
}, {
|
|
51
|
-
start: string;
|
|
52
|
-
end: string;
|
|
53
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>;
|
|
41
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
42
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
43
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>;
|
|
54
44
|
export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
|
|
55
45
|
export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
|
|
56
|
-
export declare const EmailValue: z.
|
|
46
|
+
export declare const EmailValue: z.ZodEmail;
|
|
57
47
|
export declare const CheckboxFieldValue: z.ZodBoolean;
|
|
58
48
|
export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
|
|
59
49
|
export declare const NumberFieldValue: z.ZodNumber;
|
|
60
50
|
export type NumberFieldValue = z.infer<typeof NumberFieldValue>;
|
|
61
|
-
export declare const SignatureFieldValue: z.ZodString;
|
|
62
|
-
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
|
+
verified: "verified";
|
|
55
|
+
authenticated: "authenticated";
|
|
56
|
+
failed: "failed";
|
|
57
|
+
pending: "pending";
|
|
58
|
+
}>;
|
|
66
59
|
export type VerificationStatusValue = z.infer<typeof VerificationStatusValue>;
|
|
67
|
-
declare const LeafFieldValues: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
60
|
+
declare const LeafFieldValues: 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.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
69
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, 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 & z.BRAND<"PlainDate">;
|
|
110
|
-
end: string & z.BRAND<"PlainDate">;
|
|
111
|
-
}, {
|
|
112
|
-
start: string;
|
|
113
|
-
end: string;
|
|
114
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>, 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.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
74
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
75
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
76
|
+
last7Days: "last7Days";
|
|
77
|
+
last30Days: "last30Days";
|
|
78
|
+
last90Days: "last90Days";
|
|
79
|
+
last365Days: "last365Days";
|
|
80
|
+
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
81
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
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.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
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
|
+
verified: "verified";
|
|
106
|
+
authenticated: "authenticated";
|
|
107
|
+
failed: "failed";
|
|
108
|
+
pending: "pending";
|
|
109
|
+
}>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
193
110
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}, {
|
|
197
|
-
data: Record<string, string>;
|
|
198
|
-
}>>>, z.ZodObject<{
|
|
111
|
+
updatedAt: z.ZodISODateTime;
|
|
112
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
199
113
|
data: z.ZodAny;
|
|
200
|
-
},
|
|
201
|
-
data?: any;
|
|
202
|
-
}, {
|
|
203
|
-
data?: any;
|
|
204
|
-
}>, z.ZodObject<{
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
115
|
data: z.ZodAny;
|
|
206
|
-
},
|
|
207
|
-
data?: any;
|
|
208
|
-
}, {
|
|
209
|
-
data?: any;
|
|
210
|
-
}>, z.ZodObject<{
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
211
117
|
numericValue: z.ZodNumber;
|
|
212
118
|
unit: z.ZodString;
|
|
213
|
-
},
|
|
214
|
-
numericValue: number;
|
|
215
|
-
unit: string;
|
|
216
|
-
}, {
|
|
217
|
-
numericValue: number;
|
|
218
|
-
unit: string;
|
|
219
|
-
}>, z.ZodObject<{
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
120
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
221
121
|
unit: z.ZodOptional<z.ZodString>;
|
|
222
|
-
},
|
|
223
|
-
numericValue?: number | undefined;
|
|
224
|
-
unit?: string | undefined;
|
|
225
|
-
}, {
|
|
226
|
-
numericValue?: number | undefined;
|
|
227
|
-
unit?: string | undefined;
|
|
228
|
-
}>]>;
|
|
122
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>;
|
|
229
123
|
type LeafFieldValues = z.infer<typeof LeafFieldValues>;
|
|
230
|
-
export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
124
|
+
export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
231
125
|
country: z.ZodString;
|
|
232
126
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
233
|
-
}, {
|
|
234
127
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
235
128
|
administrativeArea: z.ZodString;
|
|
236
|
-
}
|
|
237
|
-
country: string;
|
|
238
|
-
addressType: "DOMESTIC";
|
|
239
|
-
administrativeArea: string;
|
|
240
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
241
|
-
}, {
|
|
242
|
-
country: string;
|
|
243
|
-
addressType: "DOMESTIC";
|
|
244
|
-
administrativeArea: string;
|
|
245
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
246
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
130
|
country: z.ZodString;
|
|
248
131
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
249
|
-
}, {
|
|
250
132
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
251
|
-
}
|
|
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.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
133
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
260
134
|
age: z.ZodNumber;
|
|
261
135
|
asOfDateRef: z.ZodString;
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}, {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
start: string & z.BRAND<"PlainDate">;
|
|
273
|
-
end: string & z.BRAND<"PlainDate">;
|
|
274
|
-
}, {
|
|
275
|
-
start: string;
|
|
276
|
-
end: string;
|
|
277
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
278
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
136
|
+
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
137
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
138
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
139
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
140
|
+
last7Days: "last7Days";
|
|
141
|
+
last30Days: "last30Days";
|
|
142
|
+
last90Days: "last90Days";
|
|
143
|
+
last365Days: "last365Days";
|
|
144
|
+
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
145
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
279
146
|
originalFilename: z.ZodString;
|
|
280
147
|
type: z.ZodString;
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
path: string;
|
|
284
|
-
originalFilename: string;
|
|
285
|
-
}, {
|
|
286
|
-
type: string;
|
|
287
|
-
path: string;
|
|
288
|
-
originalFilename: string;
|
|
289
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
290
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
148
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
149
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
291
150
|
originalFilename: z.ZodString;
|
|
292
151
|
type: z.ZodString;
|
|
293
152
|
option: z.ZodString;
|
|
294
|
-
},
|
|
295
|
-
type: string;
|
|
296
|
-
option: string;
|
|
297
|
-
path: string;
|
|
298
|
-
originalFilename: string;
|
|
299
|
-
}, {
|
|
300
|
-
type: string;
|
|
301
|
-
option: string;
|
|
302
|
-
path: string;
|
|
303
|
-
originalFilename: string;
|
|
304
|
-
}>, "many">, z.ZodObject<{
|
|
153
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
305
154
|
firstname: z.ZodString;
|
|
306
155
|
surname: z.ZodString;
|
|
307
156
|
middlename: z.ZodOptional<z.ZodString>;
|
|
308
|
-
},
|
|
309
|
-
firstname: string;
|
|
310
|
-
surname: string;
|
|
311
|
-
middlename?: string | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
firstname: string;
|
|
314
|
-
surname: string;
|
|
315
|
-
middlename?: string | undefined;
|
|
316
|
-
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
157
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
317
158
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
159
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
160
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
-
},
|
|
321
|
-
firstname?: string | null | undefined;
|
|
322
|
-
surname?: string | null | undefined;
|
|
323
|
-
middlename?: string | null | undefined;
|
|
324
|
-
}, {
|
|
325
|
-
firstname?: string | null | undefined;
|
|
326
|
-
surname?: string | null | undefined;
|
|
327
|
-
middlename?: string | null | undefined;
|
|
328
|
-
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
161
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
329
162
|
loading: z.ZodBoolean;
|
|
330
163
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
331
164
|
statusCode: z.ZodNumber;
|
|
332
165
|
message: z.ZodString;
|
|
333
|
-
},
|
|
334
|
-
message: string;
|
|
335
|
-
statusCode: number;
|
|
336
|
-
}, {
|
|
337
|
-
message: string;
|
|
338
|
-
statusCode: number;
|
|
339
|
-
}>>>;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
340
167
|
data: z.ZodAny;
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
} | null | undefined;
|
|
348
|
-
}, {
|
|
349
|
-
loading: boolean;
|
|
350
|
-
data?: any;
|
|
351
|
-
error?: {
|
|
352
|
-
message: string;
|
|
353
|
-
statusCode: number;
|
|
354
|
-
} | null | undefined;
|
|
355
|
-
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
168
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
169
|
+
verified: "verified";
|
|
170
|
+
authenticated: "authenticated";
|
|
171
|
+
failed: "failed";
|
|
172
|
+
pending: "pending";
|
|
173
|
+
}>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
356
174
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}, {
|
|
360
|
-
data: Record<string, string>;
|
|
361
|
-
}>>>, z.ZodObject<{
|
|
175
|
+
updatedAt: z.ZodISODateTime;
|
|
176
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
362
177
|
data: z.ZodAny;
|
|
363
|
-
},
|
|
364
|
-
data?: any;
|
|
365
|
-
}, {
|
|
366
|
-
data?: any;
|
|
367
|
-
}>, z.ZodObject<{
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
368
179
|
data: z.ZodAny;
|
|
369
|
-
},
|
|
370
|
-
data?: any;
|
|
371
|
-
}, {
|
|
372
|
-
data?: any;
|
|
373
|
-
}>, z.ZodObject<{
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
374
181
|
numericValue: z.ZodNumber;
|
|
375
182
|
unit: z.ZodString;
|
|
376
|
-
},
|
|
377
|
-
numericValue: number;
|
|
378
|
-
unit: string;
|
|
379
|
-
}, {
|
|
380
|
-
numericValue: number;
|
|
381
|
-
unit: string;
|
|
382
|
-
}>, z.ZodObject<{
|
|
183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
184
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
384
185
|
unit: z.ZodOptional<z.ZodString>;
|
|
385
|
-
},
|
|
386
|
-
numericValue?: number | undefined;
|
|
387
|
-
unit?: string | undefined;
|
|
388
|
-
}, {
|
|
389
|
-
numericValue?: number | undefined;
|
|
390
|
-
unit?: string | undefined;
|
|
391
|
-
}>]>>;
|
|
186
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
|
|
392
187
|
export type FieldGroupValue = z.infer<typeof FieldGroupValue>;
|
|
393
188
|
export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
394
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
189
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
395
190
|
country: z.ZodString;
|
|
396
191
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
397
|
-
}, {
|
|
398
192
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
399
193
|
administrativeArea: z.ZodString;
|
|
400
|
-
}
|
|
401
|
-
country: string;
|
|
402
|
-
addressType: "DOMESTIC";
|
|
403
|
-
administrativeArea: string;
|
|
404
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
405
|
-
}, {
|
|
406
|
-
country: string;
|
|
407
|
-
addressType: "DOMESTIC";
|
|
408
|
-
administrativeArea: string;
|
|
409
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
410
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
411
195
|
country: z.ZodString;
|
|
412
196
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
413
|
-
}, {
|
|
414
197
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
415
|
-
}
|
|
416
|
-
country: string;
|
|
417
|
-
addressType: "INTERNATIONAL";
|
|
418
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
419
|
-
}, {
|
|
420
|
-
country: string;
|
|
421
|
-
addressType: "INTERNATIONAL";
|
|
422
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
423
|
-
}>]>, z.ZodString, z.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
198
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
424
199
|
age: z.ZodNumber;
|
|
425
200
|
asOfDateRef: z.ZodString;
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}, {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
start: string & z.BRAND<"PlainDate">;
|
|
437
|
-
end: string & z.BRAND<"PlainDate">;
|
|
438
|
-
}, {
|
|
439
|
-
start: string;
|
|
440
|
-
end: string;
|
|
441
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
442
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
201
|
+
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
202
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
203
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
204
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
205
|
+
last7Days: "last7Days";
|
|
206
|
+
last30Days: "last30Days";
|
|
207
|
+
last90Days: "last90Days";
|
|
208
|
+
last365Days: "last365Days";
|
|
209
|
+
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
210
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
443
211
|
originalFilename: z.ZodString;
|
|
444
212
|
type: z.ZodString;
|
|
445
|
-
},
|
|
446
|
-
|
|
447
|
-
path: string;
|
|
448
|
-
originalFilename: string;
|
|
449
|
-
}, {
|
|
450
|
-
type: string;
|
|
451
|
-
path: string;
|
|
452
|
-
originalFilename: string;
|
|
453
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
454
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
213
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
214
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
455
215
|
originalFilename: z.ZodString;
|
|
456
216
|
type: z.ZodString;
|
|
457
217
|
option: z.ZodString;
|
|
458
|
-
},
|
|
459
|
-
type: string;
|
|
460
|
-
option: string;
|
|
461
|
-
path: string;
|
|
462
|
-
originalFilename: string;
|
|
463
|
-
}, {
|
|
464
|
-
type: string;
|
|
465
|
-
option: string;
|
|
466
|
-
path: string;
|
|
467
|
-
originalFilename: string;
|
|
468
|
-
}>, "many">, z.ZodObject<{
|
|
218
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
469
219
|
firstname: z.ZodString;
|
|
470
220
|
surname: z.ZodString;
|
|
471
221
|
middlename: z.ZodOptional<z.ZodString>;
|
|
472
|
-
},
|
|
473
|
-
firstname: string;
|
|
474
|
-
surname: string;
|
|
475
|
-
middlename?: string | undefined;
|
|
476
|
-
}, {
|
|
477
|
-
firstname: string;
|
|
478
|
-
surname: string;
|
|
479
|
-
middlename?: string | undefined;
|
|
480
|
-
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
222
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
481
223
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
482
224
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
225
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
484
|
-
},
|
|
485
|
-
firstname?: string | null | undefined;
|
|
486
|
-
surname?: string | null | undefined;
|
|
487
|
-
middlename?: string | null | undefined;
|
|
488
|
-
}, {
|
|
489
|
-
firstname?: string | null | undefined;
|
|
490
|
-
surname?: string | null | undefined;
|
|
491
|
-
middlename?: string | null | undefined;
|
|
492
|
-
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
226
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
493
227
|
loading: z.ZodBoolean;
|
|
494
228
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
495
229
|
statusCode: z.ZodNumber;
|
|
496
230
|
message: z.ZodString;
|
|
497
|
-
},
|
|
498
|
-
message: string;
|
|
499
|
-
statusCode: number;
|
|
500
|
-
}, {
|
|
501
|
-
message: string;
|
|
502
|
-
statusCode: number;
|
|
503
|
-
}>>>;
|
|
231
|
+
}, z.core.$strip>>>;
|
|
504
232
|
data: z.ZodAny;
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
} | null | undefined;
|
|
512
|
-
}, {
|
|
513
|
-
loading: boolean;
|
|
514
|
-
data?: any;
|
|
515
|
-
error?: {
|
|
516
|
-
message: string;
|
|
517
|
-
statusCode: number;
|
|
518
|
-
} | null | undefined;
|
|
519
|
-
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
233
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
234
|
+
verified: "verified";
|
|
235
|
+
authenticated: "authenticated";
|
|
236
|
+
failed: "failed";
|
|
237
|
+
pending: "pending";
|
|
238
|
+
}>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
520
239
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}, {
|
|
524
|
-
data: Record<string, string>;
|
|
525
|
-
}>>>, z.ZodObject<{
|
|
240
|
+
updatedAt: z.ZodISODateTime;
|
|
241
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
526
242
|
data: z.ZodAny;
|
|
527
|
-
},
|
|
528
|
-
data?: any;
|
|
529
|
-
}, {
|
|
530
|
-
data?: any;
|
|
531
|
-
}>, z.ZodObject<{
|
|
243
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
532
244
|
data: z.ZodAny;
|
|
533
|
-
},
|
|
534
|
-
data?: any;
|
|
535
|
-
}, {
|
|
536
|
-
data?: any;
|
|
537
|
-
}>, z.ZodObject<{
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
246
|
numericValue: z.ZodNumber;
|
|
539
247
|
unit: z.ZodString;
|
|
540
|
-
},
|
|
541
|
-
numericValue: number;
|
|
542
|
-
unit: string;
|
|
543
|
-
}, {
|
|
544
|
-
numericValue: number;
|
|
545
|
-
unit: string;
|
|
546
|
-
}>, z.ZodObject<{
|
|
248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
547
249
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
548
250
|
unit: z.ZodOptional<z.ZodString>;
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
unit?: string | undefined;
|
|
552
|
-
}, {
|
|
553
|
-
numericValue?: number | undefined;
|
|
554
|
-
unit?: string | undefined;
|
|
555
|
-
}>]>>;
|
|
556
|
-
}, "strip", z.ZodTypeAny, {
|
|
557
|
-
data: Record<string, string | number | boolean | {
|
|
558
|
-
type: string;
|
|
559
|
-
path: string;
|
|
560
|
-
originalFilename: string;
|
|
561
|
-
} | {
|
|
562
|
-
firstname: string;
|
|
563
|
-
surname: string;
|
|
564
|
-
middlename?: string | undefined;
|
|
565
|
-
} | {
|
|
566
|
-
firstname?: string | null | undefined;
|
|
567
|
-
surname?: string | null | undefined;
|
|
568
|
-
middlename?: string | null | undefined;
|
|
569
|
-
} | {
|
|
570
|
-
country: string;
|
|
571
|
-
addressType: "DOMESTIC";
|
|
572
|
-
administrativeArea: string;
|
|
573
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
574
|
-
} | {
|
|
575
|
-
country: string;
|
|
576
|
-
addressType: "INTERNATIONAL";
|
|
577
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
578
|
-
} | {
|
|
579
|
-
type: string;
|
|
580
|
-
option: string;
|
|
581
|
-
path: string;
|
|
582
|
-
originalFilename: string;
|
|
583
|
-
}[] | {
|
|
584
|
-
loading: boolean;
|
|
585
|
-
data?: any;
|
|
586
|
-
error?: {
|
|
587
|
-
message: string;
|
|
588
|
-
statusCode: number;
|
|
589
|
-
} | null | undefined;
|
|
590
|
-
} | {
|
|
591
|
-
data: Record<string, string>;
|
|
592
|
-
} | {
|
|
593
|
-
data?: any;
|
|
594
|
-
} | {
|
|
595
|
-
numericValue: number;
|
|
596
|
-
unit: string;
|
|
597
|
-
} | {
|
|
598
|
-
numericValue?: number | undefined;
|
|
599
|
-
unit?: string | undefined;
|
|
600
|
-
} | (string & z.BRAND<"PlainDate">) | {
|
|
601
|
-
age: number;
|
|
602
|
-
asOfDateRef: string;
|
|
603
|
-
} | {
|
|
604
|
-
start: string & z.BRAND<"PlainDate">;
|
|
605
|
-
end: string & z.BRAND<"PlainDate">;
|
|
606
|
-
} | null | undefined>;
|
|
607
|
-
}, {
|
|
608
|
-
data: Record<string, string | number | boolean | {
|
|
609
|
-
type: string;
|
|
610
|
-
path: string;
|
|
611
|
-
originalFilename: string;
|
|
612
|
-
} | {
|
|
613
|
-
firstname: string;
|
|
614
|
-
surname: string;
|
|
615
|
-
middlename?: string | undefined;
|
|
616
|
-
} | {
|
|
617
|
-
firstname?: string | null | undefined;
|
|
618
|
-
surname?: string | null | undefined;
|
|
619
|
-
middlename?: string | null | undefined;
|
|
620
|
-
} | {
|
|
621
|
-
country: string;
|
|
622
|
-
addressType: "DOMESTIC";
|
|
623
|
-
administrativeArea: string;
|
|
624
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
625
|
-
} | {
|
|
626
|
-
country: string;
|
|
627
|
-
addressType: "INTERNATIONAL";
|
|
628
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
629
|
-
} | {
|
|
630
|
-
type: string;
|
|
631
|
-
option: string;
|
|
632
|
-
path: string;
|
|
633
|
-
originalFilename: string;
|
|
634
|
-
}[] | {
|
|
635
|
-
loading: boolean;
|
|
636
|
-
data?: any;
|
|
637
|
-
error?: {
|
|
638
|
-
message: string;
|
|
639
|
-
statusCode: number;
|
|
640
|
-
} | null | undefined;
|
|
641
|
-
} | {
|
|
642
|
-
data: Record<string, string>;
|
|
643
|
-
} | {
|
|
644
|
-
data?: any;
|
|
645
|
-
} | {
|
|
646
|
-
numericValue: number;
|
|
647
|
-
unit: string;
|
|
648
|
-
} | {
|
|
649
|
-
numericValue?: number | undefined;
|
|
650
|
-
unit?: string | undefined;
|
|
651
|
-
} | {
|
|
652
|
-
age: number;
|
|
653
|
-
asOfDateRef: string;
|
|
654
|
-
} | {
|
|
655
|
-
start: string;
|
|
656
|
-
end: string;
|
|
657
|
-
} | null | undefined>;
|
|
658
|
-
}>>>;
|
|
251
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
|
|
252
|
+
}, z.core.$strip>>>;
|
|
659
253
|
export type DataFieldValue = z.infer<typeof DataFieldValue>;
|
|
660
254
|
export type FieldValue = LeafFieldValues | DataFieldValue | FieldGroupValue;
|
|
661
255
|
export declare const FieldValue: z.ZodType<FieldValue>;
|
|
662
|
-
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.
|
|
663
|
-
export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | 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> | DataFieldValue | FieldGroupValue | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue>;
|
|
256
|
+
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodAny;
|
|
257
|
+
export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | 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> | DataFieldValue | FieldGroupValue | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue> | z.infer<typeof CustomFieldValue> | z.infer<typeof HiddenFieldValue>;
|
|
664
258
|
export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
|
|
665
259
|
/**
|
|
666
260
|
* NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
|
|
@@ -671,5 +265,5 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
|
|
|
671
265
|
*
|
|
672
266
|
* FieldValueInputSchema uses Input types which have set optional values as nullish
|
|
673
267
|
* */
|
|
674
|
-
export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | z.ZodString | z.ZodBoolean;
|
|
268
|
+
export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | typeof DateValue | typeof EmailValue | typeof CustomFieldValue | z.ZodString | z.ZodBoolean;
|
|
675
269
|
//# sourceMappingURL=FieldValue.d.ts.map
|