@opencrvs/toolkit 1.9.12-rc.f5ca5e6 → 1.9.12-rc.f5d99e1
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 +8 -0
- package/dist/application-config/index.js +2037 -41
- 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 +482 -244
- package/dist/commons/application-config/index.d.ts +13 -16
- package/dist/commons/conditionals/conditionals.d.ts +8 -8
- package/dist/commons/events/ActionDocument.d.ts +196 -196
- package/dist/commons/events/ActionInput.d.ts +149 -113
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/AuditLog.d.ts +345 -163
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/CountryConfigQueryInput.d.ts +461 -190
- package/dist/commons/events/Draft.d.ts +10 -9
- package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
- package/dist/commons/events/EventConfig.d.ts +3 -1
- package/dist/commons/events/EventDocument.d.ts +80 -80
- package/dist/commons/events/EventIndex.d.ts +35 -27
- package/dist/commons/events/EventInput.d.ts +1 -1
- package/dist/commons/events/EventMetadata.d.ts +19 -19
- package/dist/commons/events/FieldConfig.d.ts +287 -71
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +98 -72
- package/dist/commons/events/FieldValue.d.ts +54 -26
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +7 -7
- package/dist/commons/events/WorkqueueConfig.d.ts +443 -199
- package/dist/commons/events/defineConfig.d.ts +0 -4
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/scopes.d.ts +4 -3
- package/dist/commons/events/state/index.d.ts +2 -2
- package/dist/commons/events/state/utils.d.ts +1 -1
- package/dist/commons/events/test.utils.d.ts +2 -2
- package/dist/commons/events/utils.d.ts +3 -175
- package/dist/commons/notification/UserNotifications.d.ts +6 -1
- package/dist/conditionals/index.js +74 -359
- package/dist/events/index.js +1190 -1251
- 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.js +1020 -1155
- package/dist/scopes/index.d.ts +389 -152
- package/dist/scopes/index.js +128 -322
- package/opencrvs-toolkit-1.9.12-rc.f5d99e1.tgz +0 -0
- package/package.json +11 -7
- package/tsconfig.json +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.f5ca5e6.tgz +0 -0
|
@@ -36,6 +36,7 @@ export declare const FieldType: {
|
|
|
36
36
|
readonly SIGNATURE: "SIGNATURE";
|
|
37
37
|
readonly DATA: "DATA";
|
|
38
38
|
readonly BUTTON: "BUTTON";
|
|
39
|
+
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
39
40
|
readonly SEARCH: "SEARCH";
|
|
40
41
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
41
42
|
readonly HTTP: "HTTP";
|
|
@@ -67,7 +68,7 @@ export declare const FileFieldType: z.ZodEnum<{
|
|
|
67
68
|
FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS";
|
|
68
69
|
SIGNATURE: "SIGNATURE";
|
|
69
70
|
}>;
|
|
70
|
-
export declare const fieldTypes: ("NAME" | "
|
|
71
|
+
export declare const fieldTypes: ("NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "IMAGE_VIEW" | "PARAGRAPH" | "HEADING" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "AUTOCOMPLETE" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN" | "USER_ROLE" | "CUSTOM")[];
|
|
71
72
|
export type FieldType = (typeof fieldTypes)[number];
|
|
72
73
|
/**
|
|
73
74
|
* Composite field types are field types that consist of multiple field values.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { AddressField, AdministrativeAreaField, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, LocationInput, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, NumberWithUnitField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, AlphaPrintButton, HttpField, SearchField, ButtonField, LinkButtonField, VerificationStatus, QueryParamReaderField, QrReaderField, IdReaderField, LoaderField, AgeField, FieldGroup, CustomField, HiddenField, ImageViewField, Heading, UserRoleField } from './FieldConfig';
|
|
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
3
|
import { FieldType } from './FieldType';
|
|
4
|
-
import { CheckboxFieldValue, EmailValue, FieldValue, NumberFieldValue, TextValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, TimeValue, ButtonFieldValue, VerificationStatusValue, AgeValue, FieldUpdateValue, DateValue } from './FieldValue';
|
|
4
|
+
import { CheckboxFieldValue, EmailValue, FieldValue, NumberFieldValue, TextValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, TimeValue, ButtonFieldValue, VerificationStatusValue, AgeValue, FieldUpdateValue, AutocompleteValue, DateValue } from './FieldValue';
|
|
5
5
|
import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, HttpFieldUpdateValue, NumberWithUnitFieldValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue, CustomFieldValue } from './CompositeFieldValue';
|
|
6
6
|
import { DynamicNameValue, DynamicAddressFieldValue } from './DynamicFieldValue';
|
|
7
7
|
import { ActionType } from './ActionType';
|
|
@@ -16,38 +16,20 @@ import { EventConfig } from './EventConfig';
|
|
|
16
16
|
* Mapping of field types to Zod schema.
|
|
17
17
|
* Useful for building dynamic validations against FieldConfig
|
|
18
18
|
*/
|
|
19
|
-
export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.
|
|
20
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
19
|
+
export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodObject<{
|
|
20
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
21
21
|
originalFilename: z.ZodString;
|
|
22
22
|
type: z.ZodString;
|
|
23
|
-
}, z.core.$strip> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
23
|
+
}, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
24
24
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.
|
|
28
|
-
|
|
29
|
-
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30
|
-
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
31
|
-
administrativeArea: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
country: z.ZodString;
|
|
34
|
-
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35
|
-
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
36
|
-
}, z.core.$strip>], "addressType"> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
39
|
-
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
40
|
-
administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
44
|
-
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
45
|
-
}, z.core.$strip>], "addressType">>> | z.ZodArray<z.ZodObject<{
|
|
46
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
27
|
+
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]> | z.ZodArray<z.ZodObject<{
|
|
28
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
47
29
|
originalFilename: z.ZodString;
|
|
48
30
|
type: z.ZodString;
|
|
49
31
|
option: z.ZodString;
|
|
50
|
-
}, z.core.$strip>> | 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<{
|
|
51
33
|
loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
34
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
53
35
|
statusCode: z.ZodNumber;
|
|
@@ -64,18 +46,21 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
64
46
|
}, z.core.$strip> | z.ZodObject<{
|
|
65
47
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
66
48
|
unit: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$strip> | z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"> | z.ZodObject<{
|
|
49
|
+
}, z.core.$strip> | z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out"> | z.ZodObject<{
|
|
68
50
|
age: z.ZodNumber;
|
|
69
51
|
asOfDateRef: z.ZodString;
|
|
52
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
53
|
+
label: z.ZodString;
|
|
54
|
+
value: z.ZodString;
|
|
70
55
|
}, z.core.$strip> | z.ZodEnum<{
|
|
71
56
|
last7Days: "last7Days";
|
|
72
57
|
last30Days: "last30Days";
|
|
73
58
|
last90Days: "last90Days";
|
|
74
59
|
last365Days: "last365Days";
|
|
75
60
|
}> | z.ZodUnion<[z.ZodObject<{
|
|
76
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
77
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
78
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]> | z.ZodEmail | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
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<{
|
|
79
64
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
65
|
country: z.ZodString;
|
|
81
66
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -85,23 +70,23 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
85
70
|
country: z.ZodString;
|
|
86
71
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
87
72
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
88
|
-
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
73
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">, z.ZodObject<{
|
|
89
74
|
age: z.ZodNumber;
|
|
90
75
|
asOfDateRef: z.ZodString;
|
|
91
76
|
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
92
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
93
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
94
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
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<{
|
|
95
80
|
last7Days: "last7Days";
|
|
96
81
|
last30Days: "last30Days";
|
|
97
82
|
last90Days: "last90Days";
|
|
98
83
|
last365Days: "last365Days";
|
|
99
84
|
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
100
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
85
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
101
86
|
originalFilename: z.ZodString;
|
|
102
87
|
type: z.ZodString;
|
|
103
88
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
104
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
89
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
105
90
|
originalFilename: z.ZodString;
|
|
106
91
|
type: z.ZodString;
|
|
107
92
|
option: z.ZodString;
|
|
@@ -138,20 +123,17 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
138
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
124
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
140
125
|
unit: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}, z.core.$strip
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}, z.core.$strip
|
|
152
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
153
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
154
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>>> | z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
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<{
|
|
155
137
|
last7Days: "last7Days";
|
|
156
138
|
last30Days: "last30Days";
|
|
157
139
|
last90Days: "last90Days";
|
|
@@ -160,11 +142,11 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
160
142
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
161
143
|
unit: z.ZodOptional<z.ZodString>;
|
|
162
144
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
163
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
145
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
164
146
|
originalFilename: z.ZodString;
|
|
165
147
|
type: z.ZodString;
|
|
166
148
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
167
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
149
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
168
150
|
originalFilename: z.ZodString;
|
|
169
151
|
type: z.ZodString;
|
|
170
152
|
option: z.ZodString;
|
|
@@ -178,23 +160,23 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
178
160
|
country: z.ZodString;
|
|
179
161
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
180
162
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
181
|
-
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
163
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">, z.ZodObject<{
|
|
182
164
|
age: z.ZodNumber;
|
|
183
165
|
asOfDateRef: z.ZodString;
|
|
184
166
|
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
185
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
186
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
187
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
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<{
|
|
188
170
|
last7Days: "last7Days";
|
|
189
171
|
last30Days: "last30Days";
|
|
190
172
|
last90Days: "last90Days";
|
|
191
173
|
last365Days: "last365Days";
|
|
192
174
|
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
193
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
175
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
194
176
|
originalFilename: z.ZodString;
|
|
195
177
|
type: z.ZodString;
|
|
196
178
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
197
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
179
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
198
180
|
originalFilename: z.ZodString;
|
|
199
181
|
type: z.ZodString;
|
|
200
182
|
option: z.ZodString;
|
|
@@ -231,7 +213,13 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
231
213
|
}, z.core.$strip>, z.ZodObject<{
|
|
232
214
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
233
215
|
unit: z.ZodOptional<z.ZodString>;
|
|
234
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"
|
|
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>>>]>>;
|
|
235
223
|
}, z.core.$strip>>>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
236
224
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
225
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -249,18 +237,45 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
249
237
|
firstname: z.ZodString;
|
|
250
238
|
surname: z.ZodString;
|
|
251
239
|
middlename: z.ZodString | z.ZodOptional<z.ZodString>;
|
|
252
|
-
}, z.core.$strip> | z.
|
|
240
|
+
}, z.core.$strip> | z.ZodType<{
|
|
241
|
+
country: string;
|
|
242
|
+
addressType: "DOMESTIC";
|
|
243
|
+
administrativeArea: string;
|
|
244
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
245
|
+
} | {
|
|
246
|
+
country: string;
|
|
247
|
+
addressType: "INTERNATIONAL";
|
|
248
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
addressType: "DOMESTIC";
|
|
251
|
+
country?: string | null | undefined;
|
|
252
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
253
|
+
administrativeArea?: string | null | undefined;
|
|
254
|
+
} | {
|
|
255
|
+
addressType: "INTERNATIONAL";
|
|
256
|
+
country?: string | null | undefined;
|
|
257
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
258
|
+
} | null | undefined, unknown, z.core.$ZodTypeInternals<{
|
|
259
|
+
country: string;
|
|
260
|
+
addressType: "DOMESTIC";
|
|
261
|
+
administrativeArea: string;
|
|
262
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
country: string;
|
|
265
|
+
addressType: "INTERNATIONAL";
|
|
266
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
267
|
+
} | {
|
|
268
|
+
addressType: "DOMESTIC";
|
|
269
|
+
country?: string | null | undefined;
|
|
270
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
271
|
+
administrativeArea?: string | null | undefined;
|
|
272
|
+
} | {
|
|
273
|
+
addressType: "INTERNATIONAL";
|
|
274
|
+
country?: string | null | undefined;
|
|
275
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
276
|
+
} | null | undefined, unknown>> | z.ZodObject<Readonly<{
|
|
253
277
|
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
254
|
-
}>, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">>> | z.ZodOptional<z.ZodNullable<z.
|
|
255
|
-
country: z.ZodString;
|
|
256
|
-
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
257
|
-
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
258
|
-
administrativeArea: z.ZodString;
|
|
259
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
-
country: z.ZodString;
|
|
261
|
-
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
262
|
-
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
263
|
-
}, z.core.$strip>], "addressType">>> | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
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<{
|
|
264
279
|
data: z.ZodAny;
|
|
265
280
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
266
281
|
numericValue: z.ZodNumber;
|
|
@@ -268,6 +283,9 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
268
283
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
269
284
|
age: z.ZodNumber;
|
|
270
285
|
asOfDateRef: z.ZodString;
|
|
286
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
287
|
+
label: z.ZodString;
|
|
288
|
+
value: z.ZodString;
|
|
271
289
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodEmail>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
272
290
|
firstname: z.ZodString;
|
|
273
291
|
surname: z.ZodString;
|
|
@@ -294,6 +312,7 @@ type FieldTypeValueMap = {
|
|
|
294
312
|
[FieldType.RADIO_GROUP]: z.infer<typeof TextValue>;
|
|
295
313
|
[FieldType.PARAGRAPH]: z.infer<typeof TextValue>;
|
|
296
314
|
[FieldType.HEADING]: z.infer<typeof TextValue>;
|
|
315
|
+
[FieldType.AUTOCOMPLETE]: z.infer<typeof AutocompleteValue>;
|
|
297
316
|
[FieldType.IMAGE_VIEW]: z.infer<typeof TextValue>;
|
|
298
317
|
[FieldType.ADMINISTRATIVE_AREA]: z.infer<typeof TextValue>;
|
|
299
318
|
[FieldType.FACILITY]: z.infer<typeof TextValue>;
|
|
@@ -339,7 +358,7 @@ export type EventConfigToDeclarationFormType<T extends EventConfig> = UnionToInt
|
|
|
339
358
|
/**
|
|
340
359
|
* Maps complex or nested field types, such as Address fields, to their corresponding empty values.
|
|
341
360
|
*/
|
|
342
|
-
export declare function mapFieldTypeToEmptyValue(field: FieldConfig):
|
|
361
|
+
export declare function mapFieldTypeToEmptyValue(field: FieldConfig): z.core.$brand<"CustomFieldValue"> | never[] | Record<string, FieldUpdateValue> | null;
|
|
343
362
|
export declare const isParagraphFieldType: (field: {
|
|
344
363
|
config: FieldConfig;
|
|
345
364
|
value: FieldValue | FieldUpdateValue;
|
|
@@ -594,6 +613,13 @@ export declare const isHttpFieldType: (field: {
|
|
|
594
613
|
value: undefined;
|
|
595
614
|
config: HttpField;
|
|
596
615
|
};
|
|
616
|
+
export declare const isAutocompleteFieldType: (field: {
|
|
617
|
+
config: FieldConfig;
|
|
618
|
+
value: FieldValue | FieldUpdateValue;
|
|
619
|
+
}) => field is {
|
|
620
|
+
value: undefined;
|
|
621
|
+
config: AutocompleteField;
|
|
622
|
+
};
|
|
597
623
|
export declare const isSearchFieldType: (field: {
|
|
598
624
|
config: FieldConfig;
|
|
599
625
|
value: FieldValue | FieldUpdateValue;
|
|
@@ -664,7 +690,7 @@ export declare const isHiddenFieldType: (field: {
|
|
|
664
690
|
value: undefined;
|
|
665
691
|
config: HiddenField;
|
|
666
692
|
};
|
|
667
|
-
export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
|
|
693
|
+
export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField | AutocompleteField;
|
|
668
694
|
export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
|
|
669
695
|
export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
|
|
670
696
|
export {};
|
|
@@ -28,6 +28,16 @@ export declare const AgeUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
|
28
28
|
age: z.ZodNumber;
|
|
29
29
|
asOfDateRef: z.ZodString;
|
|
30
30
|
}, z.core.$strip>>>;
|
|
31
|
+
export declare const AutocompleteValue: z.ZodObject<{
|
|
32
|
+
label: z.ZodString;
|
|
33
|
+
value: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type AutocompleteValue = z.infer<typeof AutocompleteValue>;
|
|
36
|
+
export declare const AutocompleteUpdateValue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
37
|
+
label: z.ZodString;
|
|
38
|
+
value: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
export type AutocompleteUpdateValue = z.infer<typeof AutocompleteUpdateValue>;
|
|
31
41
|
export declare const TimeValue: z.ZodString;
|
|
32
42
|
export type TimeValue = z.infer<typeof TimeValue>;
|
|
33
43
|
export declare const DatetimeValue: z.ZodISODateTime;
|
|
@@ -38,9 +48,9 @@ export declare const SelectDateRangeValue: z.ZodEnum<{
|
|
|
38
48
|
last365Days: "last365Days";
|
|
39
49
|
}>;
|
|
40
50
|
export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
|
|
41
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
42
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
43
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>;
|
|
51
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
52
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
53
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>;
|
|
44
54
|
export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
|
|
45
55
|
export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
|
|
46
56
|
export declare const EmailValue: z.ZodEmail;
|
|
@@ -66,23 +76,23 @@ declare const LeafFieldValues: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Z
|
|
|
66
76
|
country: z.ZodString;
|
|
67
77
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
68
78
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
69
|
-
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
79
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">, z.ZodObject<{
|
|
70
80
|
age: z.ZodNumber;
|
|
71
81
|
asOfDateRef: z.ZodString;
|
|
72
82
|
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
73
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
74
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
75
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
83
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
84
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
85
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>, z.ZodEnum<{
|
|
76
86
|
last7Days: "last7Days";
|
|
77
87
|
last30Days: "last30Days";
|
|
78
88
|
last90Days: "last90Days";
|
|
79
89
|
last365Days: "last365Days";
|
|
80
90
|
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
81
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
91
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
82
92
|
originalFilename: z.ZodString;
|
|
83
93
|
type: z.ZodString;
|
|
84
94
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
85
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
95
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
86
96
|
originalFilename: z.ZodString;
|
|
87
97
|
type: z.ZodString;
|
|
88
98
|
option: z.ZodString;
|
|
@@ -119,7 +129,13 @@ declare const LeafFieldValues: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Z
|
|
|
119
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
120
130
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
121
131
|
unit: z.ZodOptional<z.ZodString>;
|
|
122
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"
|
|
132
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">, z.ZodObject<{
|
|
133
|
+
label: z.ZodString;
|
|
134
|
+
value: z.ZodString;
|
|
135
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
136
|
+
label: z.ZodString;
|
|
137
|
+
value: z.ZodString;
|
|
138
|
+
}, z.core.$strip>>>]>;
|
|
123
139
|
type LeafFieldValues = z.infer<typeof LeafFieldValues>;
|
|
124
140
|
export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
141
|
country: z.ZodString;
|
|
@@ -130,23 +146,23 @@ export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<readon
|
|
|
130
146
|
country: z.ZodString;
|
|
131
147
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
148
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
133
|
-
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
149
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">, z.ZodObject<{
|
|
134
150
|
age: z.ZodNumber;
|
|
135
151
|
asOfDateRef: z.ZodString;
|
|
136
152
|
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
137
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
138
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
139
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
153
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
154
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
155
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>, z.ZodEnum<{
|
|
140
156
|
last7Days: "last7Days";
|
|
141
157
|
last30Days: "last30Days";
|
|
142
158
|
last90Days: "last90Days";
|
|
143
159
|
last365Days: "last365Days";
|
|
144
160
|
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
145
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
161
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
146
162
|
originalFilename: z.ZodString;
|
|
147
163
|
type: z.ZodString;
|
|
148
164
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
149
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
165
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
150
166
|
originalFilename: z.ZodString;
|
|
151
167
|
type: z.ZodString;
|
|
152
168
|
option: z.ZodString;
|
|
@@ -183,7 +199,13 @@ export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<readon
|
|
|
183
199
|
}, z.core.$strip>, z.ZodObject<{
|
|
184
200
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
185
201
|
unit: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"
|
|
202
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">, z.ZodObject<{
|
|
203
|
+
label: z.ZodString;
|
|
204
|
+
value: z.ZodString;
|
|
205
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
206
|
+
label: z.ZodString;
|
|
207
|
+
value: z.ZodString;
|
|
208
|
+
}, z.core.$strip>>>]>>;
|
|
187
209
|
export type FieldGroupValue = z.infer<typeof FieldGroupValue>;
|
|
188
210
|
export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
189
211
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -195,23 +217,23 @@ export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
|
195
217
|
country: z.ZodString;
|
|
196
218
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
197
219
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
198
|
-
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate">, z.ZodObject<{
|
|
220
|
+
}, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">, z.ZodObject<{
|
|
199
221
|
age: z.ZodNumber;
|
|
200
222
|
asOfDateRef: z.ZodString;
|
|
201
223
|
}, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
202
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
203
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
204
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>, z.ZodEnum<{
|
|
224
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
225
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
226
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>, z.ZodEnum<{
|
|
205
227
|
last7Days: "last7Days";
|
|
206
228
|
last30Days: "last30Days";
|
|
207
229
|
last90Days: "last90Days";
|
|
208
230
|
last365Days: "last365Days";
|
|
209
231
|
}>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
|
210
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
232
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
211
233
|
originalFilename: z.ZodString;
|
|
212
234
|
type: z.ZodString;
|
|
213
235
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
214
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
236
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
215
237
|
originalFilename: z.ZodString;
|
|
216
238
|
type: z.ZodString;
|
|
217
239
|
option: z.ZodString;
|
|
@@ -248,13 +270,19 @@ export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
|
248
270
|
}, z.core.$strip>, z.ZodObject<{
|
|
249
271
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
250
272
|
unit: z.ZodOptional<z.ZodString>;
|
|
251
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue"
|
|
273
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">, z.ZodObject<{
|
|
274
|
+
label: z.ZodString;
|
|
275
|
+
value: z.ZodString;
|
|
276
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
277
|
+
label: z.ZodString;
|
|
278
|
+
value: z.ZodString;
|
|
279
|
+
}, z.core.$strip>>>]>>;
|
|
252
280
|
}, z.core.$strip>>>;
|
|
253
281
|
export type DataFieldValue = z.infer<typeof DataFieldValue>;
|
|
254
282
|
export type FieldValue = LeafFieldValues | DataFieldValue | FieldGroupValue;
|
|
255
283
|
export declare const FieldValue: z.ZodType<FieldValue>;
|
|
256
284
|
export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodAny;
|
|
257
|
-
export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof NumberWithUnitFieldUpdateValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | DataFieldValue | FieldGroupValue | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue> | z.infer<typeof CustomFieldValue> | z.infer<typeof HiddenFieldValue>;
|
|
285
|
+
export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof NumberWithUnitFieldUpdateValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | DataFieldValue | FieldGroupValue | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue> | z.infer<typeof CustomFieldValue> | z.infer<typeof HiddenFieldValue> | z.infer<typeof AutocompleteUpdateValue>;
|
|
258
286
|
export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
|
|
259
287
|
/**
|
|
260
288
|
* NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
|
|
@@ -265,5 +293,5 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
|
|
|
265
293
|
*
|
|
266
294
|
* FieldValueInputSchema uses Input types which have set optional values as nullish
|
|
267
295
|
* */
|
|
268
|
-
export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | typeof DateValue | typeof EmailValue | typeof CustomFieldValue | z.ZodString | z.ZodBoolean;
|
|
296
|
+
export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | typeof DateValue | typeof EmailValue | typeof CustomFieldValue | typeof AutocompleteValue | z.ZodString | z.ZodBoolean;
|
|
269
297
|
//# sourceMappingURL=FieldValue.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { z } from 'zod';
|
|
|
7
7
|
* displayed day in timezones behind UTC. Use `plainDateToLocalDate` instead to
|
|
8
8
|
* get local midnight.
|
|
9
9
|
*/
|
|
10
|
-
export declare const PlainDate: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
10
|
+
export declare const PlainDate: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
11
11
|
export type PlainDate = z.infer<typeof PlainDate>;
|
|
12
12
|
/**
|
|
13
13
|
* Converts a {@link PlainDate} (YYYY-MM-DD) to a local `Date` at midnight.
|
|
@@ -2,10 +2,10 @@ import * as z from 'zod/v4';
|
|
|
2
2
|
export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "placeOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"];
|
|
3
3
|
export declare const WorkqueueColumnKeys: z.ZodEnum<{
|
|
4
4
|
id: "id";
|
|
5
|
-
type: "type";
|
|
6
5
|
title: "title";
|
|
7
|
-
|
|
6
|
+
type: "type";
|
|
8
7
|
updatedAt: "updatedAt";
|
|
8
|
+
placeOfEvent: "placeOfEvent";
|
|
9
9
|
createdByUserType: "createdByUserType";
|
|
10
10
|
createdAt: "createdAt";
|
|
11
11
|
createdBy: "createdBy";
|
|
@@ -25,10 +25,10 @@ export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
|
|
|
25
25
|
export declare const WorkqueueColumnValue: z.ZodObject<{
|
|
26
26
|
$event: z.ZodEnum<{
|
|
27
27
|
id: "id";
|
|
28
|
-
type: "type";
|
|
29
28
|
title: "title";
|
|
30
|
-
|
|
29
|
+
type: "type";
|
|
31
30
|
updatedAt: "updatedAt";
|
|
31
|
+
placeOfEvent: "placeOfEvent";
|
|
32
32
|
createdByUserType: "createdByUserType";
|
|
33
33
|
createdAt: "createdAt";
|
|
34
34
|
createdBy: "createdBy";
|
|
@@ -54,10 +54,10 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
|
54
54
|
value: z.ZodObject<{
|
|
55
55
|
$event: z.ZodEnum<{
|
|
56
56
|
id: "id";
|
|
57
|
-
type: "type";
|
|
58
57
|
title: "title";
|
|
59
|
-
|
|
58
|
+
type: "type";
|
|
60
59
|
updatedAt: "updatedAt";
|
|
60
|
+
placeOfEvent: "placeOfEvent";
|
|
61
61
|
createdByUserType: "createdByUserType";
|
|
62
62
|
createdAt: "createdAt";
|
|
63
63
|
createdBy: "createdBy";
|
|
@@ -84,7 +84,7 @@ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColum
|
|
|
84
84
|
description: string;
|
|
85
85
|
};
|
|
86
86
|
value: {
|
|
87
|
-
$event: "id" | "
|
|
87
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
88
88
|
};
|
|
89
89
|
}[];
|
|
90
90
|
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|