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