pipedrive 12.2.0 → 13.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
6
6
 
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
+ ## [Unreleased]
10
+
11
+ ## 13.0.3
12
+ ### Changed
13
+ - Changed/improved `subscription_url` body parameter description
14
+ * POST /webhooks
15
+
16
+ ## 13.0.2
17
+ ### Fixed
18
+ - Fixed items type for `email` and `phone` body parameters
19
+ * POST /persons
20
+
21
+ ## 13.0.1
22
+ ### Added
23
+ - Added `filter_id` to `GET /products` query parameters that was wrongfully removed in 0.1.18
24
+
25
+ ## 13.0.0
26
+ ### Removed
27
+ - Removed `int` type from `POST /v1/organizationFields` field_type values
28
+ - Removed `int` type from `POST /v1/personFields` field_type values
29
+ - Removed `int` type from `POST /v1/dealFields` field_type values
30
+
9
31
  ## 12.2.0
10
32
  ### Changed
11
33
  - Changed notes and comments endpoints additional_data to match the correct pagination response
@@ -628,6 +628,7 @@ 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 {Number} opts.filterId ID of the filter to use
631
632
  * @param {Array.<Number>} opts.ids An array of integers with the IDs of the Products that sould 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
@@ -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,6 +679,7 @@ 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
682
+ * @param {Number} opts.filterId ID of the filter to use
680
683
  * @param {Array.<Number>} opts.ids An array of integers with the IDs of the Products that sould 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
@@ -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;
@@ -41,7 +41,6 @@ var FieldTypeAsString = /*#__PURE__*/function () {
41
41
  (0, _defineProperty2["default"])(this, "daterange", "daterange");
42
42
  (0, _defineProperty2["default"])(this, "double", "double");
43
43
  (0, _defineProperty2["default"])(this, "enum", "enum");
44
- (0, _defineProperty2["default"])(this, "int", "int");
45
44
  (0, _defineProperty2["default"])(this, "monetary", "monetary");
46
45
  (0, _defineProperty2["default"])(this, "org", "org");
47
46
  (0, _defineProperty2["default"])(this, "people", "people");
@@ -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": "12.2.0",
3
+ "version": "13.0.3",
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",