crisp-api 8.3.2 → 8.4.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
+ ## v8.4.0
5
+
6
+ ### New Features
7
+
8
+ * Added the new `CrispClient.website.abortWebsiteDeletion` method.
9
+
4
10
  ## v8.3.2
5
11
 
6
12
  ### New Features
package/EXAMPLES.md CHANGED
@@ -1548,6 +1548,14 @@ CrispClient.website.deleteWebsite(websiteID, verify);
1548
1548
 
1549
1549
  =========================
1550
1550
 
1551
+ https://docs.crisp.chat/references/rest-api/v1/#abort-website-deletion
1552
+
1553
+ var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
1554
+
1555
+ CrispClient.website.abortWebsiteDeletion(websiteID);
1556
+
1557
+ =========================
1558
+
1551
1559
  https://docs.crisp.chat/references/rest-api/v1/#get-website-settings
1552
1560
 
1553
1561
  var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
@@ -1597,6 +1605,8 @@ var settings = {
1597
1605
  "ignore_privacy": false,
1598
1606
  "visitor_compose": false,
1599
1607
  "file_transfer": true,
1608
+ "overlay_search": true,
1609
+ "overlay_mode": false,
1600
1610
  "helpdesk_link": true,
1601
1611
  "helpdesk_only": false,
1602
1612
  "status_health_dead": true,
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Crisp API Node wrapper. Authenticate, send messages, fetch conversations, ac
6
6
 
7
7
  Copyright 2023 Crisp IM SAS. See LICENSE for copying information.
8
8
 
9
- * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 10/04/2024
9
+ * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 12/07/2024
10
10
  * **😘 Maintainers**: [@baptistejamin](https://github.com/baptistejamin), [@eliottvincent](https://github.com/eliottvincent), [@valeriansaliou](https://github.com/valeriansaliou)
11
11
 
12
12
  ## Installation
@@ -2260,6 +2260,18 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
2260
2260
  ```
2261
2261
  </details>
2262
2262
 
2263
+ * **Abort Website Deletion** [`user`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#abort-website-deletion)
2264
+ * `CrispClient.website.abortWebsiteDeletion(websiteID)`
2265
+ * <details>
2266
+ <summary>See Example</summary>
2267
+
2268
+ ```javascript
2269
+ var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
2270
+
2271
+ CrispClient.website.abortWebsiteDeletion(websiteID);
2272
+ ```
2273
+ </details>
2274
+
2263
2275
 
2264
2276
  * #### **Website Settings**
2265
2277
  * **Get Website Settings** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-website-settings)
@@ -2319,6 +2331,8 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
2319
2331
  "ignore_privacy": false,
2320
2332
  "visitor_compose": false,
2321
2333
  "file_transfer": true,
2334
+ "overlay_search": true,
2335
+ "overlay_mode": false,
2322
2336
  "helpdesk_link": true,
2323
2337
  "helpdesk_only": false,
2324
2338
  "status_health_dead": true,
@@ -79,6 +79,20 @@ function WebsiteBase(service, crisp) {
79
79
  }
80
80
  );
81
81
  };
82
+
83
+ /**
84
+ * Abort Website Deletion
85
+ * @memberof WebsiteBase
86
+ * @public
87
+ * @method abortWebsiteDeletion
88
+ * @param {string} websiteID
89
+ * @return {Promise}
90
+ */
91
+ service.abortWebsiteDeletion = function(websiteID) {
92
+ return crisp.delete(
93
+ crisp._prepareRestUrl(["website", websiteID, "expunge"])
94
+ );
95
+ };
82
96
  }
83
97
 
84
98
 
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": "8.3.2",
4
+ "version": "8.4.0",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {