@truedat/audit 4.48.8 → 4.48.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.48.11] 2022-21-07
4
+
5
+ ### Added
6
+
7
+ - [TD-4441] Added grant_approval notification messages
8
+
3
9
  ## [4.48.2] 2022-07-08
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/audit",
3
- "version": "4.48.8",
3
+ "version": "4.48.11",
4
4
  "description": "Truedat Web Audit Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -85,8 +85,8 @@
85
85
  ]
86
86
  },
87
87
  "dependencies": {
88
- "@truedat/auth": "4.48.8",
89
- "@truedat/core": "4.48.8",
88
+ "@truedat/auth": "4.48.11",
89
+ "@truedat/core": "4.48.11",
90
90
  "axios": "^0.19.2",
91
91
  "path-to-regexp": "^1.7.0",
92
92
  "prop-types": "^15.8.1",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 0.88.2 < 2.1"
109
109
  },
110
- "gitHead": "e49b195088068688520a1cb02c64127e140615e6"
110
+ "gitHead": "c174776672b9079d23a00a6561db635d43cbeb32"
111
111
  }
@@ -27,6 +27,7 @@ const TEMPLATES = {
27
27
  job_status_warning: "job_status",
28
28
  job_status_info: "job_status",
29
29
  implementation_status_updated: "implementation_status",
30
+ grant_approval: "grant_approval",
30
31
  };
31
32
 
32
33
  export const NotificationEvent = ({
@@ -51,7 +52,7 @@ export const NotificationEvent = ({
51
52
  }, [isVisible]);
52
53
 
53
54
  const template = TEMPLATES[event.event] || "default";
54
- const statusesEvents = ["implementation_status"];
55
+ const eventsWithStatus = ["implementation_status", "grant_approval"];
55
56
  return (
56
57
  <div className="notification-item unread" ref={ref}>
57
58
  <h4>
@@ -64,7 +65,7 @@ export const NotificationEvent = ({
64
65
  </h4>
65
66
  <p>{event.name}</p>
66
67
  <Label>
67
- {statusesEvents.includes(template) ? (
68
+ {eventsWithStatus.includes(template) ? (
68
69
  <FormattedMessage
69
70
  id={`subscriptions.events.${template}.${event.payload.status}`}
70
71
  defaultMessage={event.payload.status}
@@ -12,6 +12,8 @@ export default {
12
12
  "notifications.events.job_status": "⚡ Alert: Job status updated",
13
13
  "notifications.events.implementation_status":
14
14
  "⚡ Implementation status updated",
15
+ "notifications.events.grant_approval":
16
+ "👓 Alert: Grant Approval notification",
15
17
  "notifications.events.default": "⚡ Alert: New notifications",
16
18
  "notifications.new": "New",
17
19
 
@@ -85,6 +87,7 @@ export default {
85
87
  "subscriptions.events.concept_submitted": "Concept submitted",
86
88
  "subscriptions.events.delete_concept_draft": "Delete concept draft",
87
89
  "subscriptions.events.new_concept_draft": "New concept draft",
90
+ "subscriptions.events.grant_approval.rejected": "Rejected",
88
91
  "subscriptions.events.grant_created": "Access has been granted",
89
92
  "subscriptions.events.grant_deleted": "Access has been revoked",
90
93
  "subscriptions.events.implementation_created": "Implementation created",
@@ -12,6 +12,8 @@ export default {
12
12
  "notifications.events.job_status": "⚡ Alerta: Estado de job modificado",
13
13
  "notifications.events.implementation_status":
14
14
  "⚡ Estado de implementación modificado",
15
+ "notifications.events.grant_approval":
16
+ "👓 Alerta: Notificación de aprobación de grants",
15
17
  "notifications.events.default": "⚡ Alerta: Nuevas notificaciones",
16
18
  "notifications.new": "Nueva",
17
19
 
@@ -93,6 +95,7 @@ export default {
93
95
  "subscriptions.events.concept_submitted": "Concepto enviado",
94
96
  "subscriptions.events.delete_concept_draft": "Eliminar borrador de concepto",
95
97
  "subscriptions.events.new_concept_draft": "Nuevo borrador de concepto",
98
+ "subscriptions.events.grant_approval.rejected": "Rechazado",
96
99
  "subscriptions.events.grant_created":
97
100
  "Se ha creado un nuevo acceso a estructuras",
98
101
  "subscriptions.events.grant_deleted":