crisp-api 10.0.3 → 10.0.5
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 +25 -1
- package/dist/crisp.js +1 -1
- package/dist/resources/PluginConnect.d.ts +2 -2
- package/dist/resources/PluginSubscription.d.ts +5 -5
- package/dist/resources/WebsiteHelpdesk.d.ts +5 -1
- package/lib/resources/PluginConnect.ts +2 -2
- package/lib/resources/PluginSubscription.ts +5 -5
- package/lib/resources/WebsiteHelpdesk.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## v10.0.5
|
|
5
|
+
|
|
6
|
+
### Changes
|
|
7
|
+
|
|
8
|
+
* Provide more types.
|
|
9
|
+
|
|
10
|
+
## v10.0.4
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
* Provide more types.
|
|
15
|
+
|
|
4
16
|
## v10.0.3
|
|
5
17
|
|
|
6
|
-
|
|
18
|
+
### Changes
|
|
19
|
+
|
|
20
|
+
* Provide more types.
|
|
21
|
+
|
|
22
|
+
## v10.0.2
|
|
23
|
+
|
|
24
|
+
### Changes
|
|
25
|
+
|
|
26
|
+
* No changes.
|
|
7
27
|
|
|
8
28
|
## v10.0.1
|
|
9
29
|
|
|
30
|
+
### Changes
|
|
31
|
+
|
|
10
32
|
* Routes supporting pagination can be used without a page argument (page is set to `1` by default).
|
|
11
33
|
|
|
12
34
|
## v10.0.0
|
|
13
35
|
|
|
36
|
+
### New Features
|
|
37
|
+
|
|
14
38
|
* Added TypeScript support (retro-compatible).
|
|
15
39
|
|
|
16
40
|
## v9.13.0
|
package/dist/crisp.js
CHANGED
|
@@ -8,7 +8,7 @@ import BaseResource from "./BaseResource";
|
|
|
8
8
|
export type PluginConnectAccount = {
|
|
9
9
|
plugin_id?: string;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type PluginConnectAllWebsite = {
|
|
12
12
|
website_id?: string;
|
|
13
13
|
token?: string;
|
|
14
14
|
settings?: object;
|
|
@@ -43,7 +43,7 @@ declare class PluginConnect extends BaseResource {
|
|
|
43
43
|
/**
|
|
44
44
|
* List All Connect Websites
|
|
45
45
|
*/
|
|
46
|
-
listAllConnectWebsites(pageNumber: number, filterConfigured: boolean): Promise<
|
|
46
|
+
listAllConnectWebsites(pageNumber: number, filterConfigured: boolean): Promise<PluginConnectAllWebsite[]>;
|
|
47
47
|
/**
|
|
48
48
|
* List Connect Websites Since
|
|
49
49
|
*/
|
|
@@ -5,7 +5,7 @@ import BaseResource from "./BaseResource";
|
|
|
5
5
|
/**************************************************************************
|
|
6
6
|
* TYPES
|
|
7
7
|
***************************************************************************/
|
|
8
|
-
type PluginSubscription = {
|
|
8
|
+
export type PluginSubscription = {
|
|
9
9
|
id?: string;
|
|
10
10
|
urn?: string;
|
|
11
11
|
type?: string;
|
|
@@ -27,12 +27,12 @@ type PluginSubscription = {
|
|
|
27
27
|
website_id?: string;
|
|
28
28
|
card_id?: string;
|
|
29
29
|
};
|
|
30
|
-
type PluginSubscriptionPlan = {
|
|
30
|
+
export type PluginSubscriptionPlan = {
|
|
31
31
|
id?: string;
|
|
32
32
|
name?: string;
|
|
33
33
|
price?: number;
|
|
34
34
|
};
|
|
35
|
-
type PluginSubscriptionSettings = {
|
|
35
|
+
export type PluginSubscriptionSettings = {
|
|
36
36
|
plugin_id?: string;
|
|
37
37
|
website_id?: string;
|
|
38
38
|
token?: string;
|
|
@@ -41,12 +41,12 @@ type PluginSubscriptionSettings = {
|
|
|
41
41
|
settings_form_url?: string;
|
|
42
42
|
callback_url?: string;
|
|
43
43
|
};
|
|
44
|
-
type PluginSubscriptionChannelForward = {
|
|
44
|
+
export type PluginSubscriptionChannelForward = {
|
|
45
45
|
namespace?: string;
|
|
46
46
|
identifier?: string;
|
|
47
47
|
payload?: object;
|
|
48
48
|
};
|
|
49
|
-
type PluginSubscriptionEventDispatch = {
|
|
49
|
+
export type PluginSubscriptionEventDispatch = {
|
|
50
50
|
name?: string;
|
|
51
51
|
data?: object;
|
|
52
52
|
};
|
|
@@ -35,6 +35,10 @@ export interface HelpdeskLocaleArticleAlternate {
|
|
|
35
35
|
locale?: string;
|
|
36
36
|
article_id?: string;
|
|
37
37
|
}
|
|
38
|
+
export interface HelpdeskLocaleArticlePage {
|
|
39
|
+
title?: string;
|
|
40
|
+
url?: string;
|
|
41
|
+
}
|
|
38
42
|
export interface HelpdeskLocaleSection {
|
|
39
43
|
section_id?: string;
|
|
40
44
|
name?: string;
|
|
@@ -200,7 +204,7 @@ declare class WebsiteHelpdesk extends BaseResource {
|
|
|
200
204
|
/**
|
|
201
205
|
* Resolve Helpdesk Locale Article Page
|
|
202
206
|
*/
|
|
203
|
-
resolveHelpdeskLocaleArticlePage(websiteID: string, locale: string, articleId: string): Promise<
|
|
207
|
+
resolveHelpdeskLocaleArticlePage(websiteID: string, locale: string, articleId: string): Promise<HelpdeskLocaleArticlePage>;
|
|
204
208
|
/**
|
|
205
209
|
* Resolve Helpdesk Locale Article Category
|
|
206
210
|
*/
|
|
@@ -20,7 +20,7 @@ export type PluginConnectAccount = {
|
|
|
20
20
|
plugin_id?: string;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
export type
|
|
23
|
+
export type PluginConnectAllWebsite = {
|
|
24
24
|
website_id?: string;
|
|
25
25
|
token?: string;
|
|
26
26
|
settings?: object;
|
|
@@ -74,7 +74,7 @@ class PluginConnect extends BaseResource {
|
|
|
74
74
|
*/
|
|
75
75
|
listAllConnectWebsites(
|
|
76
76
|
pageNumber: number, filterConfigured: boolean
|
|
77
|
-
): Promise<
|
|
77
|
+
): Promise<PluginConnectAllWebsite[]> {
|
|
78
78
|
// Generate query
|
|
79
79
|
let query = {
|
|
80
80
|
filter_configured: (
|
|
@@ -16,7 +16,7 @@ import BaseResource from "./BaseResource";
|
|
|
16
16
|
* TYPES
|
|
17
17
|
***************************************************************************/
|
|
18
18
|
|
|
19
|
-
type PluginSubscription = {
|
|
19
|
+
export type PluginSubscription = {
|
|
20
20
|
id?: string;
|
|
21
21
|
urn?: string;
|
|
22
22
|
type?: string;
|
|
@@ -39,13 +39,13 @@ type PluginSubscription = {
|
|
|
39
39
|
card_id?: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
type PluginSubscriptionPlan = {
|
|
42
|
+
export type PluginSubscriptionPlan = {
|
|
43
43
|
id?: string;
|
|
44
44
|
name?: string;
|
|
45
45
|
price?: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
type PluginSubscriptionSettings = {
|
|
48
|
+
export type PluginSubscriptionSettings = {
|
|
49
49
|
plugin_id?: string;
|
|
50
50
|
website_id?: string;
|
|
51
51
|
token?: string;
|
|
@@ -55,13 +55,13 @@ type PluginSubscriptionSettings = {
|
|
|
55
55
|
callback_url?: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
type PluginSubscriptionChannelForward = {
|
|
58
|
+
export type PluginSubscriptionChannelForward = {
|
|
59
59
|
namespace?: string;
|
|
60
60
|
identifier?: string;
|
|
61
61
|
payload?: object;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
type PluginSubscriptionEventDispatch = {
|
|
64
|
+
export type PluginSubscriptionEventDispatch = {
|
|
65
65
|
name?: string;
|
|
66
66
|
data?: object;
|
|
67
67
|
}
|
|
@@ -52,6 +52,11 @@ export interface HelpdeskLocaleArticleAlternate {
|
|
|
52
52
|
article_id?: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export interface HelpdeskLocaleArticlePage {
|
|
56
|
+
title?: string;
|
|
57
|
+
url?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
55
60
|
export interface HelpdeskLocaleSection {
|
|
56
61
|
section_id?: string;
|
|
57
62
|
name?: string;
|
|
@@ -392,7 +397,7 @@ class WebsiteHelpdesk extends BaseResource {
|
|
|
392
397
|
*/
|
|
393
398
|
resolveHelpdeskLocaleArticlePage(
|
|
394
399
|
websiteID: string, locale: string, articleId: string
|
|
395
|
-
) {
|
|
400
|
+
) : Promise<HelpdeskLocaleArticlePage> {
|
|
396
401
|
return this.crisp.get(
|
|
397
402
|
this.crisp.prepareRestUrl([
|
|
398
403
|
"website", websiteID, "helpdesk", "locale", locale, "article",
|
package/package.json
CHANGED