@opencrvs/toolkit 1.8.0-rc.fd8a78f → 1.8.0-rc.fd936ab

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 (41) hide show
  1. package/dist/commons/api/router.d.ts +447 -14227
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -14
  3. package/dist/commons/conditionals/validate.d.ts +6 -10
  4. package/dist/commons/events/ActionConfig.d.ts +1726 -117415
  5. package/dist/commons/events/ActionDocument.d.ts +383 -2305
  6. package/dist/commons/events/ActionInput.d.ts +303 -1583
  7. package/dist/commons/events/ActionType.d.ts +0 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +22 -1029
  9. package/dist/commons/events/CompositeFieldValue.d.ts +0 -31
  10. package/dist/commons/events/Draft.d.ts +29 -143
  11. package/dist/commons/events/EventConfig.d.ts +1361 -56376
  12. package/dist/commons/events/EventDocument.d.ts +264 -1428
  13. package/dist/commons/events/EventIndex.d.ts +25 -1590
  14. package/dist/commons/events/EventMetadata.d.ts +43 -299
  15. package/dist/commons/events/FieldConfig.d.ts +1060 -5458
  16. package/dist/commons/events/FieldType.d.ts +3 -6
  17. package/dist/commons/events/FieldTypeMapping.d.ts +54 -103
  18. package/dist/commons/events/FieldValue.d.ts +8 -49
  19. package/dist/commons/events/FormConfig.d.ts +524 -49166
  20. package/dist/commons/events/PageConfig.d.ts +208 -12210
  21. package/dist/commons/events/SummaryConfig.d.ts +42 -93
  22. package/dist/commons/events/User.d.ts +2 -31
  23. package/dist/commons/events/WorkqueueConfig.d.ts +20 -4803
  24. package/dist/commons/events/defineConfig.d.ts +75 -9010
  25. package/dist/commons/events/index.d.ts +0 -8
  26. package/dist/commons/events/test.utils.d.ts +78 -147
  27. package/dist/commons/events/utils.d.ts +68 -13352
  28. package/dist/conditionals/index.js +36 -76
  29. package/dist/events/index.js +1504 -3807
  30. package/dist/scopes/index.d.ts +6 -94
  31. package/dist/scopes/index.js +21 -42
  32. package/package.json +2 -3
  33. package/dist/commons/events/Constants.d.ts +0 -3
  34. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -2982
  35. package/dist/commons/events/CreatedAtLocation.d.ts +0 -3
  36. package/dist/commons/events/WorkqueueColumnConfig.d.ts +0 -53
  37. package/dist/commons/events/event.d.ts +0 -54
  38. package/dist/commons/events/field.d.ts +0 -77
  39. package/dist/commons/events/scopes.d.ts +0 -45
  40. package/dist/commons/events/serializer.d.ts +0 -2
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +0 -3
@@ -1,1058 +1,51 @@
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>;
422
- export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
423
- config: z.ZodObject<{
424
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
425
- }, "strip", z.ZodTypeAny, {
426
- type: "exact" | "fuzzy" | "range";
427
- }, {
428
- type: "exact" | "fuzzy" | "range";
429
- }>;
430
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
- value: z.ZodString;
432
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
433
- id: string;
434
- description: string;
435
- defaultMessage: string;
436
- }>;
437
- }, "strip", z.ZodTypeAny, {
438
- value: string;
439
- label: TranslationConfig;
440
- }, {
441
- value: string;
442
- label: {
443
- id: string;
444
- description: string;
445
- defaultMessage: string;
446
- };
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">>>;
454
- }, {
455
- fieldId: z.ZodString;
456
- fieldType: z.ZodLiteral<"field">;
457
- }>, "strip", z.ZodTypeAny, {
458
- config: {
459
- type: "exact" | "fuzzy" | "range";
460
- };
461
- fieldId: string;
462
- fieldType: "field";
463
- options?: {
464
- value: string;
465
- label: TranslationConfig;
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;
478
- }, {
479
- config: {
480
- type: "exact" | "fuzzy" | "range";
481
- };
482
- fieldId: string;
483
- fieldType: "field";
484
- options?: {
485
- value: string;
486
- label: {
487
- id: string;
488
- description: string;
489
- defaultMessage: string;
490
- };
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;
507
- }>;
508
- export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
509
- export type EventFieldId = z.infer<typeof EventFieldId>;
510
- export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
511
- config: z.ZodObject<{
512
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
513
- }, "strip", z.ZodTypeAny, {
514
- type: "exact" | "fuzzy" | "range";
515
- }, {
516
- type: "exact" | "fuzzy" | "range";
517
- }>;
518
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
519
- value: z.ZodString;
520
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
521
- id: string;
522
- description: string;
523
- defaultMessage: string;
524
- }>;
525
- }, "strip", z.ZodTypeAny, {
526
- value: string;
527
- label: TranslationConfig;
528
- }, {
529
- value: string;
530
- label: {
531
- id: string;
532
- description: string;
533
- defaultMessage: string;
534
- };
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">>>;
542
- }, {
543
- fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
544
- fieldType: z.ZodLiteral<"event">;
545
- }>, "strip", z.ZodTypeAny, {
546
- config: {
547
- type: "exact" | "fuzzy" | "range";
548
- };
549
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
550
- fieldType: "event";
551
- options?: {
552
- value: string;
553
- label: TranslationConfig;
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;
566
- }, {
567
- config: {
568
- type: "exact" | "fuzzy" | "range";
569
- };
570
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
571
- fieldType: "event";
572
- options?: {
573
- value: string;
574
- label: {
575
- id: string;
576
- description: string;
577
- defaultMessage: string;
578
- };
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;
595
- }>;
596
- export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
597
- config: z.ZodObject<{
598
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
599
- }, "strip", z.ZodTypeAny, {
600
- type: "exact" | "fuzzy" | "range";
601
- }, {
602
- type: "exact" | "fuzzy" | "range";
603
- }>;
604
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
605
- value: z.ZodString;
606
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
607
- id: string;
608
- description: string;
609
- defaultMessage: string;
610
- }>;
611
- }, "strip", z.ZodTypeAny, {
612
- value: string;
613
- label: TranslationConfig;
614
- }, {
615
- value: string;
616
- label: {
617
- id: string;
618
- description: string;
619
- defaultMessage: string;
620
- };
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">>>;
628
- }, {
629
- fieldId: z.ZodString;
630
- fieldType: z.ZodLiteral<"field">;
631
- }>, "strip", z.ZodTypeAny, {
632
- config: {
633
- type: "exact" | "fuzzy" | "range";
634
- };
635
- fieldId: string;
636
- fieldType: "field";
637
- options?: {
638
- value: string;
639
- label: TranslationConfig;
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;
652
- }, {
653
- config: {
654
- type: "exact" | "fuzzy" | "range";
655
- };
656
- fieldId: string;
657
- fieldType: "field";
658
- options?: {
659
- value: string;
660
- label: {
661
- id: string;
662
- description: string;
663
- defaultMessage: string;
664
- };
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;
681
- }>, z.ZodObject<z.objectUtil.extendShape<{
682
- config: z.ZodObject<{
683
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
684
- }, "strip", z.ZodTypeAny, {
685
- type: "exact" | "fuzzy" | "range";
686
- }, {
687
- type: "exact" | "fuzzy" | "range";
688
- }>;
689
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
690
- value: z.ZodString;
691
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
692
- id: string;
693
- description: string;
694
- defaultMessage: string;
695
- }>;
696
- }, "strip", z.ZodTypeAny, {
697
- value: string;
698
- label: TranslationConfig;
699
- }, {
700
- value: string;
701
- label: {
702
- id: string;
703
- description: string;
704
- defaultMessage: string;
705
- };
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">>>;
713
- }, {
714
- fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
715
- fieldType: z.ZodLiteral<"event">;
716
- }>, "strip", z.ZodTypeAny, {
717
- config: {
718
- type: "exact" | "fuzzy" | "range";
719
- };
720
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
721
- fieldType: "event";
722
- options?: {
723
- value: string;
724
- label: TranslationConfig;
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;
737
- }, {
738
- config: {
739
- type: "exact" | "fuzzy" | "range";
740
- };
741
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
742
- fieldType: "event";
743
- options?: {
744
- value: string;
745
- label: {
746
- id: string;
747
- description: string;
748
- defaultMessage: string;
749
- };
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;
766
- }>]>;
767
- export type SearchField = z.infer<typeof SearchField>;
768
3
  export declare const AdvancedSearchConfig: z.ZodObject<{
769
4
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
770
5
  id: string;
771
6
  description: string;
772
7
  defaultMessage: string;
773
8
  }>;
774
- fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
775
- config: z.ZodObject<{
776
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
777
- }, "strip", z.ZodTypeAny, {
778
- type: "exact" | "fuzzy" | "range";
779
- }, {
780
- type: "exact" | "fuzzy" | "range";
781
- }>;
782
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
783
- value: z.ZodString;
784
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
785
- id: string;
786
- description: string;
787
- defaultMessage: string;
788
- }>;
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"]>;
789
13
  }, "strip", z.ZodTypeAny, {
790
- value: string;
791
- label: TranslationConfig;
14
+ type: "FUZZY" | "EXACT" | "RANGE";
792
15
  }, {
793
- value: string;
794
- label: {
795
- id: string;
796
- description: string;
797
- defaultMessage: string;
798
- };
799
- }>, "many">>;
800
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
801
- id: string;
802
- description: string;
803
- defaultMessage: string;
16
+ type: "FUZZY" | "EXACT" | "RANGE";
804
17
  }>>;
805
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
806
- }, {
807
- fieldId: z.ZodString;
808
- fieldType: z.ZodLiteral<"field">;
809
- }>, "strip", z.ZodTypeAny, {
810
- config: {
811
- type: "exact" | "fuzzy" | "range";
812
- };
813
- fieldId: string;
814
- fieldType: "field";
815
- options?: {
816
- value: string;
817
- label: TranslationConfig;
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;
830
- }, {
831
- config: {
832
- type: "exact" | "fuzzy" | "range";
833
- };
18
+ }, "strip", z.ZodTypeAny, {
834
19
  fieldId: string;
835
- fieldType: "field";
836
- options?: {
837
- value: string;
838
- label: {
839
- id: string;
840
- description: string;
841
- defaultMessage: string;
842
- };
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;
20
+ config?: {
21
+ type: "FUZZY" | "EXACT" | "RANGE";
858
22
  } | undefined;
859
- }>, z.ZodObject<z.objectUtil.extendShape<{
860
- config: z.ZodObject<{
861
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
862
- }, "strip", z.ZodTypeAny, {
863
- type: "exact" | "fuzzy" | "range";
864
- }, {
865
- type: "exact" | "fuzzy" | "range";
866
- }>;
867
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
868
- value: z.ZodString;
869
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
870
- id: string;
871
- description: string;
872
- defaultMessage: string;
873
- }>;
874
- }, "strip", z.ZodTypeAny, {
875
- value: string;
876
- label: TranslationConfig;
877
- }, {
878
- value: string;
879
- label: {
880
- id: string;
881
- description: string;
882
- defaultMessage: string;
883
- };
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">>>;
891
- }, {
892
- fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
893
- fieldType: z.ZodLiteral<"event">;
894
- }>, "strip", z.ZodTypeAny, {
895
- config: {
896
- type: "exact" | "fuzzy" | "range";
897
- };
898
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
899
- fieldType: "event";
900
- options?: {
901
- value: string;
902
- label: TranslationConfig;
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;
915
23
  }, {
916
- config: {
917
- type: "exact" | "fuzzy" | "range";
918
- };
919
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
920
- fieldType: "event";
921
- options?: {
922
- value: string;
923
- label: {
924
- id: string;
925
- description: string;
926
- defaultMessage: string;
927
- };
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;
24
+ fieldId: string;
25
+ config?: {
26
+ type: "FUZZY" | "EXACT" | "RANGE";
943
27
  } | undefined;
944
- }>]>, "many">;
28
+ }>, "many">>>;
945
29
  }, "strip", z.ZodTypeAny, {
946
30
  title: TranslationConfig;
947
- fields: ({
948
- config: {
949
- type: "exact" | "fuzzy" | "range";
950
- };
31
+ fields: {
951
32
  fieldId: string;
952
- fieldType: "field";
953
- options?: {
954
- value: string;
955
- label: TranslationConfig;
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;
968
- } | {
969
- config: {
970
- type: "exact" | "fuzzy" | "range";
971
- };
972
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
973
- fieldType: "event";
974
- options?: {
975
- value: string;
976
- label: TranslationConfig;
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;
989
- })[];
33
+ config?: {
34
+ type: "FUZZY" | "EXACT" | "RANGE";
35
+ } | undefined;
36
+ }[];
990
37
  }, {
991
38
  title: {
992
39
  id: string;
993
40
  description: string;
994
41
  defaultMessage: string;
995
42
  };
996
- fields: ({
997
- config: {
998
- type: "exact" | "fuzzy" | "range";
999
- };
43
+ fields?: {
1000
44
  fieldId: string;
1001
- fieldType: "field";
1002
- options?: {
1003
- value: string;
1004
- label: {
1005
- id: string;
1006
- description: string;
1007
- defaultMessage: string;
1008
- };
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;
45
+ config?: {
46
+ type: "FUZZY" | "EXACT" | "RANGE";
1024
47
  } | undefined;
1025
- } | {
1026
- config: {
1027
- type: "exact" | "fuzzy" | "range";
1028
- };
1029
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
1030
- fieldType: "event";
1031
- options?: {
1032
- value: string;
1033
- label: {
1034
- id: string;
1035
- description: string;
1036
- defaultMessage: string;
1037
- };
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;
1054
- })[];
48
+ }[] | undefined;
1055
49
  }>;
1056
- export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
1057
50
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
1058
51
  //# sourceMappingURL=AdvancedSearchConfig.d.ts.map