@opencrvs/toolkit 1.8.0-rc.ffbb9d7 → 1.8.0-rc.ffe24c3

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