crisp-api 10.6.0 → 10.6.1
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
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The Crisp API Node wrapper. Authenticate, send messages, fetch conversations, ac
|
|
|
6
6
|
|
|
7
7
|
Copyright 2026 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:
|
|
9
|
+
* **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 09/01/2026
|
|
10
10
|
* **😘 Maintainers**: [@baptistejamin](https://github.com/baptistejamin), [@eliottvincent](https://github.com/eliottvincent), [@valeriansaliou](https://github.com/valeriansaliou)
|
|
11
11
|
|
|
12
12
|
## Installation
|
package/dist/crisp.js
CHANGED
|
@@ -8,17 +8,18 @@ import BaseResource from "./BaseResource";
|
|
|
8
8
|
export type PluginConnectAccount = {
|
|
9
9
|
plugin_id?: string;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
12
|
-
website_id?: string;
|
|
13
|
-
token?: string;
|
|
14
|
-
settings?: object;
|
|
15
|
-
};
|
|
16
|
-
export type PluginConnectWebsitesSince = {
|
|
11
|
+
export type PluginConnectWebsite = {
|
|
17
12
|
website_id?: string;
|
|
18
13
|
token?: string;
|
|
19
14
|
settings?: object;
|
|
15
|
+
plan?: PluginConnectWebsitePlan;
|
|
20
16
|
difference?: string;
|
|
21
17
|
};
|
|
18
|
+
export type PluginConnectWebsitePlan = {
|
|
19
|
+
id?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
trialing?: boolean;
|
|
22
|
+
};
|
|
22
23
|
export type PluginConnectEndpoints = {
|
|
23
24
|
socket?: PluginConnectEndpointsSocket;
|
|
24
25
|
rescue?: PluginConnectEndpointsRescue;
|
|
@@ -47,11 +48,11 @@ declare class PluginConnect extends BaseResource {
|
|
|
47
48
|
/**
|
|
48
49
|
* List All Connect Websites
|
|
49
50
|
*/
|
|
50
|
-
listAllConnectWebsites(pageNumber: number, filterConfigured: boolean, includePlan: boolean): Promise<
|
|
51
|
+
listAllConnectWebsites(pageNumber: number, filterConfigured: boolean, includePlan: boolean): Promise<PluginConnectWebsite[]>;
|
|
51
52
|
/**
|
|
52
53
|
* List Connect Websites Since
|
|
53
54
|
*/
|
|
54
|
-
listConnectWebsitesSince(dateSince: string, filterConfigured: boolean, includePlan: boolean): Promise<
|
|
55
|
+
listConnectWebsitesSince(dateSince: string, filterConfigured: boolean, includePlan: boolean): Promise<PluginConnectWebsite[]>;
|
|
55
56
|
/**
|
|
56
57
|
* Get Connect Endpoints
|
|
57
58
|
*/
|
|
@@ -21,6 +21,9 @@ export type WebsiteInboxCondition = {
|
|
|
21
21
|
operator?: "eq" | "neq" | "gte" | "lte" | "gt" | "lt";
|
|
22
22
|
query?: string[];
|
|
23
23
|
};
|
|
24
|
+
export type WebsiteInboxNew = {
|
|
25
|
+
inbox_id?: string;
|
|
26
|
+
};
|
|
24
27
|
export type WebsiteInboxOrders = {
|
|
25
28
|
orders?: WebsiteInboxOrder[];
|
|
26
29
|
};
|
|
@@ -46,7 +49,7 @@ declare class WebsiteInboxService extends BaseResource {
|
|
|
46
49
|
/**
|
|
47
50
|
* Create A New Inbox
|
|
48
51
|
*/
|
|
49
|
-
createNewInbox(websiteID: string, inbox: WebsiteInbox): Promise<
|
|
52
|
+
createNewInbox(websiteID: string, inbox: WebsiteInbox): Promise<WebsiteInboxNew>;
|
|
50
53
|
/**
|
|
51
54
|
* Check If Inbox Exists
|
|
52
55
|
*/
|
|
@@ -20,19 +20,20 @@ export type PluginConnectAccount = {
|
|
|
20
20
|
plugin_id?: string;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
export type
|
|
24
|
-
website_id?: string;
|
|
25
|
-
token?: string;
|
|
26
|
-
settings?: object;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type PluginConnectWebsitesSince = {
|
|
23
|
+
export type PluginConnectWebsite = {
|
|
30
24
|
website_id?: string;
|
|
31
25
|
token?: string;
|
|
32
26
|
settings?: object;
|
|
27
|
+
plan?: PluginConnectWebsitePlan;
|
|
33
28
|
difference?: string;
|
|
34
29
|
}
|
|
35
30
|
|
|
31
|
+
export type PluginConnectWebsitePlan = {
|
|
32
|
+
id?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
trialing?: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
36
37
|
export type PluginConnectEndpoints = {
|
|
37
38
|
socket?: PluginConnectEndpointsSocket;
|
|
38
39
|
rescue?: PluginConnectEndpointsRescue;
|
|
@@ -79,7 +80,7 @@ class PluginConnect extends BaseResource {
|
|
|
79
80
|
*/
|
|
80
81
|
listAllConnectWebsites(
|
|
81
82
|
pageNumber: number, filterConfigured: boolean, includePlan: boolean
|
|
82
|
-
): Promise<
|
|
83
|
+
): Promise<PluginConnectWebsite[]> {
|
|
83
84
|
// Generate query
|
|
84
85
|
let query = {
|
|
85
86
|
filter_configured: (
|
|
@@ -105,7 +106,7 @@ class PluginConnect extends BaseResource {
|
|
|
105
106
|
*/
|
|
106
107
|
listConnectWebsitesSince(
|
|
107
108
|
dateSince: string, filterConfigured: boolean, includePlan: boolean
|
|
108
|
-
): Promise<
|
|
109
|
+
): Promise<PluginConnectWebsite[]> {
|
|
109
110
|
// Generate query
|
|
110
111
|
let query = {
|
|
111
112
|
filter_configured: (
|
|
@@ -34,6 +34,10 @@ export type WebsiteInboxCondition = {
|
|
|
34
34
|
query?: string[];
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
export type WebsiteInboxNew = {
|
|
38
|
+
inbox_id?: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
37
41
|
export type WebsiteInboxOrders = {
|
|
38
42
|
orders?: WebsiteInboxOrder[];
|
|
39
43
|
}
|
|
@@ -80,7 +84,9 @@ class WebsiteInboxService extends BaseResource {
|
|
|
80
84
|
/**
|
|
81
85
|
* Create A New Inbox
|
|
82
86
|
*/
|
|
83
|
-
createNewInbox(
|
|
87
|
+
createNewInbox(
|
|
88
|
+
websiteID: string, inbox: WebsiteInbox
|
|
89
|
+
): Promise<WebsiteInboxNew> {
|
|
84
90
|
return this.crisp.post(
|
|
85
91
|
this.crisp.prepareRestUrl(["website", websiteID, "inbox"]), null, inbox
|
|
86
92
|
);
|
package/package.json
CHANGED