@kumori/aurora-backend-handler 1.0.8 → 1.0.9

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.
@@ -583,7 +583,7 @@ const deleteResourceBase = async (
583
583
  //eventHelper.resource.publish.deleted(resource);
584
584
  const resourceNotification: Notification = {
585
585
  type: "success",
586
- subtype: "resource-deleted",
586
+ subtype: "resource-deleting",
587
587
  date: Date.now().toString(),
588
588
  status: "unread",
589
589
  callToAction: false,
@@ -1044,6 +1044,19 @@ export class BackendHandler {
1044
1044
  );
1045
1045
 
1046
1046
  const deletedCb = (data: Resource) => {
1047
+ const resourceNotification: Notification = {
1048
+ type: "success",
1049
+ subtype: "resource-deleting",
1050
+ date: Date.now().toString(),
1051
+ status: "unread",
1052
+ callToAction: false,
1053
+ data: {
1054
+ resource: data.name,
1055
+ type: data.type,
1056
+ tenant: data.tenant
1057
+ }
1058
+ };
1059
+ eventHelper.notification.publish.creation(resourceNotification);
1047
1060
  };
1048
1061
  eventHelper.resource.subscribe.deleted(deletedCb);
1049
1062
  this.unsubscribeFunctions.push(() =>
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "ws": "^8.18.2"
24
24
  },
25
25
  "name": "@kumori/aurora-backend-handler",
26
- "version": "1.0.8",
26
+ "version": "1.0.9",
27
27
  "description": "backend handler",
28
28
  "main": "backend-handler.ts",
29
29
  "repository": {