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

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