@opencrvs/toolkit 1.9.12-rc.87b5aae → 1.9.12-rc.8a639ce

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 (39) 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 +148 -136
  4. package/dist/commons/events/AuditLog.d.ts +2 -0
  5. package/dist/commons/events/EventConfig.d.ts +3 -1
  6. package/dist/commons/events/FieldConfig.d.ts +2 -2
  7. package/dist/commons/events/scopes.d.ts +1 -1
  8. package/dist/commons/notification/UserNotifications.d.ts +15 -0
  9. package/dist/events/index.js +18 -4
  10. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
  11. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  12. package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
  13. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  14. package/dist/migrations/v2.0/convert-config-files-to-ts.js +97 -21
  15. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  16. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  17. package/dist/migrations/v2.0/create-events-index.js +326 -0
  18. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  19. package/dist/migrations/v2.0/index.js +1244 -33
  20. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  21. package/dist/migrations/v2.0/migrate-scopes.js +6 -5
  22. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  23. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  24. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  25. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  26. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  27. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  28. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  29. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  30. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  31. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  32. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  33. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
  34. package/dist/notification/index.js +11 -2
  35. package/opencrvs-toolkit-1.9.12-rc.8a639ce.tgz +0 -0
  36. package/package.json +1 -1
  37. package/tsconfig.json +3 -0
  38. package/tsconfig.tsbuildinfo +1 -1
  39. package/opencrvs-toolkit-1.9.12-rc.87b5aae.tgz +0 -0
@@ -520,6 +520,7 @@ var UserSubjectOnlyEntrySchema = AuditLogEntryBase.extend({
520
520
  "user.password_changed",
521
521
  "user.password_reset",
522
522
  "user.password_reset_by_admin",
523
+ "user.resend_invite",
523
524
  "user.username_reminder",
524
525
  "user.username_reminder_by_admin"
525
526
  ]),
@@ -1992,7 +1993,7 @@ var LocationInput = BaseField.extend({
1992
1993
  configuration: import_v43.default.object({
1993
1994
  locationTypes: import_v43.default.array(import_v43.default.string()).optional().describe("Types of the locations that are available for selection."),
1994
1995
  allowedLocations: AllowedLocations
1995
- })
1996
+ }).optional()
1996
1997
  }).describe("Input field for a location");
1997
1998
  var FileUploadWithOptions = BaseField.extend({
1998
1999
  type: import_v43.default.literal(FieldType.FILE_WITH_OPTIONS),
@@ -3661,6 +3662,9 @@ var _EventConfigBase = z33.object({
3661
3662
  ),
3662
3663
  flags: z33.array(FlagConfig).optional().default([]).describe(
3663
3664
  "Configuration of flags associated with the actions of this event type."
3665
+ ),
3666
+ analytics: z33.boolean().optional().default(true).describe(
3667
+ "Indicates whether the records of this event type are included in analytics"
3664
3668
  )
3665
3669
  });
3666
3670
  var EventConfig = _EventConfigBase.superRefine((event2, ctx) => {
@@ -6847,7 +6851,7 @@ var ACTION_SCOPE_MAP = {
6847
6851
  [ActionType.NOTIFY]: ["record.notify"],
6848
6852
  [ActionType.DECLARE]: ["record.declare", "record.register"],
6849
6853
  [ActionType.EDIT]: ["record.edit"],
6850
- [ActionType.DELETE]: ["record.declare"],
6854
+ [ActionType.DELETE]: ["record.declare", "record.notify"],
6851
6855
  [ActionType.REGISTER]: ["record.register"],
6852
6856
  [ActionType.PRINT_CERTIFICATE]: ["record.print-certified-copies"],
6853
6857
  [ActionType.REQUEST_CORRECTION]: [
@@ -6931,6 +6935,7 @@ var TriggerEvent = {
6931
6935
  USERNAME_REMINDER: "username-reminder",
6932
6936
  RESET_PASSWORD: "reset-password",
6933
6937
  RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin",
6938
+ RESEND_INVITE: "resend-invite",
6934
6939
  TWO_FA: "2fa",
6935
6940
  ALL_USER_NOTIFICATION: "all-user-notification",
6936
6941
  CHANGE_PHONE_NUMBER: "change-phone-number",
@@ -6968,6 +6973,10 @@ var TriggerPayload = {
6968
6973
  role: z44.string()
6969
6974
  })
6970
6975
  }),
6976
+ [TriggerEvent.RESEND_INVITE]: BasePayload.extend({
6977
+ username: z44.string(),
6978
+ temporaryPassword: z44.string()
6979
+ }),
6971
6980
  [TriggerEvent.TWO_FA]: BasePayload.extend({
6972
6981
  code: z44.string()
6973
6982
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.12-rc.87b5aae",
3
+ "version": "1.9.12-rc.8a639ce",
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"}