crisp-api 5.2.0 → 5.3.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 +6 -0
- package/EXAMPLES.md +6 -0
- package/LICENSE +1 -1
- package/README.md +16 -6
- package/lib/crisp.js +1 -1
- package/lib/resources/BucketURL.js +1 -1
- package/lib/resources/MediaAnimation.js +1 -1
- package/lib/resources/PluginConnect.js +13 -1
- package/lib/resources/PluginSubscription.js +1 -1
- package/lib/resources/WebsiteAnalytics.js +1 -1
- package/lib/resources/WebsiteAvailability.js +1 -1
- package/lib/resources/WebsiteBase.js +1 -1
- package/lib/resources/WebsiteBatch.js +1 -1
- package/lib/resources/WebsiteCampaign.js +1 -1
- package/lib/resources/WebsiteConversation.js +1 -1
- package/lib/resources/WebsiteOperator.js +1 -1
- package/lib/resources/WebsitePeople.js +1 -1
- package/lib/resources/WebsiteSettings.js +1 -1
- package/lib/resources/WebsiteVerify.js +1 -1
- package/lib/resources/WebsiteVisitors.js +1 -1
- package/lib/services/Bucket.js +1 -1
- package/lib/services/Media.js +1 -1
- package/lib/services/Plugin.js +1 -1
- package/lib/services/Website.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/EXAMPLES.md
CHANGED
|
@@ -1452,6 +1452,12 @@ CrispClient.plugin.listAllConnectWebsites(pageNumber, filterConfigured, dateSinc
|
|
|
1452
1452
|
|
|
1453
1453
|
=========================
|
|
1454
1454
|
|
|
1455
|
+
https://docs.crisp.chat/references/rest-api/v1/#get-connect-endpoints
|
|
1456
|
+
|
|
1457
|
+
CrispClient.plugin.getConnectEndpoints();
|
|
1458
|
+
|
|
1459
|
+
=========================
|
|
1460
|
+
|
|
1455
1461
|
https://docs.crisp.chat/references/rest-api/v1/#list-all-active-subscriptions
|
|
1456
1462
|
|
|
1457
1463
|
CrispClient.plugin.listAllActiveSubscriptions();
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
The Crisp API Node wrapper. Authenticate, send messages, fetch conversations, access your agent accounts from your JavaScript code.
|
|
6
6
|
|
|
7
|
-
Copyright
|
|
7
|
+
Copyright 2022 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:
|
|
9
|
+
* **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 22/04/2022
|
|
10
10
|
* **😘 Maintainers**: [@baptistejamin](https://github.com/baptistejamin), [@eliottvincent](https://github.com/eliottvincent), [@valeriansaliou](https://github.com/valeriansaliou)
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
@@ -2103,7 +2103,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
2103
2103
|
### Plugin
|
|
2104
2104
|
|
|
2105
2105
|
* #### **Plugin Connect**
|
|
2106
|
-
* **⭐ Get Connect Account** [`
|
|
2106
|
+
* **⭐ Get Connect Account** [`plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-connect-account)
|
|
2107
2107
|
* `CrispClient.plugin.getConnectAccount()`
|
|
2108
2108
|
* <details>
|
|
2109
2109
|
<summary>See Example</summary>
|
|
@@ -2113,7 +2113,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
2113
2113
|
```
|
|
2114
2114
|
</details>
|
|
2115
2115
|
|
|
2116
|
-
* **⭐ Check Connect Session Validity** [`
|
|
2116
|
+
* **⭐ Check Connect Session Validity** [`plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#check-connect-session-validity)
|
|
2117
2117
|
* `CrispClient.plugin.checkConnectSessionValidity()`
|
|
2118
2118
|
* <details>
|
|
2119
2119
|
<summary>See Example</summary>
|
|
@@ -2123,18 +2123,28 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
2123
2123
|
```
|
|
2124
2124
|
</details>
|
|
2125
2125
|
|
|
2126
|
-
* **⭐ List All Connect Websites** [`
|
|
2126
|
+
* **⭐ List All Connect Websites** [`plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-all-connect-websites)
|
|
2127
2127
|
* `CrispClient.plugin.listAllConnectWebsites(pageNumber, filterConfigured, dateSince)`
|
|
2128
2128
|
* <details>
|
|
2129
2129
|
<summary>See Example</summary>
|
|
2130
2130
|
|
|
2131
2131
|
```javascript
|
|
2132
2132
|
var pageNumber = 1;
|
|
2133
|
-
|
|
2133
|
+
|
|
2134
2134
|
CrispClient.plugin.listAllConnectWebsites(pageNumber, filterConfigured, dateSince);
|
|
2135
2135
|
```
|
|
2136
2136
|
</details>
|
|
2137
2137
|
|
|
2138
|
+
* **⭐ Get Connect Endpoints** [`plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-connect-endpoints)
|
|
2139
|
+
* `CrispClient.plugin.getConnectEndpoints()`
|
|
2140
|
+
* <details>
|
|
2141
|
+
<summary>See Example</summary>
|
|
2142
|
+
|
|
2143
|
+
```javascript
|
|
2144
|
+
CrispClient.plugin.getConnectEndpoints();
|
|
2145
|
+
```
|
|
2146
|
+
</details>
|
|
2147
|
+
|
|
2138
2148
|
|
|
2139
2149
|
* #### **Plugin Subscription**
|
|
2140
2150
|
* **List All Active Subscriptions** [`user`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-all-active-subscriptions)
|
package/lib/crisp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* node-crisp-api
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2022, Crisp IM SAS
|
|
5
5
|
* Author: Baptiste Jamin <baptiste@crisp.chat>
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -69,6 +69,18 @@ function PluginConnect(service, crisp) {
|
|
|
69
69
|
_query
|
|
70
70
|
);
|
|
71
71
|
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get Connect Endpoints
|
|
75
|
+
* @memberof PluginConnect
|
|
76
|
+
* @method getConnectEndpoints
|
|
77
|
+
* @return Promise
|
|
78
|
+
*/
|
|
79
|
+
service.getConnectEndpoints = function() {
|
|
80
|
+
return crisp.get(
|
|
81
|
+
crisp._prepareRestUrl(["plugin", "connect", "endpoints"]), {}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
|
|
74
86
|
|
package/lib/services/Bucket.js
CHANGED
package/lib/services/Media.js
CHANGED
package/lib/services/Plugin.js
CHANGED
package/lib/services/Website.js
CHANGED
package/package.json
CHANGED