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
@@ -45,7 +45,7 @@ const AVAILABLE_RTM_MODES = [
45
45
  "websockets",
46
46
  "webhooks"
47
47
  ];
48
- const VERSION = "10.0.3";
48
+ const VERSION = "10.0.4";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -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<any>;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "10.0.3",
4
+ "version": "10.0.4",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {