crisp-api 5.3.0 → 6.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,35 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v6.2.0
5
+
6
+ ### New Features
7
+
8
+ * Added the new `CrispClient.website.getVerifyStatusForConversation` method.
9
+ * Added the new `CrispClient.website.updateVerifyStatusForConversation` method.
10
+
11
+ ## v6.1.0
12
+
13
+ ### New Features
14
+
15
+ * Added the new `CrispClient.website.removeMessageInConversation` method.
16
+ * Added support for the `message:removed` RTM API event.
17
+
18
+ ## v6.0.0
19
+
20
+ ### Breaking Changes
21
+
22
+ * Support for NodeJS 6 has been removed. The minimum version is now NodeJS 8.
23
+ * The `CrispClient.on` method now returns a `Promise`. Please update your code accordingly. We do recommend that you add error catchers.
24
+
25
+ ### New Features
26
+
27
+ * The RTM API URL is now dynamically pulled from the REST API, based on the authentication tier. This allows for (much) more efficient message routing at Crisp scale, and offers performance and stability benefits to your integration.
28
+
29
+ ### Bug Fixes
30
+
31
+ * Fixed an issue where the library would not reconnect to the RTM API when it lost connection with the server.
32
+
4
33
  ## v5.3.0
5
34
 
6
35
  ### New Features
package/EXAMPLES.md CHANGED
@@ -137,6 +137,16 @@ CrispClient.website.updateMessageInConversation(websiteID, sessionID, fingerprin
137
137
 
138
138
  =========================
139
139
 
140
+ https://docs.crisp.chat/references/rest-api/v1/#remove-a-message-in-conversation
141
+
142
+ var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
143
+ var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
144
+ var fingerprint = 524653764345;
145
+
146
+ CrispClient.website.removeMessageInConversation(websiteID, sessionID, fingerprint);
147
+
148
+ =========================
149
+
140
150
  https://docs.crisp.chat/references/rest-api/v1/#compose-a-message-in-conversation
141
151
 
142
152
  var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
@@ -349,6 +359,26 @@ CrispClient.website.blockIncomingMessagesForConversation(websiteID, sessionID, b
349
359
 
350
360
  =========================
351
361
 
362
+ https://docs.crisp.chat/references/rest-api/v1/#get-verify-status-for-conversation
363
+
364
+ var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
365
+ var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
366
+
367
+ CrispClient.website.getVerifyStatusForConversation(websiteID, sessionID);
368
+
369
+ =========================
370
+
371
+ https://docs.crisp.chat/references/rest-api/v1/#update-verify-status-for-conversation
372
+
373
+ var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
374
+ var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
375
+
376
+ var verified = true;
377
+
378
+ CrispClient.website.updateVerifyStatusForConversation(websiteID, sessionID, verified);
379
+
380
+ =========================
381
+
352
382
  https://docs.crisp.chat/references/rest-api/v1/#request-email-transcript-for-conversation
353
383
 
354
384
  var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";