crisp-api 10.4.0 → 10.5.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v10.5.0
5
+
6
+ ### New Features
7
+
8
+ * Added support for the `plan:subscription:updated` RTM API event.
9
+
4
10
  ## v10.4.0
5
11
 
6
12
  ### New Features
package/README.md CHANGED
@@ -3824,3 +3824,7 @@ Available events are listed below:
3824
3824
  * `plugin:event`
3825
3825
  * **Plugin Settings Saved** [`user`, `plugin`]:
3826
3826
  * `plugin:settings:saved`
3827
+
3828
+ * #### **Plan Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#plan-events)
3829
+ * **Plan Subscription Updated** [`user`, `plugin`]:
3830
+ * `plan:subscription:updated`
package/dist/crisp.js CHANGED
@@ -46,7 +46,7 @@ const AVAILABLE_RTM_MODES = [
46
46
  "websockets",
47
47
  "webhooks"
48
48
  ];
49
- const VERSION = "10.4.0";
49
+ const VERSION = "10.5.0";
50
50
  // Base configuration
51
51
  const DEFAULT_REQUEST_TIMEOUT = 10000;
52
52
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -155,7 +155,9 @@ const DEFAULT_RTM_EVENTS = [
155
155
  // Plugin Events
156
156
  "plugin:channel",
157
157
  "plugin:event",
158
- "plugin:settings:saved"
158
+ "plugin:settings:saved",
159
+ // Plan Events
160
+ "plan:subscription:updated"
159
161
  ];
160
162
  // REST API services
161
163
  const services = {
package/lib/crisp.ts CHANGED
@@ -168,7 +168,10 @@ const DEFAULT_RTM_EVENTS = [
168
168
  // Plugin Events
169
169
  "plugin:channel",
170
170
  "plugin:event",
171
- "plugin:settings:saved"
171
+ "plugin:settings:saved",
172
+
173
+ // Plan Events
174
+ "plan:subscription:updated"
172
175
  ];
173
176
 
174
177
  // REST API services
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "10.4.0",
4
+ "version": "10.5.0",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {