crisp-api 7.4.0 → 7.4.1

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,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v7.4.1
5
+
6
+ ### Bug Fixes
7
+
8
+ * Changed type of exported services in JSDoc to `any` so that TypeScript projects can use resource methods without `tsc` throwing errors.
9
+
4
10
  ## v7.4.0
5
11
 
6
12
  ### New Features
package/lib/crisp.js CHANGED
@@ -163,25 +163,25 @@ var services = {
163
163
  function Crisp() {
164
164
  /**
165
165
  * @public
166
- * @type {object}
166
+ * @type {*}
167
167
  */
168
168
  this.bucket = {};
169
169
 
170
170
  /**
171
171
  * @public
172
- * @type {object}
172
+ * @type {*}
173
173
  */
174
174
  this.media = {};
175
175
 
176
176
  /**
177
177
  * @public
178
- * @type {object}
178
+ * @type {*}
179
179
  */
180
180
  this.plugin = {};
181
181
 
182
182
  /**
183
183
  * @public
184
- * @type {object}
184
+ * @type {*}
185
185
  */
186
186
  this.website = {};
187
187
 
@@ -15,6 +15,10 @@
15
15
  * @classdesc This is the Crisp Bucket Service
16
16
  */
17
17
  function Bucket() {
18
+ /**
19
+ * @private
20
+ * @type {Array}
21
+ */
18
22
  this._resources = [
19
23
  "BucketURL"
20
24
  ];
@@ -15,6 +15,10 @@
15
15
  * @classdesc This is the Crisp Media Service
16
16
  */
17
17
  function Media() {
18
+ /**
19
+ * @private
20
+ * @type {Array}
21
+ */
18
22
  this._resources = [
19
23
  "MediaAnimation"
20
24
  ];
@@ -15,6 +15,10 @@
15
15
  * @classdesc This is the Crisp Plugin Service
16
16
  */
17
17
  function Plugin() {
18
+ /**
19
+ * @private
20
+ * @type {Array}
21
+ */
18
22
  this._resources = [
19
23
  "PluginConnect",
20
24
  "PluginSubscription"
@@ -15,6 +15,10 @@
15
15
  * @classdesc This is the Crisp Website Service
16
16
  */
17
17
  function Website() {
18
+ /**
19
+ * @private
20
+ * @type {Array}
21
+ */
18
22
  this._resources = [
19
23
  "WebsiteBase",
20
24
  "WebsiteAnalytics",
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": "7.4.0",
4
+ "version": "7.4.1",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {
package/types/crisp.d.ts CHANGED
@@ -8,24 +8,24 @@ declare function Crisp(): void;
8
8
  declare class Crisp {
9
9
  /**
10
10
  * @public
11
- * @type {object}
11
+ * @type {*}
12
12
  */
13
- public bucket: object;
13
+ public bucket: any;
14
14
  /**
15
15
  * @public
16
- * @type {object}
16
+ * @type {*}
17
17
  */
18
- public media: object;
18
+ public media: any;
19
19
  /**
20
20
  * @public
21
- * @type {object}
21
+ * @type {*}
22
22
  */
23
- public plugin: object;
23
+ public plugin: any;
24
24
  /**
25
25
  * @public
26
- * @type {object}
26
+ * @type {*}
27
27
  */
28
- public website: object;
28
+ public website: any;
29
29
  /**
30
30
  * @public
31
31
  * @type {object}
@@ -6,5 +6,9 @@ export = Bucket;
6
6
  */
7
7
  declare function Bucket(): void;
8
8
  declare class Bucket {
9
- _resources: string[];
9
+ /**
10
+ * @private
11
+ * @type {Array}
12
+ */
13
+ private _resources;
10
14
  }
@@ -6,5 +6,9 @@ export = Media;
6
6
  */
7
7
  declare function Media(): void;
8
8
  declare class Media {
9
- _resources: string[];
9
+ /**
10
+ * @private
11
+ * @type {Array}
12
+ */
13
+ private _resources;
10
14
  }
@@ -6,5 +6,9 @@ export = Plugin;
6
6
  */
7
7
  declare function Plugin(): void;
8
8
  declare class Plugin {
9
- _resources: string[];
9
+ /**
10
+ * @private
11
+ * @type {Array}
12
+ */
13
+ private _resources;
10
14
  }
@@ -6,5 +6,9 @@ export = Website;
6
6
  */
7
7
  declare function Website(): void;
8
8
  declare class Website {
9
- _resources: string[];
9
+ /**
10
+ * @private
11
+ * @type {Array}
12
+ */
13
+ private _resources;
10
14
  }