@opencrvs/toolkit 1.9.4-rc.0e695b2 → 1.9.4-rc.469f912

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.
Files changed (58) hide show
  1. package/dist/commons/api/router.d.ts +2440 -28495
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -10
  3. package/dist/commons/conditionals/validate.d.ts +4 -11
  4. package/dist/commons/events/ActionConfig.d.ts +1552 -23416
  5. package/dist/commons/events/ActionDocument.d.ts +1856 -803
  6. package/dist/commons/events/ActionInput.d.ts +1073 -277
  7. package/dist/commons/events/ActionType.d.ts +9 -86
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -228
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -27
  10. package/dist/commons/events/Conditional.d.ts +38 -26
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -931
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
  15. package/dist/commons/events/Draft.d.ts +105 -70
  16. package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
  17. package/dist/commons/events/EventConfig.d.ts +2120 -18663
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1332 -320
  20. package/dist/commons/events/EventIndex.d.ts +967 -197
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +346 -106
  23. package/dist/commons/events/FieldConfig.d.ts +11774 -4259
  24. package/dist/commons/events/FieldType.d.ts +4 -20
  25. package/dist/commons/events/FieldTypeMapping.d.ts +813 -181
  26. package/dist/commons/events/FieldValue.d.ts +356 -83
  27. package/dist/commons/events/FormConfig.d.ts +721 -13140
  28. package/dist/commons/events/PageConfig.d.ts +319 -8780
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  31. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  33. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1615
  34. package/dist/commons/events/deduplication.d.ts +3 -3
  35. package/dist/commons/events/defineConfig.d.ts +163 -25639
  36. package/dist/commons/events/event.d.ts +4 -4
  37. package/dist/commons/events/index.d.ts +0 -1
  38. package/dist/commons/events/locations.d.ts +19 -15
  39. package/dist/commons/events/scopes.d.ts +4 -5
  40. package/dist/commons/events/state/availableActions.d.ts +1 -2
  41. package/dist/commons/events/state/flags.d.ts +3 -21
  42. package/dist/commons/events/state/index.d.ts +19 -23
  43. package/dist/commons/events/state/utils.d.ts +112 -130
  44. package/dist/commons/events/test.utils.d.ts +8 -17
  45. package/dist/commons/events/transactions.d.ts +1 -1
  46. package/dist/commons/events/utils.d.ts +373 -51350
  47. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  48. package/dist/conditionals/index.d.ts.map +1 -1
  49. package/dist/conditionals/index.js +5 -38
  50. package/dist/events/deduplication.d.ts +3 -3
  51. package/dist/events/index.js +1545 -1805
  52. package/dist/notification/index.d.ts.map +1 -1
  53. package/dist/notification/index.js +1412 -1430
  54. package/dist/scopes/index.d.ts +132 -167
  55. package/dist/scopes/index.d.ts.map +1 -1
  56. package/dist/scopes/index.js +94 -133
  57. package/package.json +5 -5
  58. package/dist/commons/events/Flag.d.ts +0 -70
@@ -1,21 +1,27 @@
1
- import * as z from 'zod/v4';
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.core.$catchall<z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>>;
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
- exact: "exact";
12
- fuzzy: "fuzzy";
13
- range: "range";
14
- within: "within";
15
- }>;
16
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
- }, z.core.$strip>;
18
- type: z.ZodOptional<z.ZodEnum<{
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";
@@ -55,44 +61,135 @@ export declare const FieldConfigSchema: z.ZodObject<{
55
61
  readonly QR_READER: "QR_READER";
56
62
  readonly ID_READER: "ID_READER";
57
63
  readonly LOADER: "LOADER";
58
- readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
59
- readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
60
64
  }>>;
61
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
65
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
66
+ id: string;
67
+ description: string;
68
+ defaultMessage: string;
69
+ }>>;
62
70
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
71
  value: z.ZodString;
64
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
65
- }, z.core.$strip>>>;
66
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
67
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
68
- type: z.ZodLiteral<"SHOW">;
69
- conditional: z.ZodAny;
70
- }, z.core.$strip>, z.ZodObject<{
71
- type: z.ZodLiteral<"ENABLE">;
72
- conditional: z.ZodAny;
73
- }, z.core.$strip>, z.ZodObject<{
74
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
75
- conditional: z.ZodAny;
76
- }, z.core.$strip>], "type">>>;
77
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
- validator: z.ZodAny;
79
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
80
- }, z.core.$strip>>>;
72
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
73
+ id: string;
74
+ description: string;
75
+ defaultMessage: string;
76
+ }>]>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ value: string;
79
+ label: string | TranslationConfig;
80
+ }, {
81
+ value: string;
82
+ label: string | {
83
+ id: string;
84
+ description: string;
85
+ defaultMessage: string;
86
+ };
87
+ }>, "many">>;
88
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
89
+ id: string;
90
+ description: string;
91
+ defaultMessage: string;
92
+ }>>;
93
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
94
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
95
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
96
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
97
+ id: string;
98
+ description: string;
99
+ defaultMessage: string;
100
+ }>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ message: TranslationConfig;
103
+ validator: import(".").JSONSchema;
104
+ }, {
105
+ message: {
106
+ id: string;
107
+ description: string;
108
+ defaultMessage: string;
109
+ };
110
+ validator: import(".").JSONSchema;
111
+ }>, "many">>>;
112
+ }, {
81
113
  fieldId: z.ZodString;
82
114
  fieldType: z.ZodLiteral<"field">;
83
- }, z.core.$strip>;
115
+ }>, "strip", z.ZodTypeAny, {
116
+ config: {
117
+ type: "exact" | "fuzzy" | "range" | "within";
118
+ searchFields?: string[] | undefined;
119
+ };
120
+ fieldId: string;
121
+ fieldType: "field";
122
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
123
+ options?: {
124
+ value: string;
125
+ label: string | TranslationConfig;
126
+ }[] | undefined;
127
+ label?: TranslationConfig | undefined;
128
+ conditionals?: ({
129
+ type: "SHOW";
130
+ conditional: import(".").JSONSchema;
131
+ } | {
132
+ type: "ENABLE";
133
+ conditional: import(".").JSONSchema;
134
+ } | {
135
+ type: "DISPLAY_ON_REVIEW";
136
+ conditional: import(".").JSONSchema;
137
+ })[] | undefined;
138
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
139
+ validations?: {
140
+ message: TranslationConfig;
141
+ validator: import(".").JSONSchema;
142
+ }[] | undefined;
143
+ }, {
144
+ config: {
145
+ type: "exact" | "fuzzy" | "range" | "within";
146
+ searchFields?: string[] | undefined;
147
+ };
148
+ fieldId: string;
149
+ fieldType: "field";
150
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
151
+ options?: {
152
+ value: string;
153
+ label: string | {
154
+ id: string;
155
+ description: string;
156
+ defaultMessage: string;
157
+ };
158
+ }[] | undefined;
159
+ label?: {
160
+ id: string;
161
+ description: string;
162
+ defaultMessage: string;
163
+ } | undefined;
164
+ conditionals?: ({
165
+ type: "SHOW";
166
+ conditional: import(".").JSONSchema;
167
+ } | {
168
+ type: "ENABLE";
169
+ conditional: import(".").JSONSchema;
170
+ } | {
171
+ type: "DISPLAY_ON_REVIEW";
172
+ conditional: import(".").JSONSchema;
173
+ })[] | undefined;
174
+ searchCriteriaLabelPrefix?: {
175
+ id: string;
176
+ description: string;
177
+ defaultMessage: string;
178
+ } | undefined;
179
+ validations?: {
180
+ message: {
181
+ id: string;
182
+ description: string;
183
+ defaultMessage: string;
184
+ };
185
+ validator: import(".").JSONSchema;
186
+ }[] | undefined;
187
+ }>;
84
188
  /**
85
189
  * The event fields that are available for advanced search. These are the values
86
190
  * that can be passed to the `event` function to create a field config.
87
191
  */
88
- export declare const EventFieldIdInput: z.ZodEnum<{
89
- status: "status";
90
- trackingId: "trackingId";
91
- updatedAt: "updatedAt";
92
- "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
93
- "legalStatuses.REGISTERED.createdAtLocation": "legalStatuses.REGISTERED.createdAtLocation";
94
- "legalStatuses.REGISTERED.registrationNumber": "legalStatuses.REGISTERED.registrationNumber";
95
- }>;
192
+ export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
96
193
  /**
97
194
  * Represent the prefix used to differentiate event metadata fields from
98
195
  * the declaration ones in advanced search form.
@@ -102,27 +199,21 @@ export declare const METADATA_FIELD_PREFIX = "event.";
102
199
  * The field IDs that are actually used in the advanced search. The `event`
103
200
  * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
104
201
  */
105
- export declare const EventFieldId: z.ZodEnum<{
106
- "event.status": "event.status";
107
- "event.trackingId": "event.trackingId";
108
- "event.updatedAt": "event.updatedAt";
109
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
110
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
111
- "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
112
- }>;
202
+ export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
113
203
  export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
114
204
  export type EventFieldId = z.infer<typeof EventFieldId>;
115
- export declare const EventFieldConfigSchema: z.ZodObject<{
205
+ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
116
206
  config: z.ZodObject<{
117
- type: z.ZodEnum<{
118
- exact: "exact";
119
- fuzzy: "fuzzy";
120
- range: "range";
121
- within: "within";
122
- }>;
123
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
- }, z.core.$strip>;
125
- type: z.ZodOptional<z.ZodEnum<{
207
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
208
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "exact" | "fuzzy" | "range" | "within";
211
+ searchFields?: string[] | undefined;
212
+ }, {
213
+ type: "exact" | "fuzzy" | "range" | "within";
214
+ searchFields?: string[] | undefined;
215
+ }>;
216
+ type: z.ZodOptional<z.ZodNativeEnum<{
126
217
  readonly NAME: "NAME";
127
218
  readonly PHONE: "PHONE";
128
219
  readonly ID: "ID";
@@ -162,50 +253,142 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
162
253
  readonly QR_READER: "QR_READER";
163
254
  readonly ID_READER: "ID_READER";
164
255
  readonly LOADER: "LOADER";
165
- readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
166
- readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
167
256
  }>>;
168
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
257
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
258
+ id: string;
259
+ description: string;
260
+ defaultMessage: string;
261
+ }>>;
169
262
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
170
263
  value: z.ZodString;
171
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
172
- }, z.core.$strip>>>;
173
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
174
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
175
- type: z.ZodLiteral<"SHOW">;
176
- conditional: z.ZodAny;
177
- }, z.core.$strip>, z.ZodObject<{
178
- type: z.ZodLiteral<"ENABLE">;
179
- conditional: z.ZodAny;
180
- }, z.core.$strip>, z.ZodObject<{
181
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
182
- conditional: z.ZodAny;
183
- }, z.core.$strip>], "type">>>;
184
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
185
- validator: z.ZodAny;
186
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
187
- }, z.core.$strip>>>;
188
- fieldId: z.ZodEnum<{
189
- "event.status": "event.status";
190
- "event.trackingId": "event.trackingId";
191
- "event.updatedAt": "event.updatedAt";
192
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
193
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
194
- "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
195
- }>;
264
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
265
+ id: string;
266
+ description: string;
267
+ defaultMessage: string;
268
+ }>]>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ value: string;
271
+ label: string | TranslationConfig;
272
+ }, {
273
+ value: string;
274
+ label: string | {
275
+ id: string;
276
+ description: string;
277
+ defaultMessage: string;
278
+ };
279
+ }>, "many">>;
280
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
281
+ id: string;
282
+ description: string;
283
+ defaultMessage: string;
284
+ }>>;
285
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
286
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
287
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
288
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
289
+ id: string;
290
+ description: string;
291
+ defaultMessage: string;
292
+ }>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ message: TranslationConfig;
295
+ validator: import(".").JSONSchema;
296
+ }, {
297
+ message: {
298
+ id: string;
299
+ description: string;
300
+ defaultMessage: string;
301
+ };
302
+ validator: import(".").JSONSchema;
303
+ }>, "many">>>;
304
+ }, {
305
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
196
306
  fieldType: z.ZodLiteral<"event">;
197
- }, z.core.$strip>;
198
- export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ }>, "strip", z.ZodTypeAny, {
308
+ config: {
309
+ type: "exact" | "fuzzy" | "range" | "within";
310
+ searchFields?: string[] | undefined;
311
+ };
312
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
313
+ fieldType: "event";
314
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
315
+ options?: {
316
+ value: string;
317
+ label: string | TranslationConfig;
318
+ }[] | undefined;
319
+ label?: TranslationConfig | undefined;
320
+ conditionals?: ({
321
+ type: "SHOW";
322
+ conditional: import(".").JSONSchema;
323
+ } | {
324
+ type: "ENABLE";
325
+ conditional: import(".").JSONSchema;
326
+ } | {
327
+ type: "DISPLAY_ON_REVIEW";
328
+ conditional: import(".").JSONSchema;
329
+ })[] | undefined;
330
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
331
+ validations?: {
332
+ message: TranslationConfig;
333
+ validator: import(".").JSONSchema;
334
+ }[] | undefined;
335
+ }, {
336
+ config: {
337
+ type: "exact" | "fuzzy" | "range" | "within";
338
+ searchFields?: string[] | undefined;
339
+ };
340
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
341
+ fieldType: "event";
342
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
343
+ options?: {
344
+ value: string;
345
+ label: string | {
346
+ id: string;
347
+ description: string;
348
+ defaultMessage: string;
349
+ };
350
+ }[] | undefined;
351
+ label?: {
352
+ id: string;
353
+ description: string;
354
+ defaultMessage: string;
355
+ } | undefined;
356
+ conditionals?: ({
357
+ type: "SHOW";
358
+ conditional: import(".").JSONSchema;
359
+ } | {
360
+ type: "ENABLE";
361
+ conditional: import(".").JSONSchema;
362
+ } | {
363
+ type: "DISPLAY_ON_REVIEW";
364
+ conditional: import(".").JSONSchema;
365
+ })[] | undefined;
366
+ searchCriteriaLabelPrefix?: {
367
+ id: string;
368
+ description: string;
369
+ defaultMessage: string;
370
+ } | undefined;
371
+ validations?: {
372
+ message: {
373
+ id: string;
374
+ description: string;
375
+ defaultMessage: string;
376
+ };
377
+ validator: import(".").JSONSchema;
378
+ }[] | undefined;
379
+ }>;
380
+ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
199
381
  config: z.ZodObject<{
200
- type: z.ZodEnum<{
201
- exact: "exact";
202
- fuzzy: "fuzzy";
203
- range: "range";
204
- within: "within";
205
- }>;
206
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
- }, z.core.$strip>;
208
- type: z.ZodOptional<z.ZodEnum<{
382
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
383
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ type: "exact" | "fuzzy" | "range" | "within";
386
+ searchFields?: string[] | undefined;
387
+ }, {
388
+ type: "exact" | "fuzzy" | "range" | "within";
389
+ searchFields?: string[] | undefined;
390
+ }>;
391
+ type: z.ZodOptional<z.ZodNativeEnum<{
209
392
  readonly NAME: "NAME";
210
393
  readonly PHONE: "PHONE";
211
394
  readonly ID: "ID";
@@ -245,42 +428,141 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
245
428
  readonly QR_READER: "QR_READER";
246
429
  readonly ID_READER: "ID_READER";
247
430
  readonly LOADER: "LOADER";
248
- readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
249
- readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
250
431
  }>>;
251
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
432
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
433
+ id: string;
434
+ description: string;
435
+ defaultMessage: string;
436
+ }>>;
252
437
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
438
  value: z.ZodString;
254
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
255
- }, z.core.$strip>>>;
256
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
257
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
258
- type: z.ZodLiteral<"SHOW">;
259
- conditional: z.ZodAny;
260
- }, z.core.$strip>, z.ZodObject<{
261
- type: z.ZodLiteral<"ENABLE">;
262
- conditional: z.ZodAny;
263
- }, z.core.$strip>, z.ZodObject<{
264
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
265
- conditional: z.ZodAny;
266
- }, z.core.$strip>], "type">>>;
267
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
- validator: z.ZodAny;
269
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
270
- }, z.core.$strip>>>;
439
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
440
+ id: string;
441
+ description: string;
442
+ defaultMessage: string;
443
+ }>]>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ value: string;
446
+ label: string | TranslationConfig;
447
+ }, {
448
+ value: string;
449
+ label: string | {
450
+ id: string;
451
+ description: string;
452
+ defaultMessage: string;
453
+ };
454
+ }>, "many">>;
455
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
456
+ id: string;
457
+ description: string;
458
+ defaultMessage: string;
459
+ }>>;
460
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
461
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
462
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
463
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
464
+ id: string;
465
+ description: string;
466
+ defaultMessage: string;
467
+ }>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ message: TranslationConfig;
470
+ validator: import(".").JSONSchema;
471
+ }, {
472
+ message: {
473
+ id: string;
474
+ description: string;
475
+ defaultMessage: string;
476
+ };
477
+ validator: import(".").JSONSchema;
478
+ }>, "many">>>;
479
+ }, {
271
480
  fieldId: z.ZodString;
272
481
  fieldType: z.ZodLiteral<"field">;
273
- }, z.core.$strip>, z.ZodObject<{
482
+ }>, "strip", z.ZodTypeAny, {
483
+ config: {
484
+ type: "exact" | "fuzzy" | "range" | "within";
485
+ searchFields?: string[] | undefined;
486
+ };
487
+ fieldId: string;
488
+ fieldType: "field";
489
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
490
+ options?: {
491
+ value: string;
492
+ label: string | TranslationConfig;
493
+ }[] | undefined;
494
+ label?: TranslationConfig | undefined;
495
+ conditionals?: ({
496
+ type: "SHOW";
497
+ conditional: import(".").JSONSchema;
498
+ } | {
499
+ type: "ENABLE";
500
+ conditional: import(".").JSONSchema;
501
+ } | {
502
+ type: "DISPLAY_ON_REVIEW";
503
+ conditional: import(".").JSONSchema;
504
+ })[] | undefined;
505
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
506
+ validations?: {
507
+ message: TranslationConfig;
508
+ validator: import(".").JSONSchema;
509
+ }[] | undefined;
510
+ }, {
511
+ config: {
512
+ type: "exact" | "fuzzy" | "range" | "within";
513
+ searchFields?: string[] | undefined;
514
+ };
515
+ fieldId: string;
516
+ fieldType: "field";
517
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
518
+ options?: {
519
+ value: string;
520
+ label: string | {
521
+ id: string;
522
+ description: string;
523
+ defaultMessage: string;
524
+ };
525
+ }[] | undefined;
526
+ label?: {
527
+ id: string;
528
+ description: string;
529
+ defaultMessage: string;
530
+ } | undefined;
531
+ conditionals?: ({
532
+ type: "SHOW";
533
+ conditional: import(".").JSONSchema;
534
+ } | {
535
+ type: "ENABLE";
536
+ conditional: import(".").JSONSchema;
537
+ } | {
538
+ type: "DISPLAY_ON_REVIEW";
539
+ conditional: import(".").JSONSchema;
540
+ })[] | undefined;
541
+ searchCriteriaLabelPrefix?: {
542
+ id: string;
543
+ description: string;
544
+ defaultMessage: string;
545
+ } | undefined;
546
+ validations?: {
547
+ message: {
548
+ id: string;
549
+ description: string;
550
+ defaultMessage: string;
551
+ };
552
+ validator: import(".").JSONSchema;
553
+ }[] | undefined;
554
+ }>, z.ZodObject<z.objectUtil.extendShape<{
274
555
  config: z.ZodObject<{
275
- type: z.ZodEnum<{
276
- exact: "exact";
277
- fuzzy: "fuzzy";
278
- range: "range";
279
- within: "within";
280
- }>;
281
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
- }, z.core.$strip>;
283
- type: z.ZodOptional<z.ZodEnum<{
556
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
557
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "exact" | "fuzzy" | "range" | "within";
560
+ searchFields?: string[] | undefined;
561
+ }, {
562
+ type: "exact" | "fuzzy" | "range" | "within";
563
+ searchFields?: string[] | undefined;
564
+ }>;
565
+ type: z.ZodOptional<z.ZodNativeEnum<{
284
566
  readonly NAME: "NAME";
285
567
  readonly PHONE: "PHONE";
286
568
  readonly ID: "ID";
@@ -320,53 +602,293 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
320
602
  readonly QR_READER: "QR_READER";
321
603
  readonly ID_READER: "ID_READER";
322
604
  readonly LOADER: "LOADER";
323
- readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
324
- readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
325
605
  }>>;
326
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
606
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
607
+ id: string;
608
+ description: string;
609
+ defaultMessage: string;
610
+ }>>;
327
611
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
328
612
  value: z.ZodString;
329
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
330
- }, z.core.$strip>>>;
331
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
332
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
333
- type: z.ZodLiteral<"SHOW">;
334
- conditional: z.ZodAny;
335
- }, z.core.$strip>, z.ZodObject<{
336
- type: z.ZodLiteral<"ENABLE">;
337
- conditional: z.ZodAny;
338
- }, z.core.$strip>, z.ZodObject<{
339
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
340
- conditional: z.ZodAny;
341
- }, z.core.$strip>], "type">>>;
342
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
343
- validator: z.ZodAny;
344
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
345
- }, z.core.$strip>>>;
346
- fieldId: z.ZodEnum<{
347
- "event.status": "event.status";
348
- "event.trackingId": "event.trackingId";
349
- "event.updatedAt": "event.updatedAt";
350
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
351
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
352
- "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
353
- }>;
613
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
614
+ id: string;
615
+ description: string;
616
+ defaultMessage: string;
617
+ }>]>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ value: string;
620
+ label: string | TranslationConfig;
621
+ }, {
622
+ value: string;
623
+ label: string | {
624
+ id: string;
625
+ description: string;
626
+ defaultMessage: string;
627
+ };
628
+ }>, "many">>;
629
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
630
+ id: string;
631
+ description: string;
632
+ defaultMessage: string;
633
+ }>>;
634
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
635
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
636
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
637
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
638
+ id: string;
639
+ description: string;
640
+ defaultMessage: string;
641
+ }>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ message: TranslationConfig;
644
+ validator: import(".").JSONSchema;
645
+ }, {
646
+ message: {
647
+ id: string;
648
+ description: string;
649
+ defaultMessage: string;
650
+ };
651
+ validator: import(".").JSONSchema;
652
+ }>, "many">>>;
653
+ }, {
654
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
354
655
  fieldType: z.ZodLiteral<"event">;
355
- }, z.core.$strip>], "fieldType">;
656
+ }>, "strip", z.ZodTypeAny, {
657
+ config: {
658
+ type: "exact" | "fuzzy" | "range" | "within";
659
+ searchFields?: string[] | undefined;
660
+ };
661
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
662
+ fieldType: "event";
663
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
664
+ options?: {
665
+ value: string;
666
+ label: string | TranslationConfig;
667
+ }[] | undefined;
668
+ label?: TranslationConfig | undefined;
669
+ conditionals?: ({
670
+ type: "SHOW";
671
+ conditional: import(".").JSONSchema;
672
+ } | {
673
+ type: "ENABLE";
674
+ conditional: import(".").JSONSchema;
675
+ } | {
676
+ type: "DISPLAY_ON_REVIEW";
677
+ conditional: import(".").JSONSchema;
678
+ })[] | undefined;
679
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
680
+ validations?: {
681
+ message: TranslationConfig;
682
+ validator: import(".").JSONSchema;
683
+ }[] | undefined;
684
+ }, {
685
+ config: {
686
+ type: "exact" | "fuzzy" | "range" | "within";
687
+ searchFields?: string[] | undefined;
688
+ };
689
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
690
+ fieldType: "event";
691
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
692
+ options?: {
693
+ value: string;
694
+ label: string | {
695
+ id: string;
696
+ description: string;
697
+ defaultMessage: string;
698
+ };
699
+ }[] | undefined;
700
+ label?: {
701
+ id: string;
702
+ description: string;
703
+ defaultMessage: string;
704
+ } | undefined;
705
+ conditionals?: ({
706
+ type: "SHOW";
707
+ conditional: import(".").JSONSchema;
708
+ } | {
709
+ type: "ENABLE";
710
+ conditional: import(".").JSONSchema;
711
+ } | {
712
+ type: "DISPLAY_ON_REVIEW";
713
+ conditional: import(".").JSONSchema;
714
+ })[] | undefined;
715
+ searchCriteriaLabelPrefix?: {
716
+ id: string;
717
+ description: string;
718
+ defaultMessage: string;
719
+ } | undefined;
720
+ validations?: {
721
+ message: {
722
+ id: string;
723
+ description: string;
724
+ defaultMessage: string;
725
+ };
726
+ validator: import(".").JSONSchema;
727
+ }[] | undefined;
728
+ }>]>, {
729
+ config: {
730
+ type: "exact" | "fuzzy" | "range" | "within";
731
+ searchFields?: string[] | undefined;
732
+ };
733
+ fieldId: string;
734
+ fieldType: "field";
735
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
736
+ options?: {
737
+ value: string;
738
+ label: string | TranslationConfig;
739
+ }[] | undefined;
740
+ label?: TranslationConfig | undefined;
741
+ conditionals?: ({
742
+ type: "SHOW";
743
+ conditional: import(".").JSONSchema;
744
+ } | {
745
+ type: "ENABLE";
746
+ conditional: import(".").JSONSchema;
747
+ } | {
748
+ type: "DISPLAY_ON_REVIEW";
749
+ conditional: import(".").JSONSchema;
750
+ })[] | undefined;
751
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
752
+ validations?: {
753
+ message: TranslationConfig;
754
+ validator: import(".").JSONSchema;
755
+ }[] | undefined;
756
+ } | {
757
+ config: {
758
+ type: "exact" | "fuzzy" | "range" | "within";
759
+ searchFields?: string[] | undefined;
760
+ };
761
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
762
+ fieldType: "event";
763
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
764
+ options?: {
765
+ value: string;
766
+ label: string | TranslationConfig;
767
+ }[] | undefined;
768
+ label?: TranslationConfig | undefined;
769
+ conditionals?: ({
770
+ type: "SHOW";
771
+ conditional: import(".").JSONSchema;
772
+ } | {
773
+ type: "ENABLE";
774
+ conditional: import(".").JSONSchema;
775
+ } | {
776
+ type: "DISPLAY_ON_REVIEW";
777
+ conditional: import(".").JSONSchema;
778
+ })[] | undefined;
779
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
780
+ validations?: {
781
+ message: TranslationConfig;
782
+ validator: import(".").JSONSchema;
783
+ }[] | undefined;
784
+ }, {
785
+ config: {
786
+ type: "exact" | "fuzzy" | "range" | "within";
787
+ searchFields?: string[] | undefined;
788
+ };
789
+ fieldId: string;
790
+ fieldType: "field";
791
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
792
+ options?: {
793
+ value: string;
794
+ label: string | {
795
+ id: string;
796
+ description: string;
797
+ defaultMessage: string;
798
+ };
799
+ }[] | undefined;
800
+ label?: {
801
+ id: string;
802
+ description: string;
803
+ defaultMessage: string;
804
+ } | undefined;
805
+ conditionals?: ({
806
+ type: "SHOW";
807
+ conditional: import(".").JSONSchema;
808
+ } | {
809
+ type: "ENABLE";
810
+ conditional: import(".").JSONSchema;
811
+ } | {
812
+ type: "DISPLAY_ON_REVIEW";
813
+ conditional: import(".").JSONSchema;
814
+ })[] | undefined;
815
+ searchCriteriaLabelPrefix?: {
816
+ id: string;
817
+ description: string;
818
+ defaultMessage: string;
819
+ } | undefined;
820
+ validations?: {
821
+ message: {
822
+ id: string;
823
+ description: string;
824
+ defaultMessage: string;
825
+ };
826
+ validator: import(".").JSONSchema;
827
+ }[] | undefined;
828
+ } | {
829
+ config: {
830
+ type: "exact" | "fuzzy" | "range" | "within";
831
+ searchFields?: string[] | undefined;
832
+ };
833
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
834
+ fieldType: "event";
835
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
836
+ options?: {
837
+ value: string;
838
+ label: string | {
839
+ id: string;
840
+ description: string;
841
+ defaultMessage: string;
842
+ };
843
+ }[] | undefined;
844
+ label?: {
845
+ id: string;
846
+ description: string;
847
+ defaultMessage: string;
848
+ } | undefined;
849
+ conditionals?: ({
850
+ type: "SHOW";
851
+ conditional: import(".").JSONSchema;
852
+ } | {
853
+ type: "ENABLE";
854
+ conditional: import(".").JSONSchema;
855
+ } | {
856
+ type: "DISPLAY_ON_REVIEW";
857
+ conditional: import(".").JSONSchema;
858
+ })[] | undefined;
859
+ searchCriteriaLabelPrefix?: {
860
+ id: string;
861
+ description: string;
862
+ defaultMessage: string;
863
+ } | undefined;
864
+ validations?: {
865
+ message: {
866
+ id: string;
867
+ description: string;
868
+ defaultMessage: string;
869
+ };
870
+ validator: import(".").JSONSchema;
871
+ }[] | undefined;
872
+ }>;
356
873
  export type AdvancedSearchField = z.infer<typeof AdvancedSearchField>;
357
874
  export declare const AdvancedSearchConfig: z.ZodObject<{
358
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
359
- fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
875
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
876
+ id: string;
877
+ description: string;
878
+ defaultMessage: string;
879
+ }>;
880
+ fields: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
360
881
  config: z.ZodObject<{
361
- type: z.ZodEnum<{
362
- exact: "exact";
363
- fuzzy: "fuzzy";
364
- range: "range";
365
- within: "within";
366
- }>;
367
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
368
- }, z.core.$strip>;
369
- type: z.ZodOptional<z.ZodEnum<{
882
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
883
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ type: "exact" | "fuzzy" | "range" | "within";
886
+ searchFields?: string[] | undefined;
887
+ }, {
888
+ type: "exact" | "fuzzy" | "range" | "within";
889
+ searchFields?: string[] | undefined;
890
+ }>;
891
+ type: z.ZodOptional<z.ZodNativeEnum<{
370
892
  readonly NAME: "NAME";
371
893
  readonly PHONE: "PHONE";
372
894
  readonly ID: "ID";
@@ -406,42 +928,141 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
406
928
  readonly QR_READER: "QR_READER";
407
929
  readonly ID_READER: "ID_READER";
408
930
  readonly LOADER: "LOADER";
409
- readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
410
- readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
411
931
  }>>;
412
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
932
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
933
+ id: string;
934
+ description: string;
935
+ defaultMessage: string;
936
+ }>>;
413
937
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
938
  value: z.ZodString;
415
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
416
- }, z.core.$strip>>>;
417
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
418
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
419
- type: z.ZodLiteral<"SHOW">;
420
- conditional: z.ZodAny;
421
- }, z.core.$strip>, z.ZodObject<{
422
- type: z.ZodLiteral<"ENABLE">;
423
- conditional: z.ZodAny;
424
- }, z.core.$strip>, z.ZodObject<{
425
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
426
- conditional: z.ZodAny;
427
- }, z.core.$strip>], "type">>>;
428
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
- validator: z.ZodAny;
430
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
431
- }, z.core.$strip>>>;
939
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
940
+ id: string;
941
+ description: string;
942
+ defaultMessage: string;
943
+ }>]>;
944
+ }, "strip", z.ZodTypeAny, {
945
+ value: string;
946
+ label: string | TranslationConfig;
947
+ }, {
948
+ value: string;
949
+ label: string | {
950
+ id: string;
951
+ description: string;
952
+ defaultMessage: string;
953
+ };
954
+ }>, "many">>;
955
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
956
+ id: string;
957
+ description: string;
958
+ defaultMessage: string;
959
+ }>>;
960
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
961
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
962
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
963
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
964
+ id: string;
965
+ description: string;
966
+ defaultMessage: string;
967
+ }>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ message: TranslationConfig;
970
+ validator: import(".").JSONSchema;
971
+ }, {
972
+ message: {
973
+ id: string;
974
+ description: string;
975
+ defaultMessage: string;
976
+ };
977
+ validator: import(".").JSONSchema;
978
+ }>, "many">>>;
979
+ }, {
432
980
  fieldId: z.ZodString;
433
981
  fieldType: z.ZodLiteral<"field">;
434
- }, z.core.$strip>, z.ZodObject<{
982
+ }>, "strip", z.ZodTypeAny, {
983
+ config: {
984
+ type: "exact" | "fuzzy" | "range" | "within";
985
+ searchFields?: string[] | undefined;
986
+ };
987
+ fieldId: string;
988
+ fieldType: "field";
989
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
990
+ options?: {
991
+ value: string;
992
+ label: string | TranslationConfig;
993
+ }[] | undefined;
994
+ label?: TranslationConfig | undefined;
995
+ conditionals?: ({
996
+ type: "SHOW";
997
+ conditional: import(".").JSONSchema;
998
+ } | {
999
+ type: "ENABLE";
1000
+ conditional: import(".").JSONSchema;
1001
+ } | {
1002
+ type: "DISPLAY_ON_REVIEW";
1003
+ conditional: import(".").JSONSchema;
1004
+ })[] | undefined;
1005
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1006
+ validations?: {
1007
+ message: TranslationConfig;
1008
+ validator: import(".").JSONSchema;
1009
+ }[] | undefined;
1010
+ }, {
1011
+ config: {
1012
+ type: "exact" | "fuzzy" | "range" | "within";
1013
+ searchFields?: string[] | undefined;
1014
+ };
1015
+ fieldId: string;
1016
+ fieldType: "field";
1017
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1018
+ options?: {
1019
+ value: string;
1020
+ label: string | {
1021
+ id: string;
1022
+ description: string;
1023
+ defaultMessage: string;
1024
+ };
1025
+ }[] | undefined;
1026
+ label?: {
1027
+ id: string;
1028
+ description: string;
1029
+ defaultMessage: string;
1030
+ } | undefined;
1031
+ conditionals?: ({
1032
+ type: "SHOW";
1033
+ conditional: import(".").JSONSchema;
1034
+ } | {
1035
+ type: "ENABLE";
1036
+ conditional: import(".").JSONSchema;
1037
+ } | {
1038
+ type: "DISPLAY_ON_REVIEW";
1039
+ conditional: import(".").JSONSchema;
1040
+ })[] | undefined;
1041
+ searchCriteriaLabelPrefix?: {
1042
+ id: string;
1043
+ description: string;
1044
+ defaultMessage: string;
1045
+ } | undefined;
1046
+ validations?: {
1047
+ message: {
1048
+ id: string;
1049
+ description: string;
1050
+ defaultMessage: string;
1051
+ };
1052
+ validator: import(".").JSONSchema;
1053
+ }[] | undefined;
1054
+ }>, z.ZodObject<z.objectUtil.extendShape<{
435
1055
  config: z.ZodObject<{
436
- type: z.ZodEnum<{
437
- exact: "exact";
438
- fuzzy: "fuzzy";
439
- range: "range";
440
- within: "within";
441
- }>;
442
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
443
- }, z.core.$strip>;
444
- type: z.ZodOptional<z.ZodEnum<{
1056
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
1057
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ type: "exact" | "fuzzy" | "range" | "within";
1060
+ searchFields?: string[] | undefined;
1061
+ }, {
1062
+ type: "exact" | "fuzzy" | "range" | "within";
1063
+ searchFields?: string[] | undefined;
1064
+ }>;
1065
+ type: z.ZodOptional<z.ZodNativeEnum<{
445
1066
  readonly NAME: "NAME";
446
1067
  readonly PHONE: "PHONE";
447
1068
  readonly ID: "ID";
@@ -481,40 +1102,429 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
481
1102
  readonly QR_READER: "QR_READER";
482
1103
  readonly ID_READER: "ID_READER";
483
1104
  readonly LOADER: "LOADER";
484
- readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
485
- readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
486
1105
  }>>;
487
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
1106
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1107
+ id: string;
1108
+ description: string;
1109
+ defaultMessage: string;
1110
+ }>>;
488
1111
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
489
1112
  value: z.ZodString;
490
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
491
- }, z.core.$strip>>>;
492
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
493
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
494
- type: z.ZodLiteral<"SHOW">;
495
- conditional: z.ZodAny;
496
- }, z.core.$strip>, z.ZodObject<{
497
- type: z.ZodLiteral<"ENABLE">;
498
- conditional: z.ZodAny;
499
- }, z.core.$strip>, z.ZodObject<{
500
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
501
- conditional: z.ZodAny;
502
- }, z.core.$strip>], "type">>>;
503
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
504
- validator: z.ZodAny;
505
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
506
- }, z.core.$strip>>>;
507
- fieldId: z.ZodEnum<{
508
- "event.status": "event.status";
509
- "event.trackingId": "event.trackingId";
510
- "event.updatedAt": "event.updatedAt";
511
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
512
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
513
- "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
514
- }>;
1113
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1114
+ id: string;
1115
+ description: string;
1116
+ defaultMessage: string;
1117
+ }>]>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ value: string;
1120
+ label: string | TranslationConfig;
1121
+ }, {
1122
+ value: string;
1123
+ label: string | {
1124
+ id: string;
1125
+ description: string;
1126
+ defaultMessage: string;
1127
+ };
1128
+ }>, "many">>;
1129
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1130
+ id: string;
1131
+ description: string;
1132
+ defaultMessage: string;
1133
+ }>>;
1134
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1135
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1136
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1137
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1138
+ id: string;
1139
+ description: string;
1140
+ defaultMessage: string;
1141
+ }>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ message: TranslationConfig;
1144
+ validator: import(".").JSONSchema;
1145
+ }, {
1146
+ message: {
1147
+ id: string;
1148
+ description: string;
1149
+ defaultMessage: string;
1150
+ };
1151
+ validator: import(".").JSONSchema;
1152
+ }>, "many">>>;
1153
+ }, {
1154
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
515
1155
  fieldType: z.ZodLiteral<"event">;
516
- }, z.core.$strip>], "fieldType">>;
517
- }, z.core.$strip>;
1156
+ }>, "strip", z.ZodTypeAny, {
1157
+ config: {
1158
+ type: "exact" | "fuzzy" | "range" | "within";
1159
+ searchFields?: string[] | undefined;
1160
+ };
1161
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1162
+ fieldType: "event";
1163
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1164
+ options?: {
1165
+ value: string;
1166
+ label: string | TranslationConfig;
1167
+ }[] | undefined;
1168
+ label?: TranslationConfig | undefined;
1169
+ conditionals?: ({
1170
+ type: "SHOW";
1171
+ conditional: import(".").JSONSchema;
1172
+ } | {
1173
+ type: "ENABLE";
1174
+ conditional: import(".").JSONSchema;
1175
+ } | {
1176
+ type: "DISPLAY_ON_REVIEW";
1177
+ conditional: import(".").JSONSchema;
1178
+ })[] | undefined;
1179
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1180
+ validations?: {
1181
+ message: TranslationConfig;
1182
+ validator: import(".").JSONSchema;
1183
+ }[] | undefined;
1184
+ }, {
1185
+ config: {
1186
+ type: "exact" | "fuzzy" | "range" | "within";
1187
+ searchFields?: string[] | undefined;
1188
+ };
1189
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1190
+ fieldType: "event";
1191
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1192
+ options?: {
1193
+ value: string;
1194
+ label: string | {
1195
+ id: string;
1196
+ description: string;
1197
+ defaultMessage: string;
1198
+ };
1199
+ }[] | undefined;
1200
+ label?: {
1201
+ id: string;
1202
+ description: string;
1203
+ defaultMessage: string;
1204
+ } | undefined;
1205
+ conditionals?: ({
1206
+ type: "SHOW";
1207
+ conditional: import(".").JSONSchema;
1208
+ } | {
1209
+ type: "ENABLE";
1210
+ conditional: import(".").JSONSchema;
1211
+ } | {
1212
+ type: "DISPLAY_ON_REVIEW";
1213
+ conditional: import(".").JSONSchema;
1214
+ })[] | undefined;
1215
+ searchCriteriaLabelPrefix?: {
1216
+ id: string;
1217
+ description: string;
1218
+ defaultMessage: string;
1219
+ } | undefined;
1220
+ validations?: {
1221
+ message: {
1222
+ id: string;
1223
+ description: string;
1224
+ defaultMessage: string;
1225
+ };
1226
+ validator: import(".").JSONSchema;
1227
+ }[] | undefined;
1228
+ }>]>, {
1229
+ config: {
1230
+ type: "exact" | "fuzzy" | "range" | "within";
1231
+ searchFields?: string[] | undefined;
1232
+ };
1233
+ fieldId: string;
1234
+ fieldType: "field";
1235
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1236
+ options?: {
1237
+ value: string;
1238
+ label: string | TranslationConfig;
1239
+ }[] | undefined;
1240
+ label?: TranslationConfig | undefined;
1241
+ conditionals?: ({
1242
+ type: "SHOW";
1243
+ conditional: import(".").JSONSchema;
1244
+ } | {
1245
+ type: "ENABLE";
1246
+ conditional: import(".").JSONSchema;
1247
+ } | {
1248
+ type: "DISPLAY_ON_REVIEW";
1249
+ conditional: import(".").JSONSchema;
1250
+ })[] | undefined;
1251
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1252
+ validations?: {
1253
+ message: TranslationConfig;
1254
+ validator: import(".").JSONSchema;
1255
+ }[] | undefined;
1256
+ } | {
1257
+ config: {
1258
+ type: "exact" | "fuzzy" | "range" | "within";
1259
+ searchFields?: string[] | undefined;
1260
+ };
1261
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1262
+ fieldType: "event";
1263
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1264
+ options?: {
1265
+ value: string;
1266
+ label: string | TranslationConfig;
1267
+ }[] | undefined;
1268
+ label?: TranslationConfig | undefined;
1269
+ conditionals?: ({
1270
+ type: "SHOW";
1271
+ conditional: import(".").JSONSchema;
1272
+ } | {
1273
+ type: "ENABLE";
1274
+ conditional: import(".").JSONSchema;
1275
+ } | {
1276
+ type: "DISPLAY_ON_REVIEW";
1277
+ conditional: import(".").JSONSchema;
1278
+ })[] | undefined;
1279
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1280
+ validations?: {
1281
+ message: TranslationConfig;
1282
+ validator: import(".").JSONSchema;
1283
+ }[] | undefined;
1284
+ }, {
1285
+ config: {
1286
+ type: "exact" | "fuzzy" | "range" | "within";
1287
+ searchFields?: string[] | undefined;
1288
+ };
1289
+ fieldId: string;
1290
+ fieldType: "field";
1291
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1292
+ options?: {
1293
+ value: string;
1294
+ label: string | {
1295
+ id: string;
1296
+ description: string;
1297
+ defaultMessage: string;
1298
+ };
1299
+ }[] | undefined;
1300
+ label?: {
1301
+ id: string;
1302
+ description: string;
1303
+ defaultMessage: string;
1304
+ } | undefined;
1305
+ conditionals?: ({
1306
+ type: "SHOW";
1307
+ conditional: import(".").JSONSchema;
1308
+ } | {
1309
+ type: "ENABLE";
1310
+ conditional: import(".").JSONSchema;
1311
+ } | {
1312
+ type: "DISPLAY_ON_REVIEW";
1313
+ conditional: import(".").JSONSchema;
1314
+ })[] | undefined;
1315
+ searchCriteriaLabelPrefix?: {
1316
+ id: string;
1317
+ description: string;
1318
+ defaultMessage: string;
1319
+ } | undefined;
1320
+ validations?: {
1321
+ message: {
1322
+ id: string;
1323
+ description: string;
1324
+ defaultMessage: string;
1325
+ };
1326
+ validator: import(".").JSONSchema;
1327
+ }[] | undefined;
1328
+ } | {
1329
+ config: {
1330
+ type: "exact" | "fuzzy" | "range" | "within";
1331
+ searchFields?: string[] | undefined;
1332
+ };
1333
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1334
+ fieldType: "event";
1335
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1336
+ options?: {
1337
+ value: string;
1338
+ label: string | {
1339
+ id: string;
1340
+ description: string;
1341
+ defaultMessage: string;
1342
+ };
1343
+ }[] | undefined;
1344
+ label?: {
1345
+ id: string;
1346
+ description: string;
1347
+ defaultMessage: string;
1348
+ } | undefined;
1349
+ conditionals?: ({
1350
+ type: "SHOW";
1351
+ conditional: import(".").JSONSchema;
1352
+ } | {
1353
+ type: "ENABLE";
1354
+ conditional: import(".").JSONSchema;
1355
+ } | {
1356
+ type: "DISPLAY_ON_REVIEW";
1357
+ conditional: import(".").JSONSchema;
1358
+ })[] | undefined;
1359
+ searchCriteriaLabelPrefix?: {
1360
+ id: string;
1361
+ description: string;
1362
+ defaultMessage: string;
1363
+ } | undefined;
1364
+ validations?: {
1365
+ message: {
1366
+ id: string;
1367
+ description: string;
1368
+ defaultMessage: string;
1369
+ };
1370
+ validator: import(".").JSONSchema;
1371
+ }[] | undefined;
1372
+ }>, "many">;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ title: TranslationConfig;
1375
+ fields: ({
1376
+ config: {
1377
+ type: "exact" | "fuzzy" | "range" | "within";
1378
+ searchFields?: string[] | undefined;
1379
+ };
1380
+ fieldId: string;
1381
+ fieldType: "field";
1382
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1383
+ options?: {
1384
+ value: string;
1385
+ label: string | TranslationConfig;
1386
+ }[] | undefined;
1387
+ label?: TranslationConfig | undefined;
1388
+ conditionals?: ({
1389
+ type: "SHOW";
1390
+ conditional: import(".").JSONSchema;
1391
+ } | {
1392
+ type: "ENABLE";
1393
+ conditional: import(".").JSONSchema;
1394
+ } | {
1395
+ type: "DISPLAY_ON_REVIEW";
1396
+ conditional: import(".").JSONSchema;
1397
+ })[] | undefined;
1398
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1399
+ validations?: {
1400
+ message: TranslationConfig;
1401
+ validator: import(".").JSONSchema;
1402
+ }[] | undefined;
1403
+ } | {
1404
+ config: {
1405
+ type: "exact" | "fuzzy" | "range" | "within";
1406
+ searchFields?: string[] | undefined;
1407
+ };
1408
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1409
+ fieldType: "event";
1410
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1411
+ options?: {
1412
+ value: string;
1413
+ label: string | TranslationConfig;
1414
+ }[] | undefined;
1415
+ label?: TranslationConfig | undefined;
1416
+ conditionals?: ({
1417
+ type: "SHOW";
1418
+ conditional: import(".").JSONSchema;
1419
+ } | {
1420
+ type: "ENABLE";
1421
+ conditional: import(".").JSONSchema;
1422
+ } | {
1423
+ type: "DISPLAY_ON_REVIEW";
1424
+ conditional: import(".").JSONSchema;
1425
+ })[] | undefined;
1426
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1427
+ validations?: {
1428
+ message: TranslationConfig;
1429
+ validator: import(".").JSONSchema;
1430
+ }[] | undefined;
1431
+ })[];
1432
+ }, {
1433
+ title: {
1434
+ id: string;
1435
+ description: string;
1436
+ defaultMessage: string;
1437
+ };
1438
+ fields: ({
1439
+ config: {
1440
+ type: "exact" | "fuzzy" | "range" | "within";
1441
+ searchFields?: string[] | undefined;
1442
+ };
1443
+ fieldId: string;
1444
+ fieldType: "field";
1445
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1446
+ options?: {
1447
+ value: string;
1448
+ label: string | {
1449
+ id: string;
1450
+ description: string;
1451
+ defaultMessage: string;
1452
+ };
1453
+ }[] | undefined;
1454
+ label?: {
1455
+ id: string;
1456
+ description: string;
1457
+ defaultMessage: string;
1458
+ } | undefined;
1459
+ conditionals?: ({
1460
+ type: "SHOW";
1461
+ conditional: import(".").JSONSchema;
1462
+ } | {
1463
+ type: "ENABLE";
1464
+ conditional: import(".").JSONSchema;
1465
+ } | {
1466
+ type: "DISPLAY_ON_REVIEW";
1467
+ conditional: import(".").JSONSchema;
1468
+ })[] | undefined;
1469
+ searchCriteriaLabelPrefix?: {
1470
+ id: string;
1471
+ description: string;
1472
+ defaultMessage: string;
1473
+ } | undefined;
1474
+ validations?: {
1475
+ message: {
1476
+ id: string;
1477
+ description: string;
1478
+ defaultMessage: string;
1479
+ };
1480
+ validator: import(".").JSONSchema;
1481
+ }[] | undefined;
1482
+ } | {
1483
+ config: {
1484
+ type: "exact" | "fuzzy" | "range" | "within";
1485
+ searchFields?: string[] | undefined;
1486
+ };
1487
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1488
+ fieldType: "event";
1489
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_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;
1490
+ options?: {
1491
+ value: string;
1492
+ label: string | {
1493
+ id: string;
1494
+ description: string;
1495
+ defaultMessage: string;
1496
+ };
1497
+ }[] | undefined;
1498
+ label?: {
1499
+ id: string;
1500
+ description: string;
1501
+ defaultMessage: string;
1502
+ } | undefined;
1503
+ conditionals?: ({
1504
+ type: "SHOW";
1505
+ conditional: import(".").JSONSchema;
1506
+ } | {
1507
+ type: "ENABLE";
1508
+ conditional: import(".").JSONSchema;
1509
+ } | {
1510
+ type: "DISPLAY_ON_REVIEW";
1511
+ conditional: import(".").JSONSchema;
1512
+ })[] | undefined;
1513
+ searchCriteriaLabelPrefix?: {
1514
+ id: string;
1515
+ description: string;
1516
+ defaultMessage: string;
1517
+ } | undefined;
1518
+ validations?: {
1519
+ message: {
1520
+ id: string;
1521
+ description: string;
1522
+ defaultMessage: string;
1523
+ };
1524
+ validator: import(".").JSONSchema;
1525
+ }[] | undefined;
1526
+ })[];
1527
+ }>;
518
1528
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
519
1529
  export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
520
1530
  fields: FieldConfig[];