pipedrive 15.1.0 → 16.0.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,7 +5,14 @@ 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
+
8
9
  ## [Unreleased]
10
+ ## 16.0.0
11
+ ### Changed
12
+ - Changed `id` parameter data type to `string` for GET `/permissionSets/{id}` and GET `/permissionSets/{id}/assignments` endpoints
13
+ - Changed `id` field data type to `string` for response from GET `/permissionSets` and GET `/permissionSets/{id}` endpoints
14
+ - Changed `permission_set_id` field data type to `string` for response GET `/permissionSets/{id}/assignments` endpoints
15
+ - Removed `id` field from response for GET `/permissionSets/{id}/assignments` endpoints
9
16
 
10
17
  ## 15.0.3
11
18
  ### Changed
@@ -44,7 +44,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
44
44
  }
45
45
  /**
46
46
  * Get one permission set
47
- * @param {Number} id The ID of the permission set
47
+ * @param {String} id The ID of the permission set
48
48
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SinglePermissionSetsItem} and HTTP response
49
49
  */
50
50
 
@@ -87,7 +87,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
87
87
  }
88
88
  /**
89
89
  * Get one permission set
90
- * @param {Number} id The ID of the permission set
90
+ * @param {String} id The ID of the permission set
91
91
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SinglePermissionSetsItem}
92
92
  */
93
93
 
@@ -101,7 +101,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
101
101
  /**
102
102
  * List permission set assignments
103
103
  * The list of assignments for a permission set.
104
- * @param {Number} id The ID of the permission set
104
+ * @param {String} id The ID of the permission set
105
105
  * @param {Object} opts Optional parameters
106
106
  * @param {Number} opts.start Pagination start (default to 0)
107
107
  * @param {Number} opts.limit Items shown per page
@@ -150,7 +150,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
150
150
  /**
151
151
  * List permission set assignments
152
152
  * The list of assignments for a permission set.
153
- * @param {Number} id The ID of the permission set
153
+ * @param {String} id The ID of the permission set
154
154
  * @param {Object} opts Optional parameters
155
155
  * @param {Number} opts.start Pagination start (default to 0)
156
156
  * @param {Number} opts.limit Items shown per page
@@ -65,7 +65,7 @@ var PermissionSetsItem = /*#__PURE__*/function () {
65
65
  obj = obj || new PermissionSetsItem();
66
66
 
67
67
  if (data.hasOwnProperty('id')) {
68
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
68
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
69
69
  delete data['id'];
70
70
  }
71
71
 
@@ -91,7 +91,7 @@ var PermissionSetsItem = /*#__PURE__*/function () {
91
91
  }();
92
92
  /**
93
93
  * The ID of user permission set
94
- * @member {Number} id
94
+ * @member {String} id
95
95
  */
96
96
 
97
97
 
@@ -80,7 +80,7 @@ var SinglePermissionSetsItem = /*#__PURE__*/function () {
80
80
  _SinglePermissionSetsItemAllOf["default"].constructFromObject(data, obj);
81
81
 
82
82
  if (data.hasOwnProperty('id')) {
83
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
83
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
84
84
  delete data['id'];
85
85
  }
86
86
 
@@ -111,7 +111,7 @@ var SinglePermissionSetsItem = /*#__PURE__*/function () {
111
111
  }();
112
112
  /**
113
113
  * The ID of user permission set
114
- * @member {Number} id
114
+ * @member {String} id
115
115
  */
116
116
 
117
117
 
@@ -137,7 +137,7 @@ SinglePermissionSetsItem.prototype['contents'] = undefined; // Implement Permiss
137
137
 
138
138
  /**
139
139
  * The ID of user permission set
140
- * @member {Number} id
140
+ * @member {String} id
141
141
  */
142
142
 
143
143
  _PermissionSetsItem["default"].prototype['id'] = undefined;
@@ -64,18 +64,13 @@ var UserAssignmentToPermissionSet = /*#__PURE__*/function () {
64
64
  if (data) {
65
65
  obj = obj || new UserAssignmentToPermissionSet();
66
66
 
67
- if (data.hasOwnProperty('id')) {
68
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
69
- delete data['id'];
70
- }
71
-
72
67
  if (data.hasOwnProperty('user_id')) {
73
68
  obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
74
69
  delete data['user_id'];
75
70
  }
76
71
 
77
72
  if (data.hasOwnProperty('permission_set_id')) {
78
- obj['permission_set_id'] = _ApiClient["default"].convertToType(data['permission_set_id'], 'Number');
73
+ obj['permission_set_id'] = _ApiClient["default"].convertToType(data['permission_set_id'], 'String');
79
74
  delete data['permission_set_id'];
80
75
  }
81
76
 
@@ -94,22 +89,16 @@ var UserAssignmentToPermissionSet = /*#__PURE__*/function () {
94
89
  }]);
95
90
  return UserAssignmentToPermissionSet;
96
91
  }();
97
- /**
98
- * The ID of the assignment of the permission set
99
- * @member {Number} id
100
- */
101
-
102
-
103
- UserAssignmentToPermissionSet.prototype['id'] = undefined;
104
92
  /**
105
93
  * The ID of the user in the permission set
106
94
  * @member {Number} user_id
107
95
  */
108
96
 
97
+
109
98
  UserAssignmentToPermissionSet.prototype['user_id'] = undefined;
110
99
  /**
111
100
  * The ID of the permission set
112
- * @member {Number} permission_set_id
101
+ * @member {String} permission_set_id
113
102
  */
114
103
 
115
104
  UserAssignmentToPermissionSet.prototype['permission_set_id'] = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "15.1.0",
3
+ "version": "16.0.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",