@opencrvs/toolkit 1.8.0-rc.fe799b0 → 1.8.0-rc.fe87a15

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