@heritageai/messaging 1.0.18 → 1.0.19
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/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/types/notifications/notification-type.d.ts +10 -0
- package/dist/types/notifications/notification-type.js +14 -0
- package/package.json +3 -2
- package/publish.sh +16 -0
- package/src/index.ts +6 -0
- package/src/types/notifications/notification-type.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -18,3 +18,5 @@ export * from "./publishers/site-updated-publisher";
|
|
|
18
18
|
export * from "./publishers/site-deleted-publisher";
|
|
19
19
|
export * from "./publishers/user-created-publisher";
|
|
20
20
|
export * from "./publishers/user-deleted-publisher";
|
|
21
|
+
export * from "./types/localization/index";
|
|
22
|
+
export * from "./types/notifications/notification-type";
|
package/dist/index.js
CHANGED
|
@@ -34,3 +34,5 @@ __exportStar(require("./publishers/site-updated-publisher"), exports);
|
|
|
34
34
|
__exportStar(require("./publishers/site-deleted-publisher"), exports);
|
|
35
35
|
__exportStar(require("./publishers/user-created-publisher"), exports);
|
|
36
36
|
__exportStar(require("./publishers/user-deleted-publisher"), exports);
|
|
37
|
+
__exportStar(require("./types/localization/index"), exports);
|
|
38
|
+
__exportStar(require("./types/notifications/notification-type"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum NotificationType {
|
|
2
|
+
AssetCreated = "asset_created",
|
|
3
|
+
AssetUpdated = "asset_updated",
|
|
4
|
+
AssetDeleted = "asset_deleted",
|
|
5
|
+
SiteCreated = "site_created",
|
|
6
|
+
SiteUpdated = "site_updated",
|
|
7
|
+
SiteDeleted = "site_deleted",
|
|
8
|
+
UserCreated = "user_created",
|
|
9
|
+
UserDeleted = "user_deleted"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["AssetCreated"] = "asset_created";
|
|
7
|
+
NotificationType["AssetUpdated"] = "asset_updated";
|
|
8
|
+
NotificationType["AssetDeleted"] = "asset_deleted";
|
|
9
|
+
NotificationType["SiteCreated"] = "site_created";
|
|
10
|
+
NotificationType["SiteUpdated"] = "site_updated";
|
|
11
|
+
NotificationType["SiteDeleted"] = "site_deleted";
|
|
12
|
+
NotificationType["UserCreated"] = "user_created";
|
|
13
|
+
NotificationType["UserDeleted"] = "user_deleted";
|
|
14
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
package/package.json
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
"author": "future_platform",
|
|
3
3
|
"name": "@heritageai/messaging",
|
|
4
4
|
"license": "ISC",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.19",
|
|
6
6
|
"description": "",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc",
|
|
11
|
-
"prepublishOnly": "npm run build"
|
|
11
|
+
"prepublishOnly": "npm run build",
|
|
12
|
+
"publish": "bash publish.sh"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"colors": "^1.4.0",
|
package/publish.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Exit immediately if a command exits with a non-zero status.
|
|
4
|
+
set -e
|
|
5
|
+
|
|
6
|
+
# Build the package
|
|
7
|
+
npm run build
|
|
8
|
+
|
|
9
|
+
# Update the version (patch) and get the new version
|
|
10
|
+
npm version patch
|
|
11
|
+
|
|
12
|
+
# Publish the package
|
|
13
|
+
npm publish --access public
|
|
14
|
+
|
|
15
|
+
# Final message
|
|
16
|
+
echo "Package published successfully!"
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./nats-wrapper";
|
|
2
2
|
export * from "./base-listener";
|
|
3
3
|
export * from "./base-publisher";
|
|
4
|
+
|
|
4
5
|
export * from "./subjects";
|
|
6
|
+
|
|
5
7
|
export * from "./events/asset-created-event";
|
|
6
8
|
export * from "./events/asset-updated-event";
|
|
7
9
|
export * from "./events/asset-deleted-event";
|
|
@@ -10,6 +12,7 @@ export * from "./events/site-updated-event";
|
|
|
10
12
|
export * from "./events/site-deleted-event";
|
|
11
13
|
export * from "./events/user-created-event";
|
|
12
14
|
export * from "./events/user-deleted-event";
|
|
15
|
+
|
|
13
16
|
export * from "./publishers/asset-created-publisher";
|
|
14
17
|
export * from "./publishers/asset-updated-publisher";
|
|
15
18
|
export * from "./publishers/asset-deleted-publisher";
|
|
@@ -18,3 +21,6 @@ export * from "./publishers/site-updated-publisher";
|
|
|
18
21
|
export * from "./publishers/site-deleted-publisher";
|
|
19
22
|
export * from "./publishers/user-created-publisher";
|
|
20
23
|
export * from "./publishers/user-deleted-publisher";
|
|
24
|
+
|
|
25
|
+
export * from "./types/localization/index";
|
|
26
|
+
export * from "./types/notifications/notification-type";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export enum NotificationType {
|
|
2
|
+
AssetCreated = "asset_created",
|
|
3
|
+
AssetUpdated = "asset_updated",
|
|
4
|
+
AssetDeleted = "asset_deleted",
|
|
5
|
+
SiteCreated = "site_created",
|
|
6
|
+
SiteUpdated = "site_updated",
|
|
7
|
+
SiteDeleted = "site_deleted",
|
|
8
|
+
UserCreated = "user_created",
|
|
9
|
+
UserDeleted = "user_deleted",
|
|
10
|
+
}
|