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

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 (35) hide show
  1. package/dist/commons/api/router.d.ts +7990 -4200
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +544 -207
  6. package/dist/commons/events/ActionInput.d.ts +338 -240
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +535 -25
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +36 -20
  11. package/dist/commons/events/EventConfig.d.ts +46232 -1342
  12. package/dist/commons/events/EventDocument.d.ts +345 -153
  13. package/dist/commons/events/EventIndex.d.ts +1589 -13
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +273 -11
  16. package/dist/commons/events/FieldConfig.d.ts +4280 -754
  17. package/dist/commons/events/FieldType.d.ts +3 -3
  18. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  19. package/dist/commons/events/FieldValue.d.ts +7 -4
  20. package/dist/commons/events/FormConfig.d.ts +43591 -439
  21. package/dist/commons/events/PageConfig.d.ts +10860 -204
  22. package/dist/commons/events/SummaryConfig.d.ts +81 -42
  23. package/dist/commons/events/User.d.ts +5 -0
  24. package/dist/commons/events/WorkqueueConfig.d.ts +1397 -19
  25. package/dist/commons/events/defineConfig.d.ts +7220 -40
  26. package/dist/commons/events/event.d.ts +54 -0
  27. package/dist/commons/events/field.d.ts +77 -0
  28. package/dist/commons/events/index.d.ts +3 -0
  29. package/dist/commons/events/scopes.d.ts +26 -0
  30. package/dist/commons/events/test.utils.d.ts +7 -44
  31. package/dist/commons/events/utils.d.ts +3668 -68
  32. package/dist/commons/events/utils.test.d.ts +2 -0
  33. package/dist/conditionals/index.js +36 -33
  34. package/dist/events/index.js +1617 -975
  35. package/package.json +3 -2
@@ -34,4 +34,6 @@ export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateAction
34
34
  /** Actions which update annotation or status of an event. */
35
35
  export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
36
36
  export type AnnotationActionType = z.infer<typeof annotationActions>;
37
+ /** Actions which requires the user to be assigned */
38
+ export declare const writeActions: z.ZodEnum<["DELETE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION"]>;
37
39
  //# sourceMappingURL=ActionType.d.ts.map
@@ -1,51 +1,561 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
+ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
4
+ config: z.ZodObject<{
5
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "exact" | "fuzzy" | "range";
8
+ }, {
9
+ type: "exact" | "fuzzy" | "range";
10
+ }>;
11
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ value: z.ZodString;
13
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
14
+ id: string;
15
+ description: string;
16
+ defaultMessage: string;
17
+ }>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ value: string;
20
+ label: TranslationConfig;
21
+ }, {
22
+ value: string;
23
+ label: {
24
+ id: string;
25
+ description: string;
26
+ defaultMessage: string;
27
+ };
28
+ }>, "many">>;
29
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
30
+ }, {
31
+ fieldId: z.ZodString;
32
+ fieldType: z.ZodLiteral<"field">;
33
+ }>, "strip", z.ZodTypeAny, {
34
+ config: {
35
+ type: "exact" | "fuzzy" | "range";
36
+ };
37
+ fieldId: string;
38
+ fieldType: "field";
39
+ options?: {
40
+ value: string;
41
+ label: TranslationConfig;
42
+ }[] | undefined;
43
+ conditionals?: ({
44
+ type: "SHOW";
45
+ conditional: import(".").JSONSchema;
46
+ } | {
47
+ type: "ENABLE";
48
+ conditional: import(".").JSONSchema;
49
+ } | {
50
+ type: "DISPLAY_ON_REVIEW";
51
+ conditional: import(".").JSONSchema;
52
+ })[] | undefined;
53
+ }, {
54
+ config: {
55
+ type: "exact" | "fuzzy" | "range";
56
+ };
57
+ fieldId: string;
58
+ fieldType: "field";
59
+ options?: {
60
+ value: string;
61
+ label: {
62
+ id: string;
63
+ description: string;
64
+ defaultMessage: string;
65
+ };
66
+ }[] | undefined;
67
+ conditionals?: ({
68
+ type: "SHOW";
69
+ conditional: import(".").JSONSchema;
70
+ } | {
71
+ type: "ENABLE";
72
+ conditional: import(".").JSONSchema;
73
+ } | {
74
+ type: "DISPLAY_ON_REVIEW";
75
+ conditional: import(".").JSONSchema;
76
+ })[] | undefined;
77
+ }>;
78
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
79
+ export type EventFieldId = z.infer<typeof EventFieldId>;
80
+ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
81
+ config: z.ZodObject<{
82
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "exact" | "fuzzy" | "range";
85
+ }, {
86
+ type: "exact" | "fuzzy" | "range";
87
+ }>;
88
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
+ value: z.ZodString;
90
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
91
+ id: string;
92
+ description: string;
93
+ defaultMessage: string;
94
+ }>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ value: string;
97
+ label: TranslationConfig;
98
+ }, {
99
+ value: string;
100
+ label: {
101
+ id: string;
102
+ description: string;
103
+ defaultMessage: string;
104
+ };
105
+ }>, "many">>;
106
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
107
+ }, {
108
+ fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
109
+ fieldType: z.ZodLiteral<"event">;
110
+ }>, "strip", z.ZodTypeAny, {
111
+ config: {
112
+ type: "exact" | "fuzzy" | "range";
113
+ };
114
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
115
+ fieldType: "event";
116
+ options?: {
117
+ value: string;
118
+ label: TranslationConfig;
119
+ }[] | undefined;
120
+ conditionals?: ({
121
+ type: "SHOW";
122
+ conditional: import(".").JSONSchema;
123
+ } | {
124
+ type: "ENABLE";
125
+ conditional: import(".").JSONSchema;
126
+ } | {
127
+ type: "DISPLAY_ON_REVIEW";
128
+ conditional: import(".").JSONSchema;
129
+ })[] | undefined;
130
+ }, {
131
+ config: {
132
+ type: "exact" | "fuzzy" | "range";
133
+ };
134
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
135
+ fieldType: "event";
136
+ options?: {
137
+ value: string;
138
+ label: {
139
+ id: string;
140
+ description: string;
141
+ defaultMessage: string;
142
+ };
143
+ }[] | undefined;
144
+ conditionals?: ({
145
+ type: "SHOW";
146
+ conditional: import(".").JSONSchema;
147
+ } | {
148
+ type: "ENABLE";
149
+ conditional: import(".").JSONSchema;
150
+ } | {
151
+ type: "DISPLAY_ON_REVIEW";
152
+ conditional: import(".").JSONSchema;
153
+ })[] | undefined;
154
+ }>;
155
+ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
156
+ config: z.ZodObject<{
157
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ type: "exact" | "fuzzy" | "range";
160
+ }, {
161
+ type: "exact" | "fuzzy" | "range";
162
+ }>;
163
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
164
+ value: z.ZodString;
165
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
166
+ id: string;
167
+ description: string;
168
+ defaultMessage: string;
169
+ }>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ value: string;
172
+ label: TranslationConfig;
173
+ }, {
174
+ value: string;
175
+ label: {
176
+ id: string;
177
+ description: string;
178
+ defaultMessage: string;
179
+ };
180
+ }>, "many">>;
181
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
182
+ }, {
183
+ fieldId: z.ZodString;
184
+ fieldType: z.ZodLiteral<"field">;
185
+ }>, "strip", z.ZodTypeAny, {
186
+ config: {
187
+ type: "exact" | "fuzzy" | "range";
188
+ };
189
+ fieldId: string;
190
+ fieldType: "field";
191
+ options?: {
192
+ value: string;
193
+ label: TranslationConfig;
194
+ }[] | undefined;
195
+ conditionals?: ({
196
+ type: "SHOW";
197
+ conditional: import(".").JSONSchema;
198
+ } | {
199
+ type: "ENABLE";
200
+ conditional: import(".").JSONSchema;
201
+ } | {
202
+ type: "DISPLAY_ON_REVIEW";
203
+ conditional: import(".").JSONSchema;
204
+ })[] | undefined;
205
+ }, {
206
+ config: {
207
+ type: "exact" | "fuzzy" | "range";
208
+ };
209
+ fieldId: string;
210
+ fieldType: "field";
211
+ options?: {
212
+ value: string;
213
+ label: {
214
+ id: string;
215
+ description: string;
216
+ defaultMessage: string;
217
+ };
218
+ }[] | undefined;
219
+ conditionals?: ({
220
+ type: "SHOW";
221
+ conditional: import(".").JSONSchema;
222
+ } | {
223
+ type: "ENABLE";
224
+ conditional: import(".").JSONSchema;
225
+ } | {
226
+ type: "DISPLAY_ON_REVIEW";
227
+ conditional: import(".").JSONSchema;
228
+ })[] | undefined;
229
+ }>, z.ZodObject<z.objectUtil.extendShape<{
230
+ config: z.ZodObject<{
231
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ type: "exact" | "fuzzy" | "range";
234
+ }, {
235
+ type: "exact" | "fuzzy" | "range";
236
+ }>;
237
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
+ value: z.ZodString;
239
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
240
+ id: string;
241
+ description: string;
242
+ defaultMessage: string;
243
+ }>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ value: string;
246
+ label: TranslationConfig;
247
+ }, {
248
+ value: string;
249
+ label: {
250
+ id: string;
251
+ description: string;
252
+ defaultMessage: string;
253
+ };
254
+ }>, "many">>;
255
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
256
+ }, {
257
+ fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
258
+ fieldType: z.ZodLiteral<"event">;
259
+ }>, "strip", z.ZodTypeAny, {
260
+ config: {
261
+ type: "exact" | "fuzzy" | "range";
262
+ };
263
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
264
+ fieldType: "event";
265
+ options?: {
266
+ value: string;
267
+ label: TranslationConfig;
268
+ }[] | undefined;
269
+ conditionals?: ({
270
+ type: "SHOW";
271
+ conditional: import(".").JSONSchema;
272
+ } | {
273
+ type: "ENABLE";
274
+ conditional: import(".").JSONSchema;
275
+ } | {
276
+ type: "DISPLAY_ON_REVIEW";
277
+ conditional: import(".").JSONSchema;
278
+ })[] | undefined;
279
+ }, {
280
+ config: {
281
+ type: "exact" | "fuzzy" | "range";
282
+ };
283
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
284
+ fieldType: "event";
285
+ options?: {
286
+ value: string;
287
+ label: {
288
+ id: string;
289
+ description: string;
290
+ defaultMessage: string;
291
+ };
292
+ }[] | undefined;
293
+ conditionals?: ({
294
+ type: "SHOW";
295
+ conditional: import(".").JSONSchema;
296
+ } | {
297
+ type: "ENABLE";
298
+ conditional: import(".").JSONSchema;
299
+ } | {
300
+ type: "DISPLAY_ON_REVIEW";
301
+ conditional: import(".").JSONSchema;
302
+ })[] | undefined;
303
+ }>]>;
304
+ export type SearchField = z.infer<typeof SearchField>;
3
305
  export declare const AdvancedSearchConfig: z.ZodObject<{
4
306
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
307
  id: string;
6
308
  description: string;
7
309
  defaultMessage: string;
8
310
  }>;
9
- fields: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
10
- fieldId: z.ZodString;
11
- config: z.ZodOptional<z.ZodObject<{
12
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE"]>;
311
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
312
+ config: z.ZodObject<{
313
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
13
314
  }, "strip", z.ZodTypeAny, {
14
- type: "FUZZY" | "EXACT" | "RANGE";
315
+ type: "exact" | "fuzzy" | "range";
15
316
  }, {
16
- type: "FUZZY" | "EXACT" | "RANGE";
17
- }>>;
18
- }, "strip", z.ZodTypeAny, {
317
+ type: "exact" | "fuzzy" | "range";
318
+ }>;
319
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
320
+ value: z.ZodString;
321
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
322
+ id: string;
323
+ description: string;
324
+ defaultMessage: string;
325
+ }>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ value: string;
328
+ label: TranslationConfig;
329
+ }, {
330
+ value: string;
331
+ label: {
332
+ id: string;
333
+ description: string;
334
+ defaultMessage: string;
335
+ };
336
+ }>, "many">>;
337
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
338
+ }, {
339
+ fieldId: z.ZodString;
340
+ fieldType: z.ZodLiteral<"field">;
341
+ }>, "strip", z.ZodTypeAny, {
342
+ config: {
343
+ type: "exact" | "fuzzy" | "range";
344
+ };
19
345
  fieldId: string;
20
- config?: {
21
- type: "FUZZY" | "EXACT" | "RANGE";
22
- } | undefined;
346
+ fieldType: "field";
347
+ options?: {
348
+ value: string;
349
+ label: TranslationConfig;
350
+ }[] | undefined;
351
+ conditionals?: ({
352
+ type: "SHOW";
353
+ conditional: import(".").JSONSchema;
354
+ } | {
355
+ type: "ENABLE";
356
+ conditional: import(".").JSONSchema;
357
+ } | {
358
+ type: "DISPLAY_ON_REVIEW";
359
+ conditional: import(".").JSONSchema;
360
+ })[] | undefined;
23
361
  }, {
362
+ config: {
363
+ type: "exact" | "fuzzy" | "range";
364
+ };
24
365
  fieldId: string;
25
- config?: {
26
- type: "FUZZY" | "EXACT" | "RANGE";
27
- } | undefined;
28
- }>, "many">>>;
366
+ fieldType: "field";
367
+ options?: {
368
+ value: string;
369
+ label: {
370
+ id: string;
371
+ description: string;
372
+ defaultMessage: string;
373
+ };
374
+ }[] | undefined;
375
+ conditionals?: ({
376
+ type: "SHOW";
377
+ conditional: import(".").JSONSchema;
378
+ } | {
379
+ type: "ENABLE";
380
+ conditional: import(".").JSONSchema;
381
+ } | {
382
+ type: "DISPLAY_ON_REVIEW";
383
+ conditional: import(".").JSONSchema;
384
+ })[] | undefined;
385
+ }>, z.ZodObject<z.objectUtil.extendShape<{
386
+ config: z.ZodObject<{
387
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ type: "exact" | "fuzzy" | "range";
390
+ }, {
391
+ type: "exact" | "fuzzy" | "range";
392
+ }>;
393
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
+ value: z.ZodString;
395
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
396
+ id: string;
397
+ description: string;
398
+ defaultMessage: string;
399
+ }>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ value: string;
402
+ label: TranslationConfig;
403
+ }, {
404
+ value: string;
405
+ label: {
406
+ id: string;
407
+ description: string;
408
+ defaultMessage: string;
409
+ };
410
+ }>, "many">>;
411
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
412
+ }, {
413
+ fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
414
+ fieldType: z.ZodLiteral<"event">;
415
+ }>, "strip", z.ZodTypeAny, {
416
+ config: {
417
+ type: "exact" | "fuzzy" | "range";
418
+ };
419
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
420
+ fieldType: "event";
421
+ options?: {
422
+ value: string;
423
+ label: TranslationConfig;
424
+ }[] | undefined;
425
+ conditionals?: ({
426
+ type: "SHOW";
427
+ conditional: import(".").JSONSchema;
428
+ } | {
429
+ type: "ENABLE";
430
+ conditional: import(".").JSONSchema;
431
+ } | {
432
+ type: "DISPLAY_ON_REVIEW";
433
+ conditional: import(".").JSONSchema;
434
+ })[] | undefined;
435
+ }, {
436
+ config: {
437
+ type: "exact" | "fuzzy" | "range";
438
+ };
439
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
440
+ fieldType: "event";
441
+ options?: {
442
+ value: string;
443
+ label: {
444
+ id: string;
445
+ description: string;
446
+ defaultMessage: string;
447
+ };
448
+ }[] | undefined;
449
+ conditionals?: ({
450
+ type: "SHOW";
451
+ conditional: import(".").JSONSchema;
452
+ } | {
453
+ type: "ENABLE";
454
+ conditional: import(".").JSONSchema;
455
+ } | {
456
+ type: "DISPLAY_ON_REVIEW";
457
+ conditional: import(".").JSONSchema;
458
+ })[] | undefined;
459
+ }>]>, "many">;
29
460
  }, "strip", z.ZodTypeAny, {
30
461
  title: TranslationConfig;
31
- fields: {
462
+ fields: ({
463
+ config: {
464
+ type: "exact" | "fuzzy" | "range";
465
+ };
32
466
  fieldId: string;
33
- config?: {
34
- type: "FUZZY" | "EXACT" | "RANGE";
35
- } | undefined;
36
- }[];
467
+ fieldType: "field";
468
+ options?: {
469
+ value: string;
470
+ label: TranslationConfig;
471
+ }[] | undefined;
472
+ conditionals?: ({
473
+ type: "SHOW";
474
+ conditional: import(".").JSONSchema;
475
+ } | {
476
+ type: "ENABLE";
477
+ conditional: import(".").JSONSchema;
478
+ } | {
479
+ type: "DISPLAY_ON_REVIEW";
480
+ conditional: import(".").JSONSchema;
481
+ })[] | undefined;
482
+ } | {
483
+ config: {
484
+ type: "exact" | "fuzzy" | "range";
485
+ };
486
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
487
+ fieldType: "event";
488
+ options?: {
489
+ value: string;
490
+ label: TranslationConfig;
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
+ })[];
37
503
  }, {
38
504
  title: {
39
505
  id: string;
40
506
  description: string;
41
507
  defaultMessage: string;
42
508
  };
43
- fields?: {
509
+ fields: ({
510
+ config: {
511
+ type: "exact" | "fuzzy" | "range";
512
+ };
44
513
  fieldId: string;
45
- config?: {
46
- type: "FUZZY" | "EXACT" | "RANGE";
47
- } | undefined;
48
- }[] | undefined;
514
+ fieldType: "field";
515
+ options?: {
516
+ value: string;
517
+ label: {
518
+ id: string;
519
+ description: string;
520
+ defaultMessage: string;
521
+ };
522
+ }[] | undefined;
523
+ conditionals?: ({
524
+ type: "SHOW";
525
+ conditional: import(".").JSONSchema;
526
+ } | {
527
+ type: "ENABLE";
528
+ conditional: import(".").JSONSchema;
529
+ } | {
530
+ type: "DISPLAY_ON_REVIEW";
531
+ conditional: import(".").JSONSchema;
532
+ })[] | undefined;
533
+ } | {
534
+ config: {
535
+ type: "exact" | "fuzzy" | "range";
536
+ };
537
+ fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
538
+ fieldType: "event";
539
+ options?: {
540
+ value: string;
541
+ label: {
542
+ id: string;
543
+ description: string;
544
+ defaultMessage: string;
545
+ };
546
+ }[] | undefined;
547
+ conditionals?: ({
548
+ type: "SHOW";
549
+ conditional: import(".").JSONSchema;
550
+ } | {
551
+ type: "ENABLE";
552
+ conditional: import(".").JSONSchema;
553
+ } | {
554
+ type: "DISPLAY_ON_REVIEW";
555
+ conditional: import(".").JSONSchema;
556
+ })[] | undefined;
557
+ })[];
49
558
  }>;
559
+ export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
50
560
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
51
561
  //# sourceMappingURL=AdvancedSearchConfig.d.ts.map
@@ -117,6 +117,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
117
117
  street?: string | null | undefined;
118
118
  zipCode?: string | null | undefined;
119
119
  }>;
120
+ export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
120
121
  export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
121
122
  country: z.ZodString;
122
123
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -140,6 +141,7 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
140
141
  urbanOrRural: "RURAL";
141
142
  village?: string | null | undefined;
142
143
  }>;
144
+ export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
143
145
  export declare const GenericAddressValue: z.ZodObject<{
144
146
  country: z.ZodString;
145
147
  addressType: z.ZodLiteral<"INTERNATIONAL">;
@@ -289,6 +291,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
289
291
  addressLine3?: string | null | undefined;
290
292
  postcodeOrZip?: string | null | undefined;
291
293
  }>;
294
+ export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
292
295
  export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
293
296
  country: z.ZodString;
294
297
  addressType: z.ZodLiteral<"DOMESTIC">;