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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/commons/api/router.d.ts +9372 -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 +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +935 -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 +3730 -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 +28305 -11538
  15. package/dist/commons/events/EventDocument.d.ts +1479 -492
  16. package/dist/commons/events/EventIndex.d.ts +1348 -279
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +334 -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 +7272 -16
  29. package/dist/commons/events/defineConfig.d.ts +3206 -625
  30. package/dist/commons/events/event.d.ts +37 -8
  31. package/dist/commons/events/field.d.ts +46 -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 +10722 -321
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +65 -25
  40. package/dist/events/index.js +4280 -1934
  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,38 @@ 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">;
475
+ alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
476
+ excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
34
477
  }>, "strip", z.ZodTypeAny, {
35
478
  config: {
36
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
479
+ type: "exact" | "fuzzy" | "range";
37
480
  };
38
481
  fieldId: string;
39
482
  fieldType: "field";
@@ -41,9 +484,26 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
41
484
  value: string;
42
485
  label: TranslationConfig;
43
486
  }[] | undefined;
487
+ conditionals?: ({
488
+ type: "SHOW";
489
+ conditional: import(".").JSONSchema;
490
+ } | {
491
+ type: "ENABLE";
492
+ conditional: import(".").JSONSchema;
493
+ } | {
494
+ type: "DISPLAY_ON_REVIEW";
495
+ conditional: import(".").JSONSchema;
496
+ })[] | undefined;
497
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
498
+ validations?: {
499
+ message: TranslationConfig;
500
+ validator: import(".").JSONSchema;
501
+ }[] | undefined;
502
+ alternateFieldIds?: string[] | undefined;
503
+ excludeInSearchQuery?: boolean | undefined;
44
504
  }, {
45
505
  config: {
46
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
506
+ type: "exact" | "fuzzy" | "range";
47
507
  };
48
508
  fieldId: string;
49
509
  fieldType: "field";
@@ -55,16 +515,41 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
55
515
  defaultMessage: string;
56
516
  };
57
517
  }[] | undefined;
518
+ conditionals?: ({
519
+ type: "SHOW";
520
+ conditional: import(".").JSONSchema;
521
+ } | {
522
+ type: "ENABLE";
523
+ conditional: import(".").JSONSchema;
524
+ } | {
525
+ type: "DISPLAY_ON_REVIEW";
526
+ conditional: import(".").JSONSchema;
527
+ })[] | undefined;
528
+ searchCriteriaLabelPrefix?: {
529
+ id: string;
530
+ description: string;
531
+ defaultMessage: string;
532
+ } | undefined;
533
+ validations?: {
534
+ message: {
535
+ id: string;
536
+ description: string;
537
+ defaultMessage: string;
538
+ };
539
+ validator: import(".").JSONSchema;
540
+ }[] | undefined;
541
+ alternateFieldIds?: string[] | undefined;
542
+ excludeInSearchQuery?: boolean | undefined;
58
543
  }>;
59
- export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
544
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
60
545
  export type EventFieldId = z.infer<typeof EventFieldId>;
61
546
  export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
62
547
  config: z.ZodObject<{
63
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
548
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
64
549
  }, "strip", z.ZodTypeAny, {
65
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
550
+ type: "exact" | "fuzzy" | "range";
66
551
  }, {
67
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
552
+ type: "exact" | "fuzzy" | "range";
68
553
  }>;
69
554
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
555
  value: z.ZodString;
@@ -84,24 +569,63 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
84
569
  defaultMessage: string;
85
570
  };
86
571
  }>, "many">>;
572
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
573
+ id: string;
574
+ description: string;
575
+ defaultMessage: string;
576
+ }>>;
577
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
578
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
579
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
580
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
581
+ id: string;
582
+ description: string;
583
+ defaultMessage: string;
584
+ }>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ message: TranslationConfig;
587
+ validator: import(".").JSONSchema;
588
+ }, {
589
+ message: {
590
+ id: string;
591
+ description: string;
592
+ defaultMessage: string;
593
+ };
594
+ validator: import(".").JSONSchema;
595
+ }>, "many">>>;
87
596
  }, {
88
- fieldId: z.ZodEnum<["trackingId", "status"]>;
597
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
89
598
  fieldType: z.ZodLiteral<"event">;
90
599
  }>, "strip", z.ZodTypeAny, {
91
600
  config: {
92
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
601
+ type: "exact" | "fuzzy" | "range";
93
602
  };
94
- fieldId: "status" | "trackingId";
603
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
95
604
  fieldType: "event";
96
605
  options?: {
97
606
  value: string;
98
607
  label: TranslationConfig;
99
608
  }[] | undefined;
609
+ conditionals?: ({
610
+ type: "SHOW";
611
+ conditional: import(".").JSONSchema;
612
+ } | {
613
+ type: "ENABLE";
614
+ conditional: import(".").JSONSchema;
615
+ } | {
616
+ type: "DISPLAY_ON_REVIEW";
617
+ conditional: import(".").JSONSchema;
618
+ })[] | undefined;
619
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
620
+ validations?: {
621
+ message: TranslationConfig;
622
+ validator: import(".").JSONSchema;
623
+ }[] | undefined;
100
624
  }, {
101
625
  config: {
102
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
626
+ type: "exact" | "fuzzy" | "range";
103
627
  };
104
- fieldId: "status" | "trackingId";
628
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
105
629
  fieldType: "event";
106
630
  options?: {
107
631
  value: string;
@@ -111,14 +635,37 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
111
635
  defaultMessage: string;
112
636
  };
113
637
  }[] | undefined;
638
+ conditionals?: ({
639
+ type: "SHOW";
640
+ conditional: import(".").JSONSchema;
641
+ } | {
642
+ type: "ENABLE";
643
+ conditional: import(".").JSONSchema;
644
+ } | {
645
+ type: "DISPLAY_ON_REVIEW";
646
+ conditional: import(".").JSONSchema;
647
+ })[] | undefined;
648
+ searchCriteriaLabelPrefix?: {
649
+ id: string;
650
+ description: string;
651
+ defaultMessage: string;
652
+ } | undefined;
653
+ validations?: {
654
+ message: {
655
+ id: string;
656
+ description: string;
657
+ defaultMessage: string;
658
+ };
659
+ validator: import(".").JSONSchema;
660
+ }[] | undefined;
114
661
  }>;
115
662
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
116
663
  config: z.ZodObject<{
117
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
664
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
118
665
  }, "strip", z.ZodTypeAny, {
119
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
666
+ type: "exact" | "fuzzy" | "range";
120
667
  }, {
121
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
668
+ type: "exact" | "fuzzy" | "range";
122
669
  }>;
123
670
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
671
  value: z.ZodString;
@@ -138,12 +685,38 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
138
685
  defaultMessage: string;
139
686
  };
140
687
  }>, "many">>;
688
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
689
+ id: string;
690
+ description: string;
691
+ defaultMessage: string;
692
+ }>>;
693
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
694
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
695
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
696
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
697
+ id: string;
698
+ description: string;
699
+ defaultMessage: string;
700
+ }>;
701
+ }, "strip", z.ZodTypeAny, {
702
+ message: TranslationConfig;
703
+ validator: import(".").JSONSchema;
704
+ }, {
705
+ message: {
706
+ id: string;
707
+ description: string;
708
+ defaultMessage: string;
709
+ };
710
+ validator: import(".").JSONSchema;
711
+ }>, "many">>>;
141
712
  }, {
142
713
  fieldId: z.ZodString;
143
714
  fieldType: z.ZodLiteral<"field">;
715
+ alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
716
+ excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
144
717
  }>, "strip", z.ZodTypeAny, {
145
718
  config: {
146
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
719
+ type: "exact" | "fuzzy" | "range";
147
720
  };
148
721
  fieldId: string;
149
722
  fieldType: "field";
@@ -151,9 +724,26 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
151
724
  value: string;
152
725
  label: TranslationConfig;
153
726
  }[] | undefined;
727
+ conditionals?: ({
728
+ type: "SHOW";
729
+ conditional: import(".").JSONSchema;
730
+ } | {
731
+ type: "ENABLE";
732
+ conditional: import(".").JSONSchema;
733
+ } | {
734
+ type: "DISPLAY_ON_REVIEW";
735
+ conditional: import(".").JSONSchema;
736
+ })[] | undefined;
737
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
738
+ validations?: {
739
+ message: TranslationConfig;
740
+ validator: import(".").JSONSchema;
741
+ }[] | undefined;
742
+ alternateFieldIds?: string[] | undefined;
743
+ excludeInSearchQuery?: boolean | undefined;
154
744
  }, {
155
745
  config: {
156
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
746
+ type: "exact" | "fuzzy" | "range";
157
747
  };
158
748
  fieldId: string;
159
749
  fieldType: "field";
@@ -165,13 +755,38 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
165
755
  defaultMessage: string;
166
756
  };
167
757
  }[] | undefined;
758
+ conditionals?: ({
759
+ type: "SHOW";
760
+ conditional: import(".").JSONSchema;
761
+ } | {
762
+ type: "ENABLE";
763
+ conditional: import(".").JSONSchema;
764
+ } | {
765
+ type: "DISPLAY_ON_REVIEW";
766
+ conditional: import(".").JSONSchema;
767
+ })[] | undefined;
768
+ searchCriteriaLabelPrefix?: {
769
+ id: string;
770
+ description: string;
771
+ defaultMessage: string;
772
+ } | undefined;
773
+ validations?: {
774
+ message: {
775
+ id: string;
776
+ description: string;
777
+ defaultMessage: string;
778
+ };
779
+ validator: import(".").JSONSchema;
780
+ }[] | undefined;
781
+ alternateFieldIds?: string[] | undefined;
782
+ excludeInSearchQuery?: boolean | undefined;
168
783
  }>, z.ZodObject<z.objectUtil.extendShape<{
169
784
  config: z.ZodObject<{
170
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
785
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
171
786
  }, "strip", z.ZodTypeAny, {
172
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
787
+ type: "exact" | "fuzzy" | "range";
173
788
  }, {
174
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
789
+ type: "exact" | "fuzzy" | "range";
175
790
  }>;
176
791
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
792
  value: z.ZodString;
@@ -191,24 +806,63 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
191
806
  defaultMessage: string;
192
807
  };
193
808
  }>, "many">>;
809
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
810
+ id: string;
811
+ description: string;
812
+ defaultMessage: string;
813
+ }>>;
814
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
815
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
816
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
817
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
818
+ id: string;
819
+ description: string;
820
+ defaultMessage: string;
821
+ }>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ message: TranslationConfig;
824
+ validator: import(".").JSONSchema;
825
+ }, {
826
+ message: {
827
+ id: string;
828
+ description: string;
829
+ defaultMessage: string;
830
+ };
831
+ validator: import(".").JSONSchema;
832
+ }>, "many">>>;
194
833
  }, {
195
- fieldId: z.ZodEnum<["trackingId", "status"]>;
834
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
196
835
  fieldType: z.ZodLiteral<"event">;
197
836
  }>, "strip", z.ZodTypeAny, {
198
837
  config: {
199
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
838
+ type: "exact" | "fuzzy" | "range";
200
839
  };
201
- fieldId: "status" | "trackingId";
840
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
202
841
  fieldType: "event";
203
842
  options?: {
204
843
  value: string;
205
844
  label: TranslationConfig;
206
845
  }[] | undefined;
846
+ conditionals?: ({
847
+ type: "SHOW";
848
+ conditional: import(".").JSONSchema;
849
+ } | {
850
+ type: "ENABLE";
851
+ conditional: import(".").JSONSchema;
852
+ } | {
853
+ type: "DISPLAY_ON_REVIEW";
854
+ conditional: import(".").JSONSchema;
855
+ })[] | undefined;
856
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
857
+ validations?: {
858
+ message: TranslationConfig;
859
+ validator: import(".").JSONSchema;
860
+ }[] | undefined;
207
861
  }, {
208
862
  config: {
209
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
863
+ type: "exact" | "fuzzy" | "range";
210
864
  };
211
- fieldId: "status" | "trackingId";
865
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
212
866
  fieldType: "event";
213
867
  options?: {
214
868
  value: string;
@@ -218,6 +872,29 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
218
872
  defaultMessage: string;
219
873
  };
220
874
  }[] | undefined;
875
+ conditionals?: ({
876
+ type: "SHOW";
877
+ conditional: import(".").JSONSchema;
878
+ } | {
879
+ type: "ENABLE";
880
+ conditional: import(".").JSONSchema;
881
+ } | {
882
+ type: "DISPLAY_ON_REVIEW";
883
+ conditional: import(".").JSONSchema;
884
+ })[] | undefined;
885
+ searchCriteriaLabelPrefix?: {
886
+ id: string;
887
+ description: string;
888
+ defaultMessage: string;
889
+ } | undefined;
890
+ validations?: {
891
+ message: {
892
+ id: string;
893
+ description: string;
894
+ defaultMessage: string;
895
+ };
896
+ validator: import(".").JSONSchema;
897
+ }[] | undefined;
221
898
  }>]>;
222
899
  export type SearchField = z.infer<typeof SearchField>;
223
900
  export declare const AdvancedSearchConfig: z.ZodObject<{
@@ -228,11 +905,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
228
905
  }>;
229
906
  fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
230
907
  config: z.ZodObject<{
231
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
908
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
232
909
  }, "strip", z.ZodTypeAny, {
233
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
910
+ type: "exact" | "fuzzy" | "range";
234
911
  }, {
235
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
912
+ type: "exact" | "fuzzy" | "range";
236
913
  }>;
237
914
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
915
  value: z.ZodString;
@@ -252,12 +929,38 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
252
929
  defaultMessage: string;
253
930
  };
254
931
  }>, "many">>;
932
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
933
+ id: string;
934
+ description: string;
935
+ defaultMessage: string;
936
+ }>>;
937
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
938
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
939
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
940
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
941
+ id: string;
942
+ description: string;
943
+ defaultMessage: string;
944
+ }>;
945
+ }, "strip", z.ZodTypeAny, {
946
+ message: TranslationConfig;
947
+ validator: import(".").JSONSchema;
948
+ }, {
949
+ message: {
950
+ id: string;
951
+ description: string;
952
+ defaultMessage: string;
953
+ };
954
+ validator: import(".").JSONSchema;
955
+ }>, "many">>>;
255
956
  }, {
256
957
  fieldId: z.ZodString;
257
958
  fieldType: z.ZodLiteral<"field">;
959
+ alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
960
+ excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
258
961
  }>, "strip", z.ZodTypeAny, {
259
962
  config: {
260
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
963
+ type: "exact" | "fuzzy" | "range";
261
964
  };
262
965
  fieldId: string;
263
966
  fieldType: "field";
@@ -265,9 +968,26 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
265
968
  value: string;
266
969
  label: TranslationConfig;
267
970
  }[] | undefined;
971
+ conditionals?: ({
972
+ type: "SHOW";
973
+ conditional: import(".").JSONSchema;
974
+ } | {
975
+ type: "ENABLE";
976
+ conditional: import(".").JSONSchema;
977
+ } | {
978
+ type: "DISPLAY_ON_REVIEW";
979
+ conditional: import(".").JSONSchema;
980
+ })[] | undefined;
981
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
982
+ validations?: {
983
+ message: TranslationConfig;
984
+ validator: import(".").JSONSchema;
985
+ }[] | undefined;
986
+ alternateFieldIds?: string[] | undefined;
987
+ excludeInSearchQuery?: boolean | undefined;
268
988
  }, {
269
989
  config: {
270
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
990
+ type: "exact" | "fuzzy" | "range";
271
991
  };
272
992
  fieldId: string;
273
993
  fieldType: "field";
@@ -279,13 +999,38 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
279
999
  defaultMessage: string;
280
1000
  };
281
1001
  }[] | undefined;
1002
+ conditionals?: ({
1003
+ type: "SHOW";
1004
+ conditional: import(".").JSONSchema;
1005
+ } | {
1006
+ type: "ENABLE";
1007
+ conditional: import(".").JSONSchema;
1008
+ } | {
1009
+ type: "DISPLAY_ON_REVIEW";
1010
+ conditional: import(".").JSONSchema;
1011
+ })[] | undefined;
1012
+ searchCriteriaLabelPrefix?: {
1013
+ id: string;
1014
+ description: string;
1015
+ defaultMessage: string;
1016
+ } | undefined;
1017
+ validations?: {
1018
+ message: {
1019
+ id: string;
1020
+ description: string;
1021
+ defaultMessage: string;
1022
+ };
1023
+ validator: import(".").JSONSchema;
1024
+ }[] | undefined;
1025
+ alternateFieldIds?: string[] | undefined;
1026
+ excludeInSearchQuery?: boolean | undefined;
282
1027
  }>, z.ZodObject<z.objectUtil.extendShape<{
283
1028
  config: z.ZodObject<{
284
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
1029
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
285
1030
  }, "strip", z.ZodTypeAny, {
286
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1031
+ type: "exact" | "fuzzy" | "range";
287
1032
  }, {
288
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1033
+ type: "exact" | "fuzzy" | "range";
289
1034
  }>;
290
1035
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
1036
  value: z.ZodString;
@@ -305,24 +1050,63 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
305
1050
  defaultMessage: string;
306
1051
  };
307
1052
  }>, "many">>;
1053
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1054
+ id: string;
1055
+ description: string;
1056
+ defaultMessage: string;
1057
+ }>>;
1058
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1059
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1060
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1061
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1062
+ id: string;
1063
+ description: string;
1064
+ defaultMessage: string;
1065
+ }>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ message: TranslationConfig;
1068
+ validator: import(".").JSONSchema;
1069
+ }, {
1070
+ message: {
1071
+ id: string;
1072
+ description: string;
1073
+ defaultMessage: string;
1074
+ };
1075
+ validator: import(".").JSONSchema;
1076
+ }>, "many">>>;
308
1077
  }, {
309
- fieldId: z.ZodEnum<["trackingId", "status"]>;
1078
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
310
1079
  fieldType: z.ZodLiteral<"event">;
311
1080
  }>, "strip", z.ZodTypeAny, {
312
1081
  config: {
313
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1082
+ type: "exact" | "fuzzy" | "range";
314
1083
  };
315
- fieldId: "status" | "trackingId";
1084
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
316
1085
  fieldType: "event";
317
1086
  options?: {
318
1087
  value: string;
319
1088
  label: TranslationConfig;
320
1089
  }[] | undefined;
1090
+ conditionals?: ({
1091
+ type: "SHOW";
1092
+ conditional: import(".").JSONSchema;
1093
+ } | {
1094
+ type: "ENABLE";
1095
+ conditional: import(".").JSONSchema;
1096
+ } | {
1097
+ type: "DISPLAY_ON_REVIEW";
1098
+ conditional: import(".").JSONSchema;
1099
+ })[] | undefined;
1100
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1101
+ validations?: {
1102
+ message: TranslationConfig;
1103
+ validator: import(".").JSONSchema;
1104
+ }[] | undefined;
321
1105
  }, {
322
1106
  config: {
323
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1107
+ type: "exact" | "fuzzy" | "range";
324
1108
  };
325
- fieldId: "status" | "trackingId";
1109
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
326
1110
  fieldType: "event";
327
1111
  options?: {
328
1112
  value: string;
@@ -332,12 +1116,35 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
332
1116
  defaultMessage: string;
333
1117
  };
334
1118
  }[] | undefined;
1119
+ conditionals?: ({
1120
+ type: "SHOW";
1121
+ conditional: import(".").JSONSchema;
1122
+ } | {
1123
+ type: "ENABLE";
1124
+ conditional: import(".").JSONSchema;
1125
+ } | {
1126
+ type: "DISPLAY_ON_REVIEW";
1127
+ conditional: import(".").JSONSchema;
1128
+ })[] | undefined;
1129
+ searchCriteriaLabelPrefix?: {
1130
+ id: string;
1131
+ description: string;
1132
+ defaultMessage: string;
1133
+ } | undefined;
1134
+ validations?: {
1135
+ message: {
1136
+ id: string;
1137
+ description: string;
1138
+ defaultMessage: string;
1139
+ };
1140
+ validator: import(".").JSONSchema;
1141
+ }[] | undefined;
335
1142
  }>]>, "many">;
336
1143
  }, "strip", z.ZodTypeAny, {
337
1144
  title: TranslationConfig;
338
1145
  fields: ({
339
1146
  config: {
340
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1147
+ type: "exact" | "fuzzy" | "range";
341
1148
  };
342
1149
  fieldId: string;
343
1150
  fieldType: "field";
@@ -345,16 +1152,48 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
345
1152
  value: string;
346
1153
  label: TranslationConfig;
347
1154
  }[] | undefined;
1155
+ conditionals?: ({
1156
+ type: "SHOW";
1157
+ conditional: import(".").JSONSchema;
1158
+ } | {
1159
+ type: "ENABLE";
1160
+ conditional: import(".").JSONSchema;
1161
+ } | {
1162
+ type: "DISPLAY_ON_REVIEW";
1163
+ conditional: import(".").JSONSchema;
1164
+ })[] | undefined;
1165
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1166
+ validations?: {
1167
+ message: TranslationConfig;
1168
+ validator: import(".").JSONSchema;
1169
+ }[] | undefined;
1170
+ alternateFieldIds?: string[] | undefined;
1171
+ excludeInSearchQuery?: boolean | undefined;
348
1172
  } | {
349
1173
  config: {
350
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1174
+ type: "exact" | "fuzzy" | "range";
351
1175
  };
352
- fieldId: "status" | "trackingId";
1176
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
353
1177
  fieldType: "event";
354
1178
  options?: {
355
1179
  value: string;
356
1180
  label: TranslationConfig;
357
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;
358
1197
  })[];
359
1198
  }, {
360
1199
  title: {
@@ -364,7 +1203,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
364
1203
  };
365
1204
  fields: ({
366
1205
  config: {
367
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1206
+ type: "exact" | "fuzzy" | "range";
368
1207
  };
369
1208
  fieldId: string;
370
1209
  fieldType: "field";
@@ -376,11 +1215,36 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
376
1215
  defaultMessage: string;
377
1216
  };
378
1217
  }[] | undefined;
1218
+ conditionals?: ({
1219
+ type: "SHOW";
1220
+ conditional: import(".").JSONSchema;
1221
+ } | {
1222
+ type: "ENABLE";
1223
+ conditional: import(".").JSONSchema;
1224
+ } | {
1225
+ type: "DISPLAY_ON_REVIEW";
1226
+ conditional: import(".").JSONSchema;
1227
+ })[] | undefined;
1228
+ searchCriteriaLabelPrefix?: {
1229
+ id: string;
1230
+ description: string;
1231
+ defaultMessage: string;
1232
+ } | undefined;
1233
+ validations?: {
1234
+ message: {
1235
+ id: string;
1236
+ description: string;
1237
+ defaultMessage: string;
1238
+ };
1239
+ validator: import(".").JSONSchema;
1240
+ }[] | undefined;
1241
+ alternateFieldIds?: string[] | undefined;
1242
+ excludeInSearchQuery?: boolean | undefined;
379
1243
  } | {
380
1244
  config: {
381
- type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
1245
+ type: "exact" | "fuzzy" | "range";
382
1246
  };
383
- fieldId: "status" | "trackingId";
1247
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
384
1248
  fieldType: "event";
385
1249
  options?: {
386
1250
  value: string;
@@ -390,6 +1254,29 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
390
1254
  defaultMessage: string;
391
1255
  };
392
1256
  }[] | undefined;
1257
+ conditionals?: ({
1258
+ type: "SHOW";
1259
+ conditional: import(".").JSONSchema;
1260
+ } | {
1261
+ type: "ENABLE";
1262
+ conditional: import(".").JSONSchema;
1263
+ } | {
1264
+ type: "DISPLAY_ON_REVIEW";
1265
+ conditional: import(".").JSONSchema;
1266
+ })[] | undefined;
1267
+ searchCriteriaLabelPrefix?: {
1268
+ id: string;
1269
+ description: string;
1270
+ defaultMessage: string;
1271
+ } | undefined;
1272
+ validations?: {
1273
+ message: {
1274
+ id: string;
1275
+ description: string;
1276
+ defaultMessage: string;
1277
+ };
1278
+ validator: import(".").JSONSchema;
1279
+ }[] | undefined;
393
1280
  })[];
394
1281
  }>;
395
1282
  export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;