@opencrvs/toolkit 1.9.5-rc.5b99334 → 1.9.5-rc.5ccf91d
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/api/router.d.ts +26 -24
- package/dist/commons/events/CountryConfigQueryInput.d.ts +350 -350
- package/dist/commons/events/FieldConfig.d.ts +108 -214
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/TemplateConfig.d.ts +15 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +525 -525
- package/dist/conditionals/index.js +7 -2
- package/dist/events/index.js +13 -13
- package/dist/notification/index.js +12 -12
- package/package.json +1 -1
|
@@ -53,8 +53,13 @@ var SerializedUserField = import_zod.z.object({
|
|
|
53
53
|
"id",
|
|
54
54
|
"name",
|
|
55
55
|
"role",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
56
|
+
"fullHonorificName",
|
|
57
|
+
"device",
|
|
58
|
+
"firstname",
|
|
59
|
+
"middlename",
|
|
60
|
+
"surname",
|
|
61
|
+
"district",
|
|
62
|
+
"province",
|
|
58
63
|
"primaryOfficeId"
|
|
59
64
|
]),
|
|
60
65
|
$location: import_zod.z.string().optional()
|
package/dist/events/index.js
CHANGED
|
@@ -608,6 +608,7 @@ var FileFieldType = import_zod4.z.enum([
|
|
|
608
608
|
]);
|
|
609
609
|
var fieldTypes = Object.values(FieldType);
|
|
610
610
|
var compositeFieldTypes = [
|
|
611
|
+
FieldType.NAME,
|
|
611
612
|
FieldType.DATE_RANGE,
|
|
612
613
|
FieldType.ADDRESS,
|
|
613
614
|
FieldType.FILE_WITH_OPTIONS,
|
|
@@ -865,8 +866,13 @@ var SerializedUserField = import_zod9.z.object({
|
|
|
865
866
|
"id",
|
|
866
867
|
"name",
|
|
867
868
|
"role",
|
|
868
|
-
"
|
|
869
|
-
"
|
|
869
|
+
"fullHonorificName",
|
|
870
|
+
"device",
|
|
871
|
+
"firstname",
|
|
872
|
+
"middlename",
|
|
873
|
+
"surname",
|
|
874
|
+
"district",
|
|
875
|
+
"province",
|
|
870
876
|
"primaryOfficeId"
|
|
871
877
|
]),
|
|
872
878
|
$location: import_zod9.z.string().optional()
|
|
@@ -1948,7 +1954,7 @@ var Divider = BaseField.extend({
|
|
|
1948
1954
|
});
|
|
1949
1955
|
var TextField = BaseField.extend({
|
|
1950
1956
|
type: import_zod15.z.literal(FieldType.TEXT),
|
|
1951
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1957
|
+
defaultValue: import_zod15.z.union([NonEmptyTextValue, SerializedUserField]).optional(),
|
|
1952
1958
|
configuration: import_zod15.z.object({
|
|
1953
1959
|
maxLength: import_zod15.z.number().optional().describe("Maximum length of the text"),
|
|
1954
1960
|
type: import_zod15.z.enum(["text", "password"]).optional(),
|
|
@@ -2084,9 +2090,6 @@ var File = BaseField.extend({
|
|
|
2084
2090
|
configuration: import_zod15.z.object({
|
|
2085
2091
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
2086
2092
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature"),
|
|
2087
|
-
maxImageSize: import_zod15.z.object({
|
|
2088
|
-
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
2089
|
-
}).optional(),
|
|
2090
2093
|
style: import_zod15.z.object({
|
|
2091
2094
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
2092
2095
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -2153,9 +2156,9 @@ var NameConfig = import_zod15.z.object({
|
|
|
2153
2156
|
var NameField = BaseField.extend({
|
|
2154
2157
|
type: import_zod15.z.literal(FieldType.NAME),
|
|
2155
2158
|
defaultValue: import_zod15.z.object({
|
|
2156
|
-
firstname: NonEmptyTextValue.optional(),
|
|
2157
|
-
middlename: NonEmptyTextValue.optional(),
|
|
2158
|
-
surname: NonEmptyTextValue.optional()
|
|
2159
|
+
firstname: SerializedUserField.or(NonEmptyTextValue).optional(),
|
|
2160
|
+
middlename: SerializedUserField.or(NonEmptyTextValue).optional(),
|
|
2161
|
+
surname: SerializedUserField.or(NonEmptyTextValue).optional()
|
|
2159
2162
|
}).optional(),
|
|
2160
2163
|
configuration: import_zod15.z.object({
|
|
2161
2164
|
name: NameConfig.default({
|
|
@@ -2218,9 +2221,6 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
2218
2221
|
defaultValue: FileFieldWithOptionValue.optional(),
|
|
2219
2222
|
configuration: import_zod15.z.object({
|
|
2220
2223
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
2221
|
-
maxImageSize: import_zod15.z.object({
|
|
2222
|
-
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
2223
|
-
}).optional(),
|
|
2224
2224
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
|
|
2225
2225
|
}).default({
|
|
2226
2226
|
maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
|
|
@@ -8930,7 +8930,7 @@ function userDeserializer(serializedUserField, user2) {
|
|
|
8930
8930
|
if (typeof serializedUserField === "string") {
|
|
8931
8931
|
return serializedUserField;
|
|
8932
8932
|
}
|
|
8933
|
-
if (serializedUserField.$userField === "name" || serializedUserField.$userField === "
|
|
8933
|
+
if (serializedUserField.$userField === "name" || serializedUserField.$userField === "fullHonorificName" || serializedUserField.$userField === "device" || serializedUserField.$userField === "firstname" || serializedUserField.$userField === "middlename" || serializedUserField.$userField === "province" || serializedUserField.$userField === "district" || serializedUserField.$userField === "surname") {
|
|
8934
8934
|
throw new Error(
|
|
8935
8935
|
`Deserializer for ${serializedUserField.$userField} is not implemented yet`
|
|
8936
8936
|
);
|
|
@@ -273,6 +273,7 @@ var FileFieldType = import_zod4.z.enum([
|
|
|
273
273
|
]);
|
|
274
274
|
var fieldTypes = Object.values(FieldType);
|
|
275
275
|
var compositeFieldTypes = [
|
|
276
|
+
FieldType.NAME,
|
|
276
277
|
FieldType.DATE_RANGE,
|
|
277
278
|
FieldType.ADDRESS,
|
|
278
279
|
FieldType.FILE_WITH_OPTIONS,
|
|
@@ -526,8 +527,13 @@ var SerializedUserField = import_zod9.z.object({
|
|
|
526
527
|
"id",
|
|
527
528
|
"name",
|
|
528
529
|
"role",
|
|
529
|
-
"
|
|
530
|
-
"
|
|
530
|
+
"fullHonorificName",
|
|
531
|
+
"device",
|
|
532
|
+
"firstname",
|
|
533
|
+
"middlename",
|
|
534
|
+
"surname",
|
|
535
|
+
"district",
|
|
536
|
+
"province",
|
|
531
537
|
"primaryOfficeId"
|
|
532
538
|
]),
|
|
533
539
|
$location: import_zod9.z.string().optional()
|
|
@@ -1474,7 +1480,7 @@ var Divider = BaseField.extend({
|
|
|
1474
1480
|
});
|
|
1475
1481
|
var TextField = BaseField.extend({
|
|
1476
1482
|
type: import_zod15.z.literal(FieldType.TEXT),
|
|
1477
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1483
|
+
defaultValue: import_zod15.z.union([NonEmptyTextValue, SerializedUserField]).optional(),
|
|
1478
1484
|
configuration: import_zod15.z.object({
|
|
1479
1485
|
maxLength: import_zod15.z.number().optional().describe("Maximum length of the text"),
|
|
1480
1486
|
type: import_zod15.z.enum(["text", "password"]).optional(),
|
|
@@ -1610,9 +1616,6 @@ var File = BaseField.extend({
|
|
|
1610
1616
|
configuration: import_zod15.z.object({
|
|
1611
1617
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
1612
1618
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature"),
|
|
1613
|
-
maxImageSize: import_zod15.z.object({
|
|
1614
|
-
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
1615
|
-
}).optional(),
|
|
1616
1619
|
style: import_zod15.z.object({
|
|
1617
1620
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
1618
1621
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -1679,9 +1682,9 @@ var NameConfig = import_zod15.z.object({
|
|
|
1679
1682
|
var NameField = BaseField.extend({
|
|
1680
1683
|
type: import_zod15.z.literal(FieldType.NAME),
|
|
1681
1684
|
defaultValue: import_zod15.z.object({
|
|
1682
|
-
firstname: NonEmptyTextValue.optional(),
|
|
1683
|
-
middlename: NonEmptyTextValue.optional(),
|
|
1684
|
-
surname: NonEmptyTextValue.optional()
|
|
1685
|
+
firstname: SerializedUserField.or(NonEmptyTextValue).optional(),
|
|
1686
|
+
middlename: SerializedUserField.or(NonEmptyTextValue).optional(),
|
|
1687
|
+
surname: SerializedUserField.or(NonEmptyTextValue).optional()
|
|
1685
1688
|
}).optional(),
|
|
1686
1689
|
configuration: import_zod15.z.object({
|
|
1687
1690
|
name: NameConfig.default({
|
|
@@ -1744,9 +1747,6 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
1744
1747
|
defaultValue: FileFieldWithOptionValue.optional(),
|
|
1745
1748
|
configuration: import_zod15.z.object({
|
|
1746
1749
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
1747
|
-
maxImageSize: import_zod15.z.object({
|
|
1748
|
-
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
1749
|
-
}).optional(),
|
|
1750
1750
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
|
|
1751
1751
|
}).default({
|
|
1752
1752
|
maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
|