@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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 (76) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +14568 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +194 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +129 -0
  10. package/dist/commons/events/ActionConfig.d.ts +2034 -0
  11. package/dist/commons/events/ActionDocument.d.ts +14400 -0
  12. package/dist/commons/events/ActionInput.d.ts +11157 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1175 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +181 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4494 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +209 -0
  21. package/dist/commons/events/Draft.d.ts +814 -0
  22. package/dist/commons/events/EventConfig.d.ts +2237 -0
  23. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  24. package/dist/commons/events/EventDocument.d.ts +8505 -0
  25. package/dist/commons/events/EventIndex.d.ts +3858 -0
  26. package/dist/commons/events/EventInput.d.ts +13 -0
  27. package/dist/commons/events/EventMetadata.d.ts +408 -0
  28. package/dist/commons/events/FieldConfig.d.ts +7125 -0
  29. package/dist/commons/events/FieldType.d.ts +46 -0
  30. package/dist/commons/events/FieldTypeMapping.d.ts +537 -0
  31. package/dist/commons/events/FieldValue.d.ts +250 -0
  32. package/dist/commons/events/FileUtils.d.ts +4 -0
  33. package/dist/commons/events/FormConfig.d.ts +725 -0
  34. package/dist/commons/events/PageConfig.d.ts +336 -0
  35. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  36. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  37. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  38. package/dist/commons/events/User.d.ts +45 -0
  39. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  40. package/dist/commons/events/WorkqueueConfig.d.ts +8997 -0
  41. package/dist/commons/events/deduplication.d.ts +32 -0
  42. package/dist/commons/events/defineConfig.d.ts +309 -0
  43. package/dist/commons/events/event.d.ts +109 -0
  44. package/dist/commons/events/field.d.ts +151 -0
  45. package/dist/commons/events/index.d.ts +46 -0
  46. package/dist/commons/events/locations.d.ts +24 -0
  47. package/dist/commons/events/scopes.d.ts +55 -0
  48. package/dist/commons/events/serializer.d.ts +2 -0
  49. package/dist/commons/events/state/availableActions.d.ts +6 -0
  50. package/dist/commons/events/state/flags.d.ts +4 -0
  51. package/dist/commons/events/state/index.d.ts +146 -0
  52. package/dist/commons/events/state/utils.d.ts +1263 -0
  53. package/dist/commons/events/test.utils.d.ts +473 -0
  54. package/dist/commons/events/transactions.d.ts +2 -0
  55. package/dist/commons/events/utils.d.ts +501 -0
  56. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  57. package/dist/commons/notification/UserNotifications.d.ts +632 -0
  58. package/dist/commons/notification/index.d.ts +2 -0
  59. package/dist/conditionals/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts.map +1 -0
  61. package/dist/conditionals/index.js +491 -0
  62. package/dist/events/deduplication.d.ts +32 -0
  63. package/dist/events/deduplication.d.ts.map +1 -0
  64. package/dist/events/deduplication.js +67 -0
  65. package/dist/events/index.d.ts +2 -0
  66. package/dist/events/index.d.ts.map +1 -0
  67. package/dist/events/index.js +8383 -0
  68. package/dist/notification/index.d.ts +2 -0
  69. package/dist/notification/index.d.ts.map +1 -0
  70. package/dist/notification/index.js +5928 -0
  71. package/dist/scopes/index.d.ts +335 -0
  72. package/dist/scopes/index.d.ts.map +1 -0
  73. package/dist/scopes/index.js +379 -0
  74. package/package.json +40 -0
  75. package/tsconfig.json +27 -0
  76. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,1175 @@
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ import { FieldConfig } from './FieldConfig';
4
+ export declare const SearchQueryParams: z.ZodObject<{
5
+ eventType: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
7
+ country: z.ZodString;
8
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
9
+ administrativeArea: z.ZodOptional<z.ZodString>;
10
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ country: string;
13
+ addressType: "DOMESTIC" | "INTERNATIONAL";
14
+ administrativeArea?: string | undefined;
15
+ streetLevelDetails?: Record<string, string> | undefined;
16
+ }, {
17
+ country: string;
18
+ addressType: "DOMESTIC" | "INTERNATIONAL";
19
+ administrativeArea?: string | undefined;
20
+ streetLevelDetails?: Record<string, string> | undefined;
21
+ }>, z.ZodUnion<[z.ZodObject<{
22
+ start: z.ZodString;
23
+ end: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ start: string;
26
+ end: string;
27
+ }, {
28
+ start: string;
29
+ end: string;
30
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
31
+ path: z.ZodEffects<z.ZodString, string, string>;
32
+ originalFilename: z.ZodString;
33
+ type: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ type: string;
36
+ path: string;
37
+ originalFilename: string;
38
+ }, {
39
+ type: string;
40
+ path: string;
41
+ originalFilename: string;
42
+ }>, z.ZodArray<z.ZodObject<{
43
+ path: z.ZodEffects<z.ZodString, string, string>;
44
+ originalFilename: z.ZodString;
45
+ type: z.ZodString;
46
+ option: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ type: string;
49
+ option: string;
50
+ path: string;
51
+ originalFilename: string;
52
+ }, {
53
+ type: string;
54
+ option: string;
55
+ path: string;
56
+ originalFilename: string;
57
+ }>, "many">, z.ZodUndefined, z.ZodObject<{
58
+ firstname: z.ZodString;
59
+ surname: z.ZodString;
60
+ middlename: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ firstname: string;
63
+ surname: string;
64
+ middlename?: string | undefined;
65
+ }, {
66
+ firstname: string;
67
+ surname: string;
68
+ middlename?: string | undefined;
69
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
70
+ firstname: z.ZodString;
71
+ surname: z.ZodString;
72
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ firstname: string;
75
+ surname: string;
76
+ middlename?: string | null | undefined;
77
+ }, {
78
+ firstname: string;
79
+ surname: string;
80
+ middlename?: string | null | undefined;
81
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
82
+ loading: z.ZodBoolean;
83
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
84
+ statusCode: z.ZodNumber;
85
+ message: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ message: string;
88
+ statusCode: number;
89
+ }, {
90
+ message: string;
91
+ statusCode: number;
92
+ }>>>;
93
+ data: z.ZodAny;
94
+ }, "strip", z.ZodTypeAny, {
95
+ loading: boolean;
96
+ data?: any;
97
+ error?: {
98
+ message: string;
99
+ statusCode: number;
100
+ } | null | undefined;
101
+ }, {
102
+ loading: boolean;
103
+ data?: any;
104
+ error?: {
105
+ message: string;
106
+ statusCode: number;
107
+ } | null | undefined;
108
+ }>]>, z.objectOutputType<{
109
+ eventType: z.ZodOptional<z.ZodString>;
110
+ }, z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
111
+ country: z.ZodString;
112
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
113
+ administrativeArea: z.ZodOptional<z.ZodString>;
114
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ country: string;
117
+ addressType: "DOMESTIC" | "INTERNATIONAL";
118
+ administrativeArea?: string | undefined;
119
+ streetLevelDetails?: Record<string, string> | undefined;
120
+ }, {
121
+ country: string;
122
+ addressType: "DOMESTIC" | "INTERNATIONAL";
123
+ administrativeArea?: string | undefined;
124
+ streetLevelDetails?: Record<string, string> | undefined;
125
+ }>, z.ZodUnion<[z.ZodObject<{
126
+ start: z.ZodString;
127
+ end: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ start: string;
130
+ end: string;
131
+ }, {
132
+ start: string;
133
+ end: string;
134
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
135
+ path: z.ZodEffects<z.ZodString, string, string>;
136
+ originalFilename: z.ZodString;
137
+ type: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: string;
140
+ path: string;
141
+ originalFilename: string;
142
+ }, {
143
+ type: string;
144
+ path: string;
145
+ originalFilename: string;
146
+ }>, z.ZodArray<z.ZodObject<{
147
+ path: z.ZodEffects<z.ZodString, string, string>;
148
+ originalFilename: z.ZodString;
149
+ type: z.ZodString;
150
+ option: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ type: string;
153
+ option: string;
154
+ path: string;
155
+ originalFilename: string;
156
+ }, {
157
+ type: string;
158
+ option: string;
159
+ path: string;
160
+ originalFilename: string;
161
+ }>, "many">, z.ZodUndefined, z.ZodObject<{
162
+ firstname: z.ZodString;
163
+ surname: z.ZodString;
164
+ middlename: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ firstname: string;
167
+ surname: string;
168
+ middlename?: string | undefined;
169
+ }, {
170
+ firstname: string;
171
+ surname: string;
172
+ middlename?: string | undefined;
173
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
174
+ firstname: z.ZodString;
175
+ surname: z.ZodString;
176
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ firstname: string;
179
+ surname: string;
180
+ middlename?: string | null | undefined;
181
+ }, {
182
+ firstname: string;
183
+ surname: string;
184
+ middlename?: string | null | undefined;
185
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
186
+ loading: z.ZodBoolean;
187
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
188
+ statusCode: z.ZodNumber;
189
+ message: z.ZodString;
190
+ }, "strip", z.ZodTypeAny, {
191
+ message: string;
192
+ statusCode: number;
193
+ }, {
194
+ message: string;
195
+ statusCode: number;
196
+ }>>>;
197
+ data: z.ZodAny;
198
+ }, "strip", z.ZodTypeAny, {
199
+ loading: boolean;
200
+ data?: any;
201
+ error?: {
202
+ message: string;
203
+ statusCode: number;
204
+ } | null | undefined;
205
+ }, {
206
+ loading: boolean;
207
+ data?: any;
208
+ error?: {
209
+ message: string;
210
+ statusCode: number;
211
+ } | null | undefined;
212
+ }>]>, "strip">, z.objectInputType<{
213
+ eventType: z.ZodOptional<z.ZodString>;
214
+ }, z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
215
+ country: z.ZodString;
216
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
217
+ administrativeArea: z.ZodOptional<z.ZodString>;
218
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ country: string;
221
+ addressType: "DOMESTIC" | "INTERNATIONAL";
222
+ administrativeArea?: string | undefined;
223
+ streetLevelDetails?: Record<string, string> | undefined;
224
+ }, {
225
+ country: string;
226
+ addressType: "DOMESTIC" | "INTERNATIONAL";
227
+ administrativeArea?: string | undefined;
228
+ streetLevelDetails?: Record<string, string> | undefined;
229
+ }>, z.ZodUnion<[z.ZodObject<{
230
+ start: z.ZodString;
231
+ end: z.ZodString;
232
+ }, "strip", z.ZodTypeAny, {
233
+ start: string;
234
+ end: string;
235
+ }, {
236
+ start: string;
237
+ end: string;
238
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
239
+ path: z.ZodEffects<z.ZodString, string, string>;
240
+ originalFilename: z.ZodString;
241
+ type: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: string;
244
+ path: string;
245
+ originalFilename: string;
246
+ }, {
247
+ type: string;
248
+ path: string;
249
+ originalFilename: string;
250
+ }>, z.ZodArray<z.ZodObject<{
251
+ path: z.ZodEffects<z.ZodString, string, string>;
252
+ originalFilename: z.ZodString;
253
+ type: z.ZodString;
254
+ option: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ type: string;
257
+ option: string;
258
+ path: string;
259
+ originalFilename: string;
260
+ }, {
261
+ type: string;
262
+ option: string;
263
+ path: string;
264
+ originalFilename: string;
265
+ }>, "many">, z.ZodUndefined, z.ZodObject<{
266
+ firstname: z.ZodString;
267
+ surname: z.ZodString;
268
+ middlename: z.ZodOptional<z.ZodString>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ firstname: string;
271
+ surname: string;
272
+ middlename?: string | undefined;
273
+ }, {
274
+ firstname: string;
275
+ surname: string;
276
+ middlename?: string | undefined;
277
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
278
+ firstname: z.ZodString;
279
+ surname: z.ZodString;
280
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ firstname: string;
283
+ surname: string;
284
+ middlename?: string | null | undefined;
285
+ }, {
286
+ firstname: string;
287
+ surname: string;
288
+ middlename?: string | null | undefined;
289
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
290
+ loading: z.ZodBoolean;
291
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
292
+ statusCode: z.ZodNumber;
293
+ message: z.ZodString;
294
+ }, "strip", z.ZodTypeAny, {
295
+ message: string;
296
+ statusCode: number;
297
+ }, {
298
+ message: string;
299
+ statusCode: number;
300
+ }>>>;
301
+ data: z.ZodAny;
302
+ }, "strip", z.ZodTypeAny, {
303
+ loading: boolean;
304
+ data?: any;
305
+ error?: {
306
+ message: string;
307
+ statusCode: number;
308
+ } | null | undefined;
309
+ }, {
310
+ loading: boolean;
311
+ data?: any;
312
+ error?: {
313
+ message: string;
314
+ statusCode: number;
315
+ } | null | undefined;
316
+ }>]>, "strip">>;
317
+ export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
318
+ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
319
+ config: z.ZodObject<{
320
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ type: "exact" | "fuzzy" | "range" | "within";
323
+ }, {
324
+ type: "exact" | "fuzzy" | "range" | "within";
325
+ }>;
326
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
+ value: z.ZodString;
328
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
329
+ id: string;
330
+ description: string;
331
+ defaultMessage: string;
332
+ }>]>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ value: string;
335
+ label: string | TranslationConfig;
336
+ }, {
337
+ value: string;
338
+ label: string | {
339
+ id: string;
340
+ description: string;
341
+ defaultMessage: string;
342
+ };
343
+ }>, "many">>;
344
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
345
+ id: string;
346
+ description: string;
347
+ defaultMessage: string;
348
+ }>>;
349
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
350
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
351
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
352
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
353
+ id: string;
354
+ description: string;
355
+ defaultMessage: string;
356
+ }>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ message: TranslationConfig;
359
+ validator: import(".").JSONSchema;
360
+ }, {
361
+ message: {
362
+ id: string;
363
+ description: string;
364
+ defaultMessage: string;
365
+ };
366
+ validator: import(".").JSONSchema;
367
+ }>, "many">>>;
368
+ }, {
369
+ fieldId: z.ZodString;
370
+ fieldType: z.ZodLiteral<"field">;
371
+ }>, "strip", z.ZodTypeAny, {
372
+ config: {
373
+ type: "exact" | "fuzzy" | "range" | "within";
374
+ };
375
+ fieldId: string;
376
+ fieldType: "field";
377
+ options?: {
378
+ value: string;
379
+ label: string | TranslationConfig;
380
+ }[] | undefined;
381
+ conditionals?: ({
382
+ type: "SHOW";
383
+ conditional: import(".").JSONSchema;
384
+ } | {
385
+ type: "ENABLE";
386
+ conditional: import(".").JSONSchema;
387
+ } | {
388
+ type: "DISPLAY_ON_REVIEW";
389
+ conditional: import(".").JSONSchema;
390
+ })[] | undefined;
391
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
392
+ validations?: {
393
+ message: TranslationConfig;
394
+ validator: import(".").JSONSchema;
395
+ }[] | undefined;
396
+ }, {
397
+ config: {
398
+ type: "exact" | "fuzzy" | "range" | "within";
399
+ };
400
+ fieldId: string;
401
+ fieldType: "field";
402
+ options?: {
403
+ value: string;
404
+ label: string | {
405
+ id: string;
406
+ description: string;
407
+ defaultMessage: string;
408
+ };
409
+ }[] | undefined;
410
+ conditionals?: ({
411
+ type: "SHOW";
412
+ conditional: import(".").JSONSchema;
413
+ } | {
414
+ type: "ENABLE";
415
+ conditional: import(".").JSONSchema;
416
+ } | {
417
+ type: "DISPLAY_ON_REVIEW";
418
+ conditional: import(".").JSONSchema;
419
+ })[] | undefined;
420
+ searchCriteriaLabelPrefix?: {
421
+ id: string;
422
+ description: string;
423
+ defaultMessage: string;
424
+ } | undefined;
425
+ validations?: {
426
+ message: {
427
+ id: string;
428
+ description: string;
429
+ defaultMessage: string;
430
+ };
431
+ validator: import(".").JSONSchema;
432
+ }[] | undefined;
433
+ }>;
434
+ /**
435
+ * The event fields that are available for advanced search. These are the values
436
+ * that can be passed to the `event` function to create a field config.
437
+ */
438
+ export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
439
+ /**
440
+ * Represent the prefix used to differentiate event metadata fields from
441
+ * the declaration ones in advanced search form.
442
+ */
443
+ export declare const METADATA_FIELD_PREFIX = "event.";
444
+ /**
445
+ * The field IDs that are actually used in the advanced search. The `event`
446
+ * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
447
+ */
448
+ export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
449
+ export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
450
+ export type EventFieldId = z.infer<typeof EventFieldId>;
451
+ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
452
+ config: z.ZodObject<{
453
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ type: "exact" | "fuzzy" | "range" | "within";
456
+ }, {
457
+ type: "exact" | "fuzzy" | "range" | "within";
458
+ }>;
459
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
+ value: z.ZodString;
461
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
462
+ id: string;
463
+ description: string;
464
+ defaultMessage: string;
465
+ }>]>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ value: string;
468
+ label: string | TranslationConfig;
469
+ }, {
470
+ value: string;
471
+ label: string | {
472
+ id: string;
473
+ description: string;
474
+ defaultMessage: string;
475
+ };
476
+ }>, "many">>;
477
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
478
+ id: string;
479
+ description: string;
480
+ defaultMessage: string;
481
+ }>>;
482
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
483
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
484
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
485
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
486
+ id: string;
487
+ description: string;
488
+ defaultMessage: string;
489
+ }>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ message: TranslationConfig;
492
+ validator: import(".").JSONSchema;
493
+ }, {
494
+ message: {
495
+ id: string;
496
+ description: string;
497
+ defaultMessage: string;
498
+ };
499
+ validator: import(".").JSONSchema;
500
+ }>, "many">>>;
501
+ }, {
502
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
503
+ fieldType: z.ZodLiteral<"event">;
504
+ }>, "strip", z.ZodTypeAny, {
505
+ config: {
506
+ type: "exact" | "fuzzy" | "range" | "within";
507
+ };
508
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
509
+ fieldType: "event";
510
+ options?: {
511
+ value: string;
512
+ label: string | TranslationConfig;
513
+ }[] | undefined;
514
+ conditionals?: ({
515
+ type: "SHOW";
516
+ conditional: import(".").JSONSchema;
517
+ } | {
518
+ type: "ENABLE";
519
+ conditional: import(".").JSONSchema;
520
+ } | {
521
+ type: "DISPLAY_ON_REVIEW";
522
+ conditional: import(".").JSONSchema;
523
+ })[] | undefined;
524
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
525
+ validations?: {
526
+ message: TranslationConfig;
527
+ validator: import(".").JSONSchema;
528
+ }[] | undefined;
529
+ }, {
530
+ config: {
531
+ type: "exact" | "fuzzy" | "range" | "within";
532
+ };
533
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
534
+ fieldType: "event";
535
+ options?: {
536
+ value: string;
537
+ label: string | {
538
+ id: string;
539
+ description: string;
540
+ defaultMessage: string;
541
+ };
542
+ }[] | undefined;
543
+ conditionals?: ({
544
+ type: "SHOW";
545
+ conditional: import(".").JSONSchema;
546
+ } | {
547
+ type: "ENABLE";
548
+ conditional: import(".").JSONSchema;
549
+ } | {
550
+ type: "DISPLAY_ON_REVIEW";
551
+ conditional: import(".").JSONSchema;
552
+ })[] | undefined;
553
+ searchCriteriaLabelPrefix?: {
554
+ id: string;
555
+ description: string;
556
+ defaultMessage: string;
557
+ } | undefined;
558
+ validations?: {
559
+ message: {
560
+ id: string;
561
+ description: string;
562
+ defaultMessage: string;
563
+ };
564
+ validator: import(".").JSONSchema;
565
+ }[] | undefined;
566
+ }>;
567
+ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
568
+ config: z.ZodObject<{
569
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ type: "exact" | "fuzzy" | "range" | "within";
572
+ }, {
573
+ type: "exact" | "fuzzy" | "range" | "within";
574
+ }>;
575
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
576
+ value: z.ZodString;
577
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
578
+ id: string;
579
+ description: string;
580
+ defaultMessage: string;
581
+ }>]>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ value: string;
584
+ label: string | TranslationConfig;
585
+ }, {
586
+ value: string;
587
+ label: string | {
588
+ id: string;
589
+ description: string;
590
+ defaultMessage: string;
591
+ };
592
+ }>, "many">>;
593
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
594
+ id: string;
595
+ description: string;
596
+ defaultMessage: string;
597
+ }>>;
598
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
599
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
600
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
601
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
602
+ id: string;
603
+ description: string;
604
+ defaultMessage: string;
605
+ }>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ message: TranslationConfig;
608
+ validator: import(".").JSONSchema;
609
+ }, {
610
+ message: {
611
+ id: string;
612
+ description: string;
613
+ defaultMessage: string;
614
+ };
615
+ validator: import(".").JSONSchema;
616
+ }>, "many">>>;
617
+ }, {
618
+ fieldId: z.ZodString;
619
+ fieldType: z.ZodLiteral<"field">;
620
+ }>, "strip", z.ZodTypeAny, {
621
+ config: {
622
+ type: "exact" | "fuzzy" | "range" | "within";
623
+ };
624
+ fieldId: string;
625
+ fieldType: "field";
626
+ options?: {
627
+ value: string;
628
+ label: string | TranslationConfig;
629
+ }[] | undefined;
630
+ conditionals?: ({
631
+ type: "SHOW";
632
+ conditional: import(".").JSONSchema;
633
+ } | {
634
+ type: "ENABLE";
635
+ conditional: import(".").JSONSchema;
636
+ } | {
637
+ type: "DISPLAY_ON_REVIEW";
638
+ conditional: import(".").JSONSchema;
639
+ })[] | undefined;
640
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
641
+ validations?: {
642
+ message: TranslationConfig;
643
+ validator: import(".").JSONSchema;
644
+ }[] | undefined;
645
+ }, {
646
+ config: {
647
+ type: "exact" | "fuzzy" | "range" | "within";
648
+ };
649
+ fieldId: string;
650
+ fieldType: "field";
651
+ options?: {
652
+ value: string;
653
+ label: string | {
654
+ id: string;
655
+ description: string;
656
+ defaultMessage: string;
657
+ };
658
+ }[] | undefined;
659
+ conditionals?: ({
660
+ type: "SHOW";
661
+ conditional: import(".").JSONSchema;
662
+ } | {
663
+ type: "ENABLE";
664
+ conditional: import(".").JSONSchema;
665
+ } | {
666
+ type: "DISPLAY_ON_REVIEW";
667
+ conditional: import(".").JSONSchema;
668
+ })[] | undefined;
669
+ searchCriteriaLabelPrefix?: {
670
+ id: string;
671
+ description: string;
672
+ defaultMessage: string;
673
+ } | undefined;
674
+ validations?: {
675
+ message: {
676
+ id: string;
677
+ description: string;
678
+ defaultMessage: string;
679
+ };
680
+ validator: import(".").JSONSchema;
681
+ }[] | undefined;
682
+ }>, z.ZodObject<z.objectUtil.extendShape<{
683
+ config: z.ZodObject<{
684
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "exact" | "fuzzy" | "range" | "within";
687
+ }, {
688
+ type: "exact" | "fuzzy" | "range" | "within";
689
+ }>;
690
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
691
+ value: z.ZodString;
692
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
693
+ id: string;
694
+ description: string;
695
+ defaultMessage: string;
696
+ }>]>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ value: string;
699
+ label: string | TranslationConfig;
700
+ }, {
701
+ value: string;
702
+ label: string | {
703
+ id: string;
704
+ description: string;
705
+ defaultMessage: string;
706
+ };
707
+ }>, "many">>;
708
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
709
+ id: string;
710
+ description: string;
711
+ defaultMessage: string;
712
+ }>>;
713
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
714
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
715
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
716
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
717
+ id: string;
718
+ description: string;
719
+ defaultMessage: string;
720
+ }>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ message: TranslationConfig;
723
+ validator: import(".").JSONSchema;
724
+ }, {
725
+ message: {
726
+ id: string;
727
+ description: string;
728
+ defaultMessage: string;
729
+ };
730
+ validator: import(".").JSONSchema;
731
+ }>, "many">>>;
732
+ }, {
733
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
734
+ fieldType: z.ZodLiteral<"event">;
735
+ }>, "strip", z.ZodTypeAny, {
736
+ config: {
737
+ type: "exact" | "fuzzy" | "range" | "within";
738
+ };
739
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
740
+ fieldType: "event";
741
+ options?: {
742
+ value: string;
743
+ label: string | TranslationConfig;
744
+ }[] | undefined;
745
+ conditionals?: ({
746
+ type: "SHOW";
747
+ conditional: import(".").JSONSchema;
748
+ } | {
749
+ type: "ENABLE";
750
+ conditional: import(".").JSONSchema;
751
+ } | {
752
+ type: "DISPLAY_ON_REVIEW";
753
+ conditional: import(".").JSONSchema;
754
+ })[] | undefined;
755
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
756
+ validations?: {
757
+ message: TranslationConfig;
758
+ validator: import(".").JSONSchema;
759
+ }[] | undefined;
760
+ }, {
761
+ config: {
762
+ type: "exact" | "fuzzy" | "range" | "within";
763
+ };
764
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
765
+ fieldType: "event";
766
+ options?: {
767
+ value: string;
768
+ label: string | {
769
+ id: string;
770
+ description: string;
771
+ defaultMessage: string;
772
+ };
773
+ }[] | undefined;
774
+ conditionals?: ({
775
+ type: "SHOW";
776
+ conditional: import(".").JSONSchema;
777
+ } | {
778
+ type: "ENABLE";
779
+ conditional: import(".").JSONSchema;
780
+ } | {
781
+ type: "DISPLAY_ON_REVIEW";
782
+ conditional: import(".").JSONSchema;
783
+ })[] | undefined;
784
+ searchCriteriaLabelPrefix?: {
785
+ id: string;
786
+ description: string;
787
+ defaultMessage: string;
788
+ } | undefined;
789
+ validations?: {
790
+ message: {
791
+ id: string;
792
+ description: string;
793
+ defaultMessage: string;
794
+ };
795
+ validator: import(".").JSONSchema;
796
+ }[] | undefined;
797
+ }>]>;
798
+ export type SearchField = z.infer<typeof SearchField>;
799
+ export declare const AdvancedSearchConfig: z.ZodObject<{
800
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
801
+ id: string;
802
+ description: string;
803
+ defaultMessage: string;
804
+ }>;
805
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
806
+ config: z.ZodObject<{
807
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: "exact" | "fuzzy" | "range" | "within";
810
+ }, {
811
+ type: "exact" | "fuzzy" | "range" | "within";
812
+ }>;
813
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
814
+ value: z.ZodString;
815
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
816
+ id: string;
817
+ description: string;
818
+ defaultMessage: string;
819
+ }>]>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ value: string;
822
+ label: string | TranslationConfig;
823
+ }, {
824
+ value: string;
825
+ label: string | {
826
+ id: string;
827
+ description: string;
828
+ defaultMessage: string;
829
+ };
830
+ }>, "many">>;
831
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
832
+ id: string;
833
+ description: string;
834
+ defaultMessage: string;
835
+ }>>;
836
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
837
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
838
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
839
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
840
+ id: string;
841
+ description: string;
842
+ defaultMessage: string;
843
+ }>;
844
+ }, "strip", z.ZodTypeAny, {
845
+ message: TranslationConfig;
846
+ validator: import(".").JSONSchema;
847
+ }, {
848
+ message: {
849
+ id: string;
850
+ description: string;
851
+ defaultMessage: string;
852
+ };
853
+ validator: import(".").JSONSchema;
854
+ }>, "many">>>;
855
+ }, {
856
+ fieldId: z.ZodString;
857
+ fieldType: z.ZodLiteral<"field">;
858
+ }>, "strip", z.ZodTypeAny, {
859
+ config: {
860
+ type: "exact" | "fuzzy" | "range" | "within";
861
+ };
862
+ fieldId: string;
863
+ fieldType: "field";
864
+ options?: {
865
+ value: string;
866
+ label: string | TranslationConfig;
867
+ }[] | undefined;
868
+ conditionals?: ({
869
+ type: "SHOW";
870
+ conditional: import(".").JSONSchema;
871
+ } | {
872
+ type: "ENABLE";
873
+ conditional: import(".").JSONSchema;
874
+ } | {
875
+ type: "DISPLAY_ON_REVIEW";
876
+ conditional: import(".").JSONSchema;
877
+ })[] | undefined;
878
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
879
+ validations?: {
880
+ message: TranslationConfig;
881
+ validator: import(".").JSONSchema;
882
+ }[] | undefined;
883
+ }, {
884
+ config: {
885
+ type: "exact" | "fuzzy" | "range" | "within";
886
+ };
887
+ fieldId: string;
888
+ fieldType: "field";
889
+ options?: {
890
+ value: string;
891
+ label: string | {
892
+ id: string;
893
+ description: string;
894
+ defaultMessage: string;
895
+ };
896
+ }[] | undefined;
897
+ conditionals?: ({
898
+ type: "SHOW";
899
+ conditional: import(".").JSONSchema;
900
+ } | {
901
+ type: "ENABLE";
902
+ conditional: import(".").JSONSchema;
903
+ } | {
904
+ type: "DISPLAY_ON_REVIEW";
905
+ conditional: import(".").JSONSchema;
906
+ })[] | undefined;
907
+ searchCriteriaLabelPrefix?: {
908
+ id: string;
909
+ description: string;
910
+ defaultMessage: string;
911
+ } | undefined;
912
+ validations?: {
913
+ message: {
914
+ id: string;
915
+ description: string;
916
+ defaultMessage: string;
917
+ };
918
+ validator: import(".").JSONSchema;
919
+ }[] | undefined;
920
+ }>, z.ZodObject<z.objectUtil.extendShape<{
921
+ config: z.ZodObject<{
922
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
923
+ }, "strip", z.ZodTypeAny, {
924
+ type: "exact" | "fuzzy" | "range" | "within";
925
+ }, {
926
+ type: "exact" | "fuzzy" | "range" | "within";
927
+ }>;
928
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
929
+ value: z.ZodString;
930
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
931
+ id: string;
932
+ description: string;
933
+ defaultMessage: string;
934
+ }>]>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ value: string;
937
+ label: string | TranslationConfig;
938
+ }, {
939
+ value: string;
940
+ label: string | {
941
+ id: string;
942
+ description: string;
943
+ defaultMessage: string;
944
+ };
945
+ }>, "many">>;
946
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
947
+ id: string;
948
+ description: string;
949
+ defaultMessage: string;
950
+ }>>;
951
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
952
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
953
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
954
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
955
+ id: string;
956
+ description: string;
957
+ defaultMessage: string;
958
+ }>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ message: TranslationConfig;
961
+ validator: import(".").JSONSchema;
962
+ }, {
963
+ message: {
964
+ id: string;
965
+ description: string;
966
+ defaultMessage: string;
967
+ };
968
+ validator: import(".").JSONSchema;
969
+ }>, "many">>>;
970
+ }, {
971
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
972
+ fieldType: z.ZodLiteral<"event">;
973
+ }>, "strip", z.ZodTypeAny, {
974
+ config: {
975
+ type: "exact" | "fuzzy" | "range" | "within";
976
+ };
977
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
978
+ fieldType: "event";
979
+ options?: {
980
+ value: string;
981
+ label: string | TranslationConfig;
982
+ }[] | undefined;
983
+ conditionals?: ({
984
+ type: "SHOW";
985
+ conditional: import(".").JSONSchema;
986
+ } | {
987
+ type: "ENABLE";
988
+ conditional: import(".").JSONSchema;
989
+ } | {
990
+ type: "DISPLAY_ON_REVIEW";
991
+ conditional: import(".").JSONSchema;
992
+ })[] | undefined;
993
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
994
+ validations?: {
995
+ message: TranslationConfig;
996
+ validator: import(".").JSONSchema;
997
+ }[] | undefined;
998
+ }, {
999
+ config: {
1000
+ type: "exact" | "fuzzy" | "range" | "within";
1001
+ };
1002
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1003
+ fieldType: "event";
1004
+ options?: {
1005
+ value: string;
1006
+ label: string | {
1007
+ id: string;
1008
+ description: string;
1009
+ defaultMessage: string;
1010
+ };
1011
+ }[] | undefined;
1012
+ conditionals?: ({
1013
+ type: "SHOW";
1014
+ conditional: import(".").JSONSchema;
1015
+ } | {
1016
+ type: "ENABLE";
1017
+ conditional: import(".").JSONSchema;
1018
+ } | {
1019
+ type: "DISPLAY_ON_REVIEW";
1020
+ conditional: import(".").JSONSchema;
1021
+ })[] | undefined;
1022
+ searchCriteriaLabelPrefix?: {
1023
+ id: string;
1024
+ description: string;
1025
+ defaultMessage: string;
1026
+ } | undefined;
1027
+ validations?: {
1028
+ message: {
1029
+ id: string;
1030
+ description: string;
1031
+ defaultMessage: string;
1032
+ };
1033
+ validator: import(".").JSONSchema;
1034
+ }[] | undefined;
1035
+ }>]>, "many">;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ title: TranslationConfig;
1038
+ fields: ({
1039
+ config: {
1040
+ type: "exact" | "fuzzy" | "range" | "within";
1041
+ };
1042
+ fieldId: string;
1043
+ fieldType: "field";
1044
+ options?: {
1045
+ value: string;
1046
+ label: string | TranslationConfig;
1047
+ }[] | undefined;
1048
+ conditionals?: ({
1049
+ type: "SHOW";
1050
+ conditional: import(".").JSONSchema;
1051
+ } | {
1052
+ type: "ENABLE";
1053
+ conditional: import(".").JSONSchema;
1054
+ } | {
1055
+ type: "DISPLAY_ON_REVIEW";
1056
+ conditional: import(".").JSONSchema;
1057
+ })[] | undefined;
1058
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1059
+ validations?: {
1060
+ message: TranslationConfig;
1061
+ validator: import(".").JSONSchema;
1062
+ }[] | undefined;
1063
+ } | {
1064
+ config: {
1065
+ type: "exact" | "fuzzy" | "range" | "within";
1066
+ };
1067
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1068
+ fieldType: "event";
1069
+ options?: {
1070
+ value: string;
1071
+ label: string | TranslationConfig;
1072
+ }[] | undefined;
1073
+ conditionals?: ({
1074
+ type: "SHOW";
1075
+ conditional: import(".").JSONSchema;
1076
+ } | {
1077
+ type: "ENABLE";
1078
+ conditional: import(".").JSONSchema;
1079
+ } | {
1080
+ type: "DISPLAY_ON_REVIEW";
1081
+ conditional: import(".").JSONSchema;
1082
+ })[] | undefined;
1083
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1084
+ validations?: {
1085
+ message: TranslationConfig;
1086
+ validator: import(".").JSONSchema;
1087
+ }[] | undefined;
1088
+ })[];
1089
+ }, {
1090
+ title: {
1091
+ id: string;
1092
+ description: string;
1093
+ defaultMessage: string;
1094
+ };
1095
+ fields: ({
1096
+ config: {
1097
+ type: "exact" | "fuzzy" | "range" | "within";
1098
+ };
1099
+ fieldId: string;
1100
+ fieldType: "field";
1101
+ options?: {
1102
+ value: string;
1103
+ label: string | {
1104
+ id: string;
1105
+ description: string;
1106
+ defaultMessage: string;
1107
+ };
1108
+ }[] | undefined;
1109
+ conditionals?: ({
1110
+ type: "SHOW";
1111
+ conditional: import(".").JSONSchema;
1112
+ } | {
1113
+ type: "ENABLE";
1114
+ conditional: import(".").JSONSchema;
1115
+ } | {
1116
+ type: "DISPLAY_ON_REVIEW";
1117
+ conditional: import(".").JSONSchema;
1118
+ })[] | undefined;
1119
+ searchCriteriaLabelPrefix?: {
1120
+ id: string;
1121
+ description: string;
1122
+ defaultMessage: string;
1123
+ } | undefined;
1124
+ validations?: {
1125
+ message: {
1126
+ id: string;
1127
+ description: string;
1128
+ defaultMessage: string;
1129
+ };
1130
+ validator: import(".").JSONSchema;
1131
+ }[] | undefined;
1132
+ } | {
1133
+ config: {
1134
+ type: "exact" | "fuzzy" | "range" | "within";
1135
+ };
1136
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1137
+ fieldType: "event";
1138
+ options?: {
1139
+ value: string;
1140
+ label: string | {
1141
+ id: string;
1142
+ description: string;
1143
+ defaultMessage: string;
1144
+ };
1145
+ }[] | undefined;
1146
+ conditionals?: ({
1147
+ type: "SHOW";
1148
+ conditional: import(".").JSONSchema;
1149
+ } | {
1150
+ type: "ENABLE";
1151
+ conditional: import(".").JSONSchema;
1152
+ } | {
1153
+ type: "DISPLAY_ON_REVIEW";
1154
+ conditional: import(".").JSONSchema;
1155
+ })[] | undefined;
1156
+ searchCriteriaLabelPrefix?: {
1157
+ id: string;
1158
+ description: string;
1159
+ defaultMessage: string;
1160
+ } | undefined;
1161
+ validations?: {
1162
+ message: {
1163
+ id: string;
1164
+ description: string;
1165
+ defaultMessage: string;
1166
+ };
1167
+ validator: import(".").JSONSchema;
1168
+ }[] | undefined;
1169
+ })[];
1170
+ }>;
1171
+ export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
1172
+ export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
1173
+ fields: FieldConfig[];
1174
+ };
1175
+ //# sourceMappingURL=AdvancedSearchConfig.d.ts.map