@dative-gpi/foundation-shared-services 1.0.182 → 1.0.183-fix-magic
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.
|
@@ -14,10 +14,14 @@ const NotificationServiceFactory = new ServiceFactory<NotificationDetailsDTO, No
|
|
|
14
14
|
const result = new NotificationDetails(dto);
|
|
15
15
|
notifyService.notify("update", result);
|
|
16
16
|
return result;
|
|
17
|
+
}),
|
|
18
|
+
...ServiceFactory.addCustom("acknowledgeRange", (axios, notificationIds: string[]) => axios.patch(NOTIFICATIONS_URL(), notificationIds), () => {
|
|
19
|
+
notifyService.notify("reset");
|
|
17
20
|
})
|
|
18
21
|
}))
|
|
19
22
|
));
|
|
20
23
|
|
|
24
|
+
|
|
21
25
|
const useNotificationsHub = HubFactory.create(NOTIFICATIONS_HUB_URL,
|
|
22
26
|
(connection, { hasWatchers }) => {
|
|
23
27
|
connection.on(HUBS.CREATE_NOTIFICATION, (notificationId: string) => hasWatchers()
|
|
@@ -38,4 +42,5 @@ export const useNotifications = ComposableFactory.getMany(NotificationServiceFac
|
|
|
38
42
|
watchMany();
|
|
39
43
|
}
|
|
40
44
|
});
|
|
41
|
-
export const useAcknowledgeNotification = ComposableFactory.custom(NotificationServiceFactory.acknowledge);
|
|
45
|
+
export const useAcknowledgeNotification = ComposableFactory.custom(NotificationServiceFactory.acknowledge);
|
|
46
|
+
export const useAcknowledgeRangeNotifications = ComposableFactory.custom(NotificationServiceFactory.acknowledgeRange);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.183-fix-magic",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.183-fix-magic",
|
|
14
14
|
"@vueuse/core": "^14.0.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"vue": "^3.4.38",
|
|
20
20
|
"vue-router": "^4.3.0"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "ffa4a6f53e995c390e276d3c1c8c216cd48f4f1b"
|
|
23
23
|
}
|