@opencrvs/toolkit 1.8.0-rc.f876361 → 1.8.0-rc.f89fbcb

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