@opencrvs/toolkit 1.8.0-rc.faacbde → 1.8.0-rc.facf9d6

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