@opencrvs/toolkit 1.8.0-rc.f97f8f2 → 1.8.0-rc.f988670

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