pipedrive 13.1.2 → 13.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 13.2.1
12
+ ### Fixed
13
+ - Fixed wrong field name normalization for custom fields keys
14
+
15
+ ## 13.2.0
16
+ ### Changed
17
+ - Deprecate /v1/mailbox/mailMessages/{id} & /v1/mailbox/mailThreads/{id} response data property write_flag
18
+
19
+ ## 13.1.3
20
+ ### Fixed
21
+ - Fix replaceCamelCaseObj is not defined reference issue in ApiClient
22
+
11
23
  ## 13.1.2
12
24
  ### Fixed
13
25
  - Styling fixes: capitalization, tutorial links' texts, code-highlighting in descriptions
package/dist/ApiClient.js CHANGED
@@ -669,7 +669,7 @@ var ApiClient = /*#__PURE__*/function () {
669
669
  }, _callee, this, [[20, 26]]);
670
670
  }));
671
671
 
672
- function callApi(_x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12, _x13) {
672
+ function callApi(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12) {
673
673
  return _callApi.apply(this, arguments);
674
674
  }
675
675
 
@@ -681,27 +681,25 @@ var ApiClient = /*#__PURE__*/function () {
681
681
 
682
682
  }, {
683
683
  key: "replaceCamelCaseObj",
684
- value: function (_replaceCamelCaseObj) {
685
- function replaceCamelCaseObj(_x) {
686
- return _replaceCamelCaseObj.apply(this, arguments);
687
- }
688
-
689
- replaceCamelCaseObj.toString = function () {
690
- return _replaceCamelCaseObj.toString();
691
- };
684
+ value: function replaceCamelCaseObj(obj) {
685
+ var _this3 = this;
692
686
 
693
- return replaceCamelCaseObj;
694
- }(function (obj) {
695
687
  var snakeCased = {};
696
688
 
697
689
  for (var key in obj) {
698
690
  var keyValue = obj[key];
699
691
  var isArray = Array.isArray(keyValue);
700
692
  var isObject = (0, _typeof2["default"])(keyValue) === 'object' && !isArray;
693
+ var isHash = /^[a-f0-9]{40}$/i.test(key);
701
694
  if (isArray) keyValue = keyValue.map(function (kv) {
702
- return (0, _typeof2["default"])(kv) === 'object' ? replaceCamelCaseObj(kv) : kv;
695
+ return (0, _typeof2["default"])(kv) === 'object' ? _this3.replaceCamelCaseObj(kv) : kv;
703
696
  });
704
- snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? replaceCamelCaseObj(keyValue) : keyValue;
697
+
698
+ if (isHash) {
699
+ snakeCased[key] = isObject ? key : keyValue;
700
+ } else {
701
+ snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? this.replaceCamelCaseObj(keyValue) : keyValue;
702
+ }
705
703
  }
706
704
 
707
705
  return snakeCased;
@@ -710,7 +708,7 @@ var ApiClient = /*#__PURE__*/function () {
710
708
  * Checks whether the API supports oauth2 type authorization.
711
709
  * @returns {Boolean} Whether oauth2 type authorization is supported by the API.
712
710
  */
713
- )
711
+
714
712
  }, {
715
713
  key: "isOauth2Supported",
716
714
  value: function isOauth2Supported() {
@@ -834,7 +832,7 @@ var ApiClient = /*#__PURE__*/function () {
834
832
  }, _callee2, this, [[10, 18]]);
835
833
  }));
836
834
 
837
- function authorize(_x14) {
835
+ function authorize(_x13) {
838
836
  return _authorize.apply(this, arguments);
839
837
  }
840
838
 
@@ -153,11 +153,6 @@ var BaseMailThread = /*#__PURE__*/function () {
153
153
  delete data['mail_link_tracking_enabled_flag'];
154
154
  }
155
155
 
156
- if (data.hasOwnProperty('write_flag')) {
157
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
158
- delete data['write_flag'];
159
- }
160
-
161
156
  if (data.hasOwnProperty('parties')) {
162
157
  obj['parties'] = _BaseMailThreadAllOfParties["default"].constructFromObject(data['parties']);
163
158
  delete data['parties'];
@@ -368,12 +363,6 @@ BaseMailThread.prototype['smart_bcc_flag'] = undefined;
368
363
  */
369
364
 
370
365
  BaseMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined;
371
- /**
372
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
373
- * @member {Boolean} write_flag
374
- */
375
-
376
- BaseMailThread.prototype['write_flag'] = undefined;
377
366
  /**
378
367
  * @member {module:model/BaseMailThreadAllOfParties} parties
379
368
  */
@@ -595,13 +584,7 @@ _CommonMailThread["default"].prototype['smart_bcc_flag'] = undefined;
595
584
  * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag
596
585
  */
597
586
 
598
- _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined;
599
- /**
600
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
601
- * @member {Boolean} write_flag
602
- */
603
-
604
- _CommonMailThread["default"].prototype['write_flag'] = undefined; // Implement BaseMailThreadAllOf interface:
587
+ _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined; // Implement BaseMailThreadAllOf interface:
605
588
 
606
589
  /**
607
590
  * @member {module:model/BaseMailThreadAllOfParties} parties
@@ -153,11 +153,6 @@ var BaseMailThreadMessages = /*#__PURE__*/function () {
153
153
  delete data['mail_link_tracking_enabled_flag'];
154
154
  }
155
155
 
156
- if (data.hasOwnProperty('write_flag')) {
157
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
158
- delete data['write_flag'];
159
- }
160
-
161
156
  if (data.hasOwnProperty('from')) {
162
157
  obj['from'] = _ApiClient["default"].convertToType(data['from'], [_MailThreadParticipant["default"]]);
163
158
  delete data['from'];
@@ -318,12 +313,6 @@ BaseMailThreadMessages.prototype['smart_bcc_flag'] = undefined;
318
313
  */
319
314
 
320
315
  BaseMailThreadMessages.prototype['mail_link_tracking_enabled_flag'] = undefined;
321
- /**
322
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
323
- * @member {Boolean} write_flag
324
- */
325
-
326
- BaseMailThreadMessages.prototype['write_flag'] = undefined;
327
316
  /**
328
317
  * Senders of the mail thread
329
318
  * @member {Array.<module:model/MailThreadParticipant>} from
@@ -486,13 +475,7 @@ _CommonMailThread["default"].prototype['smart_bcc_flag'] = undefined;
486
475
  * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag
487
476
  */
488
477
 
489
- _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined;
490
- /**
491
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
492
- * @member {Boolean} write_flag
493
- */
494
-
495
- _CommonMailThread["default"].prototype['write_flag'] = undefined; // Implement BaseMailThreadMessagesAllOf interface:
478
+ _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined; // Implement BaseMailThreadMessagesAllOf interface:
496
479
 
497
480
  /**
498
481
  * Senders of the mail thread
@@ -136,11 +136,6 @@ var CommonMailThread = /*#__PURE__*/function () {
136
136
  delete data['mail_link_tracking_enabled_flag'];
137
137
  }
138
138
 
139
- if (data.hasOwnProperty('write_flag')) {
140
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
141
- delete data['write_flag'];
142
- }
143
-
144
139
  if (Object.keys(data).length > 0) {
145
140
  Object.assign(obj, data);
146
141
  }
@@ -236,11 +231,5 @@ CommonMailThread.prototype['smart_bcc_flag'] = undefined;
236
231
  */
237
232
 
238
233
  CommonMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined;
239
- /**
240
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
241
- * @member {Boolean} write_flag
242
- */
243
-
244
- CommonMailThread.prototype['write_flag'] = undefined;
245
234
  var _default = CommonMailThread;
246
235
  exports["default"] = _default;
@@ -208,11 +208,6 @@ var MailMessageData = /*#__PURE__*/function () {
208
208
  delete data['has_real_attachments_flag'];
209
209
  }
210
210
 
211
- if (data.hasOwnProperty('write_flag')) {
212
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
213
- delete data['write_flag'];
214
- }
215
-
216
211
  if (Object.keys(data).length > 0) {
217
212
  Object.assign(obj, data);
218
213
  }
@@ -392,12 +387,6 @@ MailMessageData.prototype['has_inline_attachments_flag'] = undefined;
392
387
  */
393
388
 
394
389
  MailMessageData.prototype['has_real_attachments_flag'] = undefined;
395
- /**
396
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property.
397
- * @member {Boolean} write_flag
398
- */
399
-
400
- MailMessageData.prototype['write_flag'] = undefined;
401
390
  /**
402
391
  * Allowed values for the <code>mail_tracking_status</code> property.
403
392
  * @enum {String}
@@ -223,11 +223,6 @@ var MailMessageItemForList = /*#__PURE__*/function () {
223
223
  delete data['has_real_attachments_flag'];
224
224
  }
225
225
 
226
- if (data.hasOwnProperty('write_flag')) {
227
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
228
- delete data['write_flag'];
229
- }
230
-
231
226
  if (data.hasOwnProperty('nylas_id')) {
232
227
  obj['nylas_id'] = _ApiClient["default"].convertToType(data['nylas_id'], 'String');
233
228
  delete data['nylas_id'];
@@ -452,12 +447,6 @@ MailMessageItemForList.prototype['has_inline_attachments_flag'] = undefined;
452
447
  */
453
448
 
454
449
  MailMessageItemForList.prototype['has_real_attachments_flag'] = undefined;
455
- /**
456
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property.
457
- * @member {Boolean} write_flag
458
- */
459
-
460
- MailMessageItemForList.prototype['write_flag'] = undefined;
461
450
  /**
462
451
  * The Mail Message ID assigned by the sync provider
463
452
  * @member {String} nylas_id
@@ -680,13 +669,7 @@ _MailMessageData["default"].prototype['has_inline_attachments_flag'] = undefined
680
669
  * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag
681
670
  */
682
671
 
683
- _MailMessageData["default"].prototype['has_real_attachments_flag'] = undefined;
684
- /**
685
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property.
686
- * @member {Boolean} write_flag
687
- */
688
-
689
- _MailMessageData["default"].prototype['write_flag'] = undefined; // Implement MailMessageItemForListAllOf interface:
672
+ _MailMessageData["default"].prototype['has_real_attachments_flag'] = undefined; // Implement MailMessageItemForListAllOf interface:
690
673
 
691
674
  /**
692
675
  * The Mail Message ID assigned by the sync provider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.1.2",
3
+ "version": "13.2.2",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",