@opencrvs/toolkit 1.8.0-rc.feef45c → 1.8.0-rc.fef0fdd

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