crisp-api 10.0.3 → 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/dist/crisp.js
CHANGED
|
@@ -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
|
*/
|
|
@@ -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