pipedrive 13.2.0 → 13.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/dist/ApiClient.js +7 -1
- package/dist/model/AddProductRequestBody.js +2 -2
- package/dist/model/BasicDeal.js +1 -1
- package/dist/model/BasicOrganization.js +1 -1
- package/dist/model/BasicPerson.js +1 -1
- package/dist/model/NewDeal.js +2 -2
- package/dist/model/NewOrganization.js +2 -2
- package/dist/model/NewPerson.js +2 -2
- package/dist/model/ProductRequest.js +1 -1
- package/dist/model/UpdateDealRequest.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -8,6 +8,21 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## 13.2.4
|
12
|
+
### Fixed
|
13
|
+
- Added quotation marks to fix formatting for Organizations endpoint `visible_to` parameter
|
14
|
+
- Updated `prices` parameter description in Products endpoint
|
15
|
+
|
16
|
+
## 13.2.3
|
17
|
+
### Changed
|
18
|
+
- Update `visible_to` parameter for `POST /deals` and `PUT /deals/{id}`. Differentiate options by plans
|
19
|
+
- Update `visible_to` parameter for `POST /persons` and `PUT /persons/{id}`. Differentiate options by plans
|
20
|
+
- Update `visible_to` parameter for `POST /organizations` and `PUT /organizations/{id}`. Differentiate options by plans
|
21
|
+
|
22
|
+
## 13.2.1
|
23
|
+
### Fixed
|
24
|
+
- Fixed wrong field name normalization for custom fields keys
|
25
|
+
|
11
26
|
## 13.2.0
|
12
27
|
### Changed
|
13
28
|
- Deprecate /v1/mailbox/mailMessages/{id} & /v1/mailbox/mailThreads/{id} response data property write_flag
|
package/dist/ApiClient.js
CHANGED
@@ -690,10 +690,16 @@ var ApiClient = /*#__PURE__*/function () {
|
|
690
690
|
var keyValue = obj[key];
|
691
691
|
var isArray = Array.isArray(keyValue);
|
692
692
|
var isObject = (0, _typeof2["default"])(keyValue) === 'object' && !isArray;
|
693
|
+
var isHash = /^[a-f0-9]{40}$/i.test(key);
|
693
694
|
if (isArray) keyValue = keyValue.map(function (kv) {
|
694
695
|
return (0, _typeof2["default"])(kv) === 'object' ? _this3.replaceCamelCaseObj(kv) : kv;
|
695
696
|
});
|
696
|
-
|
697
|
+
|
698
|
+
if (isHash) {
|
699
|
+
snakeCased[key] = isObject ? key : keyValue;
|
700
|
+
} else {
|
701
|
+
snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? this.replaceCamelCaseObj(keyValue) : keyValue;
|
702
|
+
}
|
697
703
|
}
|
698
704
|
|
699
705
|
return snakeCased;
|
@@ -180,7 +180,7 @@ AddProductRequestBody.prototype['visible_to'] = undefined;
|
|
180
180
|
|
181
181
|
AddProductRequestBody.prototype['owner_id'] = undefined;
|
182
182
|
/**
|
183
|
-
*
|
183
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, no prices will be set up for the product.
|
184
184
|
* @member {Array.<Object>} prices
|
185
185
|
*/
|
186
186
|
|
@@ -234,7 +234,7 @@ _ProductRequest["default"].prototype['visible_to'] = undefined;
|
|
234
234
|
|
235
235
|
_ProductRequest["default"].prototype['owner_id'] = undefined;
|
236
236
|
/**
|
237
|
-
*
|
237
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, no prices will be set up for the product.
|
238
238
|
* @member {Array.<Object>} prices
|
239
239
|
*/
|
240
240
|
|
package/dist/model/BasicDeal.js
CHANGED
@@ -184,7 +184,7 @@ BasicDeal.prototype['probability'] = undefined;
|
|
184
184
|
|
185
185
|
BasicDeal.prototype['lost_reason'] = undefined;
|
186
186
|
/**
|
187
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
187
|
+
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
188
188
|
* @member {module:model/VisibleTo} visible_to
|
189
189
|
*/
|
190
190
|
|
@@ -105,7 +105,7 @@ BasicOrganization.prototype['name'] = undefined;
|
|
105
105
|
|
106
106
|
BasicOrganization.prototype['owner_id'] = undefined;
|
107
107
|
/**
|
108
|
-
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
108
|
+
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
109
109
|
* @member {module:model/VisibleTo} visible_to
|
110
110
|
*/
|
111
111
|
|
@@ -149,7 +149,7 @@ BasicPerson.prototype['email'] = undefined;
|
|
149
149
|
|
150
150
|
BasicPerson.prototype['phone'] = undefined;
|
151
151
|
/**
|
152
|
-
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
152
|
+
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
153
153
|
* @member {module:model/VisibleTo} visible_to
|
154
154
|
*/
|
155
155
|
|
package/dist/model/NewDeal.js
CHANGED
@@ -225,7 +225,7 @@ NewDeal.prototype['probability'] = undefined;
|
|
225
225
|
|
226
226
|
NewDeal.prototype['lost_reason'] = undefined;
|
227
227
|
/**
|
228
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
228
|
+
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
229
229
|
* @member {module:model/VisibleTo} visible_to
|
230
230
|
*/
|
231
231
|
|
@@ -305,7 +305,7 @@ _BasicDeal["default"].prototype['probability'] = undefined;
|
|
305
305
|
|
306
306
|
_BasicDeal["default"].prototype['lost_reason'] = undefined;
|
307
307
|
/**
|
308
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
308
|
+
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
309
309
|
* @member {module:model/VisibleTo} visible_to
|
310
310
|
*/
|
311
311
|
|
@@ -128,7 +128,7 @@ NewOrganization.prototype['name'] = undefined;
|
|
128
128
|
|
129
129
|
NewOrganization.prototype['owner_id'] = undefined;
|
130
130
|
/**
|
131
|
-
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
131
|
+
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
132
132
|
* @member {module:model/VisibleTo} visible_to
|
133
133
|
*/
|
134
134
|
|
@@ -153,7 +153,7 @@ _BasicOrganization["default"].prototype['name'] = undefined;
|
|
153
153
|
|
154
154
|
_BasicOrganization["default"].prototype['owner_id'] = undefined;
|
155
155
|
/**
|
156
|
-
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
156
|
+
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
157
157
|
* @member {module:model/VisibleTo} visible_to
|
158
158
|
*/
|
159
159
|
|
package/dist/model/NewPerson.js
CHANGED
@@ -172,7 +172,7 @@ NewPerson.prototype['email'] = undefined;
|
|
172
172
|
|
173
173
|
NewPerson.prototype['phone'] = undefined;
|
174
174
|
/**
|
175
|
-
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
175
|
+
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
176
176
|
* @member {module:model/VisibleTo} visible_to
|
177
177
|
*/
|
178
178
|
|
@@ -221,7 +221,7 @@ _BasicPerson["default"].prototype['email'] = undefined;
|
|
221
221
|
|
222
222
|
_BasicPerson["default"].prototype['phone'] = undefined;
|
223
223
|
/**
|
224
|
-
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
224
|
+
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
225
225
|
* @member {module:model/VisibleTo} visible_to
|
226
226
|
*/
|
227
227
|
|
@@ -172,7 +172,7 @@ ProductRequest.prototype['visible_to'] = undefined;
|
|
172
172
|
|
173
173
|
ProductRequest.prototype['owner_id'] = undefined;
|
174
174
|
/**
|
175
|
-
*
|
175
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, no prices will be set up for the product.
|
176
176
|
* @member {Array.<Object>} prices
|
177
177
|
*/
|
178
178
|
|
@@ -210,7 +210,7 @@ UpdateDealRequest.prototype['probability'] = undefined;
|
|
210
210
|
|
211
211
|
UpdateDealRequest.prototype['lost_reason'] = undefined;
|
212
212
|
/**
|
213
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
213
|
+
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
214
214
|
* @member {module:model/VisibleTo} visible_to
|
215
215
|
*/
|
216
216
|
|
@@ -284,7 +284,7 @@ _BasicDeal["default"].prototype['probability'] = undefined;
|
|
284
284
|
|
285
285
|
_BasicDeal["default"].prototype['lost_reason'] = undefined;
|
286
286
|
/**
|
287
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
287
|
+
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
288
288
|
* @member {module:model/VisibleTo} visible_to
|
289
289
|
*/
|
290
290
|
|