@opencrvs/toolkit 1.8.0-rc.fb2e700 → 1.8.0-rc.fbb40d1

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