@forge/notification 0.2.0-next.1 → 0.2.0

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +0 -28
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @forge/notification
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3b828b6: Cleanup unsupported API
8
+
9
+ ### Patch Changes
10
+
11
+ - b55cfc3: Fix README
12
+ - Updated dependencies [16e7d61]
13
+ - @forge/api@6.4.2
14
+
15
+ ## 0.2.0-next.2
16
+
17
+ ### Patch Changes
18
+
19
+ - b55cfc3: Fix README
20
+
3
21
  ## 0.2.0-next.1
4
22
 
5
23
  ### Minor Changes
package/README.md CHANGED
@@ -39,33 +39,5 @@ try {
39
39
  }
40
40
  ```
41
41
 
42
- ### Checking the status of a notification delivery
43
-
44
- ```typescript
45
- import {
46
- NotificationApi,
47
- RecipientType,
48
- DeliveryChannel,
49
- InvalidPayloadError,
50
- RateLimitError,
51
- InternalServerError
52
- } from '@forge/notification';
53
-
54
- try {
55
- const notificationApi = new NotificationApi();
56
-
57
- const statusResponse = await notificationApi.getNotificationStatus('triggerId', 'userId', RecipientType.ACCOUNT_ID, DeliveryChannel.EMAIL);
58
- console.log('Notification status:', statusResponse.latestStatus);
59
- } catch (error) {
60
- if (error instanceof InvalidPayloadError) {
61
- console.error('Invalid payload:', error.message);
62
- } else if (error instanceof RateLimitError) {
63
- console.error('Rate limit exceeded:', error.message);
64
- } else if (error instanceof InternalServerError) {
65
- console.error('Server error:', error.message);
66
- }
67
- }
68
- ```
69
-
70
42
  ## Errors
71
43
  The SDK throws validation and API Errors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/notification",
3
- "version": "0.2.0-next.1",
3
+ "version": "0.2.0",
4
4
  "description": "Forge Notification SDK",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "compile": "tsc -b -v"
11
11
  },
12
12
  "dependencies": {
13
- "@forge/api": "^6.4.2-next.0",
13
+ "@forge/api": "^6.4.2",
14
14
  "uuid": "^9.0.1"
15
15
  },
16
16
  "devDependencies": {