crisp-api 10.0.10 → 10.0.11

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
+ ## v10.0.11
5
+
6
+ ### Changes
7
+
8
+ * Fix Conversation Custom data type.
9
+
4
10
  ## v10.0.10
5
11
 
6
12
  ### 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.10";
48
+ const VERSION = "10.0.11";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -87,7 +87,7 @@ export interface ConversationMeta {
87
87
  phone?: string;
88
88
  ip?: string;
89
89
  avatar?: string;
90
- data?: Record<string, unknown>;
90
+ data?: Record<string, string | boolean | number>;
91
91
  connection?: ConnectionInfo;
92
92
  device?: DeviceInfo;
93
93
  segments?: string[];
@@ -111,7 +111,7 @@ export interface ConversationMeta {
111
111
  phone?: string;
112
112
  ip?: string;
113
113
  avatar?: string;
114
- data?: Record<string, unknown>;
114
+ data?: Record<string, string|boolean|number>;
115
115
  connection?: ConnectionInfo;
116
116
  device?: DeviceInfo;
117
117
  segments?: string[];
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.10",
4
+ "version": "10.0.11",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {