@opencrvs/toolkit 1.8.0-rc.feef45c → 1.8.0-rc.ff0a1b5

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.
@@ -908,6 +908,137 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
908
908
  defaultMessage: string;
909
909
  }>;
910
910
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
911
+ }, {
912
+ type: z.ZodLiteral<"DATE_RANGE">;
913
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
914
+ configuration: z.ZodOptional<z.ZodObject<{
915
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
916
+ id: string;
917
+ description: string;
918
+ defaultMessage: string;
919
+ }>>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ notice?: TranslationConfig | undefined;
922
+ }, {
923
+ notice?: {
924
+ id: string;
925
+ description: string;
926
+ defaultMessage: string;
927
+ } | undefined;
928
+ }>>;
929
+ }>, "strip", z.ZodTypeAny, {
930
+ type: "DATE_RANGE";
931
+ id: string;
932
+ label: TranslationConfig;
933
+ parent?: {
934
+ _fieldId?: string | undefined;
935
+ } | undefined;
936
+ validation?: {
937
+ message: TranslationConfig;
938
+ validator: import(".").JSONSchema;
939
+ }[] | undefined;
940
+ required?: boolean | undefined;
941
+ defaultValue?: string | [string, string] | undefined;
942
+ conditionals?: ({
943
+ type: "SHOW";
944
+ conditional: import(".").JSONSchema;
945
+ } | {
946
+ type: "ENABLE";
947
+ conditional: import(".").JSONSchema;
948
+ } | {
949
+ type: "DISPLAY_ON_REVIEW";
950
+ conditional: import(".").JSONSchema;
951
+ })[] | undefined;
952
+ placeholder?: TranslationConfig | undefined;
953
+ hideLabel?: boolean | undefined;
954
+ configuration?: {
955
+ notice?: TranslationConfig | undefined;
956
+ } | undefined;
957
+ }, {
958
+ type: "DATE_RANGE";
959
+ id: string;
960
+ label: {
961
+ id: string;
962
+ description: string;
963
+ defaultMessage: string;
964
+ };
965
+ parent?: {
966
+ _fieldId?: string | undefined;
967
+ } | undefined;
968
+ validation?: {
969
+ message: {
970
+ id: string;
971
+ description: string;
972
+ defaultMessage: string;
973
+ };
974
+ validator: import(".").JSONSchema;
975
+ }[] | undefined;
976
+ required?: boolean | undefined;
977
+ defaultValue?: string | [string, string] | undefined;
978
+ conditionals?: ({
979
+ type: "SHOW";
980
+ conditional: import(".").JSONSchema;
981
+ } | {
982
+ type: "ENABLE";
983
+ conditional: import(".").JSONSchema;
984
+ } | {
985
+ type: "DISPLAY_ON_REVIEW";
986
+ conditional: import(".").JSONSchema;
987
+ })[] | undefined;
988
+ placeholder?: {
989
+ id: string;
990
+ description: string;
991
+ defaultMessage: string;
992
+ } | undefined;
993
+ hideLabel?: boolean | undefined;
994
+ configuration?: {
995
+ notice?: {
996
+ id: string;
997
+ description: string;
998
+ defaultMessage: string;
999
+ } | undefined;
1000
+ } | undefined;
1001
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1002
+ id: z.ZodString;
1003
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1004
+ parent: z.ZodOptional<z.ZodObject<{
1005
+ _fieldId: z.ZodOptional<z.ZodString>;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ _fieldId?: string | undefined;
1008
+ }, {
1009
+ _fieldId?: string | undefined;
1010
+ }>>;
1011
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1012
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1013
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1014
+ id: string;
1015
+ description: string;
1016
+ defaultMessage: string;
1017
+ }>>;
1018
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1019
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1020
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1021
+ id: string;
1022
+ description: string;
1023
+ defaultMessage: string;
1024
+ }>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ message: TranslationConfig;
1027
+ validator: import(".").JSONSchema;
1028
+ }, {
1029
+ message: {
1030
+ id: string;
1031
+ description: string;
1032
+ defaultMessage: string;
1033
+ };
1034
+ validator: import(".").JSONSchema;
1035
+ }>, "many">>>;
1036
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1037
+ id: string;
1038
+ description: string;
1039
+ defaultMessage: string;
1040
+ }>;
1041
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
911
1042
  }, {
912
1043
  type: z.ZodLiteral<"PARAGRAPH">;
913
1044
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -3302,6 +3433,34 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
3302
3433
  configuration?: {
3303
3434
  notice?: TranslationConfig | undefined;
3304
3435
  } | undefined;
3436
+ } | {
3437
+ type: "DATE_RANGE";
3438
+ id: string;
3439
+ label: TranslationConfig;
3440
+ parent?: {
3441
+ _fieldId?: string | undefined;
3442
+ } | undefined;
3443
+ validation?: {
3444
+ message: TranslationConfig;
3445
+ validator: import(".").JSONSchema;
3446
+ }[] | undefined;
3447
+ required?: boolean | undefined;
3448
+ defaultValue?: string | [string, string] | undefined;
3449
+ conditionals?: ({
3450
+ type: "SHOW";
3451
+ conditional: import(".").JSONSchema;
3452
+ } | {
3453
+ type: "ENABLE";
3454
+ conditional: import(".").JSONSchema;
3455
+ } | {
3456
+ type: "DISPLAY_ON_REVIEW";
3457
+ conditional: import(".").JSONSchema;
3458
+ })[] | undefined;
3459
+ placeholder?: TranslationConfig | undefined;
3460
+ hideLabel?: boolean | undefined;
3461
+ configuration?: {
3462
+ notice?: TranslationConfig | undefined;
3463
+ } | undefined;
3305
3464
  } | {
3306
3465
  type: "PARAGRAPH";
3307
3466
  id: string;
@@ -4090,6 +4249,50 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
4090
4249
  defaultMessage: string;
4091
4250
  } | undefined;
4092
4251
  } | undefined;
4252
+ } | {
4253
+ type: "DATE_RANGE";
4254
+ id: string;
4255
+ label: {
4256
+ id: string;
4257
+ description: string;
4258
+ defaultMessage: string;
4259
+ };
4260
+ parent?: {
4261
+ _fieldId?: string | undefined;
4262
+ } | undefined;
4263
+ validation?: {
4264
+ message: {
4265
+ id: string;
4266
+ description: string;
4267
+ defaultMessage: string;
4268
+ };
4269
+ validator: import(".").JSONSchema;
4270
+ }[] | undefined;
4271
+ required?: boolean | undefined;
4272
+ defaultValue?: string | [string, string] | undefined;
4273
+ conditionals?: ({
4274
+ type: "SHOW";
4275
+ conditional: import(".").JSONSchema;
4276
+ } | {
4277
+ type: "ENABLE";
4278
+ conditional: import(".").JSONSchema;
4279
+ } | {
4280
+ type: "DISPLAY_ON_REVIEW";
4281
+ conditional: import(".").JSONSchema;
4282
+ })[] | undefined;
4283
+ placeholder?: {
4284
+ id: string;
4285
+ description: string;
4286
+ defaultMessage: string;
4287
+ } | undefined;
4288
+ hideLabel?: boolean | undefined;
4289
+ configuration?: {
4290
+ notice?: {
4291
+ id: string;
4292
+ description: string;
4293
+ defaultMessage: string;
4294
+ } | undefined;
4295
+ } | undefined;
4093
4296
  } | {
4094
4297
  type: "PARAGRAPH";
4095
4298
  id: string;
@@ -5784,6 +5987,137 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
5784
5987
  defaultMessage: string;
5785
5988
  }>;
5786
5989
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5990
+ }, {
5991
+ type: z.ZodLiteral<"DATE_RANGE">;
5992
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
5993
+ configuration: z.ZodOptional<z.ZodObject<{
5994
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5995
+ id: string;
5996
+ description: string;
5997
+ defaultMessage: string;
5998
+ }>>;
5999
+ }, "strip", z.ZodTypeAny, {
6000
+ notice?: TranslationConfig | undefined;
6001
+ }, {
6002
+ notice?: {
6003
+ id: string;
6004
+ description: string;
6005
+ defaultMessage: string;
6006
+ } | undefined;
6007
+ }>>;
6008
+ }>, "strip", z.ZodTypeAny, {
6009
+ type: "DATE_RANGE";
6010
+ id: string;
6011
+ label: TranslationConfig;
6012
+ parent?: {
6013
+ _fieldId?: string | undefined;
6014
+ } | undefined;
6015
+ validation?: {
6016
+ message: TranslationConfig;
6017
+ validator: import(".").JSONSchema;
6018
+ }[] | undefined;
6019
+ required?: boolean | undefined;
6020
+ defaultValue?: string | [string, string] | undefined;
6021
+ conditionals?: ({
6022
+ type: "SHOW";
6023
+ conditional: import(".").JSONSchema;
6024
+ } | {
6025
+ type: "ENABLE";
6026
+ conditional: import(".").JSONSchema;
6027
+ } | {
6028
+ type: "DISPLAY_ON_REVIEW";
6029
+ conditional: import(".").JSONSchema;
6030
+ })[] | undefined;
6031
+ placeholder?: TranslationConfig | undefined;
6032
+ hideLabel?: boolean | undefined;
6033
+ configuration?: {
6034
+ notice?: TranslationConfig | undefined;
6035
+ } | undefined;
6036
+ }, {
6037
+ type: "DATE_RANGE";
6038
+ id: string;
6039
+ label: {
6040
+ id: string;
6041
+ description: string;
6042
+ defaultMessage: string;
6043
+ };
6044
+ parent?: {
6045
+ _fieldId?: string | undefined;
6046
+ } | undefined;
6047
+ validation?: {
6048
+ message: {
6049
+ id: string;
6050
+ description: string;
6051
+ defaultMessage: string;
6052
+ };
6053
+ validator: import(".").JSONSchema;
6054
+ }[] | undefined;
6055
+ required?: boolean | undefined;
6056
+ defaultValue?: string | [string, string] | undefined;
6057
+ conditionals?: ({
6058
+ type: "SHOW";
6059
+ conditional: import(".").JSONSchema;
6060
+ } | {
6061
+ type: "ENABLE";
6062
+ conditional: import(".").JSONSchema;
6063
+ } | {
6064
+ type: "DISPLAY_ON_REVIEW";
6065
+ conditional: import(".").JSONSchema;
6066
+ })[] | undefined;
6067
+ placeholder?: {
6068
+ id: string;
6069
+ description: string;
6070
+ defaultMessage: string;
6071
+ } | undefined;
6072
+ hideLabel?: boolean | undefined;
6073
+ configuration?: {
6074
+ notice?: {
6075
+ id: string;
6076
+ description: string;
6077
+ defaultMessage: string;
6078
+ } | undefined;
6079
+ } | undefined;
6080
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6081
+ id: z.ZodString;
6082
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6083
+ parent: z.ZodOptional<z.ZodObject<{
6084
+ _fieldId: z.ZodOptional<z.ZodString>;
6085
+ }, "strip", z.ZodTypeAny, {
6086
+ _fieldId?: string | undefined;
6087
+ }, {
6088
+ _fieldId?: string | undefined;
6089
+ }>>;
6090
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
6091
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6092
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6093
+ id: string;
6094
+ description: string;
6095
+ defaultMessage: string;
6096
+ }>>;
6097
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
6098
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
6099
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6100
+ id: string;
6101
+ description: string;
6102
+ defaultMessage: string;
6103
+ }>;
6104
+ }, "strip", z.ZodTypeAny, {
6105
+ message: TranslationConfig;
6106
+ validator: import(".").JSONSchema;
6107
+ }, {
6108
+ message: {
6109
+ id: string;
6110
+ description: string;
6111
+ defaultMessage: string;
6112
+ };
6113
+ validator: import(".").JSONSchema;
6114
+ }>, "many">>>;
6115
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6116
+ id: string;
6117
+ description: string;
6118
+ defaultMessage: string;
6119
+ }>;
6120
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5787
6121
  }, {
5788
6122
  type: z.ZodLiteral<"PARAGRAPH">;
5789
6123
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -8304,6 +8638,34 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
8304
8638
  configuration?: {
8305
8639
  notice?: TranslationConfig | undefined;
8306
8640
  } | undefined;
8641
+ } | {
8642
+ type: "DATE_RANGE";
8643
+ id: string;
8644
+ label: TranslationConfig;
8645
+ parent?: {
8646
+ _fieldId?: string | undefined;
8647
+ } | undefined;
8648
+ validation?: {
8649
+ message: TranslationConfig;
8650
+ validator: import(".").JSONSchema;
8651
+ }[] | undefined;
8652
+ required?: boolean | undefined;
8653
+ defaultValue?: string | [string, string] | undefined;
8654
+ conditionals?: ({
8655
+ type: "SHOW";
8656
+ conditional: import(".").JSONSchema;
8657
+ } | {
8658
+ type: "ENABLE";
8659
+ conditional: import(".").JSONSchema;
8660
+ } | {
8661
+ type: "DISPLAY_ON_REVIEW";
8662
+ conditional: import(".").JSONSchema;
8663
+ })[] | undefined;
8664
+ placeholder?: TranslationConfig | undefined;
8665
+ hideLabel?: boolean | undefined;
8666
+ configuration?: {
8667
+ notice?: TranslationConfig | undefined;
8668
+ } | undefined;
8307
8669
  } | {
8308
8670
  type: "PARAGRAPH";
8309
8671
  id: string;
@@ -9121,6 +9483,50 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9121
9483
  defaultMessage: string;
9122
9484
  } | undefined;
9123
9485
  } | undefined;
9486
+ } | {
9487
+ type: "DATE_RANGE";
9488
+ id: string;
9489
+ label: {
9490
+ id: string;
9491
+ description: string;
9492
+ defaultMessage: string;
9493
+ };
9494
+ parent?: {
9495
+ _fieldId?: string | undefined;
9496
+ } | undefined;
9497
+ validation?: {
9498
+ message: {
9499
+ id: string;
9500
+ description: string;
9501
+ defaultMessage: string;
9502
+ };
9503
+ validator: import(".").JSONSchema;
9504
+ }[] | undefined;
9505
+ required?: boolean | undefined;
9506
+ defaultValue?: string | [string, string] | undefined;
9507
+ conditionals?: ({
9508
+ type: "SHOW";
9509
+ conditional: import(".").JSONSchema;
9510
+ } | {
9511
+ type: "ENABLE";
9512
+ conditional: import(".").JSONSchema;
9513
+ } | {
9514
+ type: "DISPLAY_ON_REVIEW";
9515
+ conditional: import(".").JSONSchema;
9516
+ })[] | undefined;
9517
+ placeholder?: {
9518
+ id: string;
9519
+ description: string;
9520
+ defaultMessage: string;
9521
+ } | undefined;
9522
+ hideLabel?: boolean | undefined;
9523
+ configuration?: {
9524
+ notice?: {
9525
+ id: string;
9526
+ description: string;
9527
+ defaultMessage: string;
9528
+ } | undefined;
9529
+ } | undefined;
9124
9530
  } | {
9125
9531
  type: "PARAGRAPH";
9126
9532
  id: string;
@@ -82,12 +82,18 @@ export declare const SummaryConfig: z.ZodObject<{
82
82
  }>, "many">>>;
83
83
  }, {
84
84
  fieldId: z.ZodString;
85
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
86
+ id: string;
87
+ description: string;
88
+ defaultMessage: string;
89
+ }>>;
85
90
  }>, "strip", z.ZodTypeAny, {
86
91
  fieldId: string;
87
92
  conditionals?: {
88
93
  type: "SHOW";
89
94
  conditional: import(".").JSONSchema;
90
95
  }[] | undefined;
96
+ label?: TranslationConfig | undefined;
91
97
  emptyValueMessage?: TranslationConfig | undefined;
92
98
  }, {
93
99
  fieldId: string;
@@ -95,6 +101,11 @@ export declare const SummaryConfig: z.ZodObject<{
95
101
  type: "SHOW";
96
102
  conditional: import(".").JSONSchema;
97
103
  }[] | undefined;
104
+ label?: {
105
+ id: string;
106
+ description: string;
107
+ defaultMessage: string;
108
+ } | undefined;
98
109
  emptyValueMessage?: {
99
110
  id: string;
100
111
  description: string;
@@ -108,6 +119,7 @@ export declare const SummaryConfig: z.ZodObject<{
108
119
  type: "SHOW";
109
120
  conditional: import(".").JSONSchema;
110
121
  }[] | undefined;
122
+ label?: TranslationConfig | undefined;
111
123
  emptyValueMessage?: TranslationConfig | undefined;
112
124
  } | {
113
125
  id: string;
@@ -126,6 +138,11 @@ export declare const SummaryConfig: z.ZodObject<{
126
138
  type: "SHOW";
127
139
  conditional: import(".").JSONSchema;
128
140
  }[] | undefined;
141
+ label?: {
142
+ id: string;
143
+ description: string;
144
+ defaultMessage: string;
145
+ } | undefined;
129
146
  emptyValueMessage?: {
130
147
  id: string;
131
148
  description: string;