pipedrive 15.0.0 → 15.1.0

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
@@ -5,8 +5,21 @@ The Changelog file gives an overview of all of the notable changes affecting the
5
5
  The file format of it is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and the project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
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
-
9
8
  ## [Unreleased]
9
+
10
+ ## 15.0.3
11
+ ### Changed
12
+ - Added deprecated flags to `GET /globalMessages` and `DELETE /globalMessages/{id}`
13
+
14
+ ## 15.0.2
15
+ ### Added
16
+ - Added `primary_email` field to response of `GET /v1/persons`, `GET /v1/persons/{id}` endpoints
17
+
18
+ ## 15.0.1
19
+ ### Changed
20
+ - Update the following dependencies:
21
+ - `superagent`
22
+
10
23
  ## 15.0.0
11
24
  ### Fixed
12
25
  - Renamed file with long name and it's class.
@@ -95,6 +95,11 @@ var BasePersonItem = /*#__PURE__*/function () {
95
95
  delete data['email'];
96
96
  }
97
97
 
98
+ if (data.hasOwnProperty('primary_email')) {
99
+ obj['primary_email'] = _ApiClient["default"].convertToType(data['primary_email'], 'String');
100
+ delete data['primary_email'];
101
+ }
102
+
98
103
  if (data.hasOwnProperty('first_char')) {
99
104
  obj['first_char'] = _ApiClient["default"].convertToType(data['first_char'], 'String');
100
105
  delete data['first_char'];
@@ -181,6 +186,12 @@ BasePersonItem.prototype['phone'] = undefined;
181
186
  */
182
187
 
183
188
  BasePersonItem.prototype['email'] = undefined;
189
+ /**
190
+ * The primary email of the person
191
+ * @member {String} primary_email
192
+ */
193
+
194
+ BasePersonItem.prototype['primary_email'] = undefined;
184
195
  /**
185
196
  * The first letter of the name of the person
186
197
  * @member {String} first_char
@@ -87,6 +87,11 @@ var BasicPerson = /*#__PURE__*/function () {
87
87
  delete data['email'];
88
88
  }
89
89
 
90
+ if (data.hasOwnProperty('primary_email')) {
91
+ obj['primary_email'] = _ApiClient["default"].convertToType(data['primary_email'], 'String');
92
+ delete data['primary_email'];
93
+ }
94
+
90
95
  if (data.hasOwnProperty('phone')) {
91
96
  obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
92
97
  delete data['phone'];
@@ -136,6 +141,12 @@ BasicPerson.prototype['org_id'] = undefined;
136
141
  */
137
142
 
138
143
  BasicPerson.prototype['email'] = undefined;
144
+ /**
145
+ * The primary email of the person
146
+ * @member {String} primary_email
147
+ */
148
+
149
+ BasicPerson.prototype['primary_email'] = undefined;
139
150
  /**
140
151
  * List of phone data related to the person
141
152
  * @member {Array.<module:model/BasePersonItemPhone>} phone
@@ -149,7 +149,7 @@ var CallLogObject = /*#__PURE__*/function () {
149
149
  return CallLogObject;
150
150
  }();
151
151
  /**
152
- * The ID of the owner of the call log
152
+ * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users.
153
153
  * @member {Number} user_id
154
154
  */
155
155
 
@@ -110,6 +110,11 @@ var MergePersonItem = /*#__PURE__*/function () {
110
110
  delete data['email'];
111
111
  }
112
112
 
113
+ if (data.hasOwnProperty('primary_email')) {
114
+ obj['primary_email'] = _ApiClient["default"].convertToType(data['primary_email'], 'String');
115
+ delete data['primary_email'];
116
+ }
117
+
113
118
  if (data.hasOwnProperty('first_char')) {
114
119
  obj['first_char'] = _ApiClient["default"].convertToType(data['first_char'], 'String');
115
120
  delete data['first_char'];
@@ -346,6 +351,12 @@ MergePersonItem.prototype['phone'] = undefined;
346
351
  */
347
352
 
348
353
  MergePersonItem.prototype['email'] = undefined;
354
+ /**
355
+ * The primary email of the person
356
+ * @member {String} primary_email
357
+ */
358
+
359
+ MergePersonItem.prototype['primary_email'] = undefined;
349
360
  /**
350
361
  * The first letter of the name of the person
351
362
  * @member {String} first_char
@@ -610,6 +621,12 @@ _BasePersonItem["default"].prototype['phone'] = undefined;
610
621
  */
611
622
 
612
623
  _BasePersonItem["default"].prototype['email'] = undefined;
624
+ /**
625
+ * The primary email of the person
626
+ * @member {String} primary_email
627
+ */
628
+
629
+ _BasePersonItem["default"].prototype['primary_email'] = undefined;
613
630
  /**
614
631
  * The first letter of the name of the person
615
632
  * @member {String} first_char
@@ -110,6 +110,11 @@ var NewPerson = /*#__PURE__*/function () {
110
110
  delete data['email'];
111
111
  }
112
112
 
113
+ if (data.hasOwnProperty('primary_email')) {
114
+ obj['primary_email'] = _ApiClient["default"].convertToType(data['primary_email'], 'String');
115
+ delete data['primary_email'];
116
+ }
117
+
113
118
  if (data.hasOwnProperty('phone')) {
114
119
  obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
115
120
  delete data['phone'];
@@ -165,6 +170,12 @@ NewPerson.prototype['org_id'] = undefined;
165
170
  */
166
171
 
167
172
  NewPerson.prototype['email'] = undefined;
173
+ /**
174
+ * The primary email of the person
175
+ * @member {String} primary_email
176
+ */
177
+
178
+ NewPerson.prototype['primary_email'] = undefined;
168
179
  /**
169
180
  * List of phone data related to the person
170
181
  * @member {Array.<module:model/BasePersonItemPhone>} phone
@@ -215,6 +226,12 @@ _BasicPerson["default"].prototype['org_id'] = undefined;
215
226
  */
216
227
 
217
228
  _BasicPerson["default"].prototype['email'] = undefined;
229
+ /**
230
+ * The primary email of the person
231
+ * @member {String} primary_email
232
+ */
233
+
234
+ _BasicPerson["default"].prototype['primary_email'] = undefined;
218
235
  /**
219
236
  * List of phone data related to the person
220
237
  * @member {Array.<module:model/BasePersonItemPhone>} phone
@@ -114,6 +114,11 @@ var PersonItem = /*#__PURE__*/function () {
114
114
  delete data['email'];
115
115
  }
116
116
 
117
+ if (data.hasOwnProperty('primary_email')) {
118
+ obj['primary_email'] = _ApiClient["default"].convertToType(data['primary_email'], 'String');
119
+ delete data['primary_email'];
120
+ }
121
+
117
122
  if (data.hasOwnProperty('first_char')) {
118
123
  obj['first_char'] = _ApiClient["default"].convertToType(data['first_char'], 'String');
119
124
  delete data['first_char'];
@@ -335,6 +340,12 @@ PersonItem.prototype['phone'] = undefined;
335
340
  */
336
341
 
337
342
  PersonItem.prototype['email'] = undefined;
343
+ /**
344
+ * The primary email of the person
345
+ * @member {String} primary_email
346
+ */
347
+
348
+ PersonItem.prototype['primary_email'] = undefined;
338
349
  /**
339
350
  * The first letter of the name of the person
340
351
  * @member {String} first_char
@@ -579,6 +590,12 @@ _BasePersonItem["default"].prototype['phone'] = undefined;
579
590
  */
580
591
 
581
592
  _BasePersonItem["default"].prototype['email'] = undefined;
593
+ /**
594
+ * The primary email of the person
595
+ * @member {String} primary_email
596
+ */
597
+
598
+ _BasePersonItem["default"].prototype['primary_email'] = undefined;
582
599
  /**
583
600
  * The first letter of the name of the person
584
601
  * @member {String} first_char
@@ -179,7 +179,7 @@ var ResponseCallLogObject = /*#__PURE__*/function () {
179
179
  return ResponseCallLogObject;
180
180
  }();
181
181
  /**
182
- * The ID of the owner of the call log
182
+ * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users.
183
183
  * @member {Number} user_id
184
184
  */
185
185
 
@@ -277,7 +277,7 @@ ResponseCallLogObject.prototype['has_recording'] = undefined;
277
277
  ResponseCallLogObject.prototype['company_id'] = undefined; // Implement CallLogObject interface:
278
278
 
279
279
  /**
280
- * The ID of the owner of the call log
280
+ * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users.
281
281
  * @member {Number} user_id
282
282
  */
283
283
 
@@ -107,6 +107,11 @@ var UpdatePerson = /*#__PURE__*/function () {
107
107
  delete data['email'];
108
108
  }
109
109
 
110
+ if (data.hasOwnProperty('primary_email')) {
111
+ obj['primary_email'] = _ApiClient["default"].convertToType(data['primary_email'], 'String');
112
+ delete data['primary_email'];
113
+ }
114
+
110
115
  if (data.hasOwnProperty('phone')) {
111
116
  obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
112
117
  delete data['phone'];
@@ -162,6 +167,12 @@ UpdatePerson.prototype['org_id'] = undefined;
162
167
  */
163
168
 
164
169
  UpdatePerson.prototype['email'] = undefined;
170
+ /**
171
+ * The primary email of the person
172
+ * @member {String} primary_email
173
+ */
174
+
175
+ UpdatePerson.prototype['primary_email'] = undefined;
165
176
  /**
166
177
  * List of phone data related to the person
167
178
  * @member {Array.<module:model/BasePersonItemPhone>} phone
@@ -212,6 +223,12 @@ _BasicPerson["default"].prototype['org_id'] = undefined;
212
223
  */
213
224
 
214
225
  _BasicPerson["default"].prototype['email'] = undefined;
226
+ /**
227
+ * The primary email of the person
228
+ * @member {String} primary_email
229
+ */
230
+
231
+ _BasicPerson["default"].prototype['primary_email'] = undefined;
215
232
  /**
216
233
  * List of phone data related to the person
217
234
  * @member {Array.<module:model/BasePersonItemPhone>} phone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@babel/runtime": "^7.17.0",
22
22
  "lodash": "^4.17.21",
23
- "superagent": "^5.3.0"
23
+ "superagent": "^7.1.3"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@babel/cli": "^7.0.0",