pipedrive 18.1.0 → 18.1.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,16 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [18.1.2] - 2023-02-02
12
+ ### Fixed
13
+ - Added missing OAuth scopes for PermissionSets, Roles, and Users API endpoints
14
+
15
+ ## [18.1.1] - 2023-01-25
16
+ ### Fixed
17
+ - Updated `user_id` description for `POST /webhooks/`
18
+ ### Fixed
19
+ - Adds support for snake_case query params reported in pipedrive/client-nodejs#410
20
+
11
21
  ## [18.1.0] - 2023-01-20
12
22
  ### Changed
13
23
  - Removed `location_lat` and `location_long` fields from the following endpoints activity details response:
@@ -450,7 +460,9 @@ structure
450
460
  * Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
451
461
  * Fixed typo in lead example response (`crrency` to `currency`)
452
462
 
453
- [Unreleased]: https://github.com/pipedrive/api-docs/compare/v18.1.0...HEAD
463
+ [Unreleased]: https://github.com/pipedrive/api-docs/compare/v18.1.2...HEAD
464
+ [18.1.2]: https://github.com/pipedrive/api-docs/compare/v18.1.1...v18.1.2
465
+ [18.1.1]: https://github.com/pipedrive/api-docs/compare/v18.1.0...v18.1.1
454
466
  [18.1.0]: https://github.com/pipedrive/api-docs/compare/v18.0.3...v18.1.0
455
467
  [18.0.3]: https://github.com/pipedrive/api-docs/compare/v18.0.2...v18.0.3
456
468
  [18.0.2]: https://github.com/pipedrive/api-docs/compare/v18.0.1...v18.0.2
@@ -67,7 +67,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
67
67
  }
68
68
  }
69
69
  }
70
- var authNames = ['api_key'];
70
+ var authNames = ['api_key', 'oauth2'];
71
71
  var accepts = ['application/json'];
72
72
  var returnType = _SinglePermissionSetsItem["default"];
73
73
  return this.apiClient.callApi('/permissionSets/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -128,7 +128,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
128
128
  }
129
129
  }
130
130
  }
131
- var authNames = ['api_key'];
131
+ var authNames = ['api_key', 'oauth2'];
132
132
  var accepts = ['application/json'];
133
133
  var returnType = _UserAssignmentsToPermissionSet["default"];
134
134
  return this.apiClient.callApi('/permissionSets/{id}/assignments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -182,7 +182,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
182
182
  }
183
183
  }
184
184
  }
185
- var authNames = ['api_key'];
185
+ var authNames = ['api_key', 'oauth2'];
186
186
  var accepts = ['application/json'];
187
187
  var returnType = _PermissionSets["default"];
188
188
  return this.apiClient.callApi('/permissionSets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -87,7 +87,7 @@ var RolesApi = /*#__PURE__*/function () {
87
87
  }
88
88
  }
89
89
  }
90
- var authNames = ['api_key'];
90
+ var authNames = ['api_key', 'oauth2'];
91
91
  var accepts = ['application/json'];
92
92
  var returnType = _PostRoleSettings["default"];
93
93
  return this.apiClient.callApi('/roles/{id}/settings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -141,7 +141,7 @@ var RolesApi = /*#__PURE__*/function () {
141
141
  }
142
142
  }
143
143
  }
144
- var authNames = ['api_key'];
144
+ var authNames = ['api_key', 'oauth2'];
145
145
  var accepts = ['application/json'];
146
146
  var returnType = _PostRoles["default"];
147
147
  return this.apiClient.callApi('/roles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -202,7 +202,7 @@ var RolesApi = /*#__PURE__*/function () {
202
202
  }
203
203
  }
204
204
  }
205
- var authNames = ['api_key'];
205
+ var authNames = ['api_key', 'oauth2'];
206
206
  var accepts = ['application/json'];
207
207
  var returnType = _PostRoleAssignment["default"];
208
208
  return this.apiClient.callApi('/roles/{id}/assignments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -259,7 +259,7 @@ var RolesApi = /*#__PURE__*/function () {
259
259
  }
260
260
  }
261
261
  }
262
- var authNames = ['api_key'];
262
+ var authNames = ['api_key', 'oauth2'];
263
263
  var accepts = ['application/json'];
264
264
  var returnType = _DeleteRole["default"];
265
265
  return this.apiClient.callApi('/roles/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -319,7 +319,7 @@ var RolesApi = /*#__PURE__*/function () {
319
319
  }
320
320
  }
321
321
  }
322
- var authNames = ['api_key'];
322
+ var authNames = ['api_key', 'oauth2'];
323
323
  var accepts = ['application/json'];
324
324
  var returnType = _DeleteRoleAssignment["default"];
325
325
  return this.apiClient.callApi('/roles/{id}/assignments', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -376,7 +376,7 @@ var RolesApi = /*#__PURE__*/function () {
376
376
  }
377
377
  }
378
378
  }
379
- var authNames = ['api_key'];
379
+ var authNames = ['api_key', 'oauth2'];
380
380
  var accepts = ['application/json'];
381
381
  var returnType = _GetRole["default"];
382
382
  return this.apiClient.callApi('/roles/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -437,7 +437,7 @@ var RolesApi = /*#__PURE__*/function () {
437
437
  }
438
438
  }
439
439
  }
440
- var authNames = ['api_key'];
440
+ var authNames = ['api_key', 'oauth2'];
441
441
  var accepts = ['application/json'];
442
442
  var returnType = _GetRoleAssignments["default"];
443
443
  return this.apiClient.callApi('/roles/{id}/assignments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -495,7 +495,7 @@ var RolesApi = /*#__PURE__*/function () {
495
495
  }
496
496
  }
497
497
  }
498
- var authNames = ['api_key'];
498
+ var authNames = ['api_key', 'oauth2'];
499
499
  var accepts = ['application/json'];
500
500
  var returnType = _GetRoleSettings["default"];
501
501
  return this.apiClient.callApi('/roles/{id}/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -548,7 +548,7 @@ var RolesApi = /*#__PURE__*/function () {
548
548
  }
549
549
  }
550
550
  }
551
- var authNames = ['api_key'];
551
+ var authNames = ['api_key', 'oauth2'];
552
552
  var accepts = ['application/json'];
553
553
  var returnType = _GetRoles["default"];
554
554
  return this.apiClient.callApi('/roles', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -607,7 +607,7 @@ var RolesApi = /*#__PURE__*/function () {
607
607
  }
608
608
  }
609
609
  }
610
- var authNames = ['api_key'];
610
+ var authNames = ['api_key', 'oauth2'];
611
611
  var accepts = ['application/json'];
612
612
  var returnType = _PutRole["default"];
613
613
  return this.apiClient.callApi('/roles/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
@@ -115,7 +115,7 @@ AddWebhookRequest.prototype['event_action'] = undefined;
115
115
  AddWebhookRequest.prototype['event_object'] = undefined;
116
116
 
117
117
  /**
118
- * The ID of the user this Webhook will be authorized with. If not set, current authorized user will be used. Note that this does not filter only certain user's events rather, this specifies the user's permissions under which each event is checked. Events about objects the selected user is not entitled to access are not sent. If you want to receive notifications for all events, a top-level admin user should be used.
118
+ * The ID of the user that this webhook will be authorized with. You have the option to use a different user's `user_id`. If it is not set, the current user's `user_id` will be used. As each webhook event is checked against a users permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s `user_id`.
119
119
  * @member {Number} user_id
120
120
  */
121
121
  AddWebhookRequest.prototype['user_id'] = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "18.1.0",
3
+ "version": "18.1.2",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",