@opencrvs/toolkit 1.8.0-rc.ff2e7b6 → 1.8.0-rc.ff5b3f3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +14000 -10258
  3. package/dist/commons/conditionals/conditionals.d.ts +31 -5
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +39 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +96433 -2024
  8. package/dist/commons/events/ActionDocument.d.ts +9819 -312
  9. package/dist/commons/events/ActionInput.d.ts +5362 -497
  10. package/dist/commons/events/ActionType.d.ts +26 -11
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  12. package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
  13. package/dist/commons/events/Conditional.d.ts +21 -5
  14. package/dist/commons/events/Draft.d.ts +367 -51
  15. package/dist/commons/events/EventConfig.d.ts +46117 -1819
  16. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  17. package/dist/commons/events/EventDocument.d.ts +3521 -424
  18. package/dist/commons/events/EventIndex.d.ts +1735 -10
  19. package/dist/commons/events/EventInput.d.ts +13 -0
  20. package/dist/commons/events/EventMetadata.d.ts +274 -8
  21. package/dist/commons/events/FieldConfig.d.ts +4765 -787
  22. package/dist/commons/events/FieldType.d.ts +4 -3
  23. package/dist/commons/events/FieldTypeMapping.d.ts +164 -6
  24. package/dist/commons/events/FieldValue.d.ts +82 -5
  25. package/dist/commons/events/FormConfig.d.ts +43810 -73
  26. package/dist/commons/events/PageConfig.d.ts +10991 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  28. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  29. package/dist/commons/events/User.d.ts +5 -0
  30. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  31. package/dist/commons/events/defineConfig.d.ts +7282 -230
  32. package/dist/commons/events/event.d.ts +54 -0
  33. package/dist/commons/events/field.d.ts +82 -0
  34. package/dist/commons/events/index.d.ts +5 -1
  35. package/dist/commons/events/scopes.d.ts +45 -0
  36. package/dist/commons/events/test.utils.d.ts +129 -239
  37. package/dist/commons/events/utils.d.ts +3793 -73
  38. package/dist/commons/events/utils.test.d.ts +2 -0
  39. package/dist/conditionals/index.js +196 -108
  40. package/dist/events/index.js +3033 -1382
  41. package/dist/scopes/index.d.ts +158 -1
  42. package/dist/scopes/index.js +152 -1
  43. package/package.json +3 -2
@@ -1,97 +1,3620 @@
1
- import { TranslationConfig } from './TranslationConfig';
2
- import { ActionType } from './ActionType';
1
+ import { ActionType, DeclarationActionType } from './ActionType';
3
2
  import { EventConfig } from './EventConfig';
4
- import { EventConfigInput } from './EventConfigInput';
5
- import { EventMetadataKeys } from './EventMetadata';
6
3
  import { FieldConfig } from './FieldConfig';
7
- import { WorkqueueConfig } from './WorkqueueConfig';
8
- import { EventState } from './ActionDocument';
4
+ import { Action, ActionUpdate, EventState } from './ActionDocument';
5
+ import { PageConfig, VerificationPageConfig } from './PageConfig';
6
+ import { Draft } from './Draft';
7
+ import { EventDocument } from './EventDocument';
8
+ import { ActionConfig } from './ActionConfig';
9
9
  import { FormConfig } from './FormConfig';
10
- /**
11
- * @returns All the fields in the event configuration input.
12
- */
13
- export declare const findInputPageFields: (config: EventConfigInput) => {
10
+ export declare function getDeclarationFields(configuration: EventConfig): FieldConfig[];
11
+ export declare function getDeclarationPages(configuration: EventConfig): {
12
+ type: "FORM";
14
13
  id: string;
15
- label: TranslationConfig;
14
+ title: import("./TranslationConfig").TranslationConfig;
15
+ fields: ({
16
+ type: "DIVIDER";
17
+ id: string;
18
+ label: import("./TranslationConfig").TranslationConfig;
19
+ parent?: {
20
+ _fieldId?: string | undefined;
21
+ } | undefined;
22
+ validation?: {
23
+ message: import("./TranslationConfig").TranslationConfig;
24
+ validator: import(".").JSONSchema;
25
+ }[] | undefined;
26
+ required?: boolean | undefined;
27
+ defaultValue?: string | number | boolean | undefined;
28
+ conditionals?: ({
29
+ type: "SHOW";
30
+ conditional: import(".").JSONSchema;
31
+ } | {
32
+ type: "ENABLE";
33
+ conditional: import(".").JSONSchema;
34
+ } | {
35
+ type: "DISPLAY_ON_REVIEW";
36
+ conditional: import(".").JSONSchema;
37
+ })[] | undefined;
38
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
39
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
40
+ hideLabel?: boolean | undefined;
41
+ } | {
42
+ type: "TEXT";
43
+ id: string;
44
+ label: import("./TranslationConfig").TranslationConfig;
45
+ parent?: {
46
+ _fieldId?: string | undefined;
47
+ } | undefined;
48
+ validation?: {
49
+ message: import("./TranslationConfig").TranslationConfig;
50
+ validator: import(".").JSONSchema;
51
+ }[] | undefined;
52
+ required?: boolean | undefined;
53
+ defaultValue?: string | undefined;
54
+ conditionals?: ({
55
+ type: "SHOW";
56
+ conditional: import(".").JSONSchema;
57
+ } | {
58
+ type: "ENABLE";
59
+ conditional: import(".").JSONSchema;
60
+ } | {
61
+ type: "DISPLAY_ON_REVIEW";
62
+ conditional: import(".").JSONSchema;
63
+ })[] | undefined;
64
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
65
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
66
+ hideLabel?: boolean | undefined;
67
+ configuration?: {
68
+ type?: "text" | "password" | undefined;
69
+ maxLength?: number | undefined;
70
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
71
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
72
+ } | undefined;
73
+ } | {
74
+ type: "NUMBER";
75
+ id: string;
76
+ label: import("./TranslationConfig").TranslationConfig;
77
+ parent?: {
78
+ _fieldId?: string | undefined;
79
+ } | undefined;
80
+ validation?: {
81
+ message: import("./TranslationConfig").TranslationConfig;
82
+ validator: import(".").JSONSchema;
83
+ }[] | undefined;
84
+ required?: boolean | undefined;
85
+ defaultValue?: number | undefined;
86
+ conditionals?: ({
87
+ type: "SHOW";
88
+ conditional: import(".").JSONSchema;
89
+ } | {
90
+ type: "ENABLE";
91
+ conditional: import(".").JSONSchema;
92
+ } | {
93
+ type: "DISPLAY_ON_REVIEW";
94
+ conditional: import(".").JSONSchema;
95
+ })[] | undefined;
96
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
97
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
98
+ hideLabel?: boolean | undefined;
99
+ configuration?: {
100
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
101
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
102
+ min?: number | undefined;
103
+ max?: number | undefined;
104
+ } | undefined;
105
+ } | {
106
+ type: "TEXTAREA";
107
+ id: string;
108
+ label: import("./TranslationConfig").TranslationConfig;
109
+ parent?: {
110
+ _fieldId?: string | undefined;
111
+ } | undefined;
112
+ validation?: {
113
+ message: import("./TranslationConfig").TranslationConfig;
114
+ validator: import(".").JSONSchema;
115
+ }[] | undefined;
116
+ required?: boolean | undefined;
117
+ defaultValue?: string | undefined;
118
+ conditionals?: ({
119
+ type: "SHOW";
120
+ conditional: import(".").JSONSchema;
121
+ } | {
122
+ type: "ENABLE";
123
+ conditional: import(".").JSONSchema;
124
+ } | {
125
+ type: "DISPLAY_ON_REVIEW";
126
+ conditional: import(".").JSONSchema;
127
+ })[] | undefined;
128
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
129
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
130
+ hideLabel?: boolean | undefined;
131
+ configuration?: {
132
+ maxLength?: number | undefined;
133
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
134
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
135
+ rows?: number | undefined;
136
+ cols?: number | undefined;
137
+ } | undefined;
138
+ } | {
139
+ type: "SIGNATURE";
140
+ id: string;
141
+ label: import("./TranslationConfig").TranslationConfig;
142
+ configuration: {
143
+ maxFileSize: number;
144
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
145
+ };
146
+ signaturePromptLabel: import("./TranslationConfig").TranslationConfig;
147
+ parent?: {
148
+ _fieldId?: string | undefined;
149
+ } | undefined;
150
+ validation?: {
151
+ message: import("./TranslationConfig").TranslationConfig;
152
+ validator: import(".").JSONSchema;
153
+ }[] | undefined;
154
+ required?: boolean | undefined;
155
+ defaultValue?: string | number | boolean | undefined;
156
+ conditionals?: ({
157
+ type: "SHOW";
158
+ conditional: import(".").JSONSchema;
159
+ } | {
160
+ type: "ENABLE";
161
+ conditional: import(".").JSONSchema;
162
+ } | {
163
+ type: "DISPLAY_ON_REVIEW";
164
+ conditional: import(".").JSONSchema;
165
+ })[] | undefined;
166
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
167
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
168
+ hideLabel?: boolean | undefined;
169
+ } | {
170
+ type: "EMAIL";
171
+ id: string;
172
+ label: import("./TranslationConfig").TranslationConfig;
173
+ parent?: {
174
+ _fieldId?: string | undefined;
175
+ } | undefined;
176
+ validation?: {
177
+ message: import("./TranslationConfig").TranslationConfig;
178
+ validator: import(".").JSONSchema;
179
+ }[] | undefined;
180
+ required?: boolean | undefined;
181
+ defaultValue?: string | undefined;
182
+ conditionals?: ({
183
+ type: "SHOW";
184
+ conditional: import(".").JSONSchema;
185
+ } | {
186
+ type: "ENABLE";
187
+ conditional: import(".").JSONSchema;
188
+ } | {
189
+ type: "DISPLAY_ON_REVIEW";
190
+ conditional: import(".").JSONSchema;
191
+ })[] | undefined;
192
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
193
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
194
+ hideLabel?: boolean | undefined;
195
+ configuration?: {
196
+ maxLength?: number | undefined;
197
+ } | undefined;
198
+ } | {
199
+ type: "DATE";
200
+ id: string;
201
+ label: import("./TranslationConfig").TranslationConfig;
202
+ parent?: {
203
+ _fieldId?: string | undefined;
204
+ } | undefined;
205
+ validation?: {
206
+ message: import("./TranslationConfig").TranslationConfig;
207
+ validator: import(".").JSONSchema;
208
+ }[] | undefined;
209
+ required?: boolean | undefined;
210
+ defaultValue?: string | undefined;
211
+ conditionals?: ({
212
+ type: "SHOW";
213
+ conditional: import(".").JSONSchema;
214
+ } | {
215
+ type: "ENABLE";
216
+ conditional: import(".").JSONSchema;
217
+ } | {
218
+ type: "DISPLAY_ON_REVIEW";
219
+ conditional: import(".").JSONSchema;
220
+ })[] | undefined;
221
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
222
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
223
+ hideLabel?: boolean | undefined;
224
+ configuration?: {
225
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
226
+ } | undefined;
227
+ } | {
228
+ type: "DATE_RANGE";
229
+ id: string;
230
+ label: import("./TranslationConfig").TranslationConfig;
231
+ parent?: {
232
+ _fieldId?: string | undefined;
233
+ } | undefined;
234
+ validation?: {
235
+ message: import("./TranslationConfig").TranslationConfig;
236
+ validator: import(".").JSONSchema;
237
+ }[] | undefined;
238
+ required?: boolean | undefined;
239
+ defaultValue?: string | [string, string] | undefined;
240
+ conditionals?: ({
241
+ type: "SHOW";
242
+ conditional: import(".").JSONSchema;
243
+ } | {
244
+ type: "ENABLE";
245
+ conditional: import(".").JSONSchema;
246
+ } | {
247
+ type: "DISPLAY_ON_REVIEW";
248
+ conditional: import(".").JSONSchema;
249
+ })[] | undefined;
250
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
251
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
252
+ hideLabel?: boolean | undefined;
253
+ configuration?: {
254
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
255
+ } | undefined;
256
+ } | {
257
+ type: "PARAGRAPH";
258
+ id: string;
259
+ label: import("./TranslationConfig").TranslationConfig;
260
+ configuration: {
261
+ styles?: {
262
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
263
+ } | undefined;
264
+ };
265
+ parent?: {
266
+ _fieldId?: string | undefined;
267
+ } | undefined;
268
+ validation?: {
269
+ message: import("./TranslationConfig").TranslationConfig;
270
+ validator: import(".").JSONSchema;
271
+ }[] | undefined;
272
+ required?: boolean | undefined;
273
+ defaultValue?: string | undefined;
274
+ conditionals?: ({
275
+ type: "SHOW";
276
+ conditional: import(".").JSONSchema;
277
+ } | {
278
+ type: "ENABLE";
279
+ conditional: import(".").JSONSchema;
280
+ } | {
281
+ type: "DISPLAY_ON_REVIEW";
282
+ conditional: import(".").JSONSchema;
283
+ })[] | undefined;
284
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
285
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
286
+ hideLabel?: boolean | undefined;
287
+ } | {
288
+ type: "PAGE_HEADER";
289
+ id: string;
290
+ label: import("./TranslationConfig").TranslationConfig;
291
+ parent?: {
292
+ _fieldId?: string | undefined;
293
+ } | undefined;
294
+ validation?: {
295
+ message: import("./TranslationConfig").TranslationConfig;
296
+ validator: import(".").JSONSchema;
297
+ }[] | undefined;
298
+ required?: boolean | undefined;
299
+ defaultValue?: string | undefined;
300
+ conditionals?: ({
301
+ type: "SHOW";
302
+ conditional: import(".").JSONSchema;
303
+ } | {
304
+ type: "ENABLE";
305
+ conditional: import(".").JSONSchema;
306
+ } | {
307
+ type: "DISPLAY_ON_REVIEW";
308
+ conditional: import(".").JSONSchema;
309
+ })[] | undefined;
310
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
311
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
312
+ hideLabel?: boolean | undefined;
313
+ } | {
314
+ type: "FILE";
315
+ id: string;
316
+ label: import("./TranslationConfig").TranslationConfig;
317
+ configuration: {
318
+ maxFileSize: number;
319
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
320
+ style?: {
321
+ width?: "full" | "auto" | undefined;
322
+ } | undefined;
323
+ fileName?: import("./TranslationConfig").TranslationConfig | undefined;
324
+ };
325
+ parent?: {
326
+ _fieldId?: string | undefined;
327
+ } | undefined;
328
+ validation?: {
329
+ message: import("./TranslationConfig").TranslationConfig;
330
+ validator: import(".").JSONSchema;
331
+ }[] | undefined;
332
+ required?: boolean | undefined;
333
+ defaultValue?: string | number | boolean | undefined;
334
+ conditionals?: ({
335
+ type: "SHOW";
336
+ conditional: import(".").JSONSchema;
337
+ } | {
338
+ type: "ENABLE";
339
+ conditional: import(".").JSONSchema;
340
+ } | {
341
+ type: "DISPLAY_ON_REVIEW";
342
+ conditional: import(".").JSONSchema;
343
+ })[] | undefined;
344
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
345
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
346
+ hideLabel?: boolean | undefined;
347
+ } | {
348
+ type: "RADIO_GROUP";
349
+ id: string;
350
+ options: {
351
+ value: string;
352
+ label: import("./TranslationConfig").TranslationConfig;
353
+ }[];
354
+ label: import("./TranslationConfig").TranslationConfig;
355
+ parent?: {
356
+ _fieldId?: string | undefined;
357
+ } | undefined;
358
+ validation?: {
359
+ message: import("./TranslationConfig").TranslationConfig;
360
+ validator: import(".").JSONSchema;
361
+ }[] | undefined;
362
+ required?: boolean | undefined;
363
+ defaultValue?: string | undefined;
364
+ conditionals?: ({
365
+ type: "SHOW";
366
+ conditional: import(".").JSONSchema;
367
+ } | {
368
+ type: "ENABLE";
369
+ conditional: import(".").JSONSchema;
370
+ } | {
371
+ type: "DISPLAY_ON_REVIEW";
372
+ conditional: import(".").JSONSchema;
373
+ })[] | undefined;
374
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
375
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
376
+ hideLabel?: boolean | undefined;
377
+ configuration?: {
378
+ styles?: {
379
+ size?: "NORMAL" | "LARGE" | undefined;
380
+ } | undefined;
381
+ } | undefined;
382
+ } | {
383
+ type: "BULLET_LIST";
384
+ id: string;
385
+ label: import("./TranslationConfig").TranslationConfig;
386
+ configuration: {
387
+ styles?: {
388
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
389
+ } | undefined;
390
+ };
391
+ items: import("./TranslationConfig").TranslationConfig[];
392
+ parent?: {
393
+ _fieldId?: string | undefined;
394
+ } | undefined;
395
+ validation?: {
396
+ message: import("./TranslationConfig").TranslationConfig;
397
+ validator: import(".").JSONSchema;
398
+ }[] | undefined;
399
+ required?: boolean | undefined;
400
+ defaultValue?: string | undefined;
401
+ conditionals?: ({
402
+ type: "SHOW";
403
+ conditional: import(".").JSONSchema;
404
+ } | {
405
+ type: "ENABLE";
406
+ conditional: import(".").JSONSchema;
407
+ } | {
408
+ type: "DISPLAY_ON_REVIEW";
409
+ conditional: import(".").JSONSchema;
410
+ })[] | undefined;
411
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
412
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
413
+ hideLabel?: boolean | undefined;
414
+ } | {
415
+ type: "SELECT";
416
+ id: string;
417
+ options: {
418
+ value: string;
419
+ label: import("./TranslationConfig").TranslationConfig;
420
+ }[];
421
+ label: import("./TranslationConfig").TranslationConfig;
422
+ parent?: {
423
+ _fieldId?: string | undefined;
424
+ } | undefined;
425
+ validation?: {
426
+ message: import("./TranslationConfig").TranslationConfig;
427
+ validator: import(".").JSONSchema;
428
+ }[] | undefined;
429
+ required?: boolean | undefined;
430
+ defaultValue?: string | undefined;
431
+ conditionals?: ({
432
+ type: "SHOW";
433
+ conditional: import(".").JSONSchema;
434
+ } | {
435
+ type: "ENABLE";
436
+ conditional: import(".").JSONSchema;
437
+ } | {
438
+ type: "DISPLAY_ON_REVIEW";
439
+ conditional: import(".").JSONSchema;
440
+ })[] | undefined;
441
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
442
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
443
+ hideLabel?: boolean | undefined;
444
+ } | {
445
+ type: "CHECKBOX";
446
+ id: string;
447
+ label: import("./TranslationConfig").TranslationConfig;
448
+ parent?: {
449
+ _fieldId?: string | undefined;
450
+ } | undefined;
451
+ validation?: {
452
+ message: import("./TranslationConfig").TranslationConfig;
453
+ validator: import(".").JSONSchema;
454
+ }[] | undefined;
455
+ required?: boolean | undefined;
456
+ defaultValue?: boolean | undefined;
457
+ conditionals?: ({
458
+ type: "SHOW";
459
+ conditional: import(".").JSONSchema;
460
+ } | {
461
+ type: "ENABLE";
462
+ conditional: import(".").JSONSchema;
463
+ } | {
464
+ type: "DISPLAY_ON_REVIEW";
465
+ conditional: import(".").JSONSchema;
466
+ })[] | undefined;
467
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
468
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
469
+ hideLabel?: boolean | undefined;
470
+ } | {
471
+ type: "COUNTRY";
472
+ id: string;
473
+ label: import("./TranslationConfig").TranslationConfig;
474
+ parent?: {
475
+ _fieldId?: string | undefined;
476
+ } | undefined;
477
+ validation?: {
478
+ message: import("./TranslationConfig").TranslationConfig;
479
+ validator: import(".").JSONSchema;
480
+ }[] | undefined;
481
+ required?: boolean | undefined;
482
+ defaultValue?: string | undefined;
483
+ conditionals?: ({
484
+ type: "SHOW";
485
+ conditional: import(".").JSONSchema;
486
+ } | {
487
+ type: "ENABLE";
488
+ conditional: import(".").JSONSchema;
489
+ } | {
490
+ type: "DISPLAY_ON_REVIEW";
491
+ conditional: import(".").JSONSchema;
492
+ })[] | undefined;
493
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
494
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
495
+ hideLabel?: boolean | undefined;
496
+ } | {
497
+ type: "ADMINISTRATIVE_AREA";
498
+ id: string;
499
+ label: import("./TranslationConfig").TranslationConfig;
500
+ configuration: {
501
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
502
+ partOf?: {
503
+ $declaration: string;
504
+ } | undefined;
505
+ };
506
+ parent?: {
507
+ _fieldId?: string | undefined;
508
+ } | undefined;
509
+ validation?: {
510
+ message: import("./TranslationConfig").TranslationConfig;
511
+ validator: import(".").JSONSchema;
512
+ }[] | undefined;
513
+ required?: boolean | undefined;
514
+ defaultValue?: string | undefined;
515
+ conditionals?: ({
516
+ type: "SHOW";
517
+ conditional: import(".").JSONSchema;
518
+ } | {
519
+ type: "ENABLE";
520
+ conditional: import(".").JSONSchema;
521
+ } | {
522
+ type: "DISPLAY_ON_REVIEW";
523
+ conditional: import(".").JSONSchema;
524
+ })[] | undefined;
525
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
526
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
527
+ hideLabel?: boolean | undefined;
528
+ } | {
529
+ type: "LOCATION";
530
+ id: string;
531
+ label: import("./TranslationConfig").TranslationConfig;
532
+ parent?: {
533
+ _fieldId?: string | undefined;
534
+ } | undefined;
535
+ validation?: {
536
+ message: import("./TranslationConfig").TranslationConfig;
537
+ validator: import(".").JSONSchema;
538
+ }[] | undefined;
539
+ required?: boolean | undefined;
540
+ defaultValue?: string | undefined;
541
+ conditionals?: ({
542
+ type: "SHOW";
543
+ conditional: import(".").JSONSchema;
544
+ } | {
545
+ type: "ENABLE";
546
+ conditional: import(".").JSONSchema;
547
+ } | {
548
+ type: "DISPLAY_ON_REVIEW";
549
+ conditional: import(".").JSONSchema;
550
+ })[] | undefined;
551
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
552
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
553
+ hideLabel?: boolean | undefined;
554
+ } | {
555
+ type: "FILE_WITH_OPTIONS";
556
+ id: string;
557
+ options: {
558
+ value: string;
559
+ label: import("./TranslationConfig").TranslationConfig;
560
+ }[];
561
+ label: import("./TranslationConfig").TranslationConfig;
562
+ configuration: {
563
+ maxFileSize: number;
564
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
565
+ };
566
+ parent?: {
567
+ _fieldId?: string | undefined;
568
+ } | undefined;
569
+ validation?: {
570
+ message: import("./TranslationConfig").TranslationConfig;
571
+ validator: import(".").JSONSchema;
572
+ }[] | undefined;
573
+ required?: boolean | undefined;
574
+ defaultValue?: string | number | boolean | undefined;
575
+ conditionals?: ({
576
+ type: "SHOW";
577
+ conditional: import(".").JSONSchema;
578
+ } | {
579
+ type: "ENABLE";
580
+ conditional: import(".").JSONSchema;
581
+ } | {
582
+ type: "DISPLAY_ON_REVIEW";
583
+ conditional: import(".").JSONSchema;
584
+ })[] | undefined;
585
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
586
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
587
+ hideLabel?: boolean | undefined;
588
+ } | {
589
+ type: "FACILITY";
590
+ id: string;
591
+ label: import("./TranslationConfig").TranslationConfig;
592
+ parent?: {
593
+ _fieldId?: string | undefined;
594
+ } | undefined;
595
+ validation?: {
596
+ message: import("./TranslationConfig").TranslationConfig;
597
+ validator: import(".").JSONSchema;
598
+ }[] | undefined;
599
+ required?: boolean | undefined;
600
+ defaultValue?: string | undefined;
601
+ conditionals?: ({
602
+ type: "SHOW";
603
+ conditional: import(".").JSONSchema;
604
+ } | {
605
+ type: "ENABLE";
606
+ conditional: import(".").JSONSchema;
607
+ } | {
608
+ type: "DISPLAY_ON_REVIEW";
609
+ conditional: import(".").JSONSchema;
610
+ })[] | undefined;
611
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
612
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
613
+ hideLabel?: boolean | undefined;
614
+ } | {
615
+ type: "OFFICE";
616
+ id: string;
617
+ label: import("./TranslationConfig").TranslationConfig;
618
+ parent?: {
619
+ _fieldId?: string | undefined;
620
+ } | undefined;
621
+ validation?: {
622
+ message: import("./TranslationConfig").TranslationConfig;
623
+ validator: import(".").JSONSchema;
624
+ }[] | undefined;
625
+ required?: boolean | undefined;
626
+ defaultValue?: string | undefined;
627
+ conditionals?: ({
628
+ type: "SHOW";
629
+ conditional: import(".").JSONSchema;
630
+ } | {
631
+ type: "ENABLE";
632
+ conditional: import(".").JSONSchema;
633
+ } | {
634
+ type: "DISPLAY_ON_REVIEW";
635
+ conditional: import(".").JSONSchema;
636
+ })[] | undefined;
637
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
638
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
639
+ hideLabel?: boolean | undefined;
640
+ } | {
641
+ type: "ADDRESS";
642
+ id: string;
643
+ label: import("./TranslationConfig").TranslationConfig;
644
+ parent?: {
645
+ _fieldId?: string | undefined;
646
+ } | undefined;
647
+ validation?: {
648
+ message: import("./TranslationConfig").TranslationConfig;
649
+ validator: import(".").JSONSchema;
650
+ }[] | undefined;
651
+ required?: boolean | undefined;
652
+ defaultValue?: {
653
+ country: string;
654
+ district: string;
655
+ addressType: "DOMESTIC";
656
+ province: string;
657
+ urbanOrRural: "URBAN";
658
+ number?: string | undefined;
659
+ town?: string | undefined;
660
+ residentialArea?: string | undefined;
661
+ street?: string | undefined;
662
+ zipCode?: string | undefined;
663
+ } | {
664
+ country: string;
665
+ district: string;
666
+ addressType: "DOMESTIC";
667
+ province: string;
668
+ urbanOrRural: "RURAL";
669
+ village?: string | undefined;
670
+ } | {
671
+ country: string;
672
+ state: string;
673
+ addressType: "INTERNATIONAL";
674
+ district2: string;
675
+ cityOrTown?: string | undefined;
676
+ addressLine1?: string | undefined;
677
+ addressLine2?: string | undefined;
678
+ addressLine3?: string | undefined;
679
+ postcodeOrZip?: string | undefined;
680
+ } | undefined;
681
+ conditionals?: ({
682
+ type: "SHOW";
683
+ conditional: import(".").JSONSchema;
684
+ } | {
685
+ type: "ENABLE";
686
+ conditional: import(".").JSONSchema;
687
+ } | {
688
+ type: "DISPLAY_ON_REVIEW";
689
+ conditional: import(".").JSONSchema;
690
+ })[] | undefined;
691
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
692
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
693
+ hideLabel?: boolean | undefined;
694
+ } | {
695
+ type: "DATA";
696
+ id: string;
697
+ label: import("./TranslationConfig").TranslationConfig;
698
+ configuration: {
699
+ data: ({
700
+ value: string | import("./TranslationConfig").TranslationConfig;
701
+ label: import("./TranslationConfig").TranslationConfig;
702
+ } | {
703
+ fieldId: string;
704
+ })[];
705
+ subtitle?: import("./TranslationConfig").TranslationConfig | undefined;
706
+ };
707
+ parent?: {
708
+ _fieldId?: string | undefined;
709
+ } | undefined;
710
+ validation?: {
711
+ message: import("./TranslationConfig").TranslationConfig;
712
+ validator: import(".").JSONSchema;
713
+ }[] | undefined;
714
+ required?: boolean | undefined;
715
+ defaultValue?: string | number | boolean | undefined;
716
+ conditionals?: ({
717
+ type: "SHOW";
718
+ conditional: import(".").JSONSchema;
719
+ } | {
720
+ type: "ENABLE";
721
+ conditional: import(".").JSONSchema;
722
+ } | {
723
+ type: "DISPLAY_ON_REVIEW";
724
+ conditional: import(".").JSONSchema;
725
+ })[] | undefined;
726
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
727
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
728
+ hideLabel?: boolean | undefined;
729
+ })[];
730
+ conditional?: import(".").JSONSchema | undefined;
16
731
  }[];
17
- /**
18
- * @returns All the fields in the event configuration.
19
- */
20
- export declare const findPageFields: (config: EventConfig) => FieldConfig[];
21
- /**
22
- *
23
- * @param pageFields - All the fields in the event configuration
24
- * @param refFields - The fields referencing values within the event configuration (e.g. summary fields) or within system provided metadata fields (e.g. createdAt, updatedBy)
25
- * @returns referenced fields with populated labels
26
- */
27
- export declare const resolveLabelsFromKnownFields: ({ pageFields, refFields }: {
28
- pageFields: {
732
+ export declare function getDeclaration(configuration: EventConfig): {
733
+ label: import("./TranslationConfig").TranslationConfig;
734
+ pages: {
735
+ type: "FORM";
29
736
  id: string;
30
- label: TranslationConfig;
737
+ title: import("./TranslationConfig").TranslationConfig;
738
+ fields: ({
739
+ type: "DIVIDER";
740
+ id: string;
741
+ label: import("./TranslationConfig").TranslationConfig;
742
+ parent?: {
743
+ _fieldId?: string | undefined;
744
+ } | undefined;
745
+ validation?: {
746
+ message: import("./TranslationConfig").TranslationConfig;
747
+ validator: import(".").JSONSchema;
748
+ }[] | undefined;
749
+ required?: boolean | undefined;
750
+ defaultValue?: string | number | boolean | 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
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
762
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
763
+ hideLabel?: boolean | undefined;
764
+ } | {
765
+ type: "TEXT";
766
+ id: string;
767
+ label: import("./TranslationConfig").TranslationConfig;
768
+ parent?: {
769
+ _fieldId?: string | undefined;
770
+ } | undefined;
771
+ validation?: {
772
+ message: import("./TranslationConfig").TranslationConfig;
773
+ validator: import(".").JSONSchema;
774
+ }[] | undefined;
775
+ required?: boolean | undefined;
776
+ defaultValue?: string | undefined;
777
+ conditionals?: ({
778
+ type: "SHOW";
779
+ conditional: import(".").JSONSchema;
780
+ } | {
781
+ type: "ENABLE";
782
+ conditional: import(".").JSONSchema;
783
+ } | {
784
+ type: "DISPLAY_ON_REVIEW";
785
+ conditional: import(".").JSONSchema;
786
+ })[] | undefined;
787
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
788
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
789
+ hideLabel?: boolean | undefined;
790
+ configuration?: {
791
+ type?: "text" | "password" | undefined;
792
+ maxLength?: number | undefined;
793
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
794
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
795
+ } | undefined;
796
+ } | {
797
+ type: "NUMBER";
798
+ id: string;
799
+ label: import("./TranslationConfig").TranslationConfig;
800
+ parent?: {
801
+ _fieldId?: string | undefined;
802
+ } | undefined;
803
+ validation?: {
804
+ message: import("./TranslationConfig").TranslationConfig;
805
+ validator: import(".").JSONSchema;
806
+ }[] | undefined;
807
+ required?: boolean | undefined;
808
+ defaultValue?: number | undefined;
809
+ conditionals?: ({
810
+ type: "SHOW";
811
+ conditional: import(".").JSONSchema;
812
+ } | {
813
+ type: "ENABLE";
814
+ conditional: import(".").JSONSchema;
815
+ } | {
816
+ type: "DISPLAY_ON_REVIEW";
817
+ conditional: import(".").JSONSchema;
818
+ })[] | undefined;
819
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
820
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
821
+ hideLabel?: boolean | undefined;
822
+ configuration?: {
823
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
824
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
825
+ min?: number | undefined;
826
+ max?: number | undefined;
827
+ } | undefined;
828
+ } | {
829
+ type: "TEXTAREA";
830
+ id: string;
831
+ label: import("./TranslationConfig").TranslationConfig;
832
+ parent?: {
833
+ _fieldId?: string | undefined;
834
+ } | undefined;
835
+ validation?: {
836
+ message: import("./TranslationConfig").TranslationConfig;
837
+ validator: import(".").JSONSchema;
838
+ }[] | undefined;
839
+ required?: boolean | undefined;
840
+ defaultValue?: string | undefined;
841
+ conditionals?: ({
842
+ type: "SHOW";
843
+ conditional: import(".").JSONSchema;
844
+ } | {
845
+ type: "ENABLE";
846
+ conditional: import(".").JSONSchema;
847
+ } | {
848
+ type: "DISPLAY_ON_REVIEW";
849
+ conditional: import(".").JSONSchema;
850
+ })[] | undefined;
851
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
852
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
853
+ hideLabel?: boolean | undefined;
854
+ configuration?: {
855
+ maxLength?: number | undefined;
856
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
857
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
858
+ rows?: number | undefined;
859
+ cols?: number | undefined;
860
+ } | undefined;
861
+ } | {
862
+ type: "SIGNATURE";
863
+ id: string;
864
+ label: import("./TranslationConfig").TranslationConfig;
865
+ configuration: {
866
+ maxFileSize: number;
867
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
868
+ };
869
+ signaturePromptLabel: import("./TranslationConfig").TranslationConfig;
870
+ parent?: {
871
+ _fieldId?: string | undefined;
872
+ } | undefined;
873
+ validation?: {
874
+ message: import("./TranslationConfig").TranslationConfig;
875
+ validator: import(".").JSONSchema;
876
+ }[] | undefined;
877
+ required?: boolean | undefined;
878
+ defaultValue?: string | number | boolean | undefined;
879
+ conditionals?: ({
880
+ type: "SHOW";
881
+ conditional: import(".").JSONSchema;
882
+ } | {
883
+ type: "ENABLE";
884
+ conditional: import(".").JSONSchema;
885
+ } | {
886
+ type: "DISPLAY_ON_REVIEW";
887
+ conditional: import(".").JSONSchema;
888
+ })[] | undefined;
889
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
890
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
891
+ hideLabel?: boolean | undefined;
892
+ } | {
893
+ type: "EMAIL";
894
+ id: string;
895
+ label: import("./TranslationConfig").TranslationConfig;
896
+ parent?: {
897
+ _fieldId?: string | undefined;
898
+ } | undefined;
899
+ validation?: {
900
+ message: import("./TranslationConfig").TranslationConfig;
901
+ validator: import(".").JSONSchema;
902
+ }[] | undefined;
903
+ required?: boolean | undefined;
904
+ defaultValue?: string | undefined;
905
+ conditionals?: ({
906
+ type: "SHOW";
907
+ conditional: import(".").JSONSchema;
908
+ } | {
909
+ type: "ENABLE";
910
+ conditional: import(".").JSONSchema;
911
+ } | {
912
+ type: "DISPLAY_ON_REVIEW";
913
+ conditional: import(".").JSONSchema;
914
+ })[] | undefined;
915
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
916
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
917
+ hideLabel?: boolean | undefined;
918
+ configuration?: {
919
+ maxLength?: number | undefined;
920
+ } | undefined;
921
+ } | {
922
+ type: "DATE";
923
+ id: string;
924
+ label: import("./TranslationConfig").TranslationConfig;
925
+ parent?: {
926
+ _fieldId?: string | undefined;
927
+ } | undefined;
928
+ validation?: {
929
+ message: import("./TranslationConfig").TranslationConfig;
930
+ validator: import(".").JSONSchema;
931
+ }[] | undefined;
932
+ required?: boolean | undefined;
933
+ defaultValue?: string | undefined;
934
+ conditionals?: ({
935
+ type: "SHOW";
936
+ conditional: import(".").JSONSchema;
937
+ } | {
938
+ type: "ENABLE";
939
+ conditional: import(".").JSONSchema;
940
+ } | {
941
+ type: "DISPLAY_ON_REVIEW";
942
+ conditional: import(".").JSONSchema;
943
+ })[] | undefined;
944
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
945
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
946
+ hideLabel?: boolean | undefined;
947
+ configuration?: {
948
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
949
+ } | undefined;
950
+ } | {
951
+ type: "DATE_RANGE";
952
+ id: string;
953
+ label: import("./TranslationConfig").TranslationConfig;
954
+ parent?: {
955
+ _fieldId?: string | undefined;
956
+ } | undefined;
957
+ validation?: {
958
+ message: import("./TranslationConfig").TranslationConfig;
959
+ validator: import(".").JSONSchema;
960
+ }[] | undefined;
961
+ required?: boolean | undefined;
962
+ defaultValue?: string | [string, string] | undefined;
963
+ conditionals?: ({
964
+ type: "SHOW";
965
+ conditional: import(".").JSONSchema;
966
+ } | {
967
+ type: "ENABLE";
968
+ conditional: import(".").JSONSchema;
969
+ } | {
970
+ type: "DISPLAY_ON_REVIEW";
971
+ conditional: import(".").JSONSchema;
972
+ })[] | undefined;
973
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
974
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
975
+ hideLabel?: boolean | undefined;
976
+ configuration?: {
977
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
978
+ } | undefined;
979
+ } | {
980
+ type: "PARAGRAPH";
981
+ id: string;
982
+ label: import("./TranslationConfig").TranslationConfig;
983
+ configuration: {
984
+ styles?: {
985
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
986
+ } | undefined;
987
+ };
988
+ parent?: {
989
+ _fieldId?: string | undefined;
990
+ } | undefined;
991
+ validation?: {
992
+ message: import("./TranslationConfig").TranslationConfig;
993
+ validator: import(".").JSONSchema;
994
+ }[] | undefined;
995
+ required?: boolean | undefined;
996
+ defaultValue?: string | undefined;
997
+ conditionals?: ({
998
+ type: "SHOW";
999
+ conditional: import(".").JSONSchema;
1000
+ } | {
1001
+ type: "ENABLE";
1002
+ conditional: import(".").JSONSchema;
1003
+ } | {
1004
+ type: "DISPLAY_ON_REVIEW";
1005
+ conditional: import(".").JSONSchema;
1006
+ })[] | undefined;
1007
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1008
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1009
+ hideLabel?: boolean | undefined;
1010
+ } | {
1011
+ type: "PAGE_HEADER";
1012
+ id: string;
1013
+ label: import("./TranslationConfig").TranslationConfig;
1014
+ parent?: {
1015
+ _fieldId?: string | undefined;
1016
+ } | undefined;
1017
+ validation?: {
1018
+ message: import("./TranslationConfig").TranslationConfig;
1019
+ validator: import(".").JSONSchema;
1020
+ }[] | undefined;
1021
+ required?: boolean | undefined;
1022
+ defaultValue?: string | undefined;
1023
+ conditionals?: ({
1024
+ type: "SHOW";
1025
+ conditional: import(".").JSONSchema;
1026
+ } | {
1027
+ type: "ENABLE";
1028
+ conditional: import(".").JSONSchema;
1029
+ } | {
1030
+ type: "DISPLAY_ON_REVIEW";
1031
+ conditional: import(".").JSONSchema;
1032
+ })[] | undefined;
1033
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1034
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1035
+ hideLabel?: boolean | undefined;
1036
+ } | {
1037
+ type: "FILE";
1038
+ id: string;
1039
+ label: import("./TranslationConfig").TranslationConfig;
1040
+ configuration: {
1041
+ maxFileSize: number;
1042
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1043
+ style?: {
1044
+ width?: "full" | "auto" | undefined;
1045
+ } | undefined;
1046
+ fileName?: import("./TranslationConfig").TranslationConfig | undefined;
1047
+ };
1048
+ parent?: {
1049
+ _fieldId?: string | undefined;
1050
+ } | undefined;
1051
+ validation?: {
1052
+ message: import("./TranslationConfig").TranslationConfig;
1053
+ validator: import(".").JSONSchema;
1054
+ }[] | undefined;
1055
+ required?: boolean | undefined;
1056
+ defaultValue?: string | number | boolean | undefined;
1057
+ conditionals?: ({
1058
+ type: "SHOW";
1059
+ conditional: import(".").JSONSchema;
1060
+ } | {
1061
+ type: "ENABLE";
1062
+ conditional: import(".").JSONSchema;
1063
+ } | {
1064
+ type: "DISPLAY_ON_REVIEW";
1065
+ conditional: import(".").JSONSchema;
1066
+ })[] | undefined;
1067
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1068
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1069
+ hideLabel?: boolean | undefined;
1070
+ } | {
1071
+ type: "RADIO_GROUP";
1072
+ id: string;
1073
+ options: {
1074
+ value: string;
1075
+ label: import("./TranslationConfig").TranslationConfig;
1076
+ }[];
1077
+ label: import("./TranslationConfig").TranslationConfig;
1078
+ parent?: {
1079
+ _fieldId?: string | undefined;
1080
+ } | undefined;
1081
+ validation?: {
1082
+ message: import("./TranslationConfig").TranslationConfig;
1083
+ validator: import(".").JSONSchema;
1084
+ }[] | undefined;
1085
+ required?: boolean | undefined;
1086
+ defaultValue?: string | undefined;
1087
+ conditionals?: ({
1088
+ type: "SHOW";
1089
+ conditional: import(".").JSONSchema;
1090
+ } | {
1091
+ type: "ENABLE";
1092
+ conditional: import(".").JSONSchema;
1093
+ } | {
1094
+ type: "DISPLAY_ON_REVIEW";
1095
+ conditional: import(".").JSONSchema;
1096
+ })[] | undefined;
1097
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1098
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1099
+ hideLabel?: boolean | undefined;
1100
+ configuration?: {
1101
+ styles?: {
1102
+ size?: "NORMAL" | "LARGE" | undefined;
1103
+ } | undefined;
1104
+ } | undefined;
1105
+ } | {
1106
+ type: "BULLET_LIST";
1107
+ id: string;
1108
+ label: import("./TranslationConfig").TranslationConfig;
1109
+ configuration: {
1110
+ styles?: {
1111
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1112
+ } | undefined;
1113
+ };
1114
+ items: import("./TranslationConfig").TranslationConfig[];
1115
+ parent?: {
1116
+ _fieldId?: string | undefined;
1117
+ } | undefined;
1118
+ validation?: {
1119
+ message: import("./TranslationConfig").TranslationConfig;
1120
+ validator: import(".").JSONSchema;
1121
+ }[] | undefined;
1122
+ required?: boolean | undefined;
1123
+ defaultValue?: string | undefined;
1124
+ conditionals?: ({
1125
+ type: "SHOW";
1126
+ conditional: import(".").JSONSchema;
1127
+ } | {
1128
+ type: "ENABLE";
1129
+ conditional: import(".").JSONSchema;
1130
+ } | {
1131
+ type: "DISPLAY_ON_REVIEW";
1132
+ conditional: import(".").JSONSchema;
1133
+ })[] | undefined;
1134
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1135
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1136
+ hideLabel?: boolean | undefined;
1137
+ } | {
1138
+ type: "SELECT";
1139
+ id: string;
1140
+ options: {
1141
+ value: string;
1142
+ label: import("./TranslationConfig").TranslationConfig;
1143
+ }[];
1144
+ label: import("./TranslationConfig").TranslationConfig;
1145
+ parent?: {
1146
+ _fieldId?: string | undefined;
1147
+ } | undefined;
1148
+ validation?: {
1149
+ message: import("./TranslationConfig").TranslationConfig;
1150
+ validator: import(".").JSONSchema;
1151
+ }[] | undefined;
1152
+ required?: boolean | undefined;
1153
+ defaultValue?: string | undefined;
1154
+ conditionals?: ({
1155
+ type: "SHOW";
1156
+ conditional: import(".").JSONSchema;
1157
+ } | {
1158
+ type: "ENABLE";
1159
+ conditional: import(".").JSONSchema;
1160
+ } | {
1161
+ type: "DISPLAY_ON_REVIEW";
1162
+ conditional: import(".").JSONSchema;
1163
+ })[] | undefined;
1164
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1165
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1166
+ hideLabel?: boolean | undefined;
1167
+ } | {
1168
+ type: "CHECKBOX";
1169
+ id: string;
1170
+ label: import("./TranslationConfig").TranslationConfig;
1171
+ parent?: {
1172
+ _fieldId?: string | undefined;
1173
+ } | undefined;
1174
+ validation?: {
1175
+ message: import("./TranslationConfig").TranslationConfig;
1176
+ validator: import(".").JSONSchema;
1177
+ }[] | undefined;
1178
+ required?: boolean | undefined;
1179
+ defaultValue?: boolean | undefined;
1180
+ conditionals?: ({
1181
+ type: "SHOW";
1182
+ conditional: import(".").JSONSchema;
1183
+ } | {
1184
+ type: "ENABLE";
1185
+ conditional: import(".").JSONSchema;
1186
+ } | {
1187
+ type: "DISPLAY_ON_REVIEW";
1188
+ conditional: import(".").JSONSchema;
1189
+ })[] | undefined;
1190
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1191
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1192
+ hideLabel?: boolean | undefined;
1193
+ } | {
1194
+ type: "COUNTRY";
1195
+ id: string;
1196
+ label: import("./TranslationConfig").TranslationConfig;
1197
+ parent?: {
1198
+ _fieldId?: string | undefined;
1199
+ } | undefined;
1200
+ validation?: {
1201
+ message: import("./TranslationConfig").TranslationConfig;
1202
+ validator: import(".").JSONSchema;
1203
+ }[] | undefined;
1204
+ required?: boolean | undefined;
1205
+ defaultValue?: string | undefined;
1206
+ conditionals?: ({
1207
+ type: "SHOW";
1208
+ conditional: import(".").JSONSchema;
1209
+ } | {
1210
+ type: "ENABLE";
1211
+ conditional: import(".").JSONSchema;
1212
+ } | {
1213
+ type: "DISPLAY_ON_REVIEW";
1214
+ conditional: import(".").JSONSchema;
1215
+ })[] | undefined;
1216
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1217
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1218
+ hideLabel?: boolean | undefined;
1219
+ } | {
1220
+ type: "ADMINISTRATIVE_AREA";
1221
+ id: string;
1222
+ label: import("./TranslationConfig").TranslationConfig;
1223
+ configuration: {
1224
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
1225
+ partOf?: {
1226
+ $declaration: string;
1227
+ } | undefined;
1228
+ };
1229
+ parent?: {
1230
+ _fieldId?: string | undefined;
1231
+ } | undefined;
1232
+ validation?: {
1233
+ message: import("./TranslationConfig").TranslationConfig;
1234
+ validator: import(".").JSONSchema;
1235
+ }[] | undefined;
1236
+ required?: boolean | undefined;
1237
+ defaultValue?: string | undefined;
1238
+ conditionals?: ({
1239
+ type: "SHOW";
1240
+ conditional: import(".").JSONSchema;
1241
+ } | {
1242
+ type: "ENABLE";
1243
+ conditional: import(".").JSONSchema;
1244
+ } | {
1245
+ type: "DISPLAY_ON_REVIEW";
1246
+ conditional: import(".").JSONSchema;
1247
+ })[] | undefined;
1248
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1249
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1250
+ hideLabel?: boolean | undefined;
1251
+ } | {
1252
+ type: "LOCATION";
1253
+ id: string;
1254
+ label: import("./TranslationConfig").TranslationConfig;
1255
+ parent?: {
1256
+ _fieldId?: string | undefined;
1257
+ } | undefined;
1258
+ validation?: {
1259
+ message: import("./TranslationConfig").TranslationConfig;
1260
+ validator: import(".").JSONSchema;
1261
+ }[] | undefined;
1262
+ required?: boolean | undefined;
1263
+ defaultValue?: string | undefined;
1264
+ conditionals?: ({
1265
+ type: "SHOW";
1266
+ conditional: import(".").JSONSchema;
1267
+ } | {
1268
+ type: "ENABLE";
1269
+ conditional: import(".").JSONSchema;
1270
+ } | {
1271
+ type: "DISPLAY_ON_REVIEW";
1272
+ conditional: import(".").JSONSchema;
1273
+ })[] | undefined;
1274
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1275
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1276
+ hideLabel?: boolean | undefined;
1277
+ } | {
1278
+ type: "FILE_WITH_OPTIONS";
1279
+ id: string;
1280
+ options: {
1281
+ value: string;
1282
+ label: import("./TranslationConfig").TranslationConfig;
1283
+ }[];
1284
+ label: import("./TranslationConfig").TranslationConfig;
1285
+ configuration: {
1286
+ maxFileSize: number;
1287
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1288
+ };
1289
+ parent?: {
1290
+ _fieldId?: string | undefined;
1291
+ } | undefined;
1292
+ validation?: {
1293
+ message: import("./TranslationConfig").TranslationConfig;
1294
+ validator: import(".").JSONSchema;
1295
+ }[] | undefined;
1296
+ required?: boolean | undefined;
1297
+ defaultValue?: string | number | boolean | undefined;
1298
+ conditionals?: ({
1299
+ type: "SHOW";
1300
+ conditional: import(".").JSONSchema;
1301
+ } | {
1302
+ type: "ENABLE";
1303
+ conditional: import(".").JSONSchema;
1304
+ } | {
1305
+ type: "DISPLAY_ON_REVIEW";
1306
+ conditional: import(".").JSONSchema;
1307
+ })[] | undefined;
1308
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1309
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1310
+ hideLabel?: boolean | undefined;
1311
+ } | {
1312
+ type: "FACILITY";
1313
+ id: string;
1314
+ label: import("./TranslationConfig").TranslationConfig;
1315
+ parent?: {
1316
+ _fieldId?: string | undefined;
1317
+ } | undefined;
1318
+ validation?: {
1319
+ message: import("./TranslationConfig").TranslationConfig;
1320
+ validator: import(".").JSONSchema;
1321
+ }[] | undefined;
1322
+ required?: boolean | undefined;
1323
+ defaultValue?: string | undefined;
1324
+ conditionals?: ({
1325
+ type: "SHOW";
1326
+ conditional: import(".").JSONSchema;
1327
+ } | {
1328
+ type: "ENABLE";
1329
+ conditional: import(".").JSONSchema;
1330
+ } | {
1331
+ type: "DISPLAY_ON_REVIEW";
1332
+ conditional: import(".").JSONSchema;
1333
+ })[] | undefined;
1334
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1335
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1336
+ hideLabel?: boolean | undefined;
1337
+ } | {
1338
+ type: "OFFICE";
1339
+ id: string;
1340
+ label: import("./TranslationConfig").TranslationConfig;
1341
+ parent?: {
1342
+ _fieldId?: string | undefined;
1343
+ } | undefined;
1344
+ validation?: {
1345
+ message: import("./TranslationConfig").TranslationConfig;
1346
+ validator: import(".").JSONSchema;
1347
+ }[] | undefined;
1348
+ required?: boolean | undefined;
1349
+ defaultValue?: string | undefined;
1350
+ conditionals?: ({
1351
+ type: "SHOW";
1352
+ conditional: import(".").JSONSchema;
1353
+ } | {
1354
+ type: "ENABLE";
1355
+ conditional: import(".").JSONSchema;
1356
+ } | {
1357
+ type: "DISPLAY_ON_REVIEW";
1358
+ conditional: import(".").JSONSchema;
1359
+ })[] | undefined;
1360
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1361
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1362
+ hideLabel?: boolean | undefined;
1363
+ } | {
1364
+ type: "ADDRESS";
1365
+ id: string;
1366
+ label: import("./TranslationConfig").TranslationConfig;
1367
+ parent?: {
1368
+ _fieldId?: string | undefined;
1369
+ } | undefined;
1370
+ validation?: {
1371
+ message: import("./TranslationConfig").TranslationConfig;
1372
+ validator: import(".").JSONSchema;
1373
+ }[] | undefined;
1374
+ required?: boolean | undefined;
1375
+ defaultValue?: {
1376
+ country: string;
1377
+ district: string;
1378
+ addressType: "DOMESTIC";
1379
+ province: string;
1380
+ urbanOrRural: "URBAN";
1381
+ number?: string | undefined;
1382
+ town?: string | undefined;
1383
+ residentialArea?: string | undefined;
1384
+ street?: string | undefined;
1385
+ zipCode?: string | undefined;
1386
+ } | {
1387
+ country: string;
1388
+ district: string;
1389
+ addressType: "DOMESTIC";
1390
+ province: string;
1391
+ urbanOrRural: "RURAL";
1392
+ village?: string | undefined;
1393
+ } | {
1394
+ country: string;
1395
+ state: string;
1396
+ addressType: "INTERNATIONAL";
1397
+ district2: string;
1398
+ cityOrTown?: string | undefined;
1399
+ addressLine1?: string | undefined;
1400
+ addressLine2?: string | undefined;
1401
+ addressLine3?: string | undefined;
1402
+ postcodeOrZip?: string | undefined;
1403
+ } | undefined;
1404
+ conditionals?: ({
1405
+ type: "SHOW";
1406
+ conditional: import(".").JSONSchema;
1407
+ } | {
1408
+ type: "ENABLE";
1409
+ conditional: import(".").JSONSchema;
1410
+ } | {
1411
+ type: "DISPLAY_ON_REVIEW";
1412
+ conditional: import(".").JSONSchema;
1413
+ })[] | undefined;
1414
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1415
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1416
+ hideLabel?: boolean | undefined;
1417
+ } | {
1418
+ type: "DATA";
1419
+ id: string;
1420
+ label: import("./TranslationConfig").TranslationConfig;
1421
+ configuration: {
1422
+ data: ({
1423
+ value: string | import("./TranslationConfig").TranslationConfig;
1424
+ label: import("./TranslationConfig").TranslationConfig;
1425
+ } | {
1426
+ fieldId: string;
1427
+ })[];
1428
+ subtitle?: import("./TranslationConfig").TranslationConfig | undefined;
1429
+ };
1430
+ parent?: {
1431
+ _fieldId?: string | undefined;
1432
+ } | undefined;
1433
+ validation?: {
1434
+ message: import("./TranslationConfig").TranslationConfig;
1435
+ validator: import(".").JSONSchema;
1436
+ }[] | undefined;
1437
+ required?: boolean | undefined;
1438
+ defaultValue?: string | number | boolean | undefined;
1439
+ conditionals?: ({
1440
+ type: "SHOW";
1441
+ conditional: import(".").JSONSchema;
1442
+ } | {
1443
+ type: "ENABLE";
1444
+ conditional: import(".").JSONSchema;
1445
+ } | {
1446
+ type: "DISPLAY_ON_REVIEW";
1447
+ conditional: import(".").JSONSchema;
1448
+ })[] | undefined;
1449
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1450
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1451
+ hideLabel?: boolean | undefined;
1452
+ })[];
1453
+ conditional?: import(".").JSONSchema | undefined;
1454
+ }[];
1455
+ };
1456
+ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => ({
1457
+ type: "DIVIDER";
1458
+ id: string;
1459
+ label: import("./TranslationConfig").TranslationConfig;
1460
+ parent?: {
1461
+ _fieldId?: string | undefined;
1462
+ } | undefined;
1463
+ validation?: {
1464
+ message: import("./TranslationConfig").TranslationConfig;
1465
+ validator: import(".").JSONSchema;
1466
+ }[] | undefined;
1467
+ required?: boolean | undefined;
1468
+ defaultValue?: string | number | boolean | undefined;
1469
+ conditionals?: ({
1470
+ type: "SHOW";
1471
+ conditional: import(".").JSONSchema;
1472
+ } | {
1473
+ type: "ENABLE";
1474
+ conditional: import(".").JSONSchema;
1475
+ } | {
1476
+ type: "DISPLAY_ON_REVIEW";
1477
+ conditional: import(".").JSONSchema;
1478
+ })[] | undefined;
1479
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1480
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1481
+ hideLabel?: boolean | undefined;
1482
+ } | {
1483
+ type: "TEXT";
1484
+ id: string;
1485
+ label: import("./TranslationConfig").TranslationConfig;
1486
+ parent?: {
1487
+ _fieldId?: string | undefined;
1488
+ } | undefined;
1489
+ validation?: {
1490
+ message: import("./TranslationConfig").TranslationConfig;
1491
+ validator: import(".").JSONSchema;
1492
+ }[] | undefined;
1493
+ required?: boolean | undefined;
1494
+ defaultValue?: string | undefined;
1495
+ conditionals?: ({
1496
+ type: "SHOW";
1497
+ conditional: import(".").JSONSchema;
1498
+ } | {
1499
+ type: "ENABLE";
1500
+ conditional: import(".").JSONSchema;
1501
+ } | {
1502
+ type: "DISPLAY_ON_REVIEW";
1503
+ conditional: import(".").JSONSchema;
1504
+ })[] | undefined;
1505
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1506
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1507
+ hideLabel?: boolean | undefined;
1508
+ configuration?: {
1509
+ type?: "text" | "password" | undefined;
1510
+ maxLength?: number | undefined;
1511
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
1512
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
1513
+ } | undefined;
1514
+ } | {
1515
+ type: "NUMBER";
1516
+ id: string;
1517
+ label: import("./TranslationConfig").TranslationConfig;
1518
+ parent?: {
1519
+ _fieldId?: string | undefined;
1520
+ } | undefined;
1521
+ validation?: {
1522
+ message: import("./TranslationConfig").TranslationConfig;
1523
+ validator: import(".").JSONSchema;
1524
+ }[] | undefined;
1525
+ required?: boolean | undefined;
1526
+ defaultValue?: number | undefined;
1527
+ conditionals?: ({
1528
+ type: "SHOW";
1529
+ conditional: import(".").JSONSchema;
1530
+ } | {
1531
+ type: "ENABLE";
1532
+ conditional: import(".").JSONSchema;
1533
+ } | {
1534
+ type: "DISPLAY_ON_REVIEW";
1535
+ conditional: import(".").JSONSchema;
1536
+ })[] | undefined;
1537
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1538
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1539
+ hideLabel?: boolean | undefined;
1540
+ configuration?: {
1541
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
1542
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
1543
+ min?: number | undefined;
1544
+ max?: number | undefined;
1545
+ } | undefined;
1546
+ } | {
1547
+ type: "TEXTAREA";
1548
+ id: string;
1549
+ label: import("./TranslationConfig").TranslationConfig;
1550
+ parent?: {
1551
+ _fieldId?: string | undefined;
1552
+ } | undefined;
1553
+ validation?: {
1554
+ message: import("./TranslationConfig").TranslationConfig;
1555
+ validator: import(".").JSONSchema;
1556
+ }[] | undefined;
1557
+ required?: boolean | undefined;
1558
+ defaultValue?: string | undefined;
1559
+ conditionals?: ({
1560
+ type: "SHOW";
1561
+ conditional: import(".").JSONSchema;
1562
+ } | {
1563
+ type: "ENABLE";
1564
+ conditional: import(".").JSONSchema;
1565
+ } | {
1566
+ type: "DISPLAY_ON_REVIEW";
1567
+ conditional: import(".").JSONSchema;
1568
+ })[] | undefined;
1569
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1570
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1571
+ hideLabel?: boolean | undefined;
1572
+ configuration?: {
1573
+ maxLength?: number | undefined;
1574
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
1575
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
1576
+ rows?: number | undefined;
1577
+ cols?: number | undefined;
1578
+ } | undefined;
1579
+ } | {
1580
+ type: "SIGNATURE";
1581
+ id: string;
1582
+ label: import("./TranslationConfig").TranslationConfig;
1583
+ configuration: {
1584
+ maxFileSize: number;
1585
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1586
+ };
1587
+ signaturePromptLabel: import("./TranslationConfig").TranslationConfig;
1588
+ parent?: {
1589
+ _fieldId?: string | undefined;
1590
+ } | undefined;
1591
+ validation?: {
1592
+ message: import("./TranslationConfig").TranslationConfig;
1593
+ validator: import(".").JSONSchema;
1594
+ }[] | undefined;
1595
+ required?: boolean | undefined;
1596
+ defaultValue?: string | number | boolean | undefined;
1597
+ conditionals?: ({
1598
+ type: "SHOW";
1599
+ conditional: import(".").JSONSchema;
1600
+ } | {
1601
+ type: "ENABLE";
1602
+ conditional: import(".").JSONSchema;
1603
+ } | {
1604
+ type: "DISPLAY_ON_REVIEW";
1605
+ conditional: import(".").JSONSchema;
1606
+ })[] | undefined;
1607
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1608
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1609
+ hideLabel?: boolean | undefined;
1610
+ } | {
1611
+ type: "EMAIL";
1612
+ id: string;
1613
+ label: import("./TranslationConfig").TranslationConfig;
1614
+ parent?: {
1615
+ _fieldId?: string | undefined;
1616
+ } | undefined;
1617
+ validation?: {
1618
+ message: import("./TranslationConfig").TranslationConfig;
1619
+ validator: import(".").JSONSchema;
1620
+ }[] | undefined;
1621
+ required?: boolean | undefined;
1622
+ defaultValue?: string | undefined;
1623
+ conditionals?: ({
1624
+ type: "SHOW";
1625
+ conditional: import(".").JSONSchema;
1626
+ } | {
1627
+ type: "ENABLE";
1628
+ conditional: import(".").JSONSchema;
1629
+ } | {
1630
+ type: "DISPLAY_ON_REVIEW";
1631
+ conditional: import(".").JSONSchema;
1632
+ })[] | undefined;
1633
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1634
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1635
+ hideLabel?: boolean | undefined;
1636
+ configuration?: {
1637
+ maxLength?: number | undefined;
1638
+ } | undefined;
1639
+ } | {
1640
+ type: "DATE";
1641
+ id: string;
1642
+ label: import("./TranslationConfig").TranslationConfig;
1643
+ parent?: {
1644
+ _fieldId?: string | undefined;
1645
+ } | undefined;
1646
+ validation?: {
1647
+ message: import("./TranslationConfig").TranslationConfig;
1648
+ validator: import(".").JSONSchema;
1649
+ }[] | undefined;
1650
+ required?: boolean | undefined;
1651
+ defaultValue?: string | undefined;
1652
+ conditionals?: ({
1653
+ type: "SHOW";
1654
+ conditional: import(".").JSONSchema;
1655
+ } | {
1656
+ type: "ENABLE";
1657
+ conditional: import(".").JSONSchema;
1658
+ } | {
1659
+ type: "DISPLAY_ON_REVIEW";
1660
+ conditional: import(".").JSONSchema;
1661
+ })[] | undefined;
1662
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1663
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1664
+ hideLabel?: boolean | undefined;
1665
+ configuration?: {
1666
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
1667
+ } | undefined;
1668
+ } | {
1669
+ type: "DATE_RANGE";
1670
+ id: string;
1671
+ label: import("./TranslationConfig").TranslationConfig;
1672
+ parent?: {
1673
+ _fieldId?: string | undefined;
1674
+ } | undefined;
1675
+ validation?: {
1676
+ message: import("./TranslationConfig").TranslationConfig;
1677
+ validator: import(".").JSONSchema;
1678
+ }[] | undefined;
1679
+ required?: boolean | undefined;
1680
+ defaultValue?: string | [string, string] | undefined;
1681
+ conditionals?: ({
1682
+ type: "SHOW";
1683
+ conditional: import(".").JSONSchema;
1684
+ } | {
1685
+ type: "ENABLE";
1686
+ conditional: import(".").JSONSchema;
1687
+ } | {
1688
+ type: "DISPLAY_ON_REVIEW";
1689
+ conditional: import(".").JSONSchema;
1690
+ })[] | undefined;
1691
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1692
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1693
+ hideLabel?: boolean | undefined;
1694
+ configuration?: {
1695
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
1696
+ } | undefined;
1697
+ } | {
1698
+ type: "PARAGRAPH";
1699
+ id: string;
1700
+ label: import("./TranslationConfig").TranslationConfig;
1701
+ configuration: {
1702
+ styles?: {
1703
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1704
+ } | undefined;
1705
+ };
1706
+ parent?: {
1707
+ _fieldId?: string | undefined;
1708
+ } | undefined;
1709
+ validation?: {
1710
+ message: import("./TranslationConfig").TranslationConfig;
1711
+ validator: import(".").JSONSchema;
1712
+ }[] | undefined;
1713
+ required?: boolean | undefined;
1714
+ defaultValue?: string | 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
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1726
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1727
+ hideLabel?: boolean | undefined;
1728
+ } | {
1729
+ type: "PAGE_HEADER";
1730
+ id: string;
1731
+ label: import("./TranslationConfig").TranslationConfig;
1732
+ parent?: {
1733
+ _fieldId?: string | undefined;
1734
+ } | undefined;
1735
+ validation?: {
1736
+ message: import("./TranslationConfig").TranslationConfig;
1737
+ validator: import(".").JSONSchema;
1738
+ }[] | undefined;
1739
+ required?: boolean | undefined;
1740
+ defaultValue?: string | undefined;
1741
+ conditionals?: ({
1742
+ type: "SHOW";
1743
+ conditional: import(".").JSONSchema;
1744
+ } | {
1745
+ type: "ENABLE";
1746
+ conditional: import(".").JSONSchema;
1747
+ } | {
1748
+ type: "DISPLAY_ON_REVIEW";
1749
+ conditional: import(".").JSONSchema;
1750
+ })[] | undefined;
1751
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1752
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1753
+ hideLabel?: boolean | undefined;
1754
+ } | {
1755
+ type: "FILE";
1756
+ id: string;
1757
+ label: import("./TranslationConfig").TranslationConfig;
1758
+ configuration: {
1759
+ maxFileSize: number;
1760
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1761
+ style?: {
1762
+ width?: "full" | "auto" | undefined;
1763
+ } | undefined;
1764
+ fileName?: import("./TranslationConfig").TranslationConfig | undefined;
1765
+ };
1766
+ parent?: {
1767
+ _fieldId?: string | undefined;
1768
+ } | undefined;
1769
+ validation?: {
1770
+ message: import("./TranslationConfig").TranslationConfig;
1771
+ validator: import(".").JSONSchema;
1772
+ }[] | undefined;
1773
+ required?: boolean | undefined;
1774
+ defaultValue?: string | number | boolean | undefined;
1775
+ conditionals?: ({
1776
+ type: "SHOW";
1777
+ conditional: import(".").JSONSchema;
1778
+ } | {
1779
+ type: "ENABLE";
1780
+ conditional: import(".").JSONSchema;
1781
+ } | {
1782
+ type: "DISPLAY_ON_REVIEW";
1783
+ conditional: import(".").JSONSchema;
1784
+ })[] | undefined;
1785
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1786
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1787
+ hideLabel?: boolean | undefined;
1788
+ } | {
1789
+ type: "RADIO_GROUP";
1790
+ id: string;
1791
+ options: {
1792
+ value: string;
1793
+ label: import("./TranslationConfig").TranslationConfig;
31
1794
  }[];
32
- refFields: {
33
- id: EventMetadataKeys | string;
34
- label?: TranslationConfig;
1795
+ label: import("./TranslationConfig").TranslationConfig;
1796
+ parent?: {
1797
+ _fieldId?: string | undefined;
1798
+ } | undefined;
1799
+ validation?: {
1800
+ message: import("./TranslationConfig").TranslationConfig;
1801
+ validator: import(".").JSONSchema;
1802
+ }[] | undefined;
1803
+ required?: boolean | undefined;
1804
+ defaultValue?: string | undefined;
1805
+ conditionals?: ({
1806
+ type: "SHOW";
1807
+ conditional: import(".").JSONSchema;
1808
+ } | {
1809
+ type: "ENABLE";
1810
+ conditional: import(".").JSONSchema;
1811
+ } | {
1812
+ type: "DISPLAY_ON_REVIEW";
1813
+ conditional: import(".").JSONSchema;
1814
+ })[] | undefined;
1815
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1816
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1817
+ hideLabel?: boolean | undefined;
1818
+ configuration?: {
1819
+ styles?: {
1820
+ size?: "NORMAL" | "LARGE" | undefined;
1821
+ } | undefined;
1822
+ } | undefined;
1823
+ } | {
1824
+ type: "BULLET_LIST";
1825
+ id: string;
1826
+ label: import("./TranslationConfig").TranslationConfig;
1827
+ configuration: {
1828
+ styles?: {
1829
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1830
+ } | undefined;
1831
+ };
1832
+ items: import("./TranslationConfig").TranslationConfig[];
1833
+ parent?: {
1834
+ _fieldId?: string | undefined;
1835
+ } | undefined;
1836
+ validation?: {
1837
+ message: import("./TranslationConfig").TranslationConfig;
1838
+ validator: import(".").JSONSchema;
1839
+ }[] | undefined;
1840
+ required?: boolean | undefined;
1841
+ defaultValue?: string | undefined;
1842
+ conditionals?: ({
1843
+ type: "SHOW";
1844
+ conditional: import(".").JSONSchema;
1845
+ } | {
1846
+ type: "ENABLE";
1847
+ conditional: import(".").JSONSchema;
1848
+ } | {
1849
+ type: "DISPLAY_ON_REVIEW";
1850
+ conditional: import(".").JSONSchema;
1851
+ })[] | undefined;
1852
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1853
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1854
+ hideLabel?: boolean | undefined;
1855
+ } | {
1856
+ type: "SELECT";
1857
+ id: string;
1858
+ options: {
1859
+ value: string;
1860
+ label: import("./TranslationConfig").TranslationConfig;
35
1861
  }[];
36
- }) => {
37
- id: EventMetadataKeys | string;
38
- label?: TranslationConfig;
39
- }[];
40
- export declare function getAllFields(configuration: EventConfig): import("./FieldConfig").Inferred[];
41
- export declare function getAllPages(configuration: EventConfig): {
1862
+ label: import("./TranslationConfig").TranslationConfig;
1863
+ parent?: {
1864
+ _fieldId?: string | undefined;
1865
+ } | undefined;
1866
+ validation?: {
1867
+ message: import("./TranslationConfig").TranslationConfig;
1868
+ validator: import(".").JSONSchema;
1869
+ }[] | undefined;
1870
+ required?: boolean | undefined;
1871
+ defaultValue?: string | undefined;
1872
+ conditionals?: ({
1873
+ type: "SHOW";
1874
+ conditional: import(".").JSONSchema;
1875
+ } | {
1876
+ type: "ENABLE";
1877
+ conditional: import(".").JSONSchema;
1878
+ } | {
1879
+ type: "DISPLAY_ON_REVIEW";
1880
+ conditional: import(".").JSONSchema;
1881
+ })[] | undefined;
1882
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1883
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1884
+ hideLabel?: boolean | undefined;
1885
+ } | {
1886
+ type: "CHECKBOX";
42
1887
  id: string;
43
- title: TranslationConfig;
44
- fields: import("./FieldConfig").Inferred[];
45
- }[];
46
- export declare function validateWorkqueueConfig(workqueueConfigs: WorkqueueConfig[]): void;
47
- export declare const findActiveActionForm: (configuration: EventConfig, action: ActionType) => {
48
- active: boolean;
49
- version: {
50
- id: string;
51
- label: TranslationConfig;
1888
+ label: import("./TranslationConfig").TranslationConfig;
1889
+ parent?: {
1890
+ _fieldId?: string | undefined;
1891
+ } | undefined;
1892
+ validation?: {
1893
+ message: import("./TranslationConfig").TranslationConfig;
1894
+ validator: import(".").JSONSchema;
1895
+ }[] | undefined;
1896
+ required?: boolean | undefined;
1897
+ defaultValue?: boolean | undefined;
1898
+ conditionals?: ({
1899
+ type: "SHOW";
1900
+ conditional: import(".").JSONSchema;
1901
+ } | {
1902
+ type: "ENABLE";
1903
+ conditional: import(".").JSONSchema;
1904
+ } | {
1905
+ type: "DISPLAY_ON_REVIEW";
1906
+ conditional: import(".").JSONSchema;
1907
+ })[] | undefined;
1908
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1909
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1910
+ hideLabel?: boolean | undefined;
1911
+ } | {
1912
+ type: "COUNTRY";
1913
+ id: string;
1914
+ label: import("./TranslationConfig").TranslationConfig;
1915
+ parent?: {
1916
+ _fieldId?: string | undefined;
1917
+ } | undefined;
1918
+ validation?: {
1919
+ message: import("./TranslationConfig").TranslationConfig;
1920
+ validator: import(".").JSONSchema;
1921
+ }[] | undefined;
1922
+ required?: boolean | undefined;
1923
+ defaultValue?: string | undefined;
1924
+ conditionals?: ({
1925
+ type: "SHOW";
1926
+ conditional: import(".").JSONSchema;
1927
+ } | {
1928
+ type: "ENABLE";
1929
+ conditional: import(".").JSONSchema;
1930
+ } | {
1931
+ type: "DISPLAY_ON_REVIEW";
1932
+ conditional: import(".").JSONSchema;
1933
+ })[] | undefined;
1934
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1935
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1936
+ hideLabel?: boolean | undefined;
1937
+ } | {
1938
+ type: "ADMINISTRATIVE_AREA";
1939
+ id: string;
1940
+ label: import("./TranslationConfig").TranslationConfig;
1941
+ configuration: {
1942
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
1943
+ partOf?: {
1944
+ $declaration: string;
1945
+ } | undefined;
52
1946
  };
53
- label: TranslationConfig;
54
- pages: {
55
- id: string;
56
- title: TranslationConfig;
57
- fields: import("./FieldConfig").Inferred[];
1947
+ parent?: {
1948
+ _fieldId?: string | undefined;
1949
+ } | undefined;
1950
+ validation?: {
1951
+ message: import("./TranslationConfig").TranslationConfig;
1952
+ validator: import(".").JSONSchema;
1953
+ }[] | undefined;
1954
+ required?: boolean | undefined;
1955
+ defaultValue?: string | undefined;
1956
+ conditionals?: ({
1957
+ type: "SHOW";
1958
+ conditional: import(".").JSONSchema;
1959
+ } | {
1960
+ type: "ENABLE";
1961
+ conditional: import(".").JSONSchema;
1962
+ } | {
1963
+ type: "DISPLAY_ON_REVIEW";
1964
+ conditional: import(".").JSONSchema;
1965
+ })[] | undefined;
1966
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1967
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1968
+ hideLabel?: boolean | undefined;
1969
+ } | {
1970
+ type: "LOCATION";
1971
+ id: string;
1972
+ label: import("./TranslationConfig").TranslationConfig;
1973
+ parent?: {
1974
+ _fieldId?: string | undefined;
1975
+ } | undefined;
1976
+ validation?: {
1977
+ message: import("./TranslationConfig").TranslationConfig;
1978
+ validator: import(".").JSONSchema;
1979
+ }[] | undefined;
1980
+ required?: boolean | undefined;
1981
+ defaultValue?: string | undefined;
1982
+ conditionals?: ({
1983
+ type: "SHOW";
1984
+ conditional: import(".").JSONSchema;
1985
+ } | {
1986
+ type: "ENABLE";
1987
+ conditional: import(".").JSONSchema;
1988
+ } | {
1989
+ type: "DISPLAY_ON_REVIEW";
1990
+ conditional: import(".").JSONSchema;
1991
+ })[] | undefined;
1992
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1993
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1994
+ hideLabel?: boolean | undefined;
1995
+ } | {
1996
+ type: "FILE_WITH_OPTIONS";
1997
+ id: string;
1998
+ options: {
1999
+ value: string;
2000
+ label: import("./TranslationConfig").TranslationConfig;
58
2001
  }[];
59
- review: {
60
- title: TranslationConfig;
61
- fields: import("./FieldConfig").Inferred[];
2002
+ label: import("./TranslationConfig").TranslationConfig;
2003
+ configuration: {
2004
+ maxFileSize: number;
2005
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
62
2006
  };
63
- } | undefined;
64
- export declare const findActiveActionFormPages: (configuration: EventConfig, action: ActionType) => {
2007
+ parent?: {
2008
+ _fieldId?: string | undefined;
2009
+ } | undefined;
2010
+ validation?: {
2011
+ message: import("./TranslationConfig").TranslationConfig;
2012
+ validator: import(".").JSONSchema;
2013
+ }[] | undefined;
2014
+ required?: boolean | undefined;
2015
+ defaultValue?: string | number | boolean | undefined;
2016
+ conditionals?: ({
2017
+ type: "SHOW";
2018
+ conditional: import(".").JSONSchema;
2019
+ } | {
2020
+ type: "ENABLE";
2021
+ conditional: import(".").JSONSchema;
2022
+ } | {
2023
+ type: "DISPLAY_ON_REVIEW";
2024
+ conditional: import(".").JSONSchema;
2025
+ })[] | undefined;
2026
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2027
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2028
+ hideLabel?: boolean | undefined;
2029
+ } | {
2030
+ type: "FACILITY";
65
2031
  id: string;
66
- title: TranslationConfig;
67
- fields: import("./FieldConfig").Inferred[];
68
- }[] | undefined;
69
- export declare const getFormFields: (formConfig: FormConfig) => import("./FieldConfig").Inferred[];
70
- /**
71
- * Returns only form fields for the action type, if any, excluding review fields.
72
- */
73
- export declare const findActiveActionFormFields: (configuration: EventConfig, action: ActionType) => FieldConfig[] | undefined;
74
- /**
75
- * Returns all fields for the action type, including review fields, if any.
76
- */
77
- export declare const findActiveActionFields: (configuration: EventConfig, action: ActionType) => FieldConfig[] | undefined;
78
- export declare const getActiveActionFormPages: (configuration: EventConfig, action: ActionType) => {
2032
+ label: import("./TranslationConfig").TranslationConfig;
2033
+ parent?: {
2034
+ _fieldId?: string | undefined;
2035
+ } | undefined;
2036
+ validation?: {
2037
+ message: import("./TranslationConfig").TranslationConfig;
2038
+ validator: import(".").JSONSchema;
2039
+ }[] | undefined;
2040
+ required?: boolean | undefined;
2041
+ defaultValue?: string | undefined;
2042
+ conditionals?: ({
2043
+ type: "SHOW";
2044
+ conditional: import(".").JSONSchema;
2045
+ } | {
2046
+ type: "ENABLE";
2047
+ conditional: import(".").JSONSchema;
2048
+ } | {
2049
+ type: "DISPLAY_ON_REVIEW";
2050
+ conditional: import(".").JSONSchema;
2051
+ })[] | undefined;
2052
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2053
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2054
+ hideLabel?: boolean | undefined;
2055
+ } | {
2056
+ type: "OFFICE";
79
2057
  id: string;
80
- title: TranslationConfig;
81
- fields: import("./FieldConfig").Inferred[];
82
- }[];
2058
+ label: import("./TranslationConfig").TranslationConfig;
2059
+ parent?: {
2060
+ _fieldId?: string | undefined;
2061
+ } | undefined;
2062
+ validation?: {
2063
+ message: import("./TranslationConfig").TranslationConfig;
2064
+ validator: import(".").JSONSchema;
2065
+ }[] | undefined;
2066
+ required?: boolean | undefined;
2067
+ defaultValue?: string | undefined;
2068
+ conditionals?: ({
2069
+ type: "SHOW";
2070
+ conditional: import(".").JSONSchema;
2071
+ } | {
2072
+ type: "ENABLE";
2073
+ conditional: import(".").JSONSchema;
2074
+ } | {
2075
+ type: "DISPLAY_ON_REVIEW";
2076
+ conditional: import(".").JSONSchema;
2077
+ })[] | undefined;
2078
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2079
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2080
+ hideLabel?: boolean | undefined;
2081
+ } | {
2082
+ type: "ADDRESS";
2083
+ id: string;
2084
+ label: import("./TranslationConfig").TranslationConfig;
2085
+ parent?: {
2086
+ _fieldId?: string | undefined;
2087
+ } | undefined;
2088
+ validation?: {
2089
+ message: import("./TranslationConfig").TranslationConfig;
2090
+ validator: import(".").JSONSchema;
2091
+ }[] | undefined;
2092
+ required?: boolean | undefined;
2093
+ defaultValue?: {
2094
+ country: string;
2095
+ district: string;
2096
+ addressType: "DOMESTIC";
2097
+ province: string;
2098
+ urbanOrRural: "URBAN";
2099
+ number?: string | undefined;
2100
+ town?: string | undefined;
2101
+ residentialArea?: string | undefined;
2102
+ street?: string | undefined;
2103
+ zipCode?: string | undefined;
2104
+ } | {
2105
+ country: string;
2106
+ district: string;
2107
+ addressType: "DOMESTIC";
2108
+ province: string;
2109
+ urbanOrRural: "RURAL";
2110
+ village?: string | undefined;
2111
+ } | {
2112
+ country: string;
2113
+ state: string;
2114
+ addressType: "INTERNATIONAL";
2115
+ district2: string;
2116
+ cityOrTown?: string | undefined;
2117
+ addressLine1?: string | undefined;
2118
+ addressLine2?: string | undefined;
2119
+ addressLine3?: string | undefined;
2120
+ postcodeOrZip?: string | undefined;
2121
+ } | undefined;
2122
+ conditionals?: ({
2123
+ type: "SHOW";
2124
+ conditional: import(".").JSONSchema;
2125
+ } | {
2126
+ type: "ENABLE";
2127
+ conditional: import(".").JSONSchema;
2128
+ } | {
2129
+ type: "DISPLAY_ON_REVIEW";
2130
+ conditional: import(".").JSONSchema;
2131
+ })[] | undefined;
2132
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2133
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2134
+ hideLabel?: boolean | undefined;
2135
+ } | {
2136
+ type: "DATA";
2137
+ id: string;
2138
+ label: import("./TranslationConfig").TranslationConfig;
2139
+ configuration: {
2140
+ data: ({
2141
+ value: string | import("./TranslationConfig").TranslationConfig;
2142
+ label: import("./TranslationConfig").TranslationConfig;
2143
+ } | {
2144
+ fieldId: string;
2145
+ })[];
2146
+ subtitle?: import("./TranslationConfig").TranslationConfig | undefined;
2147
+ };
2148
+ parent?: {
2149
+ _fieldId?: string | undefined;
2150
+ } | undefined;
2151
+ validation?: {
2152
+ message: import("./TranslationConfig").TranslationConfig;
2153
+ validator: import(".").JSONSchema;
2154
+ }[] | undefined;
2155
+ required?: boolean | undefined;
2156
+ defaultValue?: string | number | boolean | undefined;
2157
+ conditionals?: ({
2158
+ type: "SHOW";
2159
+ conditional: import(".").JSONSchema;
2160
+ } | {
2161
+ type: "ENABLE";
2162
+ conditional: import(".").JSONSchema;
2163
+ } | {
2164
+ type: "DISPLAY_ON_REVIEW";
2165
+ conditional: import(".").JSONSchema;
2166
+ })[] | undefined;
2167
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2168
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2169
+ hideLabel?: boolean | undefined;
2170
+ })[];
83
2171
  /**
84
- * Returns all fields for the action type, including review fields, or throws
2172
+ * @TODO: Request correction should have same format as print certificate
85
2173
  */
86
- export declare function getActiveActionFields(configuration: EventConfig, action: ActionType): FieldConfig[];
87
- export declare function getEventConfiguration(eventConfigurations: EventConfig[], type: string): EventConfig;
88
- export declare function stripHiddenFields(fields: FieldConfig[], data: EventState): import("lodash").Dictionary<string | number | boolean | {
2174
+ export declare const findRecordActionPages: (config: EventConfig, actionType: ActionType) => PageConfig[];
2175
+ export declare function getActionReview(configuration: EventConfig, actionType: ActionType): {
2176
+ title: import("./TranslationConfig").TranslationConfig;
2177
+ fields: ({
2178
+ type: "DIVIDER";
2179
+ id: string;
2180
+ label: import("./TranslationConfig").TranslationConfig;
2181
+ parent?: {
2182
+ _fieldId?: string | undefined;
2183
+ } | undefined;
2184
+ validation?: {
2185
+ message: import("./TranslationConfig").TranslationConfig;
2186
+ validator: import(".").JSONSchema;
2187
+ }[] | undefined;
2188
+ required?: boolean | undefined;
2189
+ defaultValue?: string | number | boolean | undefined;
2190
+ conditionals?: ({
2191
+ type: "SHOW";
2192
+ conditional: import(".").JSONSchema;
2193
+ } | {
2194
+ type: "ENABLE";
2195
+ conditional: import(".").JSONSchema;
2196
+ } | {
2197
+ type: "DISPLAY_ON_REVIEW";
2198
+ conditional: import(".").JSONSchema;
2199
+ })[] | undefined;
2200
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2201
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2202
+ hideLabel?: boolean | undefined;
2203
+ } | {
2204
+ type: "TEXT";
2205
+ id: string;
2206
+ label: import("./TranslationConfig").TranslationConfig;
2207
+ parent?: {
2208
+ _fieldId?: string | undefined;
2209
+ } | undefined;
2210
+ validation?: {
2211
+ message: import("./TranslationConfig").TranslationConfig;
2212
+ validator: import(".").JSONSchema;
2213
+ }[] | undefined;
2214
+ required?: boolean | undefined;
2215
+ defaultValue?: string | undefined;
2216
+ conditionals?: ({
2217
+ type: "SHOW";
2218
+ conditional: import(".").JSONSchema;
2219
+ } | {
2220
+ type: "ENABLE";
2221
+ conditional: import(".").JSONSchema;
2222
+ } | {
2223
+ type: "DISPLAY_ON_REVIEW";
2224
+ conditional: import(".").JSONSchema;
2225
+ })[] | undefined;
2226
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2227
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2228
+ hideLabel?: boolean | undefined;
2229
+ configuration?: {
2230
+ type?: "text" | "password" | undefined;
2231
+ maxLength?: number | undefined;
2232
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2233
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2234
+ } | undefined;
2235
+ } | {
2236
+ type: "NUMBER";
2237
+ id: string;
2238
+ label: import("./TranslationConfig").TranslationConfig;
2239
+ parent?: {
2240
+ _fieldId?: string | undefined;
2241
+ } | undefined;
2242
+ validation?: {
2243
+ message: import("./TranslationConfig").TranslationConfig;
2244
+ validator: import(".").JSONSchema;
2245
+ }[] | undefined;
2246
+ required?: boolean | undefined;
2247
+ defaultValue?: number | undefined;
2248
+ conditionals?: ({
2249
+ type: "SHOW";
2250
+ conditional: import(".").JSONSchema;
2251
+ } | {
2252
+ type: "ENABLE";
2253
+ conditional: import(".").JSONSchema;
2254
+ } | {
2255
+ type: "DISPLAY_ON_REVIEW";
2256
+ conditional: import(".").JSONSchema;
2257
+ })[] | undefined;
2258
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2259
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2260
+ hideLabel?: boolean | undefined;
2261
+ configuration?: {
2262
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2263
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2264
+ min?: number | undefined;
2265
+ max?: number | undefined;
2266
+ } | undefined;
2267
+ } | {
2268
+ type: "TEXTAREA";
2269
+ id: string;
2270
+ label: import("./TranslationConfig").TranslationConfig;
2271
+ parent?: {
2272
+ _fieldId?: string | undefined;
2273
+ } | undefined;
2274
+ validation?: {
2275
+ message: import("./TranslationConfig").TranslationConfig;
2276
+ validator: import(".").JSONSchema;
2277
+ }[] | undefined;
2278
+ required?: boolean | undefined;
2279
+ defaultValue?: string | undefined;
2280
+ conditionals?: ({
2281
+ type: "SHOW";
2282
+ conditional: import(".").JSONSchema;
2283
+ } | {
2284
+ type: "ENABLE";
2285
+ conditional: import(".").JSONSchema;
2286
+ } | {
2287
+ type: "DISPLAY_ON_REVIEW";
2288
+ conditional: import(".").JSONSchema;
2289
+ })[] | undefined;
2290
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2291
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2292
+ hideLabel?: boolean | undefined;
2293
+ configuration?: {
2294
+ maxLength?: number | undefined;
2295
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2296
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2297
+ rows?: number | undefined;
2298
+ cols?: number | undefined;
2299
+ } | undefined;
2300
+ } | {
2301
+ type: "SIGNATURE";
2302
+ id: string;
2303
+ label: import("./TranslationConfig").TranslationConfig;
2304
+ configuration: {
2305
+ maxFileSize: number;
2306
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2307
+ };
2308
+ signaturePromptLabel: import("./TranslationConfig").TranslationConfig;
2309
+ parent?: {
2310
+ _fieldId?: string | undefined;
2311
+ } | undefined;
2312
+ validation?: {
2313
+ message: import("./TranslationConfig").TranslationConfig;
2314
+ validator: import(".").JSONSchema;
2315
+ }[] | undefined;
2316
+ required?: boolean | undefined;
2317
+ defaultValue?: string | number | boolean | undefined;
2318
+ conditionals?: ({
2319
+ type: "SHOW";
2320
+ conditional: import(".").JSONSchema;
2321
+ } | {
2322
+ type: "ENABLE";
2323
+ conditional: import(".").JSONSchema;
2324
+ } | {
2325
+ type: "DISPLAY_ON_REVIEW";
2326
+ conditional: import(".").JSONSchema;
2327
+ })[] | undefined;
2328
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2329
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2330
+ hideLabel?: boolean | undefined;
2331
+ } | {
2332
+ type: "EMAIL";
2333
+ id: string;
2334
+ label: import("./TranslationConfig").TranslationConfig;
2335
+ parent?: {
2336
+ _fieldId?: string | undefined;
2337
+ } | undefined;
2338
+ validation?: {
2339
+ message: import("./TranslationConfig").TranslationConfig;
2340
+ validator: import(".").JSONSchema;
2341
+ }[] | undefined;
2342
+ required?: boolean | undefined;
2343
+ defaultValue?: string | undefined;
2344
+ conditionals?: ({
2345
+ type: "SHOW";
2346
+ conditional: import(".").JSONSchema;
2347
+ } | {
2348
+ type: "ENABLE";
2349
+ conditional: import(".").JSONSchema;
2350
+ } | {
2351
+ type: "DISPLAY_ON_REVIEW";
2352
+ conditional: import(".").JSONSchema;
2353
+ })[] | undefined;
2354
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2355
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2356
+ hideLabel?: boolean | undefined;
2357
+ configuration?: {
2358
+ maxLength?: number | undefined;
2359
+ } | undefined;
2360
+ } | {
2361
+ type: "DATE";
2362
+ id: string;
2363
+ label: import("./TranslationConfig").TranslationConfig;
2364
+ parent?: {
2365
+ _fieldId?: string | undefined;
2366
+ } | undefined;
2367
+ validation?: {
2368
+ message: import("./TranslationConfig").TranslationConfig;
2369
+ validator: import(".").JSONSchema;
2370
+ }[] | undefined;
2371
+ required?: boolean | undefined;
2372
+ defaultValue?: string | undefined;
2373
+ conditionals?: ({
2374
+ type: "SHOW";
2375
+ conditional: import(".").JSONSchema;
2376
+ } | {
2377
+ type: "ENABLE";
2378
+ conditional: import(".").JSONSchema;
2379
+ } | {
2380
+ type: "DISPLAY_ON_REVIEW";
2381
+ conditional: import(".").JSONSchema;
2382
+ })[] | undefined;
2383
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2384
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2385
+ hideLabel?: boolean | undefined;
2386
+ configuration?: {
2387
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
2388
+ } | undefined;
2389
+ } | {
2390
+ type: "DATE_RANGE";
2391
+ id: string;
2392
+ label: import("./TranslationConfig").TranslationConfig;
2393
+ parent?: {
2394
+ _fieldId?: string | undefined;
2395
+ } | undefined;
2396
+ validation?: {
2397
+ message: import("./TranslationConfig").TranslationConfig;
2398
+ validator: import(".").JSONSchema;
2399
+ }[] | undefined;
2400
+ required?: boolean | undefined;
2401
+ defaultValue?: string | [string, string] | undefined;
2402
+ conditionals?: ({
2403
+ type: "SHOW";
2404
+ conditional: import(".").JSONSchema;
2405
+ } | {
2406
+ type: "ENABLE";
2407
+ conditional: import(".").JSONSchema;
2408
+ } | {
2409
+ type: "DISPLAY_ON_REVIEW";
2410
+ conditional: import(".").JSONSchema;
2411
+ })[] | undefined;
2412
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2413
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2414
+ hideLabel?: boolean | undefined;
2415
+ configuration?: {
2416
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
2417
+ } | undefined;
2418
+ } | {
2419
+ type: "PARAGRAPH";
2420
+ id: string;
2421
+ label: import("./TranslationConfig").TranslationConfig;
2422
+ configuration: {
2423
+ styles?: {
2424
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
2425
+ } | undefined;
2426
+ };
2427
+ parent?: {
2428
+ _fieldId?: string | undefined;
2429
+ } | undefined;
2430
+ validation?: {
2431
+ message: import("./TranslationConfig").TranslationConfig;
2432
+ validator: import(".").JSONSchema;
2433
+ }[] | undefined;
2434
+ required?: boolean | undefined;
2435
+ defaultValue?: string | undefined;
2436
+ conditionals?: ({
2437
+ type: "SHOW";
2438
+ conditional: import(".").JSONSchema;
2439
+ } | {
2440
+ type: "ENABLE";
2441
+ conditional: import(".").JSONSchema;
2442
+ } | {
2443
+ type: "DISPLAY_ON_REVIEW";
2444
+ conditional: import(".").JSONSchema;
2445
+ })[] | undefined;
2446
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2447
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2448
+ hideLabel?: boolean | undefined;
2449
+ } | {
2450
+ type: "PAGE_HEADER";
2451
+ id: string;
2452
+ label: import("./TranslationConfig").TranslationConfig;
2453
+ parent?: {
2454
+ _fieldId?: string | undefined;
2455
+ } | undefined;
2456
+ validation?: {
2457
+ message: import("./TranslationConfig").TranslationConfig;
2458
+ validator: import(".").JSONSchema;
2459
+ }[] | undefined;
2460
+ required?: boolean | undefined;
2461
+ defaultValue?: string | undefined;
2462
+ conditionals?: ({
2463
+ type: "SHOW";
2464
+ conditional: import(".").JSONSchema;
2465
+ } | {
2466
+ type: "ENABLE";
2467
+ conditional: import(".").JSONSchema;
2468
+ } | {
2469
+ type: "DISPLAY_ON_REVIEW";
2470
+ conditional: import(".").JSONSchema;
2471
+ })[] | undefined;
2472
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2473
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2474
+ hideLabel?: boolean | undefined;
2475
+ } | {
2476
+ type: "FILE";
2477
+ id: string;
2478
+ label: import("./TranslationConfig").TranslationConfig;
2479
+ configuration: {
2480
+ maxFileSize: number;
2481
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2482
+ style?: {
2483
+ width?: "full" | "auto" | undefined;
2484
+ } | undefined;
2485
+ fileName?: import("./TranslationConfig").TranslationConfig | undefined;
2486
+ };
2487
+ parent?: {
2488
+ _fieldId?: string | undefined;
2489
+ } | undefined;
2490
+ validation?: {
2491
+ message: import("./TranslationConfig").TranslationConfig;
2492
+ validator: import(".").JSONSchema;
2493
+ }[] | undefined;
2494
+ required?: boolean | undefined;
2495
+ defaultValue?: string | number | boolean | undefined;
2496
+ conditionals?: ({
2497
+ type: "SHOW";
2498
+ conditional: import(".").JSONSchema;
2499
+ } | {
2500
+ type: "ENABLE";
2501
+ conditional: import(".").JSONSchema;
2502
+ } | {
2503
+ type: "DISPLAY_ON_REVIEW";
2504
+ conditional: import(".").JSONSchema;
2505
+ })[] | undefined;
2506
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2507
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2508
+ hideLabel?: boolean | undefined;
2509
+ } | {
2510
+ type: "RADIO_GROUP";
2511
+ id: string;
2512
+ options: {
2513
+ value: string;
2514
+ label: import("./TranslationConfig").TranslationConfig;
2515
+ }[];
2516
+ label: import("./TranslationConfig").TranslationConfig;
2517
+ parent?: {
2518
+ _fieldId?: string | undefined;
2519
+ } | undefined;
2520
+ validation?: {
2521
+ message: import("./TranslationConfig").TranslationConfig;
2522
+ validator: import(".").JSONSchema;
2523
+ }[] | undefined;
2524
+ required?: boolean | undefined;
2525
+ defaultValue?: string | undefined;
2526
+ conditionals?: ({
2527
+ type: "SHOW";
2528
+ conditional: import(".").JSONSchema;
2529
+ } | {
2530
+ type: "ENABLE";
2531
+ conditional: import(".").JSONSchema;
2532
+ } | {
2533
+ type: "DISPLAY_ON_REVIEW";
2534
+ conditional: import(".").JSONSchema;
2535
+ })[] | undefined;
2536
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2537
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2538
+ hideLabel?: boolean | undefined;
2539
+ configuration?: {
2540
+ styles?: {
2541
+ size?: "NORMAL" | "LARGE" | undefined;
2542
+ } | undefined;
2543
+ } | undefined;
2544
+ } | {
2545
+ type: "BULLET_LIST";
2546
+ id: string;
2547
+ label: import("./TranslationConfig").TranslationConfig;
2548
+ configuration: {
2549
+ styles?: {
2550
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
2551
+ } | undefined;
2552
+ };
2553
+ items: import("./TranslationConfig").TranslationConfig[];
2554
+ parent?: {
2555
+ _fieldId?: string | undefined;
2556
+ } | undefined;
2557
+ validation?: {
2558
+ message: import("./TranslationConfig").TranslationConfig;
2559
+ validator: import(".").JSONSchema;
2560
+ }[] | undefined;
2561
+ required?: boolean | undefined;
2562
+ defaultValue?: string | undefined;
2563
+ conditionals?: ({
2564
+ type: "SHOW";
2565
+ conditional: import(".").JSONSchema;
2566
+ } | {
2567
+ type: "ENABLE";
2568
+ conditional: import(".").JSONSchema;
2569
+ } | {
2570
+ type: "DISPLAY_ON_REVIEW";
2571
+ conditional: import(".").JSONSchema;
2572
+ })[] | undefined;
2573
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2574
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2575
+ hideLabel?: boolean | undefined;
2576
+ } | {
2577
+ type: "SELECT";
2578
+ id: string;
2579
+ options: {
2580
+ value: string;
2581
+ label: import("./TranslationConfig").TranslationConfig;
2582
+ }[];
2583
+ label: import("./TranslationConfig").TranslationConfig;
2584
+ parent?: {
2585
+ _fieldId?: string | undefined;
2586
+ } | undefined;
2587
+ validation?: {
2588
+ message: import("./TranslationConfig").TranslationConfig;
2589
+ validator: import(".").JSONSchema;
2590
+ }[] | undefined;
2591
+ required?: boolean | undefined;
2592
+ defaultValue?: string | undefined;
2593
+ conditionals?: ({
2594
+ type: "SHOW";
2595
+ conditional: import(".").JSONSchema;
2596
+ } | {
2597
+ type: "ENABLE";
2598
+ conditional: import(".").JSONSchema;
2599
+ } | {
2600
+ type: "DISPLAY_ON_REVIEW";
2601
+ conditional: import(".").JSONSchema;
2602
+ })[] | undefined;
2603
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2604
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2605
+ hideLabel?: boolean | undefined;
2606
+ } | {
2607
+ type: "CHECKBOX";
2608
+ id: string;
2609
+ label: import("./TranslationConfig").TranslationConfig;
2610
+ parent?: {
2611
+ _fieldId?: string | undefined;
2612
+ } | undefined;
2613
+ validation?: {
2614
+ message: import("./TranslationConfig").TranslationConfig;
2615
+ validator: import(".").JSONSchema;
2616
+ }[] | undefined;
2617
+ required?: boolean | undefined;
2618
+ defaultValue?: boolean | undefined;
2619
+ conditionals?: ({
2620
+ type: "SHOW";
2621
+ conditional: import(".").JSONSchema;
2622
+ } | {
2623
+ type: "ENABLE";
2624
+ conditional: import(".").JSONSchema;
2625
+ } | {
2626
+ type: "DISPLAY_ON_REVIEW";
2627
+ conditional: import(".").JSONSchema;
2628
+ })[] | undefined;
2629
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2630
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2631
+ hideLabel?: boolean | undefined;
2632
+ } | {
2633
+ type: "COUNTRY";
2634
+ id: string;
2635
+ label: import("./TranslationConfig").TranslationConfig;
2636
+ parent?: {
2637
+ _fieldId?: string | undefined;
2638
+ } | undefined;
2639
+ validation?: {
2640
+ message: import("./TranslationConfig").TranslationConfig;
2641
+ validator: import(".").JSONSchema;
2642
+ }[] | undefined;
2643
+ required?: boolean | undefined;
2644
+ defaultValue?: string | undefined;
2645
+ conditionals?: ({
2646
+ type: "SHOW";
2647
+ conditional: import(".").JSONSchema;
2648
+ } | {
2649
+ type: "ENABLE";
2650
+ conditional: import(".").JSONSchema;
2651
+ } | {
2652
+ type: "DISPLAY_ON_REVIEW";
2653
+ conditional: import(".").JSONSchema;
2654
+ })[] | undefined;
2655
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2656
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2657
+ hideLabel?: boolean | undefined;
2658
+ } | {
2659
+ type: "ADMINISTRATIVE_AREA";
2660
+ id: string;
2661
+ label: import("./TranslationConfig").TranslationConfig;
2662
+ configuration: {
2663
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2664
+ partOf?: {
2665
+ $declaration: string;
2666
+ } | undefined;
2667
+ };
2668
+ parent?: {
2669
+ _fieldId?: string | undefined;
2670
+ } | undefined;
2671
+ validation?: {
2672
+ message: import("./TranslationConfig").TranslationConfig;
2673
+ validator: import(".").JSONSchema;
2674
+ }[] | undefined;
2675
+ required?: boolean | undefined;
2676
+ defaultValue?: string | undefined;
2677
+ conditionals?: ({
2678
+ type: "SHOW";
2679
+ conditional: import(".").JSONSchema;
2680
+ } | {
2681
+ type: "ENABLE";
2682
+ conditional: import(".").JSONSchema;
2683
+ } | {
2684
+ type: "DISPLAY_ON_REVIEW";
2685
+ conditional: import(".").JSONSchema;
2686
+ })[] | undefined;
2687
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2688
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2689
+ hideLabel?: boolean | undefined;
2690
+ } | {
2691
+ type: "LOCATION";
2692
+ id: string;
2693
+ label: import("./TranslationConfig").TranslationConfig;
2694
+ parent?: {
2695
+ _fieldId?: string | undefined;
2696
+ } | undefined;
2697
+ validation?: {
2698
+ message: import("./TranslationConfig").TranslationConfig;
2699
+ validator: import(".").JSONSchema;
2700
+ }[] | undefined;
2701
+ required?: boolean | undefined;
2702
+ defaultValue?: string | undefined;
2703
+ conditionals?: ({
2704
+ type: "SHOW";
2705
+ conditional: import(".").JSONSchema;
2706
+ } | {
2707
+ type: "ENABLE";
2708
+ conditional: import(".").JSONSchema;
2709
+ } | {
2710
+ type: "DISPLAY_ON_REVIEW";
2711
+ conditional: import(".").JSONSchema;
2712
+ })[] | undefined;
2713
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2714
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2715
+ hideLabel?: boolean | undefined;
2716
+ } | {
2717
+ type: "FILE_WITH_OPTIONS";
2718
+ id: string;
2719
+ options: {
2720
+ value: string;
2721
+ label: import("./TranslationConfig").TranslationConfig;
2722
+ }[];
2723
+ label: import("./TranslationConfig").TranslationConfig;
2724
+ configuration: {
2725
+ maxFileSize: number;
2726
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2727
+ };
2728
+ parent?: {
2729
+ _fieldId?: string | undefined;
2730
+ } | undefined;
2731
+ validation?: {
2732
+ message: import("./TranslationConfig").TranslationConfig;
2733
+ validator: import(".").JSONSchema;
2734
+ }[] | undefined;
2735
+ required?: boolean | undefined;
2736
+ defaultValue?: string | number | boolean | undefined;
2737
+ conditionals?: ({
2738
+ type: "SHOW";
2739
+ conditional: import(".").JSONSchema;
2740
+ } | {
2741
+ type: "ENABLE";
2742
+ conditional: import(".").JSONSchema;
2743
+ } | {
2744
+ type: "DISPLAY_ON_REVIEW";
2745
+ conditional: import(".").JSONSchema;
2746
+ })[] | undefined;
2747
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2748
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2749
+ hideLabel?: boolean | undefined;
2750
+ } | {
2751
+ type: "FACILITY";
2752
+ id: string;
2753
+ label: import("./TranslationConfig").TranslationConfig;
2754
+ parent?: {
2755
+ _fieldId?: string | undefined;
2756
+ } | undefined;
2757
+ validation?: {
2758
+ message: import("./TranslationConfig").TranslationConfig;
2759
+ validator: import(".").JSONSchema;
2760
+ }[] | undefined;
2761
+ required?: boolean | undefined;
2762
+ defaultValue?: string | undefined;
2763
+ conditionals?: ({
2764
+ type: "SHOW";
2765
+ conditional: import(".").JSONSchema;
2766
+ } | {
2767
+ type: "ENABLE";
2768
+ conditional: import(".").JSONSchema;
2769
+ } | {
2770
+ type: "DISPLAY_ON_REVIEW";
2771
+ conditional: import(".").JSONSchema;
2772
+ })[] | undefined;
2773
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2774
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2775
+ hideLabel?: boolean | undefined;
2776
+ } | {
2777
+ type: "OFFICE";
2778
+ id: string;
2779
+ label: import("./TranslationConfig").TranslationConfig;
2780
+ parent?: {
2781
+ _fieldId?: string | undefined;
2782
+ } | undefined;
2783
+ validation?: {
2784
+ message: import("./TranslationConfig").TranslationConfig;
2785
+ validator: import(".").JSONSchema;
2786
+ }[] | undefined;
2787
+ required?: boolean | undefined;
2788
+ defaultValue?: string | undefined;
2789
+ conditionals?: ({
2790
+ type: "SHOW";
2791
+ conditional: import(".").JSONSchema;
2792
+ } | {
2793
+ type: "ENABLE";
2794
+ conditional: import(".").JSONSchema;
2795
+ } | {
2796
+ type: "DISPLAY_ON_REVIEW";
2797
+ conditional: import(".").JSONSchema;
2798
+ })[] | undefined;
2799
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2800
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2801
+ hideLabel?: boolean | undefined;
2802
+ } | {
2803
+ type: "ADDRESS";
2804
+ id: string;
2805
+ label: import("./TranslationConfig").TranslationConfig;
2806
+ parent?: {
2807
+ _fieldId?: string | undefined;
2808
+ } | undefined;
2809
+ validation?: {
2810
+ message: import("./TranslationConfig").TranslationConfig;
2811
+ validator: import(".").JSONSchema;
2812
+ }[] | undefined;
2813
+ required?: boolean | undefined;
2814
+ defaultValue?: {
2815
+ country: string;
2816
+ district: string;
2817
+ addressType: "DOMESTIC";
2818
+ province: string;
2819
+ urbanOrRural: "URBAN";
2820
+ number?: string | undefined;
2821
+ town?: string | undefined;
2822
+ residentialArea?: string | undefined;
2823
+ street?: string | undefined;
2824
+ zipCode?: string | undefined;
2825
+ } | {
2826
+ country: string;
2827
+ district: string;
2828
+ addressType: "DOMESTIC";
2829
+ province: string;
2830
+ urbanOrRural: "RURAL";
2831
+ village?: string | undefined;
2832
+ } | {
2833
+ country: string;
2834
+ state: string;
2835
+ addressType: "INTERNATIONAL";
2836
+ district2: string;
2837
+ cityOrTown?: string | undefined;
2838
+ addressLine1?: string | undefined;
2839
+ addressLine2?: string | undefined;
2840
+ addressLine3?: string | undefined;
2841
+ postcodeOrZip?: string | undefined;
2842
+ } | undefined;
2843
+ conditionals?: ({
2844
+ type: "SHOW";
2845
+ conditional: import(".").JSONSchema;
2846
+ } | {
2847
+ type: "ENABLE";
2848
+ conditional: import(".").JSONSchema;
2849
+ } | {
2850
+ type: "DISPLAY_ON_REVIEW";
2851
+ conditional: import(".").JSONSchema;
2852
+ })[] | undefined;
2853
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2854
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2855
+ hideLabel?: boolean | undefined;
2856
+ } | {
2857
+ type: "DATA";
2858
+ id: string;
2859
+ label: import("./TranslationConfig").TranslationConfig;
2860
+ configuration: {
2861
+ data: ({
2862
+ value: string | import("./TranslationConfig").TranslationConfig;
2863
+ label: import("./TranslationConfig").TranslationConfig;
2864
+ } | {
2865
+ fieldId: string;
2866
+ })[];
2867
+ subtitle?: import("./TranslationConfig").TranslationConfig | undefined;
2868
+ };
2869
+ parent?: {
2870
+ _fieldId?: string | undefined;
2871
+ } | undefined;
2872
+ validation?: {
2873
+ message: import("./TranslationConfig").TranslationConfig;
2874
+ validator: import(".").JSONSchema;
2875
+ }[] | undefined;
2876
+ required?: boolean | undefined;
2877
+ defaultValue?: string | number | boolean | undefined;
2878
+ conditionals?: ({
2879
+ type: "SHOW";
2880
+ conditional: import(".").JSONSchema;
2881
+ } | {
2882
+ type: "ENABLE";
2883
+ conditional: import(".").JSONSchema;
2884
+ } | {
2885
+ type: "DISPLAY_ON_REVIEW";
2886
+ conditional: import(".").JSONSchema;
2887
+ })[] | undefined;
2888
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2889
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2890
+ hideLabel?: boolean | undefined;
2891
+ })[];
2892
+ };
2893
+ export declare function getActionReviewFields(configuration: EventConfig, actionType: DeclarationActionType): ({
2894
+ type: "DIVIDER";
2895
+ id: string;
2896
+ label: import("./TranslationConfig").TranslationConfig;
2897
+ parent?: {
2898
+ _fieldId?: string | undefined;
2899
+ } | undefined;
2900
+ validation?: {
2901
+ message: import("./TranslationConfig").TranslationConfig;
2902
+ validator: import(".").JSONSchema;
2903
+ }[] | undefined;
2904
+ required?: boolean | undefined;
2905
+ defaultValue?: string | number | boolean | undefined;
2906
+ conditionals?: ({
2907
+ type: "SHOW";
2908
+ conditional: import(".").JSONSchema;
2909
+ } | {
2910
+ type: "ENABLE";
2911
+ conditional: import(".").JSONSchema;
2912
+ } | {
2913
+ type: "DISPLAY_ON_REVIEW";
2914
+ conditional: import(".").JSONSchema;
2915
+ })[] | undefined;
2916
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2917
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2918
+ hideLabel?: boolean | undefined;
2919
+ } | {
2920
+ type: "TEXT";
2921
+ id: string;
2922
+ label: import("./TranslationConfig").TranslationConfig;
2923
+ parent?: {
2924
+ _fieldId?: string | undefined;
2925
+ } | undefined;
2926
+ validation?: {
2927
+ message: import("./TranslationConfig").TranslationConfig;
2928
+ validator: import(".").JSONSchema;
2929
+ }[] | undefined;
2930
+ required?: boolean | undefined;
2931
+ defaultValue?: string | undefined;
2932
+ conditionals?: ({
2933
+ type: "SHOW";
2934
+ conditional: import(".").JSONSchema;
2935
+ } | {
2936
+ type: "ENABLE";
2937
+ conditional: import(".").JSONSchema;
2938
+ } | {
2939
+ type: "DISPLAY_ON_REVIEW";
2940
+ conditional: import(".").JSONSchema;
2941
+ })[] | undefined;
2942
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2943
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2944
+ hideLabel?: boolean | undefined;
2945
+ configuration?: {
2946
+ type?: "text" | "password" | undefined;
2947
+ maxLength?: number | undefined;
2948
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2949
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2950
+ } | undefined;
2951
+ } | {
2952
+ type: "NUMBER";
2953
+ id: string;
2954
+ label: import("./TranslationConfig").TranslationConfig;
2955
+ parent?: {
2956
+ _fieldId?: string | undefined;
2957
+ } | undefined;
2958
+ validation?: {
2959
+ message: import("./TranslationConfig").TranslationConfig;
2960
+ validator: import(".").JSONSchema;
2961
+ }[] | undefined;
2962
+ required?: boolean | undefined;
2963
+ defaultValue?: number | undefined;
2964
+ conditionals?: ({
2965
+ type: "SHOW";
2966
+ conditional: import(".").JSONSchema;
2967
+ } | {
2968
+ type: "ENABLE";
2969
+ conditional: import(".").JSONSchema;
2970
+ } | {
2971
+ type: "DISPLAY_ON_REVIEW";
2972
+ conditional: import(".").JSONSchema;
2973
+ })[] | undefined;
2974
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2975
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2976
+ hideLabel?: boolean | undefined;
2977
+ configuration?: {
2978
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2979
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2980
+ min?: number | undefined;
2981
+ max?: number | undefined;
2982
+ } | undefined;
2983
+ } | {
2984
+ type: "TEXTAREA";
2985
+ id: string;
2986
+ label: import("./TranslationConfig").TranslationConfig;
2987
+ parent?: {
2988
+ _fieldId?: string | undefined;
2989
+ } | undefined;
2990
+ validation?: {
2991
+ message: import("./TranslationConfig").TranslationConfig;
2992
+ validator: import(".").JSONSchema;
2993
+ }[] | undefined;
2994
+ required?: boolean | undefined;
2995
+ defaultValue?: string | undefined;
2996
+ conditionals?: ({
2997
+ type: "SHOW";
2998
+ conditional: import(".").JSONSchema;
2999
+ } | {
3000
+ type: "ENABLE";
3001
+ conditional: import(".").JSONSchema;
3002
+ } | {
3003
+ type: "DISPLAY_ON_REVIEW";
3004
+ conditional: import(".").JSONSchema;
3005
+ })[] | undefined;
3006
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3007
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3008
+ hideLabel?: boolean | undefined;
3009
+ configuration?: {
3010
+ maxLength?: number | undefined;
3011
+ prefix?: import("./TranslationConfig").TranslationConfig | undefined;
3012
+ postfix?: import("./TranslationConfig").TranslationConfig | undefined;
3013
+ rows?: number | undefined;
3014
+ cols?: number | undefined;
3015
+ } | undefined;
3016
+ } | {
3017
+ type: "SIGNATURE";
3018
+ id: string;
3019
+ label: import("./TranslationConfig").TranslationConfig;
3020
+ configuration: {
3021
+ maxFileSize: number;
3022
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3023
+ };
3024
+ signaturePromptLabel: import("./TranslationConfig").TranslationConfig;
3025
+ parent?: {
3026
+ _fieldId?: string | undefined;
3027
+ } | undefined;
3028
+ validation?: {
3029
+ message: import("./TranslationConfig").TranslationConfig;
3030
+ validator: import(".").JSONSchema;
3031
+ }[] | undefined;
3032
+ required?: boolean | undefined;
3033
+ defaultValue?: string | number | boolean | undefined;
3034
+ conditionals?: ({
3035
+ type: "SHOW";
3036
+ conditional: import(".").JSONSchema;
3037
+ } | {
3038
+ type: "ENABLE";
3039
+ conditional: import(".").JSONSchema;
3040
+ } | {
3041
+ type: "DISPLAY_ON_REVIEW";
3042
+ conditional: import(".").JSONSchema;
3043
+ })[] | undefined;
3044
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3045
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3046
+ hideLabel?: boolean | undefined;
3047
+ } | {
3048
+ type: "EMAIL";
3049
+ id: string;
3050
+ label: import("./TranslationConfig").TranslationConfig;
3051
+ parent?: {
3052
+ _fieldId?: string | undefined;
3053
+ } | undefined;
3054
+ validation?: {
3055
+ message: import("./TranslationConfig").TranslationConfig;
3056
+ validator: import(".").JSONSchema;
3057
+ }[] | undefined;
3058
+ required?: boolean | undefined;
3059
+ defaultValue?: string | undefined;
3060
+ conditionals?: ({
3061
+ type: "SHOW";
3062
+ conditional: import(".").JSONSchema;
3063
+ } | {
3064
+ type: "ENABLE";
3065
+ conditional: import(".").JSONSchema;
3066
+ } | {
3067
+ type: "DISPLAY_ON_REVIEW";
3068
+ conditional: import(".").JSONSchema;
3069
+ })[] | undefined;
3070
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3071
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3072
+ hideLabel?: boolean | undefined;
3073
+ configuration?: {
3074
+ maxLength?: number | undefined;
3075
+ } | undefined;
3076
+ } | {
3077
+ type: "DATE";
3078
+ id: string;
3079
+ label: import("./TranslationConfig").TranslationConfig;
3080
+ parent?: {
3081
+ _fieldId?: string | undefined;
3082
+ } | undefined;
3083
+ validation?: {
3084
+ message: import("./TranslationConfig").TranslationConfig;
3085
+ validator: import(".").JSONSchema;
3086
+ }[] | undefined;
3087
+ required?: boolean | undefined;
3088
+ defaultValue?: string | undefined;
3089
+ conditionals?: ({
3090
+ type: "SHOW";
3091
+ conditional: import(".").JSONSchema;
3092
+ } | {
3093
+ type: "ENABLE";
3094
+ conditional: import(".").JSONSchema;
3095
+ } | {
3096
+ type: "DISPLAY_ON_REVIEW";
3097
+ conditional: import(".").JSONSchema;
3098
+ })[] | undefined;
3099
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3100
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3101
+ hideLabel?: boolean | undefined;
3102
+ configuration?: {
3103
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
3104
+ } | undefined;
3105
+ } | {
3106
+ type: "DATE_RANGE";
3107
+ id: string;
3108
+ label: import("./TranslationConfig").TranslationConfig;
3109
+ parent?: {
3110
+ _fieldId?: string | undefined;
3111
+ } | undefined;
3112
+ validation?: {
3113
+ message: import("./TranslationConfig").TranslationConfig;
3114
+ validator: import(".").JSONSchema;
3115
+ }[] | undefined;
3116
+ required?: boolean | undefined;
3117
+ defaultValue?: string | [string, string] | undefined;
3118
+ conditionals?: ({
3119
+ type: "SHOW";
3120
+ conditional: import(".").JSONSchema;
3121
+ } | {
3122
+ type: "ENABLE";
3123
+ conditional: import(".").JSONSchema;
3124
+ } | {
3125
+ type: "DISPLAY_ON_REVIEW";
3126
+ conditional: import(".").JSONSchema;
3127
+ })[] | undefined;
3128
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3129
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3130
+ hideLabel?: boolean | undefined;
3131
+ configuration?: {
3132
+ notice?: import("./TranslationConfig").TranslationConfig | undefined;
3133
+ } | undefined;
3134
+ } | {
3135
+ type: "PARAGRAPH";
3136
+ id: string;
3137
+ label: import("./TranslationConfig").TranslationConfig;
3138
+ configuration: {
3139
+ styles?: {
3140
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
3141
+ } | undefined;
3142
+ };
3143
+ parent?: {
3144
+ _fieldId?: string | undefined;
3145
+ } | undefined;
3146
+ validation?: {
3147
+ message: import("./TranslationConfig").TranslationConfig;
3148
+ validator: import(".").JSONSchema;
3149
+ }[] | undefined;
3150
+ required?: boolean | undefined;
3151
+ defaultValue?: string | undefined;
3152
+ conditionals?: ({
3153
+ type: "SHOW";
3154
+ conditional: import(".").JSONSchema;
3155
+ } | {
3156
+ type: "ENABLE";
3157
+ conditional: import(".").JSONSchema;
3158
+ } | {
3159
+ type: "DISPLAY_ON_REVIEW";
3160
+ conditional: import(".").JSONSchema;
3161
+ })[] | undefined;
3162
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3163
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3164
+ hideLabel?: boolean | undefined;
3165
+ } | {
3166
+ type: "PAGE_HEADER";
3167
+ id: string;
3168
+ label: import("./TranslationConfig").TranslationConfig;
3169
+ parent?: {
3170
+ _fieldId?: string | undefined;
3171
+ } | undefined;
3172
+ validation?: {
3173
+ message: import("./TranslationConfig").TranslationConfig;
3174
+ validator: import(".").JSONSchema;
3175
+ }[] | undefined;
3176
+ required?: boolean | undefined;
3177
+ defaultValue?: string | undefined;
3178
+ conditionals?: ({
3179
+ type: "SHOW";
3180
+ conditional: import(".").JSONSchema;
3181
+ } | {
3182
+ type: "ENABLE";
3183
+ conditional: import(".").JSONSchema;
3184
+ } | {
3185
+ type: "DISPLAY_ON_REVIEW";
3186
+ conditional: import(".").JSONSchema;
3187
+ })[] | undefined;
3188
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3189
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3190
+ hideLabel?: boolean | undefined;
3191
+ } | {
3192
+ type: "FILE";
3193
+ id: string;
3194
+ label: import("./TranslationConfig").TranslationConfig;
3195
+ configuration: {
3196
+ maxFileSize: number;
3197
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3198
+ style?: {
3199
+ width?: "full" | "auto" | undefined;
3200
+ } | undefined;
3201
+ fileName?: import("./TranslationConfig").TranslationConfig | undefined;
3202
+ };
3203
+ parent?: {
3204
+ _fieldId?: string | undefined;
3205
+ } | undefined;
3206
+ validation?: {
3207
+ message: import("./TranslationConfig").TranslationConfig;
3208
+ validator: import(".").JSONSchema;
3209
+ }[] | undefined;
3210
+ required?: boolean | undefined;
3211
+ defaultValue?: string | number | boolean | undefined;
3212
+ conditionals?: ({
3213
+ type: "SHOW";
3214
+ conditional: import(".").JSONSchema;
3215
+ } | {
3216
+ type: "ENABLE";
3217
+ conditional: import(".").JSONSchema;
3218
+ } | {
3219
+ type: "DISPLAY_ON_REVIEW";
3220
+ conditional: import(".").JSONSchema;
3221
+ })[] | undefined;
3222
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3223
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3224
+ hideLabel?: boolean | undefined;
3225
+ } | {
3226
+ type: "RADIO_GROUP";
3227
+ id: string;
3228
+ options: {
3229
+ value: string;
3230
+ label: import("./TranslationConfig").TranslationConfig;
3231
+ }[];
3232
+ label: import("./TranslationConfig").TranslationConfig;
3233
+ parent?: {
3234
+ _fieldId?: string | undefined;
3235
+ } | undefined;
3236
+ validation?: {
3237
+ message: import("./TranslationConfig").TranslationConfig;
3238
+ validator: import(".").JSONSchema;
3239
+ }[] | undefined;
3240
+ required?: boolean | undefined;
3241
+ defaultValue?: string | undefined;
3242
+ conditionals?: ({
3243
+ type: "SHOW";
3244
+ conditional: import(".").JSONSchema;
3245
+ } | {
3246
+ type: "ENABLE";
3247
+ conditional: import(".").JSONSchema;
3248
+ } | {
3249
+ type: "DISPLAY_ON_REVIEW";
3250
+ conditional: import(".").JSONSchema;
3251
+ })[] | undefined;
3252
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3253
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3254
+ hideLabel?: boolean | undefined;
3255
+ configuration?: {
3256
+ styles?: {
3257
+ size?: "NORMAL" | "LARGE" | undefined;
3258
+ } | undefined;
3259
+ } | undefined;
3260
+ } | {
3261
+ type: "BULLET_LIST";
3262
+ id: string;
3263
+ label: import("./TranslationConfig").TranslationConfig;
3264
+ configuration: {
3265
+ styles?: {
3266
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
3267
+ } | undefined;
3268
+ };
3269
+ items: import("./TranslationConfig").TranslationConfig[];
3270
+ parent?: {
3271
+ _fieldId?: string | undefined;
3272
+ } | undefined;
3273
+ validation?: {
3274
+ message: import("./TranslationConfig").TranslationConfig;
3275
+ validator: import(".").JSONSchema;
3276
+ }[] | undefined;
3277
+ required?: boolean | undefined;
3278
+ defaultValue?: string | undefined;
3279
+ conditionals?: ({
3280
+ type: "SHOW";
3281
+ conditional: import(".").JSONSchema;
3282
+ } | {
3283
+ type: "ENABLE";
3284
+ conditional: import(".").JSONSchema;
3285
+ } | {
3286
+ type: "DISPLAY_ON_REVIEW";
3287
+ conditional: import(".").JSONSchema;
3288
+ })[] | undefined;
3289
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3290
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3291
+ hideLabel?: boolean | undefined;
3292
+ } | {
3293
+ type: "SELECT";
3294
+ id: string;
3295
+ options: {
3296
+ value: string;
3297
+ label: import("./TranslationConfig").TranslationConfig;
3298
+ }[];
3299
+ label: import("./TranslationConfig").TranslationConfig;
3300
+ parent?: {
3301
+ _fieldId?: string | undefined;
3302
+ } | undefined;
3303
+ validation?: {
3304
+ message: import("./TranslationConfig").TranslationConfig;
3305
+ validator: import(".").JSONSchema;
3306
+ }[] | undefined;
3307
+ required?: boolean | undefined;
3308
+ defaultValue?: string | undefined;
3309
+ conditionals?: ({
3310
+ type: "SHOW";
3311
+ conditional: import(".").JSONSchema;
3312
+ } | {
3313
+ type: "ENABLE";
3314
+ conditional: import(".").JSONSchema;
3315
+ } | {
3316
+ type: "DISPLAY_ON_REVIEW";
3317
+ conditional: import(".").JSONSchema;
3318
+ })[] | undefined;
3319
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3320
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3321
+ hideLabel?: boolean | undefined;
3322
+ } | {
3323
+ type: "CHECKBOX";
3324
+ id: string;
3325
+ label: import("./TranslationConfig").TranslationConfig;
3326
+ parent?: {
3327
+ _fieldId?: string | undefined;
3328
+ } | undefined;
3329
+ validation?: {
3330
+ message: import("./TranslationConfig").TranslationConfig;
3331
+ validator: import(".").JSONSchema;
3332
+ }[] | undefined;
3333
+ required?: boolean | undefined;
3334
+ defaultValue?: boolean | undefined;
3335
+ conditionals?: ({
3336
+ type: "SHOW";
3337
+ conditional: import(".").JSONSchema;
3338
+ } | {
3339
+ type: "ENABLE";
3340
+ conditional: import(".").JSONSchema;
3341
+ } | {
3342
+ type: "DISPLAY_ON_REVIEW";
3343
+ conditional: import(".").JSONSchema;
3344
+ })[] | undefined;
3345
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3346
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3347
+ hideLabel?: boolean | undefined;
3348
+ } | {
3349
+ type: "COUNTRY";
3350
+ id: string;
3351
+ label: import("./TranslationConfig").TranslationConfig;
3352
+ parent?: {
3353
+ _fieldId?: string | undefined;
3354
+ } | undefined;
3355
+ validation?: {
3356
+ message: import("./TranslationConfig").TranslationConfig;
3357
+ validator: import(".").JSONSchema;
3358
+ }[] | undefined;
3359
+ required?: boolean | undefined;
3360
+ defaultValue?: string | undefined;
3361
+ conditionals?: ({
3362
+ type: "SHOW";
3363
+ conditional: import(".").JSONSchema;
3364
+ } | {
3365
+ type: "ENABLE";
3366
+ conditional: import(".").JSONSchema;
3367
+ } | {
3368
+ type: "DISPLAY_ON_REVIEW";
3369
+ conditional: import(".").JSONSchema;
3370
+ })[] | undefined;
3371
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3372
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3373
+ hideLabel?: boolean | undefined;
3374
+ } | {
3375
+ type: "ADMINISTRATIVE_AREA";
3376
+ id: string;
3377
+ label: import("./TranslationConfig").TranslationConfig;
3378
+ configuration: {
3379
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3380
+ partOf?: {
3381
+ $declaration: string;
3382
+ } | undefined;
3383
+ };
3384
+ parent?: {
3385
+ _fieldId?: string | undefined;
3386
+ } | undefined;
3387
+ validation?: {
3388
+ message: import("./TranslationConfig").TranslationConfig;
3389
+ validator: import(".").JSONSchema;
3390
+ }[] | undefined;
3391
+ required?: boolean | undefined;
3392
+ defaultValue?: string | undefined;
3393
+ conditionals?: ({
3394
+ type: "SHOW";
3395
+ conditional: import(".").JSONSchema;
3396
+ } | {
3397
+ type: "ENABLE";
3398
+ conditional: import(".").JSONSchema;
3399
+ } | {
3400
+ type: "DISPLAY_ON_REVIEW";
3401
+ conditional: import(".").JSONSchema;
3402
+ })[] | undefined;
3403
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3404
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3405
+ hideLabel?: boolean | undefined;
3406
+ } | {
3407
+ type: "LOCATION";
3408
+ id: string;
3409
+ label: import("./TranslationConfig").TranslationConfig;
3410
+ parent?: {
3411
+ _fieldId?: string | undefined;
3412
+ } | undefined;
3413
+ validation?: {
3414
+ message: import("./TranslationConfig").TranslationConfig;
3415
+ validator: import(".").JSONSchema;
3416
+ }[] | undefined;
3417
+ required?: boolean | undefined;
3418
+ defaultValue?: string | undefined;
3419
+ conditionals?: ({
3420
+ type: "SHOW";
3421
+ conditional: import(".").JSONSchema;
3422
+ } | {
3423
+ type: "ENABLE";
3424
+ conditional: import(".").JSONSchema;
3425
+ } | {
3426
+ type: "DISPLAY_ON_REVIEW";
3427
+ conditional: import(".").JSONSchema;
3428
+ })[] | undefined;
3429
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3430
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3431
+ hideLabel?: boolean | undefined;
3432
+ } | {
3433
+ type: "FILE_WITH_OPTIONS";
3434
+ id: string;
3435
+ options: {
3436
+ value: string;
3437
+ label: import("./TranslationConfig").TranslationConfig;
3438
+ }[];
3439
+ label: import("./TranslationConfig").TranslationConfig;
3440
+ configuration: {
3441
+ maxFileSize: number;
3442
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3443
+ };
3444
+ parent?: {
3445
+ _fieldId?: string | undefined;
3446
+ } | undefined;
3447
+ validation?: {
3448
+ message: import("./TranslationConfig").TranslationConfig;
3449
+ validator: import(".").JSONSchema;
3450
+ }[] | undefined;
3451
+ required?: boolean | undefined;
3452
+ defaultValue?: string | number | boolean | undefined;
3453
+ conditionals?: ({
3454
+ type: "SHOW";
3455
+ conditional: import(".").JSONSchema;
3456
+ } | {
3457
+ type: "ENABLE";
3458
+ conditional: import(".").JSONSchema;
3459
+ } | {
3460
+ type: "DISPLAY_ON_REVIEW";
3461
+ conditional: import(".").JSONSchema;
3462
+ })[] | undefined;
3463
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3464
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3465
+ hideLabel?: boolean | undefined;
3466
+ } | {
3467
+ type: "FACILITY";
3468
+ id: string;
3469
+ label: import("./TranslationConfig").TranslationConfig;
3470
+ parent?: {
3471
+ _fieldId?: string | undefined;
3472
+ } | undefined;
3473
+ validation?: {
3474
+ message: import("./TranslationConfig").TranslationConfig;
3475
+ validator: import(".").JSONSchema;
3476
+ }[] | undefined;
3477
+ required?: boolean | undefined;
3478
+ defaultValue?: string | undefined;
3479
+ conditionals?: ({
3480
+ type: "SHOW";
3481
+ conditional: import(".").JSONSchema;
3482
+ } | {
3483
+ type: "ENABLE";
3484
+ conditional: import(".").JSONSchema;
3485
+ } | {
3486
+ type: "DISPLAY_ON_REVIEW";
3487
+ conditional: import(".").JSONSchema;
3488
+ })[] | undefined;
3489
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3490
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3491
+ hideLabel?: boolean | undefined;
3492
+ } | {
3493
+ type: "OFFICE";
3494
+ id: string;
3495
+ label: import("./TranslationConfig").TranslationConfig;
3496
+ parent?: {
3497
+ _fieldId?: string | undefined;
3498
+ } | undefined;
3499
+ validation?: {
3500
+ message: import("./TranslationConfig").TranslationConfig;
3501
+ validator: import(".").JSONSchema;
3502
+ }[] | undefined;
3503
+ required?: boolean | undefined;
3504
+ defaultValue?: string | undefined;
3505
+ conditionals?: ({
3506
+ type: "SHOW";
3507
+ conditional: import(".").JSONSchema;
3508
+ } | {
3509
+ type: "ENABLE";
3510
+ conditional: import(".").JSONSchema;
3511
+ } | {
3512
+ type: "DISPLAY_ON_REVIEW";
3513
+ conditional: import(".").JSONSchema;
3514
+ })[] | undefined;
3515
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3516
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3517
+ hideLabel?: boolean | undefined;
3518
+ } | {
3519
+ type: "ADDRESS";
3520
+ id: string;
3521
+ label: import("./TranslationConfig").TranslationConfig;
3522
+ parent?: {
3523
+ _fieldId?: string | undefined;
3524
+ } | undefined;
3525
+ validation?: {
3526
+ message: import("./TranslationConfig").TranslationConfig;
3527
+ validator: import(".").JSONSchema;
3528
+ }[] | undefined;
3529
+ required?: boolean | undefined;
3530
+ defaultValue?: {
3531
+ country: string;
3532
+ district: string;
3533
+ addressType: "DOMESTIC";
3534
+ province: string;
3535
+ urbanOrRural: "URBAN";
3536
+ number?: string | undefined;
3537
+ town?: string | undefined;
3538
+ residentialArea?: string | undefined;
3539
+ street?: string | undefined;
3540
+ zipCode?: string | undefined;
3541
+ } | {
3542
+ country: string;
3543
+ district: string;
3544
+ addressType: "DOMESTIC";
3545
+ province: string;
3546
+ urbanOrRural: "RURAL";
3547
+ village?: string | undefined;
3548
+ } | {
3549
+ country: string;
3550
+ state: string;
3551
+ addressType: "INTERNATIONAL";
3552
+ district2: string;
3553
+ cityOrTown?: string | undefined;
3554
+ addressLine1?: string | undefined;
3555
+ addressLine2?: string | undefined;
3556
+ addressLine3?: string | undefined;
3557
+ postcodeOrZip?: string | undefined;
3558
+ } | undefined;
3559
+ conditionals?: ({
3560
+ type: "SHOW";
3561
+ conditional: import(".").JSONSchema;
3562
+ } | {
3563
+ type: "ENABLE";
3564
+ conditional: import(".").JSONSchema;
3565
+ } | {
3566
+ type: "DISPLAY_ON_REVIEW";
3567
+ conditional: import(".").JSONSchema;
3568
+ })[] | undefined;
3569
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3570
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3571
+ hideLabel?: boolean | undefined;
3572
+ } | {
3573
+ type: "DATA";
3574
+ id: string;
3575
+ label: import("./TranslationConfig").TranslationConfig;
3576
+ configuration: {
3577
+ data: ({
3578
+ value: string | import("./TranslationConfig").TranslationConfig;
3579
+ label: import("./TranslationConfig").TranslationConfig;
3580
+ } | {
3581
+ fieldId: string;
3582
+ })[];
3583
+ subtitle?: import("./TranslationConfig").TranslationConfig | undefined;
3584
+ };
3585
+ parent?: {
3586
+ _fieldId?: string | undefined;
3587
+ } | undefined;
3588
+ validation?: {
3589
+ message: import("./TranslationConfig").TranslationConfig;
3590
+ validator: import(".").JSONSchema;
3591
+ }[] | undefined;
3592
+ required?: boolean | undefined;
3593
+ defaultValue?: string | number | boolean | undefined;
3594
+ conditionals?: ({
3595
+ type: "SHOW";
3596
+ conditional: import(".").JSONSchema;
3597
+ } | {
3598
+ type: "ENABLE";
3599
+ conditional: import(".").JSONSchema;
3600
+ } | {
3601
+ type: "DISPLAY_ON_REVIEW";
3602
+ conditional: import(".").JSONSchema;
3603
+ })[] | undefined;
3604
+ placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3605
+ helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3606
+ hideLabel?: boolean | undefined;
3607
+ })[];
3608
+ export declare function isPageVisible(page: PageConfig, formValues: ActionUpdate): boolean;
3609
+ export declare function omitHiddenFields<T extends EventState | ActionUpdate>(fields: FieldConfig[], values: T, visibleVerificationPageIds?: string[]): Partial<T>;
3610
+ export declare function omitHiddenPaginatedFields(formConfig: FormConfig, declaration: EventState): Partial<Record<string, string | number | boolean | {
89
3611
  type: string;
90
3612
  filename: string;
91
3613
  originalFilename: string;
92
3614
  } | {
93
3615
  country: string;
94
3616
  district: string;
3617
+ addressType: "DOMESTIC";
95
3618
  province: string;
96
3619
  urbanOrRural: "URBAN";
97
3620
  number?: string | undefined;
@@ -102,13 +3625,210 @@ export declare function stripHiddenFields(fields: FieldConfig[], data: EventStat
102
3625
  } | {
103
3626
  country: string;
104
3627
  district: string;
3628
+ addressType: "DOMESTIC";
105
3629
  province: string;
106
3630
  urbanOrRural: "RURAL";
107
3631
  village?: string | undefined;
3632
+ } | {
3633
+ country: string;
3634
+ state: string;
3635
+ addressType: "INTERNATIONAL";
3636
+ district2: string;
3637
+ cityOrTown?: string | undefined;
3638
+ addressLine1?: string | undefined;
3639
+ addressLine2?: string | undefined;
3640
+ addressLine3?: string | undefined;
3641
+ postcodeOrZip?: string | undefined;
108
3642
  } | {
109
3643
  type: string;
110
3644
  option: string;
111
3645
  filename: string;
112
3646
  originalFilename: string;
113
- }[]>;
3647
+ }[] | [string, string] | undefined>>;
3648
+ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]): {
3649
+ id: string;
3650
+ transactionId: string;
3651
+ createdAt: string;
3652
+ eventId: string;
3653
+ action: {
3654
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
3655
+ status: "Rejected" | "Requested" | "Accepted";
3656
+ transactionId: string;
3657
+ createdAt: string;
3658
+ createdBy: string;
3659
+ createdByRole: string;
3660
+ declaration: Record<string, string | number | boolean | {
3661
+ type: string;
3662
+ filename: string;
3663
+ originalFilename: string;
3664
+ } | {
3665
+ country: string;
3666
+ district: string;
3667
+ addressType: "DOMESTIC";
3668
+ province: string;
3669
+ urbanOrRural: "URBAN";
3670
+ number?: string | null | undefined;
3671
+ town?: string | null | undefined;
3672
+ residentialArea?: string | null | undefined;
3673
+ street?: string | null | undefined;
3674
+ zipCode?: string | null | undefined;
3675
+ } | {
3676
+ country: string;
3677
+ district: string;
3678
+ addressType: "DOMESTIC";
3679
+ province: string;
3680
+ urbanOrRural: "RURAL";
3681
+ village?: string | null | undefined;
3682
+ } | {
3683
+ country: string;
3684
+ state: string;
3685
+ addressType: "INTERNATIONAL";
3686
+ district2: string;
3687
+ cityOrTown?: string | null | undefined;
3688
+ addressLine1?: string | null | undefined;
3689
+ addressLine2?: string | null | undefined;
3690
+ addressLine3?: string | null | undefined;
3691
+ postcodeOrZip?: string | null | undefined;
3692
+ } | {
3693
+ type: string;
3694
+ option: string;
3695
+ filename: string;
3696
+ originalFilename: string;
3697
+ }[] | [string, string] | undefined>;
3698
+ createdAtLocation: string;
3699
+ annotation?: Record<string, string | number | boolean | {
3700
+ type: string;
3701
+ filename: string;
3702
+ originalFilename: string;
3703
+ } | {
3704
+ country: string;
3705
+ district: string;
3706
+ addressType: "DOMESTIC";
3707
+ province: string;
3708
+ urbanOrRural: "URBAN";
3709
+ number?: string | null | undefined;
3710
+ town?: string | null | undefined;
3711
+ residentialArea?: string | null | undefined;
3712
+ street?: string | null | undefined;
3713
+ zipCode?: string | null | undefined;
3714
+ } | {
3715
+ country: string;
3716
+ district: string;
3717
+ addressType: "DOMESTIC";
3718
+ province: string;
3719
+ urbanOrRural: "RURAL";
3720
+ village?: string | null | undefined;
3721
+ } | {
3722
+ country: string;
3723
+ state: string;
3724
+ addressType: "INTERNATIONAL";
3725
+ district2: string;
3726
+ cityOrTown?: string | null | undefined;
3727
+ addressLine1?: string | null | undefined;
3728
+ addressLine2?: string | null | undefined;
3729
+ addressLine3?: string | null | undefined;
3730
+ postcodeOrZip?: string | null | undefined;
3731
+ } | {
3732
+ type: string;
3733
+ option: string;
3734
+ filename: string;
3735
+ originalFilename: string;
3736
+ }[] | [string, string] | undefined> | undefined;
3737
+ originalActionId?: string | undefined;
3738
+ };
3739
+ }[];
3740
+ export declare function createEmptyDraft(eventId: string, draftId: string, actionType: ActionType): Draft;
3741
+ export declare function isVerificationPage(page: PageConfig): page is VerificationPageConfig;
3742
+ export declare function getVisibleVerificationPageIds(pages: PageConfig[], annotation: ActionUpdate): string[];
3743
+ export declare function getActionVerificationPageIds(actionConfig: ActionConfig, annotation: ActionUpdate): string[];
3744
+ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate): Partial<{
3745
+ [x: string]: string | number | boolean | {
3746
+ type: string;
3747
+ filename: string;
3748
+ originalFilename: string;
3749
+ } | {
3750
+ country: string;
3751
+ district: string;
3752
+ addressType: "DOMESTIC";
3753
+ province: string;
3754
+ urbanOrRural: "URBAN";
3755
+ number?: string | undefined;
3756
+ town?: string | undefined;
3757
+ residentialArea?: string | undefined;
3758
+ street?: string | undefined;
3759
+ zipCode?: string | undefined;
3760
+ } | {
3761
+ country: string;
3762
+ district: string;
3763
+ addressType: "DOMESTIC";
3764
+ province: string;
3765
+ urbanOrRural: "RURAL";
3766
+ village?: string | undefined;
3767
+ } | {
3768
+ country: string;
3769
+ district: string;
3770
+ addressType: "DOMESTIC";
3771
+ province: string;
3772
+ urbanOrRural: "URBAN";
3773
+ number?: string | null | undefined;
3774
+ town?: string | null | undefined;
3775
+ residentialArea?: string | null | undefined;
3776
+ street?: string | null | undefined;
3777
+ zipCode?: string | null | undefined;
3778
+ } | {
3779
+ country: string;
3780
+ district: string;
3781
+ addressType: "DOMESTIC";
3782
+ province: string;
3783
+ urbanOrRural: "RURAL";
3784
+ village?: string | null | undefined;
3785
+ } | {
3786
+ country: string;
3787
+ state: string;
3788
+ addressType: "INTERNATIONAL";
3789
+ district2: string;
3790
+ cityOrTown?: string | undefined;
3791
+ addressLine1?: string | undefined;
3792
+ addressLine2?: string | undefined;
3793
+ addressLine3?: string | undefined;
3794
+ postcodeOrZip?: string | undefined;
3795
+ } | {
3796
+ country: string;
3797
+ state: string;
3798
+ addressType: "INTERNATIONAL";
3799
+ district2: string;
3800
+ cityOrTown?: string | null | undefined;
3801
+ addressLine1?: string | null | undefined;
3802
+ addressLine2?: string | null | undefined;
3803
+ addressLine3?: string | null | undefined;
3804
+ postcodeOrZip?: string | null | undefined;
3805
+ } | {
3806
+ type: string;
3807
+ option: string;
3808
+ filename: string;
3809
+ originalFilename: string;
3810
+ }[] | [string, string] | undefined;
3811
+ }>;
3812
+ export declare function deepMerge<T extends Record<string, unknown>, K extends Record<string, unknown>>(currentDocument: T, actionDocument: K): T & K;
3813
+ export declare function findLastAssignmentAction(actions: Action[]): Action | undefined;
3814
+ /** Tell compiler that accessing record with arbitrary key might result to undefined
3815
+ * Use when you **cannot guarantee** that key exists in the record
3816
+ */
3817
+ export type IndexMap<T> = {
3818
+ [id: string]: T | undefined;
3819
+ };
3820
+ export declare function isWriteAction(actionType: ActionType): boolean;
3821
+ /**
3822
+ * @returns All the fields in the event configuration.
3823
+ */
3824
+ export declare const findAllFields: (config: EventConfig) => FieldConfig[];
3825
+ /**
3826
+ * Returns the value of the object at the given path with the ability of resolving mixed paths. See examples.
3827
+ *
3828
+ * @param obj Entity we want to get the value from
3829
+ * @param path property path e.g. `a.b.c`
3830
+ * @param defaultValue
3831
+ * @returns the value of the object at the given path.
3832
+ */
3833
+ export declare function getMixedPath<T = unknown>(obj: Record<string, unknown>, path: string, defaultValue?: T | undefined): T | undefined;
114
3834
  //# sourceMappingURL=utils.d.ts.map