@opencrvs/toolkit 1.8.0-rc.f7e8fb5 → 1.8.0-rc.f807e0d

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