pipedrive 13.0.0 → 13.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/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
7
7
  For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
8
8
 
9
9
  ## [Unreleased]
10
+ ### Fixed
11
+ - Fixed typo in `ids` query parameter description in GET /products
12
+
13
+ ## 13.0.3
14
+ ### Changed
15
+ - Changed/improved `subscription_url` body parameter description
16
+ * POST /webhooks
17
+
18
+ ## 13.0.2
19
+ ### Fixed
20
+ - Fixed items type for `email` and `phone` body parameters
21
+ * POST /persons
22
+
23
+ ## 13.0.1
24
+ ### Added
25
+ - Added `filter_id` to `GET /products` query parameters that was wrongfully removed in 0.1.18
10
26
 
11
27
  ## 13.0.0
12
28
  ### Removed
@@ -628,7 +628,8 @@ var ProductsApi = /*#__PURE__*/function () {
628
628
  * Returns data about all Products
629
629
  * @param {Object} opts Optional parameters
630
630
  * @param {Number} opts.userId If supplied, only Products owned by the given user will be returned
631
- * @param {Array.<Number>} opts.ids An array of integers with the IDs of the Products that sould be returned in the response
631
+ * @param {Number} opts.filterId ID of the filter to use
632
+ * @param {Array.<Number>} opts.ids An array of integers with the IDs of the Products that should be returned in the response
632
633
  * @param {String} opts.firstChar If supplied, only Products whose name starts with the specified letter will be returned (case insensitive)
633
634
  * @param {Boolean} opts.getSummary If supplied, response will return the total numbers of Products in the `additional_data.summary.total_count` property
634
635
  * @param {Number} opts.start Pagination start (default to 0)
@@ -644,6 +645,7 @@ var ProductsApi = /*#__PURE__*/function () {
644
645
  var pathParams = {};
645
646
  var queryParams = {
646
647
  'user_id': opts['userId'],
648
+ 'filter_id': opts['filterId'],
647
649
  'ids': this.apiClient.buildCollectionParam(opts['ids'], 'csv'),
648
650
  'first_char': opts['firstChar'],
649
651
  'get_summary': opts['getSummary'],
@@ -677,7 +679,8 @@ var ProductsApi = /*#__PURE__*/function () {
677
679
  * Returns data about all Products
678
680
  * @param {Object} opts Optional parameters
679
681
  * @param {Number} opts.userId If supplied, only Products owned by the given user will be returned
680
- * @param {Array.<Number>} opts.ids An array of integers with the IDs of the Products that sould be returned in the response
682
+ * @param {Number} opts.filterId ID of the filter to use
683
+ * @param {Array.<Number>} opts.ids An array of integers with the IDs of the Products that should be returned in the response
681
684
  * @param {String} opts.firstChar If supplied, only Products whose name starts with the specified letter will be returned (case insensitive)
682
685
  * @param {Boolean} opts.getSummary If supplied, response will return the total numbers of Products in the `additional_data.summary.total_count` property
683
686
  * @param {Number} opts.start Pagination start (default to 0)
@@ -35,7 +35,7 @@ var AddWebhookRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>AddWebhookRequest</code>.
37
37
  * @alias module:model/AddWebhookRequest
38
- * @param subscriptionUrl {String} A full, valid, publicly accessible URL. Determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url`.
38
+ * @param subscriptionUrl {String} A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url` and the chosen URL must not redirect to another link.
39
39
  * @param eventAction {module:model/AddWebhookRequest.EventActionEnum} Type of action to receive notifications about. Wildcard will match all supported actions.
40
40
  * @param eventObject {module:model/AddWebhookRequest.EventObjectEnum} Type of object to receive notifications about. Wildcard will match all supported objects.
41
41
  */
@@ -112,7 +112,7 @@ var AddWebhookRequest = /*#__PURE__*/function () {
112
112
  return AddWebhookRequest;
113
113
  }();
114
114
  /**
115
- * A full, valid, publicly accessible URL. Determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url`.
115
+ * A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url` and the chosen URL must not redirect to another link.
116
116
  * @member {String} subscription_url
117
117
  */
118
118
 
@@ -13,6 +13,10 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
+ var _BasePersonItemEmail = _interopRequireDefault(require("./BasePersonItemEmail"));
17
+
18
+ var _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone"));
19
+
16
20
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
17
21
 
18
22
  /**
@@ -82,12 +86,12 @@ var BasicPerson = /*#__PURE__*/function () {
82
86
  }
83
87
 
84
88
  if (data.hasOwnProperty('email')) {
85
- obj['email'] = _ApiClient["default"].convertToType(data['email'], ['String']);
89
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], [_BasePersonItemEmail["default"]]);
86
90
  delete data['email'];
87
91
  }
88
92
 
89
93
  if (data.hasOwnProperty('phone')) {
90
- obj['phone'] = _ApiClient["default"].convertToType(data['phone'], ['String']);
94
+ obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
91
95
  delete data['phone'];
92
96
  }
93
97
 
@@ -126,14 +130,14 @@ BasicPerson.prototype['owner_id'] = undefined;
126
130
 
127
131
  BasicPerson.prototype['org_id'] = undefined;
128
132
  /**
129
- * Email addresses (one or more) associated with the person, presented in the same manner as received by GET request of a person.
130
- * @member {Array.<String>} email
133
+ * List of email data related to the Person
134
+ * @member {Array.<module:model/BasePersonItemEmail>} email
131
135
  */
132
136
 
133
137
  BasicPerson.prototype['email'] = undefined;
134
138
  /**
135
- * Phone numbers (one or more) associated with the person, presented in the same manner as received by GET request of a person.
136
- * @member {Array.<String>} phone
139
+ * List of phone data related to the Person
140
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
137
141
  */
138
142
 
139
143
  BasicPerson.prototype['phone'] = undefined;
@@ -13,6 +13,10 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
+ var _BasePersonItemEmail = _interopRequireDefault(require("./BasePersonItemEmail"));
17
+
18
+ var _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone"));
19
+
16
20
  var _BasicPerson = _interopRequireDefault(require("./BasicPerson"));
17
21
 
18
22
  var _NewPersonAllOf = _interopRequireDefault(require("./NewPersonAllOf"));
@@ -100,12 +104,12 @@ var NewPerson = /*#__PURE__*/function () {
100
104
  }
101
105
 
102
106
  if (data.hasOwnProperty('email')) {
103
- obj['email'] = _ApiClient["default"].convertToType(data['email'], ['String']);
107
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], [_BasePersonItemEmail["default"]]);
104
108
  delete data['email'];
105
109
  }
106
110
 
107
111
  if (data.hasOwnProperty('phone')) {
108
- obj['phone'] = _ApiClient["default"].convertToType(data['phone'], ['String']);
112
+ obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
109
113
  delete data['phone'];
110
114
  }
111
115
 
@@ -149,14 +153,14 @@ NewPerson.prototype['owner_id'] = undefined;
149
153
 
150
154
  NewPerson.prototype['org_id'] = undefined;
151
155
  /**
152
- * Email addresses (one or more) associated with the person, presented in the same manner as received by GET request of a person.
153
- * @member {Array.<String>} email
156
+ * List of email data related to the Person
157
+ * @member {Array.<module:model/BasePersonItemEmail>} email
154
158
  */
155
159
 
156
160
  NewPerson.prototype['email'] = undefined;
157
161
  /**
158
- * Phone numbers (one or more) associated with the person, presented in the same manner as received by GET request of a person.
159
- * @member {Array.<String>} phone
162
+ * List of phone data related to the Person
163
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
160
164
  */
161
165
 
162
166
  NewPerson.prototype['phone'] = undefined;
@@ -192,14 +196,14 @@ _BasicPerson["default"].prototype['owner_id'] = undefined;
192
196
 
193
197
  _BasicPerson["default"].prototype['org_id'] = undefined;
194
198
  /**
195
- * Email addresses (one or more) associated with the person, presented in the same manner as received by GET request of a person.
196
- * @member {Array.<String>} email
199
+ * List of email data related to the Person
200
+ * @member {Array.<module:model/BasePersonItemEmail>} email
197
201
  */
198
202
 
199
203
  _BasicPerson["default"].prototype['email'] = undefined;
200
204
  /**
201
- * Phone numbers (one or more) associated with the person, presented in the same manner as received by GET request of a person.
202
- * @member {Array.<String>} phone
205
+ * List of phone data related to the Person
206
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
203
207
  */
204
208
 
205
209
  _BasicPerson["default"].prototype['phone'] = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.0.0",
3
+ "version": "13.0.4",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -10,7 +10,9 @@
10
10
  "test": "npm run test:functional:start && npm run test:functional && npm run test:functional:stop",
11
11
  "test:functional": "node ./test/functional/environment.js",
12
12
  "test:functional:start": "node ./test/functional/environment.js --start-environment",
13
- "test:functional:stop": "node ./test/functional/environment.js --stop-environment"
13
+ "test:functional:stop": "node ./test/functional/environment.js --stop-environment",
14
+ "sonar": "pipedrive-sonar-scanner",
15
+ "test:coverage": "npm run test:functional:start && npm run test:functional -- --collectCoverage && npm run test:functional:stop"
14
16
  },
15
17
  "browser": {
16
18
  "fs": false
@@ -41,6 +43,7 @@
41
43
  "@babel/plugin-transform-runtime": "^7.12.1",
42
44
  "@babel/preset-env": "^7.0.0",
43
45
  "@babel/register": "^7.0.0",
46
+ "@pipedrive/sonar-scanner": "^3.3.0",
44
47
  "axios": "^0.21.0",
45
48
  "expect.js": "^0.3.1",
46
49
  "jest": "^26.6.3",