crisp-api 8.2.1 → 8.2.3
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 +12 -0
- package/README.md +4 -2
- package/lib/resources/WebsiteHelpdesk.js +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## v8.2.3
|
|
5
|
+
|
|
6
|
+
### Changes
|
|
7
|
+
|
|
8
|
+
* Use a `github:` prefix for dependency `fbemitter` to fix issue 59 related to Yarn 3
|
|
9
|
+
|
|
10
|
+
## v8.2.2
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
* Added an options parameter on `CrispClient.website.listHelpdeskLocales(websiteID, pageNumber, options)`
|
|
15
|
+
|
|
4
16
|
## v8.2.1
|
|
5
17
|
|
|
6
18
|
### Changes
|
package/README.md
CHANGED
|
@@ -1409,7 +1409,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
1409
1409
|
</details>
|
|
1410
1410
|
|
|
1411
1411
|
* **List Helpdesk Locales** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-helpdesk-locales)
|
|
1412
|
-
* `CrispClient.website.listHelpdeskLocales(websiteID, pageNumber)`
|
|
1412
|
+
* `CrispClient.website.listHelpdeskLocales(websiteID, pageNumber, options={})`
|
|
1413
1413
|
* <details>
|
|
1414
1414
|
<summary>See Example</summary>
|
|
1415
1415
|
|
|
@@ -1417,7 +1417,9 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
1417
1417
|
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
|
1418
1418
|
var pageNumber = 1;
|
|
1419
1419
|
|
|
1420
|
-
CrispClient.website.listHelpdeskLocales(websiteID, pageNumber
|
|
1420
|
+
CrispClient.website.listHelpdeskLocales(websiteID, pageNumber, {
|
|
1421
|
+
order_visits : "1"
|
|
1422
|
+
});
|
|
1421
1423
|
```
|
|
1422
1424
|
</details>
|
|
1423
1425
|
|
|
@@ -180,14 +180,18 @@ function WebsiteHelpdesk(service, crisp) {
|
|
|
180
180
|
* @param {string} websiteID
|
|
181
181
|
* @param {string} locale
|
|
182
182
|
* @param {number} pageNumber
|
|
183
|
+
* @param {object} [options]
|
|
183
184
|
* @return {Promise}
|
|
184
185
|
*/
|
|
185
|
-
service.listHelpdeskLocaleArticles = function(
|
|
186
|
+
service.listHelpdeskLocaleArticles = function(
|
|
187
|
+
websiteID, locale, pageNumber, options = {}) {
|
|
186
188
|
return crisp.get(
|
|
187
189
|
crisp._prepareRestUrl([
|
|
188
190
|
"website", websiteID, "helpdesk", "locale", locale, "articles",
|
|
189
191
|
pageNumber
|
|
190
|
-
])
|
|
192
|
+
]),
|
|
193
|
+
|
|
194
|
+
options
|
|
191
195
|
);
|
|
192
196
|
};
|
|
193
197
|
|
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.2.
|
|
4
|
+
"version": "8.2.3",
|
|
5
5
|
"homepage": "https://github.com/crisp-im/node-crisp-api",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"socket.io-client": "4.7.2",
|
|
52
|
-
"fbemitter": "
|
|
52
|
+
"fbemitter": "github:crisp-dev/emitter#695f60594bdca0c876e5c232de57702ab3151b6f",
|
|
53
53
|
"got": "11.8.5"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|