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

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