crisp-api 10.0.4 → 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 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
- # Return missing type on website.listHelpdeskLocales
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
@@ -45,7 +45,7 @@ const AVAILABLE_RTM_MODES = [
45
45
  "websockets",
46
46
  "webhooks"
47
47
  ];
48
- const VERSION = "10.0.4";
48
+ const VERSION = "10.0.5";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -8,7 +8,7 @@ import BaseResource from "./BaseResource";
8
8
  export type PluginConnectAccount = {
9
9
  plugin_id?: string;
10
10
  };
11
- export type PluginConnectAllWebsites = {
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<PluginConnectAllWebsites>;
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
  };
@@ -20,7 +20,7 @@ export type PluginConnectAccount = {
20
20
  plugin_id?: string;
21
21
  };
22
22
 
23
- export type PluginConnectAllWebsites = {
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<PluginConnectAllWebsites> {
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
  }
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.4",
4
+ "version": "10.0.5",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {