@opencrvs/toolkit 1.8.0-rc.f9fb039 → 1.8.0-rc.fa49ae3

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +15058 -4901
  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 +32976 -12647
  5. package/dist/commons/events/ActionDocument.d.ts +2005 -309
  6. package/dist/commons/events/ActionInput.d.ts +1455 -183
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +509 -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 +3008 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  13. package/dist/commons/events/Draft.d.ts +127 -21
  14. package/dist/commons/events/EventConfig.d.ts +27068 -16943
  15. package/dist/commons/events/EventDocument.d.ts +1308 -251
  16. package/dist/commons/events/EventIndex.d.ts +502 -486
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +104 -77
  19. package/dist/commons/events/FieldConfig.d.ts +2074 -1202
  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 +10259 -4769
  24. package/dist/commons/events/PageConfig.d.ts +3480 -2134
  25. package/dist/commons/events/SummaryConfig.d.ts +17 -5
  26. package/dist/commons/events/User.d.ts +31 -7
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +4110 -659
  29. package/dist/commons/events/defineConfig.d.ts +2435 -680
  30. package/dist/commons/events/event.d.ts +5 -5
  31. package/dist/commons/events/field.d.ts +10 -10
  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 +147 -41
  36. package/dist/commons/events/utils.d.ts +10013 -326
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +45 -8
  39. package/dist/events/index.js +2836 -1172
  40. package/dist/scopes/index.d.ts +158 -1
  41. package/dist/scopes/index.js +152 -1
  42. 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,11 @@ 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
+ }>>;
29
453
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
30
454
  }, {
31
455
  fieldId: z.ZodString;
@@ -50,6 +474,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
50
474
  type: "DISPLAY_ON_REVIEW";
51
475
  conditional: import(".").JSONSchema;
52
476
  })[] | undefined;
477
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
53
478
  }, {
54
479
  config: {
55
480
  type: "exact" | "fuzzy" | "range";
@@ -74,8 +499,13 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
74
499
  type: "DISPLAY_ON_REVIEW";
75
500
  conditional: import(".").JSONSchema;
76
501
  })[] | undefined;
502
+ searchCriteriaLabelPrefix?: {
503
+ id: string;
504
+ description: string;
505
+ defaultMessage: string;
506
+ } | undefined;
77
507
  }>;
78
- export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
508
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
79
509
  export type EventFieldId = z.infer<typeof EventFieldId>;
80
510
  export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
81
511
  config: z.ZodObject<{
@@ -103,15 +533,20 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
103
533
  defaultMessage: string;
104
534
  };
105
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
+ }>>;
106
541
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
107
542
  }, {
108
- fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
543
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
109
544
  fieldType: z.ZodLiteral<"event">;
110
545
  }>, "strip", z.ZodTypeAny, {
111
546
  config: {
112
547
  type: "exact" | "fuzzy" | "range";
113
548
  };
114
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
549
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
115
550
  fieldType: "event";
116
551
  options?: {
117
552
  value: string;
@@ -127,11 +562,12 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
127
562
  type: "DISPLAY_ON_REVIEW";
128
563
  conditional: import(".").JSONSchema;
129
564
  })[] | undefined;
565
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
130
566
  }, {
131
567
  config: {
132
568
  type: "exact" | "fuzzy" | "range";
133
569
  };
134
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
570
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
135
571
  fieldType: "event";
136
572
  options?: {
137
573
  value: string;
@@ -151,6 +587,11 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
151
587
  type: "DISPLAY_ON_REVIEW";
152
588
  conditional: import(".").JSONSchema;
153
589
  })[] | undefined;
590
+ searchCriteriaLabelPrefix?: {
591
+ id: string;
592
+ description: string;
593
+ defaultMessage: string;
594
+ } | undefined;
154
595
  }>;
155
596
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
156
597
  config: z.ZodObject<{
@@ -178,6 +619,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
178
619
  defaultMessage: string;
179
620
  };
180
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
+ }>>;
181
627
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
182
628
  }, {
183
629
  fieldId: z.ZodString;
@@ -202,6 +648,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
202
648
  type: "DISPLAY_ON_REVIEW";
203
649
  conditional: import(".").JSONSchema;
204
650
  })[] | undefined;
651
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
205
652
  }, {
206
653
  config: {
207
654
  type: "exact" | "fuzzy" | "range";
@@ -226,6 +673,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
226
673
  type: "DISPLAY_ON_REVIEW";
227
674
  conditional: import(".").JSONSchema;
228
675
  })[] | undefined;
676
+ searchCriteriaLabelPrefix?: {
677
+ id: string;
678
+ description: string;
679
+ defaultMessage: string;
680
+ } | undefined;
229
681
  }>, z.ZodObject<z.objectUtil.extendShape<{
230
682
  config: z.ZodObject<{
231
683
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -252,15 +704,20 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
252
704
  defaultMessage: string;
253
705
  };
254
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
+ }>>;
255
712
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
256
713
  }, {
257
- fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
714
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
258
715
  fieldType: z.ZodLiteral<"event">;
259
716
  }>, "strip", z.ZodTypeAny, {
260
717
  config: {
261
718
  type: "exact" | "fuzzy" | "range";
262
719
  };
263
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
720
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
264
721
  fieldType: "event";
265
722
  options?: {
266
723
  value: string;
@@ -276,11 +733,12 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
276
733
  type: "DISPLAY_ON_REVIEW";
277
734
  conditional: import(".").JSONSchema;
278
735
  })[] | undefined;
736
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
279
737
  }, {
280
738
  config: {
281
739
  type: "exact" | "fuzzy" | "range";
282
740
  };
283
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
741
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
284
742
  fieldType: "event";
285
743
  options?: {
286
744
  value: string;
@@ -300,6 +758,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
300
758
  type: "DISPLAY_ON_REVIEW";
301
759
  conditional: import(".").JSONSchema;
302
760
  })[] | undefined;
761
+ searchCriteriaLabelPrefix?: {
762
+ id: string;
763
+ description: string;
764
+ defaultMessage: string;
765
+ } | undefined;
303
766
  }>]>;
304
767
  export type SearchField = z.infer<typeof SearchField>;
305
768
  export declare const AdvancedSearchConfig: z.ZodObject<{
@@ -334,6 +797,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
334
797
  defaultMessage: string;
335
798
  };
336
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
+ }>>;
337
805
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
338
806
  }, {
339
807
  fieldId: z.ZodString;
@@ -358,6 +826,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
358
826
  type: "DISPLAY_ON_REVIEW";
359
827
  conditional: import(".").JSONSchema;
360
828
  })[] | undefined;
829
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
361
830
  }, {
362
831
  config: {
363
832
  type: "exact" | "fuzzy" | "range";
@@ -382,6 +851,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
382
851
  type: "DISPLAY_ON_REVIEW";
383
852
  conditional: import(".").JSONSchema;
384
853
  })[] | undefined;
854
+ searchCriteriaLabelPrefix?: {
855
+ id: string;
856
+ description: string;
857
+ defaultMessage: string;
858
+ } | undefined;
385
859
  }>, z.ZodObject<z.objectUtil.extendShape<{
386
860
  config: z.ZodObject<{
387
861
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -408,15 +882,20 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
408
882
  defaultMessage: string;
409
883
  };
410
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
+ }>>;
411
890
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
412
891
  }, {
413
- fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
892
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
414
893
  fieldType: z.ZodLiteral<"event">;
415
894
  }>, "strip", z.ZodTypeAny, {
416
895
  config: {
417
896
  type: "exact" | "fuzzy" | "range";
418
897
  };
419
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
898
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
420
899
  fieldType: "event";
421
900
  options?: {
422
901
  value: string;
@@ -432,11 +911,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
432
911
  type: "DISPLAY_ON_REVIEW";
433
912
  conditional: import(".").JSONSchema;
434
913
  })[] | undefined;
914
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
435
915
  }, {
436
916
  config: {
437
917
  type: "exact" | "fuzzy" | "range";
438
918
  };
439
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
919
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
440
920
  fieldType: "event";
441
921
  options?: {
442
922
  value: string;
@@ -456,6 +936,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
456
936
  type: "DISPLAY_ON_REVIEW";
457
937
  conditional: import(".").JSONSchema;
458
938
  })[] | undefined;
939
+ searchCriteriaLabelPrefix?: {
940
+ id: string;
941
+ description: string;
942
+ defaultMessage: string;
943
+ } | undefined;
459
944
  }>]>, "many">;
460
945
  }, "strip", z.ZodTypeAny, {
461
946
  title: TranslationConfig;
@@ -479,11 +964,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
479
964
  type: "DISPLAY_ON_REVIEW";
480
965
  conditional: import(".").JSONSchema;
481
966
  })[] | undefined;
967
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
482
968
  } | {
483
969
  config: {
484
970
  type: "exact" | "fuzzy" | "range";
485
971
  };
486
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
972
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
487
973
  fieldType: "event";
488
974
  options?: {
489
975
  value: string;
@@ -499,6 +985,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
499
985
  type: "DISPLAY_ON_REVIEW";
500
986
  conditional: import(".").JSONSchema;
501
987
  })[] | undefined;
988
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
502
989
  })[];
503
990
  }, {
504
991
  title: {
@@ -530,11 +1017,16 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
530
1017
  type: "DISPLAY_ON_REVIEW";
531
1018
  conditional: import(".").JSONSchema;
532
1019
  })[] | undefined;
1020
+ searchCriteriaLabelPrefix?: {
1021
+ id: string;
1022
+ description: string;
1023
+ defaultMessage: string;
1024
+ } | undefined;
533
1025
  } | {
534
1026
  config: {
535
1027
  type: "exact" | "fuzzy" | "range";
536
1028
  };
537
- fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
1029
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
538
1030
  fieldType: "event";
539
1031
  options?: {
540
1032
  value: string;
@@ -554,6 +1046,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
554
1046
  type: "DISPLAY_ON_REVIEW";
555
1047
  conditional: import(".").JSONSchema;
556
1048
  })[] | undefined;
1049
+ searchCriteriaLabelPrefix?: {
1050
+ id: string;
1051
+ description: string;
1052
+ defaultMessage: string;
1053
+ } | undefined;
557
1054
  })[];
558
1055
  }>;
559
1056
  export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;