@opencrvs/toolkit 1.9.12-rc.eec1bae → 1.9.12-rc.eee2c09
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/application-config/index.js +2038 -45
- package/dist/cli.js +1246 -35
- package/dist/commons/api/router.d.ts +217 -208
- package/dist/commons/application-config/index.d.ts +6 -4
- package/dist/commons/events/ActionDocument.d.ts +6 -6
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +10 -10
- package/dist/commons/events/CountryConfigQueryInput.d.ts +222 -222
- package/dist/commons/events/Draft.d.ts +8 -8
- package/dist/commons/events/EventConfig.d.ts +4 -2
- package/dist/commons/events/EventDocument.d.ts +3 -3
- package/dist/commons/events/EventIndex.d.ts +15 -15
- package/dist/commons/events/EventMetadata.d.ts +12 -12
- package/dist/commons/events/FieldConfig.d.ts +28 -32
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +4 -4
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +13 -13
- package/dist/commons/events/WorkqueueConfig.d.ts +239 -239
- package/dist/commons/events/scopes.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +2 -2
- package/dist/commons/events/state/utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +18 -9
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
- package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +97 -21
- package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
- package/dist/migrations/v2.0/create-events-index.js +326 -0
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +1244 -33
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +6 -5
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
- package/dist/notification/index.js +6 -7
- package/opencrvs-toolkit-1.9.12-rc.eee2c09.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.json +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.eec1bae.tgz +0 -0
|
@@ -1830,17 +1830,14 @@ var ImageViewField = BaseField.extend({
|
|
|
1830
1830
|
}).describe("A read-only image component for form pages");
|
|
1831
1831
|
var Paragraph = BaseField.extend({
|
|
1832
1832
|
type: import_v43.default.literal(FieldType.PARAGRAPH),
|
|
1833
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1834
1833
|
configuration: ParagraphConfiguration
|
|
1835
1834
|
}).describe("A read-only HTML <p> paragraph");
|
|
1836
1835
|
var Heading = BaseField.extend({
|
|
1837
1836
|
type: import_v43.default.literal(FieldType.HEADING),
|
|
1838
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1839
1837
|
configuration: HeadingConfiguration
|
|
1840
1838
|
}).describe("A read-only heading component for form pages");
|
|
1841
1839
|
var PageHeader = BaseField.extend({
|
|
1842
|
-
type: import_v43.default.literal(FieldType.PAGE_HEADER)
|
|
1843
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
1840
|
+
type: import_v43.default.literal(FieldType.PAGE_HEADER)
|
|
1844
1841
|
}).describe("A read-only header component for form pages");
|
|
1845
1842
|
var File = BaseField.extend({
|
|
1846
1843
|
type: import_v43.default.literal(FieldType.FILE),
|
|
@@ -1890,7 +1887,6 @@ var RadioGroup = BaseField.extend({
|
|
|
1890
1887
|
}).describe("Grouped radio options");
|
|
1891
1888
|
var BulletList = BaseField.extend({
|
|
1892
1889
|
type: import_v43.default.literal(FieldType.BULLET_LIST),
|
|
1893
|
-
defaultValue: TextValue.optional(),
|
|
1894
1890
|
items: import_v43.default.array(TranslationConfig).describe("A list of items"),
|
|
1895
1891
|
configuration: import_v43.default.object({
|
|
1896
1892
|
styles: import_v43.default.object({
|
|
@@ -1996,7 +1992,7 @@ var LocationInput = BaseField.extend({
|
|
|
1996
1992
|
configuration: import_v43.default.object({
|
|
1997
1993
|
locationTypes: import_v43.default.array(import_v43.default.string()).optional().describe("Types of the locations that are available for selection."),
|
|
1998
1994
|
allowedLocations: AllowedLocations
|
|
1999
|
-
})
|
|
1995
|
+
}).optional()
|
|
2000
1996
|
}).describe("Input field for a location");
|
|
2001
1997
|
var FileUploadWithOptions = BaseField.extend({
|
|
2002
1998
|
type: import_v43.default.literal(FieldType.FILE_WITH_OPTIONS),
|
|
@@ -3665,6 +3661,9 @@ var _EventConfigBase = z33.object({
|
|
|
3665
3661
|
),
|
|
3666
3662
|
flags: z33.array(FlagConfig).optional().default([]).describe(
|
|
3667
3663
|
"Configuration of flags associated with the actions of this event type."
|
|
3664
|
+
),
|
|
3665
|
+
analytics: z33.boolean().optional().default(true).describe(
|
|
3666
|
+
"Indicates whether the records of this event type are included in analytics"
|
|
3668
3667
|
)
|
|
3669
3668
|
});
|
|
3670
3669
|
var EventConfig = _EventConfigBase.superRefine((event2, ctx) => {
|
|
@@ -6851,7 +6850,7 @@ var ACTION_SCOPE_MAP = {
|
|
|
6851
6850
|
[ActionType.NOTIFY]: ["record.notify"],
|
|
6852
6851
|
[ActionType.DECLARE]: ["record.declare", "record.register"],
|
|
6853
6852
|
[ActionType.EDIT]: ["record.edit"],
|
|
6854
|
-
[ActionType.DELETE]: ["record.declare"],
|
|
6853
|
+
[ActionType.DELETE]: ["record.declare", "record.notify"],
|
|
6855
6854
|
[ActionType.REGISTER]: ["record.register"],
|
|
6856
6855
|
[ActionType.PRINT_CERTIFICATE]: ["record.print-certified-copies"],
|
|
6857
6856
|
[ActionType.REQUEST_CORRECTION]: [
|
|
Binary file
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"@opencrvs/commons/events/deduplication": [
|
|
21
21
|
"../commons/src/events/deduplication.ts"
|
|
22
22
|
],
|
|
23
|
+
"@opencrvs/commons/scopes.deprecated.do-not-use": [
|
|
24
|
+
"../commons/src/scopes.deprecated.do-not-use.ts"
|
|
25
|
+
],
|
|
23
26
|
"@opencrvs/commons/notification": [
|
|
24
27
|
"../commons/src/notification/index.ts"
|
|
25
28
|
],
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/notification/index.ts","./src/scopes/index.ts"],"version":"5.6.3"}
|
|
1
|
+
{"root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/notification/index.ts","./src/scopes/index.ts"],"version":"5.6.3"}
|
|
Binary file
|