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