crisp-api 6.0.0 → 6.1.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/lib/crisp.js CHANGED
@@ -68,6 +68,7 @@ Crisp.DEFAULT_RTM_EVENTS = [
68
68
  "message:updated",
69
69
  "message:send",
70
70
  "message:received",
71
+ "message:removed",
71
72
  "message:compose:send",
72
73
  "message:compose:receive",
73
74
  "message:acknowledge:read:send",
@@ -238,6 +238,22 @@ function WebsiteConversation(service, crisp) {
238
238
  );
239
239
  };
240
240
 
241
+ /**
242
+ * Remove A Message In Conversation
243
+ * @memberof WebsiteConversation
244
+ * @method removeMessageInConversation
245
+ * @return Promise
246
+ */
247
+ service.removeMessageInConversation = function(
248
+ websiteID, sessionID, fingerprint
249
+ ) {
250
+ return crisp.delete(
251
+ crisp._prepareRestUrl([
252
+ "website", websiteID, "conversation", sessionID, "message", fingerprint
253
+ ])
254
+ );
255
+ };
256
+
241
257
  /**
242
258
  * Compose A Message In Conversation
243
259
  * @memberof WebsiteConversation
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": "6.0.0",
4
+ "version": "6.1.0",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {