crisp-api 10.0.6 → 10.0.8

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.8
5
+
6
+ ### Changes
7
+
8
+ * `nickname` is now optional on ConversationMeta
9
+
10
+ ## v10.0.7
11
+
12
+ ### Changes
13
+
14
+ * Support types for `address`, `subject` and `origin` on ConversationMeta
15
+
4
16
  ## v10.0.6
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.6";
48
+ const VERSION = "10.0.8";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -82,7 +82,7 @@ export interface ConversationParticipantsSave {
82
82
  participants?: ConversationParticipant[];
83
83
  }
84
84
  export interface ConversationMeta {
85
- nickname: string;
85
+ nickname?: string;
86
86
  email?: string;
87
87
  phone?: string;
88
88
  ip?: string;
@@ -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;
@@ -106,7 +106,7 @@ export interface ConversationParticipantsSave {
106
106
  }
107
107
 
108
108
  export interface ConversationMeta {
109
- nickname: string;
109
+ nickname?: string;
110
110
  email?: string;
111
111
  phone?: string;
112
112
  ip?: string;
@@ -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.6",
4
+ "version": "10.0.8",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {