@opencrvs/toolkit 1.9.12-rc.f1e116d → 1.9.12-rc.f5ca5e6
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 +3163 -2251
- 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 +888 -1941
- 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 +223 -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 +72 -107
- 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 +2674 -12697
- 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 +33 -33
- 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 +190 -172
- 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 +55 -636
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +587 -14
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +2703 -1897
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +2001 -1559
- package/dist/scopes/index.d.ts +352 -302
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +444 -210
- package/opencrvs-toolkit-1.9.12-rc.f5ca5e6.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,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AddressField,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { AddressField, AdministrativeAreaField, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, LocationInput, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, NumberWithUnitField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, AlphaPrintButton, HttpField, SearchField, ButtonField, LinkButtonField, VerificationStatus, QueryParamReaderField, QrReaderField, IdReaderField, LoaderField, AgeField, FieldGroup, CustomField, HiddenField, ImageViewField, Heading, UserRoleField } from './FieldConfig';
|
|
3
|
+
import { FieldType } from './FieldType';
|
|
4
|
+
import { CheckboxFieldValue, EmailValue, FieldValue, NumberFieldValue, TextValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, TimeValue, ButtonFieldValue, VerificationStatusValue, AgeValue, FieldUpdateValue, DateValue } from './FieldValue';
|
|
5
|
+
import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, HttpFieldUpdateValue, NumberWithUnitFieldValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue, CustomFieldValue } from './CompositeFieldValue';
|
|
6
|
+
import { DynamicNameValue, DynamicAddressFieldValue } from './DynamicFieldValue';
|
|
5
7
|
import { ActionType } from './ActionType';
|
|
8
|
+
import { EventConfig } from './EventConfig';
|
|
6
9
|
/**
|
|
7
10
|
* FieldTypeMapping.ts should include functions that map field types to different formats dynamically.
|
|
8
11
|
* File is separated from FieldType and FieldConfig to avoid circular dependencies.
|
|
@@ -13,1048 +16,403 @@ import { ActionType } from './ActionType';
|
|
|
13
16
|
* Mapping of field types to Zod schema.
|
|
14
17
|
* Useful for building dynamic validations against FieldConfig
|
|
15
18
|
*/
|
|
16
|
-
export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodObject<
|
|
17
|
-
|
|
18
|
-
}, {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
}> | z.ZodObject<{
|
|
21
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
19
|
+
export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodBoolean | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodObject<{
|
|
20
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
22
21
|
originalFilename: z.ZodString;
|
|
23
22
|
type: z.ZodString;
|
|
24
|
-
},
|
|
25
|
-
type: string;
|
|
26
|
-
path: string;
|
|
27
|
-
originalFilename: string;
|
|
28
|
-
}, {
|
|
29
|
-
type: string;
|
|
30
|
-
path: string;
|
|
31
|
-
originalFilename: string;
|
|
32
|
-
}> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
34
|
-
originalFilename: z.ZodString;
|
|
35
|
-
type: z.ZodString;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
type: string;
|
|
38
|
-
path: string;
|
|
39
|
-
originalFilename: string;
|
|
40
|
-
}, {
|
|
41
|
-
type: string;
|
|
42
|
-
path: string;
|
|
43
|
-
originalFilename: string;
|
|
44
|
-
}>>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
23
|
+
}, z.core.$strip> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
45
24
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
25
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
26
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
},
|
|
49
|
-
firstname?: string | null | undefined;
|
|
50
|
-
surname?: string | null | undefined;
|
|
51
|
-
middlename?: string | null | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
firstname?: string | null | undefined;
|
|
54
|
-
surname?: string | null | undefined;
|
|
55
|
-
middlename?: string | null | undefined;
|
|
56
|
-
}>, z.ZodNull]>, z.ZodUndefined]> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
57
|
-
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
-
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
firstname?: string | null | undefined;
|
|
62
|
-
surname?: string | null | undefined;
|
|
63
|
-
middlename?: string | null | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
firstname?: string | null | undefined;
|
|
66
|
-
surname?: string | null | undefined;
|
|
67
|
-
middlename?: string | null | undefined;
|
|
68
|
-
}>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodEffects<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
27
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
28
|
country: z.ZodString;
|
|
70
29
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
71
|
-
}, {
|
|
72
30
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
73
31
|
administrativeArea: z.ZodString;
|
|
74
|
-
}
|
|
75
|
-
country: string;
|
|
76
|
-
addressType: "DOMESTIC";
|
|
77
|
-
administrativeArea: string;
|
|
78
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
country: string;
|
|
81
|
-
addressType: "DOMESTIC";
|
|
82
|
-
administrativeArea: string;
|
|
83
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
84
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
33
|
country: z.ZodString;
|
|
86
34
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
87
|
-
}, {
|
|
88
35
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
89
|
-
}
|
|
90
|
-
country: string;
|
|
91
|
-
addressType: "INTERNATIONAL";
|
|
92
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
country: string;
|
|
95
|
-
addressType: "INTERNATIONAL";
|
|
96
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
97
|
-
}>]>, {
|
|
98
|
-
country: string;
|
|
99
|
-
addressType: "DOMESTIC";
|
|
100
|
-
administrativeArea: string;
|
|
101
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
102
|
-
} | {
|
|
103
|
-
country: string;
|
|
104
|
-
addressType: "INTERNATIONAL";
|
|
105
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
106
|
-
}, {
|
|
107
|
-
country: string;
|
|
108
|
-
addressType: "DOMESTIC";
|
|
109
|
-
administrativeArea: string;
|
|
110
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
111
|
-
} | {
|
|
112
|
-
country: string;
|
|
113
|
-
addressType: "INTERNATIONAL";
|
|
114
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
115
|
-
}> | z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
36
|
+
}, z.core.$strip>], "addressType"> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
116
37
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
38
|
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
118
|
-
}, {
|
|
119
39
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
120
40
|
administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
}
|
|
122
|
-
addressType: "DOMESTIC";
|
|
123
|
-
country?: string | null | undefined;
|
|
124
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
125
|
-
administrativeArea?: string | null | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
addressType: "DOMESTIC";
|
|
128
|
-
country?: string | null | undefined;
|
|
129
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
130
|
-
administrativeArea?: string | null | undefined;
|
|
131
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
132
42
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
43
|
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
134
|
-
}, {
|
|
135
44
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
country?: string | null | undefined;
|
|
139
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
140
|
-
}, {
|
|
141
|
-
addressType: "INTERNATIONAL";
|
|
142
|
-
country?: string | null | undefined;
|
|
143
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
144
|
-
}>]>>>, {
|
|
145
|
-
addressType: "DOMESTIC";
|
|
146
|
-
country?: string | null | undefined;
|
|
147
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
148
|
-
administrativeArea?: string | null | undefined;
|
|
149
|
-
} | {
|
|
150
|
-
addressType: "INTERNATIONAL";
|
|
151
|
-
country?: string | null | undefined;
|
|
152
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
153
|
-
} | null | undefined, {
|
|
154
|
-
addressType: "DOMESTIC";
|
|
155
|
-
country?: string | null | undefined;
|
|
156
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
157
|
-
administrativeArea?: string | null | undefined;
|
|
158
|
-
} | {
|
|
159
|
-
addressType: "INTERNATIONAL";
|
|
160
|
-
country?: string | null | undefined;
|
|
161
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
162
|
-
} | null | undefined> | z.ZodArray<z.ZodObject<{
|
|
163
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
164
|
-
originalFilename: z.ZodString;
|
|
165
|
-
type: z.ZodString;
|
|
166
|
-
option: z.ZodString;
|
|
167
|
-
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
type: string;
|
|
169
|
-
option: string;
|
|
170
|
-
path: string;
|
|
171
|
-
originalFilename: string;
|
|
172
|
-
}, {
|
|
173
|
-
type: string;
|
|
174
|
-
option: string;
|
|
175
|
-
path: string;
|
|
176
|
-
originalFilename: string;
|
|
177
|
-
}>, "many"> | z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
178
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
45
|
+
}, z.core.$strip>], "addressType">>> | z.ZodArray<z.ZodObject<{
|
|
46
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
179
47
|
originalFilename: z.ZodString;
|
|
180
48
|
type: z.ZodString;
|
|
181
49
|
option: z.ZodString;
|
|
182
|
-
},
|
|
183
|
-
type: string;
|
|
184
|
-
option: string;
|
|
185
|
-
path: string;
|
|
186
|
-
originalFilename: string;
|
|
187
|
-
}, {
|
|
188
|
-
type: string;
|
|
189
|
-
option: string;
|
|
190
|
-
path: string;
|
|
191
|
-
originalFilename: string;
|
|
192
|
-
}>, "many">>> | z.ZodBoolean | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
50
|
+
}, z.core.$strip>> | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
193
51
|
loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
194
52
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
195
53
|
statusCode: z.ZodNumber;
|
|
196
54
|
message: z.ZodString;
|
|
197
|
-
},
|
|
198
|
-
message: string;
|
|
199
|
-
statusCode: number;
|
|
200
|
-
}, {
|
|
201
|
-
message: string;
|
|
202
|
-
statusCode: number;
|
|
203
|
-
}>>>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
204
56
|
data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
205
|
-
},
|
|
206
|
-
data?: any;
|
|
207
|
-
error?: {
|
|
208
|
-
message: string;
|
|
209
|
-
statusCode: number;
|
|
210
|
-
} | null | undefined;
|
|
211
|
-
loading?: boolean | null | undefined;
|
|
212
|
-
}, {
|
|
213
|
-
data?: any;
|
|
214
|
-
error?: {
|
|
215
|
-
message: string;
|
|
216
|
-
statusCode: number;
|
|
217
|
-
} | null | undefined;
|
|
218
|
-
loading?: boolean | null | undefined;
|
|
219
|
-
}>, z.ZodNull]>, z.ZodUndefined]> | z.ZodObject<{
|
|
57
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodObject<{
|
|
220
58
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
221
|
-
},
|
|
222
|
-
data: Record<string, string>;
|
|
223
|
-
}, {
|
|
224
|
-
data: Record<string, string>;
|
|
225
|
-
}> | z.ZodObject<{
|
|
226
|
-
data: z.ZodAny;
|
|
227
|
-
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
data?: any;
|
|
229
|
-
}, {
|
|
230
|
-
data?: any;
|
|
231
|
-
}> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
59
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
232
60
|
data: z.ZodAny;
|
|
233
|
-
},
|
|
234
|
-
data?: any;
|
|
235
|
-
}, {
|
|
236
|
-
data?: any;
|
|
237
|
-
}>>> | z.ZodObject<{
|
|
61
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
238
62
|
numericValue: z.ZodNumber;
|
|
239
63
|
unit: z.ZodString;
|
|
240
|
-
},
|
|
241
|
-
numericValue: number;
|
|
242
|
-
unit: string;
|
|
243
|
-
}, {
|
|
244
|
-
numericValue: number;
|
|
245
|
-
unit: string;
|
|
246
|
-
}> | z.ZodObject<{
|
|
247
|
-
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
249
|
-
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
numericValue?: number | undefined;
|
|
251
|
-
unit?: string | undefined;
|
|
252
|
-
}, {
|
|
253
|
-
numericValue?: number | undefined;
|
|
254
|
-
unit?: string | undefined;
|
|
255
|
-
}> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
256
|
-
numericValue: z.ZodNumber;
|
|
257
|
-
unit: z.ZodString;
|
|
258
|
-
}, "strip", z.ZodTypeAny, {
|
|
259
|
-
numericValue: number;
|
|
260
|
-
unit: string;
|
|
261
|
-
}, {
|
|
262
|
-
numericValue: number;
|
|
263
|
-
unit: string;
|
|
264
|
-
}>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
265
65
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
266
66
|
unit: z.ZodOptional<z.ZodString>;
|
|
267
|
-
},
|
|
268
|
-
numericValue?: number | undefined;
|
|
269
|
-
unit?: string | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
numericValue?: number | undefined;
|
|
272
|
-
unit?: string | undefined;
|
|
273
|
-
}>>> | z.ZodBranded<z.ZodString, "PlainDate"> | z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "PlainDate">>> | z.ZodObject<{
|
|
67
|
+
}, z.core.$strip> | z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"> | z.ZodObject<{
|
|
274
68
|
age: z.ZodNumber;
|
|
275
69
|
asOfDateRef: z.ZodString;
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
age: number;
|
|
287
|
-
asOfDateRef: string;
|
|
288
|
-
}, {
|
|
289
|
-
age: number;
|
|
290
|
-
asOfDateRef: string;
|
|
291
|
-
}>>> | z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]> | z.ZodUnion<[z.ZodObject<{
|
|
292
|
-
start: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
293
|
-
end: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
294
|
-
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
start: string & z.BRAND<"PlainDate">;
|
|
296
|
-
end: string & z.BRAND<"PlainDate">;
|
|
297
|
-
}, {
|
|
298
|
-
start: string;
|
|
299
|
-
end: string;
|
|
300
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
301
|
-
start: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
302
|
-
end: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
start: string & z.BRAND<"PlainDate">;
|
|
305
|
-
end: string & z.BRAND<"PlainDate">;
|
|
306
|
-
}, {
|
|
307
|
-
start: string;
|
|
308
|
-
end: string;
|
|
309
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>>> | z.ZodOptional<z.ZodNullable<z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
310
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
70
|
+
}, z.core.$strip> | z.ZodEnum<{
|
|
71
|
+
last7Days: "last7Days";
|
|
72
|
+
last30Days: "last30Days";
|
|
73
|
+
last90Days: "last90Days";
|
|
74
|
+
last365Days: "last365Days";
|
|
75
|
+
}> | z.ZodUnion<[z.ZodObject<{
|
|
76
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
77
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
78
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]> | z.ZodEmail | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
79
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
80
|
country: z.ZodString;
|
|
312
81
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
313
|
-
}, {
|
|
314
82
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
315
83
|
administrativeArea: z.ZodString;
|
|
316
|
-
}
|
|
317
|
-
country: string;
|
|
318
|
-
addressType: "DOMESTIC";
|
|
319
|
-
administrativeArea: string;
|
|
320
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
321
|
-
}, {
|
|
322
|
-
country: string;
|
|
323
|
-
addressType: "DOMESTIC";
|
|
324
|
-
administrativeArea: string;
|
|
325
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
326
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
85
|
country: z.ZodString;
|
|
328
86
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
329
|
-
}, {
|
|
330
87
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
331
|
-
}
|
|
332
|
-
country: string;
|
|
333
|
-
addressType: "INTERNATIONAL";
|
|
334
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
335
|
-
}, {
|
|
336
|
-
country: string;
|
|
337
|
-
addressType: "INTERNATIONAL";
|
|
338
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
339
|
-
}>]>, z.ZodString, z.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
88
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
340
89
|
age: z.ZodNumber;
|
|
341
90
|
asOfDateRef: z.ZodString;
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}, {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
start: string & z.BRAND<"PlainDate">;
|
|
353
|
-
end: string & z.BRAND<"PlainDate">;
|
|
354
|
-
}, {
|
|
355
|
-
start: string;
|
|
356
|
-
end: string;
|
|
357
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
358
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
91
|
+
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
92
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
93
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
94
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
95
|
+
last7Days: "last7Days";
|
|
96
|
+
last30Days: "last30Days";
|
|
97
|
+
last90Days: "last90Days";
|
|
98
|
+
last365Days: "last365Days";
|
|
99
|
+
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
100
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
359
101
|
originalFilename: z.ZodString;
|
|
360
102
|
type: z.ZodString;
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
path: string;
|
|
364
|
-
originalFilename: string;
|
|
365
|
-
}, {
|
|
366
|
-
type: string;
|
|
367
|
-
path: string;
|
|
368
|
-
originalFilename: string;
|
|
369
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
370
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
103
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
104
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
371
105
|
originalFilename: z.ZodString;
|
|
372
106
|
type: z.ZodString;
|
|
373
107
|
option: z.ZodString;
|
|
374
|
-
},
|
|
375
|
-
type: string;
|
|
376
|
-
option: string;
|
|
377
|
-
path: string;
|
|
378
|
-
originalFilename: string;
|
|
379
|
-
}, {
|
|
380
|
-
type: string;
|
|
381
|
-
option: string;
|
|
382
|
-
path: string;
|
|
383
|
-
originalFilename: string;
|
|
384
|
-
}>, "many">, z.ZodObject<{
|
|
108
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
385
109
|
firstname: z.ZodString;
|
|
386
110
|
surname: z.ZodString;
|
|
387
111
|
middlename: z.ZodOptional<z.ZodString>;
|
|
388
|
-
},
|
|
389
|
-
firstname: string;
|
|
390
|
-
surname: string;
|
|
391
|
-
middlename?: string | undefined;
|
|
392
|
-
}, {
|
|
393
|
-
firstname: string;
|
|
394
|
-
surname: string;
|
|
395
|
-
middlename?: string | undefined;
|
|
396
|
-
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
112
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
397
113
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
114
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
115
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
-
},
|
|
401
|
-
firstname?: string | null | undefined;
|
|
402
|
-
surname?: string | null | undefined;
|
|
403
|
-
middlename?: string | null | undefined;
|
|
404
|
-
}, {
|
|
405
|
-
firstname?: string | null | undefined;
|
|
406
|
-
surname?: string | null | undefined;
|
|
407
|
-
middlename?: string | null | undefined;
|
|
408
|
-
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
116
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
409
117
|
loading: z.ZodBoolean;
|
|
410
118
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
411
119
|
statusCode: z.ZodNumber;
|
|
412
120
|
message: z.ZodString;
|
|
413
|
-
},
|
|
414
|
-
message: string;
|
|
415
|
-
statusCode: number;
|
|
416
|
-
}, {
|
|
417
|
-
message: string;
|
|
418
|
-
statusCode: number;
|
|
419
|
-
}>>>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
420
122
|
data: z.ZodAny;
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
} | null | undefined;
|
|
428
|
-
}, {
|
|
429
|
-
loading: boolean;
|
|
430
|
-
data?: any;
|
|
431
|
-
error?: {
|
|
432
|
-
message: string;
|
|
433
|
-
statusCode: number;
|
|
434
|
-
} | null | undefined;
|
|
435
|
-
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
123
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
124
|
+
verified: "verified";
|
|
125
|
+
authenticated: "authenticated";
|
|
126
|
+
failed: "failed";
|
|
127
|
+
pending: "pending";
|
|
128
|
+
}>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
436
129
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}, {
|
|
440
|
-
data: Record<string, string>;
|
|
441
|
-
}>>>, z.ZodObject<{
|
|
130
|
+
updatedAt: z.ZodISODateTime;
|
|
131
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
442
132
|
data: z.ZodAny;
|
|
443
|
-
},
|
|
444
|
-
data?: any;
|
|
445
|
-
}, {
|
|
446
|
-
data?: any;
|
|
447
|
-
}>, z.ZodObject<{
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
448
134
|
data: z.ZodAny;
|
|
449
|
-
},
|
|
450
|
-
data?: any;
|
|
451
|
-
}, {
|
|
452
|
-
data?: any;
|
|
453
|
-
}>, z.ZodObject<{
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
454
136
|
numericValue: z.ZodNumber;
|
|
455
137
|
unit: z.ZodString;
|
|
456
|
-
},
|
|
457
|
-
numericValue: number;
|
|
458
|
-
unit: string;
|
|
459
|
-
}, {
|
|
460
|
-
numericValue: number;
|
|
461
|
-
unit: string;
|
|
462
|
-
}>, z.ZodObject<{
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
463
139
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
464
140
|
unit: z.ZodOptional<z.ZodString>;
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
path: string;
|
|
498
|
-
originalFilename: string;
|
|
499
|
-
}[] | {
|
|
500
|
-
loading: boolean;
|
|
501
|
-
data?: any;
|
|
502
|
-
error?: {
|
|
503
|
-
message: string;
|
|
504
|
-
statusCode: number;
|
|
505
|
-
} | null | undefined;
|
|
506
|
-
} | {
|
|
507
|
-
data: Record<string, string>;
|
|
508
|
-
} | {
|
|
509
|
-
data?: any;
|
|
510
|
-
} | {
|
|
511
|
-
numericValue: number;
|
|
512
|
-
unit: string;
|
|
513
|
-
} | {
|
|
514
|
-
numericValue?: number | undefined;
|
|
515
|
-
unit?: string | undefined;
|
|
516
|
-
} | (string & z.BRAND<"PlainDate">) | {
|
|
517
|
-
age: number;
|
|
518
|
-
asOfDateRef: string;
|
|
519
|
-
} | {
|
|
520
|
-
start: string & z.BRAND<"PlainDate">;
|
|
521
|
-
end: string & z.BRAND<"PlainDate">;
|
|
522
|
-
} | null | undefined>;
|
|
523
|
-
}, {
|
|
524
|
-
data: Record<string, string | number | boolean | {
|
|
525
|
-
type: string;
|
|
526
|
-
path: string;
|
|
527
|
-
originalFilename: string;
|
|
528
|
-
} | {
|
|
529
|
-
firstname: string;
|
|
530
|
-
surname: string;
|
|
531
|
-
middlename?: string | undefined;
|
|
532
|
-
} | {
|
|
533
|
-
firstname?: string | null | undefined;
|
|
534
|
-
surname?: string | null | undefined;
|
|
535
|
-
middlename?: string | null | undefined;
|
|
536
|
-
} | {
|
|
537
|
-
country: string;
|
|
538
|
-
addressType: "DOMESTIC";
|
|
539
|
-
administrativeArea: string;
|
|
540
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
541
|
-
} | {
|
|
542
|
-
country: string;
|
|
543
|
-
addressType: "INTERNATIONAL";
|
|
544
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
545
|
-
} | {
|
|
546
|
-
type: string;
|
|
547
|
-
option: string;
|
|
548
|
-
path: string;
|
|
549
|
-
originalFilename: string;
|
|
550
|
-
}[] | {
|
|
551
|
-
loading: boolean;
|
|
552
|
-
data?: any;
|
|
553
|
-
error?: {
|
|
554
|
-
message: string;
|
|
555
|
-
statusCode: number;
|
|
556
|
-
} | null | undefined;
|
|
557
|
-
} | {
|
|
558
|
-
data: Record<string, string>;
|
|
559
|
-
} | {
|
|
560
|
-
data?: any;
|
|
561
|
-
} | {
|
|
562
|
-
numericValue: number;
|
|
563
|
-
unit: string;
|
|
564
|
-
} | {
|
|
565
|
-
numericValue?: number | undefined;
|
|
566
|
-
unit?: string | undefined;
|
|
567
|
-
} | {
|
|
568
|
-
age: number;
|
|
569
|
-
asOfDateRef: string;
|
|
570
|
-
} | {
|
|
571
|
-
start: string;
|
|
572
|
-
end: string;
|
|
573
|
-
} | null | undefined>;
|
|
574
|
-
}>>> | z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
575
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
|
|
142
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
143
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
145
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
146
|
+
administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
150
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
151
|
+
}, z.core.$strip>], "addressType">>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
152
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
153
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
154
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>>> | z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
155
|
+
last7Days: "last7Days";
|
|
156
|
+
last30Days: "last30Days";
|
|
157
|
+
last90Days: "last90Days";
|
|
158
|
+
last365Days: "last365Days";
|
|
159
|
+
}>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
160
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
163
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
164
|
+
originalFilename: z.ZodString;
|
|
165
|
+
type: z.ZodString;
|
|
166
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
167
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
168
|
+
originalFilename: z.ZodString;
|
|
169
|
+
type: z.ZodString;
|
|
170
|
+
option: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>>> | z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
172
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
576
173
|
country: z.ZodString;
|
|
577
174
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
578
|
-
}, {
|
|
579
175
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
580
176
|
administrativeArea: z.ZodString;
|
|
581
|
-
}
|
|
582
|
-
country: string;
|
|
583
|
-
addressType: "DOMESTIC";
|
|
584
|
-
administrativeArea: string;
|
|
585
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
586
|
-
}, {
|
|
587
|
-
country: string;
|
|
588
|
-
addressType: "DOMESTIC";
|
|
589
|
-
administrativeArea: string;
|
|
590
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
591
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
178
|
country: z.ZodString;
|
|
593
179
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
594
|
-
}, {
|
|
595
180
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
596
|
-
}
|
|
597
|
-
country: string;
|
|
598
|
-
addressType: "INTERNATIONAL";
|
|
599
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
600
|
-
}, {
|
|
601
|
-
country: string;
|
|
602
|
-
addressType: "INTERNATIONAL";
|
|
603
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
604
|
-
}>]>, z.ZodString, z.ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
181
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
605
182
|
age: z.ZodNumber;
|
|
606
183
|
asOfDateRef: z.ZodString;
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}, {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
start: string & z.BRAND<"PlainDate">;
|
|
618
|
-
end: string & z.BRAND<"PlainDate">;
|
|
619
|
-
}, {
|
|
620
|
-
start: string;
|
|
621
|
-
end: string;
|
|
622
|
-
}>, z.ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
623
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
184
|
+
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
185
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
186
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
187
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
188
|
+
last7Days: "last7Days";
|
|
189
|
+
last30Days: "last30Days";
|
|
190
|
+
last90Days: "last90Days";
|
|
191
|
+
last365Days: "last365Days";
|
|
192
|
+
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
193
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
624
194
|
originalFilename: z.ZodString;
|
|
625
195
|
type: z.ZodString;
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
path: string;
|
|
629
|
-
originalFilename: string;
|
|
630
|
-
}, {
|
|
631
|
-
type: string;
|
|
632
|
-
path: string;
|
|
633
|
-
originalFilename: string;
|
|
634
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
635
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
196
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
197
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
636
198
|
originalFilename: z.ZodString;
|
|
637
199
|
type: z.ZodString;
|
|
638
200
|
option: z.ZodString;
|
|
639
|
-
},
|
|
640
|
-
type: string;
|
|
641
|
-
option: string;
|
|
642
|
-
path: string;
|
|
643
|
-
originalFilename: string;
|
|
644
|
-
}, {
|
|
645
|
-
type: string;
|
|
646
|
-
option: string;
|
|
647
|
-
path: string;
|
|
648
|
-
originalFilename: string;
|
|
649
|
-
}>, "many">, z.ZodObject<{
|
|
201
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
650
202
|
firstname: z.ZodString;
|
|
651
203
|
surname: z.ZodString;
|
|
652
204
|
middlename: z.ZodOptional<z.ZodString>;
|
|
653
|
-
},
|
|
654
|
-
firstname: string;
|
|
655
|
-
surname: string;
|
|
656
|
-
middlename?: string | undefined;
|
|
657
|
-
}, {
|
|
658
|
-
firstname: string;
|
|
659
|
-
surname: string;
|
|
660
|
-
middlename?: string | undefined;
|
|
661
|
-
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
205
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
662
206
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
663
207
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
208
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
665
|
-
},
|
|
666
|
-
firstname?: string | null | undefined;
|
|
667
|
-
surname?: string | null | undefined;
|
|
668
|
-
middlename?: string | null | undefined;
|
|
669
|
-
}, {
|
|
670
|
-
firstname?: string | null | undefined;
|
|
671
|
-
surname?: string | null | undefined;
|
|
672
|
-
middlename?: string | null | undefined;
|
|
673
|
-
}>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
209
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
|
|
674
210
|
loading: z.ZodBoolean;
|
|
675
211
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
676
212
|
statusCode: z.ZodNumber;
|
|
677
213
|
message: z.ZodString;
|
|
678
|
-
},
|
|
679
|
-
message: string;
|
|
680
|
-
statusCode: number;
|
|
681
|
-
}, {
|
|
682
|
-
message: string;
|
|
683
|
-
statusCode: number;
|
|
684
|
-
}>>>;
|
|
214
|
+
}, z.core.$strip>>>;
|
|
685
215
|
data: z.ZodAny;
|
|
686
|
-
},
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
} | null | undefined;
|
|
693
|
-
}, {
|
|
694
|
-
loading: boolean;
|
|
695
|
-
data?: any;
|
|
696
|
-
error?: {
|
|
697
|
-
message: string;
|
|
698
|
-
statusCode: number;
|
|
699
|
-
} | null | undefined;
|
|
700
|
-
}>, z.ZodEnum<["verified", "authenticated", "failed", "pending"]>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
216
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
217
|
+
verified: "verified";
|
|
218
|
+
authenticated: "authenticated";
|
|
219
|
+
failed: "failed";
|
|
220
|
+
pending: "pending";
|
|
221
|
+
}>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
701
222
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}, {
|
|
705
|
-
data: Record<string, string>;
|
|
706
|
-
}>>>, z.ZodObject<{
|
|
223
|
+
updatedAt: z.ZodISODateTime;
|
|
224
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
707
225
|
data: z.ZodAny;
|
|
708
|
-
},
|
|
709
|
-
data?: any;
|
|
710
|
-
}, {
|
|
711
|
-
data?: any;
|
|
712
|
-
}>, z.ZodObject<{
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
227
|
data: z.ZodAny;
|
|
714
|
-
},
|
|
715
|
-
data?: any;
|
|
716
|
-
}, {
|
|
717
|
-
data?: any;
|
|
718
|
-
}>, z.ZodObject<{
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
719
229
|
numericValue: z.ZodNumber;
|
|
720
230
|
unit: z.ZodString;
|
|
721
|
-
},
|
|
722
|
-
numericValue: number;
|
|
723
|
-
unit: string;
|
|
724
|
-
}, {
|
|
725
|
-
numericValue: number;
|
|
726
|
-
unit: string;
|
|
727
|
-
}>, z.ZodObject<{
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
728
232
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
729
233
|
unit: z.ZodOptional<z.ZodString>;
|
|
730
|
-
},
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}>]>>;
|
|
737
|
-
}, "strip", z.ZodTypeAny, {
|
|
738
|
-
data: Record<string, string | number | boolean | {
|
|
739
|
-
type: string;
|
|
740
|
-
path: string;
|
|
741
|
-
originalFilename: string;
|
|
742
|
-
} | {
|
|
743
|
-
firstname: string;
|
|
744
|
-
surname: string;
|
|
745
|
-
middlename?: string | undefined;
|
|
746
|
-
} | {
|
|
747
|
-
firstname?: string | null | undefined;
|
|
748
|
-
surname?: string | null | undefined;
|
|
749
|
-
middlename?: string | null | undefined;
|
|
750
|
-
} | {
|
|
751
|
-
country: string;
|
|
752
|
-
addressType: "DOMESTIC";
|
|
753
|
-
administrativeArea: string;
|
|
754
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
755
|
-
} | {
|
|
756
|
-
country: string;
|
|
757
|
-
addressType: "INTERNATIONAL";
|
|
758
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
759
|
-
} | {
|
|
760
|
-
type: string;
|
|
761
|
-
option: string;
|
|
762
|
-
path: string;
|
|
763
|
-
originalFilename: string;
|
|
764
|
-
}[] | {
|
|
765
|
-
loading: boolean;
|
|
766
|
-
data?: any;
|
|
767
|
-
error?: {
|
|
768
|
-
message: string;
|
|
769
|
-
statusCode: number;
|
|
770
|
-
} | null | undefined;
|
|
771
|
-
} | {
|
|
772
|
-
data: Record<string, string>;
|
|
773
|
-
} | {
|
|
774
|
-
data?: any;
|
|
775
|
-
} | {
|
|
776
|
-
numericValue: number;
|
|
777
|
-
unit: string;
|
|
778
|
-
} | {
|
|
779
|
-
numericValue?: number | undefined;
|
|
780
|
-
unit?: string | undefined;
|
|
781
|
-
} | (string & z.BRAND<"PlainDate">) | {
|
|
782
|
-
age: number;
|
|
783
|
-
asOfDateRef: string;
|
|
784
|
-
} | {
|
|
785
|
-
start: string & z.BRAND<"PlainDate">;
|
|
786
|
-
end: string & z.BRAND<"PlainDate">;
|
|
787
|
-
} | null | undefined>;
|
|
788
|
-
}, {
|
|
789
|
-
data: Record<string, string | number | boolean | {
|
|
790
|
-
type: string;
|
|
791
|
-
path: string;
|
|
792
|
-
originalFilename: string;
|
|
793
|
-
} | {
|
|
794
|
-
firstname: string;
|
|
795
|
-
surname: string;
|
|
796
|
-
middlename?: string | undefined;
|
|
797
|
-
} | {
|
|
798
|
-
firstname?: string | null | undefined;
|
|
799
|
-
surname?: string | null | undefined;
|
|
800
|
-
middlename?: string | null | undefined;
|
|
801
|
-
} | {
|
|
802
|
-
country: string;
|
|
803
|
-
addressType: "DOMESTIC";
|
|
804
|
-
administrativeArea: string;
|
|
805
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
806
|
-
} | {
|
|
807
|
-
country: string;
|
|
808
|
-
addressType: "INTERNATIONAL";
|
|
809
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
810
|
-
} | {
|
|
811
|
-
type: string;
|
|
812
|
-
option: string;
|
|
813
|
-
path: string;
|
|
814
|
-
originalFilename: string;
|
|
815
|
-
}[] | {
|
|
816
|
-
loading: boolean;
|
|
817
|
-
data?: any;
|
|
818
|
-
error?: {
|
|
819
|
-
message: string;
|
|
820
|
-
statusCode: number;
|
|
821
|
-
} | null | undefined;
|
|
822
|
-
} | {
|
|
823
|
-
data: Record<string, string>;
|
|
824
|
-
} | {
|
|
825
|
-
data?: any;
|
|
826
|
-
} | {
|
|
827
|
-
numericValue: number;
|
|
828
|
-
unit: string;
|
|
829
|
-
} | {
|
|
830
|
-
numericValue?: number | undefined;
|
|
831
|
-
unit?: string | undefined;
|
|
832
|
-
} | {
|
|
833
|
-
age: number;
|
|
834
|
-
asOfDateRef: string;
|
|
835
|
-
} | {
|
|
836
|
-
start: string;
|
|
837
|
-
end: string;
|
|
838
|
-
} | null | undefined>;
|
|
839
|
-
}>>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
234
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">]>>;
|
|
235
|
+
}, z.core.$strip>>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
236
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
840
240
|
loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
841
241
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
842
242
|
statusCode: z.ZodNumber;
|
|
843
243
|
message: z.ZodString;
|
|
844
|
-
},
|
|
845
|
-
message: string;
|
|
846
|
-
statusCode: number;
|
|
847
|
-
}, {
|
|
848
|
-
message: string;
|
|
849
|
-
statusCode: number;
|
|
850
|
-
}>>>;
|
|
244
|
+
}, z.core.$strip>>>;
|
|
851
245
|
data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
852
|
-
},
|
|
853
|
-
data?: any;
|
|
854
|
-
error?: {
|
|
855
|
-
message: string;
|
|
856
|
-
statusCode: number;
|
|
857
|
-
} | null | undefined;
|
|
858
|
-
loading?: boolean | null | undefined;
|
|
859
|
-
}, {
|
|
860
|
-
data?: any;
|
|
861
|
-
error?: {
|
|
862
|
-
message: string;
|
|
863
|
-
statusCode: number;
|
|
864
|
-
} | null | undefined;
|
|
865
|
-
loading?: boolean | null | undefined;
|
|
866
|
-
}>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
246
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
867
247
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
868
|
-
},
|
|
869
|
-
data: Record<string, string>;
|
|
870
|
-
}, {
|
|
871
|
-
data: Record<string, string>;
|
|
872
|
-
}>>> | z.ZodObject<{
|
|
248
|
+
}, z.core.$strip>>> | z.ZodObject<{
|
|
873
249
|
firstname: z.ZodString;
|
|
874
250
|
surname: z.ZodString;
|
|
875
251
|
middlename: z.ZodString | z.ZodOptional<z.ZodString>;
|
|
876
|
-
},
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
middlename?: string | undefined;
|
|
880
|
-
}, {
|
|
881
|
-
firstname: string;
|
|
882
|
-
surname: string;
|
|
883
|
-
middlename?: string | undefined;
|
|
884
|
-
}> | z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
885
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
886
|
-
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
887
|
-
}, {
|
|
888
|
-
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
889
|
-
administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
|
-
}>, "strip", z.ZodTypeAny, {
|
|
891
|
-
addressType: "DOMESTIC";
|
|
892
|
-
country?: string | null | undefined;
|
|
893
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
894
|
-
administrativeArea?: string | null | undefined;
|
|
895
|
-
}, {
|
|
896
|
-
addressType: "DOMESTIC";
|
|
897
|
-
country?: string | null | undefined;
|
|
898
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
899
|
-
administrativeArea?: string | null | undefined;
|
|
900
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
901
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
902
|
-
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
903
|
-
}, {
|
|
904
|
-
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
905
|
-
}>, "strip", z.ZodTypeAny, {
|
|
906
|
-
addressType: "INTERNATIONAL";
|
|
907
|
-
country?: string | null | undefined;
|
|
908
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
909
|
-
}, {
|
|
910
|
-
addressType: "INTERNATIONAL";
|
|
911
|
-
country?: string | null | undefined;
|
|
912
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
913
|
-
}>]>>>, {
|
|
914
|
-
addressType: "DOMESTIC";
|
|
915
|
-
country?: string | null | undefined;
|
|
916
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
917
|
-
administrativeArea?: string | null | undefined;
|
|
918
|
-
} | {
|
|
919
|
-
addressType: "INTERNATIONAL";
|
|
920
|
-
country?: string | null | undefined;
|
|
921
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
922
|
-
} | null | undefined, {
|
|
923
|
-
addressType: "DOMESTIC";
|
|
924
|
-
country?: string | null | undefined;
|
|
925
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
926
|
-
administrativeArea?: string | null | undefined;
|
|
927
|
-
} | {
|
|
928
|
-
addressType: "INTERNATIONAL";
|
|
929
|
-
country?: string | null | undefined;
|
|
930
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
931
|
-
} | null | undefined>>> | z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
252
|
+
}, z.core.$strip> | z.ZodObject<Readonly<{
|
|
253
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
254
|
+
}>, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">>> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
932
255
|
country: z.ZodString;
|
|
933
256
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
934
|
-
}, {
|
|
935
257
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
936
258
|
administrativeArea: z.ZodString;
|
|
937
|
-
}
|
|
938
|
-
country: string;
|
|
939
|
-
addressType: "DOMESTIC";
|
|
940
|
-
administrativeArea: string;
|
|
941
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
942
|
-
}, {
|
|
943
|
-
country: string;
|
|
944
|
-
addressType: "DOMESTIC";
|
|
945
|
-
administrativeArea: string;
|
|
946
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
947
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
948
260
|
country: z.ZodString;
|
|
949
261
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
950
|
-
}, {
|
|
951
262
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
}
|
|
961
|
-
country: string;
|
|
962
|
-
addressType: "DOMESTIC";
|
|
963
|
-
administrativeArea: string;
|
|
964
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
965
|
-
} | {
|
|
966
|
-
country: string;
|
|
967
|
-
addressType: "INTERNATIONAL";
|
|
968
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
969
|
-
}, {
|
|
970
|
-
country: string;
|
|
971
|
-
addressType: "DOMESTIC";
|
|
972
|
-
administrativeArea: string;
|
|
973
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
974
|
-
} | {
|
|
975
|
-
country: string;
|
|
976
|
-
addressType: "INTERNATIONAL";
|
|
977
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
978
|
-
}>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
979
|
-
[x: string]: any;
|
|
980
|
-
}, {
|
|
981
|
-
[x: string]: any;
|
|
982
|
-
}>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
263
|
+
}, z.core.$strip>], "addressType">>> | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
264
|
+
data: z.ZodAny;
|
|
265
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
266
|
+
numericValue: z.ZodNumber;
|
|
267
|
+
unit: z.ZodString;
|
|
268
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
269
|
+
age: z.ZodNumber;
|
|
270
|
+
asOfDateRef: z.ZodString;
|
|
271
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodEmail>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
983
272
|
firstname: z.ZodString;
|
|
984
273
|
surname: z.ZodString;
|
|
985
274
|
middlename: z.ZodString | z.ZodOptional<z.ZodString>;
|
|
986
|
-
},
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
275
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<Readonly<{
|
|
276
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
277
|
+
}>, z.core.$strip>>>;
|
|
278
|
+
type FieldTypeValueMap = {
|
|
279
|
+
[FieldType.FIELD_GROUP]: Record<string, FieldValue>;
|
|
280
|
+
[FieldType.DATE]: z.infer<typeof DateValue>;
|
|
281
|
+
[FieldType.AGE]: z.infer<typeof AgeValue>;
|
|
282
|
+
[FieldType.TIME]: z.infer<typeof TimeValue>;
|
|
283
|
+
[FieldType.EMAIL]: z.infer<typeof EmailValue>;
|
|
284
|
+
[FieldType.DATE_RANGE]: z.infer<typeof DateRangeFieldValue>;
|
|
285
|
+
[FieldType.SELECT_DATE_RANGE]: z.infer<typeof SelectDateRangeValue>;
|
|
286
|
+
[FieldType.TEXT]: z.infer<typeof TextValue>;
|
|
287
|
+
[FieldType.TEXTAREA]: z.infer<typeof TextValue>;
|
|
288
|
+
[FieldType.DIVIDER]: z.infer<typeof TextValue>;
|
|
289
|
+
[FieldType.BULLET_LIST]: z.infer<typeof TextValue>;
|
|
290
|
+
[FieldType.PAGE_HEADER]: z.infer<typeof TextValue>;
|
|
291
|
+
[FieldType.LOCATION]: z.infer<typeof TextValue>;
|
|
292
|
+
[FieldType.SELECT]: z.infer<typeof TextValue>;
|
|
293
|
+
[FieldType.COUNTRY]: z.infer<typeof TextValue>;
|
|
294
|
+
[FieldType.RADIO_GROUP]: z.infer<typeof TextValue>;
|
|
295
|
+
[FieldType.PARAGRAPH]: z.infer<typeof TextValue>;
|
|
296
|
+
[FieldType.HEADING]: z.infer<typeof TextValue>;
|
|
297
|
+
[FieldType.IMAGE_VIEW]: z.infer<typeof TextValue>;
|
|
298
|
+
[FieldType.ADMINISTRATIVE_AREA]: z.infer<typeof TextValue>;
|
|
299
|
+
[FieldType.FACILITY]: z.infer<typeof TextValue>;
|
|
300
|
+
[FieldType.OFFICE]: z.infer<typeof TextValue>;
|
|
301
|
+
[FieldType.PHONE]: z.infer<typeof TextValue>;
|
|
302
|
+
[FieldType.LINK_BUTTON]: z.infer<typeof TextValue>;
|
|
303
|
+
[FieldType.VERIFICATION_STATUS]: z.infer<typeof TextValue>;
|
|
304
|
+
[FieldType.ID]: z.infer<typeof TextValue>;
|
|
305
|
+
[FieldType.LOADER]: z.infer<typeof TextValue>;
|
|
306
|
+
[FieldType.ALPHA_HIDDEN]: z.infer<typeof TextValue>;
|
|
307
|
+
[FieldType.USER_ROLE]: z.infer<typeof TextValue>;
|
|
308
|
+
[FieldType.NUMBER]: z.infer<typeof NumberFieldValue>;
|
|
309
|
+
[FieldType.NUMBER_WITH_UNIT]: z.infer<typeof NumberWithUnitFieldValue>;
|
|
310
|
+
[FieldType.CHECKBOX]: z.infer<typeof CheckboxFieldValue>;
|
|
311
|
+
[FieldType.SIGNATURE]: z.infer<typeof FileFieldValue>;
|
|
312
|
+
[FieldType.FILE]: z.infer<typeof FileFieldValue>;
|
|
313
|
+
[FieldType.FILE_WITH_OPTIONS]: z.infer<typeof FileFieldWithOptionValue>;
|
|
314
|
+
[FieldType.ADDRESS]: z.infer<DynamicAddressFieldValue>;
|
|
315
|
+
[FieldType.DATA]: z.infer<typeof DataFieldValue>;
|
|
316
|
+
[FieldType.NAME]: z.infer<DynamicNameValue>;
|
|
317
|
+
[FieldType.BUTTON]: z.infer<typeof ButtonFieldValue>;
|
|
318
|
+
[FieldType.ALPHA_PRINT_BUTTON]: z.infer<typeof TextValue>;
|
|
319
|
+
[FieldType.HTTP]: z.infer<typeof HttpFieldUpdateValue>;
|
|
320
|
+
[FieldType.SEARCH]: z.infer<typeof HttpFieldUpdateValue>;
|
|
321
|
+
[FieldType.QUERY_PARAM_READER]: z.infer<typeof QueryParamReaderFieldUpdateValue>;
|
|
322
|
+
[FieldType.QR_READER]: z.infer<typeof QrReaderFieldValue>;
|
|
323
|
+
[FieldType.ID_READER]: z.infer<typeof IdReaderFieldValue>;
|
|
324
|
+
[FieldType._EXPERIMENTAL_CUSTOM]: z.infer<typeof CustomFieldValue>;
|
|
325
|
+
};
|
|
326
|
+
export type FieldTypeToFieldValue<T extends FieldType> = FieldTypeValueMap[T];
|
|
327
|
+
type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
|
|
328
|
+
type ExtractFieldMap<T> = T extends {
|
|
329
|
+
declaration: {
|
|
330
|
+
pages: readonly (infer Page)[];
|
|
331
|
+
};
|
|
332
|
+
} ? Page extends {
|
|
333
|
+
fields: readonly (infer Field)[];
|
|
334
|
+
} ? Field extends {
|
|
335
|
+
id: infer Id extends string;
|
|
336
|
+
type: infer Type extends FieldType;
|
|
337
|
+
} ? Record<Id, FieldTypeToFieldValue<Type>> : never : never : never;
|
|
338
|
+
export type EventConfigToDeclarationFormType<T extends EventConfig> = UnionToIntersection<ExtractFieldMap<T>>;
|
|
995
339
|
/**
|
|
996
340
|
* Maps complex or nested field types, such as Address fields, to their corresponding empty values.
|
|
997
341
|
*/
|
|
998
|
-
export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] | Record<string, FieldUpdateValue> | null;
|
|
342
|
+
export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] | z.core.$brand<"CustomFieldValue"> | Record<string, FieldUpdateValue> | null;
|
|
999
343
|
export declare const isParagraphFieldType: (field: {
|
|
1000
344
|
config: FieldConfig;
|
|
1001
|
-
value: FieldValue;
|
|
345
|
+
value: FieldValue | FieldUpdateValue;
|
|
1002
346
|
}) => field is {
|
|
1003
347
|
value: string;
|
|
1004
348
|
config: Paragraph;
|
|
1005
349
|
};
|
|
350
|
+
export declare const isHeadingFieldType: (field: {
|
|
351
|
+
config: FieldConfig;
|
|
352
|
+
value: FieldValue | FieldUpdateValue;
|
|
353
|
+
}) => field is {
|
|
354
|
+
value: string;
|
|
355
|
+
config: Heading;
|
|
356
|
+
};
|
|
357
|
+
export declare const isImageViewFieldType: (field: {
|
|
358
|
+
config: FieldConfig;
|
|
359
|
+
value: FieldValue | FieldUpdateValue;
|
|
360
|
+
}) => field is {
|
|
361
|
+
value: string;
|
|
362
|
+
config: ImageViewField;
|
|
363
|
+
};
|
|
1006
364
|
export declare const isDateFieldType: (field: {
|
|
1007
365
|
config: FieldConfig;
|
|
1008
|
-
value: FieldValue;
|
|
366
|
+
value: FieldValue | FieldUpdateValue;
|
|
1009
367
|
}) => field is {
|
|
1010
368
|
value: string;
|
|
1011
369
|
config: DateField;
|
|
1012
370
|
};
|
|
1013
371
|
export declare const isAgeFieldType: (field: {
|
|
1014
372
|
config: FieldConfig;
|
|
1015
|
-
value: FieldValue;
|
|
373
|
+
value: FieldValue | FieldUpdateValue;
|
|
1016
374
|
}) => field is {
|
|
1017
375
|
value: AgeValue | undefined;
|
|
1018
376
|
config: AgeField;
|
|
1019
377
|
};
|
|
1020
378
|
export declare const isTimeFieldType: (field: {
|
|
1021
379
|
config: FieldConfig;
|
|
1022
|
-
value: FieldValue;
|
|
380
|
+
value: FieldValue | FieldUpdateValue;
|
|
1023
381
|
}) => field is {
|
|
1024
382
|
value: string;
|
|
1025
383
|
config: TimeField;
|
|
1026
384
|
};
|
|
1027
385
|
export declare const isDateRangeFieldType: (field: {
|
|
1028
386
|
config: FieldConfig;
|
|
1029
|
-
value: FieldValue;
|
|
387
|
+
value: FieldValue | FieldUpdateValue;
|
|
1030
388
|
}) => field is {
|
|
1031
389
|
value: DateRangeFieldValue;
|
|
1032
390
|
config: DateRangeField;
|
|
1033
391
|
};
|
|
1034
392
|
export declare const isSelectDateRangeFieldType: (field: {
|
|
1035
393
|
config: FieldConfig;
|
|
1036
|
-
value: FieldValue;
|
|
394
|
+
value: FieldValue | FieldUpdateValue;
|
|
1037
395
|
}) => field is {
|
|
1038
396
|
value: SelectDateRangeValue;
|
|
1039
397
|
config: SelectDateRangeField;
|
|
1040
398
|
};
|
|
1041
399
|
export declare const isPageHeaderFieldType: (field: {
|
|
1042
400
|
config: FieldConfig;
|
|
1043
|
-
value: FieldValue;
|
|
401
|
+
value: FieldValue | FieldUpdateValue;
|
|
1044
402
|
}) => field is {
|
|
1045
403
|
value: string;
|
|
1046
404
|
config: PageHeader;
|
|
1047
405
|
};
|
|
1048
406
|
export declare const isTextFieldType: (field: {
|
|
1049
407
|
config: FieldConfig;
|
|
1050
|
-
value: FieldValue;
|
|
408
|
+
value: FieldValue | FieldUpdateValue;
|
|
1051
409
|
}) => field is {
|
|
1052
410
|
value: string;
|
|
1053
411
|
config: TextField;
|
|
1054
412
|
};
|
|
1055
413
|
export declare const isNumberFieldType: (field: {
|
|
1056
414
|
config: FieldConfig;
|
|
1057
|
-
value: FieldValue;
|
|
415
|
+
value: FieldValue | FieldUpdateValue;
|
|
1058
416
|
}) => field is {
|
|
1059
417
|
value: number;
|
|
1060
418
|
config: NumberField;
|
|
@@ -1068,98 +426,98 @@ export declare const isNumberWithUnitFieldType: (field: {
|
|
|
1068
426
|
};
|
|
1069
427
|
export declare const isNameFieldType: (field: {
|
|
1070
428
|
config: FieldConfig;
|
|
1071
|
-
value: FieldValue;
|
|
429
|
+
value: FieldValue | FieldUpdateValue;
|
|
1072
430
|
}) => field is {
|
|
1073
431
|
value: NameFieldValue;
|
|
1074
432
|
config: NameField;
|
|
1075
433
|
};
|
|
1076
434
|
export declare const isPhoneFieldType: (field: {
|
|
1077
435
|
config: FieldConfig;
|
|
1078
|
-
value: FieldValue;
|
|
436
|
+
value: FieldValue | FieldUpdateValue;
|
|
1079
437
|
}) => field is {
|
|
1080
438
|
value: string;
|
|
1081
439
|
config: PhoneField;
|
|
1082
440
|
};
|
|
1083
441
|
export declare const isIdFieldType: (field: {
|
|
1084
442
|
config: FieldConfig;
|
|
1085
|
-
value: FieldValue;
|
|
443
|
+
value: FieldValue | FieldUpdateValue;
|
|
1086
444
|
}) => field is {
|
|
1087
445
|
value: string;
|
|
1088
446
|
config: IdField;
|
|
1089
447
|
};
|
|
1090
448
|
export declare const isTextAreaFieldType: (field: {
|
|
1091
449
|
config: FieldConfig;
|
|
1092
|
-
value: FieldValue;
|
|
450
|
+
value: FieldValue | FieldUpdateValue;
|
|
1093
451
|
}) => field is {
|
|
1094
452
|
value: string;
|
|
1095
453
|
config: TextAreaField;
|
|
1096
454
|
};
|
|
1097
455
|
export declare const isSignatureFieldType: (field: {
|
|
1098
456
|
config: FieldConfig;
|
|
1099
|
-
value: FieldValue | undefined;
|
|
457
|
+
value: FieldValue | FieldUpdateValue | undefined;
|
|
1100
458
|
}) => field is {
|
|
1101
459
|
value: FileFieldValue | undefined;
|
|
1102
460
|
config: SignatureField;
|
|
1103
461
|
};
|
|
1104
462
|
export declare const isEmailFieldType: (field: {
|
|
1105
463
|
config: FieldConfig;
|
|
1106
|
-
value: FieldValue;
|
|
464
|
+
value: FieldValue | FieldUpdateValue;
|
|
1107
465
|
}) => field is {
|
|
1108
466
|
value: string;
|
|
1109
467
|
config: EmailField;
|
|
1110
468
|
};
|
|
1111
469
|
export declare const isFileFieldType: (field: {
|
|
1112
470
|
config: FieldConfig;
|
|
1113
|
-
value: FieldValue;
|
|
471
|
+
value: FieldValue | FieldUpdateValue;
|
|
1114
472
|
}) => field is {
|
|
1115
473
|
value: FileFieldValue;
|
|
1116
474
|
config: File;
|
|
1117
475
|
};
|
|
1118
476
|
export declare const isFileFieldWithOptionType: (field: {
|
|
1119
477
|
config: FieldConfig;
|
|
1120
|
-
value: FieldValue;
|
|
478
|
+
value: FieldValue | FieldUpdateValue;
|
|
1121
479
|
}) => field is {
|
|
1122
480
|
value: FileFieldWithOptionValue;
|
|
1123
481
|
config: FileUploadWithOptions;
|
|
1124
482
|
};
|
|
1125
483
|
export declare const isBulletListFieldType: (field: {
|
|
1126
484
|
config: FieldConfig;
|
|
1127
|
-
value: FieldValue;
|
|
485
|
+
value: FieldValue | FieldUpdateValue;
|
|
1128
486
|
}) => field is {
|
|
1129
487
|
value: string;
|
|
1130
488
|
config: BulletList;
|
|
1131
489
|
};
|
|
1132
490
|
export declare const isSelectFieldType: (field: {
|
|
1133
491
|
config: FieldConfig;
|
|
1134
|
-
value: FieldValue;
|
|
492
|
+
value: FieldValue | FieldUpdateValue;
|
|
1135
493
|
}) => field is {
|
|
1136
494
|
value: string;
|
|
1137
495
|
config: SelectField;
|
|
1138
496
|
};
|
|
1139
497
|
export declare const isAddressFieldType: (field: {
|
|
1140
498
|
config: FieldConfig;
|
|
1141
|
-
value: FieldValue;
|
|
499
|
+
value: FieldValue | FieldUpdateValue;
|
|
1142
500
|
}) => field is {
|
|
1143
501
|
value: AddressFieldValue;
|
|
1144
502
|
config: AddressField;
|
|
1145
503
|
};
|
|
1146
504
|
export declare const isCountryFieldType: (field: {
|
|
1147
505
|
config: FieldConfig;
|
|
1148
|
-
value: FieldValue;
|
|
506
|
+
value: FieldValue | FieldUpdateValue;
|
|
1149
507
|
}) => field is {
|
|
1150
508
|
value: string;
|
|
1151
509
|
config: Country;
|
|
1152
510
|
};
|
|
1153
511
|
export declare const isCheckboxFieldType: (field: {
|
|
1154
512
|
config: FieldConfig;
|
|
1155
|
-
value: FieldValue;
|
|
513
|
+
value: FieldValue | FieldUpdateValue;
|
|
1156
514
|
}) => field is {
|
|
1157
515
|
value: boolean;
|
|
1158
516
|
config: Checkbox;
|
|
1159
517
|
};
|
|
1160
518
|
export declare const isRadioGroupFieldType: (field: {
|
|
1161
519
|
config: FieldConfig;
|
|
1162
|
-
value: FieldValue;
|
|
520
|
+
value: FieldValue | FieldUpdateValue;
|
|
1163
521
|
}) => field is {
|
|
1164
522
|
value: string;
|
|
1165
523
|
config: RadioGroup;
|
|
@@ -1173,117 +531,141 @@ export declare const isFieldGroupFieldType: (field: {
|
|
|
1173
531
|
};
|
|
1174
532
|
export declare const isLocationFieldType: (field: {
|
|
1175
533
|
config: FieldConfig;
|
|
1176
|
-
value: FieldValue;
|
|
534
|
+
value: FieldValue | FieldUpdateValue;
|
|
1177
535
|
}) => field is {
|
|
1178
536
|
value: string;
|
|
1179
537
|
config: LocationInput;
|
|
1180
538
|
};
|
|
1181
539
|
export declare const isDividerFieldType: (field: {
|
|
1182
540
|
config: FieldConfig;
|
|
1183
|
-
value: FieldValue;
|
|
541
|
+
value: FieldValue | FieldUpdateValue;
|
|
1184
542
|
}) => field is {
|
|
1185
543
|
value: string;
|
|
1186
544
|
config: Divider;
|
|
1187
545
|
};
|
|
1188
546
|
export declare const isAdministrativeAreaFieldType: (field: {
|
|
1189
547
|
config: FieldConfig;
|
|
1190
|
-
value: FieldValue;
|
|
548
|
+
value: FieldValue | FieldUpdateValue;
|
|
1191
549
|
}) => field is {
|
|
1192
550
|
value: string;
|
|
1193
|
-
config:
|
|
551
|
+
config: AdministrativeAreaField;
|
|
1194
552
|
};
|
|
553
|
+
/** @deprecated Moving on, we should only use FieldType.LOCATION. */
|
|
1195
554
|
export declare const isFacilityFieldType: (field: {
|
|
1196
555
|
config: FieldConfig;
|
|
1197
|
-
value: FieldValue;
|
|
556
|
+
value: FieldValue | FieldUpdateValue;
|
|
1198
557
|
}) => field is {
|
|
1199
558
|
value: string;
|
|
1200
559
|
config: Facility;
|
|
1201
560
|
};
|
|
561
|
+
/** @deprecated Moving on, we should only use FieldType.LOCATION. */
|
|
1202
562
|
export declare const isOfficeFieldType: (field: {
|
|
1203
563
|
config: FieldConfig;
|
|
1204
|
-
value: FieldValue;
|
|
564
|
+
value: FieldValue | FieldUpdateValue;
|
|
1205
565
|
}) => field is {
|
|
1206
566
|
value: string;
|
|
1207
567
|
config: Office;
|
|
1208
568
|
};
|
|
1209
569
|
export declare const isDataFieldType: (field: {
|
|
1210
570
|
config: FieldConfig;
|
|
1211
|
-
value: FieldValue;
|
|
571
|
+
value: FieldValue | FieldUpdateValue;
|
|
1212
572
|
}) => field is {
|
|
1213
573
|
value: DataFieldValue;
|
|
1214
574
|
config: DataField;
|
|
1215
575
|
};
|
|
1216
576
|
export declare const isButtonFieldType: (field: {
|
|
1217
577
|
config: FieldConfig;
|
|
1218
|
-
value: FieldValue;
|
|
578
|
+
value: FieldValue | FieldUpdateValue;
|
|
1219
579
|
}) => field is {
|
|
1220
580
|
value: undefined;
|
|
1221
581
|
config: ButtonField;
|
|
1222
582
|
};
|
|
1223
583
|
export declare const isPrintButtonFieldType: (field: {
|
|
1224
584
|
config: FieldConfig;
|
|
1225
|
-
value: FieldValue;
|
|
585
|
+
value: FieldValue | FieldUpdateValue;
|
|
1226
586
|
}) => field is {
|
|
1227
587
|
value: undefined;
|
|
1228
588
|
config: AlphaPrintButton;
|
|
1229
589
|
};
|
|
1230
590
|
export declare const isHttpFieldType: (field: {
|
|
1231
591
|
config: FieldConfig;
|
|
1232
|
-
value: FieldValue;
|
|
592
|
+
value: FieldValue | FieldUpdateValue;
|
|
1233
593
|
}) => field is {
|
|
1234
594
|
value: undefined;
|
|
1235
595
|
config: HttpField;
|
|
1236
596
|
};
|
|
1237
597
|
export declare const isSearchFieldType: (field: {
|
|
1238
598
|
config: FieldConfig;
|
|
1239
|
-
value: FieldValue;
|
|
599
|
+
value: FieldValue | FieldUpdateValue;
|
|
1240
600
|
}) => field is {
|
|
1241
601
|
value: undefined;
|
|
1242
602
|
config: SearchField;
|
|
1243
603
|
};
|
|
1244
604
|
export declare const isLinkButtonFieldType: (field: {
|
|
1245
605
|
config: FieldConfig;
|
|
1246
|
-
value: FieldValue;
|
|
606
|
+
value: FieldValue | FieldUpdateValue;
|
|
1247
607
|
}) => field is {
|
|
1248
608
|
value: undefined;
|
|
1249
609
|
config: LinkButtonField;
|
|
1250
610
|
};
|
|
1251
611
|
export declare const isVerificationStatusType: (field: {
|
|
1252
612
|
config: FieldConfig;
|
|
1253
|
-
value: FieldValue;
|
|
613
|
+
value: FieldValue | FieldUpdateValue;
|
|
1254
614
|
}) => field is {
|
|
1255
615
|
value: VerificationStatusValue | undefined;
|
|
1256
616
|
config: VerificationStatus;
|
|
1257
617
|
};
|
|
1258
618
|
export declare const isQueryParamReaderFieldType: (field: {
|
|
1259
619
|
config: FieldConfig;
|
|
1260
|
-
value: FieldValue;
|
|
620
|
+
value: FieldValue | FieldUpdateValue;
|
|
1261
621
|
}) => field is {
|
|
1262
622
|
value: undefined;
|
|
1263
623
|
config: QueryParamReaderField;
|
|
1264
624
|
};
|
|
1265
625
|
export declare const isQrReaderFieldType: (field: {
|
|
1266
626
|
config: FieldConfig;
|
|
1267
|
-
value: FieldValue;
|
|
627
|
+
value: FieldValue | FieldUpdateValue;
|
|
1268
628
|
}) => field is {
|
|
1269
629
|
value: undefined;
|
|
1270
630
|
config: QrReaderField;
|
|
1271
631
|
};
|
|
1272
632
|
export declare const isIdReaderFieldType: (field: {
|
|
1273
633
|
config: FieldConfig;
|
|
1274
|
-
value: FieldValue;
|
|
634
|
+
value: FieldValue | FieldUpdateValue;
|
|
1275
635
|
}) => field is {
|
|
1276
636
|
value: undefined;
|
|
1277
637
|
config: IdReaderField;
|
|
1278
638
|
};
|
|
1279
639
|
export declare const isLoaderFieldType: (field: {
|
|
1280
640
|
config: FieldConfig;
|
|
1281
|
-
value: FieldValue;
|
|
641
|
+
value: FieldValue | FieldUpdateValue;
|
|
1282
642
|
}) => field is {
|
|
1283
643
|
value: undefined;
|
|
1284
644
|
config: LoaderField;
|
|
1285
645
|
};
|
|
1286
|
-
export
|
|
646
|
+
export declare const isCustomFieldType: (field: {
|
|
647
|
+
config: FieldConfig;
|
|
648
|
+
value: FieldValue | FieldUpdateValue;
|
|
649
|
+
}) => field is {
|
|
650
|
+
value: CustomFieldValue;
|
|
651
|
+
config: CustomField;
|
|
652
|
+
};
|
|
653
|
+
export declare const isUserRoleFieldType: (field: {
|
|
654
|
+
config: FieldConfig;
|
|
655
|
+
value: FieldValue | FieldUpdateValue;
|
|
656
|
+
}) => field is {
|
|
657
|
+
value: string;
|
|
658
|
+
config: UserRoleField;
|
|
659
|
+
};
|
|
660
|
+
export declare const isHiddenFieldType: (field: {
|
|
661
|
+
config: FieldConfig;
|
|
662
|
+
value: FieldValue | FieldUpdateValue;
|
|
663
|
+
}) => field is {
|
|
664
|
+
value: undefined;
|
|
665
|
+
config: HiddenField;
|
|
666
|
+
};
|
|
667
|
+
export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
|
|
1287
668
|
export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
|
|
1288
669
|
export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
|
|
670
|
+
export {};
|
|
1289
671
|
//# sourceMappingURL=FieldTypeMapping.d.ts.map
|