@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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 (76) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +14568 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +194 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +129 -0
  10. package/dist/commons/events/ActionConfig.d.ts +2034 -0
  11. package/dist/commons/events/ActionDocument.d.ts +14400 -0
  12. package/dist/commons/events/ActionInput.d.ts +11157 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1175 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +181 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4494 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +209 -0
  21. package/dist/commons/events/Draft.d.ts +814 -0
  22. package/dist/commons/events/EventConfig.d.ts +2237 -0
  23. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  24. package/dist/commons/events/EventDocument.d.ts +8505 -0
  25. package/dist/commons/events/EventIndex.d.ts +3858 -0
  26. package/dist/commons/events/EventInput.d.ts +13 -0
  27. package/dist/commons/events/EventMetadata.d.ts +408 -0
  28. package/dist/commons/events/FieldConfig.d.ts +7125 -0
  29. package/dist/commons/events/FieldType.d.ts +46 -0
  30. package/dist/commons/events/FieldTypeMapping.d.ts +537 -0
  31. package/dist/commons/events/FieldValue.d.ts +250 -0
  32. package/dist/commons/events/FileUtils.d.ts +4 -0
  33. package/dist/commons/events/FormConfig.d.ts +725 -0
  34. package/dist/commons/events/PageConfig.d.ts +336 -0
  35. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  36. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  37. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  38. package/dist/commons/events/User.d.ts +45 -0
  39. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  40. package/dist/commons/events/WorkqueueConfig.d.ts +8997 -0
  41. package/dist/commons/events/deduplication.d.ts +32 -0
  42. package/dist/commons/events/defineConfig.d.ts +309 -0
  43. package/dist/commons/events/event.d.ts +109 -0
  44. package/dist/commons/events/field.d.ts +151 -0
  45. package/dist/commons/events/index.d.ts +46 -0
  46. package/dist/commons/events/locations.d.ts +24 -0
  47. package/dist/commons/events/scopes.d.ts +55 -0
  48. package/dist/commons/events/serializer.d.ts +2 -0
  49. package/dist/commons/events/state/availableActions.d.ts +6 -0
  50. package/dist/commons/events/state/flags.d.ts +4 -0
  51. package/dist/commons/events/state/index.d.ts +146 -0
  52. package/dist/commons/events/state/utils.d.ts +1263 -0
  53. package/dist/commons/events/test.utils.d.ts +473 -0
  54. package/dist/commons/events/transactions.d.ts +2 -0
  55. package/dist/commons/events/utils.d.ts +501 -0
  56. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  57. package/dist/commons/notification/UserNotifications.d.ts +632 -0
  58. package/dist/commons/notification/index.d.ts +2 -0
  59. package/dist/conditionals/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts.map +1 -0
  61. package/dist/conditionals/index.js +491 -0
  62. package/dist/events/deduplication.d.ts +32 -0
  63. package/dist/events/deduplication.d.ts.map +1 -0
  64. package/dist/events/deduplication.js +67 -0
  65. package/dist/events/index.d.ts +2 -0
  66. package/dist/events/index.d.ts.map +1 -0
  67. package/dist/events/index.js +8383 -0
  68. package/dist/notification/index.d.ts +2 -0
  69. package/dist/notification/index.d.ts.map +1 -0
  70. package/dist/notification/index.js +5928 -0
  71. package/dist/scopes/index.d.ts +335 -0
  72. package/dist/scopes/index.d.ts.map +1 -0
  73. package/dist/scopes/index.js +379 -0
  74. package/package.json +40 -0
  75. package/tsconfig.json +27 -0
  76. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,2237 @@
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ /**
4
+ * Description of event features defined by the country. Includes configuration for process steps and forms involved.
5
+ *
6
+ * `Event.parse(config)` will throw an error if the configuration is invalid.
7
+ */
8
+ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
9
+ id: z.ZodString;
10
+ dateOfEvent: z.ZodOptional<z.ZodObject<{
11
+ $$field: z.ZodString;
12
+ $$subfield: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ $$field: string;
15
+ $$subfield?: string[] | undefined;
16
+ }, {
17
+ $$field: string;
18
+ $$subfield?: string[] | undefined;
19
+ }>>;
20
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
21
+ id: string;
22
+ description: string;
23
+ defaultMessage: string;
24
+ }>;
25
+ fallbackTitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
26
+ id: string;
27
+ description: string;
28
+ defaultMessage: string;
29
+ }>>;
30
+ summary: z.ZodObject<{
31
+ fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
32
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
33
+ id: string;
34
+ description: string;
35
+ defaultMessage: string;
36
+ }>>;
37
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
38
+ type: z.ZodLiteral<"SHOW">;
39
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ type: "SHOW";
42
+ conditional: import(".").JSONSchema;
43
+ }, {
44
+ type: "SHOW";
45
+ conditional: import(".").JSONSchema;
46
+ }>, "many">>>;
47
+ }, {
48
+ id: z.ZodString;
49
+ value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
50
+ id: string;
51
+ description: string;
52
+ defaultMessage: string;
53
+ }>;
54
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
55
+ id: string;
56
+ description: string;
57
+ defaultMessage: string;
58
+ }>;
59
+ }>, "strip", z.ZodTypeAny, {
60
+ id: string;
61
+ value: TranslationConfig;
62
+ label: TranslationConfig;
63
+ conditionals?: {
64
+ type: "SHOW";
65
+ conditional: import(".").JSONSchema;
66
+ }[] | undefined;
67
+ emptyValueMessage?: TranslationConfig | undefined;
68
+ }, {
69
+ id: string;
70
+ value: {
71
+ id: string;
72
+ description: string;
73
+ defaultMessage: string;
74
+ };
75
+ label: {
76
+ id: string;
77
+ description: string;
78
+ defaultMessage: string;
79
+ };
80
+ conditionals?: {
81
+ type: "SHOW";
82
+ conditional: import(".").JSONSchema;
83
+ }[] | undefined;
84
+ emptyValueMessage?: {
85
+ id: string;
86
+ description: string;
87
+ defaultMessage: string;
88
+ } | undefined;
89
+ }>, z.ZodObject<z.objectUtil.extendShape<{
90
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
91
+ id: string;
92
+ description: string;
93
+ defaultMessage: string;
94
+ }>>;
95
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
96
+ type: z.ZodLiteral<"SHOW">;
97
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ type: "SHOW";
100
+ conditional: import(".").JSONSchema;
101
+ }, {
102
+ type: "SHOW";
103
+ conditional: import(".").JSONSchema;
104
+ }>, "many">>>;
105
+ }, {
106
+ fieldId: z.ZodString;
107
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
108
+ id: string;
109
+ description: string;
110
+ defaultMessage: string;
111
+ }>>;
112
+ }>, "strip", z.ZodTypeAny, {
113
+ fieldId: string;
114
+ label?: TranslationConfig | undefined;
115
+ conditionals?: {
116
+ type: "SHOW";
117
+ conditional: import(".").JSONSchema;
118
+ }[] | undefined;
119
+ emptyValueMessage?: TranslationConfig | undefined;
120
+ }, {
121
+ fieldId: string;
122
+ label?: {
123
+ id: string;
124
+ description: string;
125
+ defaultMessage: string;
126
+ } | undefined;
127
+ conditionals?: {
128
+ type: "SHOW";
129
+ conditional: import(".").JSONSchema;
130
+ }[] | undefined;
131
+ emptyValueMessage?: {
132
+ id: string;
133
+ description: string;
134
+ defaultMessage: string;
135
+ } | undefined;
136
+ }>]>, "many">;
137
+ }, "strip", z.ZodTypeAny, {
138
+ fields: ({
139
+ fieldId: string;
140
+ label?: TranslationConfig | undefined;
141
+ conditionals?: {
142
+ type: "SHOW";
143
+ conditional: import(".").JSONSchema;
144
+ }[] | undefined;
145
+ emptyValueMessage?: TranslationConfig | undefined;
146
+ } | {
147
+ id: string;
148
+ value: TranslationConfig;
149
+ label: TranslationConfig;
150
+ conditionals?: {
151
+ type: "SHOW";
152
+ conditional: import(".").JSONSchema;
153
+ }[] | undefined;
154
+ emptyValueMessage?: TranslationConfig | undefined;
155
+ })[];
156
+ }, {
157
+ fields: ({
158
+ fieldId: string;
159
+ label?: {
160
+ id: string;
161
+ description: string;
162
+ defaultMessage: string;
163
+ } | undefined;
164
+ conditionals?: {
165
+ type: "SHOW";
166
+ conditional: import(".").JSONSchema;
167
+ }[] | undefined;
168
+ emptyValueMessage?: {
169
+ id: string;
170
+ description: string;
171
+ defaultMessage: string;
172
+ } | undefined;
173
+ } | {
174
+ id: string;
175
+ value: {
176
+ id: string;
177
+ description: string;
178
+ defaultMessage: string;
179
+ };
180
+ label: {
181
+ id: string;
182
+ description: string;
183
+ defaultMessage: string;
184
+ };
185
+ conditionals?: {
186
+ type: "SHOW";
187
+ conditional: import(".").JSONSchema;
188
+ }[] | undefined;
189
+ emptyValueMessage?: {
190
+ id: string;
191
+ description: string;
192
+ defaultMessage: string;
193
+ } | undefined;
194
+ })[];
195
+ }>;
196
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
197
+ id: string;
198
+ description: string;
199
+ defaultMessage: string;
200
+ }>;
201
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./ActionConfig").AllActionConfigFields[]>, "many">;
202
+ declaration: z.ZodObject<{
203
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
204
+ id: string;
205
+ description: string;
206
+ defaultMessage: string;
207
+ }>;
208
+ pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
209
+ id: z.ZodString;
210
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
211
+ id: string;
212
+ description: string;
213
+ defaultMessage: string;
214
+ }>;
215
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
216
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
217
+ }, {
218
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
219
+ }>, "strip", z.ZodTypeAny, {
220
+ type: "FORM";
221
+ id: string;
222
+ title: TranslationConfig;
223
+ fields: import("./FieldConfig").FieldConfig[];
224
+ conditional?: import(".").JSONSchema | undefined;
225
+ }, {
226
+ id: string;
227
+ title: {
228
+ id: string;
229
+ description: string;
230
+ defaultMessage: string;
231
+ };
232
+ fields: import("./FieldConfig").FieldConfigInput[];
233
+ type?: "FORM" | undefined;
234
+ conditional?: import(".").JSONSchema | undefined;
235
+ }>, "many">;
236
+ }, "strip", z.ZodTypeAny, {
237
+ label: TranslationConfig;
238
+ pages: {
239
+ type: "FORM";
240
+ id: string;
241
+ title: TranslationConfig;
242
+ fields: import("./FieldConfig").FieldConfig[];
243
+ conditional?: import(".").JSONSchema | undefined;
244
+ }[];
245
+ }, {
246
+ label: {
247
+ id: string;
248
+ description: string;
249
+ defaultMessage: string;
250
+ };
251
+ pages: {
252
+ id: string;
253
+ title: {
254
+ id: string;
255
+ description: string;
256
+ defaultMessage: string;
257
+ };
258
+ fields: import("./FieldConfig").FieldConfigInput[];
259
+ type?: "FORM" | undefined;
260
+ conditional?: import(".").JSONSchema | undefined;
261
+ }[];
262
+ }>;
263
+ advancedSearch: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
264
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
265
+ id: string;
266
+ description: string;
267
+ defaultMessage: string;
268
+ }>;
269
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
270
+ config: z.ZodObject<{
271
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ type: "exact" | "fuzzy" | "range" | "within";
274
+ }, {
275
+ type: "exact" | "fuzzy" | "range" | "within";
276
+ }>;
277
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
278
+ value: z.ZodString;
279
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
280
+ id: string;
281
+ description: string;
282
+ defaultMessage: string;
283
+ }>]>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ value: string;
286
+ label: string | TranslationConfig;
287
+ }, {
288
+ value: string;
289
+ label: string | {
290
+ id: string;
291
+ description: string;
292
+ defaultMessage: string;
293
+ };
294
+ }>, "many">>;
295
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
296
+ id: string;
297
+ description: string;
298
+ defaultMessage: string;
299
+ }>>;
300
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
301
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
302
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
303
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
304
+ id: string;
305
+ description: string;
306
+ defaultMessage: string;
307
+ }>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ message: TranslationConfig;
310
+ validator: import(".").JSONSchema;
311
+ }, {
312
+ message: {
313
+ id: string;
314
+ description: string;
315
+ defaultMessage: string;
316
+ };
317
+ validator: import(".").JSONSchema;
318
+ }>, "many">>>;
319
+ }, {
320
+ fieldId: z.ZodString;
321
+ fieldType: z.ZodLiteral<"field">;
322
+ }>, "strip", z.ZodTypeAny, {
323
+ config: {
324
+ type: "exact" | "fuzzy" | "range" | "within";
325
+ };
326
+ fieldId: string;
327
+ fieldType: "field";
328
+ options?: {
329
+ value: string;
330
+ label: string | TranslationConfig;
331
+ }[] | undefined;
332
+ conditionals?: ({
333
+ type: "SHOW";
334
+ conditional: import(".").JSONSchema;
335
+ } | {
336
+ type: "ENABLE";
337
+ conditional: import(".").JSONSchema;
338
+ } | {
339
+ type: "DISPLAY_ON_REVIEW";
340
+ conditional: import(".").JSONSchema;
341
+ })[] | undefined;
342
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
343
+ validations?: {
344
+ message: TranslationConfig;
345
+ validator: import(".").JSONSchema;
346
+ }[] | undefined;
347
+ }, {
348
+ config: {
349
+ type: "exact" | "fuzzy" | "range" | "within";
350
+ };
351
+ fieldId: string;
352
+ fieldType: "field";
353
+ options?: {
354
+ value: string;
355
+ label: string | {
356
+ id: string;
357
+ description: string;
358
+ defaultMessage: string;
359
+ };
360
+ }[] | undefined;
361
+ conditionals?: ({
362
+ type: "SHOW";
363
+ conditional: import(".").JSONSchema;
364
+ } | {
365
+ type: "ENABLE";
366
+ conditional: import(".").JSONSchema;
367
+ } | {
368
+ type: "DISPLAY_ON_REVIEW";
369
+ conditional: import(".").JSONSchema;
370
+ })[] | undefined;
371
+ searchCriteriaLabelPrefix?: {
372
+ id: string;
373
+ description: string;
374
+ defaultMessage: string;
375
+ } | undefined;
376
+ validations?: {
377
+ message: {
378
+ id: string;
379
+ description: string;
380
+ defaultMessage: string;
381
+ };
382
+ validator: import(".").JSONSchema;
383
+ }[] | undefined;
384
+ }>, z.ZodObject<z.objectUtil.extendShape<{
385
+ config: z.ZodObject<{
386
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ type: "exact" | "fuzzy" | "range" | "within";
389
+ }, {
390
+ type: "exact" | "fuzzy" | "range" | "within";
391
+ }>;
392
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
393
+ value: z.ZodString;
394
+ label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
395
+ id: string;
396
+ description: string;
397
+ defaultMessage: string;
398
+ }>]>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ value: string;
401
+ label: string | TranslationConfig;
402
+ }, {
403
+ value: string;
404
+ label: string | {
405
+ id: string;
406
+ description: string;
407
+ defaultMessage: string;
408
+ };
409
+ }>, "many">>;
410
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
411
+ id: string;
412
+ description: string;
413
+ defaultMessage: string;
414
+ }>>;
415
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
416
+ validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
417
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
418
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
419
+ id: string;
420
+ description: string;
421
+ defaultMessage: string;
422
+ }>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ message: TranslationConfig;
425
+ validator: import(".").JSONSchema;
426
+ }, {
427
+ message: {
428
+ id: string;
429
+ description: string;
430
+ defaultMessage: string;
431
+ };
432
+ validator: import(".").JSONSchema;
433
+ }>, "many">>>;
434
+ }, {
435
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
436
+ fieldType: z.ZodLiteral<"event">;
437
+ }>, "strip", z.ZodTypeAny, {
438
+ config: {
439
+ type: "exact" | "fuzzy" | "range" | "within";
440
+ };
441
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
442
+ fieldType: "event";
443
+ options?: {
444
+ value: string;
445
+ label: string | TranslationConfig;
446
+ }[] | undefined;
447
+ conditionals?: ({
448
+ type: "SHOW";
449
+ conditional: import(".").JSONSchema;
450
+ } | {
451
+ type: "ENABLE";
452
+ conditional: import(".").JSONSchema;
453
+ } | {
454
+ type: "DISPLAY_ON_REVIEW";
455
+ conditional: import(".").JSONSchema;
456
+ })[] | undefined;
457
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
458
+ validations?: {
459
+ message: TranslationConfig;
460
+ validator: import(".").JSONSchema;
461
+ }[] | undefined;
462
+ }, {
463
+ config: {
464
+ type: "exact" | "fuzzy" | "range" | "within";
465
+ };
466
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
467
+ fieldType: "event";
468
+ options?: {
469
+ value: string;
470
+ label: string | {
471
+ id: string;
472
+ description: string;
473
+ defaultMessage: string;
474
+ };
475
+ }[] | undefined;
476
+ conditionals?: ({
477
+ type: "SHOW";
478
+ conditional: import(".").JSONSchema;
479
+ } | {
480
+ type: "ENABLE";
481
+ conditional: import(".").JSONSchema;
482
+ } | {
483
+ type: "DISPLAY_ON_REVIEW";
484
+ conditional: import(".").JSONSchema;
485
+ })[] | undefined;
486
+ searchCriteriaLabelPrefix?: {
487
+ id: string;
488
+ description: string;
489
+ defaultMessage: string;
490
+ } | undefined;
491
+ validations?: {
492
+ message: {
493
+ id: string;
494
+ description: string;
495
+ defaultMessage: string;
496
+ };
497
+ validator: import(".").JSONSchema;
498
+ }[] | undefined;
499
+ }>]>, "many">;
500
+ }, "strip", z.ZodTypeAny, {
501
+ title: TranslationConfig;
502
+ fields: ({
503
+ config: {
504
+ type: "exact" | "fuzzy" | "range" | "within";
505
+ };
506
+ fieldId: string;
507
+ fieldType: "field";
508
+ options?: {
509
+ value: string;
510
+ label: string | TranslationConfig;
511
+ }[] | undefined;
512
+ conditionals?: ({
513
+ type: "SHOW";
514
+ conditional: import(".").JSONSchema;
515
+ } | {
516
+ type: "ENABLE";
517
+ conditional: import(".").JSONSchema;
518
+ } | {
519
+ type: "DISPLAY_ON_REVIEW";
520
+ conditional: import(".").JSONSchema;
521
+ })[] | undefined;
522
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
523
+ validations?: {
524
+ message: TranslationConfig;
525
+ validator: import(".").JSONSchema;
526
+ }[] | undefined;
527
+ } | {
528
+ config: {
529
+ type: "exact" | "fuzzy" | "range" | "within";
530
+ };
531
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
532
+ fieldType: "event";
533
+ options?: {
534
+ value: string;
535
+ label: string | TranslationConfig;
536
+ }[] | undefined;
537
+ conditionals?: ({
538
+ type: "SHOW";
539
+ conditional: import(".").JSONSchema;
540
+ } | {
541
+ type: "ENABLE";
542
+ conditional: import(".").JSONSchema;
543
+ } | {
544
+ type: "DISPLAY_ON_REVIEW";
545
+ conditional: import(".").JSONSchema;
546
+ })[] | undefined;
547
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
548
+ validations?: {
549
+ message: TranslationConfig;
550
+ validator: import(".").JSONSchema;
551
+ }[] | undefined;
552
+ })[];
553
+ }, {
554
+ title: {
555
+ id: string;
556
+ description: string;
557
+ defaultMessage: string;
558
+ };
559
+ fields: ({
560
+ config: {
561
+ type: "exact" | "fuzzy" | "range" | "within";
562
+ };
563
+ fieldId: string;
564
+ fieldType: "field";
565
+ options?: {
566
+ value: string;
567
+ label: string | {
568
+ id: string;
569
+ description: string;
570
+ defaultMessage: string;
571
+ };
572
+ }[] | undefined;
573
+ conditionals?: ({
574
+ type: "SHOW";
575
+ conditional: import(".").JSONSchema;
576
+ } | {
577
+ type: "ENABLE";
578
+ conditional: import(".").JSONSchema;
579
+ } | {
580
+ type: "DISPLAY_ON_REVIEW";
581
+ conditional: import(".").JSONSchema;
582
+ })[] | undefined;
583
+ searchCriteriaLabelPrefix?: {
584
+ id: string;
585
+ description: string;
586
+ defaultMessage: string;
587
+ } | undefined;
588
+ validations?: {
589
+ message: {
590
+ id: string;
591
+ description: string;
592
+ defaultMessage: string;
593
+ };
594
+ validator: import(".").JSONSchema;
595
+ }[] | undefined;
596
+ } | {
597
+ config: {
598
+ type: "exact" | "fuzzy" | "range" | "within";
599
+ };
600
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
601
+ fieldType: "event";
602
+ options?: {
603
+ value: string;
604
+ label: string | {
605
+ id: string;
606
+ description: string;
607
+ defaultMessage: string;
608
+ };
609
+ }[] | undefined;
610
+ conditionals?: ({
611
+ type: "SHOW";
612
+ conditional: import(".").JSONSchema;
613
+ } | {
614
+ type: "ENABLE";
615
+ conditional: import(".").JSONSchema;
616
+ } | {
617
+ type: "DISPLAY_ON_REVIEW";
618
+ conditional: import(".").JSONSchema;
619
+ })[] | undefined;
620
+ searchCriteriaLabelPrefix?: {
621
+ id: string;
622
+ description: string;
623
+ defaultMessage: string;
624
+ } | undefined;
625
+ validations?: {
626
+ message: {
627
+ id: string;
628
+ description: string;
629
+ defaultMessage: string;
630
+ };
631
+ validator: import(".").JSONSchema;
632
+ }[] | undefined;
633
+ })[];
634
+ }>, "many">>>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ id: string;
637
+ title: TranslationConfig;
638
+ declaration: {
639
+ label: TranslationConfig;
640
+ pages: {
641
+ type: "FORM";
642
+ id: string;
643
+ title: TranslationConfig;
644
+ fields: import("./FieldConfig").FieldConfig[];
645
+ conditional?: import(".").JSONSchema | undefined;
646
+ }[];
647
+ };
648
+ actions: ({
649
+ type: "READ";
650
+ label: TranslationConfig;
651
+ conditionals: ({
652
+ type: "SHOW";
653
+ conditional: import(".").JSONSchema;
654
+ } | {
655
+ type: "ENABLE";
656
+ conditional: import(".").JSONSchema;
657
+ })[];
658
+ review: {
659
+ title: TranslationConfig;
660
+ fields: import("./FieldConfig").FieldConfig[];
661
+ };
662
+ draft?: boolean | undefined;
663
+ } | {
664
+ type: "DECLARE";
665
+ label: TranslationConfig;
666
+ conditionals: ({
667
+ type: "SHOW";
668
+ conditional: import(".").JSONSchema;
669
+ } | {
670
+ type: "ENABLE";
671
+ conditional: import(".").JSONSchema;
672
+ })[];
673
+ review: {
674
+ title: TranslationConfig;
675
+ fields: import("./FieldConfig").FieldConfig[];
676
+ };
677
+ draft?: boolean | undefined;
678
+ deduplication?: {
679
+ id: string;
680
+ label: TranslationConfig;
681
+ query: import("./DeduplicationConfig").ClauseOutput;
682
+ } | undefined;
683
+ } | {
684
+ type: "VALIDATE";
685
+ label: TranslationConfig;
686
+ conditionals: ({
687
+ type: "SHOW";
688
+ conditional: import(".").JSONSchema;
689
+ } | {
690
+ type: "ENABLE";
691
+ conditional: import(".").JSONSchema;
692
+ })[];
693
+ review: {
694
+ title: TranslationConfig;
695
+ fields: import("./FieldConfig").FieldConfig[];
696
+ };
697
+ draft?: boolean | undefined;
698
+ deduplication?: {
699
+ id: string;
700
+ label: TranslationConfig;
701
+ query: import("./DeduplicationConfig").ClauseOutput;
702
+ } | undefined;
703
+ } | {
704
+ type: "REGISTER";
705
+ label: TranslationConfig;
706
+ conditionals: ({
707
+ type: "SHOW";
708
+ conditional: import(".").JSONSchema;
709
+ } | {
710
+ type: "ENABLE";
711
+ conditional: import(".").JSONSchema;
712
+ })[];
713
+ review: {
714
+ title: TranslationConfig;
715
+ fields: import("./FieldConfig").FieldConfig[];
716
+ };
717
+ draft?: boolean | undefined;
718
+ deduplication?: {
719
+ id: string;
720
+ label: TranslationConfig;
721
+ query: import("./DeduplicationConfig").ClauseOutput;
722
+ } | undefined;
723
+ } | {
724
+ type: "REJECT";
725
+ label: TranslationConfig;
726
+ conditionals: ({
727
+ type: "SHOW";
728
+ conditional: import(".").JSONSchema;
729
+ } | {
730
+ type: "ENABLE";
731
+ conditional: import(".").JSONSchema;
732
+ })[];
733
+ draft?: boolean | undefined;
734
+ } | {
735
+ type: "ARCHIVE";
736
+ label: TranslationConfig;
737
+ conditionals: ({
738
+ type: "SHOW";
739
+ conditional: import(".").JSONSchema;
740
+ } | {
741
+ type: "ENABLE";
742
+ conditional: import(".").JSONSchema;
743
+ })[];
744
+ draft?: boolean | undefined;
745
+ } | {
746
+ type: "DELETE";
747
+ label: TranslationConfig;
748
+ conditionals: ({
749
+ type: "SHOW";
750
+ conditional: import(".").JSONSchema;
751
+ } | {
752
+ type: "ENABLE";
753
+ conditional: import(".").JSONSchema;
754
+ })[];
755
+ draft?: boolean | undefined;
756
+ } | {
757
+ type: "PRINT_CERTIFICATE";
758
+ label: TranslationConfig;
759
+ conditionals: ({
760
+ type: "SHOW";
761
+ conditional: import(".").JSONSchema;
762
+ } | {
763
+ type: "ENABLE";
764
+ conditional: import(".").JSONSchema;
765
+ })[];
766
+ printForm: {
767
+ label: TranslationConfig;
768
+ pages: ({
769
+ type: "FORM";
770
+ id: string;
771
+ title: TranslationConfig;
772
+ fields: import("./FieldConfig").FieldConfig[];
773
+ conditional?: import(".").JSONSchema | undefined;
774
+ } | {
775
+ type: "VERIFICATION";
776
+ id: string;
777
+ title: TranslationConfig;
778
+ actions: {
779
+ verify: {
780
+ label: TranslationConfig;
781
+ };
782
+ cancel: {
783
+ label: TranslationConfig;
784
+ confirmation: {
785
+ title: TranslationConfig;
786
+ body: TranslationConfig;
787
+ };
788
+ };
789
+ };
790
+ fields: import("./FieldConfig").FieldConfig[];
791
+ conditional?: import(".").JSONSchema | undefined;
792
+ })[];
793
+ };
794
+ draft?: boolean | undefined;
795
+ } | {
796
+ type: "REQUEST_CORRECTION";
797
+ label: TranslationConfig;
798
+ conditionals: ({
799
+ type: "SHOW";
800
+ conditional: import(".").JSONSchema;
801
+ } | {
802
+ type: "ENABLE";
803
+ conditional: import(".").JSONSchema;
804
+ })[];
805
+ correctionForm: {
806
+ label: TranslationConfig;
807
+ pages: ({
808
+ type: "FORM";
809
+ id: string;
810
+ title: TranslationConfig;
811
+ fields: import("./FieldConfig").FieldConfig[];
812
+ conditional?: import(".").JSONSchema | undefined;
813
+ } | {
814
+ type: "VERIFICATION";
815
+ id: string;
816
+ title: TranslationConfig;
817
+ actions: {
818
+ verify: {
819
+ label: TranslationConfig;
820
+ };
821
+ cancel: {
822
+ label: TranslationConfig;
823
+ confirmation: {
824
+ title: TranslationConfig;
825
+ body: TranslationConfig;
826
+ };
827
+ };
828
+ };
829
+ fields: import("./FieldConfig").FieldConfig[];
830
+ conditional?: import(".").JSONSchema | undefined;
831
+ })[];
832
+ };
833
+ draft?: boolean | undefined;
834
+ } | {
835
+ type: "REJECT_CORRECTION";
836
+ label: TranslationConfig;
837
+ conditionals: ({
838
+ type: "SHOW";
839
+ conditional: import(".").JSONSchema;
840
+ } | {
841
+ type: "ENABLE";
842
+ conditional: import(".").JSONSchema;
843
+ })[];
844
+ draft?: boolean | undefined;
845
+ } | {
846
+ type: "APPROVE_CORRECTION";
847
+ label: TranslationConfig;
848
+ conditionals: ({
849
+ type: "SHOW";
850
+ conditional: import(".").JSONSchema;
851
+ } | {
852
+ type: "ENABLE";
853
+ conditional: import(".").JSONSchema;
854
+ })[];
855
+ draft?: boolean | undefined;
856
+ })[];
857
+ label: TranslationConfig;
858
+ summary: {
859
+ fields: ({
860
+ fieldId: string;
861
+ label?: TranslationConfig | undefined;
862
+ conditionals?: {
863
+ type: "SHOW";
864
+ conditional: import(".").JSONSchema;
865
+ }[] | undefined;
866
+ emptyValueMessage?: TranslationConfig | undefined;
867
+ } | {
868
+ id: string;
869
+ value: TranslationConfig;
870
+ label: TranslationConfig;
871
+ conditionals?: {
872
+ type: "SHOW";
873
+ conditional: import(".").JSONSchema;
874
+ }[] | undefined;
875
+ emptyValueMessage?: TranslationConfig | undefined;
876
+ })[];
877
+ };
878
+ advancedSearch: {
879
+ title: TranslationConfig;
880
+ fields: ({
881
+ config: {
882
+ type: "exact" | "fuzzy" | "range" | "within";
883
+ };
884
+ fieldId: string;
885
+ fieldType: "field";
886
+ options?: {
887
+ value: string;
888
+ label: string | TranslationConfig;
889
+ }[] | undefined;
890
+ conditionals?: ({
891
+ type: "SHOW";
892
+ conditional: import(".").JSONSchema;
893
+ } | {
894
+ type: "ENABLE";
895
+ conditional: import(".").JSONSchema;
896
+ } | {
897
+ type: "DISPLAY_ON_REVIEW";
898
+ conditional: import(".").JSONSchema;
899
+ })[] | undefined;
900
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
901
+ validations?: {
902
+ message: TranslationConfig;
903
+ validator: import(".").JSONSchema;
904
+ }[] | undefined;
905
+ } | {
906
+ config: {
907
+ type: "exact" | "fuzzy" | "range" | "within";
908
+ };
909
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
910
+ fieldType: "event";
911
+ options?: {
912
+ value: string;
913
+ label: string | TranslationConfig;
914
+ }[] | undefined;
915
+ conditionals?: ({
916
+ type: "SHOW";
917
+ conditional: import(".").JSONSchema;
918
+ } | {
919
+ type: "ENABLE";
920
+ conditional: import(".").JSONSchema;
921
+ } | {
922
+ type: "DISPLAY_ON_REVIEW";
923
+ conditional: import(".").JSONSchema;
924
+ })[] | undefined;
925
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
926
+ validations?: {
927
+ message: TranslationConfig;
928
+ validator: import(".").JSONSchema;
929
+ }[] | undefined;
930
+ })[];
931
+ }[];
932
+ dateOfEvent?: {
933
+ $$field: string;
934
+ $$subfield?: string[] | undefined;
935
+ } | undefined;
936
+ fallbackTitle?: TranslationConfig | undefined;
937
+ }, {
938
+ id: string;
939
+ title: {
940
+ id: string;
941
+ description: string;
942
+ defaultMessage: string;
943
+ };
944
+ declaration: {
945
+ label: {
946
+ id: string;
947
+ description: string;
948
+ defaultMessage: string;
949
+ };
950
+ pages: {
951
+ id: string;
952
+ title: {
953
+ id: string;
954
+ description: string;
955
+ defaultMessage: string;
956
+ };
957
+ fields: import("./FieldConfig").FieldConfigInput[];
958
+ type?: "FORM" | undefined;
959
+ conditional?: import(".").JSONSchema | undefined;
960
+ }[];
961
+ };
962
+ actions: ({
963
+ type: "READ";
964
+ label: {
965
+ id: string;
966
+ description: string;
967
+ defaultMessage: string;
968
+ };
969
+ review: {
970
+ title: {
971
+ id: string;
972
+ description: string;
973
+ defaultMessage: string;
974
+ };
975
+ fields: import("./FieldConfig").FieldConfigInput[];
976
+ };
977
+ draft?: boolean | undefined;
978
+ conditionals?: ({
979
+ type: "SHOW";
980
+ conditional: import(".").JSONSchema;
981
+ } | {
982
+ type: "ENABLE";
983
+ conditional: import(".").JSONSchema;
984
+ })[] | undefined;
985
+ } | {
986
+ type: "DECLARE";
987
+ label: {
988
+ id: string;
989
+ description: string;
990
+ defaultMessage: string;
991
+ };
992
+ review: {
993
+ title: {
994
+ id: string;
995
+ description: string;
996
+ defaultMessage: string;
997
+ };
998
+ fields: import("./FieldConfig").FieldConfigInput[];
999
+ };
1000
+ draft?: boolean | undefined;
1001
+ conditionals?: ({
1002
+ type: "SHOW";
1003
+ conditional: import(".").JSONSchema;
1004
+ } | {
1005
+ type: "ENABLE";
1006
+ conditional: import(".").JSONSchema;
1007
+ })[] | undefined;
1008
+ deduplication?: {
1009
+ id: string;
1010
+ label: {
1011
+ id: string;
1012
+ description: string;
1013
+ defaultMessage: string;
1014
+ };
1015
+ query: import("./DeduplicationConfig").ClauseInput;
1016
+ } | undefined;
1017
+ } | {
1018
+ type: "VALIDATE";
1019
+ label: {
1020
+ id: string;
1021
+ description: string;
1022
+ defaultMessage: string;
1023
+ };
1024
+ review: {
1025
+ title: {
1026
+ id: string;
1027
+ description: string;
1028
+ defaultMessage: string;
1029
+ };
1030
+ fields: import("./FieldConfig").FieldConfigInput[];
1031
+ };
1032
+ draft?: boolean | undefined;
1033
+ conditionals?: ({
1034
+ type: "SHOW";
1035
+ conditional: import(".").JSONSchema;
1036
+ } | {
1037
+ type: "ENABLE";
1038
+ conditional: import(".").JSONSchema;
1039
+ })[] | undefined;
1040
+ deduplication?: {
1041
+ id: string;
1042
+ label: {
1043
+ id: string;
1044
+ description: string;
1045
+ defaultMessage: string;
1046
+ };
1047
+ query: import("./DeduplicationConfig").ClauseInput;
1048
+ } | undefined;
1049
+ } | {
1050
+ type: "REGISTER";
1051
+ label: {
1052
+ id: string;
1053
+ description: string;
1054
+ defaultMessage: string;
1055
+ };
1056
+ review: {
1057
+ title: {
1058
+ id: string;
1059
+ description: string;
1060
+ defaultMessage: string;
1061
+ };
1062
+ fields: import("./FieldConfig").FieldConfigInput[];
1063
+ };
1064
+ draft?: boolean | undefined;
1065
+ conditionals?: ({
1066
+ type: "SHOW";
1067
+ conditional: import(".").JSONSchema;
1068
+ } | {
1069
+ type: "ENABLE";
1070
+ conditional: import(".").JSONSchema;
1071
+ })[] | undefined;
1072
+ deduplication?: {
1073
+ id: string;
1074
+ label: {
1075
+ id: string;
1076
+ description: string;
1077
+ defaultMessage: string;
1078
+ };
1079
+ query: import("./DeduplicationConfig").ClauseInput;
1080
+ } | undefined;
1081
+ } | {
1082
+ type: "REJECT";
1083
+ label: {
1084
+ id: string;
1085
+ description: string;
1086
+ defaultMessage: string;
1087
+ };
1088
+ draft?: boolean | undefined;
1089
+ conditionals?: ({
1090
+ type: "SHOW";
1091
+ conditional: import(".").JSONSchema;
1092
+ } | {
1093
+ type: "ENABLE";
1094
+ conditional: import(".").JSONSchema;
1095
+ })[] | undefined;
1096
+ } | {
1097
+ type: "ARCHIVE";
1098
+ label: {
1099
+ id: string;
1100
+ description: string;
1101
+ defaultMessage: string;
1102
+ };
1103
+ draft?: boolean | undefined;
1104
+ conditionals?: ({
1105
+ type: "SHOW";
1106
+ conditional: import(".").JSONSchema;
1107
+ } | {
1108
+ type: "ENABLE";
1109
+ conditional: import(".").JSONSchema;
1110
+ })[] | undefined;
1111
+ } | {
1112
+ type: "DELETE";
1113
+ label: {
1114
+ id: string;
1115
+ description: string;
1116
+ defaultMessage: string;
1117
+ };
1118
+ draft?: boolean | undefined;
1119
+ conditionals?: ({
1120
+ type: "SHOW";
1121
+ conditional: import(".").JSONSchema;
1122
+ } | {
1123
+ type: "ENABLE";
1124
+ conditional: import(".").JSONSchema;
1125
+ })[] | undefined;
1126
+ } | {
1127
+ type: "PRINT_CERTIFICATE";
1128
+ label: {
1129
+ id: string;
1130
+ description: string;
1131
+ defaultMessage: string;
1132
+ };
1133
+ printForm: {
1134
+ label: {
1135
+ id: string;
1136
+ description: string;
1137
+ defaultMessage: string;
1138
+ };
1139
+ pages: ({
1140
+ id: string;
1141
+ title: {
1142
+ id: string;
1143
+ description: string;
1144
+ defaultMessage: string;
1145
+ };
1146
+ fields: import("./FieldConfig").FieldConfigInput[];
1147
+ type?: "FORM" | undefined;
1148
+ conditional?: import(".").JSONSchema | undefined;
1149
+ } | {
1150
+ type: "VERIFICATION";
1151
+ id: string;
1152
+ title: {
1153
+ id: string;
1154
+ description: string;
1155
+ defaultMessage: string;
1156
+ };
1157
+ actions: {
1158
+ verify: {
1159
+ label: {
1160
+ id: string;
1161
+ description: string;
1162
+ defaultMessage: string;
1163
+ };
1164
+ };
1165
+ cancel: {
1166
+ label: {
1167
+ id: string;
1168
+ description: string;
1169
+ defaultMessage: string;
1170
+ };
1171
+ confirmation: {
1172
+ title: {
1173
+ id: string;
1174
+ description: string;
1175
+ defaultMessage: string;
1176
+ };
1177
+ body: {
1178
+ id: string;
1179
+ description: string;
1180
+ defaultMessage: string;
1181
+ };
1182
+ };
1183
+ };
1184
+ };
1185
+ fields: import("./FieldConfig").FieldConfigInput[];
1186
+ conditional?: import(".").JSONSchema | undefined;
1187
+ })[];
1188
+ };
1189
+ draft?: boolean | undefined;
1190
+ conditionals?: ({
1191
+ type: "SHOW";
1192
+ conditional: import(".").JSONSchema;
1193
+ } | {
1194
+ type: "ENABLE";
1195
+ conditional: import(".").JSONSchema;
1196
+ })[] | undefined;
1197
+ } | {
1198
+ type: "REQUEST_CORRECTION";
1199
+ label: {
1200
+ id: string;
1201
+ description: string;
1202
+ defaultMessage: string;
1203
+ };
1204
+ correctionForm: {
1205
+ label: {
1206
+ id: string;
1207
+ description: string;
1208
+ defaultMessage: string;
1209
+ };
1210
+ pages: ({
1211
+ id: string;
1212
+ title: {
1213
+ id: string;
1214
+ description: string;
1215
+ defaultMessage: string;
1216
+ };
1217
+ fields: import("./FieldConfig").FieldConfigInput[];
1218
+ type?: "FORM" | undefined;
1219
+ conditional?: import(".").JSONSchema | undefined;
1220
+ } | {
1221
+ type: "VERIFICATION";
1222
+ id: string;
1223
+ title: {
1224
+ id: string;
1225
+ description: string;
1226
+ defaultMessage: string;
1227
+ };
1228
+ actions: {
1229
+ verify: {
1230
+ label: {
1231
+ id: string;
1232
+ description: string;
1233
+ defaultMessage: string;
1234
+ };
1235
+ };
1236
+ cancel: {
1237
+ label: {
1238
+ id: string;
1239
+ description: string;
1240
+ defaultMessage: string;
1241
+ };
1242
+ confirmation: {
1243
+ title: {
1244
+ id: string;
1245
+ description: string;
1246
+ defaultMessage: string;
1247
+ };
1248
+ body: {
1249
+ id: string;
1250
+ description: string;
1251
+ defaultMessage: string;
1252
+ };
1253
+ };
1254
+ };
1255
+ };
1256
+ fields: import("./FieldConfig").FieldConfigInput[];
1257
+ conditional?: import(".").JSONSchema | undefined;
1258
+ })[];
1259
+ };
1260
+ draft?: boolean | undefined;
1261
+ conditionals?: ({
1262
+ type: "SHOW";
1263
+ conditional: import(".").JSONSchema;
1264
+ } | {
1265
+ type: "ENABLE";
1266
+ conditional: import(".").JSONSchema;
1267
+ })[] | undefined;
1268
+ } | {
1269
+ type: "REJECT_CORRECTION";
1270
+ label: {
1271
+ id: string;
1272
+ description: string;
1273
+ defaultMessage: string;
1274
+ };
1275
+ draft?: boolean | undefined;
1276
+ conditionals?: ({
1277
+ type: "SHOW";
1278
+ conditional: import(".").JSONSchema;
1279
+ } | {
1280
+ type: "ENABLE";
1281
+ conditional: import(".").JSONSchema;
1282
+ })[] | undefined;
1283
+ } | {
1284
+ type: "APPROVE_CORRECTION";
1285
+ label: {
1286
+ id: string;
1287
+ description: string;
1288
+ defaultMessage: string;
1289
+ };
1290
+ draft?: boolean | undefined;
1291
+ conditionals?: ({
1292
+ type: "SHOW";
1293
+ conditional: import(".").JSONSchema;
1294
+ } | {
1295
+ type: "ENABLE";
1296
+ conditional: import(".").JSONSchema;
1297
+ })[] | undefined;
1298
+ })[];
1299
+ label: {
1300
+ id: string;
1301
+ description: string;
1302
+ defaultMessage: string;
1303
+ };
1304
+ summary: {
1305
+ fields: ({
1306
+ fieldId: string;
1307
+ label?: {
1308
+ id: string;
1309
+ description: string;
1310
+ defaultMessage: string;
1311
+ } | undefined;
1312
+ conditionals?: {
1313
+ type: "SHOW";
1314
+ conditional: import(".").JSONSchema;
1315
+ }[] | undefined;
1316
+ emptyValueMessage?: {
1317
+ id: string;
1318
+ description: string;
1319
+ defaultMessage: string;
1320
+ } | undefined;
1321
+ } | {
1322
+ id: string;
1323
+ value: {
1324
+ id: string;
1325
+ description: string;
1326
+ defaultMessage: string;
1327
+ };
1328
+ label: {
1329
+ id: string;
1330
+ description: string;
1331
+ defaultMessage: string;
1332
+ };
1333
+ conditionals?: {
1334
+ type: "SHOW";
1335
+ conditional: import(".").JSONSchema;
1336
+ }[] | undefined;
1337
+ emptyValueMessage?: {
1338
+ id: string;
1339
+ description: string;
1340
+ defaultMessage: string;
1341
+ } | undefined;
1342
+ })[];
1343
+ };
1344
+ dateOfEvent?: {
1345
+ $$field: string;
1346
+ $$subfield?: string[] | undefined;
1347
+ } | undefined;
1348
+ fallbackTitle?: {
1349
+ id: string;
1350
+ description: string;
1351
+ defaultMessage: string;
1352
+ } | undefined;
1353
+ advancedSearch?: {
1354
+ title: {
1355
+ id: string;
1356
+ description: string;
1357
+ defaultMessage: string;
1358
+ };
1359
+ fields: ({
1360
+ config: {
1361
+ type: "exact" | "fuzzy" | "range" | "within";
1362
+ };
1363
+ fieldId: string;
1364
+ fieldType: "field";
1365
+ options?: {
1366
+ value: string;
1367
+ label: string | {
1368
+ id: string;
1369
+ description: string;
1370
+ defaultMessage: string;
1371
+ };
1372
+ }[] | undefined;
1373
+ conditionals?: ({
1374
+ type: "SHOW";
1375
+ conditional: import(".").JSONSchema;
1376
+ } | {
1377
+ type: "ENABLE";
1378
+ conditional: import(".").JSONSchema;
1379
+ } | {
1380
+ type: "DISPLAY_ON_REVIEW";
1381
+ conditional: import(".").JSONSchema;
1382
+ })[] | undefined;
1383
+ searchCriteriaLabelPrefix?: {
1384
+ id: string;
1385
+ description: string;
1386
+ defaultMessage: string;
1387
+ } | undefined;
1388
+ validations?: {
1389
+ message: {
1390
+ id: string;
1391
+ description: string;
1392
+ defaultMessage: string;
1393
+ };
1394
+ validator: import(".").JSONSchema;
1395
+ }[] | undefined;
1396
+ } | {
1397
+ config: {
1398
+ type: "exact" | "fuzzy" | "range" | "within";
1399
+ };
1400
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1401
+ fieldType: "event";
1402
+ options?: {
1403
+ value: string;
1404
+ label: string | {
1405
+ id: string;
1406
+ description: string;
1407
+ defaultMessage: string;
1408
+ };
1409
+ }[] | undefined;
1410
+ conditionals?: ({
1411
+ type: "SHOW";
1412
+ conditional: import(".").JSONSchema;
1413
+ } | {
1414
+ type: "ENABLE";
1415
+ conditional: import(".").JSONSchema;
1416
+ } | {
1417
+ type: "DISPLAY_ON_REVIEW";
1418
+ conditional: import(".").JSONSchema;
1419
+ })[] | undefined;
1420
+ searchCriteriaLabelPrefix?: {
1421
+ id: string;
1422
+ description: string;
1423
+ defaultMessage: string;
1424
+ } | undefined;
1425
+ validations?: {
1426
+ message: {
1427
+ id: string;
1428
+ description: string;
1429
+ defaultMessage: string;
1430
+ };
1431
+ validator: import(".").JSONSchema;
1432
+ }[] | undefined;
1433
+ })[];
1434
+ }[] | undefined;
1435
+ }>, {
1436
+ id: string;
1437
+ title: TranslationConfig;
1438
+ declaration: {
1439
+ label: TranslationConfig;
1440
+ pages: {
1441
+ type: "FORM";
1442
+ id: string;
1443
+ title: TranslationConfig;
1444
+ fields: import("./FieldConfig").FieldConfig[];
1445
+ conditional?: import(".").JSONSchema | undefined;
1446
+ }[];
1447
+ };
1448
+ actions: ({
1449
+ type: "READ";
1450
+ label: TranslationConfig;
1451
+ conditionals: ({
1452
+ type: "SHOW";
1453
+ conditional: import(".").JSONSchema;
1454
+ } | {
1455
+ type: "ENABLE";
1456
+ conditional: import(".").JSONSchema;
1457
+ })[];
1458
+ review: {
1459
+ title: TranslationConfig;
1460
+ fields: import("./FieldConfig").FieldConfig[];
1461
+ };
1462
+ draft?: boolean | undefined;
1463
+ } | {
1464
+ type: "DECLARE";
1465
+ label: TranslationConfig;
1466
+ conditionals: ({
1467
+ type: "SHOW";
1468
+ conditional: import(".").JSONSchema;
1469
+ } | {
1470
+ type: "ENABLE";
1471
+ conditional: import(".").JSONSchema;
1472
+ })[];
1473
+ review: {
1474
+ title: TranslationConfig;
1475
+ fields: import("./FieldConfig").FieldConfig[];
1476
+ };
1477
+ draft?: boolean | undefined;
1478
+ deduplication?: {
1479
+ id: string;
1480
+ label: TranslationConfig;
1481
+ query: import("./DeduplicationConfig").ClauseOutput;
1482
+ } | undefined;
1483
+ } | {
1484
+ type: "VALIDATE";
1485
+ label: TranslationConfig;
1486
+ conditionals: ({
1487
+ type: "SHOW";
1488
+ conditional: import(".").JSONSchema;
1489
+ } | {
1490
+ type: "ENABLE";
1491
+ conditional: import(".").JSONSchema;
1492
+ })[];
1493
+ review: {
1494
+ title: TranslationConfig;
1495
+ fields: import("./FieldConfig").FieldConfig[];
1496
+ };
1497
+ draft?: boolean | undefined;
1498
+ deduplication?: {
1499
+ id: string;
1500
+ label: TranslationConfig;
1501
+ query: import("./DeduplicationConfig").ClauseOutput;
1502
+ } | undefined;
1503
+ } | {
1504
+ type: "REGISTER";
1505
+ label: TranslationConfig;
1506
+ conditionals: ({
1507
+ type: "SHOW";
1508
+ conditional: import(".").JSONSchema;
1509
+ } | {
1510
+ type: "ENABLE";
1511
+ conditional: import(".").JSONSchema;
1512
+ })[];
1513
+ review: {
1514
+ title: TranslationConfig;
1515
+ fields: import("./FieldConfig").FieldConfig[];
1516
+ };
1517
+ draft?: boolean | undefined;
1518
+ deduplication?: {
1519
+ id: string;
1520
+ label: TranslationConfig;
1521
+ query: import("./DeduplicationConfig").ClauseOutput;
1522
+ } | undefined;
1523
+ } | {
1524
+ type: "REJECT";
1525
+ label: TranslationConfig;
1526
+ conditionals: ({
1527
+ type: "SHOW";
1528
+ conditional: import(".").JSONSchema;
1529
+ } | {
1530
+ type: "ENABLE";
1531
+ conditional: import(".").JSONSchema;
1532
+ })[];
1533
+ draft?: boolean | undefined;
1534
+ } | {
1535
+ type: "ARCHIVE";
1536
+ label: TranslationConfig;
1537
+ conditionals: ({
1538
+ type: "SHOW";
1539
+ conditional: import(".").JSONSchema;
1540
+ } | {
1541
+ type: "ENABLE";
1542
+ conditional: import(".").JSONSchema;
1543
+ })[];
1544
+ draft?: boolean | undefined;
1545
+ } | {
1546
+ type: "DELETE";
1547
+ label: TranslationConfig;
1548
+ conditionals: ({
1549
+ type: "SHOW";
1550
+ conditional: import(".").JSONSchema;
1551
+ } | {
1552
+ type: "ENABLE";
1553
+ conditional: import(".").JSONSchema;
1554
+ })[];
1555
+ draft?: boolean | undefined;
1556
+ } | {
1557
+ type: "PRINT_CERTIFICATE";
1558
+ label: TranslationConfig;
1559
+ conditionals: ({
1560
+ type: "SHOW";
1561
+ conditional: import(".").JSONSchema;
1562
+ } | {
1563
+ type: "ENABLE";
1564
+ conditional: import(".").JSONSchema;
1565
+ })[];
1566
+ printForm: {
1567
+ label: TranslationConfig;
1568
+ pages: ({
1569
+ type: "FORM";
1570
+ id: string;
1571
+ title: TranslationConfig;
1572
+ fields: import("./FieldConfig").FieldConfig[];
1573
+ conditional?: import(".").JSONSchema | undefined;
1574
+ } | {
1575
+ type: "VERIFICATION";
1576
+ id: string;
1577
+ title: TranslationConfig;
1578
+ actions: {
1579
+ verify: {
1580
+ label: TranslationConfig;
1581
+ };
1582
+ cancel: {
1583
+ label: TranslationConfig;
1584
+ confirmation: {
1585
+ title: TranslationConfig;
1586
+ body: TranslationConfig;
1587
+ };
1588
+ };
1589
+ };
1590
+ fields: import("./FieldConfig").FieldConfig[];
1591
+ conditional?: import(".").JSONSchema | undefined;
1592
+ })[];
1593
+ };
1594
+ draft?: boolean | undefined;
1595
+ } | {
1596
+ type: "REQUEST_CORRECTION";
1597
+ label: TranslationConfig;
1598
+ conditionals: ({
1599
+ type: "SHOW";
1600
+ conditional: import(".").JSONSchema;
1601
+ } | {
1602
+ type: "ENABLE";
1603
+ conditional: import(".").JSONSchema;
1604
+ })[];
1605
+ correctionForm: {
1606
+ label: TranslationConfig;
1607
+ pages: ({
1608
+ type: "FORM";
1609
+ id: string;
1610
+ title: TranslationConfig;
1611
+ fields: import("./FieldConfig").FieldConfig[];
1612
+ conditional?: import(".").JSONSchema | undefined;
1613
+ } | {
1614
+ type: "VERIFICATION";
1615
+ id: string;
1616
+ title: TranslationConfig;
1617
+ actions: {
1618
+ verify: {
1619
+ label: TranslationConfig;
1620
+ };
1621
+ cancel: {
1622
+ label: TranslationConfig;
1623
+ confirmation: {
1624
+ title: TranslationConfig;
1625
+ body: TranslationConfig;
1626
+ };
1627
+ };
1628
+ };
1629
+ fields: import("./FieldConfig").FieldConfig[];
1630
+ conditional?: import(".").JSONSchema | undefined;
1631
+ })[];
1632
+ };
1633
+ draft?: boolean | undefined;
1634
+ } | {
1635
+ type: "REJECT_CORRECTION";
1636
+ label: TranslationConfig;
1637
+ conditionals: ({
1638
+ type: "SHOW";
1639
+ conditional: import(".").JSONSchema;
1640
+ } | {
1641
+ type: "ENABLE";
1642
+ conditional: import(".").JSONSchema;
1643
+ })[];
1644
+ draft?: boolean | undefined;
1645
+ } | {
1646
+ type: "APPROVE_CORRECTION";
1647
+ label: TranslationConfig;
1648
+ conditionals: ({
1649
+ type: "SHOW";
1650
+ conditional: import(".").JSONSchema;
1651
+ } | {
1652
+ type: "ENABLE";
1653
+ conditional: import(".").JSONSchema;
1654
+ })[];
1655
+ draft?: boolean | undefined;
1656
+ })[];
1657
+ label: TranslationConfig;
1658
+ summary: {
1659
+ fields: ({
1660
+ fieldId: string;
1661
+ label?: TranslationConfig | undefined;
1662
+ conditionals?: {
1663
+ type: "SHOW";
1664
+ conditional: import(".").JSONSchema;
1665
+ }[] | undefined;
1666
+ emptyValueMessage?: TranslationConfig | undefined;
1667
+ } | {
1668
+ id: string;
1669
+ value: TranslationConfig;
1670
+ label: TranslationConfig;
1671
+ conditionals?: {
1672
+ type: "SHOW";
1673
+ conditional: import(".").JSONSchema;
1674
+ }[] | undefined;
1675
+ emptyValueMessage?: TranslationConfig | undefined;
1676
+ })[];
1677
+ };
1678
+ advancedSearch: {
1679
+ title: TranslationConfig;
1680
+ fields: ({
1681
+ config: {
1682
+ type: "exact" | "fuzzy" | "range" | "within";
1683
+ };
1684
+ fieldId: string;
1685
+ fieldType: "field";
1686
+ options?: {
1687
+ value: string;
1688
+ label: string | TranslationConfig;
1689
+ }[] | undefined;
1690
+ conditionals?: ({
1691
+ type: "SHOW";
1692
+ conditional: import(".").JSONSchema;
1693
+ } | {
1694
+ type: "ENABLE";
1695
+ conditional: import(".").JSONSchema;
1696
+ } | {
1697
+ type: "DISPLAY_ON_REVIEW";
1698
+ conditional: import(".").JSONSchema;
1699
+ })[] | undefined;
1700
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1701
+ validations?: {
1702
+ message: TranslationConfig;
1703
+ validator: import(".").JSONSchema;
1704
+ }[] | undefined;
1705
+ } | {
1706
+ config: {
1707
+ type: "exact" | "fuzzy" | "range" | "within";
1708
+ };
1709
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1710
+ fieldType: "event";
1711
+ options?: {
1712
+ value: string;
1713
+ label: string | TranslationConfig;
1714
+ }[] | undefined;
1715
+ conditionals?: ({
1716
+ type: "SHOW";
1717
+ conditional: import(".").JSONSchema;
1718
+ } | {
1719
+ type: "ENABLE";
1720
+ conditional: import(".").JSONSchema;
1721
+ } | {
1722
+ type: "DISPLAY_ON_REVIEW";
1723
+ conditional: import(".").JSONSchema;
1724
+ })[] | undefined;
1725
+ searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1726
+ validations?: {
1727
+ message: TranslationConfig;
1728
+ validator: import(".").JSONSchema;
1729
+ }[] | undefined;
1730
+ })[];
1731
+ }[];
1732
+ dateOfEvent?: {
1733
+ $$field: string;
1734
+ $$subfield?: string[] | undefined;
1735
+ } | undefined;
1736
+ fallbackTitle?: TranslationConfig | undefined;
1737
+ }, {
1738
+ id: string;
1739
+ title: {
1740
+ id: string;
1741
+ description: string;
1742
+ defaultMessage: string;
1743
+ };
1744
+ declaration: {
1745
+ label: {
1746
+ id: string;
1747
+ description: string;
1748
+ defaultMessage: string;
1749
+ };
1750
+ pages: {
1751
+ id: string;
1752
+ title: {
1753
+ id: string;
1754
+ description: string;
1755
+ defaultMessage: string;
1756
+ };
1757
+ fields: import("./FieldConfig").FieldConfigInput[];
1758
+ type?: "FORM" | undefined;
1759
+ conditional?: import(".").JSONSchema | undefined;
1760
+ }[];
1761
+ };
1762
+ actions: ({
1763
+ type: "READ";
1764
+ label: {
1765
+ id: string;
1766
+ description: string;
1767
+ defaultMessage: string;
1768
+ };
1769
+ review: {
1770
+ title: {
1771
+ id: string;
1772
+ description: string;
1773
+ defaultMessage: string;
1774
+ };
1775
+ fields: import("./FieldConfig").FieldConfigInput[];
1776
+ };
1777
+ draft?: boolean | undefined;
1778
+ conditionals?: ({
1779
+ type: "SHOW";
1780
+ conditional: import(".").JSONSchema;
1781
+ } | {
1782
+ type: "ENABLE";
1783
+ conditional: import(".").JSONSchema;
1784
+ })[] | undefined;
1785
+ } | {
1786
+ type: "DECLARE";
1787
+ label: {
1788
+ id: string;
1789
+ description: string;
1790
+ defaultMessage: string;
1791
+ };
1792
+ review: {
1793
+ title: {
1794
+ id: string;
1795
+ description: string;
1796
+ defaultMessage: string;
1797
+ };
1798
+ fields: import("./FieldConfig").FieldConfigInput[];
1799
+ };
1800
+ draft?: boolean | undefined;
1801
+ conditionals?: ({
1802
+ type: "SHOW";
1803
+ conditional: import(".").JSONSchema;
1804
+ } | {
1805
+ type: "ENABLE";
1806
+ conditional: import(".").JSONSchema;
1807
+ })[] | undefined;
1808
+ deduplication?: {
1809
+ id: string;
1810
+ label: {
1811
+ id: string;
1812
+ description: string;
1813
+ defaultMessage: string;
1814
+ };
1815
+ query: import("./DeduplicationConfig").ClauseInput;
1816
+ } | undefined;
1817
+ } | {
1818
+ type: "VALIDATE";
1819
+ label: {
1820
+ id: string;
1821
+ description: string;
1822
+ defaultMessage: string;
1823
+ };
1824
+ review: {
1825
+ title: {
1826
+ id: string;
1827
+ description: string;
1828
+ defaultMessage: string;
1829
+ };
1830
+ fields: import("./FieldConfig").FieldConfigInput[];
1831
+ };
1832
+ draft?: boolean | undefined;
1833
+ conditionals?: ({
1834
+ type: "SHOW";
1835
+ conditional: import(".").JSONSchema;
1836
+ } | {
1837
+ type: "ENABLE";
1838
+ conditional: import(".").JSONSchema;
1839
+ })[] | undefined;
1840
+ deduplication?: {
1841
+ id: string;
1842
+ label: {
1843
+ id: string;
1844
+ description: string;
1845
+ defaultMessage: string;
1846
+ };
1847
+ query: import("./DeduplicationConfig").ClauseInput;
1848
+ } | undefined;
1849
+ } | {
1850
+ type: "REGISTER";
1851
+ label: {
1852
+ id: string;
1853
+ description: string;
1854
+ defaultMessage: string;
1855
+ };
1856
+ review: {
1857
+ title: {
1858
+ id: string;
1859
+ description: string;
1860
+ defaultMessage: string;
1861
+ };
1862
+ fields: import("./FieldConfig").FieldConfigInput[];
1863
+ };
1864
+ draft?: boolean | undefined;
1865
+ conditionals?: ({
1866
+ type: "SHOW";
1867
+ conditional: import(".").JSONSchema;
1868
+ } | {
1869
+ type: "ENABLE";
1870
+ conditional: import(".").JSONSchema;
1871
+ })[] | undefined;
1872
+ deduplication?: {
1873
+ id: string;
1874
+ label: {
1875
+ id: string;
1876
+ description: string;
1877
+ defaultMessage: string;
1878
+ };
1879
+ query: import("./DeduplicationConfig").ClauseInput;
1880
+ } | undefined;
1881
+ } | {
1882
+ type: "REJECT";
1883
+ label: {
1884
+ id: string;
1885
+ description: string;
1886
+ defaultMessage: string;
1887
+ };
1888
+ draft?: boolean | undefined;
1889
+ conditionals?: ({
1890
+ type: "SHOW";
1891
+ conditional: import(".").JSONSchema;
1892
+ } | {
1893
+ type: "ENABLE";
1894
+ conditional: import(".").JSONSchema;
1895
+ })[] | undefined;
1896
+ } | {
1897
+ type: "ARCHIVE";
1898
+ label: {
1899
+ id: string;
1900
+ description: string;
1901
+ defaultMessage: string;
1902
+ };
1903
+ draft?: boolean | undefined;
1904
+ conditionals?: ({
1905
+ type: "SHOW";
1906
+ conditional: import(".").JSONSchema;
1907
+ } | {
1908
+ type: "ENABLE";
1909
+ conditional: import(".").JSONSchema;
1910
+ })[] | undefined;
1911
+ } | {
1912
+ type: "DELETE";
1913
+ label: {
1914
+ id: string;
1915
+ description: string;
1916
+ defaultMessage: string;
1917
+ };
1918
+ draft?: boolean | undefined;
1919
+ conditionals?: ({
1920
+ type: "SHOW";
1921
+ conditional: import(".").JSONSchema;
1922
+ } | {
1923
+ type: "ENABLE";
1924
+ conditional: import(".").JSONSchema;
1925
+ })[] | undefined;
1926
+ } | {
1927
+ type: "PRINT_CERTIFICATE";
1928
+ label: {
1929
+ id: string;
1930
+ description: string;
1931
+ defaultMessage: string;
1932
+ };
1933
+ printForm: {
1934
+ label: {
1935
+ id: string;
1936
+ description: string;
1937
+ defaultMessage: string;
1938
+ };
1939
+ pages: ({
1940
+ id: string;
1941
+ title: {
1942
+ id: string;
1943
+ description: string;
1944
+ defaultMessage: string;
1945
+ };
1946
+ fields: import("./FieldConfig").FieldConfigInput[];
1947
+ type?: "FORM" | undefined;
1948
+ conditional?: import(".").JSONSchema | undefined;
1949
+ } | {
1950
+ type: "VERIFICATION";
1951
+ id: string;
1952
+ title: {
1953
+ id: string;
1954
+ description: string;
1955
+ defaultMessage: string;
1956
+ };
1957
+ actions: {
1958
+ verify: {
1959
+ label: {
1960
+ id: string;
1961
+ description: string;
1962
+ defaultMessage: string;
1963
+ };
1964
+ };
1965
+ cancel: {
1966
+ label: {
1967
+ id: string;
1968
+ description: string;
1969
+ defaultMessage: string;
1970
+ };
1971
+ confirmation: {
1972
+ title: {
1973
+ id: string;
1974
+ description: string;
1975
+ defaultMessage: string;
1976
+ };
1977
+ body: {
1978
+ id: string;
1979
+ description: string;
1980
+ defaultMessage: string;
1981
+ };
1982
+ };
1983
+ };
1984
+ };
1985
+ fields: import("./FieldConfig").FieldConfigInput[];
1986
+ conditional?: import(".").JSONSchema | undefined;
1987
+ })[];
1988
+ };
1989
+ draft?: boolean | undefined;
1990
+ conditionals?: ({
1991
+ type: "SHOW";
1992
+ conditional: import(".").JSONSchema;
1993
+ } | {
1994
+ type: "ENABLE";
1995
+ conditional: import(".").JSONSchema;
1996
+ })[] | undefined;
1997
+ } | {
1998
+ type: "REQUEST_CORRECTION";
1999
+ label: {
2000
+ id: string;
2001
+ description: string;
2002
+ defaultMessage: string;
2003
+ };
2004
+ correctionForm: {
2005
+ label: {
2006
+ id: string;
2007
+ description: string;
2008
+ defaultMessage: string;
2009
+ };
2010
+ pages: ({
2011
+ id: string;
2012
+ title: {
2013
+ id: string;
2014
+ description: string;
2015
+ defaultMessage: string;
2016
+ };
2017
+ fields: import("./FieldConfig").FieldConfigInput[];
2018
+ type?: "FORM" | undefined;
2019
+ conditional?: import(".").JSONSchema | undefined;
2020
+ } | {
2021
+ type: "VERIFICATION";
2022
+ id: string;
2023
+ title: {
2024
+ id: string;
2025
+ description: string;
2026
+ defaultMessage: string;
2027
+ };
2028
+ actions: {
2029
+ verify: {
2030
+ label: {
2031
+ id: string;
2032
+ description: string;
2033
+ defaultMessage: string;
2034
+ };
2035
+ };
2036
+ cancel: {
2037
+ label: {
2038
+ id: string;
2039
+ description: string;
2040
+ defaultMessage: string;
2041
+ };
2042
+ confirmation: {
2043
+ title: {
2044
+ id: string;
2045
+ description: string;
2046
+ defaultMessage: string;
2047
+ };
2048
+ body: {
2049
+ id: string;
2050
+ description: string;
2051
+ defaultMessage: string;
2052
+ };
2053
+ };
2054
+ };
2055
+ };
2056
+ fields: import("./FieldConfig").FieldConfigInput[];
2057
+ conditional?: import(".").JSONSchema | undefined;
2058
+ })[];
2059
+ };
2060
+ draft?: boolean | undefined;
2061
+ conditionals?: ({
2062
+ type: "SHOW";
2063
+ conditional: import(".").JSONSchema;
2064
+ } | {
2065
+ type: "ENABLE";
2066
+ conditional: import(".").JSONSchema;
2067
+ })[] | undefined;
2068
+ } | {
2069
+ type: "REJECT_CORRECTION";
2070
+ label: {
2071
+ id: string;
2072
+ description: string;
2073
+ defaultMessage: string;
2074
+ };
2075
+ draft?: boolean | undefined;
2076
+ conditionals?: ({
2077
+ type: "SHOW";
2078
+ conditional: import(".").JSONSchema;
2079
+ } | {
2080
+ type: "ENABLE";
2081
+ conditional: import(".").JSONSchema;
2082
+ })[] | undefined;
2083
+ } | {
2084
+ type: "APPROVE_CORRECTION";
2085
+ label: {
2086
+ id: string;
2087
+ description: string;
2088
+ defaultMessage: string;
2089
+ };
2090
+ draft?: boolean | undefined;
2091
+ conditionals?: ({
2092
+ type: "SHOW";
2093
+ conditional: import(".").JSONSchema;
2094
+ } | {
2095
+ type: "ENABLE";
2096
+ conditional: import(".").JSONSchema;
2097
+ })[] | undefined;
2098
+ })[];
2099
+ label: {
2100
+ id: string;
2101
+ description: string;
2102
+ defaultMessage: string;
2103
+ };
2104
+ summary: {
2105
+ fields: ({
2106
+ fieldId: string;
2107
+ label?: {
2108
+ id: string;
2109
+ description: string;
2110
+ defaultMessage: string;
2111
+ } | undefined;
2112
+ conditionals?: {
2113
+ type: "SHOW";
2114
+ conditional: import(".").JSONSchema;
2115
+ }[] | undefined;
2116
+ emptyValueMessage?: {
2117
+ id: string;
2118
+ description: string;
2119
+ defaultMessage: string;
2120
+ } | undefined;
2121
+ } | {
2122
+ id: string;
2123
+ value: {
2124
+ id: string;
2125
+ description: string;
2126
+ defaultMessage: string;
2127
+ };
2128
+ label: {
2129
+ id: string;
2130
+ description: string;
2131
+ defaultMessage: string;
2132
+ };
2133
+ conditionals?: {
2134
+ type: "SHOW";
2135
+ conditional: import(".").JSONSchema;
2136
+ }[] | undefined;
2137
+ emptyValueMessage?: {
2138
+ id: string;
2139
+ description: string;
2140
+ defaultMessage: string;
2141
+ } | undefined;
2142
+ })[];
2143
+ };
2144
+ dateOfEvent?: {
2145
+ $$field: string;
2146
+ $$subfield?: string[] | undefined;
2147
+ } | undefined;
2148
+ fallbackTitle?: {
2149
+ id: string;
2150
+ description: string;
2151
+ defaultMessage: string;
2152
+ } | undefined;
2153
+ advancedSearch?: {
2154
+ title: {
2155
+ id: string;
2156
+ description: string;
2157
+ defaultMessage: string;
2158
+ };
2159
+ fields: ({
2160
+ config: {
2161
+ type: "exact" | "fuzzy" | "range" | "within";
2162
+ };
2163
+ fieldId: string;
2164
+ fieldType: "field";
2165
+ options?: {
2166
+ value: string;
2167
+ label: string | {
2168
+ id: string;
2169
+ description: string;
2170
+ defaultMessage: string;
2171
+ };
2172
+ }[] | undefined;
2173
+ conditionals?: ({
2174
+ type: "SHOW";
2175
+ conditional: import(".").JSONSchema;
2176
+ } | {
2177
+ type: "ENABLE";
2178
+ conditional: import(".").JSONSchema;
2179
+ } | {
2180
+ type: "DISPLAY_ON_REVIEW";
2181
+ conditional: import(".").JSONSchema;
2182
+ })[] | undefined;
2183
+ searchCriteriaLabelPrefix?: {
2184
+ id: string;
2185
+ description: string;
2186
+ defaultMessage: string;
2187
+ } | undefined;
2188
+ validations?: {
2189
+ message: {
2190
+ id: string;
2191
+ description: string;
2192
+ defaultMessage: string;
2193
+ };
2194
+ validator: import(".").JSONSchema;
2195
+ }[] | undefined;
2196
+ } | {
2197
+ config: {
2198
+ type: "exact" | "fuzzy" | "range" | "within";
2199
+ };
2200
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
2201
+ fieldType: "event";
2202
+ options?: {
2203
+ value: string;
2204
+ label: string | {
2205
+ id: string;
2206
+ description: string;
2207
+ defaultMessage: string;
2208
+ };
2209
+ }[] | undefined;
2210
+ conditionals?: ({
2211
+ type: "SHOW";
2212
+ conditional: import(".").JSONSchema;
2213
+ } | {
2214
+ type: "ENABLE";
2215
+ conditional: import(".").JSONSchema;
2216
+ } | {
2217
+ type: "DISPLAY_ON_REVIEW";
2218
+ conditional: import(".").JSONSchema;
2219
+ })[] | undefined;
2220
+ searchCriteriaLabelPrefix?: {
2221
+ id: string;
2222
+ description: string;
2223
+ defaultMessage: string;
2224
+ } | undefined;
2225
+ validations?: {
2226
+ message: {
2227
+ id: string;
2228
+ description: string;
2229
+ defaultMessage: string;
2230
+ };
2231
+ validator: import(".").JSONSchema;
2232
+ }[] | undefined;
2233
+ })[];
2234
+ }[] | undefined;
2235
+ }>;
2236
+ export type EventConfig = z.infer<typeof EventConfig>;
2237
+ //# sourceMappingURL=EventConfig.d.ts.map