@opencrvs/toolkit 1.9.12-rc.ce018e5 → 1.9.12-rc.d0f7860

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 (37) hide show
  1. package/dist/application-config/index.js +1 -1
  2. package/dist/cli.js +1246 -35
  3. package/dist/commons/api/router.d.ts +163 -161
  4. package/dist/commons/events/EventConfig.d.ts +3 -1
  5. package/dist/commons/events/FieldConfig.d.ts +2 -2
  6. package/dist/commons/events/scopes.d.ts +1 -1
  7. package/dist/events/index.js +17 -4
  8. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
  9. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  10. package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
  11. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  12. package/dist/migrations/v2.0/convert-config-files-to-ts.js +97 -21
  13. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  14. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  15. package/dist/migrations/v2.0/create-events-index.js +326 -0
  16. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  17. package/dist/migrations/v2.0/index.js +1244 -33
  18. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  19. package/dist/migrations/v2.0/migrate-scopes.js +6 -5
  20. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  21. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  22. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  23. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  24. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  25. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  26. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  27. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  28. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  29. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  30. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  31. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
  32. package/dist/notification/index.js +5 -2
  33. package/opencrvs-toolkit-1.9.12-rc.d0f7860.tgz +0 -0
  34. package/package.json +1 -1
  35. package/tsconfig.json +3 -0
  36. package/tsconfig.tsbuildinfo +1 -1
  37. package/opencrvs-toolkit-1.9.12-rc.ce018e5.tgz +0 -0
@@ -1992,7 +1992,7 @@ var LocationInput = BaseField.extend({
1992
1992
  configuration: import_v43.default.object({
1993
1993
  locationTypes: import_v43.default.array(import_v43.default.string()).optional().describe("Types of the locations that are available for selection."),
1994
1994
  allowedLocations: AllowedLocations
1995
- })
1995
+ }).optional()
1996
1996
  }).describe("Input field for a location");
1997
1997
  var FileUploadWithOptions = BaseField.extend({
1998
1998
  type: import_v43.default.literal(FieldType.FILE_WITH_OPTIONS),
@@ -3661,6 +3661,9 @@ var _EventConfigBase = z33.object({
3661
3661
  ),
3662
3662
  flags: z33.array(FlagConfig).optional().default([]).describe(
3663
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"
3664
3667
  )
3665
3668
  });
3666
3669
  var EventConfig = _EventConfigBase.superRefine((event2, ctx) => {
@@ -6847,7 +6850,7 @@ var ACTION_SCOPE_MAP = {
6847
6850
  [ActionType.NOTIFY]: ["record.notify"],
6848
6851
  [ActionType.DECLARE]: ["record.declare", "record.register"],
6849
6852
  [ActionType.EDIT]: ["record.edit"],
6850
- [ActionType.DELETE]: ["record.declare"],
6853
+ [ActionType.DELETE]: ["record.declare", "record.notify"],
6851
6854
  [ActionType.REGISTER]: ["record.register"],
6852
6855
  [ActionType.PRINT_CERTIFICATE]: ["record.print-certified-copies"],
6853
6856
  [ActionType.REQUEST_CORRECTION]: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.12-rc.ce018e5",
3
+ "version": "1.9.12-rc.d0f7860",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {
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
  ],
@@ -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"}