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