crisp-api 10.0.9 → 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 +20 -2
- package/dist/crisp.d.ts +1 -1
- package/dist/crisp.js +1 -1
- package/dist/resources/WebsiteConversation.d.ts +1 -1
- package/lib/crisp.ts +1 -1
- package/lib/resources/WebsiteConversation.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## v10.0.11
|
|
5
|
+
|
|
6
|
+
### Changes
|
|
7
|
+
|
|
8
|
+
* Fix Conversation Custom data type.
|
|
9
|
+
|
|
10
|
+
## v10.0.10
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
* Allow any as return type to the Websocket .on() callback.
|
|
15
|
+
|
|
16
|
+
## v10.0.9
|
|
17
|
+
|
|
18
|
+
### Changes
|
|
19
|
+
|
|
20
|
+
* Export missing types.
|
|
21
|
+
|
|
4
22
|
## v10.0.8
|
|
5
23
|
|
|
6
24
|
### Changes
|
|
7
25
|
|
|
8
|
-
* `nickname` is now optional on ConversationMeta
|
|
26
|
+
* `nickname` is now optional on ConversationMeta.
|
|
9
27
|
|
|
10
28
|
## v10.0.7
|
|
11
29
|
|
|
12
30
|
### Changes
|
|
13
31
|
|
|
14
|
-
* Support types for `address`, `subject` and `origin` on ConversationMeta
|
|
32
|
+
* Support types for `address`, `subject` and `origin` on ConversationMeta.
|
|
15
33
|
|
|
16
34
|
## v10.0.6
|
|
17
35
|
|
package/dist/crisp.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export declare class Crisp {
|
|
|
108
108
|
/**
|
|
109
109
|
* Binds RTM event
|
|
110
110
|
*/
|
|
111
|
-
on(event: string, callback: (data: any) =>
|
|
111
|
+
on(event: string, callback: (data: any) => any): Promise<unknown>;
|
|
112
112
|
/**
|
|
113
113
|
* Receives a raw event and dispatches it to the listener (used for Web Hooks)
|
|
114
114
|
*/
|
package/dist/crisp.js
CHANGED
package/lib/crisp.ts
CHANGED
|
@@ -406,7 +406,7 @@ export class Crisp {
|
|
|
406
406
|
* Binds RTM event
|
|
407
407
|
*/
|
|
408
408
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, no-unused-vars
|
|
409
|
-
on(event: string, callback: (data: any) =>
|
|
409
|
+
on(event: string, callback: (data: any) => any) {
|
|
410
410
|
// Ensure all input arguments are set
|
|
411
411
|
if (typeof event !== "string") {
|
|
412
412
|
throw new Error("[Crisp] on: parameter event should be a string");
|
|
@@ -111,7 +111,7 @@ export interface ConversationMeta {
|
|
|
111
111
|
phone?: string;
|
|
112
112
|
ip?: string;
|
|
113
113
|
avatar?: string;
|
|
114
|
-
data?: Record<string,
|
|
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.
|
|
4
|
+
"version": "10.0.11",
|
|
5
5
|
"homepage": "https://github.com/crisp-im/node-crisp-api",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typescript": "5.9.2",
|
|
50
50
|
"eslint": "9.29.0",
|
|
51
51
|
"eslint-plugin-crisp": "1.1.13",
|
|
52
|
-
"eslint-plugin-jsdoc": "
|
|
52
|
+
"eslint-plugin-jsdoc": "50.8.0",
|
|
53
53
|
"globals": "15.15.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|