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 CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v5.3.0
5
+
6
+ ### New Features
7
+
8
+ * Added the new `CrispClient.plugin.getConnectEndpoints` method.
9
+
4
10
  ## v5.2.0
5
11
 
6
12
  ### Changes
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
@@ -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
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 2021 Crisp IM SAS. See LICENSE for copying information.
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: 10/04/2022
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** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#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** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#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** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#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 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Valerian Saliou <valerian@valeriansaliou.name>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * node-crisp-api
3
3
  *
4
- * Copyright 2021, Crisp IM SAS
4
+ * Copyright 2022, Crisp IM SAS
5
5
  * Author: Baptiste Jamin <baptiste@crisp.chat>
6
6
  */
7
7
 
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": "5.2.0",
4
+ "version": "5.3.0",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {