@opencrvs/toolkit 1.9.13-rc.9f087e5 → 1.9.13-rc.a0186ec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.sh +0 -13
- package/dist/api/index.d.ts.map +1 -1
- package/dist/commons/api/router.d.ts +2101 -3232
- package/dist/commons/conditionals/conditionals.d.ts +3 -27
- package/dist/commons/conditionals/validate.d.ts +2 -13
- package/dist/commons/events/ActionConfig.d.ts +1555 -415
- package/dist/commons/events/ActionDocument.d.ts +1941 -888
- package/dist/commons/events/ActionInput.d.ts +1073 -277
- package/dist/commons/events/ActionType.d.ts +11 -91
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1496 -294
- package/dist/commons/events/CompositeFieldValue.d.ts +190 -30
- package/dist/commons/events/Conditional.d.ts +38 -26
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4471 -1592
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/DeduplicationConfig.d.ts +171 -15
- package/dist/commons/events/Draft.d.ts +107 -72
- package/dist/commons/events/DynamicFieldValue.d.ts +78 -12
- package/dist/commons/events/EventConfig.d.ts +2420 -35
- package/dist/commons/events/EventConfigInput.d.ts +3 -0
- package/dist/commons/events/EventDocument.d.ts +1366 -354
- package/dist/commons/events/EventIndex.d.ts +1010 -212
- package/dist/commons/events/EventInput.d.ts +8 -3
- package/dist/commons/events/EventMetadata.d.ts +357 -130
- package/dist/commons/events/FieldConfig.d.ts +12899 -2890
- package/dist/commons/events/FieldType.d.ts +4 -26
- package/dist/commons/events/FieldTypeMapping.d.ts +906 -314
- package/dist/commons/events/FieldValue.d.ts +527 -149
- package/dist/commons/events/FileUtils.d.ts +2 -2
- package/dist/commons/events/FormConfig.d.ts +721 -54
- package/dist/commons/events/PageConfig.d.ts +320 -58
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/SummaryConfig.d.ts +161 -14
- package/dist/commons/events/TemplateConfig.d.ts +3 -2
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
- package/dist/commons/events/WorkqueueConfig.d.ts +7480 -2135
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +247 -2
- package/dist/commons/events/index.d.ts +0 -3
- package/dist/commons/events/locations.d.ts +20 -57
- package/dist/commons/events/scopes.d.ts +34 -35
- package/dist/commons/events/state/availableActions.d.ts +2 -7
- package/dist/commons/events/state/flags.d.ts +3 -21
- package/dist/commons/events/state/index.d.ts +27 -30
- package/dist/commons/events/state/utils.d.ts +172 -190
- package/dist/commons/events/test.utils.d.ts +11 -52
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +443 -374
- package/dist/commons/notification/UserNotifications.d.ts +637 -61
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +14 -302
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +2107 -2838
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1770 -2073
- package/dist/scopes/index.d.ts +353 -640
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +300 -340
- package/package.json +8 -18
- package/tsconfig.json +2 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/application-config/index.d.ts +0 -2
- package/dist/application-config/index.d.ts.map +0 -1
- package/dist/application-config/index.js +0 -2128
- package/dist/cli.d.ts +0 -2
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -2422
- package/dist/commons/application-config/index.d.ts +0 -84
- package/dist/commons/events/AuditLog.d.ts +0 -405
- package/dist/commons/events/Flag.d.ts +0 -67
- package/dist/commons/events/eventConfigValidation.d.ts +0 -8
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -405
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -753
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -159
- package/dist/migrations/v2.0/index.d.ts +0 -7
- package/dist/migrations/v2.0/index.d.ts.map +0 -1
- package/dist/migrations/v2.0/index.js +0 -2361
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -344
- package/dist/migrations/v2.0/migrate-scopes.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-scopes.js +0 -281
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -268
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +0 -157
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -97
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -110
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -164
- package/dist/migrations/v2.0/rename-api-paths.d.ts +0 -3
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-api-paths.js +0 -188
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +0 -181
- package/opencrvs-toolkit-1.9.13-rc.9f087e5.tgz +0 -0
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TranslationConfig } from './TranslationConfig';
|
|
2
3
|
import { FieldConfig } from './FieldConfig';
|
|
3
4
|
import { FieldValue } from './FieldValue';
|
|
4
5
|
export declare const SearchQueryParams: z.ZodObject<{
|
|
5
6
|
eventType: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.
|
|
7
|
+
}, "strip", z.ZodType<FieldValue, z.ZodTypeDef, FieldValue>, {
|
|
8
|
+
eventType?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
eventType?: string | undefined;
|
|
11
|
+
}>;
|
|
7
12
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
|
8
|
-
export declare const FieldConfigSchema: z.ZodObject<{
|
|
13
|
+
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
9
14
|
config: z.ZodObject<{
|
|
10
|
-
type: z.ZodEnum<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
|
16
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
19
|
+
searchFields?: string[] | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
22
|
+
searchFields?: string[] | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
19
25
|
readonly NAME: "NAME";
|
|
20
26
|
readonly PHONE: "PHONE";
|
|
21
27
|
readonly ID: "ID";
|
|
@@ -30,9 +36,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
30
36
|
readonly DATE_RANGE: "DATE_RANGE";
|
|
31
37
|
readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
|
|
32
38
|
readonly TIME: "TIME";
|
|
33
|
-
readonly IMAGE_VIEW: "IMAGE_VIEW";
|
|
34
39
|
readonly PARAGRAPH: "PARAGRAPH";
|
|
35
|
-
readonly HEADING: "HEADING";
|
|
36
40
|
readonly PAGE_HEADER: "PAGE_HEADER";
|
|
37
41
|
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
38
42
|
readonly FIELD_GROUP: "FIELD_GROUP";
|
|
@@ -50,7 +54,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
50
54
|
readonly SIGNATURE: "SIGNATURE";
|
|
51
55
|
readonly DATA: "DATA";
|
|
52
56
|
readonly BUTTON: "BUTTON";
|
|
53
|
-
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
54
57
|
readonly SEARCH: "SEARCH";
|
|
55
58
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
56
59
|
readonly HTTP: "HTTP";
|
|
@@ -60,52 +63,164 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
60
63
|
readonly QR_READER: "QR_READER";
|
|
61
64
|
readonly ID_READER: "ID_READER";
|
|
62
65
|
readonly LOADER: "LOADER";
|
|
63
|
-
readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
|
|
64
|
-
readonly USER_ROLE: "USER_ROLE";
|
|
65
|
-
readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
|
|
66
66
|
}>>;
|
|
67
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
67
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
68
|
+
id: string;
|
|
69
|
+
description: string;
|
|
70
|
+
defaultMessage: string;
|
|
71
|
+
}>>;
|
|
68
72
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
73
|
value: z.ZodString;
|
|
70
|
-
label: z.ZodUnion<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
74
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
75
|
+
id: string;
|
|
76
|
+
description: string;
|
|
77
|
+
defaultMessage: string;
|
|
78
|
+
}>]>;
|
|
79
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string | TranslationConfig;
|
|
83
|
+
conditionals?: ({
|
|
84
|
+
type: "SHOW";
|
|
85
|
+
conditional: import(".").JSONSchema;
|
|
86
|
+
} | {
|
|
87
|
+
type: "ENABLE";
|
|
88
|
+
conditional: import(".").JSONSchema;
|
|
89
|
+
})[] | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
value: string;
|
|
92
|
+
label: string | {
|
|
93
|
+
id: string;
|
|
94
|
+
description: string;
|
|
95
|
+
defaultMessage: string;
|
|
96
|
+
};
|
|
97
|
+
conditionals?: ({
|
|
98
|
+
type: "SHOW";
|
|
99
|
+
conditional: import(".").JSONSchema;
|
|
100
|
+
} | {
|
|
101
|
+
type: "ENABLE";
|
|
102
|
+
conditional: import(".").JSONSchema;
|
|
103
|
+
})[] | undefined;
|
|
104
|
+
}>, "many">>;
|
|
105
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
106
|
+
id: string;
|
|
107
|
+
description: string;
|
|
108
|
+
defaultMessage: string;
|
|
109
|
+
}>>;
|
|
110
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
111
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
112
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
|
113
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
114
|
+
id: string;
|
|
115
|
+
description: string;
|
|
116
|
+
defaultMessage: string;
|
|
117
|
+
}>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
message: TranslationConfig;
|
|
120
|
+
validator: import(".").JSONSchema;
|
|
121
|
+
}, {
|
|
122
|
+
message: {
|
|
123
|
+
id: string;
|
|
124
|
+
description: string;
|
|
125
|
+
defaultMessage: string;
|
|
126
|
+
};
|
|
127
|
+
validator: import(".").JSONSchema;
|
|
128
|
+
}>, "many">>>;
|
|
129
|
+
}, {
|
|
94
130
|
fieldId: z.ZodString;
|
|
95
131
|
fieldType: z.ZodLiteral<"field">;
|
|
96
|
-
}, z.
|
|
132
|
+
}>, "strip", z.ZodTypeAny, {
|
|
133
|
+
config: {
|
|
134
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
135
|
+
searchFields?: string[] | undefined;
|
|
136
|
+
};
|
|
137
|
+
fieldId: string;
|
|
138
|
+
fieldType: "field";
|
|
139
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
140
|
+
options?: {
|
|
141
|
+
value: string;
|
|
142
|
+
label: string | TranslationConfig;
|
|
143
|
+
conditionals?: ({
|
|
144
|
+
type: "SHOW";
|
|
145
|
+
conditional: import(".").JSONSchema;
|
|
146
|
+
} | {
|
|
147
|
+
type: "ENABLE";
|
|
148
|
+
conditional: import(".").JSONSchema;
|
|
149
|
+
})[] | undefined;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
label?: TranslationConfig | undefined;
|
|
152
|
+
conditionals?: ({
|
|
153
|
+
type: "SHOW";
|
|
154
|
+
conditional: import(".").JSONSchema;
|
|
155
|
+
} | {
|
|
156
|
+
type: "ENABLE";
|
|
157
|
+
conditional: import(".").JSONSchema;
|
|
158
|
+
} | {
|
|
159
|
+
type: "DISPLAY_ON_REVIEW";
|
|
160
|
+
conditional: import(".").JSONSchema;
|
|
161
|
+
})[] | undefined;
|
|
162
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
163
|
+
validations?: {
|
|
164
|
+
message: TranslationConfig;
|
|
165
|
+
validator: import(".").JSONSchema;
|
|
166
|
+
}[] | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
config: {
|
|
169
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
170
|
+
searchFields?: string[] | undefined;
|
|
171
|
+
};
|
|
172
|
+
fieldId: string;
|
|
173
|
+
fieldType: "field";
|
|
174
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
175
|
+
options?: {
|
|
176
|
+
value: string;
|
|
177
|
+
label: string | {
|
|
178
|
+
id: string;
|
|
179
|
+
description: string;
|
|
180
|
+
defaultMessage: string;
|
|
181
|
+
};
|
|
182
|
+
conditionals?: ({
|
|
183
|
+
type: "SHOW";
|
|
184
|
+
conditional: import(".").JSONSchema;
|
|
185
|
+
} | {
|
|
186
|
+
type: "ENABLE";
|
|
187
|
+
conditional: import(".").JSONSchema;
|
|
188
|
+
})[] | undefined;
|
|
189
|
+
}[] | undefined;
|
|
190
|
+
label?: {
|
|
191
|
+
id: string;
|
|
192
|
+
description: string;
|
|
193
|
+
defaultMessage: string;
|
|
194
|
+
} | undefined;
|
|
195
|
+
conditionals?: ({
|
|
196
|
+
type: "SHOW";
|
|
197
|
+
conditional: import(".").JSONSchema;
|
|
198
|
+
} | {
|
|
199
|
+
type: "ENABLE";
|
|
200
|
+
conditional: import(".").JSONSchema;
|
|
201
|
+
} | {
|
|
202
|
+
type: "DISPLAY_ON_REVIEW";
|
|
203
|
+
conditional: import(".").JSONSchema;
|
|
204
|
+
})[] | undefined;
|
|
205
|
+
searchCriteriaLabelPrefix?: {
|
|
206
|
+
id: string;
|
|
207
|
+
description: string;
|
|
208
|
+
defaultMessage: string;
|
|
209
|
+
} | undefined;
|
|
210
|
+
validations?: {
|
|
211
|
+
message: {
|
|
212
|
+
id: string;
|
|
213
|
+
description: string;
|
|
214
|
+
defaultMessage: string;
|
|
215
|
+
};
|
|
216
|
+
validator: import(".").JSONSchema;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
}>;
|
|
97
219
|
/**
|
|
98
220
|
* The event fields that are available for advanced search, date of event, summary. These are the values
|
|
99
221
|
* that can be passed to the `event` function to create a field config.
|
|
100
222
|
*/
|
|
101
|
-
export declare const EventFieldIdInput: z.ZodEnum<
|
|
102
|
-
updatedAt: "updatedAt";
|
|
103
|
-
status: "status";
|
|
104
|
-
trackingId: "trackingId";
|
|
105
|
-
"legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
|
|
106
|
-
"legalStatuses.REGISTERED.createdAtLocation": "legalStatuses.REGISTERED.createdAtLocation";
|
|
107
|
-
"legalStatuses.REGISTERED.registrationNumber": "legalStatuses.REGISTERED.registrationNumber";
|
|
108
|
-
}>;
|
|
223
|
+
export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "legalStatuses.REGISTERED.registrationNumber", "updatedAt"]>;
|
|
109
224
|
/**
|
|
110
225
|
* Represent the prefix used to differentiate event metadata fields from
|
|
111
226
|
* the declaration ones in advanced search form.
|
|
@@ -115,27 +230,21 @@ export declare const METADATA_FIELD_PREFIX = "event.";
|
|
|
115
230
|
* The field IDs that are actually used in the advanced search, date of event, summary. The `event`
|
|
116
231
|
* function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
|
|
117
232
|
*/
|
|
118
|
-
export declare const EventFieldId: z.ZodEnum<
|
|
119
|
-
"event.updatedAt": "event.updatedAt";
|
|
120
|
-
"event.status": "event.status";
|
|
121
|
-
"event.trackingId": "event.trackingId";
|
|
122
|
-
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
123
|
-
"event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
|
|
124
|
-
"event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
|
|
125
|
-
}>;
|
|
233
|
+
export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
|
|
126
234
|
export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
|
|
127
235
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
|
128
|
-
export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
236
|
+
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
129
237
|
config: z.ZodObject<{
|
|
130
|
-
type: z.ZodEnum<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
238
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
|
239
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
242
|
+
searchFields?: string[] | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
245
|
+
searchFields?: string[] | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
139
248
|
readonly NAME: "NAME";
|
|
140
249
|
readonly PHONE: "PHONE";
|
|
141
250
|
readonly ID: "ID";
|
|
@@ -150,9 +259,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
150
259
|
readonly DATE_RANGE: "DATE_RANGE";
|
|
151
260
|
readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
|
|
152
261
|
readonly TIME: "TIME";
|
|
153
|
-
readonly IMAGE_VIEW: "IMAGE_VIEW";
|
|
154
262
|
readonly PARAGRAPH: "PARAGRAPH";
|
|
155
|
-
readonly HEADING: "HEADING";
|
|
156
263
|
readonly PAGE_HEADER: "PAGE_HEADER";
|
|
157
264
|
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
158
265
|
readonly FIELD_GROUP: "FIELD_GROUP";
|
|
@@ -170,7 +277,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
170
277
|
readonly SIGNATURE: "SIGNATURE";
|
|
171
278
|
readonly DATA: "DATA";
|
|
172
279
|
readonly BUTTON: "BUTTON";
|
|
173
|
-
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
174
280
|
readonly SEARCH: "SEARCH";
|
|
175
281
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
176
282
|
readonly HTTP: "HTTP";
|
|
@@ -180,58 +286,171 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
180
286
|
readonly QR_READER: "QR_READER";
|
|
181
287
|
readonly ID_READER: "ID_READER";
|
|
182
288
|
readonly LOADER: "LOADER";
|
|
183
|
-
readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
|
|
184
|
-
readonly USER_ROLE: "USER_ROLE";
|
|
185
|
-
readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
|
|
186
289
|
}>>;
|
|
187
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
290
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
291
|
+
id: string;
|
|
292
|
+
description: string;
|
|
293
|
+
defaultMessage: string;
|
|
294
|
+
}>>;
|
|
188
295
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
296
|
value: z.ZodString;
|
|
190
|
-
label: z.ZodUnion<
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
297
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
298
|
+
id: string;
|
|
299
|
+
description: string;
|
|
300
|
+
defaultMessage: string;
|
|
301
|
+
}>]>;
|
|
302
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
value: string;
|
|
305
|
+
label: string | TranslationConfig;
|
|
306
|
+
conditionals?: ({
|
|
307
|
+
type: "SHOW";
|
|
308
|
+
conditional: import(".").JSONSchema;
|
|
309
|
+
} | {
|
|
310
|
+
type: "ENABLE";
|
|
311
|
+
conditional: import(".").JSONSchema;
|
|
312
|
+
})[] | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
value: string;
|
|
315
|
+
label: string | {
|
|
316
|
+
id: string;
|
|
317
|
+
description: string;
|
|
318
|
+
defaultMessage: string;
|
|
319
|
+
};
|
|
320
|
+
conditionals?: ({
|
|
321
|
+
type: "SHOW";
|
|
322
|
+
conditional: import(".").JSONSchema;
|
|
323
|
+
} | {
|
|
324
|
+
type: "ENABLE";
|
|
325
|
+
conditional: import(".").JSONSchema;
|
|
326
|
+
})[] | undefined;
|
|
327
|
+
}>, "many">>;
|
|
328
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
329
|
+
id: string;
|
|
330
|
+
description: string;
|
|
331
|
+
defaultMessage: string;
|
|
332
|
+
}>>;
|
|
333
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
334
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
335
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
|
336
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
337
|
+
id: string;
|
|
338
|
+
description: string;
|
|
339
|
+
defaultMessage: string;
|
|
340
|
+
}>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
message: TranslationConfig;
|
|
343
|
+
validator: import(".").JSONSchema;
|
|
344
|
+
}, {
|
|
345
|
+
message: {
|
|
346
|
+
id: string;
|
|
347
|
+
description: string;
|
|
348
|
+
defaultMessage: string;
|
|
349
|
+
};
|
|
350
|
+
validator: import(".").JSONSchema;
|
|
351
|
+
}>, "many">>>;
|
|
352
|
+
}, {
|
|
353
|
+
fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
|
|
222
354
|
fieldType: z.ZodLiteral<"event">;
|
|
223
|
-
}, z.
|
|
224
|
-
|
|
355
|
+
}>, "strip", z.ZodTypeAny, {
|
|
356
|
+
config: {
|
|
357
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
358
|
+
searchFields?: string[] | undefined;
|
|
359
|
+
};
|
|
360
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
361
|
+
fieldType: "event";
|
|
362
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
363
|
+
options?: {
|
|
364
|
+
value: string;
|
|
365
|
+
label: string | TranslationConfig;
|
|
366
|
+
conditionals?: ({
|
|
367
|
+
type: "SHOW";
|
|
368
|
+
conditional: import(".").JSONSchema;
|
|
369
|
+
} | {
|
|
370
|
+
type: "ENABLE";
|
|
371
|
+
conditional: import(".").JSONSchema;
|
|
372
|
+
})[] | undefined;
|
|
373
|
+
}[] | undefined;
|
|
374
|
+
label?: TranslationConfig | undefined;
|
|
375
|
+
conditionals?: ({
|
|
376
|
+
type: "SHOW";
|
|
377
|
+
conditional: import(".").JSONSchema;
|
|
378
|
+
} | {
|
|
379
|
+
type: "ENABLE";
|
|
380
|
+
conditional: import(".").JSONSchema;
|
|
381
|
+
} | {
|
|
382
|
+
type: "DISPLAY_ON_REVIEW";
|
|
383
|
+
conditional: import(".").JSONSchema;
|
|
384
|
+
})[] | undefined;
|
|
385
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
386
|
+
validations?: {
|
|
387
|
+
message: TranslationConfig;
|
|
388
|
+
validator: import(".").JSONSchema;
|
|
389
|
+
}[] | undefined;
|
|
390
|
+
}, {
|
|
391
|
+
config: {
|
|
392
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
393
|
+
searchFields?: string[] | undefined;
|
|
394
|
+
};
|
|
395
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
396
|
+
fieldType: "event";
|
|
397
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
398
|
+
options?: {
|
|
399
|
+
value: string;
|
|
400
|
+
label: string | {
|
|
401
|
+
id: string;
|
|
402
|
+
description: string;
|
|
403
|
+
defaultMessage: string;
|
|
404
|
+
};
|
|
405
|
+
conditionals?: ({
|
|
406
|
+
type: "SHOW";
|
|
407
|
+
conditional: import(".").JSONSchema;
|
|
408
|
+
} | {
|
|
409
|
+
type: "ENABLE";
|
|
410
|
+
conditional: import(".").JSONSchema;
|
|
411
|
+
})[] | undefined;
|
|
412
|
+
}[] | undefined;
|
|
413
|
+
label?: {
|
|
414
|
+
id: string;
|
|
415
|
+
description: string;
|
|
416
|
+
defaultMessage: string;
|
|
417
|
+
} | undefined;
|
|
418
|
+
conditionals?: ({
|
|
419
|
+
type: "SHOW";
|
|
420
|
+
conditional: import(".").JSONSchema;
|
|
421
|
+
} | {
|
|
422
|
+
type: "ENABLE";
|
|
423
|
+
conditional: import(".").JSONSchema;
|
|
424
|
+
} | {
|
|
425
|
+
type: "DISPLAY_ON_REVIEW";
|
|
426
|
+
conditional: import(".").JSONSchema;
|
|
427
|
+
})[] | undefined;
|
|
428
|
+
searchCriteriaLabelPrefix?: {
|
|
429
|
+
id: string;
|
|
430
|
+
description: string;
|
|
431
|
+
defaultMessage: string;
|
|
432
|
+
} | undefined;
|
|
433
|
+
validations?: {
|
|
434
|
+
message: {
|
|
435
|
+
id: string;
|
|
436
|
+
description: string;
|
|
437
|
+
defaultMessage: string;
|
|
438
|
+
};
|
|
439
|
+
validator: import(".").JSONSchema;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
}>;
|
|
442
|
+
export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
225
443
|
config: z.ZodObject<{
|
|
226
|
-
type: z.ZodEnum<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
444
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
|
445
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
446
|
+
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
448
|
+
searchFields?: string[] | undefined;
|
|
449
|
+
}, {
|
|
450
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
451
|
+
searchFields?: string[] | undefined;
|
|
452
|
+
}>;
|
|
453
|
+
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
235
454
|
readonly NAME: "NAME";
|
|
236
455
|
readonly PHONE: "PHONE";
|
|
237
456
|
readonly ID: "ID";
|
|
@@ -246,9 +465,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
246
465
|
readonly DATE_RANGE: "DATE_RANGE";
|
|
247
466
|
readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
|
|
248
467
|
readonly TIME: "TIME";
|
|
249
|
-
readonly IMAGE_VIEW: "IMAGE_VIEW";
|
|
250
468
|
readonly PARAGRAPH: "PARAGRAPH";
|
|
251
|
-
readonly HEADING: "HEADING";
|
|
252
469
|
readonly PAGE_HEADER: "PAGE_HEADER";
|
|
253
470
|
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
254
471
|
readonly FIELD_GROUP: "FIELD_GROUP";
|
|
@@ -266,7 +483,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
266
483
|
readonly SIGNATURE: "SIGNATURE";
|
|
267
484
|
readonly DATA: "DATA";
|
|
268
485
|
readonly BUTTON: "BUTTON";
|
|
269
|
-
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
270
486
|
readonly SEARCH: "SEARCH";
|
|
271
487
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
272
488
|
readonly HTTP: "HTTP";
|
|
@@ -276,50 +492,170 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
276
492
|
readonly QR_READER: "QR_READER";
|
|
277
493
|
readonly ID_READER: "ID_READER";
|
|
278
494
|
readonly LOADER: "LOADER";
|
|
279
|
-
readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
|
|
280
|
-
readonly USER_ROLE: "USER_ROLE";
|
|
281
|
-
readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
|
|
282
495
|
}>>;
|
|
283
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
496
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
497
|
+
id: string;
|
|
498
|
+
description: string;
|
|
499
|
+
defaultMessage: string;
|
|
500
|
+
}>>;
|
|
284
501
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
502
|
value: z.ZodString;
|
|
286
|
-
label: z.ZodUnion<
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
503
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
504
|
+
id: string;
|
|
505
|
+
description: string;
|
|
506
|
+
defaultMessage: string;
|
|
507
|
+
}>]>;
|
|
508
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
|
+
value: string;
|
|
511
|
+
label: string | TranslationConfig;
|
|
512
|
+
conditionals?: ({
|
|
513
|
+
type: "SHOW";
|
|
514
|
+
conditional: import(".").JSONSchema;
|
|
515
|
+
} | {
|
|
516
|
+
type: "ENABLE";
|
|
517
|
+
conditional: import(".").JSONSchema;
|
|
518
|
+
})[] | undefined;
|
|
519
|
+
}, {
|
|
520
|
+
value: string;
|
|
521
|
+
label: string | {
|
|
522
|
+
id: string;
|
|
523
|
+
description: string;
|
|
524
|
+
defaultMessage: string;
|
|
525
|
+
};
|
|
526
|
+
conditionals?: ({
|
|
527
|
+
type: "SHOW";
|
|
528
|
+
conditional: import(".").JSONSchema;
|
|
529
|
+
} | {
|
|
530
|
+
type: "ENABLE";
|
|
531
|
+
conditional: import(".").JSONSchema;
|
|
532
|
+
})[] | undefined;
|
|
533
|
+
}>, "many">>;
|
|
534
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
535
|
+
id: string;
|
|
536
|
+
description: string;
|
|
537
|
+
defaultMessage: string;
|
|
538
|
+
}>>;
|
|
539
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
540
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
541
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
|
542
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
543
|
+
id: string;
|
|
544
|
+
description: string;
|
|
545
|
+
defaultMessage: string;
|
|
546
|
+
}>;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
|
+
message: TranslationConfig;
|
|
549
|
+
validator: import(".").JSONSchema;
|
|
550
|
+
}, {
|
|
551
|
+
message: {
|
|
552
|
+
id: string;
|
|
553
|
+
description: string;
|
|
554
|
+
defaultMessage: string;
|
|
555
|
+
};
|
|
556
|
+
validator: import(".").JSONSchema;
|
|
557
|
+
}>, "many">>>;
|
|
558
|
+
}, {
|
|
310
559
|
fieldId: z.ZodString;
|
|
311
560
|
fieldType: z.ZodLiteral<"field">;
|
|
312
|
-
}, z.
|
|
561
|
+
}>, "strip", z.ZodTypeAny, {
|
|
562
|
+
config: {
|
|
563
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
564
|
+
searchFields?: string[] | undefined;
|
|
565
|
+
};
|
|
566
|
+
fieldId: string;
|
|
567
|
+
fieldType: "field";
|
|
568
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
569
|
+
options?: {
|
|
570
|
+
value: string;
|
|
571
|
+
label: string | TranslationConfig;
|
|
572
|
+
conditionals?: ({
|
|
573
|
+
type: "SHOW";
|
|
574
|
+
conditional: import(".").JSONSchema;
|
|
575
|
+
} | {
|
|
576
|
+
type: "ENABLE";
|
|
577
|
+
conditional: import(".").JSONSchema;
|
|
578
|
+
})[] | undefined;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
label?: TranslationConfig | undefined;
|
|
581
|
+
conditionals?: ({
|
|
582
|
+
type: "SHOW";
|
|
583
|
+
conditional: import(".").JSONSchema;
|
|
584
|
+
} | {
|
|
585
|
+
type: "ENABLE";
|
|
586
|
+
conditional: import(".").JSONSchema;
|
|
587
|
+
} | {
|
|
588
|
+
type: "DISPLAY_ON_REVIEW";
|
|
589
|
+
conditional: import(".").JSONSchema;
|
|
590
|
+
})[] | undefined;
|
|
591
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
592
|
+
validations?: {
|
|
593
|
+
message: TranslationConfig;
|
|
594
|
+
validator: import(".").JSONSchema;
|
|
595
|
+
}[] | undefined;
|
|
596
|
+
}, {
|
|
597
|
+
config: {
|
|
598
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
599
|
+
searchFields?: string[] | undefined;
|
|
600
|
+
};
|
|
601
|
+
fieldId: string;
|
|
602
|
+
fieldType: "field";
|
|
603
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
604
|
+
options?: {
|
|
605
|
+
value: string;
|
|
606
|
+
label: string | {
|
|
607
|
+
id: string;
|
|
608
|
+
description: string;
|
|
609
|
+
defaultMessage: string;
|
|
610
|
+
};
|
|
611
|
+
conditionals?: ({
|
|
612
|
+
type: "SHOW";
|
|
613
|
+
conditional: import(".").JSONSchema;
|
|
614
|
+
} | {
|
|
615
|
+
type: "ENABLE";
|
|
616
|
+
conditional: import(".").JSONSchema;
|
|
617
|
+
})[] | undefined;
|
|
618
|
+
}[] | undefined;
|
|
619
|
+
label?: {
|
|
620
|
+
id: string;
|
|
621
|
+
description: string;
|
|
622
|
+
defaultMessage: string;
|
|
623
|
+
} | undefined;
|
|
624
|
+
conditionals?: ({
|
|
625
|
+
type: "SHOW";
|
|
626
|
+
conditional: import(".").JSONSchema;
|
|
627
|
+
} | {
|
|
628
|
+
type: "ENABLE";
|
|
629
|
+
conditional: import(".").JSONSchema;
|
|
630
|
+
} | {
|
|
631
|
+
type: "DISPLAY_ON_REVIEW";
|
|
632
|
+
conditional: import(".").JSONSchema;
|
|
633
|
+
})[] | undefined;
|
|
634
|
+
searchCriteriaLabelPrefix?: {
|
|
635
|
+
id: string;
|
|
636
|
+
description: string;
|
|
637
|
+
defaultMessage: string;
|
|
638
|
+
} | undefined;
|
|
639
|
+
validations?: {
|
|
640
|
+
message: {
|
|
641
|
+
id: string;
|
|
642
|
+
description: string;
|
|
643
|
+
defaultMessage: string;
|
|
644
|
+
};
|
|
645
|
+
validator: import(".").JSONSchema;
|
|
646
|
+
}[] | undefined;
|
|
647
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
313
648
|
config: z.ZodObject<{
|
|
314
|
-
type: z.ZodEnum<
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
649
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
|
650
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
653
|
+
searchFields?: string[] | undefined;
|
|
654
|
+
}, {
|
|
655
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
656
|
+
searchFields?: string[] | undefined;
|
|
657
|
+
}>;
|
|
658
|
+
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
323
659
|
readonly NAME: "NAME";
|
|
324
660
|
readonly PHONE: "PHONE";
|
|
325
661
|
readonly ID: "ID";
|
|
@@ -334,9 +670,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
334
670
|
readonly DATE_RANGE: "DATE_RANGE";
|
|
335
671
|
readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
|
|
336
672
|
readonly TIME: "TIME";
|
|
337
|
-
readonly IMAGE_VIEW: "IMAGE_VIEW";
|
|
338
673
|
readonly PARAGRAPH: "PARAGRAPH";
|
|
339
|
-
readonly HEADING: "HEADING";
|
|
340
674
|
readonly PAGE_HEADER: "PAGE_HEADER";
|
|
341
675
|
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
342
676
|
readonly FIELD_GROUP: "FIELD_GROUP";
|
|
@@ -354,7 +688,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
354
688
|
readonly SIGNATURE: "SIGNATURE";
|
|
355
689
|
readonly DATA: "DATA";
|
|
356
690
|
readonly BUTTON: "BUTTON";
|
|
357
|
-
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
358
691
|
readonly SEARCH: "SEARCH";
|
|
359
692
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
360
693
|
readonly HTTP: "HTTP";
|
|
@@ -364,61 +697,350 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
364
697
|
readonly QR_READER: "QR_READER";
|
|
365
698
|
readonly ID_READER: "ID_READER";
|
|
366
699
|
readonly LOADER: "LOADER";
|
|
367
|
-
readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
|
|
368
|
-
readonly USER_ROLE: "USER_ROLE";
|
|
369
|
-
readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
|
|
370
700
|
}>>;
|
|
371
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
701
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
702
|
+
id: string;
|
|
703
|
+
description: string;
|
|
704
|
+
defaultMessage: string;
|
|
705
|
+
}>>;
|
|
372
706
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
707
|
value: z.ZodString;
|
|
374
|
-
label: z.ZodUnion<
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
708
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
709
|
+
id: string;
|
|
710
|
+
description: string;
|
|
711
|
+
defaultMessage: string;
|
|
712
|
+
}>]>;
|
|
713
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
value: string;
|
|
716
|
+
label: string | TranslationConfig;
|
|
717
|
+
conditionals?: ({
|
|
718
|
+
type: "SHOW";
|
|
719
|
+
conditional: import(".").JSONSchema;
|
|
720
|
+
} | {
|
|
721
|
+
type: "ENABLE";
|
|
722
|
+
conditional: import(".").JSONSchema;
|
|
723
|
+
})[] | undefined;
|
|
724
|
+
}, {
|
|
725
|
+
value: string;
|
|
726
|
+
label: string | {
|
|
727
|
+
id: string;
|
|
728
|
+
description: string;
|
|
729
|
+
defaultMessage: string;
|
|
730
|
+
};
|
|
731
|
+
conditionals?: ({
|
|
732
|
+
type: "SHOW";
|
|
733
|
+
conditional: import(".").JSONSchema;
|
|
734
|
+
} | {
|
|
735
|
+
type: "ENABLE";
|
|
736
|
+
conditional: import(".").JSONSchema;
|
|
737
|
+
})[] | undefined;
|
|
738
|
+
}>, "many">>;
|
|
739
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
740
|
+
id: string;
|
|
741
|
+
description: string;
|
|
742
|
+
defaultMessage: string;
|
|
743
|
+
}>>;
|
|
744
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
745
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
746
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
|
747
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
748
|
+
id: string;
|
|
749
|
+
description: string;
|
|
750
|
+
defaultMessage: string;
|
|
751
|
+
}>;
|
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
|
+
message: TranslationConfig;
|
|
754
|
+
validator: import(".").JSONSchema;
|
|
755
|
+
}, {
|
|
756
|
+
message: {
|
|
757
|
+
id: string;
|
|
758
|
+
description: string;
|
|
759
|
+
defaultMessage: string;
|
|
760
|
+
};
|
|
761
|
+
validator: import(".").JSONSchema;
|
|
762
|
+
}>, "many">>>;
|
|
763
|
+
}, {
|
|
764
|
+
fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
|
|
406
765
|
fieldType: z.ZodLiteral<"event">;
|
|
407
|
-
}, z.
|
|
766
|
+
}>, "strip", z.ZodTypeAny, {
|
|
767
|
+
config: {
|
|
768
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
769
|
+
searchFields?: string[] | undefined;
|
|
770
|
+
};
|
|
771
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
772
|
+
fieldType: "event";
|
|
773
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
774
|
+
options?: {
|
|
775
|
+
value: string;
|
|
776
|
+
label: string | TranslationConfig;
|
|
777
|
+
conditionals?: ({
|
|
778
|
+
type: "SHOW";
|
|
779
|
+
conditional: import(".").JSONSchema;
|
|
780
|
+
} | {
|
|
781
|
+
type: "ENABLE";
|
|
782
|
+
conditional: import(".").JSONSchema;
|
|
783
|
+
})[] | undefined;
|
|
784
|
+
}[] | undefined;
|
|
785
|
+
label?: TranslationConfig | undefined;
|
|
786
|
+
conditionals?: ({
|
|
787
|
+
type: "SHOW";
|
|
788
|
+
conditional: import(".").JSONSchema;
|
|
789
|
+
} | {
|
|
790
|
+
type: "ENABLE";
|
|
791
|
+
conditional: import(".").JSONSchema;
|
|
792
|
+
} | {
|
|
793
|
+
type: "DISPLAY_ON_REVIEW";
|
|
794
|
+
conditional: import(".").JSONSchema;
|
|
795
|
+
})[] | undefined;
|
|
796
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
797
|
+
validations?: {
|
|
798
|
+
message: TranslationConfig;
|
|
799
|
+
validator: import(".").JSONSchema;
|
|
800
|
+
}[] | undefined;
|
|
801
|
+
}, {
|
|
802
|
+
config: {
|
|
803
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
804
|
+
searchFields?: string[] | undefined;
|
|
805
|
+
};
|
|
806
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
807
|
+
fieldType: "event";
|
|
808
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
809
|
+
options?: {
|
|
810
|
+
value: string;
|
|
811
|
+
label: string | {
|
|
812
|
+
id: string;
|
|
813
|
+
description: string;
|
|
814
|
+
defaultMessage: string;
|
|
815
|
+
};
|
|
816
|
+
conditionals?: ({
|
|
817
|
+
type: "SHOW";
|
|
818
|
+
conditional: import(".").JSONSchema;
|
|
819
|
+
} | {
|
|
820
|
+
type: "ENABLE";
|
|
821
|
+
conditional: import(".").JSONSchema;
|
|
822
|
+
})[] | undefined;
|
|
823
|
+
}[] | undefined;
|
|
824
|
+
label?: {
|
|
825
|
+
id: string;
|
|
826
|
+
description: string;
|
|
827
|
+
defaultMessage: string;
|
|
828
|
+
} | undefined;
|
|
829
|
+
conditionals?: ({
|
|
830
|
+
type: "SHOW";
|
|
831
|
+
conditional: import(".").JSONSchema;
|
|
832
|
+
} | {
|
|
833
|
+
type: "ENABLE";
|
|
834
|
+
conditional: import(".").JSONSchema;
|
|
835
|
+
} | {
|
|
836
|
+
type: "DISPLAY_ON_REVIEW";
|
|
837
|
+
conditional: import(".").JSONSchema;
|
|
838
|
+
})[] | undefined;
|
|
839
|
+
searchCriteriaLabelPrefix?: {
|
|
840
|
+
id: string;
|
|
841
|
+
description: string;
|
|
842
|
+
defaultMessage: string;
|
|
843
|
+
} | undefined;
|
|
844
|
+
validations?: {
|
|
845
|
+
message: {
|
|
846
|
+
id: string;
|
|
847
|
+
description: string;
|
|
848
|
+
defaultMessage: string;
|
|
849
|
+
};
|
|
850
|
+
validator: import(".").JSONSchema;
|
|
851
|
+
}[] | undefined;
|
|
852
|
+
}>]>, {
|
|
853
|
+
config: {
|
|
854
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
855
|
+
searchFields?: string[] | undefined;
|
|
856
|
+
};
|
|
857
|
+
fieldId: string;
|
|
858
|
+
fieldType: "field";
|
|
859
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
860
|
+
options?: {
|
|
861
|
+
value: string;
|
|
862
|
+
label: string | TranslationConfig;
|
|
863
|
+
conditionals?: ({
|
|
864
|
+
type: "SHOW";
|
|
865
|
+
conditional: import(".").JSONSchema;
|
|
866
|
+
} | {
|
|
867
|
+
type: "ENABLE";
|
|
868
|
+
conditional: import(".").JSONSchema;
|
|
869
|
+
})[] | undefined;
|
|
870
|
+
}[] | undefined;
|
|
871
|
+
label?: TranslationConfig | undefined;
|
|
872
|
+
conditionals?: ({
|
|
873
|
+
type: "SHOW";
|
|
874
|
+
conditional: import(".").JSONSchema;
|
|
875
|
+
} | {
|
|
876
|
+
type: "ENABLE";
|
|
877
|
+
conditional: import(".").JSONSchema;
|
|
878
|
+
} | {
|
|
879
|
+
type: "DISPLAY_ON_REVIEW";
|
|
880
|
+
conditional: import(".").JSONSchema;
|
|
881
|
+
})[] | undefined;
|
|
882
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
883
|
+
validations?: {
|
|
884
|
+
message: TranslationConfig;
|
|
885
|
+
validator: import(".").JSONSchema;
|
|
886
|
+
}[] | undefined;
|
|
887
|
+
} | {
|
|
888
|
+
config: {
|
|
889
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
890
|
+
searchFields?: string[] | undefined;
|
|
891
|
+
};
|
|
892
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
893
|
+
fieldType: "event";
|
|
894
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
895
|
+
options?: {
|
|
896
|
+
value: string;
|
|
897
|
+
label: string | TranslationConfig;
|
|
898
|
+
conditionals?: ({
|
|
899
|
+
type: "SHOW";
|
|
900
|
+
conditional: import(".").JSONSchema;
|
|
901
|
+
} | {
|
|
902
|
+
type: "ENABLE";
|
|
903
|
+
conditional: import(".").JSONSchema;
|
|
904
|
+
})[] | undefined;
|
|
905
|
+
}[] | undefined;
|
|
906
|
+
label?: TranslationConfig | undefined;
|
|
907
|
+
conditionals?: ({
|
|
908
|
+
type: "SHOW";
|
|
909
|
+
conditional: import(".").JSONSchema;
|
|
910
|
+
} | {
|
|
911
|
+
type: "ENABLE";
|
|
912
|
+
conditional: import(".").JSONSchema;
|
|
913
|
+
} | {
|
|
914
|
+
type: "DISPLAY_ON_REVIEW";
|
|
915
|
+
conditional: import(".").JSONSchema;
|
|
916
|
+
})[] | undefined;
|
|
917
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
918
|
+
validations?: {
|
|
919
|
+
message: TranslationConfig;
|
|
920
|
+
validator: import(".").JSONSchema;
|
|
921
|
+
}[] | undefined;
|
|
922
|
+
}, {
|
|
923
|
+
config: {
|
|
924
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
925
|
+
searchFields?: string[] | undefined;
|
|
926
|
+
};
|
|
927
|
+
fieldId: string;
|
|
928
|
+
fieldType: "field";
|
|
929
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
930
|
+
options?: {
|
|
931
|
+
value: string;
|
|
932
|
+
label: string | {
|
|
933
|
+
id: string;
|
|
934
|
+
description: string;
|
|
935
|
+
defaultMessage: string;
|
|
936
|
+
};
|
|
937
|
+
conditionals?: ({
|
|
938
|
+
type: "SHOW";
|
|
939
|
+
conditional: import(".").JSONSchema;
|
|
940
|
+
} | {
|
|
941
|
+
type: "ENABLE";
|
|
942
|
+
conditional: import(".").JSONSchema;
|
|
943
|
+
})[] | undefined;
|
|
944
|
+
}[] | undefined;
|
|
945
|
+
label?: {
|
|
946
|
+
id: string;
|
|
947
|
+
description: string;
|
|
948
|
+
defaultMessage: string;
|
|
949
|
+
} | undefined;
|
|
950
|
+
conditionals?: ({
|
|
951
|
+
type: "SHOW";
|
|
952
|
+
conditional: import(".").JSONSchema;
|
|
953
|
+
} | {
|
|
954
|
+
type: "ENABLE";
|
|
955
|
+
conditional: import(".").JSONSchema;
|
|
956
|
+
} | {
|
|
957
|
+
type: "DISPLAY_ON_REVIEW";
|
|
958
|
+
conditional: import(".").JSONSchema;
|
|
959
|
+
})[] | undefined;
|
|
960
|
+
searchCriteriaLabelPrefix?: {
|
|
961
|
+
id: string;
|
|
962
|
+
description: string;
|
|
963
|
+
defaultMessage: string;
|
|
964
|
+
} | undefined;
|
|
965
|
+
validations?: {
|
|
966
|
+
message: {
|
|
967
|
+
id: string;
|
|
968
|
+
description: string;
|
|
969
|
+
defaultMessage: string;
|
|
970
|
+
};
|
|
971
|
+
validator: import(".").JSONSchema;
|
|
972
|
+
}[] | undefined;
|
|
973
|
+
} | {
|
|
974
|
+
config: {
|
|
975
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
976
|
+
searchFields?: string[] | undefined;
|
|
977
|
+
};
|
|
978
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
979
|
+
fieldType: "event";
|
|
980
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
981
|
+
options?: {
|
|
982
|
+
value: string;
|
|
983
|
+
label: string | {
|
|
984
|
+
id: string;
|
|
985
|
+
description: string;
|
|
986
|
+
defaultMessage: string;
|
|
987
|
+
};
|
|
988
|
+
conditionals?: ({
|
|
989
|
+
type: "SHOW";
|
|
990
|
+
conditional: import(".").JSONSchema;
|
|
991
|
+
} | {
|
|
992
|
+
type: "ENABLE";
|
|
993
|
+
conditional: import(".").JSONSchema;
|
|
994
|
+
})[] | undefined;
|
|
995
|
+
}[] | undefined;
|
|
996
|
+
label?: {
|
|
997
|
+
id: string;
|
|
998
|
+
description: string;
|
|
999
|
+
defaultMessage: string;
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
conditionals?: ({
|
|
1002
|
+
type: "SHOW";
|
|
1003
|
+
conditional: import(".").JSONSchema;
|
|
1004
|
+
} | {
|
|
1005
|
+
type: "ENABLE";
|
|
1006
|
+
conditional: import(".").JSONSchema;
|
|
1007
|
+
} | {
|
|
1008
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1009
|
+
conditional: import(".").JSONSchema;
|
|
1010
|
+
})[] | undefined;
|
|
1011
|
+
searchCriteriaLabelPrefix?: {
|
|
1012
|
+
id: string;
|
|
1013
|
+
description: string;
|
|
1014
|
+
defaultMessage: string;
|
|
1015
|
+
} | undefined;
|
|
1016
|
+
validations?: {
|
|
1017
|
+
message: {
|
|
1018
|
+
id: string;
|
|
1019
|
+
description: string;
|
|
1020
|
+
defaultMessage: string;
|
|
1021
|
+
};
|
|
1022
|
+
validator: import(".").JSONSchema;
|
|
1023
|
+
}[] | undefined;
|
|
1024
|
+
}>;
|
|
408
1025
|
export type AdvancedSearchField = z.infer<typeof AdvancedSearchField>;
|
|
409
1026
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
410
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
411
|
-
|
|
1027
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1028
|
+
id: string;
|
|
1029
|
+
description: string;
|
|
1030
|
+
defaultMessage: string;
|
|
1031
|
+
}>;
|
|
1032
|
+
fields: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
412
1033
|
config: z.ZodObject<{
|
|
413
|
-
type: z.ZodEnum<
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
1034
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
|
1035
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1036
|
+
}, "strip", z.ZodTypeAny, {
|
|
1037
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1038
|
+
searchFields?: string[] | undefined;
|
|
1039
|
+
}, {
|
|
1040
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1041
|
+
searchFields?: string[] | undefined;
|
|
1042
|
+
}>;
|
|
1043
|
+
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
422
1044
|
readonly NAME: "NAME";
|
|
423
1045
|
readonly PHONE: "PHONE";
|
|
424
1046
|
readonly ID: "ID";
|
|
@@ -433,9 +1055,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
433
1055
|
readonly DATE_RANGE: "DATE_RANGE";
|
|
434
1056
|
readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
|
|
435
1057
|
readonly TIME: "TIME";
|
|
436
|
-
readonly IMAGE_VIEW: "IMAGE_VIEW";
|
|
437
1058
|
readonly PARAGRAPH: "PARAGRAPH";
|
|
438
|
-
readonly HEADING: "HEADING";
|
|
439
1059
|
readonly PAGE_HEADER: "PAGE_HEADER";
|
|
440
1060
|
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
441
1061
|
readonly FIELD_GROUP: "FIELD_GROUP";
|
|
@@ -453,7 +1073,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
453
1073
|
readonly SIGNATURE: "SIGNATURE";
|
|
454
1074
|
readonly DATA: "DATA";
|
|
455
1075
|
readonly BUTTON: "BUTTON";
|
|
456
|
-
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
457
1076
|
readonly SEARCH: "SEARCH";
|
|
458
1077
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
459
1078
|
readonly HTTP: "HTTP";
|
|
@@ -463,50 +1082,170 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
463
1082
|
readonly QR_READER: "QR_READER";
|
|
464
1083
|
readonly ID_READER: "ID_READER";
|
|
465
1084
|
readonly LOADER: "LOADER";
|
|
466
|
-
readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
|
|
467
|
-
readonly USER_ROLE: "USER_ROLE";
|
|
468
|
-
readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
|
|
469
1085
|
}>>;
|
|
470
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
1086
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1087
|
+
id: string;
|
|
1088
|
+
description: string;
|
|
1089
|
+
defaultMessage: string;
|
|
1090
|
+
}>>;
|
|
471
1091
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
472
1092
|
value: z.ZodString;
|
|
473
|
-
label: z.ZodUnion<
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
1093
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1094
|
+
id: string;
|
|
1095
|
+
description: string;
|
|
1096
|
+
defaultMessage: string;
|
|
1097
|
+
}>]>;
|
|
1098
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
1099
|
+
}, "strip", z.ZodTypeAny, {
|
|
1100
|
+
value: string;
|
|
1101
|
+
label: string | TranslationConfig;
|
|
1102
|
+
conditionals?: ({
|
|
1103
|
+
type: "SHOW";
|
|
1104
|
+
conditional: import(".").JSONSchema;
|
|
1105
|
+
} | {
|
|
1106
|
+
type: "ENABLE";
|
|
1107
|
+
conditional: import(".").JSONSchema;
|
|
1108
|
+
})[] | undefined;
|
|
1109
|
+
}, {
|
|
1110
|
+
value: string;
|
|
1111
|
+
label: string | {
|
|
1112
|
+
id: string;
|
|
1113
|
+
description: string;
|
|
1114
|
+
defaultMessage: string;
|
|
1115
|
+
};
|
|
1116
|
+
conditionals?: ({
|
|
1117
|
+
type: "SHOW";
|
|
1118
|
+
conditional: import(".").JSONSchema;
|
|
1119
|
+
} | {
|
|
1120
|
+
type: "ENABLE";
|
|
1121
|
+
conditional: import(".").JSONSchema;
|
|
1122
|
+
})[] | undefined;
|
|
1123
|
+
}>, "many">>;
|
|
1124
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1125
|
+
id: string;
|
|
1126
|
+
description: string;
|
|
1127
|
+
defaultMessage: string;
|
|
1128
|
+
}>>;
|
|
1129
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
1130
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1131
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
|
1132
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1133
|
+
id: string;
|
|
1134
|
+
description: string;
|
|
1135
|
+
defaultMessage: string;
|
|
1136
|
+
}>;
|
|
1137
|
+
}, "strip", z.ZodTypeAny, {
|
|
1138
|
+
message: TranslationConfig;
|
|
1139
|
+
validator: import(".").JSONSchema;
|
|
1140
|
+
}, {
|
|
1141
|
+
message: {
|
|
1142
|
+
id: string;
|
|
1143
|
+
description: string;
|
|
1144
|
+
defaultMessage: string;
|
|
1145
|
+
};
|
|
1146
|
+
validator: import(".").JSONSchema;
|
|
1147
|
+
}>, "many">>>;
|
|
1148
|
+
}, {
|
|
497
1149
|
fieldId: z.ZodString;
|
|
498
1150
|
fieldType: z.ZodLiteral<"field">;
|
|
499
|
-
}, z.
|
|
1151
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1152
|
+
config: {
|
|
1153
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1154
|
+
searchFields?: string[] | undefined;
|
|
1155
|
+
};
|
|
1156
|
+
fieldId: string;
|
|
1157
|
+
fieldType: "field";
|
|
1158
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1159
|
+
options?: {
|
|
1160
|
+
value: string;
|
|
1161
|
+
label: string | TranslationConfig;
|
|
1162
|
+
conditionals?: ({
|
|
1163
|
+
type: "SHOW";
|
|
1164
|
+
conditional: import(".").JSONSchema;
|
|
1165
|
+
} | {
|
|
1166
|
+
type: "ENABLE";
|
|
1167
|
+
conditional: import(".").JSONSchema;
|
|
1168
|
+
})[] | undefined;
|
|
1169
|
+
}[] | undefined;
|
|
1170
|
+
label?: TranslationConfig | undefined;
|
|
1171
|
+
conditionals?: ({
|
|
1172
|
+
type: "SHOW";
|
|
1173
|
+
conditional: import(".").JSONSchema;
|
|
1174
|
+
} | {
|
|
1175
|
+
type: "ENABLE";
|
|
1176
|
+
conditional: import(".").JSONSchema;
|
|
1177
|
+
} | {
|
|
1178
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1179
|
+
conditional: import(".").JSONSchema;
|
|
1180
|
+
})[] | undefined;
|
|
1181
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
1182
|
+
validations?: {
|
|
1183
|
+
message: TranslationConfig;
|
|
1184
|
+
validator: import(".").JSONSchema;
|
|
1185
|
+
}[] | undefined;
|
|
1186
|
+
}, {
|
|
1187
|
+
config: {
|
|
1188
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1189
|
+
searchFields?: string[] | undefined;
|
|
1190
|
+
};
|
|
1191
|
+
fieldId: string;
|
|
1192
|
+
fieldType: "field";
|
|
1193
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1194
|
+
options?: {
|
|
1195
|
+
value: string;
|
|
1196
|
+
label: string | {
|
|
1197
|
+
id: string;
|
|
1198
|
+
description: string;
|
|
1199
|
+
defaultMessage: string;
|
|
1200
|
+
};
|
|
1201
|
+
conditionals?: ({
|
|
1202
|
+
type: "SHOW";
|
|
1203
|
+
conditional: import(".").JSONSchema;
|
|
1204
|
+
} | {
|
|
1205
|
+
type: "ENABLE";
|
|
1206
|
+
conditional: import(".").JSONSchema;
|
|
1207
|
+
})[] | undefined;
|
|
1208
|
+
}[] | undefined;
|
|
1209
|
+
label?: {
|
|
1210
|
+
id: string;
|
|
1211
|
+
description: string;
|
|
1212
|
+
defaultMessage: string;
|
|
1213
|
+
} | undefined;
|
|
1214
|
+
conditionals?: ({
|
|
1215
|
+
type: "SHOW";
|
|
1216
|
+
conditional: import(".").JSONSchema;
|
|
1217
|
+
} | {
|
|
1218
|
+
type: "ENABLE";
|
|
1219
|
+
conditional: import(".").JSONSchema;
|
|
1220
|
+
} | {
|
|
1221
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1222
|
+
conditional: import(".").JSONSchema;
|
|
1223
|
+
})[] | undefined;
|
|
1224
|
+
searchCriteriaLabelPrefix?: {
|
|
1225
|
+
id: string;
|
|
1226
|
+
description: string;
|
|
1227
|
+
defaultMessage: string;
|
|
1228
|
+
} | undefined;
|
|
1229
|
+
validations?: {
|
|
1230
|
+
message: {
|
|
1231
|
+
id: string;
|
|
1232
|
+
description: string;
|
|
1233
|
+
defaultMessage: string;
|
|
1234
|
+
};
|
|
1235
|
+
validator: import(".").JSONSchema;
|
|
1236
|
+
}[] | undefined;
|
|
1237
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
500
1238
|
config: z.ZodObject<{
|
|
501
|
-
type: z.ZodEnum<
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
1239
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
|
1240
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1241
|
+
}, "strip", z.ZodTypeAny, {
|
|
1242
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1243
|
+
searchFields?: string[] | undefined;
|
|
1244
|
+
}, {
|
|
1245
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1246
|
+
searchFields?: string[] | undefined;
|
|
1247
|
+
}>;
|
|
1248
|
+
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
510
1249
|
readonly NAME: "NAME";
|
|
511
1250
|
readonly PHONE: "PHONE";
|
|
512
1251
|
readonly ID: "ID";
|
|
@@ -521,9 +1260,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
521
1260
|
readonly DATE_RANGE: "DATE_RANGE";
|
|
522
1261
|
readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
|
|
523
1262
|
readonly TIME: "TIME";
|
|
524
|
-
readonly IMAGE_VIEW: "IMAGE_VIEW";
|
|
525
1263
|
readonly PARAGRAPH: "PARAGRAPH";
|
|
526
|
-
readonly HEADING: "HEADING";
|
|
527
1264
|
readonly PAGE_HEADER: "PAGE_HEADER";
|
|
528
1265
|
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
529
1266
|
readonly FIELD_GROUP: "FIELD_GROUP";
|
|
@@ -541,7 +1278,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
541
1278
|
readonly SIGNATURE: "SIGNATURE";
|
|
542
1279
|
readonly DATA: "DATA";
|
|
543
1280
|
readonly BUTTON: "BUTTON";
|
|
544
|
-
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
545
1281
|
readonly SEARCH: "SEARCH";
|
|
546
1282
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
547
1283
|
readonly HTTP: "HTTP";
|
|
@@ -551,48 +1287,514 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
551
1287
|
readonly QR_READER: "QR_READER";
|
|
552
1288
|
readonly ID_READER: "ID_READER";
|
|
553
1289
|
readonly LOADER: "LOADER";
|
|
554
|
-
readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
|
|
555
|
-
readonly USER_ROLE: "USER_ROLE";
|
|
556
|
-
readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
|
|
557
1290
|
}>>;
|
|
558
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.
|
|
1291
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1292
|
+
id: string;
|
|
1293
|
+
description: string;
|
|
1294
|
+
defaultMessage: string;
|
|
1295
|
+
}>>;
|
|
559
1296
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
1297
|
value: z.ZodString;
|
|
561
|
-
label: z.ZodUnion<
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
1298
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1299
|
+
id: string;
|
|
1300
|
+
description: string;
|
|
1301
|
+
defaultMessage: string;
|
|
1302
|
+
}>]>;
|
|
1303
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
1304
|
+
}, "strip", z.ZodTypeAny, {
|
|
1305
|
+
value: string;
|
|
1306
|
+
label: string | TranslationConfig;
|
|
1307
|
+
conditionals?: ({
|
|
1308
|
+
type: "SHOW";
|
|
1309
|
+
conditional: import(".").JSONSchema;
|
|
1310
|
+
} | {
|
|
1311
|
+
type: "ENABLE";
|
|
1312
|
+
conditional: import(".").JSONSchema;
|
|
1313
|
+
})[] | undefined;
|
|
1314
|
+
}, {
|
|
1315
|
+
value: string;
|
|
1316
|
+
label: string | {
|
|
1317
|
+
id: string;
|
|
1318
|
+
description: string;
|
|
1319
|
+
defaultMessage: string;
|
|
1320
|
+
};
|
|
1321
|
+
conditionals?: ({
|
|
1322
|
+
type: "SHOW";
|
|
1323
|
+
conditional: import(".").JSONSchema;
|
|
1324
|
+
} | {
|
|
1325
|
+
type: "ENABLE";
|
|
1326
|
+
conditional: import(".").JSONSchema;
|
|
1327
|
+
})[] | undefined;
|
|
1328
|
+
}>, "many">>;
|
|
1329
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1330
|
+
id: string;
|
|
1331
|
+
description: string;
|
|
1332
|
+
defaultMessage: string;
|
|
1333
|
+
}>>;
|
|
1334
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
1335
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1336
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
|
1337
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
1338
|
+
id: string;
|
|
1339
|
+
description: string;
|
|
1340
|
+
defaultMessage: string;
|
|
1341
|
+
}>;
|
|
1342
|
+
}, "strip", z.ZodTypeAny, {
|
|
1343
|
+
message: TranslationConfig;
|
|
1344
|
+
validator: import(".").JSONSchema;
|
|
1345
|
+
}, {
|
|
1346
|
+
message: {
|
|
1347
|
+
id: string;
|
|
1348
|
+
description: string;
|
|
1349
|
+
defaultMessage: string;
|
|
1350
|
+
};
|
|
1351
|
+
validator: import(".").JSONSchema;
|
|
1352
|
+
}>, "many">>>;
|
|
1353
|
+
}, {
|
|
1354
|
+
fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
|
|
593
1355
|
fieldType: z.ZodLiteral<"event">;
|
|
594
|
-
}, z.
|
|
595
|
-
|
|
1356
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1357
|
+
config: {
|
|
1358
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1359
|
+
searchFields?: string[] | undefined;
|
|
1360
|
+
};
|
|
1361
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
1362
|
+
fieldType: "event";
|
|
1363
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1364
|
+
options?: {
|
|
1365
|
+
value: string;
|
|
1366
|
+
label: string | TranslationConfig;
|
|
1367
|
+
conditionals?: ({
|
|
1368
|
+
type: "SHOW";
|
|
1369
|
+
conditional: import(".").JSONSchema;
|
|
1370
|
+
} | {
|
|
1371
|
+
type: "ENABLE";
|
|
1372
|
+
conditional: import(".").JSONSchema;
|
|
1373
|
+
})[] | undefined;
|
|
1374
|
+
}[] | undefined;
|
|
1375
|
+
label?: TranslationConfig | undefined;
|
|
1376
|
+
conditionals?: ({
|
|
1377
|
+
type: "SHOW";
|
|
1378
|
+
conditional: import(".").JSONSchema;
|
|
1379
|
+
} | {
|
|
1380
|
+
type: "ENABLE";
|
|
1381
|
+
conditional: import(".").JSONSchema;
|
|
1382
|
+
} | {
|
|
1383
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1384
|
+
conditional: import(".").JSONSchema;
|
|
1385
|
+
})[] | undefined;
|
|
1386
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
1387
|
+
validations?: {
|
|
1388
|
+
message: TranslationConfig;
|
|
1389
|
+
validator: import(".").JSONSchema;
|
|
1390
|
+
}[] | undefined;
|
|
1391
|
+
}, {
|
|
1392
|
+
config: {
|
|
1393
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1394
|
+
searchFields?: string[] | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
1397
|
+
fieldType: "event";
|
|
1398
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1399
|
+
options?: {
|
|
1400
|
+
value: string;
|
|
1401
|
+
label: string | {
|
|
1402
|
+
id: string;
|
|
1403
|
+
description: string;
|
|
1404
|
+
defaultMessage: string;
|
|
1405
|
+
};
|
|
1406
|
+
conditionals?: ({
|
|
1407
|
+
type: "SHOW";
|
|
1408
|
+
conditional: import(".").JSONSchema;
|
|
1409
|
+
} | {
|
|
1410
|
+
type: "ENABLE";
|
|
1411
|
+
conditional: import(".").JSONSchema;
|
|
1412
|
+
})[] | undefined;
|
|
1413
|
+
}[] | undefined;
|
|
1414
|
+
label?: {
|
|
1415
|
+
id: string;
|
|
1416
|
+
description: string;
|
|
1417
|
+
defaultMessage: string;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
conditionals?: ({
|
|
1420
|
+
type: "SHOW";
|
|
1421
|
+
conditional: import(".").JSONSchema;
|
|
1422
|
+
} | {
|
|
1423
|
+
type: "ENABLE";
|
|
1424
|
+
conditional: import(".").JSONSchema;
|
|
1425
|
+
} | {
|
|
1426
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1427
|
+
conditional: import(".").JSONSchema;
|
|
1428
|
+
})[] | undefined;
|
|
1429
|
+
searchCriteriaLabelPrefix?: {
|
|
1430
|
+
id: string;
|
|
1431
|
+
description: string;
|
|
1432
|
+
defaultMessage: string;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
validations?: {
|
|
1435
|
+
message: {
|
|
1436
|
+
id: string;
|
|
1437
|
+
description: string;
|
|
1438
|
+
defaultMessage: string;
|
|
1439
|
+
};
|
|
1440
|
+
validator: import(".").JSONSchema;
|
|
1441
|
+
}[] | undefined;
|
|
1442
|
+
}>]>, {
|
|
1443
|
+
config: {
|
|
1444
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1445
|
+
searchFields?: string[] | undefined;
|
|
1446
|
+
};
|
|
1447
|
+
fieldId: string;
|
|
1448
|
+
fieldType: "field";
|
|
1449
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1450
|
+
options?: {
|
|
1451
|
+
value: string;
|
|
1452
|
+
label: string | TranslationConfig;
|
|
1453
|
+
conditionals?: ({
|
|
1454
|
+
type: "SHOW";
|
|
1455
|
+
conditional: import(".").JSONSchema;
|
|
1456
|
+
} | {
|
|
1457
|
+
type: "ENABLE";
|
|
1458
|
+
conditional: import(".").JSONSchema;
|
|
1459
|
+
})[] | undefined;
|
|
1460
|
+
}[] | undefined;
|
|
1461
|
+
label?: TranslationConfig | undefined;
|
|
1462
|
+
conditionals?: ({
|
|
1463
|
+
type: "SHOW";
|
|
1464
|
+
conditional: import(".").JSONSchema;
|
|
1465
|
+
} | {
|
|
1466
|
+
type: "ENABLE";
|
|
1467
|
+
conditional: import(".").JSONSchema;
|
|
1468
|
+
} | {
|
|
1469
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1470
|
+
conditional: import(".").JSONSchema;
|
|
1471
|
+
})[] | undefined;
|
|
1472
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
1473
|
+
validations?: {
|
|
1474
|
+
message: TranslationConfig;
|
|
1475
|
+
validator: import(".").JSONSchema;
|
|
1476
|
+
}[] | undefined;
|
|
1477
|
+
} | {
|
|
1478
|
+
config: {
|
|
1479
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1480
|
+
searchFields?: string[] | undefined;
|
|
1481
|
+
};
|
|
1482
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
1483
|
+
fieldType: "event";
|
|
1484
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1485
|
+
options?: {
|
|
1486
|
+
value: string;
|
|
1487
|
+
label: string | TranslationConfig;
|
|
1488
|
+
conditionals?: ({
|
|
1489
|
+
type: "SHOW";
|
|
1490
|
+
conditional: import(".").JSONSchema;
|
|
1491
|
+
} | {
|
|
1492
|
+
type: "ENABLE";
|
|
1493
|
+
conditional: import(".").JSONSchema;
|
|
1494
|
+
})[] | undefined;
|
|
1495
|
+
}[] | undefined;
|
|
1496
|
+
label?: TranslationConfig | undefined;
|
|
1497
|
+
conditionals?: ({
|
|
1498
|
+
type: "SHOW";
|
|
1499
|
+
conditional: import(".").JSONSchema;
|
|
1500
|
+
} | {
|
|
1501
|
+
type: "ENABLE";
|
|
1502
|
+
conditional: import(".").JSONSchema;
|
|
1503
|
+
} | {
|
|
1504
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1505
|
+
conditional: import(".").JSONSchema;
|
|
1506
|
+
})[] | undefined;
|
|
1507
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
1508
|
+
validations?: {
|
|
1509
|
+
message: TranslationConfig;
|
|
1510
|
+
validator: import(".").JSONSchema;
|
|
1511
|
+
}[] | undefined;
|
|
1512
|
+
}, {
|
|
1513
|
+
config: {
|
|
1514
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1515
|
+
searchFields?: string[] | undefined;
|
|
1516
|
+
};
|
|
1517
|
+
fieldId: string;
|
|
1518
|
+
fieldType: "field";
|
|
1519
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1520
|
+
options?: {
|
|
1521
|
+
value: string;
|
|
1522
|
+
label: string | {
|
|
1523
|
+
id: string;
|
|
1524
|
+
description: string;
|
|
1525
|
+
defaultMessage: string;
|
|
1526
|
+
};
|
|
1527
|
+
conditionals?: ({
|
|
1528
|
+
type: "SHOW";
|
|
1529
|
+
conditional: import(".").JSONSchema;
|
|
1530
|
+
} | {
|
|
1531
|
+
type: "ENABLE";
|
|
1532
|
+
conditional: import(".").JSONSchema;
|
|
1533
|
+
})[] | undefined;
|
|
1534
|
+
}[] | undefined;
|
|
1535
|
+
label?: {
|
|
1536
|
+
id: string;
|
|
1537
|
+
description: string;
|
|
1538
|
+
defaultMessage: string;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
conditionals?: ({
|
|
1541
|
+
type: "SHOW";
|
|
1542
|
+
conditional: import(".").JSONSchema;
|
|
1543
|
+
} | {
|
|
1544
|
+
type: "ENABLE";
|
|
1545
|
+
conditional: import(".").JSONSchema;
|
|
1546
|
+
} | {
|
|
1547
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1548
|
+
conditional: import(".").JSONSchema;
|
|
1549
|
+
})[] | undefined;
|
|
1550
|
+
searchCriteriaLabelPrefix?: {
|
|
1551
|
+
id: string;
|
|
1552
|
+
description: string;
|
|
1553
|
+
defaultMessage: string;
|
|
1554
|
+
} | undefined;
|
|
1555
|
+
validations?: {
|
|
1556
|
+
message: {
|
|
1557
|
+
id: string;
|
|
1558
|
+
description: string;
|
|
1559
|
+
defaultMessage: string;
|
|
1560
|
+
};
|
|
1561
|
+
validator: import(".").JSONSchema;
|
|
1562
|
+
}[] | undefined;
|
|
1563
|
+
} | {
|
|
1564
|
+
config: {
|
|
1565
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1566
|
+
searchFields?: string[] | undefined;
|
|
1567
|
+
};
|
|
1568
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
1569
|
+
fieldType: "event";
|
|
1570
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1571
|
+
options?: {
|
|
1572
|
+
value: string;
|
|
1573
|
+
label: string | {
|
|
1574
|
+
id: string;
|
|
1575
|
+
description: string;
|
|
1576
|
+
defaultMessage: string;
|
|
1577
|
+
};
|
|
1578
|
+
conditionals?: ({
|
|
1579
|
+
type: "SHOW";
|
|
1580
|
+
conditional: import(".").JSONSchema;
|
|
1581
|
+
} | {
|
|
1582
|
+
type: "ENABLE";
|
|
1583
|
+
conditional: import(".").JSONSchema;
|
|
1584
|
+
})[] | undefined;
|
|
1585
|
+
}[] | undefined;
|
|
1586
|
+
label?: {
|
|
1587
|
+
id: string;
|
|
1588
|
+
description: string;
|
|
1589
|
+
defaultMessage: string;
|
|
1590
|
+
} | undefined;
|
|
1591
|
+
conditionals?: ({
|
|
1592
|
+
type: "SHOW";
|
|
1593
|
+
conditional: import(".").JSONSchema;
|
|
1594
|
+
} | {
|
|
1595
|
+
type: "ENABLE";
|
|
1596
|
+
conditional: import(".").JSONSchema;
|
|
1597
|
+
} | {
|
|
1598
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1599
|
+
conditional: import(".").JSONSchema;
|
|
1600
|
+
})[] | undefined;
|
|
1601
|
+
searchCriteriaLabelPrefix?: {
|
|
1602
|
+
id: string;
|
|
1603
|
+
description: string;
|
|
1604
|
+
defaultMessage: string;
|
|
1605
|
+
} | undefined;
|
|
1606
|
+
validations?: {
|
|
1607
|
+
message: {
|
|
1608
|
+
id: string;
|
|
1609
|
+
description: string;
|
|
1610
|
+
defaultMessage: string;
|
|
1611
|
+
};
|
|
1612
|
+
validator: import(".").JSONSchema;
|
|
1613
|
+
}[] | undefined;
|
|
1614
|
+
}>, "many">;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
|
+
title: TranslationConfig;
|
|
1617
|
+
fields: ({
|
|
1618
|
+
config: {
|
|
1619
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1620
|
+
searchFields?: string[] | undefined;
|
|
1621
|
+
};
|
|
1622
|
+
fieldId: string;
|
|
1623
|
+
fieldType: "field";
|
|
1624
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1625
|
+
options?: {
|
|
1626
|
+
value: string;
|
|
1627
|
+
label: string | TranslationConfig;
|
|
1628
|
+
conditionals?: ({
|
|
1629
|
+
type: "SHOW";
|
|
1630
|
+
conditional: import(".").JSONSchema;
|
|
1631
|
+
} | {
|
|
1632
|
+
type: "ENABLE";
|
|
1633
|
+
conditional: import(".").JSONSchema;
|
|
1634
|
+
})[] | undefined;
|
|
1635
|
+
}[] | undefined;
|
|
1636
|
+
label?: TranslationConfig | undefined;
|
|
1637
|
+
conditionals?: ({
|
|
1638
|
+
type: "SHOW";
|
|
1639
|
+
conditional: import(".").JSONSchema;
|
|
1640
|
+
} | {
|
|
1641
|
+
type: "ENABLE";
|
|
1642
|
+
conditional: import(".").JSONSchema;
|
|
1643
|
+
} | {
|
|
1644
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1645
|
+
conditional: import(".").JSONSchema;
|
|
1646
|
+
})[] | undefined;
|
|
1647
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
1648
|
+
validations?: {
|
|
1649
|
+
message: TranslationConfig;
|
|
1650
|
+
validator: import(".").JSONSchema;
|
|
1651
|
+
}[] | undefined;
|
|
1652
|
+
} | {
|
|
1653
|
+
config: {
|
|
1654
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1655
|
+
searchFields?: string[] | undefined;
|
|
1656
|
+
};
|
|
1657
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
1658
|
+
fieldType: "event";
|
|
1659
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1660
|
+
options?: {
|
|
1661
|
+
value: string;
|
|
1662
|
+
label: string | TranslationConfig;
|
|
1663
|
+
conditionals?: ({
|
|
1664
|
+
type: "SHOW";
|
|
1665
|
+
conditional: import(".").JSONSchema;
|
|
1666
|
+
} | {
|
|
1667
|
+
type: "ENABLE";
|
|
1668
|
+
conditional: import(".").JSONSchema;
|
|
1669
|
+
})[] | undefined;
|
|
1670
|
+
}[] | undefined;
|
|
1671
|
+
label?: TranslationConfig | undefined;
|
|
1672
|
+
conditionals?: ({
|
|
1673
|
+
type: "SHOW";
|
|
1674
|
+
conditional: import(".").JSONSchema;
|
|
1675
|
+
} | {
|
|
1676
|
+
type: "ENABLE";
|
|
1677
|
+
conditional: import(".").JSONSchema;
|
|
1678
|
+
} | {
|
|
1679
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1680
|
+
conditional: import(".").JSONSchema;
|
|
1681
|
+
})[] | undefined;
|
|
1682
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
|
1683
|
+
validations?: {
|
|
1684
|
+
message: TranslationConfig;
|
|
1685
|
+
validator: import(".").JSONSchema;
|
|
1686
|
+
}[] | undefined;
|
|
1687
|
+
})[];
|
|
1688
|
+
}, {
|
|
1689
|
+
title: {
|
|
1690
|
+
id: string;
|
|
1691
|
+
description: string;
|
|
1692
|
+
defaultMessage: string;
|
|
1693
|
+
};
|
|
1694
|
+
fields: ({
|
|
1695
|
+
config: {
|
|
1696
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1697
|
+
searchFields?: string[] | undefined;
|
|
1698
|
+
};
|
|
1699
|
+
fieldId: string;
|
|
1700
|
+
fieldType: "field";
|
|
1701
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1702
|
+
options?: {
|
|
1703
|
+
value: string;
|
|
1704
|
+
label: string | {
|
|
1705
|
+
id: string;
|
|
1706
|
+
description: string;
|
|
1707
|
+
defaultMessage: string;
|
|
1708
|
+
};
|
|
1709
|
+
conditionals?: ({
|
|
1710
|
+
type: "SHOW";
|
|
1711
|
+
conditional: import(".").JSONSchema;
|
|
1712
|
+
} | {
|
|
1713
|
+
type: "ENABLE";
|
|
1714
|
+
conditional: import(".").JSONSchema;
|
|
1715
|
+
})[] | undefined;
|
|
1716
|
+
}[] | undefined;
|
|
1717
|
+
label?: {
|
|
1718
|
+
id: string;
|
|
1719
|
+
description: string;
|
|
1720
|
+
defaultMessage: string;
|
|
1721
|
+
} | undefined;
|
|
1722
|
+
conditionals?: ({
|
|
1723
|
+
type: "SHOW";
|
|
1724
|
+
conditional: import(".").JSONSchema;
|
|
1725
|
+
} | {
|
|
1726
|
+
type: "ENABLE";
|
|
1727
|
+
conditional: import(".").JSONSchema;
|
|
1728
|
+
} | {
|
|
1729
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1730
|
+
conditional: import(".").JSONSchema;
|
|
1731
|
+
})[] | undefined;
|
|
1732
|
+
searchCriteriaLabelPrefix?: {
|
|
1733
|
+
id: string;
|
|
1734
|
+
description: string;
|
|
1735
|
+
defaultMessage: string;
|
|
1736
|
+
} | undefined;
|
|
1737
|
+
validations?: {
|
|
1738
|
+
message: {
|
|
1739
|
+
id: string;
|
|
1740
|
+
description: string;
|
|
1741
|
+
defaultMessage: string;
|
|
1742
|
+
};
|
|
1743
|
+
validator: import(".").JSONSchema;
|
|
1744
|
+
}[] | undefined;
|
|
1745
|
+
} | {
|
|
1746
|
+
config: {
|
|
1747
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
|
1748
|
+
searchFields?: string[] | undefined;
|
|
1749
|
+
};
|
|
1750
|
+
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
1751
|
+
fieldType: "event";
|
|
1752
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
1753
|
+
options?: {
|
|
1754
|
+
value: string;
|
|
1755
|
+
label: string | {
|
|
1756
|
+
id: string;
|
|
1757
|
+
description: string;
|
|
1758
|
+
defaultMessage: string;
|
|
1759
|
+
};
|
|
1760
|
+
conditionals?: ({
|
|
1761
|
+
type: "SHOW";
|
|
1762
|
+
conditional: import(".").JSONSchema;
|
|
1763
|
+
} | {
|
|
1764
|
+
type: "ENABLE";
|
|
1765
|
+
conditional: import(".").JSONSchema;
|
|
1766
|
+
})[] | undefined;
|
|
1767
|
+
}[] | undefined;
|
|
1768
|
+
label?: {
|
|
1769
|
+
id: string;
|
|
1770
|
+
description: string;
|
|
1771
|
+
defaultMessage: string;
|
|
1772
|
+
} | undefined;
|
|
1773
|
+
conditionals?: ({
|
|
1774
|
+
type: "SHOW";
|
|
1775
|
+
conditional: import(".").JSONSchema;
|
|
1776
|
+
} | {
|
|
1777
|
+
type: "ENABLE";
|
|
1778
|
+
conditional: import(".").JSONSchema;
|
|
1779
|
+
} | {
|
|
1780
|
+
type: "DISPLAY_ON_REVIEW";
|
|
1781
|
+
conditional: import(".").JSONSchema;
|
|
1782
|
+
})[] | undefined;
|
|
1783
|
+
searchCriteriaLabelPrefix?: {
|
|
1784
|
+
id: string;
|
|
1785
|
+
description: string;
|
|
1786
|
+
defaultMessage: string;
|
|
1787
|
+
} | undefined;
|
|
1788
|
+
validations?: {
|
|
1789
|
+
message: {
|
|
1790
|
+
id: string;
|
|
1791
|
+
description: string;
|
|
1792
|
+
defaultMessage: string;
|
|
1793
|
+
};
|
|
1794
|
+
validator: import(".").JSONSchema;
|
|
1795
|
+
}[] | undefined;
|
|
1796
|
+
})[];
|
|
1797
|
+
}>;
|
|
596
1798
|
export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
|
|
597
1799
|
export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
|
|
598
1800
|
fields: FieldConfig[];
|