@opencrvs/toolkit 1.8.0-rc.ff0a1b5 → 1.8.0-rc.ff1f8e0

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +8086 -3911
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +22281 -7289
  4. package/dist/commons/events/ActionDocument.d.ts +533 -346
  5. package/dist/commons/events/ActionInput.d.ts +197 -125
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
  7. package/dist/commons/events/Constants.d.ts +2 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  9. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  10. package/dist/commons/events/Draft.d.ts +29 -24
  11. package/dist/commons/events/EventConfig.d.ts +17241 -9571
  12. package/dist/commons/events/EventDocument.d.ts +386 -267
  13. package/dist/commons/events/EventIndex.d.ts +343 -466
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +72 -48
  16. package/dist/commons/events/FieldConfig.d.ts +991 -428
  17. package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
  18. package/dist/commons/events/FieldValue.d.ts +2 -0
  19. package/dist/commons/events/FormConfig.d.ts +7190 -3722
  20. package/dist/commons/events/PageConfig.d.ts +1512 -660
  21. package/dist/commons/events/User.d.ts +31 -7
  22. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +3506 -239
  24. package/dist/commons/events/defineConfig.d.ts +1632 -574
  25. package/dist/commons/events/event.d.ts +37 -10
  26. package/dist/commons/events/field.d.ts +25 -20
  27. package/dist/commons/events/index.d.ts +4 -0
  28. package/dist/commons/events/scopes.d.ts +20 -1
  29. package/dist/commons/events/serializer.d.ts +2 -0
  30. package/dist/commons/events/test.utils.d.ts +28 -7
  31. package/dist/commons/events/transactions.d.ts +1 -1
  32. package/dist/commons/events/utils.d.ts +443 -291
  33. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  34. package/dist/conditionals/index.js +28 -8
  35. package/dist/events/index.js +2153 -865
  36. package/dist/scopes/index.d.ts +94 -6
  37. package/dist/scopes/index.js +42 -21
  38. package/package.json +1 -1
@@ -1,5 +1,352 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
+ export declare const SearchQueryParams: z.ZodObject<{
4
+ eventType: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.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.objectOutputType<{
119
+ eventType: z.ZodOptional<z.ZodString>;
120
+ }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
121
+ filename: z.ZodString;
122
+ originalFilename: z.ZodString;
123
+ type: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: string;
126
+ filename: string;
127
+ originalFilename: string;
128
+ }, {
129
+ type: string;
130
+ filename: string;
131
+ originalFilename: string;
132
+ }>, z.ZodArray<z.ZodObject<{
133
+ filename: z.ZodString;
134
+ originalFilename: z.ZodString;
135
+ type: z.ZodString;
136
+ option: z.ZodString;
137
+ }, "strip", z.ZodTypeAny, {
138
+ type: string;
139
+ option: string;
140
+ filename: string;
141
+ originalFilename: string;
142
+ }, {
143
+ type: string;
144
+ option: string;
145
+ filename: string;
146
+ originalFilename: string;
147
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
148
+ country: z.ZodString;
149
+ addressType: z.ZodLiteral<"DOMESTIC">;
150
+ province: z.ZodString;
151
+ district: z.ZodString;
152
+ }, {
153
+ urbanOrRural: z.ZodLiteral<"URBAN">;
154
+ town: z.ZodOptional<z.ZodString>;
155
+ residentialArea: z.ZodOptional<z.ZodString>;
156
+ street: z.ZodOptional<z.ZodString>;
157
+ number: z.ZodOptional<z.ZodString>;
158
+ zipCode: z.ZodOptional<z.ZodString>;
159
+ }>, "strip", z.ZodTypeAny, {
160
+ country: string;
161
+ district: string;
162
+ addressType: "DOMESTIC";
163
+ province: string;
164
+ urbanOrRural: "URBAN";
165
+ number?: string | undefined;
166
+ town?: string | undefined;
167
+ residentialArea?: string | undefined;
168
+ street?: string | undefined;
169
+ zipCode?: string | undefined;
170
+ }, {
171
+ country: string;
172
+ district: string;
173
+ addressType: "DOMESTIC";
174
+ province: string;
175
+ urbanOrRural: "URBAN";
176
+ number?: string | undefined;
177
+ town?: string | undefined;
178
+ residentialArea?: string | undefined;
179
+ street?: string | undefined;
180
+ zipCode?: string | undefined;
181
+ }>, z.ZodObject<z.objectUtil.extendShape<{
182
+ country: z.ZodString;
183
+ addressType: z.ZodLiteral<"DOMESTIC">;
184
+ province: z.ZodString;
185
+ district: z.ZodString;
186
+ }, {
187
+ urbanOrRural: z.ZodLiteral<"RURAL">;
188
+ village: z.ZodOptional<z.ZodString>;
189
+ }>, "strip", z.ZodTypeAny, {
190
+ country: string;
191
+ district: string;
192
+ addressType: "DOMESTIC";
193
+ province: string;
194
+ urbanOrRural: "RURAL";
195
+ village?: string | undefined;
196
+ }, {
197
+ country: string;
198
+ district: string;
199
+ addressType: "DOMESTIC";
200
+ province: string;
201
+ urbanOrRural: "RURAL";
202
+ village?: string | undefined;
203
+ }>, z.ZodUndefined, z.ZodObject<{
204
+ country: z.ZodString;
205
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
206
+ state: z.ZodString;
207
+ district2: z.ZodString;
208
+ cityOrTown: z.ZodOptional<z.ZodString>;
209
+ addressLine1: z.ZodOptional<z.ZodString>;
210
+ addressLine2: z.ZodOptional<z.ZodString>;
211
+ addressLine3: z.ZodOptional<z.ZodString>;
212
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ country: string;
215
+ state: string;
216
+ addressType: "INTERNATIONAL";
217
+ district2: string;
218
+ cityOrTown?: string | undefined;
219
+ addressLine1?: string | undefined;
220
+ addressLine2?: string | undefined;
221
+ addressLine3?: string | undefined;
222
+ postcodeOrZip?: string | undefined;
223
+ }, {
224
+ country: string;
225
+ state: string;
226
+ addressType: "INTERNATIONAL";
227
+ district2: string;
228
+ cityOrTown?: string | undefined;
229
+ addressLine1?: string | undefined;
230
+ addressLine2?: string | undefined;
231
+ addressLine3?: string | undefined;
232
+ postcodeOrZip?: string | undefined;
233
+ }>]>, "strip">, z.objectInputType<{
234
+ eventType: z.ZodOptional<z.ZodString>;
235
+ }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
236
+ filename: z.ZodString;
237
+ originalFilename: z.ZodString;
238
+ type: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ type: string;
241
+ filename: string;
242
+ originalFilename: string;
243
+ }, {
244
+ type: string;
245
+ filename: string;
246
+ originalFilename: string;
247
+ }>, z.ZodArray<z.ZodObject<{
248
+ filename: z.ZodString;
249
+ originalFilename: z.ZodString;
250
+ type: z.ZodString;
251
+ option: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: string;
254
+ option: string;
255
+ filename: string;
256
+ originalFilename: string;
257
+ }, {
258
+ type: string;
259
+ option: string;
260
+ filename: string;
261
+ originalFilename: string;
262
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
263
+ country: z.ZodString;
264
+ addressType: z.ZodLiteral<"DOMESTIC">;
265
+ province: z.ZodString;
266
+ district: z.ZodString;
267
+ }, {
268
+ urbanOrRural: z.ZodLiteral<"URBAN">;
269
+ town: z.ZodOptional<z.ZodString>;
270
+ residentialArea: z.ZodOptional<z.ZodString>;
271
+ street: z.ZodOptional<z.ZodString>;
272
+ number: z.ZodOptional<z.ZodString>;
273
+ zipCode: z.ZodOptional<z.ZodString>;
274
+ }>, "strip", z.ZodTypeAny, {
275
+ country: string;
276
+ district: string;
277
+ addressType: "DOMESTIC";
278
+ province: string;
279
+ urbanOrRural: "URBAN";
280
+ number?: string | undefined;
281
+ town?: string | undefined;
282
+ residentialArea?: string | undefined;
283
+ street?: string | undefined;
284
+ zipCode?: string | undefined;
285
+ }, {
286
+ country: string;
287
+ district: string;
288
+ addressType: "DOMESTIC";
289
+ province: string;
290
+ urbanOrRural: "URBAN";
291
+ number?: string | undefined;
292
+ town?: string | undefined;
293
+ residentialArea?: string | undefined;
294
+ street?: string | undefined;
295
+ zipCode?: string | undefined;
296
+ }>, z.ZodObject<z.objectUtil.extendShape<{
297
+ country: z.ZodString;
298
+ addressType: z.ZodLiteral<"DOMESTIC">;
299
+ province: z.ZodString;
300
+ district: z.ZodString;
301
+ }, {
302
+ urbanOrRural: z.ZodLiteral<"RURAL">;
303
+ village: z.ZodOptional<z.ZodString>;
304
+ }>, "strip", z.ZodTypeAny, {
305
+ country: string;
306
+ district: string;
307
+ addressType: "DOMESTIC";
308
+ province: string;
309
+ urbanOrRural: "RURAL";
310
+ village?: string | undefined;
311
+ }, {
312
+ country: string;
313
+ district: string;
314
+ addressType: "DOMESTIC";
315
+ province: string;
316
+ urbanOrRural: "RURAL";
317
+ village?: string | undefined;
318
+ }>, z.ZodUndefined, z.ZodObject<{
319
+ country: z.ZodString;
320
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
321
+ state: z.ZodString;
322
+ district2: z.ZodString;
323
+ cityOrTown: z.ZodOptional<z.ZodString>;
324
+ addressLine1: z.ZodOptional<z.ZodString>;
325
+ addressLine2: z.ZodOptional<z.ZodString>;
326
+ addressLine3: z.ZodOptional<z.ZodString>;
327
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ country: string;
330
+ state: string;
331
+ addressType: "INTERNATIONAL";
332
+ district2: string;
333
+ cityOrTown?: string | undefined;
334
+ addressLine1?: string | undefined;
335
+ addressLine2?: string | undefined;
336
+ addressLine3?: string | undefined;
337
+ postcodeOrZip?: string | undefined;
338
+ }, {
339
+ country: string;
340
+ state: string;
341
+ addressType: "INTERNATIONAL";
342
+ district2: string;
343
+ cityOrTown?: string | undefined;
344
+ addressLine1?: string | undefined;
345
+ addressLine2?: string | undefined;
346
+ addressLine3?: string | undefined;
347
+ postcodeOrZip?: string | undefined;
348
+ }>]>, "strip">>;
349
+ export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
3
350
  export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
4
351
  config: z.ZodObject<{
5
352
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -26,6 +373,12 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
26
373
  defaultMessage: string;
27
374
  };
28
375
  }>, "many">>;
376
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
377
+ id: string;
378
+ description: string;
379
+ defaultMessage: string;
380
+ }>>;
381
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
29
382
  }, {
30
383
  fieldId: z.ZodString;
31
384
  fieldType: z.ZodLiteral<"field">;
@@ -39,6 +392,17 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
39
392
  value: string;
40
393
  label: TranslationConfig;
41
394
  }[] | undefined;
395
+ conditionals?: ({
396
+ type: "SHOW";
397
+ conditional: import(".").JSONSchema;
398
+ } | {
399
+ type: "ENABLE";
400
+ conditional: import(".").JSONSchema;
401
+ } | {
402
+ type: "DISPLAY_ON_REVIEW";
403
+ conditional: import(".").JSONSchema;
404
+ })[] | undefined;
405
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
42
406
  }, {
43
407
  config: {
44
408
  type: "exact" | "fuzzy" | "range";
@@ -53,8 +417,23 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
53
417
  defaultMessage: string;
54
418
  };
55
419
  }[] | undefined;
420
+ conditionals?: ({
421
+ type: "SHOW";
422
+ conditional: import(".").JSONSchema;
423
+ } | {
424
+ type: "ENABLE";
425
+ conditional: import(".").JSONSchema;
426
+ } | {
427
+ type: "DISPLAY_ON_REVIEW";
428
+ conditional: import(".").JSONSchema;
429
+ })[] | undefined;
430
+ searchCriteriaLabelPrefix?: {
431
+ id: string;
432
+ description: string;
433
+ defaultMessage: string;
434
+ } | undefined;
56
435
  }>;
57
- export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
436
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
58
437
  export type EventFieldId = z.infer<typeof EventFieldId>;
59
438
  export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
60
439
  config: z.ZodObject<{
@@ -82,24 +461,41 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
82
461
  defaultMessage: string;
83
462
  };
84
463
  }>, "many">>;
464
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
465
+ id: string;
466
+ description: string;
467
+ defaultMessage: string;
468
+ }>>;
469
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
85
470
  }, {
86
- fieldId: z.ZodEnum<["trackingId", "status"]>;
471
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
87
472
  fieldType: z.ZodLiteral<"event">;
88
473
  }>, "strip", z.ZodTypeAny, {
89
474
  config: {
90
475
  type: "exact" | "fuzzy" | "range";
91
476
  };
92
- fieldId: "status" | "trackingId";
477
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
93
478
  fieldType: "event";
94
479
  options?: {
95
480
  value: string;
96
481
  label: TranslationConfig;
97
482
  }[] | undefined;
483
+ conditionals?: ({
484
+ type: "SHOW";
485
+ conditional: import(".").JSONSchema;
486
+ } | {
487
+ type: "ENABLE";
488
+ conditional: import(".").JSONSchema;
489
+ } | {
490
+ type: "DISPLAY_ON_REVIEW";
491
+ conditional: import(".").JSONSchema;
492
+ })[] | undefined;
493
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
98
494
  }, {
99
495
  config: {
100
496
  type: "exact" | "fuzzy" | "range";
101
497
  };
102
- fieldId: "status" | "trackingId";
498
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
103
499
  fieldType: "event";
104
500
  options?: {
105
501
  value: string;
@@ -109,6 +505,21 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
109
505
  defaultMessage: string;
110
506
  };
111
507
  }[] | undefined;
508
+ conditionals?: ({
509
+ type: "SHOW";
510
+ conditional: import(".").JSONSchema;
511
+ } | {
512
+ type: "ENABLE";
513
+ conditional: import(".").JSONSchema;
514
+ } | {
515
+ type: "DISPLAY_ON_REVIEW";
516
+ conditional: import(".").JSONSchema;
517
+ })[] | undefined;
518
+ searchCriteriaLabelPrefix?: {
519
+ id: string;
520
+ description: string;
521
+ defaultMessage: string;
522
+ } | undefined;
112
523
  }>;
113
524
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
114
525
  config: z.ZodObject<{
@@ -136,6 +547,12 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
136
547
  defaultMessage: string;
137
548
  };
138
549
  }>, "many">>;
550
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
551
+ id: string;
552
+ description: string;
553
+ defaultMessage: string;
554
+ }>>;
555
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
139
556
  }, {
140
557
  fieldId: z.ZodString;
141
558
  fieldType: z.ZodLiteral<"field">;
@@ -149,6 +566,17 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
149
566
  value: string;
150
567
  label: TranslationConfig;
151
568
  }[] | undefined;
569
+ conditionals?: ({
570
+ type: "SHOW";
571
+ conditional: import(".").JSONSchema;
572
+ } | {
573
+ type: "ENABLE";
574
+ conditional: import(".").JSONSchema;
575
+ } | {
576
+ type: "DISPLAY_ON_REVIEW";
577
+ conditional: import(".").JSONSchema;
578
+ })[] | undefined;
579
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
152
580
  }, {
153
581
  config: {
154
582
  type: "exact" | "fuzzy" | "range";
@@ -163,6 +591,21 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
163
591
  defaultMessage: string;
164
592
  };
165
593
  }[] | undefined;
594
+ conditionals?: ({
595
+ type: "SHOW";
596
+ conditional: import(".").JSONSchema;
597
+ } | {
598
+ type: "ENABLE";
599
+ conditional: import(".").JSONSchema;
600
+ } | {
601
+ type: "DISPLAY_ON_REVIEW";
602
+ conditional: import(".").JSONSchema;
603
+ })[] | undefined;
604
+ searchCriteriaLabelPrefix?: {
605
+ id: string;
606
+ description: string;
607
+ defaultMessage: string;
608
+ } | undefined;
166
609
  }>, z.ZodObject<z.objectUtil.extendShape<{
167
610
  config: z.ZodObject<{
168
611
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -189,24 +632,41 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
189
632
  defaultMessage: string;
190
633
  };
191
634
  }>, "many">>;
635
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
636
+ id: string;
637
+ description: string;
638
+ defaultMessage: string;
639
+ }>>;
640
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
192
641
  }, {
193
- fieldId: z.ZodEnum<["trackingId", "status"]>;
642
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
194
643
  fieldType: z.ZodLiteral<"event">;
195
644
  }>, "strip", z.ZodTypeAny, {
196
645
  config: {
197
646
  type: "exact" | "fuzzy" | "range";
198
647
  };
199
- fieldId: "status" | "trackingId";
648
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
200
649
  fieldType: "event";
201
650
  options?: {
202
651
  value: string;
203
652
  label: TranslationConfig;
204
653
  }[] | undefined;
654
+ conditionals?: ({
655
+ type: "SHOW";
656
+ conditional: import(".").JSONSchema;
657
+ } | {
658
+ type: "ENABLE";
659
+ conditional: import(".").JSONSchema;
660
+ } | {
661
+ type: "DISPLAY_ON_REVIEW";
662
+ conditional: import(".").JSONSchema;
663
+ })[] | undefined;
664
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
205
665
  }, {
206
666
  config: {
207
667
  type: "exact" | "fuzzy" | "range";
208
668
  };
209
- fieldId: "status" | "trackingId";
669
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
210
670
  fieldType: "event";
211
671
  options?: {
212
672
  value: string;
@@ -216,6 +676,21 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
216
676
  defaultMessage: string;
217
677
  };
218
678
  }[] | undefined;
679
+ conditionals?: ({
680
+ type: "SHOW";
681
+ conditional: import(".").JSONSchema;
682
+ } | {
683
+ type: "ENABLE";
684
+ conditional: import(".").JSONSchema;
685
+ } | {
686
+ type: "DISPLAY_ON_REVIEW";
687
+ conditional: import(".").JSONSchema;
688
+ })[] | undefined;
689
+ searchCriteriaLabelPrefix?: {
690
+ id: string;
691
+ description: string;
692
+ defaultMessage: string;
693
+ } | undefined;
219
694
  }>]>;
220
695
  export type SearchField = z.infer<typeof SearchField>;
221
696
  export declare const AdvancedSearchConfig: z.ZodObject<{
@@ -250,6 +725,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
250
725
  defaultMessage: string;
251
726
  };
252
727
  }>, "many">>;
728
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
729
+ id: string;
730
+ description: string;
731
+ defaultMessage: string;
732
+ }>>;
733
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
253
734
  }, {
254
735
  fieldId: z.ZodString;
255
736
  fieldType: z.ZodLiteral<"field">;
@@ -263,6 +744,17 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
263
744
  value: string;
264
745
  label: TranslationConfig;
265
746
  }[] | undefined;
747
+ conditionals?: ({
748
+ type: "SHOW";
749
+ conditional: import(".").JSONSchema;
750
+ } | {
751
+ type: "ENABLE";
752
+ conditional: import(".").JSONSchema;
753
+ } | {
754
+ type: "DISPLAY_ON_REVIEW";
755
+ conditional: import(".").JSONSchema;
756
+ })[] | undefined;
757
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
266
758
  }, {
267
759
  config: {
268
760
  type: "exact" | "fuzzy" | "range";
@@ -277,6 +769,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
277
769
  defaultMessage: string;
278
770
  };
279
771
  }[] | undefined;
772
+ conditionals?: ({
773
+ type: "SHOW";
774
+ conditional: import(".").JSONSchema;
775
+ } | {
776
+ type: "ENABLE";
777
+ conditional: import(".").JSONSchema;
778
+ } | {
779
+ type: "DISPLAY_ON_REVIEW";
780
+ conditional: import(".").JSONSchema;
781
+ })[] | undefined;
782
+ searchCriteriaLabelPrefix?: {
783
+ id: string;
784
+ description: string;
785
+ defaultMessage: string;
786
+ } | undefined;
280
787
  }>, z.ZodObject<z.objectUtil.extendShape<{
281
788
  config: z.ZodObject<{
282
789
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -303,24 +810,41 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
303
810
  defaultMessage: string;
304
811
  };
305
812
  }>, "many">>;
813
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
814
+ id: string;
815
+ description: string;
816
+ defaultMessage: string;
817
+ }>>;
818
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
306
819
  }, {
307
- fieldId: z.ZodEnum<["trackingId", "status"]>;
820
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
308
821
  fieldType: z.ZodLiteral<"event">;
309
822
  }>, "strip", z.ZodTypeAny, {
310
823
  config: {
311
824
  type: "exact" | "fuzzy" | "range";
312
825
  };
313
- fieldId: "status" | "trackingId";
826
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
314
827
  fieldType: "event";
315
828
  options?: {
316
829
  value: string;
317
830
  label: TranslationConfig;
318
831
  }[] | undefined;
832
+ conditionals?: ({
833
+ type: "SHOW";
834
+ conditional: import(".").JSONSchema;
835
+ } | {
836
+ type: "ENABLE";
837
+ conditional: import(".").JSONSchema;
838
+ } | {
839
+ type: "DISPLAY_ON_REVIEW";
840
+ conditional: import(".").JSONSchema;
841
+ })[] | undefined;
842
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
319
843
  }, {
320
844
  config: {
321
845
  type: "exact" | "fuzzy" | "range";
322
846
  };
323
- fieldId: "status" | "trackingId";
847
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
324
848
  fieldType: "event";
325
849
  options?: {
326
850
  value: string;
@@ -330,6 +854,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
330
854
  defaultMessage: string;
331
855
  };
332
856
  }[] | undefined;
857
+ conditionals?: ({
858
+ type: "SHOW";
859
+ conditional: import(".").JSONSchema;
860
+ } | {
861
+ type: "ENABLE";
862
+ conditional: import(".").JSONSchema;
863
+ } | {
864
+ type: "DISPLAY_ON_REVIEW";
865
+ conditional: import(".").JSONSchema;
866
+ })[] | undefined;
867
+ searchCriteriaLabelPrefix?: {
868
+ id: string;
869
+ description: string;
870
+ defaultMessage: string;
871
+ } | undefined;
333
872
  }>]>, "many">;
334
873
  }, "strip", z.ZodTypeAny, {
335
874
  title: TranslationConfig;
@@ -343,16 +882,38 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
343
882
  value: string;
344
883
  label: TranslationConfig;
345
884
  }[] | undefined;
885
+ conditionals?: ({
886
+ type: "SHOW";
887
+ conditional: import(".").JSONSchema;
888
+ } | {
889
+ type: "ENABLE";
890
+ conditional: import(".").JSONSchema;
891
+ } | {
892
+ type: "DISPLAY_ON_REVIEW";
893
+ conditional: import(".").JSONSchema;
894
+ })[] | undefined;
895
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
346
896
  } | {
347
897
  config: {
348
898
  type: "exact" | "fuzzy" | "range";
349
899
  };
350
- fieldId: "status" | "trackingId";
900
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
351
901
  fieldType: "event";
352
902
  options?: {
353
903
  value: string;
354
904
  label: TranslationConfig;
355
905
  }[] | undefined;
906
+ conditionals?: ({
907
+ type: "SHOW";
908
+ conditional: import(".").JSONSchema;
909
+ } | {
910
+ type: "ENABLE";
911
+ conditional: import(".").JSONSchema;
912
+ } | {
913
+ type: "DISPLAY_ON_REVIEW";
914
+ conditional: import(".").JSONSchema;
915
+ })[] | undefined;
916
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
356
917
  })[];
357
918
  }, {
358
919
  title: {
@@ -374,11 +935,26 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
374
935
  defaultMessage: string;
375
936
  };
376
937
  }[] | undefined;
938
+ conditionals?: ({
939
+ type: "SHOW";
940
+ conditional: import(".").JSONSchema;
941
+ } | {
942
+ type: "ENABLE";
943
+ conditional: import(".").JSONSchema;
944
+ } | {
945
+ type: "DISPLAY_ON_REVIEW";
946
+ conditional: import(".").JSONSchema;
947
+ })[] | undefined;
948
+ searchCriteriaLabelPrefix?: {
949
+ id: string;
950
+ description: string;
951
+ defaultMessage: string;
952
+ } | undefined;
377
953
  } | {
378
954
  config: {
379
955
  type: "exact" | "fuzzy" | "range";
380
956
  };
381
- fieldId: "status" | "trackingId";
957
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
382
958
  fieldType: "event";
383
959
  options?: {
384
960
  value: string;
@@ -388,6 +964,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
388
964
  defaultMessage: string;
389
965
  };
390
966
  }[] | undefined;
967
+ conditionals?: ({
968
+ type: "SHOW";
969
+ conditional: import(".").JSONSchema;
970
+ } | {
971
+ type: "ENABLE";
972
+ conditional: import(".").JSONSchema;
973
+ } | {
974
+ type: "DISPLAY_ON_REVIEW";
975
+ conditional: import(".").JSONSchema;
976
+ })[] | undefined;
977
+ searchCriteriaLabelPrefix?: {
978
+ id: string;
979
+ description: string;
980
+ defaultMessage: string;
981
+ } | undefined;
391
982
  })[];
392
983
  }>;
393
984
  export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;