crisp-api 10.8.1 → 10.8.2
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 +6 -0
- package/EXAMPLES.md +2 -0
- package/README.md +5 -3
- package/dist/crisp.js +1 -1
- package/dist/resources/WebsiteHelpdesk.d.ts +12 -4
- package/dist/resources/WebsiteSettings.d.ts +5 -0
- package/lib/resources/WebsiteHelpdesk.ts +12 -4
- package/lib/resources/WebsiteSettings.ts +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/EXAMPLES.md
CHANGED
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ To authenticate against the API, obtain your authentication token keypair by fol
|
|
|
22
22
|
Then, add authentication parameters to your `client` instance right after you create it:
|
|
23
23
|
|
|
24
24
|
```javascript
|
|
25
|
-
var Crisp = require("crisp-api");
|
|
25
|
+
var { Crisp } = require("crisp-api");
|
|
26
26
|
var CrispClient = new Crisp();
|
|
27
27
|
|
|
28
28
|
// Authenticate to API with your plugin token (identifier, key)
|
|
@@ -37,7 +37,7 @@ CrispClient.authenticateTier("plugin", identifier, key);
|
|
|
37
37
|
You may follow the [REST API Quickstart](https://docs.crisp.chat/guides/rest-api/quickstart/) guide, which will get you running with the REST API in minutes.
|
|
38
38
|
|
|
39
39
|
```javascript
|
|
40
|
-
var Crisp = require("crisp-api");
|
|
40
|
+
var { Crisp } = require("crisp-api");
|
|
41
41
|
var CrispClient = new Crisp();
|
|
42
42
|
|
|
43
43
|
CrispClient.authenticateTier("plugin", identifier, key);
|
|
@@ -56,7 +56,7 @@ CrispClient.website.listConversations(websiteID, 1)
|
|
|
56
56
|
### Create your own bot!
|
|
57
57
|
|
|
58
58
|
```javascript
|
|
59
|
-
var Crisp = require("crisp-api");
|
|
59
|
+
var { Crisp } = require("crisp-api");
|
|
60
60
|
var CrispClient = new Crisp();
|
|
61
61
|
|
|
62
62
|
CrispClient.authenticateTier("plugin", identifier, key);
|
|
@@ -2492,6 +2492,8 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
2492
2492
|
"visitor_compose": false,
|
|
2493
2493
|
"file_transfer": true,
|
|
2494
2494
|
"audio_record": true,
|
|
2495
|
+
"mode_initial": "chat",
|
|
2496
|
+
"home": true,
|
|
2495
2497
|
"overlay_search": true,
|
|
2496
2498
|
"overlay_mode": false,
|
|
2497
2499
|
"helpdesk_link": true,
|
package/dist/crisp.js
CHANGED
|
@@ -21,11 +21,19 @@ export interface HelpdeskLocale {
|
|
|
21
21
|
categories?: number;
|
|
22
22
|
}
|
|
23
23
|
export interface HelpdeskLocaleArticle {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
article_id?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
description?: string | null;
|
|
27
|
+
content?: string;
|
|
28
|
+
status?: "published" | "draft";
|
|
29
|
+
visibility?: "visible" | "hidden";
|
|
30
|
+
featured?: boolean;
|
|
31
|
+
visits?: number;
|
|
32
|
+
order?: number;
|
|
26
33
|
url?: string;
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
created_at?: number;
|
|
35
|
+
updated_at?: number;
|
|
36
|
+
published_at?: number;
|
|
29
37
|
}
|
|
30
38
|
export interface HelpdeskLocaleArticleCategory {
|
|
31
39
|
category_id?: string;
|
|
@@ -61,6 +61,8 @@ export interface WebsiteSettingsChatbox {
|
|
|
61
61
|
visitor_compose?: boolean;
|
|
62
62
|
file_transfer?: boolean;
|
|
63
63
|
audio_record?: boolean;
|
|
64
|
+
mode_initial?: string;
|
|
65
|
+
home?: boolean;
|
|
64
66
|
overlay_search?: boolean;
|
|
65
67
|
overlay_mode?: boolean;
|
|
66
68
|
helpdesk_link?: boolean;
|
|
@@ -78,6 +80,7 @@ export interface WebsiteSettingsChatbox {
|
|
|
78
80
|
blocked_pages?: string[];
|
|
79
81
|
blocked_countries?: string[];
|
|
80
82
|
blocked_locales?: string[];
|
|
83
|
+
blocked_ips?: string[];
|
|
81
84
|
}
|
|
82
85
|
export interface WebsiteSettingsUpdate {
|
|
83
86
|
websiteID?: string;
|
|
@@ -135,6 +138,8 @@ export interface WebsiteSettingsUpdateChatbox {
|
|
|
135
138
|
visitor_compose?: boolean;
|
|
136
139
|
file_transfer?: boolean;
|
|
137
140
|
audio_record?: boolean;
|
|
141
|
+
mode_initial?: string;
|
|
142
|
+
home?: boolean;
|
|
138
143
|
overlay_search?: boolean;
|
|
139
144
|
overlay_mode?: boolean;
|
|
140
145
|
helpdesk_link?: boolean;
|
|
@@ -35,11 +35,19 @@ export interface HelpdeskLocale {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export interface HelpdeskLocaleArticle {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
article_id?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
description?: string | null;
|
|
41
|
+
content?: string;
|
|
42
|
+
status?: "published" | "draft";
|
|
43
|
+
visibility?: "visible" | "hidden";
|
|
44
|
+
featured?: boolean;
|
|
45
|
+
visits?: number;
|
|
46
|
+
order?: number;
|
|
40
47
|
url?: string;
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
created_at?: number;
|
|
49
|
+
updated_at?: number;
|
|
50
|
+
published_at?: number;
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
export interface HelpdeskLocaleArticleCategory {
|
|
@@ -77,6 +77,8 @@ export interface WebsiteSettingsChatbox {
|
|
|
77
77
|
visitor_compose?: boolean;
|
|
78
78
|
file_transfer?: boolean;
|
|
79
79
|
audio_record?: boolean;
|
|
80
|
+
mode_initial?: string;
|
|
81
|
+
home?: boolean;
|
|
80
82
|
overlay_search?: boolean;
|
|
81
83
|
overlay_mode?: boolean;
|
|
82
84
|
helpdesk_link?: boolean;
|
|
@@ -94,6 +96,7 @@ export interface WebsiteSettingsChatbox {
|
|
|
94
96
|
blocked_pages?: string[];
|
|
95
97
|
blocked_countries?: string[];
|
|
96
98
|
blocked_locales?: string[];
|
|
99
|
+
blocked_ips?: string[];
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
export interface WebsiteSettingsUpdate {
|
|
@@ -157,6 +160,8 @@ export interface WebsiteSettingsUpdateChatbox {
|
|
|
157
160
|
visitor_compose?: boolean;
|
|
158
161
|
file_transfer?: boolean;
|
|
159
162
|
audio_record?: boolean;
|
|
163
|
+
mode_initial?: string;
|
|
164
|
+
home?: boolean;
|
|
160
165
|
overlay_search?: boolean;
|
|
161
166
|
overlay_mode?: boolean;
|
|
162
167
|
helpdesk_link?: boolean;
|
package/package.json
CHANGED