@forge/notification 0.3.7-next.0 → 0.3.7-next.1
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 +8 -0
- package/out/notification-api.js +2 -2
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
package/out/notification-api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotificationApi = void 0;
|
|
4
4
|
const api_1 = require("@forge/api");
|
|
5
|
-
const
|
|
5
|
+
const crypto_1 = require("crypto");
|
|
6
6
|
const fetch_1 = require("./fetch");
|
|
7
7
|
const validators_1 = require("./validators");
|
|
8
8
|
const util_1 = require("./util");
|
|
@@ -13,7 +13,7 @@ class NotificationApi {
|
|
|
13
13
|
}
|
|
14
14
|
async sendNotification(payload) {
|
|
15
15
|
(0, validators_1.validateNotificationPayload)(payload);
|
|
16
|
-
const triggerId = (0,
|
|
16
|
+
const triggerId = (0, crypto_1.randomUUID)();
|
|
17
17
|
const notificationPORequest = (0, util_1.createNotificationPORequest)(payload, triggerId);
|
|
18
18
|
const response = await (0, fetch_1.post)(fetch_1.POST_OFFICE_FORGE_NOTIFICATION_PATH, notificationPORequest, this.apiClient);
|
|
19
19
|
await (0, validators_1.validateAPIResponse)(response);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/notification",
|
|
3
|
-
"version": "0.3.7-next.
|
|
3
|
+
"version": "0.3.7-next.1",
|
|
4
4
|
"description": "Forge Notification SDK",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -10,12 +10,10 @@
|
|
|
10
10
|
"compile": "tsc -b -v"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/api": "^7.2.0-next.
|
|
14
|
-
"uuid": "^9.0.1"
|
|
13
|
+
"@forge/api": "^7.2.0-next.1"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@types/node": "20.19.1",
|
|
18
|
-
"@types/uuid": "^9.0.8",
|
|
19
17
|
"expect-type": "^0.17.3",
|
|
20
18
|
"jest-when": "^3.6.0"
|
|
21
19
|
},
|