@opencrvs/toolkit 1.8.1-rc.a372970 → 1.8.1-rc.a9d9f0d

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 (47) hide show
  1. package/dist/commons/api/router.d.ts +5951 -5078
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -13
  3. package/dist/commons/conditionals/validate.d.ts +25 -7
  4. package/dist/commons/events/ActionConfig.d.ts +120964 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +5425 -1299
  6. package/dist/commons/events/ActionInput.d.ts +3267 -1025
  7. package/dist/commons/events/ActionType.d.ts +10 -1
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1300 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +40 -9
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +288 -97
  14. package/dist/commons/events/EventConfig.d.ts +54890 -1357
  15. package/dist/commons/events/EventDocument.d.ts +2765 -833
  16. package/dist/commons/events/EventIndex.d.ts +2350 -29
  17. package/dist/commons/events/EventMetadata.d.ts +347 -47
  18. package/dist/commons/events/FieldConfig.d.ts +6985 -1278
  19. package/dist/commons/events/FieldType.d.ts +8 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +161 -73
  21. package/dist/commons/events/FieldValue.d.ts +91 -20
  22. package/dist/commons/events/FormConfig.d.ts +56556 -522
  23. package/dist/commons/events/PageConfig.d.ts +14043 -209
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/User.d.ts +34 -2
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +8240 -20
  28. package/dist/commons/events/defineConfig.d.ts +8628 -77
  29. package/dist/commons/events/event.d.ts +108 -0
  30. package/dist/commons/events/field.d.ts +108 -0
  31. package/dist/commons/events/index.d.ts +8 -0
  32. package/dist/commons/events/scopes.d.ts +45 -0
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +210 -90
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +15612 -88
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +69 -58
  39. package/dist/events/index.js +4840 -1798
  40. package/dist/scopes/index.d.ts +184 -7
  41. package/dist/scopes/index.js +140 -40
  42. package/package.json +4 -3
  43. package/tsconfig.json +1 -1
  44. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  45. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  46. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  47. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -1,51 +1,1329 @@
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.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.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.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
+ alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
+ excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
505
+ }>, "strip", z.ZodTypeAny, {
506
+ config: {
507
+ type: "exact" | "fuzzy" | "range" | "within";
508
+ };
509
+ fieldId: string;
510
+ fieldType: "field";
511
+ options?: {
512
+ value: string;
513
+ label: TranslationConfig;
514
+ }[] | undefined;
515
+ conditionals?: ({
516
+ type: "SHOW";
517
+ conditional: import(".").JSONSchema;
518
+ } | {
519
+ type: "ENABLE";
520
+ conditional: import(".").JSONSchema;
521
+ } | {
522
+ type: "DISPLAY_ON_REVIEW";
523
+ conditional: import(".").JSONSchema;
524
+ })[] | undefined;
525
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
526
+ validations?: {
527
+ message: TranslationConfig;
528
+ validator: import(".").JSONSchema;
529
+ }[] | undefined;
530
+ alternateFieldIds?: string[] | undefined;
531
+ excludeInSearchQuery?: boolean | undefined;
532
+ }, {
533
+ config: {
534
+ type: "exact" | "fuzzy" | "range" | "within";
535
+ };
536
+ fieldId: string;
537
+ fieldType: "field";
538
+ options?: {
539
+ value: string;
540
+ label: {
541
+ id: string;
542
+ description: string;
543
+ defaultMessage: string;
544
+ };
545
+ }[] | undefined;
546
+ conditionals?: ({
547
+ type: "SHOW";
548
+ conditional: import(".").JSONSchema;
549
+ } | {
550
+ type: "ENABLE";
551
+ conditional: import(".").JSONSchema;
552
+ } | {
553
+ type: "DISPLAY_ON_REVIEW";
554
+ conditional: import(".").JSONSchema;
555
+ })[] | undefined;
556
+ searchCriteriaLabelPrefix?: {
557
+ id: string;
558
+ description: string;
559
+ defaultMessage: string;
560
+ } | undefined;
561
+ validations?: {
562
+ message: {
563
+ id: string;
564
+ description: string;
565
+ defaultMessage: string;
566
+ };
567
+ validator: import(".").JSONSchema;
568
+ }[] | undefined;
569
+ alternateFieldIds?: string[] | undefined;
570
+ excludeInSearchQuery?: boolean | undefined;
571
+ }>;
572
+ /**
573
+ * The event fields that are available for advanced search. These are the values
574
+ * that can be passed to the `event` function to create a field config.
575
+ */
576
+ export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
577
+ /**
578
+ * Represent the prefix used to differentiate event metadata fields from
579
+ * the declaration ones in advanced search form.
580
+ */
581
+ export declare const METADATA_FIELD_PREFIX = "event.";
582
+ /**
583
+ * The field IDs that are actually used in the advanced search. The `event`
584
+ * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
585
+ */
586
+ export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
587
+ export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
588
+ export type EventFieldId = z.infer<typeof EventFieldId>;
589
+ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
590
+ config: z.ZodObject<{
591
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ type: "exact" | "fuzzy" | "range" | "within";
594
+ }, {
595
+ type: "exact" | "fuzzy" | "range" | "within";
596
+ }>;
597
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
598
+ value: z.ZodString;
599
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
600
+ id: string;
601
+ description: string;
602
+ defaultMessage: string;
603
+ }>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ value: string;
606
+ label: TranslationConfig;
607
+ }, {
608
+ value: string;
609
+ label: {
610
+ id: string;
611
+ description: string;
612
+ defaultMessage: string;
613
+ };
614
+ }>, "many">>;
615
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
616
+ id: string;
617
+ description: string;
618
+ defaultMessage: string;
619
+ }>>;
620
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
621
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
622
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
623
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
624
+ id: string;
625
+ description: string;
626
+ defaultMessage: string;
627
+ }>;
628
+ }, "strip", z.ZodTypeAny, {
629
+ message: TranslationConfig;
630
+ validator: import(".").JSONSchema;
631
+ }, {
632
+ message: {
633
+ id: string;
634
+ description: string;
635
+ defaultMessage: string;
636
+ };
637
+ validator: import(".").JSONSchema;
638
+ }>, "many">>>;
639
+ }, {
640
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
641
+ fieldType: z.ZodLiteral<"event">;
642
+ }>, "strip", z.ZodTypeAny, {
643
+ config: {
644
+ type: "exact" | "fuzzy" | "range" | "within";
645
+ };
646
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
647
+ fieldType: "event";
648
+ options?: {
649
+ value: string;
650
+ label: TranslationConfig;
651
+ }[] | undefined;
652
+ conditionals?: ({
653
+ type: "SHOW";
654
+ conditional: import(".").JSONSchema;
655
+ } | {
656
+ type: "ENABLE";
657
+ conditional: import(".").JSONSchema;
658
+ } | {
659
+ type: "DISPLAY_ON_REVIEW";
660
+ conditional: import(".").JSONSchema;
661
+ })[] | undefined;
662
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
663
+ validations?: {
664
+ message: TranslationConfig;
665
+ validator: import(".").JSONSchema;
666
+ }[] | undefined;
667
+ }, {
668
+ config: {
669
+ type: "exact" | "fuzzy" | "range" | "within";
670
+ };
671
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
672
+ fieldType: "event";
673
+ options?: {
674
+ value: string;
675
+ label: {
676
+ id: string;
677
+ description: string;
678
+ defaultMessage: string;
679
+ };
680
+ }[] | undefined;
681
+ conditionals?: ({
682
+ type: "SHOW";
683
+ conditional: import(".").JSONSchema;
684
+ } | {
685
+ type: "ENABLE";
686
+ conditional: import(".").JSONSchema;
687
+ } | {
688
+ type: "DISPLAY_ON_REVIEW";
689
+ conditional: import(".").JSONSchema;
690
+ })[] | undefined;
691
+ searchCriteriaLabelPrefix?: {
692
+ id: string;
693
+ description: string;
694
+ defaultMessage: string;
695
+ } | undefined;
696
+ validations?: {
697
+ message: {
698
+ id: string;
699
+ description: string;
700
+ defaultMessage: string;
701
+ };
702
+ validator: import(".").JSONSchema;
703
+ }[] | undefined;
704
+ }>;
705
+ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
706
+ config: z.ZodObject<{
707
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ type: "exact" | "fuzzy" | "range" | "within";
710
+ }, {
711
+ type: "exact" | "fuzzy" | "range" | "within";
712
+ }>;
713
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
714
+ value: z.ZodString;
715
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
716
+ id: string;
717
+ description: string;
718
+ defaultMessage: string;
719
+ }>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ value: string;
722
+ label: TranslationConfig;
723
+ }, {
724
+ value: string;
725
+ label: {
726
+ id: string;
727
+ description: string;
728
+ defaultMessage: string;
729
+ };
730
+ }>, "many">>;
731
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
732
+ id: string;
733
+ description: string;
734
+ defaultMessage: string;
735
+ }>>;
736
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
737
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
738
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
739
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
740
+ id: string;
741
+ description: string;
742
+ defaultMessage: string;
743
+ }>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ message: TranslationConfig;
746
+ validator: import(".").JSONSchema;
747
+ }, {
748
+ message: {
749
+ id: string;
750
+ description: string;
751
+ defaultMessage: string;
752
+ };
753
+ validator: import(".").JSONSchema;
754
+ }>, "many">>>;
755
+ }, {
756
+ fieldId: z.ZodString;
757
+ fieldType: z.ZodLiteral<"field">;
758
+ alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
759
+ excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
760
+ }>, "strip", z.ZodTypeAny, {
761
+ config: {
762
+ type: "exact" | "fuzzy" | "range" | "within";
763
+ };
764
+ fieldId: string;
765
+ fieldType: "field";
766
+ options?: {
767
+ value: string;
768
+ label: TranslationConfig;
769
+ }[] | undefined;
770
+ conditionals?: ({
771
+ type: "SHOW";
772
+ conditional: import(".").JSONSchema;
773
+ } | {
774
+ type: "ENABLE";
775
+ conditional: import(".").JSONSchema;
776
+ } | {
777
+ type: "DISPLAY_ON_REVIEW";
778
+ conditional: import(".").JSONSchema;
779
+ })[] | undefined;
780
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
781
+ validations?: {
782
+ message: TranslationConfig;
783
+ validator: import(".").JSONSchema;
784
+ }[] | undefined;
785
+ alternateFieldIds?: string[] | undefined;
786
+ excludeInSearchQuery?: boolean | undefined;
787
+ }, {
788
+ config: {
789
+ type: "exact" | "fuzzy" | "range" | "within";
790
+ };
791
+ fieldId: string;
792
+ fieldType: "field";
793
+ options?: {
794
+ value: string;
795
+ label: {
796
+ id: string;
797
+ description: string;
798
+ defaultMessage: string;
799
+ };
800
+ }[] | undefined;
801
+ conditionals?: ({
802
+ type: "SHOW";
803
+ conditional: import(".").JSONSchema;
804
+ } | {
805
+ type: "ENABLE";
806
+ conditional: import(".").JSONSchema;
807
+ } | {
808
+ type: "DISPLAY_ON_REVIEW";
809
+ conditional: import(".").JSONSchema;
810
+ })[] | undefined;
811
+ searchCriteriaLabelPrefix?: {
812
+ id: string;
813
+ description: string;
814
+ defaultMessage: string;
815
+ } | undefined;
816
+ validations?: {
817
+ message: {
818
+ id: string;
819
+ description: string;
820
+ defaultMessage: string;
821
+ };
822
+ validator: import(".").JSONSchema;
823
+ }[] | undefined;
824
+ alternateFieldIds?: string[] | undefined;
825
+ excludeInSearchQuery?: boolean | undefined;
826
+ }>, z.ZodObject<z.objectUtil.extendShape<{
827
+ config: z.ZodObject<{
828
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ type: "exact" | "fuzzy" | "range" | "within";
831
+ }, {
832
+ type: "exact" | "fuzzy" | "range" | "within";
833
+ }>;
834
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
+ value: z.ZodString;
836
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
837
+ id: string;
838
+ description: string;
839
+ defaultMessage: string;
840
+ }>;
841
+ }, "strip", z.ZodTypeAny, {
842
+ value: string;
843
+ label: TranslationConfig;
844
+ }, {
845
+ value: string;
846
+ label: {
847
+ id: string;
848
+ description: string;
849
+ defaultMessage: string;
850
+ };
851
+ }>, "many">>;
852
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
853
+ id: string;
854
+ description: string;
855
+ defaultMessage: string;
856
+ }>>;
857
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
858
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
859
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
860
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
861
+ id: string;
862
+ description: string;
863
+ defaultMessage: string;
864
+ }>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ message: TranslationConfig;
867
+ validator: import(".").JSONSchema;
868
+ }, {
869
+ message: {
870
+ id: string;
871
+ description: string;
872
+ defaultMessage: string;
873
+ };
874
+ validator: import(".").JSONSchema;
875
+ }>, "many">>>;
876
+ }, {
877
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
878
+ fieldType: z.ZodLiteral<"event">;
879
+ }>, "strip", z.ZodTypeAny, {
880
+ config: {
881
+ type: "exact" | "fuzzy" | "range" | "within";
882
+ };
883
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
884
+ fieldType: "event";
885
+ options?: {
886
+ value: string;
887
+ label: TranslationConfig;
888
+ }[] | undefined;
889
+ conditionals?: ({
890
+ type: "SHOW";
891
+ conditional: import(".").JSONSchema;
892
+ } | {
893
+ type: "ENABLE";
894
+ conditional: import(".").JSONSchema;
895
+ } | {
896
+ type: "DISPLAY_ON_REVIEW";
897
+ conditional: import(".").JSONSchema;
898
+ })[] | undefined;
899
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
900
+ validations?: {
901
+ message: TranslationConfig;
902
+ validator: import(".").JSONSchema;
903
+ }[] | undefined;
904
+ }, {
905
+ config: {
906
+ type: "exact" | "fuzzy" | "range" | "within";
907
+ };
908
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
909
+ fieldType: "event";
910
+ options?: {
911
+ value: string;
912
+ label: {
913
+ id: string;
914
+ description: string;
915
+ defaultMessage: string;
916
+ };
917
+ }[] | undefined;
918
+ conditionals?: ({
919
+ type: "SHOW";
920
+ conditional: import(".").JSONSchema;
921
+ } | {
922
+ type: "ENABLE";
923
+ conditional: import(".").JSONSchema;
924
+ } | {
925
+ type: "DISPLAY_ON_REVIEW";
926
+ conditional: import(".").JSONSchema;
927
+ })[] | undefined;
928
+ searchCriteriaLabelPrefix?: {
929
+ id: string;
930
+ description: string;
931
+ defaultMessage: string;
932
+ } | undefined;
933
+ validations?: {
934
+ message: {
935
+ id: string;
936
+ description: string;
937
+ defaultMessage: string;
938
+ };
939
+ validator: import(".").JSONSchema;
940
+ }[] | undefined;
941
+ }>]>;
942
+ export type SearchField = z.infer<typeof SearchField>;
3
943
  export declare const AdvancedSearchConfig: z.ZodObject<{
4
944
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
945
  id: string;
6
946
  description: string;
7
947
  defaultMessage: string;
8
948
  }>;
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"]>;
949
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
950
+ config: z.ZodObject<{
951
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
952
+ }, "strip", z.ZodTypeAny, {
953
+ type: "exact" | "fuzzy" | "range" | "within";
954
+ }, {
955
+ type: "exact" | "fuzzy" | "range" | "within";
956
+ }>;
957
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
+ value: z.ZodString;
959
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
960
+ id: string;
961
+ description: string;
962
+ defaultMessage: string;
963
+ }>;
13
964
  }, "strip", z.ZodTypeAny, {
14
- type: "FUZZY" | "EXACT" | "RANGE";
965
+ value: string;
966
+ label: TranslationConfig;
15
967
  }, {
16
- type: "FUZZY" | "EXACT" | "RANGE";
968
+ value: string;
969
+ label: {
970
+ id: string;
971
+ description: string;
972
+ defaultMessage: string;
973
+ };
974
+ }>, "many">>;
975
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
976
+ id: string;
977
+ description: string;
978
+ defaultMessage: string;
17
979
  }>>;
18
- }, "strip", z.ZodTypeAny, {
980
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
981
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
982
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
983
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
984
+ id: string;
985
+ description: string;
986
+ defaultMessage: string;
987
+ }>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ message: TranslationConfig;
990
+ validator: import(".").JSONSchema;
991
+ }, {
992
+ message: {
993
+ id: string;
994
+ description: string;
995
+ defaultMessage: string;
996
+ };
997
+ validator: import(".").JSONSchema;
998
+ }>, "many">>>;
999
+ }, {
1000
+ fieldId: z.ZodString;
1001
+ fieldType: z.ZodLiteral<"field">;
1002
+ alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1003
+ excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1004
+ }>, "strip", z.ZodTypeAny, {
1005
+ config: {
1006
+ type: "exact" | "fuzzy" | "range" | "within";
1007
+ };
19
1008
  fieldId: string;
20
- config?: {
21
- type: "FUZZY" | "EXACT" | "RANGE";
22
- } | undefined;
1009
+ fieldType: "field";
1010
+ options?: {
1011
+ value: string;
1012
+ label: TranslationConfig;
1013
+ }[] | undefined;
1014
+ conditionals?: ({
1015
+ type: "SHOW";
1016
+ conditional: import(".").JSONSchema;
1017
+ } | {
1018
+ type: "ENABLE";
1019
+ conditional: import(".").JSONSchema;
1020
+ } | {
1021
+ type: "DISPLAY_ON_REVIEW";
1022
+ conditional: import(".").JSONSchema;
1023
+ })[] | undefined;
1024
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1025
+ validations?: {
1026
+ message: TranslationConfig;
1027
+ validator: import(".").JSONSchema;
1028
+ }[] | undefined;
1029
+ alternateFieldIds?: string[] | undefined;
1030
+ excludeInSearchQuery?: boolean | undefined;
23
1031
  }, {
1032
+ config: {
1033
+ type: "exact" | "fuzzy" | "range" | "within";
1034
+ };
24
1035
  fieldId: string;
25
- config?: {
26
- type: "FUZZY" | "EXACT" | "RANGE";
1036
+ fieldType: "field";
1037
+ options?: {
1038
+ value: string;
1039
+ label: {
1040
+ id: string;
1041
+ description: string;
1042
+ defaultMessage: string;
1043
+ };
1044
+ }[] | undefined;
1045
+ conditionals?: ({
1046
+ type: "SHOW";
1047
+ conditional: import(".").JSONSchema;
1048
+ } | {
1049
+ type: "ENABLE";
1050
+ conditional: import(".").JSONSchema;
1051
+ } | {
1052
+ type: "DISPLAY_ON_REVIEW";
1053
+ conditional: import(".").JSONSchema;
1054
+ })[] | undefined;
1055
+ searchCriteriaLabelPrefix?: {
1056
+ id: string;
1057
+ description: string;
1058
+ defaultMessage: string;
27
1059
  } | undefined;
28
- }>, "many">>>;
1060
+ validations?: {
1061
+ message: {
1062
+ id: string;
1063
+ description: string;
1064
+ defaultMessage: string;
1065
+ };
1066
+ validator: import(".").JSONSchema;
1067
+ }[] | undefined;
1068
+ alternateFieldIds?: string[] | undefined;
1069
+ excludeInSearchQuery?: boolean | undefined;
1070
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1071
+ config: z.ZodObject<{
1072
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ type: "exact" | "fuzzy" | "range" | "within";
1075
+ }, {
1076
+ type: "exact" | "fuzzy" | "range" | "within";
1077
+ }>;
1078
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1079
+ value: z.ZodString;
1080
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1081
+ id: string;
1082
+ description: string;
1083
+ defaultMessage: string;
1084
+ }>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ value: string;
1087
+ label: TranslationConfig;
1088
+ }, {
1089
+ value: string;
1090
+ label: {
1091
+ id: string;
1092
+ description: string;
1093
+ defaultMessage: string;
1094
+ };
1095
+ }>, "many">>;
1096
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1097
+ id: string;
1098
+ description: string;
1099
+ defaultMessage: string;
1100
+ }>>;
1101
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1102
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1103
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1104
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1105
+ id: string;
1106
+ description: string;
1107
+ defaultMessage: string;
1108
+ }>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ message: TranslationConfig;
1111
+ validator: import(".").JSONSchema;
1112
+ }, {
1113
+ message: {
1114
+ id: string;
1115
+ description: string;
1116
+ defaultMessage: string;
1117
+ };
1118
+ validator: import(".").JSONSchema;
1119
+ }>, "many">>>;
1120
+ }, {
1121
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
1122
+ fieldType: z.ZodLiteral<"event">;
1123
+ }>, "strip", z.ZodTypeAny, {
1124
+ config: {
1125
+ type: "exact" | "fuzzy" | "range" | "within";
1126
+ };
1127
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1128
+ fieldType: "event";
1129
+ options?: {
1130
+ value: string;
1131
+ label: TranslationConfig;
1132
+ }[] | undefined;
1133
+ conditionals?: ({
1134
+ type: "SHOW";
1135
+ conditional: import(".").JSONSchema;
1136
+ } | {
1137
+ type: "ENABLE";
1138
+ conditional: import(".").JSONSchema;
1139
+ } | {
1140
+ type: "DISPLAY_ON_REVIEW";
1141
+ conditional: import(".").JSONSchema;
1142
+ })[] | undefined;
1143
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1144
+ validations?: {
1145
+ message: TranslationConfig;
1146
+ validator: import(".").JSONSchema;
1147
+ }[] | undefined;
1148
+ }, {
1149
+ config: {
1150
+ type: "exact" | "fuzzy" | "range" | "within";
1151
+ };
1152
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1153
+ fieldType: "event";
1154
+ options?: {
1155
+ value: string;
1156
+ label: {
1157
+ id: string;
1158
+ description: string;
1159
+ defaultMessage: string;
1160
+ };
1161
+ }[] | undefined;
1162
+ conditionals?: ({
1163
+ type: "SHOW";
1164
+ conditional: import(".").JSONSchema;
1165
+ } | {
1166
+ type: "ENABLE";
1167
+ conditional: import(".").JSONSchema;
1168
+ } | {
1169
+ type: "DISPLAY_ON_REVIEW";
1170
+ conditional: import(".").JSONSchema;
1171
+ })[] | undefined;
1172
+ searchCriteriaLabelPrefix?: {
1173
+ id: string;
1174
+ description: string;
1175
+ defaultMessage: string;
1176
+ } | undefined;
1177
+ validations?: {
1178
+ message: {
1179
+ id: string;
1180
+ description: string;
1181
+ defaultMessage: string;
1182
+ };
1183
+ validator: import(".").JSONSchema;
1184
+ }[] | undefined;
1185
+ }>]>, "many">;
29
1186
  }, "strip", z.ZodTypeAny, {
30
1187
  title: TranslationConfig;
31
- fields: {
1188
+ fields: ({
1189
+ config: {
1190
+ type: "exact" | "fuzzy" | "range" | "within";
1191
+ };
32
1192
  fieldId: string;
33
- config?: {
34
- type: "FUZZY" | "EXACT" | "RANGE";
35
- } | undefined;
36
- }[];
1193
+ fieldType: "field";
1194
+ options?: {
1195
+ value: string;
1196
+ label: TranslationConfig;
1197
+ }[] | undefined;
1198
+ conditionals?: ({
1199
+ type: "SHOW";
1200
+ conditional: import(".").JSONSchema;
1201
+ } | {
1202
+ type: "ENABLE";
1203
+ conditional: import(".").JSONSchema;
1204
+ } | {
1205
+ type: "DISPLAY_ON_REVIEW";
1206
+ conditional: import(".").JSONSchema;
1207
+ })[] | undefined;
1208
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1209
+ validations?: {
1210
+ message: TranslationConfig;
1211
+ validator: import(".").JSONSchema;
1212
+ }[] | undefined;
1213
+ alternateFieldIds?: string[] | undefined;
1214
+ excludeInSearchQuery?: boolean | undefined;
1215
+ } | {
1216
+ config: {
1217
+ type: "exact" | "fuzzy" | "range" | "within";
1218
+ };
1219
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1220
+ fieldType: "event";
1221
+ options?: {
1222
+ value: string;
1223
+ label: TranslationConfig;
1224
+ }[] | undefined;
1225
+ conditionals?: ({
1226
+ type: "SHOW";
1227
+ conditional: import(".").JSONSchema;
1228
+ } | {
1229
+ type: "ENABLE";
1230
+ conditional: import(".").JSONSchema;
1231
+ } | {
1232
+ type: "DISPLAY_ON_REVIEW";
1233
+ conditional: import(".").JSONSchema;
1234
+ })[] | undefined;
1235
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1236
+ validations?: {
1237
+ message: TranslationConfig;
1238
+ validator: import(".").JSONSchema;
1239
+ }[] | undefined;
1240
+ })[];
37
1241
  }, {
38
1242
  title: {
39
1243
  id: string;
40
1244
  description: string;
41
1245
  defaultMessage: string;
42
1246
  };
43
- fields?: {
1247
+ fields: ({
1248
+ config: {
1249
+ type: "exact" | "fuzzy" | "range" | "within";
1250
+ };
44
1251
  fieldId: string;
45
- config?: {
46
- type: "FUZZY" | "EXACT" | "RANGE";
1252
+ fieldType: "field";
1253
+ options?: {
1254
+ value: string;
1255
+ label: {
1256
+ id: string;
1257
+ description: string;
1258
+ defaultMessage: string;
1259
+ };
1260
+ }[] | undefined;
1261
+ conditionals?: ({
1262
+ type: "SHOW";
1263
+ conditional: import(".").JSONSchema;
1264
+ } | {
1265
+ type: "ENABLE";
1266
+ conditional: import(".").JSONSchema;
1267
+ } | {
1268
+ type: "DISPLAY_ON_REVIEW";
1269
+ conditional: import(".").JSONSchema;
1270
+ })[] | undefined;
1271
+ searchCriteriaLabelPrefix?: {
1272
+ id: string;
1273
+ description: string;
1274
+ defaultMessage: string;
47
1275
  } | undefined;
48
- }[] | undefined;
1276
+ validations?: {
1277
+ message: {
1278
+ id: string;
1279
+ description: string;
1280
+ defaultMessage: string;
1281
+ };
1282
+ validator: import(".").JSONSchema;
1283
+ }[] | undefined;
1284
+ alternateFieldIds?: string[] | undefined;
1285
+ excludeInSearchQuery?: boolean | undefined;
1286
+ } | {
1287
+ config: {
1288
+ type: "exact" | "fuzzy" | "range" | "within";
1289
+ };
1290
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1291
+ fieldType: "event";
1292
+ options?: {
1293
+ value: string;
1294
+ label: {
1295
+ id: string;
1296
+ description: string;
1297
+ defaultMessage: string;
1298
+ };
1299
+ }[] | undefined;
1300
+ conditionals?: ({
1301
+ type: "SHOW";
1302
+ conditional: import(".").JSONSchema;
1303
+ } | {
1304
+ type: "ENABLE";
1305
+ conditional: import(".").JSONSchema;
1306
+ } | {
1307
+ type: "DISPLAY_ON_REVIEW";
1308
+ conditional: import(".").JSONSchema;
1309
+ })[] | undefined;
1310
+ searchCriteriaLabelPrefix?: {
1311
+ id: string;
1312
+ description: string;
1313
+ defaultMessage: string;
1314
+ } | undefined;
1315
+ validations?: {
1316
+ message: {
1317
+ id: string;
1318
+ description: string;
1319
+ defaultMessage: string;
1320
+ };
1321
+ validator: import(".").JSONSchema;
1322
+ }[] | undefined;
1323
+ })[];
49
1324
  }>;
50
1325
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
1326
+ export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
1327
+ fields: FieldConfig[];
1328
+ };
51
1329
  //# sourceMappingURL=AdvancedSearchConfig.d.ts.map