@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fc76588

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 +10346 -4518
  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 +56387 -29043
  5. package/dist/commons/events/ActionDocument.d.ts +2110 -519
  6. package/dist/commons/events/ActionInput.d.ts +1577 -305
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +675 -12
  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 +2982 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +137 -36
  14. package/dist/commons/events/EventConfig.d.ts +27593 -14046
  15. package/dist/commons/events/EventDocument.d.ts +1374 -391
  16. package/dist/commons/events/EventIndex.d.ts +589 -357
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +74 -80
  19. package/dist/commons/events/FieldConfig.d.ts +2500 -1111
  20. package/dist/commons/events/FieldType.d.ts +4 -1
  21. package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
  22. package/dist/commons/events/FieldValue.d.ts +43 -5
  23. package/dist/commons/events/FormConfig.d.ts +18485 -9821
  24. package/dist/commons/events/PageConfig.d.ts +3600 -1472
  25. package/dist/commons/events/SummaryConfig.d.ts +0 -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 +4205 -538
  29. package/dist/commons/events/defineConfig.d.ts +2639 -635
  30. package/dist/commons/events/event.d.ts +37 -10
  31. package/dist/commons/events/field.d.ts +26 -17
  32. package/dist/commons/events/index.d.ts +4 -0
  33. package/dist/commons/events/scopes.d.ts +20 -1
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +149 -42
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +10115 -313
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +45 -8
  40. package/dist/events/index.js +2682 -1019
  41. package/dist/scopes/index.d.ts +158 -1
  42. package/dist/scopes/index.js +152 -1
  43. package/package.json +1 -1
@@ -1,5 +1,424 @@
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.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>;
3
422
  export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
4
423
  config: z.ZodObject<{
5
424
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -26,6 +445,12 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
26
445
  defaultMessage: string;
27
446
  };
28
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">>>;
29
454
  }, {
30
455
  fieldId: z.ZodString;
31
456
  fieldType: z.ZodLiteral<"field">;
@@ -39,6 +464,17 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
39
464
  value: string;
40
465
  label: TranslationConfig;
41
466
  }[] | undefined;
467
+ conditionals?: ({
468
+ type: "SHOW";
469
+ conditional: import(".").JSONSchema;
470
+ } | {
471
+ type: "ENABLE";
472
+ conditional: import(".").JSONSchema;
473
+ } | {
474
+ type: "DISPLAY_ON_REVIEW";
475
+ conditional: import(".").JSONSchema;
476
+ })[] | undefined;
477
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
42
478
  }, {
43
479
  config: {
44
480
  type: "exact" | "fuzzy" | "range";
@@ -53,8 +489,23 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
53
489
  defaultMessage: string;
54
490
  };
55
491
  }[] | undefined;
492
+ conditionals?: ({
493
+ type: "SHOW";
494
+ conditional: import(".").JSONSchema;
495
+ } | {
496
+ type: "ENABLE";
497
+ conditional: import(".").JSONSchema;
498
+ } | {
499
+ type: "DISPLAY_ON_REVIEW";
500
+ conditional: import(".").JSONSchema;
501
+ })[] | undefined;
502
+ searchCriteriaLabelPrefix?: {
503
+ id: string;
504
+ description: string;
505
+ defaultMessage: string;
506
+ } | undefined;
56
507
  }>;
57
- export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
508
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
58
509
  export type EventFieldId = z.infer<typeof EventFieldId>;
59
510
  export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
60
511
  config: z.ZodObject<{
@@ -82,24 +533,41 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
82
533
  defaultMessage: string;
83
534
  };
84
535
  }>, "many">>;
536
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
537
+ id: string;
538
+ description: string;
539
+ defaultMessage: string;
540
+ }>>;
541
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
85
542
  }, {
86
- fieldId: z.ZodEnum<["trackingId", "status"]>;
543
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
87
544
  fieldType: z.ZodLiteral<"event">;
88
545
  }>, "strip", z.ZodTypeAny, {
89
546
  config: {
90
547
  type: "exact" | "fuzzy" | "range";
91
548
  };
92
- fieldId: "status" | "trackingId";
549
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
93
550
  fieldType: "event";
94
551
  options?: {
95
552
  value: string;
96
553
  label: TranslationConfig;
97
554
  }[] | undefined;
555
+ conditionals?: ({
556
+ type: "SHOW";
557
+ conditional: import(".").JSONSchema;
558
+ } | {
559
+ type: "ENABLE";
560
+ conditional: import(".").JSONSchema;
561
+ } | {
562
+ type: "DISPLAY_ON_REVIEW";
563
+ conditional: import(".").JSONSchema;
564
+ })[] | undefined;
565
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
98
566
  }, {
99
567
  config: {
100
568
  type: "exact" | "fuzzy" | "range";
101
569
  };
102
- fieldId: "status" | "trackingId";
570
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
103
571
  fieldType: "event";
104
572
  options?: {
105
573
  value: string;
@@ -109,6 +577,21 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
109
577
  defaultMessage: string;
110
578
  };
111
579
  }[] | undefined;
580
+ conditionals?: ({
581
+ type: "SHOW";
582
+ conditional: import(".").JSONSchema;
583
+ } | {
584
+ type: "ENABLE";
585
+ conditional: import(".").JSONSchema;
586
+ } | {
587
+ type: "DISPLAY_ON_REVIEW";
588
+ conditional: import(".").JSONSchema;
589
+ })[] | undefined;
590
+ searchCriteriaLabelPrefix?: {
591
+ id: string;
592
+ description: string;
593
+ defaultMessage: string;
594
+ } | undefined;
112
595
  }>;
113
596
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
114
597
  config: z.ZodObject<{
@@ -136,6 +619,12 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
136
619
  defaultMessage: string;
137
620
  };
138
621
  }>, "many">>;
622
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
623
+ id: string;
624
+ description: string;
625
+ defaultMessage: string;
626
+ }>>;
627
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
139
628
  }, {
140
629
  fieldId: z.ZodString;
141
630
  fieldType: z.ZodLiteral<"field">;
@@ -149,6 +638,17 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
149
638
  value: string;
150
639
  label: TranslationConfig;
151
640
  }[] | undefined;
641
+ conditionals?: ({
642
+ type: "SHOW";
643
+ conditional: import(".").JSONSchema;
644
+ } | {
645
+ type: "ENABLE";
646
+ conditional: import(".").JSONSchema;
647
+ } | {
648
+ type: "DISPLAY_ON_REVIEW";
649
+ conditional: import(".").JSONSchema;
650
+ })[] | undefined;
651
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
152
652
  }, {
153
653
  config: {
154
654
  type: "exact" | "fuzzy" | "range";
@@ -163,6 +663,21 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
163
663
  defaultMessage: string;
164
664
  };
165
665
  }[] | undefined;
666
+ conditionals?: ({
667
+ type: "SHOW";
668
+ conditional: import(".").JSONSchema;
669
+ } | {
670
+ type: "ENABLE";
671
+ conditional: import(".").JSONSchema;
672
+ } | {
673
+ type: "DISPLAY_ON_REVIEW";
674
+ conditional: import(".").JSONSchema;
675
+ })[] | undefined;
676
+ searchCriteriaLabelPrefix?: {
677
+ id: string;
678
+ description: string;
679
+ defaultMessage: string;
680
+ } | undefined;
166
681
  }>, z.ZodObject<z.objectUtil.extendShape<{
167
682
  config: z.ZodObject<{
168
683
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -189,24 +704,41 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
189
704
  defaultMessage: string;
190
705
  };
191
706
  }>, "many">>;
707
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
708
+ id: string;
709
+ description: string;
710
+ defaultMessage: string;
711
+ }>>;
712
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
192
713
  }, {
193
- fieldId: z.ZodEnum<["trackingId", "status"]>;
714
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
194
715
  fieldType: z.ZodLiteral<"event">;
195
716
  }>, "strip", z.ZodTypeAny, {
196
717
  config: {
197
718
  type: "exact" | "fuzzy" | "range";
198
719
  };
199
- fieldId: "status" | "trackingId";
720
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
200
721
  fieldType: "event";
201
722
  options?: {
202
723
  value: string;
203
724
  label: TranslationConfig;
204
725
  }[] | undefined;
726
+ conditionals?: ({
727
+ type: "SHOW";
728
+ conditional: import(".").JSONSchema;
729
+ } | {
730
+ type: "ENABLE";
731
+ conditional: import(".").JSONSchema;
732
+ } | {
733
+ type: "DISPLAY_ON_REVIEW";
734
+ conditional: import(".").JSONSchema;
735
+ })[] | undefined;
736
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
205
737
  }, {
206
738
  config: {
207
739
  type: "exact" | "fuzzy" | "range";
208
740
  };
209
- fieldId: "status" | "trackingId";
741
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
210
742
  fieldType: "event";
211
743
  options?: {
212
744
  value: string;
@@ -216,6 +748,21 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
216
748
  defaultMessage: string;
217
749
  };
218
750
  }[] | undefined;
751
+ conditionals?: ({
752
+ type: "SHOW";
753
+ conditional: import(".").JSONSchema;
754
+ } | {
755
+ type: "ENABLE";
756
+ conditional: import(".").JSONSchema;
757
+ } | {
758
+ type: "DISPLAY_ON_REVIEW";
759
+ conditional: import(".").JSONSchema;
760
+ })[] | undefined;
761
+ searchCriteriaLabelPrefix?: {
762
+ id: string;
763
+ description: string;
764
+ defaultMessage: string;
765
+ } | undefined;
219
766
  }>]>;
220
767
  export type SearchField = z.infer<typeof SearchField>;
221
768
  export declare const AdvancedSearchConfig: z.ZodObject<{
@@ -250,6 +797,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
250
797
  defaultMessage: string;
251
798
  };
252
799
  }>, "many">>;
800
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
801
+ id: string;
802
+ description: string;
803
+ defaultMessage: string;
804
+ }>>;
805
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
253
806
  }, {
254
807
  fieldId: z.ZodString;
255
808
  fieldType: z.ZodLiteral<"field">;
@@ -263,6 +816,17 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
263
816
  value: string;
264
817
  label: TranslationConfig;
265
818
  }[] | undefined;
819
+ conditionals?: ({
820
+ type: "SHOW";
821
+ conditional: import(".").JSONSchema;
822
+ } | {
823
+ type: "ENABLE";
824
+ conditional: import(".").JSONSchema;
825
+ } | {
826
+ type: "DISPLAY_ON_REVIEW";
827
+ conditional: import(".").JSONSchema;
828
+ })[] | undefined;
829
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
266
830
  }, {
267
831
  config: {
268
832
  type: "exact" | "fuzzy" | "range";
@@ -277,6 +841,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
277
841
  defaultMessage: string;
278
842
  };
279
843
  }[] | undefined;
844
+ conditionals?: ({
845
+ type: "SHOW";
846
+ conditional: import(".").JSONSchema;
847
+ } | {
848
+ type: "ENABLE";
849
+ conditional: import(".").JSONSchema;
850
+ } | {
851
+ type: "DISPLAY_ON_REVIEW";
852
+ conditional: import(".").JSONSchema;
853
+ })[] | undefined;
854
+ searchCriteriaLabelPrefix?: {
855
+ id: string;
856
+ description: string;
857
+ defaultMessage: string;
858
+ } | undefined;
280
859
  }>, z.ZodObject<z.objectUtil.extendShape<{
281
860
  config: z.ZodObject<{
282
861
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -303,24 +882,41 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
303
882
  defaultMessage: string;
304
883
  };
305
884
  }>, "many">>;
885
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
886
+ id: string;
887
+ description: string;
888
+ defaultMessage: string;
889
+ }>>;
890
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
306
891
  }, {
307
- fieldId: z.ZodEnum<["trackingId", "status"]>;
892
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
308
893
  fieldType: z.ZodLiteral<"event">;
309
894
  }>, "strip", z.ZodTypeAny, {
310
895
  config: {
311
896
  type: "exact" | "fuzzy" | "range";
312
897
  };
313
- fieldId: "status" | "trackingId";
898
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
314
899
  fieldType: "event";
315
900
  options?: {
316
901
  value: string;
317
902
  label: TranslationConfig;
318
903
  }[] | undefined;
904
+ conditionals?: ({
905
+ type: "SHOW";
906
+ conditional: import(".").JSONSchema;
907
+ } | {
908
+ type: "ENABLE";
909
+ conditional: import(".").JSONSchema;
910
+ } | {
911
+ type: "DISPLAY_ON_REVIEW";
912
+ conditional: import(".").JSONSchema;
913
+ })[] | undefined;
914
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
319
915
  }, {
320
916
  config: {
321
917
  type: "exact" | "fuzzy" | "range";
322
918
  };
323
- fieldId: "status" | "trackingId";
919
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
324
920
  fieldType: "event";
325
921
  options?: {
326
922
  value: string;
@@ -330,6 +926,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
330
926
  defaultMessage: string;
331
927
  };
332
928
  }[] | undefined;
929
+ conditionals?: ({
930
+ type: "SHOW";
931
+ conditional: import(".").JSONSchema;
932
+ } | {
933
+ type: "ENABLE";
934
+ conditional: import(".").JSONSchema;
935
+ } | {
936
+ type: "DISPLAY_ON_REVIEW";
937
+ conditional: import(".").JSONSchema;
938
+ })[] | undefined;
939
+ searchCriteriaLabelPrefix?: {
940
+ id: string;
941
+ description: string;
942
+ defaultMessage: string;
943
+ } | undefined;
333
944
  }>]>, "many">;
334
945
  }, "strip", z.ZodTypeAny, {
335
946
  title: TranslationConfig;
@@ -343,16 +954,38 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
343
954
  value: string;
344
955
  label: TranslationConfig;
345
956
  }[] | undefined;
957
+ conditionals?: ({
958
+ type: "SHOW";
959
+ conditional: import(".").JSONSchema;
960
+ } | {
961
+ type: "ENABLE";
962
+ conditional: import(".").JSONSchema;
963
+ } | {
964
+ type: "DISPLAY_ON_REVIEW";
965
+ conditional: import(".").JSONSchema;
966
+ })[] | undefined;
967
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
346
968
  } | {
347
969
  config: {
348
970
  type: "exact" | "fuzzy" | "range";
349
971
  };
350
- fieldId: "status" | "trackingId";
972
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
351
973
  fieldType: "event";
352
974
  options?: {
353
975
  value: string;
354
976
  label: TranslationConfig;
355
977
  }[] | undefined;
978
+ conditionals?: ({
979
+ type: "SHOW";
980
+ conditional: import(".").JSONSchema;
981
+ } | {
982
+ type: "ENABLE";
983
+ conditional: import(".").JSONSchema;
984
+ } | {
985
+ type: "DISPLAY_ON_REVIEW";
986
+ conditional: import(".").JSONSchema;
987
+ })[] | undefined;
988
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
356
989
  })[];
357
990
  }, {
358
991
  title: {
@@ -374,11 +1007,26 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
374
1007
  defaultMessage: string;
375
1008
  };
376
1009
  }[] | undefined;
1010
+ conditionals?: ({
1011
+ type: "SHOW";
1012
+ conditional: import(".").JSONSchema;
1013
+ } | {
1014
+ type: "ENABLE";
1015
+ conditional: import(".").JSONSchema;
1016
+ } | {
1017
+ type: "DISPLAY_ON_REVIEW";
1018
+ conditional: import(".").JSONSchema;
1019
+ })[] | undefined;
1020
+ searchCriteriaLabelPrefix?: {
1021
+ id: string;
1022
+ description: string;
1023
+ defaultMessage: string;
1024
+ } | undefined;
377
1025
  } | {
378
1026
  config: {
379
1027
  type: "exact" | "fuzzy" | "range";
380
1028
  };
381
- fieldId: "status" | "trackingId";
1029
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
382
1030
  fieldType: "event";
383
1031
  options?: {
384
1032
  value: string;
@@ -388,6 +1036,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
388
1036
  defaultMessage: string;
389
1037
  };
390
1038
  }[] | undefined;
1039
+ conditionals?: ({
1040
+ type: "SHOW";
1041
+ conditional: import(".").JSONSchema;
1042
+ } | {
1043
+ type: "ENABLE";
1044
+ conditional: import(".").JSONSchema;
1045
+ } | {
1046
+ type: "DISPLAY_ON_REVIEW";
1047
+ conditional: import(".").JSONSchema;
1048
+ })[] | undefined;
1049
+ searchCriteriaLabelPrefix?: {
1050
+ id: string;
1051
+ description: string;
1052
+ defaultMessage: string;
1053
+ } | undefined;
391
1054
  })[];
392
1055
  }>;
393
1056
  export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;