pipedrive 17.1.4 → 17.2.0

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
+ ## 17.2.0
12
+ ### Removed
13
+ - Removed deprecated endpoints that will be deleted:
14
+ - `POST /users/{id}/roleAssignments`
15
+ - `DELETE /users/{id}/roleAssignments`
16
+
17
+ ## 17.1.5
18
+ ### Changed
19
+ - Added and updated the descriptions of roles endpoints
20
+
11
21
  ## 17.1.4
12
22
  ### Changed
13
23
  - Changed the content type to `application/json` in the following endpoints:
package/README.md CHANGED
@@ -493,8 +493,6 @@ Class | Method | HTTP request | Description
493
493
  *Pipedrive.UserConnectionsApi* | [**getUserConnections**](docs/UserConnectionsApi.md#getUserConnections) | **GET** /userConnections | Get all user connections
494
494
  *Pipedrive.UserSettingsApi* | [**getUserSettings**](docs/UserSettingsApi.md#getUserSettings) | **GET** /userSettings | List settings of an authorized user
495
495
  *Pipedrive.UsersApi* | [**addUser**](docs/UsersApi.md#addUser) | **POST** /users | Add a new user
496
- *Pipedrive.UsersApi* | [**addUserRoleAssignment**](docs/UsersApi.md#addUserRoleAssignment) | **POST** /users/{id}/roleAssignments | Add role assignment
497
- *Pipedrive.UsersApi* | [**deleteUserRoleAssignment**](docs/UsersApi.md#deleteUserRoleAssignment) | **DELETE** /users/{id}/roleAssignments | Delete a role assignment
498
496
  *Pipedrive.UsersApi* | [**findUsersByName**](docs/UsersApi.md#findUsersByName) | **GET** /users/find | Find users by name
499
497
  *Pipedrive.UsersApi* | [**getCurrentUser**](docs/UsersApi.md#getCurrentUser) | **GET** /users/me | Get current user data
500
498
  *Pipedrive.UsersApi* | [**getUser**](docs/UsersApi.md#getUser) | **GET** /users/{id} | Get one user
@@ -861,6 +859,7 @@ Class | Method | HTTP request | Description
861
859
  - [Pipedrive.GoalType](docs/GoalType.md)
862
860
  - [Pipedrive.GoalsResponseComponent](docs/GoalsResponseComponent.md)
863
861
  - [Pipedrive.IconKey](docs/IconKey.md)
862
+ - [Pipedrive.InlineResponse200](docs/InlineResponse200.md)
864
863
  - [Pipedrive.InlineResponse400](docs/InlineResponse400.md)
865
864
  - [Pipedrive.InlineResponse4001](docs/InlineResponse4001.md)
866
865
  - [Pipedrive.InlineResponse4001AdditionalData](docs/InlineResponse4001AdditionalData.md)
@@ -974,6 +973,7 @@ Class | Method | HTTP request | Description
974
973
  - [Pipedrive.NoteConnectToParams](docs/NoteConnectToParams.md)
975
974
  - [Pipedrive.NoteCreatorUser](docs/NoteCreatorUser.md)
976
975
  - [Pipedrive.NoteField](docs/NoteField.md)
976
+ - [Pipedrive.NoteFieldOptions](docs/NoteFieldOptions.md)
977
977
  - [Pipedrive.NoteFieldsResponse](docs/NoteFieldsResponse.md)
978
978
  - [Pipedrive.NoteFieldsResponseAllOf](docs/NoteFieldsResponseAllOf.md)
979
979
  - [Pipedrive.NoteParams](docs/NoteParams.md)
@@ -1041,7 +1041,6 @@ Class | Method | HTTP request | Description
1041
1041
  - [Pipedrive.PaymentItem](docs/PaymentItem.md)
1042
1042
  - [Pipedrive.PaymentsResponse](docs/PaymentsResponse.md)
1043
1043
  - [Pipedrive.PaymentsResponseAllOf](docs/PaymentsResponseAllOf.md)
1044
- - [Pipedrive.PaymentsResponseAllOfData](docs/PaymentsResponseAllOfData.md)
1045
1044
  - [Pipedrive.PermissionSets](docs/PermissionSets.md)
1046
1045
  - [Pipedrive.PermissionSetsAllOf](docs/PermissionSetsAllOf.md)
1047
1046
  - [Pipedrive.PermissionSetsItem](docs/PermissionSetsItem.md)
@@ -23,15 +23,17 @@ var _DeleteChannelSuccess = _interopRequireDefault(require("../model/DeleteChann
23
23
 
24
24
  var _DeleteConversationSuccess = _interopRequireDefault(require("../model/DeleteConversationSuccess"));
25
25
 
26
- var _InlineResponse = _interopRequireDefault(require("../model/InlineResponse400"));
26
+ var _InlineResponse = _interopRequireDefault(require("../model/InlineResponse200"));
27
27
 
28
- var _InlineResponse2 = _interopRequireDefault(require("../model/InlineResponse4001"));
28
+ var _InlineResponse2 = _interopRequireDefault(require("../model/InlineResponse400"));
29
29
 
30
- var _InlineResponse3 = _interopRequireDefault(require("../model/InlineResponse403"));
30
+ var _InlineResponse3 = _interopRequireDefault(require("../model/InlineResponse4001"));
31
31
 
32
- var _InlineResponse4 = _interopRequireDefault(require("../model/InlineResponse4031"));
32
+ var _InlineResponse4 = _interopRequireDefault(require("../model/InlineResponse403"));
33
33
 
34
- var _InlineResponse5 = _interopRequireDefault(require("../model/InlineResponse404"));
34
+ var _InlineResponse5 = _interopRequireDefault(require("../model/InlineResponse4031"));
35
+
36
+ var _InlineResponse6 = _interopRequireDefault(require("../model/InlineResponse404"));
35
37
 
36
38
  var _MessageObject = _interopRequireDefault(require("../model/MessageObject"));
37
39
 
@@ -245,7 +247,7 @@ var ChannelsApi = /*#__PURE__*/function () {
245
247
  * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension).
246
248
  * @param {Object} opts Optional parameters
247
249
  * @param {module:model/MessageObject} opts.messageObject
248
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MessageObject} and HTTP response
250
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse200} and HTTP response
249
251
  */
250
252
 
251
253
  }, {
@@ -303,7 +305,7 @@ var ChannelsApi = /*#__PURE__*/function () {
303
305
 
304
306
  var authNames = ['api_key', 'oauth2'];
305
307
  var accepts = ['application/json'];
306
- var returnType = _MessageObject["default"];
308
+ var returnType = _InlineResponse["default"];
307
309
  return this.apiClient.callApi('/channels/messages/receive', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
308
310
  }
309
311
  /**
@@ -311,7 +313,7 @@ var ChannelsApi = /*#__PURE__*/function () {
311
313
  * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension).
312
314
  * @param {Object} opts Optional parameters
313
315
  * @param {module:model/MessageObject} opts.messageObject
314
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MessageObject}
316
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse200}
315
317
  */
316
318
 
317
319
  }, {
@@ -140,6 +140,7 @@ var RolesApi = /*#__PURE__*/function () {
140
140
  }
141
141
  /**
142
142
  * Add a role
143
+ * Adds a new role.
143
144
  * @param {Object} opts Optional parameters
144
145
  * @param {module:model/AddRole} opts.addRole
145
146
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostRoles} and HTTP response
@@ -181,6 +182,7 @@ var RolesApi = /*#__PURE__*/function () {
181
182
  }
182
183
  /**
183
184
  * Add a role
185
+ * Adds a new role.
184
186
  * @param {Object} opts Optional parameters
185
187
  * @param {module:model/AddRole} opts.addRole
186
188
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostRoles}
@@ -195,7 +197,7 @@ var RolesApi = /*#__PURE__*/function () {
195
197
  }
196
198
  /**
197
199
  * Add role assignment
198
- * Adds assignment for a role.
200
+ * Assigns a user to a role.
199
201
  * @param {Number} id The ID of the role
200
202
  * @param {Object} opts Optional parameters
201
203
  * @param {module:model/AddRoleAssignmentRequest} opts.addRoleAssignmentRequest
@@ -244,7 +246,7 @@ var RolesApi = /*#__PURE__*/function () {
244
246
  }
245
247
  /**
246
248
  * Add role assignment
247
- * Adds assignment for a role.
249
+ * Assigns a user to a role.
248
250
  * @param {Number} id The ID of the role
249
251
  * @param {Object} opts Optional parameters
250
252
  * @param {module:model/AddRoleAssignmentRequest} opts.addRoleAssignmentRequest
@@ -260,6 +262,7 @@ var RolesApi = /*#__PURE__*/function () {
260
262
  }
261
263
  /**
262
264
  * Delete a role
265
+ * Marks a role as deleted.
263
266
  * @param {Number} id The ID of the role
264
267
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteRole} and HTTP response
265
268
  */
@@ -302,6 +305,7 @@ var RolesApi = /*#__PURE__*/function () {
302
305
  }
303
306
  /**
304
307
  * Delete a role
308
+ * Marks a role as deleted.
305
309
  * @param {Number} id The ID of the role
306
310
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteRole}
307
311
  */
@@ -315,7 +319,7 @@ var RolesApi = /*#__PURE__*/function () {
315
319
  }
316
320
  /**
317
321
  * Delete a role assignment
318
- * Deletes assignment from a role.
322
+ * Removes the assigned user from a role and adds to the default role.
319
323
  * @param {Number} id The ID of the role
320
324
  * @param {Object} opts Optional parameters
321
325
  * @param {module:model/DeleteRoleAssignmentRequest} opts.deleteRoleAssignmentRequest
@@ -364,7 +368,7 @@ var RolesApi = /*#__PURE__*/function () {
364
368
  }
365
369
  /**
366
370
  * Delete a role assignment
367
- * Deletes assignment from a role.
371
+ * Removes the assigned user from a role and adds to the default role.
368
372
  * @param {Number} id The ID of the role
369
373
  * @param {Object} opts Optional parameters
370
374
  * @param {module:model/DeleteRoleAssignmentRequest} opts.deleteRoleAssignmentRequest
@@ -380,6 +384,7 @@ var RolesApi = /*#__PURE__*/function () {
380
384
  }
381
385
  /**
382
386
  * Get one role
387
+ * Returns the details of a specific role.
383
388
  * @param {Number} id The ID of the role
384
389
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRole} and HTTP response
385
390
  */
@@ -422,6 +427,7 @@ var RolesApi = /*#__PURE__*/function () {
422
427
  }
423
428
  /**
424
429
  * Get one role
430
+ * Returns the details of a specific role.
425
431
  * @param {Number} id The ID of the role
426
432
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRole}
427
433
  */
@@ -435,7 +441,7 @@ var RolesApi = /*#__PURE__*/function () {
435
441
  }
436
442
  /**
437
443
  * List role assignments
438
- * Lists assignments for a role.
444
+ * Returns all users assigned to a role.
439
445
  * @param {Number} id The ID of the role
440
446
  * @param {Object} opts Optional parameters
441
447
  * @param {Number} opts.start Pagination start (default to 0)
@@ -484,7 +490,7 @@ var RolesApi = /*#__PURE__*/function () {
484
490
  }
485
491
  /**
486
492
  * List role assignments
487
- * Lists assignments for a role.
493
+ * Returns all users assigned to a role.
488
494
  * @param {Number} id The ID of the role
489
495
  * @param {Object} opts Optional parameters
490
496
  * @param {Number} opts.start Pagination start (default to 0)
@@ -501,6 +507,7 @@ var RolesApi = /*#__PURE__*/function () {
501
507
  }
502
508
  /**
503
509
  * List role settings
510
+ * Returns the visibility settings of a specific role.
504
511
  * @param {Number} id The ID of the role
505
512
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRoleSettings} and HTTP response
506
513
  */
@@ -543,6 +550,7 @@ var RolesApi = /*#__PURE__*/function () {
543
550
  }
544
551
  /**
545
552
  * List role settings
553
+ * Returns the visibility settings of a specific role.
546
554
  * @param {Number} id The ID of the role
547
555
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRoleSettings}
548
556
  */
@@ -556,6 +564,7 @@ var RolesApi = /*#__PURE__*/function () {
556
564
  }
557
565
  /**
558
566
  * List role sub-roles
567
+ * Returns the direct children of a specific role.
559
568
  * @param {Number} id The ID of the role
560
569
  * @param {Object} opts Optional parameters
561
570
  * @param {Number} opts.start Pagination start (default to 0)
@@ -604,6 +613,7 @@ var RolesApi = /*#__PURE__*/function () {
604
613
  }
605
614
  /**
606
615
  * List role sub-roles
616
+ * Returns the direct children of a specific role.
607
617
  * @param {Number} id The ID of the role
608
618
  * @param {Object} opts Optional parameters
609
619
  * @param {Number} opts.start Pagination start (default to 0)
@@ -620,6 +630,7 @@ var RolesApi = /*#__PURE__*/function () {
620
630
  }
621
631
  /**
622
632
  * Get all roles
633
+ * Returns all the roles within the company.
623
634
  * @param {Object} opts Optional parameters
624
635
  * @param {Number} opts.start Pagination start (default to 0)
625
636
  * @param {Number} opts.limit Items shown per page
@@ -660,6 +671,7 @@ var RolesApi = /*#__PURE__*/function () {
660
671
  }
661
672
  /**
662
673
  * Get all roles
674
+ * Returns all the roles within the company.
663
675
  * @param {Object} opts Optional parameters
664
676
  * @param {Number} opts.start Pagination start (default to 0)
665
677
  * @param {Number} opts.limit Items shown per page
@@ -675,6 +687,7 @@ var RolesApi = /*#__PURE__*/function () {
675
687
  }
676
688
  /**
677
689
  * Update role details
690
+ * Updates the parent role and/or the name of a specific role.
678
691
  * @param {Number} id The ID of the role
679
692
  * @param {Object} opts Optional parameters
680
693
  * @param {module:model/BaseRole} opts.baseRole
@@ -719,6 +732,7 @@ var RolesApi = /*#__PURE__*/function () {
719
732
  }
720
733
  /**
721
734
  * Update role details
735
+ * Updates the parent role and/or the name of a specific role.
722
736
  * @param {Number} id The ID of the role
723
737
  * @param {Object} opts Optional parameters
724
738
  * @param {module:model/BaseRole} opts.baseRole
@@ -17,8 +17,6 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
17
17
 
18
18
  var _AddUserRequest = _interopRequireDefault(require("../model/AddUserRequest"));
19
19
 
20
- var _DeleteRoleAssignment = _interopRequireDefault(require("../model/DeleteRoleAssignment"));
21
-
22
20
  var _FailResponse = _interopRequireDefault(require("../model/FailResponse"));
23
21
 
24
22
  var _GetRoleAssignments = _interopRequireDefault(require("../model/GetRoleAssignments"));
@@ -27,8 +25,6 @@ var _GetRoleSettings = _interopRequireDefault(require("../model/GetRoleSettings"
27
25
 
28
26
  var _NumberBooleanDefault = _interopRequireDefault(require("../model/NumberBooleanDefault0"));
29
27
 
30
- var _PostRoleAssignment = _interopRequireDefault(require("../model/PostRoleAssignment"));
31
-
32
28
  var _Unauthorized = _interopRequireDefault(require("../model/Unauthorized"));
33
29
 
34
30
  var _UpdateUserRequest = _interopRequireDefault(require("../model/UpdateUserRequest"));
@@ -122,138 +118,6 @@ var UsersApi = /*#__PURE__*/function () {
122
118
  return response_and_data;
123
119
  });
124
120
  }
125
- /**
126
- * Add role assignment
127
- * Adds a role assignment for a user.
128
- * @param {Number} id The ID of the user
129
- * @param {Number} roleId The ID of the role
130
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostRoleAssignment} and HTTP response
131
- */
132
-
133
- }, {
134
- key: "addUserRoleAssignmentWithHttpInfo",
135
- value: function addUserRoleAssignmentWithHttpInfo(id, roleId) {
136
- var opts = {};
137
- var postBody = null; // verify the required parameter 'id' is set
138
-
139
- if (id === undefined || id === null) {
140
- throw new Error("Missing the required parameter 'id' when calling addUserRoleAssignment");
141
- } // verify the required parameter 'roleId' is set
142
-
143
-
144
- if (roleId === undefined || roleId === null) {
145
- throw new Error("Missing the required parameter 'roleId' when calling addUserRoleAssignment");
146
- }
147
-
148
- var pathParams = {
149
- 'id': id
150
- };
151
- var queryParams = {};
152
- var headerParams = {};
153
- var formParams = {
154
- 'role_id': roleId
155
- };
156
- var formParamArray = ['roleId'];
157
- var contentTypes = ['application/x-www-form-urlencoded'];
158
- var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
159
- var isJSON = contentTypes.includes('application/json');
160
-
161
- if (isJSON) {
162
- postBody = _objectSpread(_objectSpread({}, postBody), opts);
163
- } else if (isURLEncoded) {
164
- for (var key in opts) {
165
- if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
166
- formParams[key] = opts[key];
167
- }
168
- }
169
- }
170
-
171
- var authNames = ['api_key'];
172
- var accepts = ['application/json'];
173
- var returnType = _PostRoleAssignment["default"];
174
- return this.apiClient.callApi('/users/{id}/roleAssignments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
175
- }
176
- /**
177
- * Add role assignment
178
- * Adds a role assignment for a user.
179
- * @param {Number} id The ID of the user
180
- * @param {Number} roleId The ID of the role
181
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostRoleAssignment}
182
- */
183
-
184
- }, {
185
- key: "addUserRoleAssignment",
186
- value: function addUserRoleAssignment(id, roleId) {
187
- return this.addUserRoleAssignmentWithHttpInfo(id, roleId).then(function (response_and_data) {
188
- return response_and_data;
189
- });
190
- }
191
- /**
192
- * Delete a role assignment
193
- * Deletes a role assignment for a user.
194
- * @param {Number} id The ID of the user
195
- * @param {Number} roleId The ID of the role
196
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteRoleAssignment} and HTTP response
197
- */
198
-
199
- }, {
200
- key: "deleteUserRoleAssignmentWithHttpInfo",
201
- value: function deleteUserRoleAssignmentWithHttpInfo(id, roleId) {
202
- var opts = {};
203
- var postBody = null; // verify the required parameter 'id' is set
204
-
205
- if (id === undefined || id === null) {
206
- throw new Error("Missing the required parameter 'id' when calling deleteUserRoleAssignment");
207
- } // verify the required parameter 'roleId' is set
208
-
209
-
210
- if (roleId === undefined || roleId === null) {
211
- throw new Error("Missing the required parameter 'roleId' when calling deleteUserRoleAssignment");
212
- }
213
-
214
- var pathParams = {
215
- 'id': id
216
- };
217
- var queryParams = {};
218
- var headerParams = {};
219
- var formParams = {
220
- 'role_id': roleId
221
- };
222
- var formParamArray = ['roleId'];
223
- var contentTypes = ['application/x-www-form-urlencoded'];
224
- var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
225
- var isJSON = contentTypes.includes('application/json');
226
-
227
- if (isJSON) {
228
- postBody = _objectSpread(_objectSpread({}, postBody), opts);
229
- } else if (isURLEncoded) {
230
- for (var key in opts) {
231
- if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
232
- formParams[key] = opts[key];
233
- }
234
- }
235
- }
236
-
237
- var authNames = ['api_key'];
238
- var accepts = ['application/json'];
239
- var returnType = _DeleteRoleAssignment["default"];
240
- return this.apiClient.callApi('/users/{id}/roleAssignments', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
241
- }
242
- /**
243
- * Delete a role assignment
244
- * Deletes a role assignment for a user.
245
- * @param {Number} id The ID of the user
246
- * @param {Number} roleId The ID of the role
247
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteRoleAssignment}
248
- */
249
-
250
- }, {
251
- key: "deleteUserRoleAssignment",
252
- value: function deleteUserRoleAssignment(id, roleId) {
253
- return this.deleteUserRoleAssignmentWithHttpInfo(id, roleId).then(function (response_and_data) {
254
- return response_and_data;
255
- });
256
- }
257
121
  /**
258
122
  * Find users by name
259
123
  * Finds users by their name.
package/dist/index.js CHANGED
@@ -2183,18 +2183,24 @@ Object.defineProperty(exports, "IconKey", {
2183
2183
  return _IconKey["default"];
2184
2184
  }
2185
2185
  });
2186
- Object.defineProperty(exports, "InlineResponse400", {
2186
+ Object.defineProperty(exports, "InlineResponse200", {
2187
2187
  enumerable: true,
2188
2188
  get: function get() {
2189
2189
  return _InlineResponse["default"];
2190
2190
  }
2191
2191
  });
2192
- Object.defineProperty(exports, "InlineResponse4001", {
2192
+ Object.defineProperty(exports, "InlineResponse400", {
2193
2193
  enumerable: true,
2194
2194
  get: function get() {
2195
2195
  return _InlineResponse2["default"];
2196
2196
  }
2197
2197
  });
2198
+ Object.defineProperty(exports, "InlineResponse4001", {
2199
+ enumerable: true,
2200
+ get: function get() {
2201
+ return _InlineResponse3["default"];
2202
+ }
2203
+ });
2198
2204
  Object.defineProperty(exports, "InlineResponse4001AdditionalData", {
2199
2205
  enumerable: true,
2200
2206
  get: function get() {
@@ -2210,13 +2216,13 @@ Object.defineProperty(exports, "InlineResponse400AdditionalData", {
2210
2216
  Object.defineProperty(exports, "InlineResponse403", {
2211
2217
  enumerable: true,
2212
2218
  get: function get() {
2213
- return _InlineResponse3["default"];
2219
+ return _InlineResponse4["default"];
2214
2220
  }
2215
2221
  });
2216
2222
  Object.defineProperty(exports, "InlineResponse4031", {
2217
2223
  enumerable: true,
2218
2224
  get: function get() {
2219
- return _InlineResponse4["default"];
2225
+ return _InlineResponse5["default"];
2220
2226
  }
2221
2227
  });
2222
2228
  Object.defineProperty(exports, "InlineResponse4031AdditionalData", {
@@ -2234,7 +2240,7 @@ Object.defineProperty(exports, "InlineResponse403AdditionalData", {
2234
2240
  Object.defineProperty(exports, "InlineResponse404", {
2235
2241
  enumerable: true,
2236
2242
  get: function get() {
2237
- return _InlineResponse5["default"];
2243
+ return _InlineResponse6["default"];
2238
2244
  }
2239
2245
  });
2240
2246
  Object.defineProperty(exports, "InlineResponse404AdditionalData", {
@@ -2897,6 +2903,12 @@ Object.defineProperty(exports, "NoteField", {
2897
2903
  return _NoteField["default"];
2898
2904
  }
2899
2905
  });
2906
+ Object.defineProperty(exports, "NoteFieldOptions", {
2907
+ enumerable: true,
2908
+ get: function get() {
2909
+ return _NoteFieldOptions["default"];
2910
+ }
2911
+ });
2900
2912
  Object.defineProperty(exports, "NoteFieldsApi", {
2901
2913
  enumerable: true,
2902
2914
  get: function get() {
@@ -3329,12 +3341,6 @@ Object.defineProperty(exports, "PaymentsResponseAllOf", {
3329
3341
  return _PaymentsResponseAllOf["default"];
3330
3342
  }
3331
3343
  });
3332
- Object.defineProperty(exports, "PaymentsResponseAllOfData", {
3333
- enumerable: true,
3334
- get: function get() {
3335
- return _PaymentsResponseAllOfData["default"];
3336
- }
3337
- });
3338
3344
  Object.defineProperty(exports, "PermissionSets", {
3339
3345
  enumerable: true,
3340
3346
  get: function get() {
@@ -5214,23 +5220,25 @@ var _GoalsResponseComponent = _interopRequireDefault(require("./model/GoalsRespo
5214
5220
 
5215
5221
  var _IconKey = _interopRequireDefault(require("./model/IconKey"));
5216
5222
 
5217
- var _InlineResponse = _interopRequireDefault(require("./model/InlineResponse400"));
5223
+ var _InlineResponse = _interopRequireDefault(require("./model/InlineResponse200"));
5218
5224
 
5219
- var _InlineResponse2 = _interopRequireDefault(require("./model/InlineResponse4001"));
5225
+ var _InlineResponse2 = _interopRequireDefault(require("./model/InlineResponse400"));
5226
+
5227
+ var _InlineResponse3 = _interopRequireDefault(require("./model/InlineResponse4001"));
5220
5228
 
5221
5229
  var _InlineResponse4001AdditionalData = _interopRequireDefault(require("./model/InlineResponse4001AdditionalData"));
5222
5230
 
5223
5231
  var _InlineResponse400AdditionalData = _interopRequireDefault(require("./model/InlineResponse400AdditionalData"));
5224
5232
 
5225
- var _InlineResponse3 = _interopRequireDefault(require("./model/InlineResponse403"));
5233
+ var _InlineResponse4 = _interopRequireDefault(require("./model/InlineResponse403"));
5226
5234
 
5227
- var _InlineResponse4 = _interopRequireDefault(require("./model/InlineResponse4031"));
5235
+ var _InlineResponse5 = _interopRequireDefault(require("./model/InlineResponse4031"));
5228
5236
 
5229
5237
  var _InlineResponse4031AdditionalData = _interopRequireDefault(require("./model/InlineResponse4031AdditionalData"));
5230
5238
 
5231
5239
  var _InlineResponse403AdditionalData = _interopRequireDefault(require("./model/InlineResponse403AdditionalData"));
5232
5240
 
5233
- var _InlineResponse5 = _interopRequireDefault(require("./model/InlineResponse404"));
5241
+ var _InlineResponse6 = _interopRequireDefault(require("./model/InlineResponse404"));
5234
5242
 
5235
5243
  var _InlineResponse404AdditionalData = _interopRequireDefault(require("./model/InlineResponse404AdditionalData"));
5236
5244
 
@@ -5440,6 +5448,8 @@ var _NoteCreatorUser = _interopRequireDefault(require("./model/NoteCreatorUser")
5440
5448
 
5441
5449
  var _NoteField = _interopRequireDefault(require("./model/NoteField"));
5442
5450
 
5451
+ var _NoteFieldOptions = _interopRequireDefault(require("./model/NoteFieldOptions"));
5452
+
5443
5453
  var _NoteFieldsResponse = _interopRequireDefault(require("./model/NoteFieldsResponse"));
5444
5454
 
5445
5455
  var _NoteFieldsResponseAllOf = _interopRequireDefault(require("./model/NoteFieldsResponseAllOf"));
@@ -5574,8 +5584,6 @@ var _PaymentsResponse = _interopRequireDefault(require("./model/PaymentsResponse
5574
5584
 
5575
5585
  var _PaymentsResponseAllOf = _interopRequireDefault(require("./model/PaymentsResponseAllOf"));
5576
5586
 
5577
- var _PaymentsResponseAllOfData = _interopRequireDefault(require("./model/PaymentsResponseAllOfData"));
5578
-
5579
5587
  var _PermissionSets = _interopRequireDefault(require("./model/PermissionSets"));
5580
5588
 
5581
5589
  var _PermissionSetsAllOf = _interopRequireDefault(require("./model/PermissionSetsAllOf"));
@@ -68,16 +68,16 @@ var AddRole = /*#__PURE__*/function () {
68
68
  if (data) {
69
69
  obj = obj || new AddRole();
70
70
 
71
- if (data.hasOwnProperty('parent_role_id')) {
72
- obj['parent_role_id'] = _ApiClient["default"].convertToType(data['parent_role_id'], 'Number');
73
- delete data['parent_role_id'];
74
- }
75
-
76
71
  if (data.hasOwnProperty('name')) {
77
72
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
78
73
  delete data['name'];
79
74
  }
80
75
 
76
+ if (data.hasOwnProperty('parent_role_id')) {
77
+ obj['parent_role_id'] = _ApiClient["default"].convertToType(data['parent_role_id'], 'Number');
78
+ delete data['parent_role_id'];
79
+ }
80
+
81
81
  if (Object.keys(data).length > 0) {
82
82
  Object.assign(obj, data);
83
83
  }
@@ -89,17 +89,17 @@ var AddRole = /*#__PURE__*/function () {
89
89
  return AddRole;
90
90
  }();
91
91
  /**
92
- * The ID of the parent role
93
- * @member {Number} parent_role_id
92
+ * The name of the role
93
+ * @member {String} name
94
94
  */
95
95
 
96
96
 
97
- AddRole.prototype['parent_role_id'] = undefined;
97
+ AddRole.prototype['name'] = undefined;
98
98
  /**
99
- * The name of the role
100
- * @member {String} name
99
+ * The ID of the parent role
100
+ * @member {Number} parent_role_id
101
101
  */
102
102
 
103
- AddRole.prototype['name'] = undefined;
103
+ AddRole.prototype['parent_role_id'] = undefined;
104
104
  var _default = AddRole;
105
105
  exports["default"] = _default;
@@ -66,7 +66,7 @@ var Assignee = /*#__PURE__*/function () {
66
66
  obj = obj || new Assignee();
67
67
 
68
68
  if (data.hasOwnProperty('id')) {
69
- obj['id'] = _ApiClient["default"].convertToType(data['id'], Object);
69
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
70
70
  delete data['id'];
71
71
  }
72
72
 
@@ -87,7 +87,7 @@ var Assignee = /*#__PURE__*/function () {
87
87
  }();
88
88
  /**
89
89
  * The ID of the goal assignee
90
- * @member {Object} id
90
+ * @member {Number} id
91
91
  */
92
92
 
93
93
 
@@ -75,7 +75,7 @@ var BaseFollowerItem = /*#__PURE__*/function () {
75
75
  }
76
76
 
77
77
  if (data.hasOwnProperty('add_time')) {
78
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'Number');
78
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'Date');
79
79
  delete data['add_time'];
80
80
  }
81
81
 
@@ -104,7 +104,7 @@ BaseFollowerItem.prototype['user_id'] = undefined;
104
104
  BaseFollowerItem.prototype['id'] = undefined;
105
105
  /**
106
106
  * The date and time of adding the follower to the item
107
- * @member {Number} add_time
107
+ * @member {Date} add_time
108
108
  */
109
109
 
110
110
  BaseFollowerItem.prototype['add_time'] = undefined;
@@ -72,7 +72,7 @@ var ChannelObjectResponse = /*#__PURE__*/function () {
72
72
  }
73
73
 
74
74
  if (data.hasOwnProperty('data')) {
75
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_ChannelObjectResponseData["default"]]);
75
+ obj['data'] = _ChannelObjectResponseData["default"].constructFromObject(data['data']);
76
76
  delete data['data'];
77
77
  }
78
78
 
@@ -93,7 +93,7 @@ var ChannelObjectResponse = /*#__PURE__*/function () {
93
93
 
94
94
  ChannelObjectResponse.prototype['success'] = undefined;
95
95
  /**
96
- * @member {Array.<module:model/ChannelObjectResponseData>} data
96
+ * @member {module:model/ChannelObjectResponseData} data
97
97
  */
98
98
 
99
99
  ChannelObjectResponse.prototype['data'] = undefined;
@@ -93,7 +93,7 @@ var DealSearchItemItem = /*#__PURE__*/function () {
93
93
  }
94
94
 
95
95
  if (data.hasOwnProperty('currency')) {
96
- obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'Number');
96
+ obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
97
97
  delete data['currency'];
98
98
  }
99
99
 
@@ -128,7 +128,7 @@ var DealSearchItemItem = /*#__PURE__*/function () {
128
128
  }
129
129
 
130
130
  if (data.hasOwnProperty('custom_fields')) {
131
- obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], 'Number');
131
+ obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], ['String']);
132
132
  delete data['custom_fields'];
133
133
  }
134
134
 
@@ -174,7 +174,7 @@ DealSearchItemItem.prototype['title'] = undefined;
174
174
  DealSearchItemItem.prototype['value'] = undefined;
175
175
  /**
176
176
  * The currency of the deal
177
- * @member {Number} currency
177
+ * @member {String} currency
178
178
  */
179
179
 
180
180
  DealSearchItemItem.prototype['currency'] = undefined;
@@ -212,7 +212,7 @@ DealSearchItemItem.prototype['person'] = undefined;
212
212
  DealSearchItemItem.prototype['organization'] = undefined;
213
213
  /**
214
214
  * Custom fields
215
- * @member {Number} custom_fields
215
+ * @member {Array.<String>} custom_fields
216
216
  */
217
217
 
218
218
  DealSearchItemItem.prototype['custom_fields'] = undefined;
@@ -116,7 +116,7 @@ var FileData = /*#__PURE__*/function () {
116
116
  }
117
117
 
118
118
  if (data.hasOwnProperty('file_size')) {
119
- obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'String');
119
+ obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'Number');
120
120
  delete data['file_size'];
121
121
  }
122
122
 
@@ -268,7 +268,7 @@ FileData.prototype['update_time'] = undefined;
268
268
  FileData.prototype['file_name'] = undefined;
269
269
  /**
270
270
  * The size of the file
271
- * @member {String} file_size
271
+ * @member {Number} file_size
272
272
  */
273
273
 
274
274
  FileData.prototype['file_size'] = undefined;
@@ -116,7 +116,7 @@ var FileItem = /*#__PURE__*/function () {
116
116
  }
117
117
 
118
118
  if (data.hasOwnProperty('file_size')) {
119
- obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'String');
119
+ obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'Number');
120
120
  delete data['file_size'];
121
121
  }
122
122
 
@@ -268,7 +268,7 @@ FileItem.prototype['update_time'] = undefined;
268
268
  FileItem.prototype['file_name'] = undefined;
269
269
  /**
270
270
  * The size of the file
271
- * @member {String} file_size
271
+ * @member {Number} file_size
272
272
  */
273
273
 
274
274
  FileItem.prototype['file_size'] = undefined;
@@ -78,7 +78,7 @@ var GoalsResponseComponent = /*#__PURE__*/function () {
78
78
  }
79
79
 
80
80
  if (data.hasOwnProperty('owner_id')) {
81
- obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'String');
81
+ obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
82
82
  delete data['owner_id'];
83
83
  }
84
84
 
@@ -118,7 +118,7 @@ var GoalsResponseComponent = /*#__PURE__*/function () {
118
118
  }
119
119
 
120
120
  if (data.hasOwnProperty('report_ids')) {
121
- obj['report_ids'] = _ApiClient["default"].convertToType(data['report_ids'], ['Number']);
121
+ obj['report_ids'] = _ApiClient["default"].convertToType(data['report_ids'], ['String']);
122
122
  delete data['report_ids'];
123
123
  }
124
124
 
@@ -141,7 +141,7 @@ var GoalsResponseComponent = /*#__PURE__*/function () {
141
141
  GoalsResponseComponent.prototype['id'] = undefined;
142
142
  /**
143
143
  * The ID of the creator of the goal
144
- * @member {String} owner_id
144
+ * @member {Number} owner_id
145
145
  */
146
146
 
147
147
  GoalsResponseComponent.prototype['owner_id'] = undefined;
@@ -185,7 +185,7 @@ GoalsResponseComponent.prototype['expected_outcome'] = undefined;
185
185
  GoalsResponseComponent.prototype['is_active'] = undefined;
186
186
  /**
187
187
  * The IDs of the reports that belong to the goal
188
- * @member {Array.<Number>} report_ids
188
+ * @member {Array.<String>} report_ids
189
189
  */
190
190
 
191
191
  GoalsResponseComponent.prototype['report_ids'] = undefined;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ var _MessageObject = _interopRequireDefault(require("./MessageObject"));
17
+
18
+ /**
19
+ * Pipedrive API v1
20
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
21
+ *
22
+ * The version of the OpenAPI document: 1.0.0
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+
31
+ /**
32
+ * The InlineResponse200 model module.
33
+ * @module model/InlineResponse200
34
+ * @version 1.0.0
35
+ */
36
+ var InlineResponse200 = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>InlineResponse200</code>.
39
+ * @alias module:model/InlineResponse200
40
+ */
41
+ function InlineResponse200() {
42
+ (0, _classCallCheck2["default"])(this, InlineResponse200);
43
+ InlineResponse200.initialize(this);
44
+ }
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+
51
+
52
+ (0, _createClass2["default"])(InlineResponse200, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj) {}
55
+ /**
56
+ * Constructs a <code>InlineResponse200</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/InlineResponse200} obj Optional instance to populate.
60
+ * @return {module:model/InlineResponse200} The populated <code>InlineResponse200</code> instance.
61
+ */
62
+
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new InlineResponse200();
68
+
69
+ if (data.hasOwnProperty('success')) {
70
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
71
+ delete data['success'];
72
+ }
73
+
74
+ if (data.hasOwnProperty('data')) {
75
+ obj['data'] = _MessageObject["default"].constructFromObject(data['data']);
76
+ delete data['data'];
77
+ }
78
+
79
+ if (Object.keys(data).length > 0) {
80
+ Object.assign(obj, data);
81
+ }
82
+ }
83
+
84
+ return obj;
85
+ }
86
+ }]);
87
+ return InlineResponse200;
88
+ }();
89
+ /**
90
+ * If the request was successful or not
91
+ * @member {Boolean} success
92
+ */
93
+
94
+
95
+ InlineResponse200.prototype['success'] = undefined;
96
+ /**
97
+ * @member {module:model/MessageObject} data
98
+ */
99
+
100
+ InlineResponse200.prototype['data'] = undefined;
101
+ var _default = InlineResponse200;
102
+ exports["default"] = _default;
@@ -111,7 +111,7 @@ var LeadSearchItemItem = /*#__PURE__*/function () {
111
111
  }
112
112
 
113
113
  if (data.hasOwnProperty('custom_fields')) {
114
- obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], 'Number');
114
+ obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], ['String']);
115
115
  delete data['custom_fields'];
116
116
  }
117
117
 
@@ -196,7 +196,7 @@ LeadSearchItemItem.prototype['phones'] = undefined;
196
196
  LeadSearchItemItem.prototype['emails'] = undefined;
197
197
  /**
198
198
  * Custom fields
199
- * @member {Number} custom_fields
199
+ * @member {Array.<String>} custom_fields
200
200
  */
201
201
 
202
202
  LeadSearchItemItem.prototype['custom_fields'] = undefined;
@@ -15,6 +15,8 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
16
  var _FieldTypeAsString = _interopRequireDefault(require("./FieldTypeAsString"));
17
17
 
18
+ var _NoteFieldOptions = _interopRequireDefault(require("./NoteFieldOptions"));
19
+
18
20
  /**
19
21
  * Pipedrive API v1
20
22
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -107,7 +109,7 @@ var NoteField = /*#__PURE__*/function () {
107
109
  }
108
110
 
109
111
  if (data.hasOwnProperty('options')) {
110
- obj['options'] = _ApiClient["default"].convertToType(data['options'], [Object]);
112
+ obj['options'] = _ApiClient["default"].convertToType(data['options'], [_NoteFieldOptions["default"]]);
111
113
  delete data['options'];
112
114
  }
113
115
 
@@ -171,7 +173,7 @@ NoteField.prototype['bulk_edit_allowed'] = undefined;
171
173
  NoteField.prototype['mandatory_flag'] = undefined;
172
174
  /**
173
175
  * The options of the field. When there are no options, `null` is returned.
174
- * @member {Array.<Object>} options
176
+ * @member {Array.<module:model/NoteFieldOptions>} options
175
177
  */
176
178
 
177
179
  NoteField.prototype['options'] = undefined;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ /**
17
+ * Pipedrive API v1
18
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
19
+ *
20
+ * The version of the OpenAPI document: 1.0.0
21
+ *
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+
29
+ /**
30
+ * The NoteFieldOptions model module.
31
+ * @module model/NoteFieldOptions
32
+ * @version 1.0.0
33
+ */
34
+ var NoteFieldOptions = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>NoteFieldOptions</code>.
37
+ * @alias module:model/NoteFieldOptions
38
+ */
39
+ function NoteFieldOptions() {
40
+ (0, _classCallCheck2["default"])(this, NoteFieldOptions);
41
+ NoteFieldOptions.initialize(this);
42
+ }
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+
49
+
50
+ (0, _createClass2["default"])(NoteFieldOptions, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>NoteFieldOptions</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/NoteFieldOptions} obj Optional instance to populate.
58
+ * @return {module:model/NoteFieldOptions} The populated <code>NoteFieldOptions</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new NoteFieldOptions();
66
+
67
+ if (data.hasOwnProperty('id')) {
68
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
69
+ delete data['id'];
70
+ }
71
+
72
+ if (data.hasOwnProperty('label')) {
73
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
74
+ delete data['label'];
75
+ }
76
+
77
+ if (Object.keys(data).length > 0) {
78
+ Object.assign(obj, data);
79
+ }
80
+ }
81
+
82
+ return obj;
83
+ }
84
+ }]);
85
+ return NoteFieldOptions;
86
+ }();
87
+ /**
88
+ * @member {Number} id
89
+ */
90
+
91
+
92
+ NoteFieldOptions.prototype['id'] = undefined;
93
+ /**
94
+ * @member {String} label
95
+ */
96
+
97
+ NoteFieldOptions.prototype['label'] = undefined;
98
+ var _default = NoteFieldOptions;
99
+ exports["default"] = _default;
@@ -95,7 +95,7 @@ var OrganizationFollowerItem = /*#__PURE__*/function () {
95
95
  }
96
96
 
97
97
  if (data.hasOwnProperty('add_time')) {
98
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'Number');
98
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'Date');
99
99
  delete data['add_time'];
100
100
  }
101
101
 
@@ -130,7 +130,7 @@ OrganizationFollowerItem.prototype['user_id'] = undefined;
130
130
  OrganizationFollowerItem.prototype['id'] = undefined;
131
131
  /**
132
132
  * The date and time of adding the follower to the item
133
- * @member {Number} add_time
133
+ * @member {Date} add_time
134
134
  */
135
135
 
136
136
  OrganizationFollowerItem.prototype['add_time'] = undefined; // Implement OrganizationFollowerItemAllOf interface:
@@ -156,7 +156,7 @@ _BaseFollowerItem["default"].prototype['user_id'] = undefined;
156
156
  _BaseFollowerItem["default"].prototype['id'] = undefined;
157
157
  /**
158
158
  * The date and time of adding the follower to the item
159
- * @member {Number} add_time
159
+ * @member {Date} add_time
160
160
  */
161
161
 
162
162
  _BaseFollowerItem["default"].prototype['add_time'] = undefined;
@@ -15,9 +15,9 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
16
  var _BaseResponse = _interopRequireDefault(require("./BaseResponse"));
17
17
 
18
- var _PaymentsResponseAllOf = _interopRequireDefault(require("./PaymentsResponseAllOf"));
18
+ var _PaymentItem = _interopRequireDefault(require("./PaymentItem"));
19
19
 
20
- var _PaymentsResponseAllOfData = _interopRequireDefault(require("./PaymentsResponseAllOfData"));
20
+ var _PaymentsResponseAllOf = _interopRequireDefault(require("./PaymentsResponseAllOf"));
21
21
 
22
22
  /**
23
23
  * Pipedrive API v1
@@ -87,7 +87,7 @@ var PaymentsResponse = /*#__PURE__*/function () {
87
87
  }
88
88
 
89
89
  if (data.hasOwnProperty('data')) {
90
- obj['data'] = _PaymentsResponseAllOfData["default"].constructFromObject(data['data']);
90
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_PaymentItem["default"]]);
91
91
  delete data['data'];
92
92
  }
93
93
 
@@ -109,7 +109,7 @@ var PaymentsResponse = /*#__PURE__*/function () {
109
109
 
110
110
  PaymentsResponse.prototype['success'] = undefined;
111
111
  /**
112
- * @member {module:model/PaymentsResponseAllOfData} data
112
+ * @member {Array.<module:model/PaymentItem>} data
113
113
  */
114
114
 
115
115
  PaymentsResponse.prototype['data'] = undefined; // Implement BaseResponse interface:
@@ -122,7 +122,7 @@ PaymentsResponse.prototype['data'] = undefined; // Implement BaseResponse interf
122
122
  _BaseResponse["default"].prototype['success'] = undefined; // Implement PaymentsResponseAllOf interface:
123
123
 
124
124
  /**
125
- * @member {module:model/PaymentsResponseAllOfData} data
125
+ * @member {Array.<module:model/PaymentItem>} data
126
126
  */
127
127
 
128
128
  _PaymentsResponseAllOf["default"].prototype['data'] = undefined;
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
- var _PaymentsResponseAllOfData = _interopRequireDefault(require("./PaymentsResponseAllOfData"));
16
+ var _PaymentItem = _interopRequireDefault(require("./PaymentItem"));
17
17
 
18
18
  /**
19
19
  * Pipedrive API v1
@@ -67,7 +67,7 @@ var PaymentsResponseAllOf = /*#__PURE__*/function () {
67
67
  obj = obj || new PaymentsResponseAllOf();
68
68
 
69
69
  if (data.hasOwnProperty('data')) {
70
- obj['data'] = _PaymentsResponseAllOfData["default"].constructFromObject(data['data']);
70
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_PaymentItem["default"]]);
71
71
  delete data['data'];
72
72
  }
73
73
 
@@ -82,7 +82,7 @@ var PaymentsResponseAllOf = /*#__PURE__*/function () {
82
82
  return PaymentsResponseAllOf;
83
83
  }();
84
84
  /**
85
- * @member {module:model/PaymentsResponseAllOfData} data
85
+ * @member {Array.<module:model/PaymentItem>} data
86
86
  */
87
87
 
88
88
 
@@ -109,7 +109,7 @@ var PersonSearchItemItem = /*#__PURE__*/function () {
109
109
  }
110
110
 
111
111
  if (data.hasOwnProperty('custom_fields')) {
112
- obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], 'Number');
112
+ obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], ['String']);
113
113
  delete data['custom_fields'];
114
114
  }
115
115
 
@@ -177,7 +177,7 @@ PersonSearchItemItem.prototype['owner'] = undefined;
177
177
  PersonSearchItemItem.prototype['organization'] = undefined;
178
178
  /**
179
179
  * Custom fields
180
- * @member {Number} custom_fields
180
+ * @member {Array.<String>} custom_fields
181
181
  */
182
182
 
183
183
  PersonSearchItemItem.prototype['custom_fields'] = undefined;
@@ -7,15 +7,24 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
 
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
11
 
14
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
13
 
16
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
17
15
 
18
- var _PostRoleSettingsAllO;
16
+ /**
17
+ * Pipedrive API v1
18
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
19
+ *
20
+ * The version of the OpenAPI document: 1.0.0
21
+ *
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
19
28
 
20
29
  /**
21
30
  * The PostRoleSettingsAllOfData model module.
@@ -95,12 +104,30 @@ PostRoleSettingsAllOfData.prototype['deal_default_visibility'] = undefined;
95
104
  * @readonly
96
105
  */
97
106
 
98
- PostRoleSettingsAllOfData['DealDefaultVisibilityEnum'] = (_PostRoleSettingsAllO = {
107
+ PostRoleSettingsAllOfData['DealDefaultVisibilityEnum'] = {
108
+ /**
109
+ * value: 1
110
+ * @const
111
+ */
112
+ "1": 1,
113
+
114
+ /**
115
+ * value: 3
116
+ * @const
117
+ */
118
+ "3": 3,
119
+
120
+ /**
121
+ * value: 5
122
+ * @const
123
+ */
124
+ "5": 5,
125
+
99
126
  /**
100
- * value: null
127
+ * value: 7
101
128
  * @const
102
129
  */
103
- "null": null
104
- }, (0, _defineProperty2["default"])(_PostRoleSettingsAllO, "null", null), (0, _defineProperty2["default"])(_PostRoleSettingsAllO, "null", null), (0, _defineProperty2["default"])(_PostRoleSettingsAllO, "null", null), (0, _defineProperty2["default"])(_PostRoleSettingsAllO, "null", null), _PostRoleSettingsAllO);
130
+ "7": 7
131
+ };
105
132
  var _default = PostRoleSettingsAllOfData;
106
133
  exports["default"] = _default;
@@ -97,7 +97,7 @@ var ProductSearchItemItem = /*#__PURE__*/function () {
97
97
  }
98
98
 
99
99
  if (data.hasOwnProperty('custom_fields')) {
100
- obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], 'Number');
100
+ obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], ['String']);
101
101
  delete data['custom_fields'];
102
102
  }
103
103
 
@@ -149,7 +149,7 @@ ProductSearchItemItem.prototype['visible_to'] = undefined;
149
149
  ProductSearchItemItem.prototype['owner'] = undefined;
150
150
  /**
151
151
  * The custom fields
152
- * @member {Number} custom_fields
152
+ * @member {Array.<String>} custom_fields
153
153
  */
154
154
 
155
155
  ProductSearchItemItem.prototype['custom_fields'] = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "17.1.4",
3
+ "version": "17.2.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",