@opencrvs/toolkit 1.9.2-rc.c76ff3e → 1.9.2-rc.f6dcfa6

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 (56) hide show
  1. package/dist/commons/api/router.d.ts +1620 -26666
  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 +1525 -21293
  5. package/dist/commons/events/ActionDocument.d.ts +1849 -764
  6. package/dist/commons/events/ActionInput.d.ts +1066 -264
  7. package/dist/commons/events/ActionType.d.ts +8 -85
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -211
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -25
  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 -919
  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 +2096 -17110
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1326 -311
  20. package/dist/commons/events/EventIndex.d.ts +967 -191
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +345 -102
  23. package/dist/commons/events/FieldConfig.d.ts +11775 -4088
  24. package/dist/commons/events/FieldType.d.ts +2 -6
  25. package/dist/commons/events/FieldTypeMapping.d.ts +810 -164
  26. package/dist/commons/events/FieldValue.d.ts +354 -80
  27. package/dist/commons/events/FormConfig.d.ts +697 -12636
  28. package/dist/commons/events/PageConfig.d.ts +314 -8441
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  31. package/dist/commons/events/WorkqueueColumnConfig.d.ts +36 -70
  32. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1597
  33. package/dist/commons/events/deduplication.d.ts +3 -3
  34. package/dist/commons/events/defineConfig.d.ts +155 -24703
  35. package/dist/commons/events/index.d.ts +0 -1
  36. package/dist/commons/events/locations.d.ts +19 -15
  37. package/dist/commons/events/scopes.d.ts +0 -1
  38. package/dist/commons/events/state/availableActions.d.ts +1 -2
  39. package/dist/commons/events/state/flags.d.ts +3 -21
  40. package/dist/commons/events/state/index.d.ts +19 -17
  41. package/dist/commons/events/state/utils.d.ts +112 -127
  42. package/dist/commons/events/test.utils.d.ts +5 -11
  43. package/dist/commons/events/transactions.d.ts +1 -1
  44. package/dist/commons/events/utils.d.ts +359 -49444
  45. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  46. package/dist/conditionals/index.d.ts.map +1 -1
  47. package/dist/conditionals/index.js +5 -38
  48. package/dist/events/deduplication.d.ts +3 -3
  49. package/dist/events/index.js +1360 -1502
  50. package/dist/notification/index.d.ts.map +1 -1
  51. package/dist/notification/index.js +1279 -1276
  52. package/dist/scopes/index.d.ts +136 -106
  53. package/dist/scopes/index.d.ts.map +1 -1
  54. package/dist/scopes/index.js +93 -116
  55. package/package.json +5 -5
  56. package/dist/commons/events/Flag.d.ts +0 -43
@@ -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";
@@ -56,40 +62,134 @@ export declare const FieldConfigSchema: z.ZodObject<{
56
62
  readonly ID_READER: "ID_READER";
57
63
  readonly LOADER: "LOADER";
58
64
  }>>;
59
- 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
+ }>>;
60
70
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
71
  value: z.ZodString;
62
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
63
- }, z.core.$strip>>>;
64
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
65
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
66
- type: z.ZodLiteral<"SHOW">;
67
- conditional: z.ZodAny;
68
- }, z.core.$strip>, z.ZodObject<{
69
- type: z.ZodLiteral<"ENABLE">;
70
- conditional: z.ZodAny;
71
- }, z.core.$strip>, z.ZodObject<{
72
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
73
- conditional: z.ZodAny;
74
- }, z.core.$strip>], "type">>>;
75
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
- validator: z.ZodAny;
77
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
78
- }, 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
+ }, {
79
113
  fieldId: z.ZodString;
80
114
  fieldType: z.ZodLiteral<"field">;
81
- }, 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
+ }>;
82
188
  /**
83
189
  * The event fields that are available for advanced search. These are the values
84
190
  * that can be passed to the `event` function to create a field config.
85
191
  */
86
- export declare const EventFieldIdInput: z.ZodEnum<{
87
- status: "status";
88
- trackingId: "trackingId";
89
- updatedAt: "updatedAt";
90
- "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
91
- "legalStatuses.REGISTERED.createdAtLocation": "legalStatuses.REGISTERED.createdAtLocation";
92
- }>;
192
+ export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
93
193
  /**
94
194
  * Represent the prefix used to differentiate event metadata fields from
95
195
  * the declaration ones in advanced search form.
@@ -99,26 +199,21 @@ export declare const METADATA_FIELD_PREFIX = "event.";
99
199
  * The field IDs that are actually used in the advanced search. The `event`
100
200
  * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
101
201
  */
102
- export declare const EventFieldId: z.ZodEnum<{
103
- "event.status": "event.status";
104
- "event.trackingId": "event.trackingId";
105
- "event.updatedAt": "event.updatedAt";
106
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
107
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
108
- }>;
202
+ export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
109
203
  export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
110
204
  export type EventFieldId = z.infer<typeof EventFieldId>;
111
- export declare const EventFieldConfigSchema: z.ZodObject<{
205
+ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
112
206
  config: z.ZodObject<{
113
- type: z.ZodEnum<{
114
- exact: "exact";
115
- fuzzy: "fuzzy";
116
- range: "range";
117
- within: "within";
118
- }>;
119
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
- }, z.core.$strip>;
121
- 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<{
122
217
  readonly NAME: "NAME";
123
218
  readonly PHONE: "PHONE";
124
219
  readonly ID: "ID";
@@ -159,46 +254,141 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
159
254
  readonly ID_READER: "ID_READER";
160
255
  readonly LOADER: "LOADER";
161
256
  }>>;
162
- 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
+ }>>;
163
262
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
164
263
  value: z.ZodString;
165
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
166
- }, z.core.$strip>>>;
167
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
168
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
169
- type: z.ZodLiteral<"SHOW">;
170
- conditional: z.ZodAny;
171
- }, z.core.$strip>, z.ZodObject<{
172
- type: z.ZodLiteral<"ENABLE">;
173
- conditional: z.ZodAny;
174
- }, z.core.$strip>, z.ZodObject<{
175
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
176
- conditional: z.ZodAny;
177
- }, z.core.$strip>], "type">>>;
178
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
- validator: z.ZodAny;
180
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
181
- }, z.core.$strip>>>;
182
- fieldId: z.ZodEnum<{
183
- "event.status": "event.status";
184
- "event.trackingId": "event.trackingId";
185
- "event.updatedAt": "event.updatedAt";
186
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
187
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
188
- }>;
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"]>;
189
306
  fieldType: z.ZodLiteral<"event">;
190
- }, z.core.$strip>;
191
- 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<{
192
381
  config: z.ZodObject<{
193
- type: z.ZodEnum<{
194
- exact: "exact";
195
- fuzzy: "fuzzy";
196
- range: "range";
197
- within: "within";
198
- }>;
199
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
200
- }, z.core.$strip>;
201
- 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<{
202
392
  readonly NAME: "NAME";
203
393
  readonly PHONE: "PHONE";
204
394
  readonly ID: "ID";
@@ -239,39 +429,140 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
239
429
  readonly ID_READER: "ID_READER";
240
430
  readonly LOADER: "LOADER";
241
431
  }>>;
242
- 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
+ }>>;
243
437
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
244
438
  value: z.ZodString;
245
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
246
- }, z.core.$strip>>>;
247
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
248
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
249
- type: z.ZodLiteral<"SHOW">;
250
- conditional: z.ZodAny;
251
- }, z.core.$strip>, z.ZodObject<{
252
- type: z.ZodLiteral<"ENABLE">;
253
- conditional: z.ZodAny;
254
- }, z.core.$strip>, z.ZodObject<{
255
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
256
- conditional: z.ZodAny;
257
- }, z.core.$strip>], "type">>>;
258
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
- validator: z.ZodAny;
260
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
261
- }, 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
+ }, {
262
480
  fieldId: z.ZodString;
263
481
  fieldType: z.ZodLiteral<"field">;
264
- }, 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<{
265
555
  config: z.ZodObject<{
266
- type: z.ZodEnum<{
267
- exact: "exact";
268
- fuzzy: "fuzzy";
269
- range: "range";
270
- within: "within";
271
- }>;
272
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
273
- }, z.core.$strip>;
274
- 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<{
275
566
  readonly NAME: "NAME";
276
567
  readonly PHONE: "PHONE";
277
568
  readonly ID: "ID";
@@ -312,49 +603,292 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
603
  readonly ID_READER: "ID_READER";
313
604
  readonly LOADER: "LOADER";
314
605
  }>>;
315
- 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
+ }>>;
316
611
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
612
  value: z.ZodString;
318
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
319
- }, z.core.$strip>>>;
320
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
321
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
322
- type: z.ZodLiteral<"SHOW">;
323
- conditional: z.ZodAny;
324
- }, z.core.$strip>, z.ZodObject<{
325
- type: z.ZodLiteral<"ENABLE">;
326
- conditional: z.ZodAny;
327
- }, z.core.$strip>, z.ZodObject<{
328
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
329
- conditional: z.ZodAny;
330
- }, z.core.$strip>], "type">>>;
331
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
332
- validator: z.ZodAny;
333
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
334
- }, z.core.$strip>>>;
335
- fieldId: z.ZodEnum<{
336
- "event.status": "event.status";
337
- "event.trackingId": "event.trackingId";
338
- "event.updatedAt": "event.updatedAt";
339
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
340
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
341
- }>;
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"]>;
342
655
  fieldType: z.ZodLiteral<"event">;
343
- }, 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
+ }>;
344
873
  export type AdvancedSearchField = z.infer<typeof AdvancedSearchField>;
345
874
  export declare const AdvancedSearchConfig: z.ZodObject<{
346
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
347
- 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<{
348
881
  config: z.ZodObject<{
349
- type: z.ZodEnum<{
350
- exact: "exact";
351
- fuzzy: "fuzzy";
352
- range: "range";
353
- within: "within";
354
- }>;
355
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
- }, z.core.$strip>;
357
- 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<{
358
892
  readonly NAME: "NAME";
359
893
  readonly PHONE: "PHONE";
360
894
  readonly ID: "ID";
@@ -395,39 +929,140 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
395
929
  readonly ID_READER: "ID_READER";
396
930
  readonly LOADER: "LOADER";
397
931
  }>>;
398
- 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
+ }>>;
399
937
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
400
938
  value: z.ZodString;
401
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
402
- }, z.core.$strip>>>;
403
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
404
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
405
- type: z.ZodLiteral<"SHOW">;
406
- conditional: z.ZodAny;
407
- }, z.core.$strip>, z.ZodObject<{
408
- type: z.ZodLiteral<"ENABLE">;
409
- conditional: z.ZodAny;
410
- }, z.core.$strip>, z.ZodObject<{
411
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
412
- conditional: z.ZodAny;
413
- }, z.core.$strip>], "type">>>;
414
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
- validator: z.ZodAny;
416
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
417
- }, 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
+ }, {
418
980
  fieldId: z.ZodString;
419
981
  fieldType: z.ZodLiteral<"field">;
420
- }, 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<{
421
1055
  config: z.ZodObject<{
422
- type: z.ZodEnum<{
423
- exact: "exact";
424
- fuzzy: "fuzzy";
425
- range: "range";
426
- within: "within";
427
- }>;
428
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
429
- }, z.core.$strip>;
430
- 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<{
431
1066
  readonly NAME: "NAME";
432
1067
  readonly PHONE: "PHONE";
433
1068
  readonly ID: "ID";
@@ -468,36 +1103,428 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
468
1103
  readonly ID_READER: "ID_READER";
469
1104
  readonly LOADER: "LOADER";
470
1105
  }>>;
471
- 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
+ }>>;
472
1111
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
473
1112
  value: z.ZodString;
474
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
475
- }, z.core.$strip>>>;
476
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
477
- conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
478
- type: z.ZodLiteral<"SHOW">;
479
- conditional: z.ZodAny;
480
- }, z.core.$strip>, z.ZodObject<{
481
- type: z.ZodLiteral<"ENABLE">;
482
- conditional: z.ZodAny;
483
- }, z.core.$strip>, z.ZodObject<{
484
- type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
485
- conditional: z.ZodAny;
486
- }, z.core.$strip>], "type">>>;
487
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
488
- validator: z.ZodAny;
489
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
490
- }, z.core.$strip>>>;
491
- fieldId: z.ZodEnum<{
492
- "event.status": "event.status";
493
- "event.trackingId": "event.trackingId";
494
- "event.updatedAt": "event.updatedAt";
495
- "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
496
- "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
497
- }>;
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"]>;
498
1155
  fieldType: z.ZodLiteral<"event">;
499
- }, z.core.$strip>], "fieldType">>;
500
- }, 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
+ }>;
501
1528
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
502
1529
  export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
503
1530
  fields: FieldConfig[];