crisp-api 5.2.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/CHANGELOG.md CHANGED
@@ -1,6 +1,34 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v6.1.0
5
+
6
+ ### New Features
7
+
8
+ * Added the new `CrispClient.website.removeMessageInConversation` method.
9
+ * Added support for the `message:removed` RTM API event.
10
+
11
+ ## v6.0.0
12
+
13
+ ### Breaking Changes
14
+
15
+ * Support for NodeJS 6 has been removed. The minimum version is now NodeJS 8.
16
+ * The `CrispClient.on` method now returns a `Promise`. Please update your code accordingly. We do recommend that you add error catchers.
17
+
18
+ ### New Features
19
+
20
+ * 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.
21
+
22
+ ### Bug Fixes
23
+
24
+ * Fixed an issue where the library would not reconnect to the RTM API when it lost connection with the server.
25
+
26
+ ## v5.3.0
27
+
28
+ ### New Features
29
+
30
+ * Added the new `CrispClient.plugin.getConnectEndpoints` method.
31
+
4
32
  ## v5.2.0
5
33
 
6
34
  ### Changes
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";
@@ -1452,6 +1462,12 @@ CrispClient.plugin.listAllConnectWebsites(pageNumber, filterConfigured, dateSinc
1452
1462
 
1453
1463
  =========================
1454
1464
 
1465
+ https://docs.crisp.chat/references/rest-api/v1/#get-connect-endpoints
1466
+
1467
+ CrispClient.plugin.getConnectEndpoints();
1468
+
1469
+ =========================
1470
+
1455
1471
  https://docs.crisp.chat/references/rest-api/v1/#list-all-active-subscriptions
1456
1472
 
1457
1473
  CrispClient.plugin.listAllActiveSubscriptions();
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Crisp
3
+ Copyright (c) 2022 Crisp
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal