crisp-api 10.0.2 → 10.0.4
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 -2
- package/dist/crisp.d.ts +41 -29
- package/dist/crisp.js +43 -34
- package/dist/resources/BaseResource.d.ts +6 -0
- package/dist/resources/BaseResource.js +6 -0
- package/dist/resources/BucketURL.d.ts +9 -0
- package/dist/resources/BucketURL.js +6 -0
- package/dist/resources/MediaAnimation.d.ts +6 -0
- package/dist/resources/MediaAnimation.js +9 -1
- package/dist/resources/PluginConnect.d.ts +9 -0
- package/dist/resources/PluginConnect.js +6 -0
- package/dist/resources/PluginSubscription.d.ts +9 -0
- package/dist/resources/PluginSubscription.js +9 -1
- package/dist/resources/WebsiteAnalytics.d.ts +6 -0
- package/dist/resources/WebsiteAnalytics.js +9 -1
- package/dist/resources/WebsiteAvailability.d.ts +9 -0
- package/dist/resources/WebsiteAvailability.js +12 -2
- package/dist/resources/WebsiteBase.d.ts +9 -0
- package/dist/resources/WebsiteBase.js +6 -0
- package/dist/resources/WebsiteBatch.d.ts +9 -0
- package/dist/resources/WebsiteBatch.js +6 -0
- package/dist/resources/WebsiteCampaign.d.ts +9 -0
- package/dist/resources/WebsiteCampaign.js +8 -1
- package/dist/resources/WebsiteConversation.d.ts +9 -0
- package/dist/resources/WebsiteConversation.js +15 -3
- package/dist/resources/WebsiteHelpdesk.d.ts +15 -2
- package/dist/resources/WebsiteHelpdesk.js +6 -0
- package/dist/resources/WebsiteOperator.d.ts +9 -0
- package/dist/resources/WebsiteOperator.js +6 -0
- package/dist/resources/WebsitePeople.d.ts +9 -0
- package/dist/resources/WebsitePeople.js +6 -0
- package/dist/resources/WebsiteSettings.d.ts +9 -0
- package/dist/resources/WebsiteSettings.js +6 -0
- package/dist/resources/WebsiteVerify.d.ts +9 -0
- package/dist/resources/WebsiteVerify.js +6 -0
- package/dist/resources/WebsiteVisitors.d.ts +9 -0
- package/dist/resources/WebsiteVisitors.js +12 -2
- package/dist/resources/index.d.ts +3 -0
- package/dist/resources/index.js +3 -1
- package/dist/services/bucket.d.ts +6 -0
- package/dist/services/bucket.js +3 -0
- package/dist/services/media.d.ts +6 -0
- package/dist/services/media.js +3 -0
- package/dist/services/plugin.d.ts +6 -0
- package/dist/services/plugin.js +3 -0
- package/dist/services/website.d.ts +6 -0
- package/dist/services/website.js +3 -0
- package/lib/crisp.ts +123 -74
- package/lib/resources/BaseResource.ts +8 -0
- package/lib/resources/BucketURL.ts +12 -3
- package/lib/resources/MediaAnimation.ts +11 -1
- package/lib/resources/PluginConnect.ts +12 -5
- package/lib/resources/PluginSubscription.ts +36 -8
- package/lib/resources/WebsiteAnalytics.ts +11 -1
- package/lib/resources/WebsiteAvailability.ts +24 -4
- package/lib/resources/WebsiteBase.ts +14 -3
- package/lib/resources/WebsiteBatch.ts +24 -4
- package/lib/resources/WebsiteCampaign.ts +49 -16
- package/lib/resources/WebsiteConversation.ts +136 -45
- package/lib/resources/WebsiteHelpdesk.ts +81 -34
- package/lib/resources/WebsiteOperator.ts +28 -6
- package/lib/resources/WebsitePeople.ts +60 -19
- package/lib/resources/WebsiteSettings.ts +17 -2
- package/lib/resources/WebsiteVerify.ts +17 -3
- package/lib/resources/WebsiteVisitors.ts +32 -9
- package/lib/resources/index.ts +4 -1
- package/lib/services/bucket.ts +8 -0
- package/lib/services/media.ts +8 -0
- package/lib/services/plugin.ts +8 -0
- package/lib/services/website.ts +8 -0
- package/package.json +1 -1
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* CLASSES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
/**
|
|
6
9
|
* Crisp WebsiteAnalytics Resource
|
|
7
10
|
*/
|
|
@@ -11,4 +14,7 @@ declare class WebsiteAnalytics extends BaseResource {
|
|
|
11
14
|
*/
|
|
12
15
|
generateAnalytics(websiteID: string, query: object): Promise<any>;
|
|
13
16
|
}
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* EXPORTS
|
|
19
|
+
***************************************************************************/
|
|
14
20
|
export default WebsiteAnalytics;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteAnalytics Resource
|
|
19
22
|
*/
|
|
@@ -22,8 +25,13 @@ class WebsiteAnalytics extends BaseResource_1.default {
|
|
|
22
25
|
* Generate Analytics
|
|
23
26
|
*/
|
|
24
27
|
generateAnalytics(websiteID, query) {
|
|
25
|
-
return this.crisp.post(this.crisp.prepareRestUrl([
|
|
28
|
+
return this.crisp.post(this.crisp.prepareRestUrl([
|
|
29
|
+
"website", websiteID, "analytics", "generate"
|
|
30
|
+
]), null, query);
|
|
26
31
|
}
|
|
27
32
|
;
|
|
28
33
|
}
|
|
34
|
+
/**************************************************************************
|
|
35
|
+
* EXPORTS
|
|
36
|
+
***************************************************************************/
|
|
29
37
|
exports.default = WebsiteAnalytics;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* TYPES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
type WebsiteAvailabilityStatus = {
|
|
6
9
|
status?: string;
|
|
7
10
|
since?: number;
|
|
@@ -15,6 +18,9 @@ type WebsiteAvailabilityOperatorTime = {
|
|
|
15
18
|
for?: number;
|
|
16
19
|
since?: number;
|
|
17
20
|
};
|
|
21
|
+
/**************************************************************************
|
|
22
|
+
* CLASSES
|
|
23
|
+
***************************************************************************/
|
|
18
24
|
/**
|
|
19
25
|
* Crisp WebsiteAvailability Resource
|
|
20
26
|
*/
|
|
@@ -28,4 +34,7 @@ declare class WebsiteAvailability extends BaseResource {
|
|
|
28
34
|
*/
|
|
29
35
|
listWebsiteOperatorAvailabilities(websiteID: string): Promise<WebsiteAvailabilityOperator[]>;
|
|
30
36
|
}
|
|
37
|
+
/**************************************************************************
|
|
38
|
+
* EXPORTS
|
|
39
|
+
***************************************************************************/
|
|
31
40
|
export default WebsiteAvailability;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteAvailability Resource
|
|
19
22
|
*/
|
|
@@ -22,15 +25,22 @@ class WebsiteAvailability extends BaseResource_1.default {
|
|
|
22
25
|
* Get Website Availability Status
|
|
23
26
|
*/
|
|
24
27
|
getWebsiteAvailabilityStatus(websiteID) {
|
|
25
|
-
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
28
|
+
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
29
|
+
"website", websiteID, "availability", "status"
|
|
30
|
+
]));
|
|
26
31
|
}
|
|
27
32
|
;
|
|
28
33
|
/**
|
|
29
34
|
* List Website Operator Availabilities
|
|
30
35
|
*/
|
|
31
36
|
listWebsiteOperatorAvailabilities(websiteID) {
|
|
32
|
-
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
37
|
+
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
38
|
+
"website", websiteID, "availability", "operators"
|
|
39
|
+
]));
|
|
33
40
|
}
|
|
34
41
|
;
|
|
35
42
|
}
|
|
43
|
+
/**************************************************************************
|
|
44
|
+
* EXPORTS
|
|
45
|
+
***************************************************************************/
|
|
36
46
|
exports.default = WebsiteAvailability;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* TYPES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
type Website = {
|
|
6
9
|
website_id?: string;
|
|
7
10
|
name?: string;
|
|
@@ -22,6 +25,9 @@ export type WebsiteFilter = {
|
|
|
22
25
|
operator?: string;
|
|
23
26
|
query?: Record<string, unknown>;
|
|
24
27
|
};
|
|
28
|
+
/**************************************************************************
|
|
29
|
+
* CLASSES
|
|
30
|
+
***************************************************************************/
|
|
25
31
|
/**
|
|
26
32
|
* Crisp WebsiteBase Resource
|
|
27
33
|
*/
|
|
@@ -57,4 +63,7 @@ declare class WebsiteBase extends BaseResource {
|
|
|
57
63
|
*/
|
|
58
64
|
abortWebsiteDeletion(websiteID: string): Promise<any>;
|
|
59
65
|
}
|
|
66
|
+
/**************************************************************************
|
|
67
|
+
* EXPORTS
|
|
68
|
+
***************************************************************************/
|
|
60
69
|
export default WebsiteBase;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteBase Resource
|
|
19
22
|
*/
|
|
@@ -68,4 +71,7 @@ class WebsiteBase extends BaseResource_1.default {
|
|
|
68
71
|
}
|
|
69
72
|
;
|
|
70
73
|
}
|
|
74
|
+
/**************************************************************************
|
|
75
|
+
* EXPORTS
|
|
76
|
+
***************************************************************************/
|
|
71
77
|
exports.default = WebsiteBase;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* TYPES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
type WebsiteBatchConversationsOperation = {
|
|
6
9
|
inbox_id?: string;
|
|
7
10
|
sessions?: string[];
|
|
@@ -10,6 +13,9 @@ type WebsiteBatchPeopleOperationInner = {
|
|
|
10
13
|
profiles?: string[];
|
|
11
14
|
search?: string;
|
|
12
15
|
};
|
|
16
|
+
/**************************************************************************
|
|
17
|
+
* CLASSES
|
|
18
|
+
***************************************************************************/
|
|
13
19
|
/**
|
|
14
20
|
* Crisp WebsiteBatch Resource
|
|
15
21
|
*/
|
|
@@ -49,4 +55,7 @@ declare class WebsiteBatch extends BaseResource {
|
|
|
49
55
|
*/
|
|
50
56
|
batchRemovePeople(websiteID: string, people: WebsiteBatchPeopleOperationInner): Promise<any>;
|
|
51
57
|
}
|
|
58
|
+
/**************************************************************************
|
|
59
|
+
* EXPORTS
|
|
60
|
+
***************************************************************************/
|
|
52
61
|
export default WebsiteBatch;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteBatch Resource
|
|
19
22
|
*/
|
|
@@ -67,4 +70,7 @@ class WebsiteBatch extends BaseResource_1.default {
|
|
|
67
70
|
}
|
|
68
71
|
;
|
|
69
72
|
}
|
|
73
|
+
/**************************************************************************
|
|
74
|
+
* EXPORTS
|
|
75
|
+
***************************************************************************/
|
|
70
76
|
exports.default = WebsiteBatch;
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
5
|
import { WebsiteFilter } from "./WebsiteBase";
|
|
6
|
+
/**************************************************************************
|
|
7
|
+
* TYPES
|
|
8
|
+
***************************************************************************/
|
|
6
9
|
type WebsiteCampaignExcerpt = {
|
|
7
10
|
campaign_id?: string;
|
|
8
11
|
type?: string;
|
|
@@ -106,6 +109,9 @@ type WebsiteCampaignStatisticProfilePersonGeolocationCoordinates = {
|
|
|
106
109
|
latitude?: number;
|
|
107
110
|
longitude?: number;
|
|
108
111
|
};
|
|
112
|
+
/**************************************************************************
|
|
113
|
+
* CLASSES
|
|
114
|
+
***************************************************************************/
|
|
109
115
|
/**
|
|
110
116
|
* Crisp WebsiteCampaign Resource
|
|
111
117
|
*/
|
|
@@ -196,4 +202,7 @@ declare class WebsiteCampaign extends BaseResource {
|
|
|
196
202
|
*/
|
|
197
203
|
listCampaignStatistics(websiteID: string, campaignID: string, action: string, pageNumber?: number): Promise<WebsiteCampaignStatistic[]>;
|
|
198
204
|
}
|
|
205
|
+
/**************************************************************************
|
|
206
|
+
* EXPORTS
|
|
207
|
+
***************************************************************************/
|
|
199
208
|
export default WebsiteCampaign;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteCampaign Resource
|
|
19
22
|
*/
|
|
@@ -176,7 +179,8 @@ class WebsiteCampaign extends BaseResource_1.default {
|
|
|
176
179
|
*/
|
|
177
180
|
listCampaignRecipients(websiteID, campaignID, pageNumber = 1) {
|
|
178
181
|
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
179
|
-
"website", websiteID, "campaign", campaignID, "recipients",
|
|
182
|
+
"website", websiteID, "campaign", campaignID, "recipients",
|
|
183
|
+
String(pageNumber)
|
|
180
184
|
]));
|
|
181
185
|
}
|
|
182
186
|
;
|
|
@@ -191,4 +195,7 @@ class WebsiteCampaign extends BaseResource_1.default {
|
|
|
191
195
|
}
|
|
192
196
|
;
|
|
193
197
|
}
|
|
198
|
+
/**************************************************************************
|
|
199
|
+
* EXPORTS
|
|
200
|
+
***************************************************************************/
|
|
194
201
|
exports.default = WebsiteCampaign;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* TYPES + INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface Conversation {
|
|
6
9
|
session_id: string;
|
|
7
10
|
website_id: string;
|
|
@@ -460,6 +463,9 @@ export interface ConversationBrowsing {
|
|
|
460
463
|
export interface ConversationCall {
|
|
461
464
|
call_id?: string;
|
|
462
465
|
}
|
|
466
|
+
/**************************************************************************
|
|
467
|
+
* CLASSES
|
|
468
|
+
***************************************************************************/
|
|
463
469
|
/**
|
|
464
470
|
* Crisp WebsiteConversation Resource
|
|
465
471
|
* @class
|
|
@@ -698,4 +704,7 @@ declare class WebsiteConversation extends BaseResource {
|
|
|
698
704
|
*/
|
|
699
705
|
reportConversation(websiteID: string, sessionID: string, flag: string): Promise<any>;
|
|
700
706
|
}
|
|
707
|
+
/**************************************************************************
|
|
708
|
+
* EXPORTS
|
|
709
|
+
***************************************************************************/
|
|
701
710
|
export default WebsiteConversation;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteConversation Resource
|
|
19
22
|
* @class
|
|
@@ -106,21 +109,27 @@ class WebsiteConversation extends BaseResource_1.default {
|
|
|
106
109
|
* Check If Conversation Exists
|
|
107
110
|
*/
|
|
108
111
|
checkConversationExists(websiteID, sessionID) {
|
|
109
|
-
return this.crisp.head(this.crisp.prepareRestUrl([
|
|
112
|
+
return this.crisp.head(this.crisp.prepareRestUrl([
|
|
113
|
+
"website", websiteID, "conversation", sessionID
|
|
114
|
+
]));
|
|
110
115
|
}
|
|
111
116
|
;
|
|
112
117
|
/**
|
|
113
118
|
* Get A Conversation
|
|
114
119
|
*/
|
|
115
120
|
getConversation(websiteID, sessionID) {
|
|
116
|
-
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
121
|
+
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
122
|
+
"website", websiteID, "conversation", sessionID
|
|
123
|
+
]));
|
|
117
124
|
}
|
|
118
125
|
;
|
|
119
126
|
/**
|
|
120
127
|
* Remove A Conversation
|
|
121
128
|
*/
|
|
122
129
|
removeConversation(websiteID, sessionID) {
|
|
123
|
-
return this.crisp.delete(this.crisp.prepareRestUrl([
|
|
130
|
+
return this.crisp.delete(this.crisp.prepareRestUrl([
|
|
131
|
+
"website", websiteID, "conversation", sessionID
|
|
132
|
+
]));
|
|
124
133
|
}
|
|
125
134
|
;
|
|
126
135
|
/**
|
|
@@ -592,4 +601,7 @@ class WebsiteConversation extends BaseResource_1.default {
|
|
|
592
601
|
}
|
|
593
602
|
;
|
|
594
603
|
}
|
|
604
|
+
/**************************************************************************
|
|
605
|
+
* EXPORTS
|
|
606
|
+
***************************************************************************/
|
|
595
607
|
exports.default = WebsiteConversation;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface Helpdesk {
|
|
6
9
|
name?: string;
|
|
7
10
|
url?: string;
|
|
@@ -32,6 +35,10 @@ export interface HelpdeskLocaleArticleAlternate {
|
|
|
32
35
|
locale?: string;
|
|
33
36
|
article_id?: string;
|
|
34
37
|
}
|
|
38
|
+
export interface HelpdeskLocaleArticlePage {
|
|
39
|
+
title?: string;
|
|
40
|
+
url?: string;
|
|
41
|
+
}
|
|
35
42
|
export interface HelpdeskLocaleSection {
|
|
36
43
|
section_id?: string;
|
|
37
44
|
name?: string;
|
|
@@ -123,6 +130,9 @@ export interface HelpdeskDomain {
|
|
|
123
130
|
custom?: string;
|
|
124
131
|
verified?: boolean;
|
|
125
132
|
}
|
|
133
|
+
/**************************************************************************
|
|
134
|
+
* CLASSES
|
|
135
|
+
***************************************************************************/
|
|
126
136
|
/**
|
|
127
137
|
* Crisp WebsiteHelpdesk Resource
|
|
128
138
|
*/
|
|
@@ -146,7 +156,7 @@ declare class WebsiteHelpdesk extends BaseResource {
|
|
|
146
156
|
/**
|
|
147
157
|
* List Helpdesk Locales
|
|
148
158
|
*/
|
|
149
|
-
listHelpdeskLocales(websiteID: string, pageNumber?: number): Promise<
|
|
159
|
+
listHelpdeskLocales(websiteID: string, pageNumber?: number): Promise<HelpdeskLocale[]>;
|
|
150
160
|
/**
|
|
151
161
|
* Add Helpdesk Locale
|
|
152
162
|
*/
|
|
@@ -194,7 +204,7 @@ declare class WebsiteHelpdesk extends BaseResource {
|
|
|
194
204
|
/**
|
|
195
205
|
* Resolve Helpdesk Locale Article Page
|
|
196
206
|
*/
|
|
197
|
-
resolveHelpdeskLocaleArticlePage(websiteID: string, locale: string, articleId: string): Promise<
|
|
207
|
+
resolveHelpdeskLocaleArticlePage(websiteID: string, locale: string, articleId: string): Promise<HelpdeskLocaleArticlePage>;
|
|
198
208
|
/**
|
|
199
209
|
* Resolve Helpdesk Locale Article Category
|
|
200
210
|
*/
|
|
@@ -344,4 +354,7 @@ declare class WebsiteHelpdesk extends BaseResource {
|
|
|
344
354
|
*/
|
|
345
355
|
generateHelpdeskDomainSetupFlow(websiteID: string, custom?: string | null): Promise<any>;
|
|
346
356
|
}
|
|
357
|
+
/**************************************************************************
|
|
358
|
+
* EXPORTS
|
|
359
|
+
***************************************************************************/
|
|
347
360
|
export default WebsiteHelpdesk;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteHelpdesk Resource
|
|
19
22
|
*/
|
|
@@ -584,4 +587,7 @@ class WebsiteHelpdesk extends BaseResource_1.default {
|
|
|
584
587
|
}
|
|
585
588
|
;
|
|
586
589
|
}
|
|
590
|
+
/**************************************************************************
|
|
591
|
+
* EXPORTS
|
|
592
|
+
***************************************************************************/
|
|
587
593
|
exports.default = WebsiteHelpdesk;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface WebsiteOperatorListOne {
|
|
6
9
|
type?: string;
|
|
7
10
|
details?: WebsiteOperator;
|
|
@@ -39,6 +42,9 @@ export interface WebsiteOperatorEmailTarget {
|
|
|
39
42
|
label?: string;
|
|
40
43
|
url?: string;
|
|
41
44
|
}
|
|
45
|
+
/**************************************************************************
|
|
46
|
+
* CLASSES
|
|
47
|
+
***************************************************************************/
|
|
42
48
|
/**
|
|
43
49
|
* Crisp WebsiteOperator Resource
|
|
44
50
|
*/
|
|
@@ -76,4 +82,7 @@ declare class WebsiteOperatorService extends BaseResource {
|
|
|
76
82
|
*/
|
|
77
83
|
unlinkOperatorFromWebsite(websiteID: string, userID: string): Promise<any>;
|
|
78
84
|
}
|
|
85
|
+
/**************************************************************************
|
|
86
|
+
* EXPORTS
|
|
87
|
+
***************************************************************************/
|
|
79
88
|
export default WebsiteOperatorService;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteOperator Resource
|
|
19
22
|
*/
|
|
@@ -90,4 +93,7 @@ class WebsiteOperatorService extends BaseResource_1.default {
|
|
|
90
93
|
}
|
|
91
94
|
;
|
|
92
95
|
}
|
|
96
|
+
/**************************************************************************
|
|
97
|
+
* EXPORTS
|
|
98
|
+
***************************************************************************/
|
|
93
99
|
exports.default = WebsiteOperatorService;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface PeopleStatistics {
|
|
6
9
|
total?: number;
|
|
7
10
|
}
|
|
@@ -138,6 +141,9 @@ export interface PeopleProfileImportSetupOptions {
|
|
|
138
141
|
column_separator?: string;
|
|
139
142
|
skip_header?: boolean;
|
|
140
143
|
}
|
|
144
|
+
/**************************************************************************
|
|
145
|
+
* CLASSES
|
|
146
|
+
***************************************************************************/
|
|
141
147
|
/**
|
|
142
148
|
* Crisp WebsitePeople Resource
|
|
143
149
|
* @class
|
|
@@ -245,4 +251,7 @@ declare class WebsitePeople extends BaseResource {
|
|
|
245
251
|
*/
|
|
246
252
|
importPeopleProfiles(websiteID: string, importSetup: PeopleProfileImportSetup): Promise<any>;
|
|
247
253
|
}
|
|
254
|
+
/**************************************************************************
|
|
255
|
+
* EXPORTS
|
|
256
|
+
***************************************************************************/
|
|
248
257
|
export default WebsitePeople;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsitePeople Resource
|
|
19
22
|
* @class
|
|
@@ -273,4 +276,7 @@ class WebsitePeople extends BaseResource_1.default {
|
|
|
273
276
|
}
|
|
274
277
|
;
|
|
275
278
|
}
|
|
279
|
+
/**************************************************************************
|
|
280
|
+
* EXPORTS
|
|
281
|
+
***************************************************************************/
|
|
276
282
|
exports.default = WebsitePeople;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface WebsiteSettings {
|
|
6
9
|
websiteID?: string;
|
|
7
10
|
name?: string;
|
|
@@ -143,6 +146,9 @@ export interface WebsiteSettingsUpdateChatbox {
|
|
|
143
146
|
blocked_locales?: string[];
|
|
144
147
|
blocked_ips?: string[];
|
|
145
148
|
}
|
|
149
|
+
/**************************************************************************
|
|
150
|
+
* CLASSES
|
|
151
|
+
***************************************************************************/
|
|
146
152
|
/**
|
|
147
153
|
* Crisp WebsiteSettings Resource
|
|
148
154
|
*/
|
|
@@ -156,4 +162,7 @@ declare class WebsiteSettingsService extends BaseResource {
|
|
|
156
162
|
*/
|
|
157
163
|
updateWebsiteSettings(websiteID: string, settings: WebsiteSettingsUpdate): Promise<any>;
|
|
158
164
|
}
|
|
165
|
+
/**************************************************************************
|
|
166
|
+
* EXPORTS
|
|
167
|
+
***************************************************************************/
|
|
159
168
|
export default WebsiteSettingsService;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteSettings Resource
|
|
19
22
|
*/
|
|
@@ -33,4 +36,7 @@ class WebsiteSettingsService extends BaseResource_1.default {
|
|
|
33
36
|
}
|
|
34
37
|
;
|
|
35
38
|
}
|
|
39
|
+
/**************************************************************************
|
|
40
|
+
* EXPORTS
|
|
41
|
+
***************************************************************************/
|
|
36
42
|
exports.default = WebsiteSettingsService;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface WebsiteVerifyKeyData {
|
|
6
9
|
data?: WebsiteVerifyKey;
|
|
7
10
|
}
|
|
@@ -14,6 +17,9 @@ export interface WebsiteVerifyKey {
|
|
|
14
17
|
export interface WebsiteVerifySettingsUpdate {
|
|
15
18
|
enabled?: boolean;
|
|
16
19
|
}
|
|
20
|
+
/**************************************************************************
|
|
21
|
+
* CLASSES
|
|
22
|
+
***************************************************************************/
|
|
17
23
|
/**
|
|
18
24
|
* Crisp WebsiteVerify Resource
|
|
19
25
|
*/
|
|
@@ -35,4 +41,7 @@ declare class WebsiteVerify extends BaseResource {
|
|
|
35
41
|
*/
|
|
36
42
|
rollVerifyKey(websiteID: string): Promise<any>;
|
|
37
43
|
}
|
|
44
|
+
/**************************************************************************
|
|
45
|
+
* EXPORTS
|
|
46
|
+
***************************************************************************/
|
|
38
47
|
export default WebsiteVerify;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteVerify Resource
|
|
19
22
|
*/
|
|
@@ -47,4 +50,7 @@ class WebsiteVerify extends BaseResource_1.default {
|
|
|
47
50
|
}
|
|
48
51
|
;
|
|
49
52
|
}
|
|
53
|
+
/**************************************************************************
|
|
54
|
+
* EXPORTS
|
|
55
|
+
***************************************************************************/
|
|
50
56
|
exports.default = WebsiteVerify;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
***************************************************************************/
|
|
4
4
|
import BaseResource from "./BaseResource";
|
|
5
|
+
/**************************************************************************
|
|
6
|
+
* INTERFACES
|
|
7
|
+
***************************************************************************/
|
|
5
8
|
export interface WebsiteVisitorCount {
|
|
6
9
|
count?: number;
|
|
7
10
|
active?: number;
|
|
@@ -77,6 +80,9 @@ export interface WebsiteVisitorsBlocked {
|
|
|
77
80
|
rule?: string[];
|
|
78
81
|
blocked?: number;
|
|
79
82
|
}
|
|
83
|
+
/**************************************************************************
|
|
84
|
+
* CLASSES
|
|
85
|
+
***************************************************************************/
|
|
80
86
|
/**
|
|
81
87
|
* Crisp WebsiteVisitors Resource
|
|
82
88
|
*/
|
|
@@ -110,4 +116,7 @@ declare class WebsiteVisitors extends BaseResource {
|
|
|
110
116
|
*/
|
|
111
117
|
clearBlockedVisitorsInRule(websiteID: string, rule: string): Promise<any>;
|
|
112
118
|
}
|
|
119
|
+
/**************************************************************************
|
|
120
|
+
* EXPORTS
|
|
121
|
+
***************************************************************************/
|
|
113
122
|
export default WebsiteVisitors;
|
|
@@ -14,6 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
***************************************************************************/
|
|
15
15
|
// PROJECT: RESOURCES
|
|
16
16
|
const BaseResource_1 = __importDefault(require("./BaseResource"));
|
|
17
|
+
/**************************************************************************
|
|
18
|
+
* CLASSES
|
|
19
|
+
***************************************************************************/
|
|
17
20
|
/**
|
|
18
21
|
* Crisp WebsiteVisitors Resource
|
|
19
22
|
*/
|
|
@@ -74,15 +77,22 @@ class WebsiteVisitors extends BaseResource_1.default {
|
|
|
74
77
|
* Count Blocked Visitors In Rule
|
|
75
78
|
*/
|
|
76
79
|
countBlockedVisitorsInRule(websiteID, rule) {
|
|
77
|
-
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
80
|
+
return this.crisp.get(this.crisp.prepareRestUrl([
|
|
81
|
+
"website", websiteID, "visitors", "blocked", rule
|
|
82
|
+
]));
|
|
78
83
|
}
|
|
79
84
|
;
|
|
80
85
|
/**
|
|
81
86
|
* Clear Blocked Visitors In Rule
|
|
82
87
|
*/
|
|
83
88
|
clearBlockedVisitorsInRule(websiteID, rule) {
|
|
84
|
-
return this.crisp.delete(this.crisp.prepareRestUrl([
|
|
89
|
+
return this.crisp.delete(this.crisp.prepareRestUrl([
|
|
90
|
+
"website", websiteID, "visitors", "blocked", rule
|
|
91
|
+
]));
|
|
85
92
|
}
|
|
86
93
|
;
|
|
87
94
|
}
|
|
95
|
+
/**************************************************************************
|
|
96
|
+
* EXPORTS
|
|
97
|
+
***************************************************************************/
|
|
88
98
|
exports.default = WebsiteVisitors;
|