@opencrvs/toolkit 1.8.1-rc.38ac682 → 1.8.1-rc.45a3ec4
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.
- package/dist/commons/events/ActionConfig.d.ts +2652 -6654
- package/dist/commons/events/AdvancedSearchConfig.d.ts +34 -34
- package/dist/commons/events/EventConfig.d.ts +959 -2748
- package/dist/commons/events/EventIndex.d.ts +122 -0
- package/dist/commons/events/FieldConfig.d.ts +2 -302
- package/dist/commons/events/FieldType.d.ts +1 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +2 -9
- package/dist/commons/events/FormConfig.d.ts +1688 -3566
- package/dist/commons/events/PageConfig.d.ts +0 -462
- package/dist/commons/events/WorkqueueConfig.d.ts +89 -0
- package/dist/commons/events/defineConfig.d.ts +2 -281
- package/dist/commons/events/event.d.ts +8 -0
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/utils.d.ts +2 -498
- package/dist/events/index.js +21 -27
- package/package.json +1 -1
@@ -725,6 +725,25 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
725
725
|
type: "timePeriod";
|
726
726
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
727
727
|
}>]>>>;
|
728
|
+
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
729
|
+
type: z.ZodLiteral<"within">;
|
730
|
+
location: z.ZodString;
|
731
|
+
}, "strip", z.ZodTypeAny, {
|
732
|
+
type: "within";
|
733
|
+
location: string;
|
734
|
+
}, {
|
735
|
+
type: "within";
|
736
|
+
location: string;
|
737
|
+
}>, z.ZodObject<{
|
738
|
+
type: z.ZodLiteral<"exact">;
|
739
|
+
term: z.ZodString;
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
741
|
+
type: "exact";
|
742
|
+
term: string;
|
743
|
+
}, {
|
744
|
+
type: "exact";
|
745
|
+
term: string;
|
746
|
+
}>]>>>;
|
728
747
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
729
748
|
type: z.ZodLiteral<"within">;
|
730
749
|
location: z.ZodString;
|
@@ -945,6 +964,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
945
964
|
type: "timePeriod";
|
946
965
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
947
966
|
} | undefined;
|
967
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
968
|
+
type: "exact";
|
969
|
+
term: string;
|
970
|
+
} | {
|
971
|
+
type: "within";
|
972
|
+
location: string;
|
973
|
+
} | undefined;
|
948
974
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
949
975
|
type: "exact";
|
950
976
|
term: string;
|
@@ -1038,6 +1064,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1038
1064
|
type: "timePeriod";
|
1039
1065
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1040
1066
|
} | undefined;
|
1067
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1068
|
+
type: "exact";
|
1069
|
+
term: string;
|
1070
|
+
} | {
|
1071
|
+
type: "within";
|
1072
|
+
location: string;
|
1073
|
+
} | undefined;
|
1041
1074
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1042
1075
|
type: "exact";
|
1043
1076
|
term: string;
|
@@ -1131,6 +1164,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1131
1164
|
type: "timePeriod";
|
1132
1165
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1133
1166
|
} | undefined;
|
1167
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1168
|
+
type: "exact";
|
1169
|
+
term: string;
|
1170
|
+
} | {
|
1171
|
+
type: "within";
|
1172
|
+
location: string;
|
1173
|
+
} | undefined;
|
1134
1174
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1135
1175
|
type: "exact";
|
1136
1176
|
term: string;
|
@@ -1224,6 +1264,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1224
1264
|
type: "timePeriod";
|
1225
1265
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1226
1266
|
} | undefined;
|
1267
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1268
|
+
type: "exact";
|
1269
|
+
term: string;
|
1270
|
+
} | {
|
1271
|
+
type: "within";
|
1272
|
+
location: string;
|
1273
|
+
} | undefined;
|
1227
1274
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1228
1275
|
type: "exact";
|
1229
1276
|
term: string;
|
@@ -1359,6 +1406,25 @@ export declare const QueryType: z.ZodObject<{
|
|
1359
1406
|
type: "timePeriod";
|
1360
1407
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1361
1408
|
}>]>>>;
|
1409
|
+
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1410
|
+
type: z.ZodLiteral<"within">;
|
1411
|
+
location: z.ZodString;
|
1412
|
+
}, "strip", z.ZodTypeAny, {
|
1413
|
+
type: "within";
|
1414
|
+
location: string;
|
1415
|
+
}, {
|
1416
|
+
type: "within";
|
1417
|
+
location: string;
|
1418
|
+
}>, z.ZodObject<{
|
1419
|
+
type: z.ZodLiteral<"exact">;
|
1420
|
+
term: z.ZodString;
|
1421
|
+
}, "strip", z.ZodTypeAny, {
|
1422
|
+
type: "exact";
|
1423
|
+
term: string;
|
1424
|
+
}, {
|
1425
|
+
type: "exact";
|
1426
|
+
term: string;
|
1427
|
+
}>]>>>;
|
1362
1428
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1363
1429
|
type: z.ZodLiteral<"within">;
|
1364
1430
|
location: z.ZodString;
|
@@ -1579,6 +1645,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1579
1645
|
type: "timePeriod";
|
1580
1646
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1581
1647
|
} | undefined;
|
1648
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1649
|
+
type: "exact";
|
1650
|
+
term: string;
|
1651
|
+
} | {
|
1652
|
+
type: "within";
|
1653
|
+
location: string;
|
1654
|
+
} | undefined;
|
1582
1655
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1583
1656
|
type: "exact";
|
1584
1657
|
term: string;
|
@@ -1672,6 +1745,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1672
1745
|
type: "timePeriod";
|
1673
1746
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1674
1747
|
} | undefined;
|
1748
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1749
|
+
type: "exact";
|
1750
|
+
term: string;
|
1751
|
+
} | {
|
1752
|
+
type: "within";
|
1753
|
+
location: string;
|
1754
|
+
} | undefined;
|
1675
1755
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1676
1756
|
type: "exact";
|
1677
1757
|
term: string;
|
@@ -1765,6 +1845,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1765
1845
|
type: "timePeriod";
|
1766
1846
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1767
1847
|
} | undefined;
|
1848
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1849
|
+
type: "exact";
|
1850
|
+
term: string;
|
1851
|
+
} | {
|
1852
|
+
type: "within";
|
1853
|
+
location: string;
|
1854
|
+
} | undefined;
|
1768
1855
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1769
1856
|
type: "exact";
|
1770
1857
|
term: string;
|
@@ -1858,6 +1945,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1858
1945
|
type: "timePeriod";
|
1859
1946
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1860
1947
|
} | undefined;
|
1948
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1949
|
+
type: "exact";
|
1950
|
+
term: string;
|
1951
|
+
} | {
|
1952
|
+
type: "within";
|
1953
|
+
location: string;
|
1954
|
+
} | undefined;
|
1861
1955
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1862
1956
|
type: "exact";
|
1863
1957
|
term: string;
|
@@ -1951,6 +2045,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1951
2045
|
type: "timePeriod";
|
1952
2046
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1953
2047
|
} | undefined;
|
2048
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2049
|
+
type: "exact";
|
2050
|
+
term: string;
|
2051
|
+
} | {
|
2052
|
+
type: "within";
|
2053
|
+
location: string;
|
2054
|
+
} | undefined;
|
1954
2055
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1955
2056
|
type: "exact";
|
1956
2057
|
term: string;
|
@@ -2044,6 +2145,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2044
2145
|
type: "timePeriod";
|
2045
2146
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2046
2147
|
} | undefined;
|
2148
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2149
|
+
type: "exact";
|
2150
|
+
term: string;
|
2151
|
+
} | {
|
2152
|
+
type: "within";
|
2153
|
+
location: string;
|
2154
|
+
} | undefined;
|
2047
2155
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2048
2156
|
type: "exact";
|
2049
2157
|
term: string;
|
@@ -2140,6 +2248,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2140
2248
|
type: "timePeriod";
|
2141
2249
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2142
2250
|
} | undefined;
|
2251
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2252
|
+
type: "exact";
|
2253
|
+
term: string;
|
2254
|
+
} | {
|
2255
|
+
type: "within";
|
2256
|
+
location: string;
|
2257
|
+
} | undefined;
|
2143
2258
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2144
2259
|
type: "exact";
|
2145
2260
|
term: string;
|
@@ -2233,6 +2348,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2233
2348
|
type: "timePeriod";
|
2234
2349
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2235
2350
|
} | undefined;
|
2351
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2352
|
+
type: "exact";
|
2353
|
+
term: string;
|
2354
|
+
} | {
|
2355
|
+
type: "within";
|
2356
|
+
location: string;
|
2357
|
+
} | undefined;
|
2236
2358
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2237
2359
|
type: "exact";
|
2238
2360
|
term: string;
|
@@ -4724,164 +4724,13 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
4724
4724
|
uncorrectable?: boolean | undefined;
|
4725
4725
|
}>;
|
4726
4726
|
export type DataField = z.infer<typeof DataField>;
|
4727
|
-
declare const PrintButton: z.ZodObject<z.objectUtil.extendShape<{
|
4728
|
-
id: z.ZodString;
|
4729
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4730
|
-
id: string;
|
4731
|
-
description: string;
|
4732
|
-
defaultMessage: string;
|
4733
|
-
}>;
|
4734
|
-
parent: z.ZodOptional<z.ZodObject<{
|
4735
|
-
$$field: z.ZodString;
|
4736
|
-
}, "strip", z.ZodTypeAny, {
|
4737
|
-
$$field: string;
|
4738
|
-
}, {
|
4739
|
-
$$field: string;
|
4740
|
-
}>>;
|
4741
|
-
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4742
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
4743
|
-
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4744
|
-
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4745
|
-
id: string;
|
4746
|
-
description: string;
|
4747
|
-
defaultMessage: string;
|
4748
|
-
}>>;
|
4749
|
-
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
4750
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
4751
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4752
|
-
id: string;
|
4753
|
-
description: string;
|
4754
|
-
defaultMessage: string;
|
4755
|
-
}>;
|
4756
|
-
}, "strip", z.ZodTypeAny, {
|
4757
|
-
message: TranslationConfig;
|
4758
|
-
validator: import(".").JSONSchema;
|
4759
|
-
}, {
|
4760
|
-
message: {
|
4761
|
-
id: string;
|
4762
|
-
description: string;
|
4763
|
-
defaultMessage: string;
|
4764
|
-
};
|
4765
|
-
validator: import(".").JSONSchema;
|
4766
|
-
}>, "many">>>;
|
4767
|
-
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4768
|
-
id: string;
|
4769
|
-
description: string;
|
4770
|
-
defaultMessage: string;
|
4771
|
-
}>>;
|
4772
|
-
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4773
|
-
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4774
|
-
}, {
|
4775
|
-
type: z.ZodLiteral<"PRINT_BUTTON">;
|
4776
|
-
configuration: z.ZodObject<{
|
4777
|
-
template: z.ZodString;
|
4778
|
-
buttonLabel: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4779
|
-
id: string;
|
4780
|
-
description: string;
|
4781
|
-
defaultMessage: string;
|
4782
|
-
}>>;
|
4783
|
-
}, "strip", z.ZodTypeAny, {
|
4784
|
-
template: string;
|
4785
|
-
buttonLabel?: TranslationConfig | undefined;
|
4786
|
-
}, {
|
4787
|
-
template: string;
|
4788
|
-
buttonLabel?: {
|
4789
|
-
id: string;
|
4790
|
-
description: string;
|
4791
|
-
defaultMessage: string;
|
4792
|
-
} | undefined;
|
4793
|
-
}>;
|
4794
|
-
}>, "strip", z.ZodTypeAny, {
|
4795
|
-
type: "PRINT_BUTTON";
|
4796
|
-
id: string;
|
4797
|
-
label: TranslationConfig;
|
4798
|
-
configuration: {
|
4799
|
-
template: string;
|
4800
|
-
buttonLabel?: TranslationConfig | undefined;
|
4801
|
-
};
|
4802
|
-
parent?: {
|
4803
|
-
$$field: string;
|
4804
|
-
} | undefined;
|
4805
|
-
validation?: {
|
4806
|
-
message: TranslationConfig;
|
4807
|
-
validator: import(".").JSONSchema;
|
4808
|
-
}[] | undefined;
|
4809
|
-
required?: boolean | undefined;
|
4810
|
-
conditionals?: ({
|
4811
|
-
type: "SHOW";
|
4812
|
-
conditional: import(".").JSONSchema;
|
4813
|
-
} | {
|
4814
|
-
type: "ENABLE";
|
4815
|
-
conditional: import(".").JSONSchema;
|
4816
|
-
} | {
|
4817
|
-
type: "DISPLAY_ON_REVIEW";
|
4818
|
-
conditional: import(".").JSONSchema;
|
4819
|
-
})[] | undefined;
|
4820
|
-
secured?: boolean | undefined;
|
4821
|
-
placeholder?: TranslationConfig | undefined;
|
4822
|
-
helperText?: TranslationConfig | undefined;
|
4823
|
-
hideLabel?: boolean | undefined;
|
4824
|
-
uncorrectable?: boolean | undefined;
|
4825
|
-
}, {
|
4826
|
-
type: "PRINT_BUTTON";
|
4827
|
-
id: string;
|
4828
|
-
label: {
|
4829
|
-
id: string;
|
4830
|
-
description: string;
|
4831
|
-
defaultMessage: string;
|
4832
|
-
};
|
4833
|
-
configuration: {
|
4834
|
-
template: string;
|
4835
|
-
buttonLabel?: {
|
4836
|
-
id: string;
|
4837
|
-
description: string;
|
4838
|
-
defaultMessage: string;
|
4839
|
-
} | undefined;
|
4840
|
-
};
|
4841
|
-
parent?: {
|
4842
|
-
$$field: string;
|
4843
|
-
} | undefined;
|
4844
|
-
validation?: {
|
4845
|
-
message: {
|
4846
|
-
id: string;
|
4847
|
-
description: string;
|
4848
|
-
defaultMessage: string;
|
4849
|
-
};
|
4850
|
-
validator: import(".").JSONSchema;
|
4851
|
-
}[] | undefined;
|
4852
|
-
required?: boolean | undefined;
|
4853
|
-
conditionals?: ({
|
4854
|
-
type: "SHOW";
|
4855
|
-
conditional: import(".").JSONSchema;
|
4856
|
-
} | {
|
4857
|
-
type: "ENABLE";
|
4858
|
-
conditional: import(".").JSONSchema;
|
4859
|
-
} | {
|
4860
|
-
type: "DISPLAY_ON_REVIEW";
|
4861
|
-
conditional: import(".").JSONSchema;
|
4862
|
-
})[] | undefined;
|
4863
|
-
secured?: boolean | undefined;
|
4864
|
-
placeholder?: {
|
4865
|
-
id: string;
|
4866
|
-
description: string;
|
4867
|
-
defaultMessage: string;
|
4868
|
-
} | undefined;
|
4869
|
-
helperText?: {
|
4870
|
-
id: string;
|
4871
|
-
description: string;
|
4872
|
-
defaultMessage: string;
|
4873
|
-
} | undefined;
|
4874
|
-
hideLabel?: boolean | undefined;
|
4875
|
-
uncorrectable?: boolean | undefined;
|
4876
|
-
}>;
|
4877
|
-
export type PrintButton = z.infer<typeof PrintButton>;
|
4878
4727
|
/** @knipignore */
|
4879
|
-
export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField
|
4728
|
+
export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
|
4880
4729
|
/** @knipignore */
|
4881
4730
|
/**
|
4882
4731
|
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
4883
4732
|
*/
|
4884
|
-
export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof TimeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField
|
4733
|
+
export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof TimeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
|
4885
4734
|
export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
4886
4735
|
id: z.ZodString;
|
4887
4736
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
@@ -9290,155 +9139,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
9290
9139
|
} | undefined;
|
9291
9140
|
hideLabel?: boolean | undefined;
|
9292
9141
|
uncorrectable?: boolean | undefined;
|
9293
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
9294
|
-
id: z.ZodString;
|
9295
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
9296
|
-
id: string;
|
9297
|
-
description: string;
|
9298
|
-
defaultMessage: string;
|
9299
|
-
}>;
|
9300
|
-
parent: z.ZodOptional<z.ZodObject<{
|
9301
|
-
$$field: z.ZodString;
|
9302
|
-
}, "strip", z.ZodTypeAny, {
|
9303
|
-
$$field: string;
|
9304
|
-
}, {
|
9305
|
-
$$field: string;
|
9306
|
-
}>>;
|
9307
|
-
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
9308
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
9309
|
-
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
9310
|
-
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
9311
|
-
id: string;
|
9312
|
-
description: string;
|
9313
|
-
defaultMessage: string;
|
9314
|
-
}>>;
|
9315
|
-
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
9316
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
9317
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
9318
|
-
id: string;
|
9319
|
-
description: string;
|
9320
|
-
defaultMessage: string;
|
9321
|
-
}>;
|
9322
|
-
}, "strip", z.ZodTypeAny, {
|
9323
|
-
message: TranslationConfig;
|
9324
|
-
validator: import(".").JSONSchema;
|
9325
|
-
}, {
|
9326
|
-
message: {
|
9327
|
-
id: string;
|
9328
|
-
description: string;
|
9329
|
-
defaultMessage: string;
|
9330
|
-
};
|
9331
|
-
validator: import(".").JSONSchema;
|
9332
|
-
}>, "many">>>;
|
9333
|
-
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
9334
|
-
id: string;
|
9335
|
-
description: string;
|
9336
|
-
defaultMessage: string;
|
9337
|
-
}>>;
|
9338
|
-
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
9339
|
-
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
9340
|
-
}, {
|
9341
|
-
type: z.ZodLiteral<"PRINT_BUTTON">;
|
9342
|
-
configuration: z.ZodObject<{
|
9343
|
-
template: z.ZodString;
|
9344
|
-
buttonLabel: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
9345
|
-
id: string;
|
9346
|
-
description: string;
|
9347
|
-
defaultMessage: string;
|
9348
|
-
}>>;
|
9349
|
-
}, "strip", z.ZodTypeAny, {
|
9350
|
-
template: string;
|
9351
|
-
buttonLabel?: TranslationConfig | undefined;
|
9352
|
-
}, {
|
9353
|
-
template: string;
|
9354
|
-
buttonLabel?: {
|
9355
|
-
id: string;
|
9356
|
-
description: string;
|
9357
|
-
defaultMessage: string;
|
9358
|
-
} | undefined;
|
9359
|
-
}>;
|
9360
|
-
}>, "strip", z.ZodTypeAny, {
|
9361
|
-
type: "PRINT_BUTTON";
|
9362
|
-
id: string;
|
9363
|
-
label: TranslationConfig;
|
9364
|
-
configuration: {
|
9365
|
-
template: string;
|
9366
|
-
buttonLabel?: TranslationConfig | undefined;
|
9367
|
-
};
|
9368
|
-
parent?: {
|
9369
|
-
$$field: string;
|
9370
|
-
} | undefined;
|
9371
|
-
validation?: {
|
9372
|
-
message: TranslationConfig;
|
9373
|
-
validator: import(".").JSONSchema;
|
9374
|
-
}[] | undefined;
|
9375
|
-
required?: boolean | undefined;
|
9376
|
-
conditionals?: ({
|
9377
|
-
type: "SHOW";
|
9378
|
-
conditional: import(".").JSONSchema;
|
9379
|
-
} | {
|
9380
|
-
type: "ENABLE";
|
9381
|
-
conditional: import(".").JSONSchema;
|
9382
|
-
} | {
|
9383
|
-
type: "DISPLAY_ON_REVIEW";
|
9384
|
-
conditional: import(".").JSONSchema;
|
9385
|
-
})[] | undefined;
|
9386
|
-
secured?: boolean | undefined;
|
9387
|
-
placeholder?: TranslationConfig | undefined;
|
9388
|
-
helperText?: TranslationConfig | undefined;
|
9389
|
-
hideLabel?: boolean | undefined;
|
9390
|
-
uncorrectable?: boolean | undefined;
|
9391
|
-
}, {
|
9392
|
-
type: "PRINT_BUTTON";
|
9393
|
-
id: string;
|
9394
|
-
label: {
|
9395
|
-
id: string;
|
9396
|
-
description: string;
|
9397
|
-
defaultMessage: string;
|
9398
|
-
};
|
9399
|
-
configuration: {
|
9400
|
-
template: string;
|
9401
|
-
buttonLabel?: {
|
9402
|
-
id: string;
|
9403
|
-
description: string;
|
9404
|
-
defaultMessage: string;
|
9405
|
-
} | undefined;
|
9406
|
-
};
|
9407
|
-
parent?: {
|
9408
|
-
$$field: string;
|
9409
|
-
} | undefined;
|
9410
|
-
validation?: {
|
9411
|
-
message: {
|
9412
|
-
id: string;
|
9413
|
-
description: string;
|
9414
|
-
defaultMessage: string;
|
9415
|
-
};
|
9416
|
-
validator: import(".").JSONSchema;
|
9417
|
-
}[] | undefined;
|
9418
|
-
required?: boolean | undefined;
|
9419
|
-
conditionals?: ({
|
9420
|
-
type: "SHOW";
|
9421
|
-
conditional: import(".").JSONSchema;
|
9422
|
-
} | {
|
9423
|
-
type: "ENABLE";
|
9424
|
-
conditional: import(".").JSONSchema;
|
9425
|
-
} | {
|
9426
|
-
type: "DISPLAY_ON_REVIEW";
|
9427
|
-
conditional: import(".").JSONSchema;
|
9428
|
-
})[] | undefined;
|
9429
|
-
secured?: boolean | undefined;
|
9430
|
-
placeholder?: {
|
9431
|
-
id: string;
|
9432
|
-
description: string;
|
9433
|
-
defaultMessage: string;
|
9434
|
-
} | undefined;
|
9435
|
-
helperText?: {
|
9436
|
-
id: string;
|
9437
|
-
description: string;
|
9438
|
-
defaultMessage: string;
|
9439
|
-
} | undefined;
|
9440
|
-
hideLabel?: boolean | undefined;
|
9441
|
-
uncorrectable?: boolean | undefined;
|
9442
9142
|
}>]>;
|
9443
9143
|
export type SelectField = z.infer<typeof Select>;
|
9444
9144
|
export type NameField = z.infer<typeof NameField>;
|
@@ -27,9 +27,8 @@ export declare const FieldType: {
|
|
27
27
|
readonly OFFICE: "OFFICE";
|
28
28
|
readonly SIGNATURE: "SIGNATURE";
|
29
29
|
readonly DATA: "DATA";
|
30
|
-
readonly PRINT_BUTTON: "PRINT_BUTTON";
|
31
30
|
};
|
32
|
-
export declare const fieldTypes: ("ID" | "NAME" | "PHONE" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA"
|
31
|
+
export declare const fieldTypes: ("ID" | "NAME" | "PHONE" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[];
|
33
32
|
export type FieldType = (typeof fieldTypes)[number];
|
34
33
|
/**
|
35
34
|
* Composite field types are field types that consist of multiple field values.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField
|
2
|
+
import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField } from './FieldConfig';
|
3
3
|
import { FieldType } from './FieldType';
|
4
4
|
import { FieldValue, FieldUpdateValueSchema, DateRangeFieldValue, SelectDateRangeValue } from './FieldValue';
|
5
5
|
import { FullDocumentPath } from '../documents';
|
@@ -641,14 +641,7 @@ export declare const isDataFieldType: (field: {
|
|
641
641
|
value: undefined;
|
642
642
|
config: DataField;
|
643
643
|
};
|
644
|
-
export
|
645
|
-
config: FieldConfig;
|
646
|
-
value: FieldValue;
|
647
|
-
}) => field is {
|
648
|
-
value: undefined;
|
649
|
-
config: PrintButton;
|
650
|
-
};
|
651
|
-
export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField | PrintButton;
|
644
|
+
export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField;
|
652
645
|
export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
|
653
646
|
export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
|
654
647
|
export {};
|