@opencrvs/toolkit 1.8.0-rc.fa49ae3 → 1.8.0-rc.fa564ca

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 (31) hide show
  1. package/dist/commons/api/router.d.ts +381 -6649
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -4
  3. package/dist/commons/conditionals/validate.d.ts +0 -6
  4. package/dist/commons/events/ActionConfig.d.ts +6326 -18678
  5. package/dist/commons/events/ActionDocument.d.ts +204 -1713
  6. package/dist/commons/events/ActionInput.d.ts +180 -1380
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -75
  8. package/dist/commons/events/CompositeFieldValue.d.ts +0 -28
  9. package/dist/commons/events/Constants.d.ts +0 -1
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -26
  11. package/dist/commons/events/Draft.d.ts +16 -117
  12. package/dist/commons/events/EventConfig.d.ts +2487 -8364
  13. package/dist/commons/events/EventDocument.d.ts +152 -1096
  14. package/dist/commons/events/EventIndex.d.ts +17 -283
  15. package/dist/commons/events/EventMetadata.d.ts +35 -38
  16. package/dist/commons/events/FieldConfig.d.ts +771 -1597
  17. package/dist/commons/events/FieldType.d.ts +1 -4
  18. package/dist/commons/events/FieldTypeMapping.d.ts +50 -89
  19. package/dist/commons/events/FieldValue.d.ts +5 -41
  20. package/dist/commons/events/FormConfig.d.ts +2444 -7640
  21. package/dist/commons/events/PageConfig.d.ts +1620 -2896
  22. package/dist/commons/events/SummaryConfig.d.ts +5 -0
  23. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  24. package/dist/commons/events/WorkqueueConfig.d.ts +24 -346
  25. package/dist/commons/events/defineConfig.d.ts +14 -960
  26. package/dist/commons/events/field.d.ts +0 -4
  27. package/dist/commons/events/test.utils.d.ts +38 -124
  28. package/dist/commons/events/utils.d.ts +8 -9659
  29. package/dist/conditionals/index.js +1 -18
  30. package/dist/events/index.js +413 -691
  31. package/package.json +1 -1
@@ -444,92 +444,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
444
444
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
445
445
  hideLabel?: boolean | undefined;
446
446
  defaultValue?: string | undefined;
447
- } | {
448
- type: "NAME";
449
- id: string;
450
- label: import("./TranslationConfig").TranslationConfig;
451
- parent?: {
452
- $$field: string;
453
- } | undefined;
454
- validation?: {
455
- message: import("./TranslationConfig").TranslationConfig;
456
- validator: import(".").JSONSchema;
457
- }[] | undefined;
458
- required?: boolean | undefined;
459
- conditionals?: ({
460
- type: "SHOW";
461
- conditional: import(".").JSONSchema;
462
- } | {
463
- type: "ENABLE";
464
- conditional: import(".").JSONSchema;
465
- } | {
466
- type: "DISPLAY_ON_REVIEW";
467
- conditional: import(".").JSONSchema;
468
- })[] | undefined;
469
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
470
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
471
- hideLabel?: boolean | undefined;
472
- defaultValue?: {
473
- firstname: string;
474
- surname: string;
475
- } | undefined;
476
- configuration?: {
477
- maxLength?: number | undefined;
478
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
479
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
480
- } | undefined;
481
- } | {
482
- type: "PHONE";
483
- id: string;
484
- label: import("./TranslationConfig").TranslationConfig;
485
- parent?: {
486
- $$field: string;
487
- } | undefined;
488
- validation?: {
489
- message: import("./TranslationConfig").TranslationConfig;
490
- validator: import(".").JSONSchema;
491
- }[] | undefined;
492
- required?: boolean | undefined;
493
- conditionals?: ({
494
- type: "SHOW";
495
- conditional: import(".").JSONSchema;
496
- } | {
497
- type: "ENABLE";
498
- conditional: import(".").JSONSchema;
499
- } | {
500
- type: "DISPLAY_ON_REVIEW";
501
- conditional: import(".").JSONSchema;
502
- })[] | undefined;
503
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
504
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
505
- hideLabel?: boolean | undefined;
506
- defaultValue?: string | undefined;
507
- } | {
508
- type: "ID";
509
- id: string;
510
- label: import("./TranslationConfig").TranslationConfig;
511
- parent?: {
512
- $$field: string;
513
- } | undefined;
514
- validation?: {
515
- message: import("./TranslationConfig").TranslationConfig;
516
- validator: import(".").JSONSchema;
517
- }[] | undefined;
518
- required?: boolean | undefined;
519
- conditionals?: ({
520
- type: "SHOW";
521
- conditional: import(".").JSONSchema;
522
- } | {
523
- type: "ENABLE";
524
- conditional: import(".").JSONSchema;
525
- } | {
526
- type: "DISPLAY_ON_REVIEW";
527
- conditional: import(".").JSONSchema;
528
- })[] | undefined;
529
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
530
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
531
- hideLabel?: boolean | undefined;
532
- defaultValue?: string | undefined;
533
447
  } | {
534
448
  type: "CHECKBOX";
535
449
  id: string;
@@ -1267,92 +1181,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
1267
1181
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1268
1182
  hideLabel?: boolean | undefined;
1269
1183
  defaultValue?: string | undefined;
1270
- } | {
1271
- type: "NAME";
1272
- id: string;
1273
- label: import("./TranslationConfig").TranslationConfig;
1274
- parent?: {
1275
- $$field: string;
1276
- } | undefined;
1277
- validation?: {
1278
- message: import("./TranslationConfig").TranslationConfig;
1279
- validator: import(".").JSONSchema;
1280
- }[] | undefined;
1281
- required?: boolean | undefined;
1282
- conditionals?: ({
1283
- type: "SHOW";
1284
- conditional: import(".").JSONSchema;
1285
- } | {
1286
- type: "ENABLE";
1287
- conditional: import(".").JSONSchema;
1288
- } | {
1289
- type: "DISPLAY_ON_REVIEW";
1290
- conditional: import(".").JSONSchema;
1291
- })[] | undefined;
1292
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1293
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1294
- hideLabel?: boolean | undefined;
1295
- defaultValue?: {
1296
- firstname: string;
1297
- surname: string;
1298
- } | undefined;
1299
- configuration?: {
1300
- maxLength?: number | undefined;
1301
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
1302
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
1303
- } | undefined;
1304
- } | {
1305
- type: "PHONE";
1306
- id: string;
1307
- label: import("./TranslationConfig").TranslationConfig;
1308
- parent?: {
1309
- $$field: string;
1310
- } | undefined;
1311
- validation?: {
1312
- message: import("./TranslationConfig").TranslationConfig;
1313
- validator: import(".").JSONSchema;
1314
- }[] | undefined;
1315
- required?: boolean | undefined;
1316
- conditionals?: ({
1317
- type: "SHOW";
1318
- conditional: import(".").JSONSchema;
1319
- } | {
1320
- type: "ENABLE";
1321
- conditional: import(".").JSONSchema;
1322
- } | {
1323
- type: "DISPLAY_ON_REVIEW";
1324
- conditional: import(".").JSONSchema;
1325
- })[] | undefined;
1326
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1327
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1328
- hideLabel?: boolean | undefined;
1329
- defaultValue?: string | undefined;
1330
- } | {
1331
- type: "ID";
1332
- id: string;
1333
- label: import("./TranslationConfig").TranslationConfig;
1334
- parent?: {
1335
- $$field: string;
1336
- } | undefined;
1337
- validation?: {
1338
- message: import("./TranslationConfig").TranslationConfig;
1339
- validator: import(".").JSONSchema;
1340
- }[] | undefined;
1341
- required?: boolean | undefined;
1342
- conditionals?: ({
1343
- type: "SHOW";
1344
- conditional: import(".").JSONSchema;
1345
- } | {
1346
- type: "ENABLE";
1347
- conditional: import(".").JSONSchema;
1348
- } | {
1349
- type: "DISPLAY_ON_REVIEW";
1350
- conditional: import(".").JSONSchema;
1351
- })[] | undefined;
1352
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1353
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1354
- hideLabel?: boolean | undefined;
1355
- defaultValue?: string | undefined;
1356
1184
  } | {
1357
1185
  type: "CHECKBOX";
1358
1186
  id: string;
@@ -2089,92 +1917,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
2089
1917
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2090
1918
  hideLabel?: boolean | undefined;
2091
1919
  defaultValue?: string | undefined;
2092
- } | {
2093
- type: "NAME";
2094
- id: string;
2095
- label: import("./TranslationConfig").TranslationConfig;
2096
- parent?: {
2097
- $$field: string;
2098
- } | undefined;
2099
- validation?: {
2100
- message: import("./TranslationConfig").TranslationConfig;
2101
- validator: import(".").JSONSchema;
2102
- }[] | undefined;
2103
- required?: boolean | undefined;
2104
- conditionals?: ({
2105
- type: "SHOW";
2106
- conditional: import(".").JSONSchema;
2107
- } | {
2108
- type: "ENABLE";
2109
- conditional: import(".").JSONSchema;
2110
- } | {
2111
- type: "DISPLAY_ON_REVIEW";
2112
- conditional: import(".").JSONSchema;
2113
- })[] | undefined;
2114
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2115
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2116
- hideLabel?: boolean | undefined;
2117
- defaultValue?: {
2118
- firstname: string;
2119
- surname: string;
2120
- } | undefined;
2121
- configuration?: {
2122
- maxLength?: number | undefined;
2123
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2124
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2125
- } | undefined;
2126
- } | {
2127
- type: "PHONE";
2128
- id: string;
2129
- label: import("./TranslationConfig").TranslationConfig;
2130
- parent?: {
2131
- $$field: string;
2132
- } | undefined;
2133
- validation?: {
2134
- message: import("./TranslationConfig").TranslationConfig;
2135
- validator: import(".").JSONSchema;
2136
- }[] | undefined;
2137
- required?: boolean | undefined;
2138
- conditionals?: ({
2139
- type: "SHOW";
2140
- conditional: import(".").JSONSchema;
2141
- } | {
2142
- type: "ENABLE";
2143
- conditional: import(".").JSONSchema;
2144
- } | {
2145
- type: "DISPLAY_ON_REVIEW";
2146
- conditional: import(".").JSONSchema;
2147
- })[] | undefined;
2148
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2149
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2150
- hideLabel?: boolean | undefined;
2151
- defaultValue?: string | undefined;
2152
- } | {
2153
- type: "ID";
2154
- id: string;
2155
- label: import("./TranslationConfig").TranslationConfig;
2156
- parent?: {
2157
- $$field: string;
2158
- } | undefined;
2159
- validation?: {
2160
- message: import("./TranslationConfig").TranslationConfig;
2161
- validator: import(".").JSONSchema;
2162
- }[] | undefined;
2163
- required?: boolean | undefined;
2164
- conditionals?: ({
2165
- type: "SHOW";
2166
- conditional: import(".").JSONSchema;
2167
- } | {
2168
- type: "ENABLE";
2169
- conditional: import(".").JSONSchema;
2170
- } | {
2171
- type: "DISPLAY_ON_REVIEW";
2172
- conditional: import(".").JSONSchema;
2173
- })[] | undefined;
2174
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2175
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2176
- hideLabel?: boolean | undefined;
2177
- defaultValue?: string | undefined;
2178
1920
  } | {
2179
1921
  type: "CHECKBOX";
2180
1922
  id: string;
@@ -2912,7 +2654,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
2912
2654
  hideLabel?: boolean | undefined;
2913
2655
  defaultValue?: string | undefined;
2914
2656
  } | {
2915
- type: "NAME";
2657
+ type: "CHECKBOX";
2916
2658
  id: string;
2917
2659
  label: import("./TranslationConfig").TranslationConfig;
2918
2660
  parent?: {
@@ -2936,17 +2678,9 @@ export declare const defineConfig: (config: EventConfigInput) => {
2936
2678
  placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2937
2679
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2938
2680
  hideLabel?: boolean | undefined;
2939
- defaultValue?: {
2940
- firstname: string;
2941
- surname: string;
2942
- } | undefined;
2943
- configuration?: {
2944
- maxLength?: number | undefined;
2945
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2946
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2947
- } | undefined;
2681
+ defaultValue?: boolean | undefined;
2948
2682
  } | {
2949
- type: "PHONE";
2683
+ type: "COUNTRY";
2950
2684
  id: string;
2951
2685
  label: import("./TranslationConfig").TranslationConfig;
2952
2686
  parent?: {
@@ -2972,85 +2706,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
2972
2706
  hideLabel?: boolean | undefined;
2973
2707
  defaultValue?: string | undefined;
2974
2708
  } | {
2975
- type: "ID";
2976
- id: string;
2977
- label: import("./TranslationConfig").TranslationConfig;
2978
- parent?: {
2979
- $$field: string;
2980
- } | undefined;
2981
- validation?: {
2982
- message: import("./TranslationConfig").TranslationConfig;
2983
- validator: import(".").JSONSchema;
2984
- }[] | undefined;
2985
- required?: boolean | undefined;
2986
- conditionals?: ({
2987
- type: "SHOW";
2988
- conditional: import(".").JSONSchema;
2989
- } | {
2990
- type: "ENABLE";
2991
- conditional: import(".").JSONSchema;
2992
- } | {
2993
- type: "DISPLAY_ON_REVIEW";
2994
- conditional: import(".").JSONSchema;
2995
- })[] | undefined;
2996
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2997
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2998
- hideLabel?: boolean | undefined;
2999
- defaultValue?: string | undefined;
3000
- } | {
3001
- type: "CHECKBOX";
3002
- id: string;
3003
- label: import("./TranslationConfig").TranslationConfig;
3004
- parent?: {
3005
- $$field: string;
3006
- } | undefined;
3007
- validation?: {
3008
- message: import("./TranslationConfig").TranslationConfig;
3009
- validator: import(".").JSONSchema;
3010
- }[] | undefined;
3011
- required?: boolean | undefined;
3012
- conditionals?: ({
3013
- type: "SHOW";
3014
- conditional: import(".").JSONSchema;
3015
- } | {
3016
- type: "ENABLE";
3017
- conditional: import(".").JSONSchema;
3018
- } | {
3019
- type: "DISPLAY_ON_REVIEW";
3020
- conditional: import(".").JSONSchema;
3021
- })[] | undefined;
3022
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3023
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3024
- hideLabel?: boolean | undefined;
3025
- defaultValue?: boolean | undefined;
3026
- } | {
3027
- type: "COUNTRY";
3028
- id: string;
3029
- label: import("./TranslationConfig").TranslationConfig;
3030
- parent?: {
3031
- $$field: string;
3032
- } | undefined;
3033
- validation?: {
3034
- message: import("./TranslationConfig").TranslationConfig;
3035
- validator: import(".").JSONSchema;
3036
- }[] | undefined;
3037
- required?: boolean | undefined;
3038
- conditionals?: ({
3039
- type: "SHOW";
3040
- conditional: import(".").JSONSchema;
3041
- } | {
3042
- type: "ENABLE";
3043
- conditional: import(".").JSONSchema;
3044
- } | {
3045
- type: "DISPLAY_ON_REVIEW";
3046
- conditional: import(".").JSONSchema;
3047
- })[] | undefined;
3048
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3049
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3050
- hideLabel?: boolean | undefined;
3051
- defaultValue?: string | undefined;
3052
- } | {
3053
- type: "ADMINISTRATIVE_AREA";
2709
+ type: "ADMINISTRATIVE_AREA";
3054
2710
  id: string;
3055
2711
  label: import("./TranslationConfig").TranslationConfig;
3056
2712
  configuration: {
@@ -3733,92 +3389,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
3733
3389
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3734
3390
  hideLabel?: boolean | undefined;
3735
3391
  defaultValue?: string | undefined;
3736
- } | {
3737
- type: "NAME";
3738
- id: string;
3739
- label: import("./TranslationConfig").TranslationConfig;
3740
- parent?: {
3741
- $$field: string;
3742
- } | undefined;
3743
- validation?: {
3744
- message: import("./TranslationConfig").TranslationConfig;
3745
- validator: import(".").JSONSchema;
3746
- }[] | undefined;
3747
- required?: boolean | undefined;
3748
- conditionals?: ({
3749
- type: "SHOW";
3750
- conditional: import(".").JSONSchema;
3751
- } | {
3752
- type: "ENABLE";
3753
- conditional: import(".").JSONSchema;
3754
- } | {
3755
- type: "DISPLAY_ON_REVIEW";
3756
- conditional: import(".").JSONSchema;
3757
- })[] | undefined;
3758
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3759
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3760
- hideLabel?: boolean | undefined;
3761
- defaultValue?: {
3762
- firstname: string;
3763
- surname: string;
3764
- } | undefined;
3765
- configuration?: {
3766
- maxLength?: number | undefined;
3767
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
3768
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
3769
- } | undefined;
3770
- } | {
3771
- type: "PHONE";
3772
- id: string;
3773
- label: import("./TranslationConfig").TranslationConfig;
3774
- parent?: {
3775
- $$field: string;
3776
- } | undefined;
3777
- validation?: {
3778
- message: import("./TranslationConfig").TranslationConfig;
3779
- validator: import(".").JSONSchema;
3780
- }[] | undefined;
3781
- required?: boolean | undefined;
3782
- conditionals?: ({
3783
- type: "SHOW";
3784
- conditional: import(".").JSONSchema;
3785
- } | {
3786
- type: "ENABLE";
3787
- conditional: import(".").JSONSchema;
3788
- } | {
3789
- type: "DISPLAY_ON_REVIEW";
3790
- conditional: import(".").JSONSchema;
3791
- })[] | undefined;
3792
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3793
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3794
- hideLabel?: boolean | undefined;
3795
- defaultValue?: string | undefined;
3796
- } | {
3797
- type: "ID";
3798
- id: string;
3799
- label: import("./TranslationConfig").TranslationConfig;
3800
- parent?: {
3801
- $$field: string;
3802
- } | undefined;
3803
- validation?: {
3804
- message: import("./TranslationConfig").TranslationConfig;
3805
- validator: import(".").JSONSchema;
3806
- }[] | undefined;
3807
- required?: boolean | undefined;
3808
- conditionals?: ({
3809
- type: "SHOW";
3810
- conditional: import(".").JSONSchema;
3811
- } | {
3812
- type: "ENABLE";
3813
- conditional: import(".").JSONSchema;
3814
- } | {
3815
- type: "DISPLAY_ON_REVIEW";
3816
- conditional: import(".").JSONSchema;
3817
- })[] | undefined;
3818
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3819
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3820
- hideLabel?: boolean | undefined;
3821
- defaultValue?: string | undefined;
3822
3392
  } | {
3823
3393
  type: "CHECKBOX";
3824
3394
  id: string;
@@ -4603,92 +4173,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
4603
4173
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4604
4174
  hideLabel?: boolean | undefined;
4605
4175
  defaultValue?: string | undefined;
4606
- } | {
4607
- type: "NAME";
4608
- id: string;
4609
- label: import("./TranslationConfig").TranslationConfig;
4610
- parent?: {
4611
- $$field: string;
4612
- } | undefined;
4613
- validation?: {
4614
- message: import("./TranslationConfig").TranslationConfig;
4615
- validator: import(".").JSONSchema;
4616
- }[] | undefined;
4617
- required?: boolean | undefined;
4618
- conditionals?: ({
4619
- type: "SHOW";
4620
- conditional: import(".").JSONSchema;
4621
- } | {
4622
- type: "ENABLE";
4623
- conditional: import(".").JSONSchema;
4624
- } | {
4625
- type: "DISPLAY_ON_REVIEW";
4626
- conditional: import(".").JSONSchema;
4627
- })[] | undefined;
4628
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
4629
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4630
- hideLabel?: boolean | undefined;
4631
- defaultValue?: {
4632
- firstname: string;
4633
- surname: string;
4634
- } | undefined;
4635
- configuration?: {
4636
- maxLength?: number | undefined;
4637
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
4638
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
4639
- } | undefined;
4640
- } | {
4641
- type: "PHONE";
4642
- id: string;
4643
- label: import("./TranslationConfig").TranslationConfig;
4644
- parent?: {
4645
- $$field: string;
4646
- } | undefined;
4647
- validation?: {
4648
- message: import("./TranslationConfig").TranslationConfig;
4649
- validator: import(".").JSONSchema;
4650
- }[] | undefined;
4651
- required?: boolean | undefined;
4652
- conditionals?: ({
4653
- type: "SHOW";
4654
- conditional: import(".").JSONSchema;
4655
- } | {
4656
- type: "ENABLE";
4657
- conditional: import(".").JSONSchema;
4658
- } | {
4659
- type: "DISPLAY_ON_REVIEW";
4660
- conditional: import(".").JSONSchema;
4661
- })[] | undefined;
4662
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
4663
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4664
- hideLabel?: boolean | undefined;
4665
- defaultValue?: string | undefined;
4666
- } | {
4667
- type: "ID";
4668
- id: string;
4669
- label: import("./TranslationConfig").TranslationConfig;
4670
- parent?: {
4671
- $$field: string;
4672
- } | undefined;
4673
- validation?: {
4674
- message: import("./TranslationConfig").TranslationConfig;
4675
- validator: import(".").JSONSchema;
4676
- }[] | undefined;
4677
- required?: boolean | undefined;
4678
- conditionals?: ({
4679
- type: "SHOW";
4680
- conditional: import(".").JSONSchema;
4681
- } | {
4682
- type: "ENABLE";
4683
- conditional: import(".").JSONSchema;
4684
- } | {
4685
- type: "DISPLAY_ON_REVIEW";
4686
- conditional: import(".").JSONSchema;
4687
- })[] | undefined;
4688
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
4689
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4690
- hideLabel?: boolean | undefined;
4691
- defaultValue?: string | undefined;
4692
4176
  } | {
4693
4177
  type: "CHECKBOX";
4694
4178
  id: string;
@@ -5429,7 +4913,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
5429
4913
  hideLabel?: boolean | undefined;
5430
4914
  defaultValue?: string | undefined;
5431
4915
  } | {
5432
- type: "NAME";
4916
+ type: "CHECKBOX";
5433
4917
  id: string;
5434
4918
  label: import("./TranslationConfig").TranslationConfig;
5435
4919
  parent?: {
@@ -5453,17 +4937,9 @@ export declare const defineConfig: (config: EventConfigInput) => {
5453
4937
  placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
5454
4938
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5455
4939
  hideLabel?: boolean | undefined;
5456
- defaultValue?: {
5457
- firstname: string;
5458
- surname: string;
5459
- } | undefined;
5460
- configuration?: {
5461
- maxLength?: number | undefined;
5462
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
5463
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
5464
- } | undefined;
4940
+ defaultValue?: boolean | undefined;
5465
4941
  } | {
5466
- type: "PHONE";
4942
+ type: "COUNTRY";
5467
4943
  id: string;
5468
4944
  label: import("./TranslationConfig").TranslationConfig;
5469
4945
  parent?: {
@@ -5489,93 +4965,15 @@ export declare const defineConfig: (config: EventConfigInput) => {
5489
4965
  hideLabel?: boolean | undefined;
5490
4966
  defaultValue?: string | undefined;
5491
4967
  } | {
5492
- type: "ID";
4968
+ type: "ADMINISTRATIVE_AREA";
5493
4969
  id: string;
5494
4970
  label: import("./TranslationConfig").TranslationConfig;
5495
- parent?: {
5496
- $$field: string;
5497
- } | undefined;
5498
- validation?: {
5499
- message: import("./TranslationConfig").TranslationConfig;
5500
- validator: import(".").JSONSchema;
5501
- }[] | undefined;
5502
- required?: boolean | undefined;
5503
- conditionals?: ({
5504
- type: "SHOW";
5505
- conditional: import(".").JSONSchema;
5506
- } | {
5507
- type: "ENABLE";
5508
- conditional: import(".").JSONSchema;
5509
- } | {
5510
- type: "DISPLAY_ON_REVIEW";
5511
- conditional: import(".").JSONSchema;
5512
- })[] | undefined;
5513
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
5514
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5515
- hideLabel?: boolean | undefined;
5516
- defaultValue?: string | undefined;
5517
- } | {
5518
- type: "CHECKBOX";
5519
- id: string;
5520
- label: import("./TranslationConfig").TranslationConfig;
5521
- parent?: {
5522
- $$field: string;
5523
- } | undefined;
5524
- validation?: {
5525
- message: import("./TranslationConfig").TranslationConfig;
5526
- validator: import(".").JSONSchema;
5527
- }[] | undefined;
5528
- required?: boolean | undefined;
5529
- conditionals?: ({
5530
- type: "SHOW";
5531
- conditional: import(".").JSONSchema;
5532
- } | {
5533
- type: "ENABLE";
5534
- conditional: import(".").JSONSchema;
5535
- } | {
5536
- type: "DISPLAY_ON_REVIEW";
5537
- conditional: import(".").JSONSchema;
5538
- })[] | undefined;
5539
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
5540
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5541
- hideLabel?: boolean | undefined;
5542
- defaultValue?: boolean | undefined;
5543
- } | {
5544
- type: "COUNTRY";
5545
- id: string;
5546
- label: import("./TranslationConfig").TranslationConfig;
5547
- parent?: {
5548
- $$field: string;
5549
- } | undefined;
5550
- validation?: {
5551
- message: import("./TranslationConfig").TranslationConfig;
5552
- validator: import(".").JSONSchema;
5553
- }[] | undefined;
5554
- required?: boolean | undefined;
5555
- conditionals?: ({
5556
- type: "SHOW";
5557
- conditional: import(".").JSONSchema;
5558
- } | {
5559
- type: "ENABLE";
5560
- conditional: import(".").JSONSchema;
5561
- } | {
5562
- type: "DISPLAY_ON_REVIEW";
5563
- conditional: import(".").JSONSchema;
5564
- })[] | undefined;
5565
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
5566
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5567
- hideLabel?: boolean | undefined;
5568
- defaultValue?: string | undefined;
5569
- } | {
5570
- type: "ADMINISTRATIVE_AREA";
5571
- id: string;
5572
- label: import("./TranslationConfig").TranslationConfig;
5573
- configuration: {
5574
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
5575
- partOf?: {
5576
- $declaration: string;
5577
- } | undefined;
5578
- };
4971
+ configuration: {
4972
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
4973
+ partOf?: {
4974
+ $declaration: string;
4975
+ } | undefined;
4976
+ };
5579
4977
  parent?: {
5580
4978
  $$field: string;
5581
4979
  } | undefined;
@@ -6254,92 +5652,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
6254
5652
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6255
5653
  hideLabel?: boolean | undefined;
6256
5654
  defaultValue?: string | undefined;
6257
- } | {
6258
- type: "NAME";
6259
- id: string;
6260
- label: import("./TranslationConfig").TranslationConfig;
6261
- parent?: {
6262
- $$field: string;
6263
- } | undefined;
6264
- validation?: {
6265
- message: import("./TranslationConfig").TranslationConfig;
6266
- validator: import(".").JSONSchema;
6267
- }[] | undefined;
6268
- required?: boolean | undefined;
6269
- conditionals?: ({
6270
- type: "SHOW";
6271
- conditional: import(".").JSONSchema;
6272
- } | {
6273
- type: "ENABLE";
6274
- conditional: import(".").JSONSchema;
6275
- } | {
6276
- type: "DISPLAY_ON_REVIEW";
6277
- conditional: import(".").JSONSchema;
6278
- })[] | undefined;
6279
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
6280
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6281
- hideLabel?: boolean | undefined;
6282
- defaultValue?: {
6283
- firstname: string;
6284
- surname: string;
6285
- } | undefined;
6286
- configuration?: {
6287
- maxLength?: number | undefined;
6288
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
6289
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
6290
- } | undefined;
6291
- } | {
6292
- type: "PHONE";
6293
- id: string;
6294
- label: import("./TranslationConfig").TranslationConfig;
6295
- parent?: {
6296
- $$field: string;
6297
- } | undefined;
6298
- validation?: {
6299
- message: import("./TranslationConfig").TranslationConfig;
6300
- validator: import(".").JSONSchema;
6301
- }[] | undefined;
6302
- required?: boolean | undefined;
6303
- conditionals?: ({
6304
- type: "SHOW";
6305
- conditional: import(".").JSONSchema;
6306
- } | {
6307
- type: "ENABLE";
6308
- conditional: import(".").JSONSchema;
6309
- } | {
6310
- type: "DISPLAY_ON_REVIEW";
6311
- conditional: import(".").JSONSchema;
6312
- })[] | undefined;
6313
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
6314
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6315
- hideLabel?: boolean | undefined;
6316
- defaultValue?: string | undefined;
6317
- } | {
6318
- type: "ID";
6319
- id: string;
6320
- label: import("./TranslationConfig").TranslationConfig;
6321
- parent?: {
6322
- $$field: string;
6323
- } | undefined;
6324
- validation?: {
6325
- message: import("./TranslationConfig").TranslationConfig;
6326
- validator: import(".").JSONSchema;
6327
- }[] | undefined;
6328
- required?: boolean | undefined;
6329
- conditionals?: ({
6330
- type: "SHOW";
6331
- conditional: import(".").JSONSchema;
6332
- } | {
6333
- type: "ENABLE";
6334
- conditional: import(".").JSONSchema;
6335
- } | {
6336
- type: "DISPLAY_ON_REVIEW";
6337
- conditional: import(".").JSONSchema;
6338
- })[] | undefined;
6339
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
6340
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6341
- hideLabel?: boolean | undefined;
6342
- defaultValue?: string | undefined;
6343
5655
  } | {
6344
5656
  type: "CHECKBOX";
6345
5657
  id: string;
@@ -7079,92 +6391,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
7079
6391
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7080
6392
  hideLabel?: boolean | undefined;
7081
6393
  defaultValue?: string | undefined;
7082
- } | {
7083
- type: "NAME";
7084
- id: string;
7085
- label: import("./TranslationConfig").TranslationConfig;
7086
- parent?: {
7087
- $$field: string;
7088
- } | undefined;
7089
- validation?: {
7090
- message: import("./TranslationConfig").TranslationConfig;
7091
- validator: import(".").JSONSchema;
7092
- }[] | undefined;
7093
- required?: boolean | undefined;
7094
- conditionals?: ({
7095
- type: "SHOW";
7096
- conditional: import(".").JSONSchema;
7097
- } | {
7098
- type: "ENABLE";
7099
- conditional: import(".").JSONSchema;
7100
- } | {
7101
- type: "DISPLAY_ON_REVIEW";
7102
- conditional: import(".").JSONSchema;
7103
- })[] | undefined;
7104
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7105
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7106
- hideLabel?: boolean | undefined;
7107
- defaultValue?: {
7108
- firstname: string;
7109
- surname: string;
7110
- } | undefined;
7111
- configuration?: {
7112
- maxLength?: number | undefined;
7113
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
7114
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
7115
- } | undefined;
7116
- } | {
7117
- type: "PHONE";
7118
- id: string;
7119
- label: import("./TranslationConfig").TranslationConfig;
7120
- parent?: {
7121
- $$field: string;
7122
- } | undefined;
7123
- validation?: {
7124
- message: import("./TranslationConfig").TranslationConfig;
7125
- validator: import(".").JSONSchema;
7126
- }[] | undefined;
7127
- required?: boolean | undefined;
7128
- conditionals?: ({
7129
- type: "SHOW";
7130
- conditional: import(".").JSONSchema;
7131
- } | {
7132
- type: "ENABLE";
7133
- conditional: import(".").JSONSchema;
7134
- } | {
7135
- type: "DISPLAY_ON_REVIEW";
7136
- conditional: import(".").JSONSchema;
7137
- })[] | undefined;
7138
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7139
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7140
- hideLabel?: boolean | undefined;
7141
- defaultValue?: string | undefined;
7142
- } | {
7143
- type: "ID";
7144
- id: string;
7145
- label: import("./TranslationConfig").TranslationConfig;
7146
- parent?: {
7147
- $$field: string;
7148
- } | undefined;
7149
- validation?: {
7150
- message: import("./TranslationConfig").TranslationConfig;
7151
- validator: import(".").JSONSchema;
7152
- }[] | undefined;
7153
- required?: boolean | undefined;
7154
- conditionals?: ({
7155
- type: "SHOW";
7156
- conditional: import(".").JSONSchema;
7157
- } | {
7158
- type: "ENABLE";
7159
- conditional: import(".").JSONSchema;
7160
- } | {
7161
- type: "DISPLAY_ON_REVIEW";
7162
- conditional: import(".").JSONSchema;
7163
- })[] | undefined;
7164
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7165
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7166
- hideLabel?: boolean | undefined;
7167
- defaultValue?: string | undefined;
7168
6394
  } | {
7169
6395
  type: "CHECKBOX";
7170
6396
  id: string;
@@ -7893,92 +7119,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
7893
7119
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7894
7120
  hideLabel?: boolean | undefined;
7895
7121
  defaultValue?: string | undefined;
7896
- } | {
7897
- type: "NAME";
7898
- id: string;
7899
- label: import("./TranslationConfig").TranslationConfig;
7900
- parent?: {
7901
- $$field: string;
7902
- } | undefined;
7903
- validation?: {
7904
- message: import("./TranslationConfig").TranslationConfig;
7905
- validator: import(".").JSONSchema;
7906
- }[] | undefined;
7907
- required?: boolean | undefined;
7908
- conditionals?: ({
7909
- type: "SHOW";
7910
- conditional: import(".").JSONSchema;
7911
- } | {
7912
- type: "ENABLE";
7913
- conditional: import(".").JSONSchema;
7914
- } | {
7915
- type: "DISPLAY_ON_REVIEW";
7916
- conditional: import(".").JSONSchema;
7917
- })[] | undefined;
7918
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7919
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7920
- hideLabel?: boolean | undefined;
7921
- defaultValue?: {
7922
- firstname: string;
7923
- surname: string;
7924
- } | undefined;
7925
- configuration?: {
7926
- maxLength?: number | undefined;
7927
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
7928
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
7929
- } | undefined;
7930
- } | {
7931
- type: "PHONE";
7932
- id: string;
7933
- label: import("./TranslationConfig").TranslationConfig;
7934
- parent?: {
7935
- $$field: string;
7936
- } | undefined;
7937
- validation?: {
7938
- message: import("./TranslationConfig").TranslationConfig;
7939
- validator: import(".").JSONSchema;
7940
- }[] | undefined;
7941
- required?: boolean | undefined;
7942
- conditionals?: ({
7943
- type: "SHOW";
7944
- conditional: import(".").JSONSchema;
7945
- } | {
7946
- type: "ENABLE";
7947
- conditional: import(".").JSONSchema;
7948
- } | {
7949
- type: "DISPLAY_ON_REVIEW";
7950
- conditional: import(".").JSONSchema;
7951
- })[] | undefined;
7952
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7953
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7954
- hideLabel?: boolean | undefined;
7955
- defaultValue?: string | undefined;
7956
- } | {
7957
- type: "ID";
7958
- id: string;
7959
- label: import("./TranslationConfig").TranslationConfig;
7960
- parent?: {
7961
- $$field: string;
7962
- } | undefined;
7963
- validation?: {
7964
- message: import("./TranslationConfig").TranslationConfig;
7965
- validator: import(".").JSONSchema;
7966
- }[] | undefined;
7967
- required?: boolean | undefined;
7968
- conditionals?: ({
7969
- type: "SHOW";
7970
- conditional: import(".").JSONSchema;
7971
- } | {
7972
- type: "ENABLE";
7973
- conditional: import(".").JSONSchema;
7974
- } | {
7975
- type: "DISPLAY_ON_REVIEW";
7976
- conditional: import(".").JSONSchema;
7977
- })[] | undefined;
7978
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7979
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7980
- hideLabel?: boolean | undefined;
7981
- defaultValue?: string | undefined;
7982
7122
  } | {
7983
7123
  type: "CHECKBOX";
7984
7124
  id: string;
@@ -8718,92 +7858,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
8718
7858
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8719
7859
  hideLabel?: boolean | undefined;
8720
7860
  defaultValue?: string | undefined;
8721
- } | {
8722
- type: "NAME";
8723
- id: string;
8724
- label: import("./TranslationConfig").TranslationConfig;
8725
- parent?: {
8726
- $$field: string;
8727
- } | undefined;
8728
- validation?: {
8729
- message: import("./TranslationConfig").TranslationConfig;
8730
- validator: import(".").JSONSchema;
8731
- }[] | undefined;
8732
- required?: boolean | undefined;
8733
- conditionals?: ({
8734
- type: "SHOW";
8735
- conditional: import(".").JSONSchema;
8736
- } | {
8737
- type: "ENABLE";
8738
- conditional: import(".").JSONSchema;
8739
- } | {
8740
- type: "DISPLAY_ON_REVIEW";
8741
- conditional: import(".").JSONSchema;
8742
- })[] | undefined;
8743
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
8744
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8745
- hideLabel?: boolean | undefined;
8746
- defaultValue?: {
8747
- firstname: string;
8748
- surname: string;
8749
- } | undefined;
8750
- configuration?: {
8751
- maxLength?: number | undefined;
8752
- prefix?: import("./TranslationConfig").TranslationConfig | undefined;
8753
- postfix?: import("./TranslationConfig").TranslationConfig | undefined;
8754
- } | undefined;
8755
- } | {
8756
- type: "PHONE";
8757
- id: string;
8758
- label: import("./TranslationConfig").TranslationConfig;
8759
- parent?: {
8760
- $$field: string;
8761
- } | undefined;
8762
- validation?: {
8763
- message: import("./TranslationConfig").TranslationConfig;
8764
- validator: import(".").JSONSchema;
8765
- }[] | undefined;
8766
- required?: boolean | undefined;
8767
- conditionals?: ({
8768
- type: "SHOW";
8769
- conditional: import(".").JSONSchema;
8770
- } | {
8771
- type: "ENABLE";
8772
- conditional: import(".").JSONSchema;
8773
- } | {
8774
- type: "DISPLAY_ON_REVIEW";
8775
- conditional: import(".").JSONSchema;
8776
- })[] | undefined;
8777
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
8778
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8779
- hideLabel?: boolean | undefined;
8780
- defaultValue?: string | undefined;
8781
- } | {
8782
- type: "ID";
8783
- id: string;
8784
- label: import("./TranslationConfig").TranslationConfig;
8785
- parent?: {
8786
- $$field: string;
8787
- } | undefined;
8788
- validation?: {
8789
- message: import("./TranslationConfig").TranslationConfig;
8790
- validator: import(".").JSONSchema;
8791
- }[] | undefined;
8792
- required?: boolean | undefined;
8793
- conditionals?: ({
8794
- type: "SHOW";
8795
- conditional: import(".").JSONSchema;
8796
- } | {
8797
- type: "ENABLE";
8798
- conditional: import(".").JSONSchema;
8799
- } | {
8800
- type: "DISPLAY_ON_REVIEW";
8801
- conditional: import(".").JSONSchema;
8802
- })[] | undefined;
8803
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
8804
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8805
- hideLabel?: boolean | undefined;
8806
- defaultValue?: string | undefined;
8807
7861
  } | {
8808
7862
  type: "CHECKBOX";
8809
7863
  id: string;