Skip to content

Commit 51c18cc

Browse files
author
Jenkins User
committed
Release v13.3.4 from PR #333
2 parents d8b139d + 7932ea3 commit 51c18cc

File tree

9 files changed

+122
-19
lines changed

9 files changed

+122
-19
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
77
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).
88

99
## [Unreleased]
10+
11+
## 13.3.4
12+
### Changed
13+
- Updated `PUT /productFields/{id}`: parameter `name` is not
14+
15+
## 13.3.3
1016
### Changed
1117
- Added babel/runtime to dependencies
1218

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,6 @@ Class | Method | HTTP request | Description
620620
- [Pipedrive.BasicOrganization](docs/BasicOrganization.md)
621621
- [Pipedrive.BasicPerson](docs/BasicPerson.md)
622622
- [Pipedrive.BasicPersonEmail](docs/BasicPersonEmail.md)
623-
- [Pipedrive.BasicProductField](docs/BasicProductField.md)
624623
- [Pipedrive.BulkDeleteResponse](docs/BulkDeleteResponse.md)
625624
- [Pipedrive.BulkDeleteResponseAllOf](docs/BulkDeleteResponseAllOf.md)
626625
- [Pipedrive.BulkDeleteResponseAllOfData](docs/BulkDeleteResponseAllOfData.md)
@@ -1163,6 +1162,7 @@ Class | Method | HTTP request | Description
11631162
- [Pipedrive.UpdateLeadLabelRequest](docs/UpdateLeadLabelRequest.md)
11641163
- [Pipedrive.UpdateLeadRequest](docs/UpdateLeadRequest.md)
11651164
- [Pipedrive.UpdatePersonResponse](docs/UpdatePersonResponse.md)
1165+
- [Pipedrive.UpdateProductField](docs/UpdateProductField.md)
11661166
- [Pipedrive.UpdateProductRequestBody](docs/UpdateProductRequestBody.md)
11671167
- [Pipedrive.UpdateProductResponse](docs/UpdateProductResponse.md)
11681168
- [Pipedrive.UpdateStageRequest](docs/UpdateStageRequest.md)

docs/ProductFieldsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
308308

309309
let apiInstance = new Pipedrive.ProductFieldsApi();
310310
let id = 56; // Number | The ID of the product field
311-
let opts = Pipedrive.BasicProductField.constructFromObject({
311+
let opts = Pipedrive.UpdateProductField.constructFromObject({
312312
// Properties that you want to update
313313
});
314314
apiInstance.updateProductField(id, opts).then((data) => {
@@ -325,7 +325,7 @@ apiInstance.updateProductField(id, opts).then((data) => {
325325
Name | Type | Description | Notes
326326
------------- | ------------- | ------------- | -------------
327327
**id** | **Number**| The ID of the product field |
328-
**basicProductField** | [**BasicProductField**](BasicProductField.md)| | [optional]
328+
**updateProductField** | [**UpdateProductField**](UpdateProductField.md)| | [optional]
329329

330330
### Return type
331331

docs/UpdateProductField.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Pipedrive.UpdateProductField
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | The name of the field | [optional]
8+
**options** | **[Object]** | When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}] | [optional]
9+
10+

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pipedrive",
3-
"version": "13.3.3",
3+
"version": "13.3.4",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"main": "dist/index.js",

src/api/ProductFieldsApi.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414

1515
import ApiClient from "../ApiClient";
16-
import BasicProductField from '../model/BasicProductField';
1716
import DeleteMultipleProductFieldsResponse from '../model/DeleteMultipleProductFieldsResponse';
1817
import DeleteProductFieldResponse from '../model/DeleteProductFieldResponse';
1918
import FailResponse from '../model/FailResponse';
2019
import GetAllProductFieldsResponse from '../model/GetAllProductFieldsResponse';
2120
import GetProductFieldResponse from '../model/GetProductFieldResponse';
2221
import NewProductField from '../model/NewProductField';
22+
import UpdateProductField from '../model/UpdateProductField';
2323

2424
/**
2525
* ProductFields service.
@@ -381,21 +381,18 @@ export default class ProductFieldsApi {
381381
* Updates a product field. For more information, see the tutorial for <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values</a>.
382382
* @param {Number} id The ID of the product field
383383
* @param {Object} opts Optional parameters
384-
* @param {module:model/BasicProductField} opts.basicProductField
384+
* @param {module:model/UpdateProductField} opts.updateProductField
385385
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductFieldResponse} and HTTP response
386386
*/
387387
updateProductFieldWithHttpInfo(id, opts) {
388388
opts = opts || {};
389-
let postBody = opts['basicProductField'];
389+
let postBody = opts['updateProductField'];
390390

391391
// verify the required parameter 'id' is set
392392
if (id === undefined || id === null) {
393393
throw new Error("Missing the required parameter 'id' when calling updateProductField");
394394
}
395395

396-
if (opts['name'] === undefined || opts['name'] === null) {
397-
throw new Error("Missing the required parameter 'name' when calling updateProductField");
398-
}
399396

400397
let pathParams = {
401398
'id': id,
@@ -439,7 +436,7 @@ export default class ProductFieldsApi {
439436
* Updates a product field. For more information, see the tutorial for <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values</a>.
440437
* @param {Number} id The ID of the product field
441438
* @param {Object} opts Optional parameters
442-
* @param {module:model/BasicProductField} opts.basicProductField
439+
* @param {module:model/UpdateProductField} opts.updateProductField
443440
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductFieldResponse}
444441
*/
445442
updateProductField(id, opts) {

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ import BasicGoal from './model/BasicGoal';
124124
import BasicOrganization from './model/BasicOrganization';
125125
import BasicPerson from './model/BasicPerson';
126126
import BasicPersonEmail from './model/BasicPersonEmail';
127-
import BasicProductField from './model/BasicProductField';
128127
import BulkDeleteResponse from './model/BulkDeleteResponse';
129128
import BulkDeleteResponseAllOf from './model/BulkDeleteResponseAllOf';
130129
import BulkDeleteResponseAllOfData from './model/BulkDeleteResponseAllOfData';
@@ -667,6 +666,7 @@ import UpdateFilterRequest from './model/UpdateFilterRequest';
667666
import UpdateLeadLabelRequest from './model/UpdateLeadLabelRequest';
668667
import UpdateLeadRequest from './model/UpdateLeadRequest';
669668
import UpdatePersonResponse from './model/UpdatePersonResponse';
669+
import UpdateProductField from './model/UpdateProductField';
670670
import UpdateProductRequestBody from './model/UpdateProductRequestBody';
671671
import UpdateProductResponse from './model/UpdateProductResponse';
672672
import UpdateStageRequest from './model/UpdateStageRequest';
@@ -1448,12 +1448,6 @@ export {
14481448
*/
14491449
BasicPersonEmail,
14501450

1451-
/**
1452-
* The BasicProductField model constructor.
1453-
* @property {module:model/BasicProductField}
1454-
*/
1455-
BasicProductField,
1456-
14571451
/**
14581452
* The BulkDeleteResponse model constructor.
14591453
* @property {module:model/BulkDeleteResponse}
@@ -4706,6 +4700,12 @@ export {
47064700
*/
47074701
UpdatePersonResponse,
47084702

4703+
/**
4704+
* The UpdateProductField model constructor.
4705+
* @property {module:model/UpdateProductField}
4706+
*/
4707+
UpdateProductField,
4708+
47094709
/**
47104710
* The UpdateProductRequestBody model constructor.
47114711
* @property {module:model/UpdateProductRequestBody}

src/model/UpdateProductField.js

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/**
2+
* Pipedrive API v1
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* The version of the OpenAPI document: 1.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*
12+
*/
13+
14+
import ApiClient from '../ApiClient';
15+
16+
/**
17+
* The UpdateProductField model module.
18+
* @module model/UpdateProductField
19+
* @version 1.0.0
20+
*/
21+
class UpdateProductField {
22+
/**
23+
* Constructs a new <code>UpdateProductField</code>.
24+
* @alias module:model/UpdateProductField
25+
*/
26+
constructor() {
27+
28+
UpdateProductField.initialize(this);
29+
}
30+
31+
/**
32+
* Initializes the fields of this object.
33+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34+
* Only for internal use.
35+
*/
36+
static initialize(obj) {
37+
}
38+
39+
/**
40+
* Constructs a <code>UpdateProductField</code> from a plain JavaScript object, optionally creating a new instance.
41+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
42+
* @param {Object} data The plain JavaScript object bearing properties of interest.
43+
* @param {module:model/UpdateProductField} obj Optional instance to populate.
44+
* @return {module:model/UpdateProductField} The populated <code>UpdateProductField</code> instance.
45+
*/
46+
static constructFromObject(data, obj) {
47+
if (data) {
48+
obj = obj || new UpdateProductField();
49+
50+
if (data.hasOwnProperty('name')) {
51+
obj['name'] = ApiClient.convertToType(data['name'], 'String');
52+
53+
delete data['name'];
54+
}
55+
if (data.hasOwnProperty('options')) {
56+
obj['options'] = ApiClient.convertToType(data['options'], [Object]);
57+
58+
delete data['options'];
59+
}
60+
61+
if (Object.keys(data).length > 0) {
62+
Object.assign(obj, data);
63+
}
64+
65+
}
66+
return obj;
67+
}
68+
69+
70+
}
71+
72+
/**
73+
* The name of the field
74+
* @member {String} name
75+
*/
76+
UpdateProductField.prototype['name'] = undefined;
77+
78+
/**
79+
* When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}]
80+
* @member {Array.<Object>} options
81+
*/
82+
UpdateProductField.prototype['options'] = undefined;
83+
84+
85+
86+
87+
88+
89+
export default UpdateProductField;
90+

0 commit comments

Comments
 (0)