crisp-api 10.0.5 → 10.0.7

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,18 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v10.0.6
5
+
6
+ ### Changes
7
+
8
+ * Support types for `address`, `subject` and `origin` on ConversationMeta
9
+
10
+ ## v10.0.6
11
+
12
+ ### Changes
13
+
14
+ * Provide more types.
15
+
4
16
  ## v10.0.5
5
17
 
6
18
  ### Changes
package/dist/crisp.js CHANGED
@@ -45,7 +45,7 @@ const AVAILABLE_RTM_MODES = [
45
45
  "websockets",
46
46
  "webhooks"
47
47
  ];
48
- const VERSION = "10.0.5";
48
+ const VERSION = "10.0.7";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -47,7 +47,7 @@ declare class PluginConnect extends BaseResource {
47
47
  /**
48
48
  * List Connect Websites Since
49
49
  */
50
- listConnectWebsitesSince(dateSince: string, filterConfigured: boolean): Promise<PluginConnectWebsitesSince>;
50
+ listConnectWebsitesSince(dateSince: string, filterConfigured: boolean): Promise<PluginConnectWebsitesSince[]>;
51
51
  /**
52
52
  * Get Connect Endpoints
53
53
  */
@@ -91,6 +91,9 @@ export interface ConversationMeta {
91
91
  connection?: ConnectionInfo;
92
92
  device?: DeviceInfo;
93
93
  segments?: string[];
94
+ address?: string;
95
+ subject?: string;
96
+ origin?: string;
94
97
  }
95
98
  export interface ConnectionInfo {
96
99
  isp?: string;
@@ -96,7 +96,7 @@ class PluginConnect extends BaseResource {
96
96
  */
97
97
  listConnectWebsitesSince(
98
98
  dateSince: string, filterConfigured: boolean
99
- ): Promise<PluginConnectWebsitesSince> {
99
+ ): Promise<PluginConnectWebsitesSince[]> {
100
100
  // Generate query
101
101
  let query = {
102
102
  filter_configured: (
@@ -115,6 +115,9 @@ export interface ConversationMeta {
115
115
  connection?: ConnectionInfo;
116
116
  device?: DeviceInfo;
117
117
  segments?: string[];
118
+ address?: string;
119
+ subject?: string;
120
+ origin?: string;
118
121
  }
119
122
 
120
123
  export interface ConnectionInfo {
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": "10.0.5",
4
+ "version": "10.0.7",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {