Skip to content

Commit 2df5a11

Browse files
author
Jenkins User
committed
Release v14.0.1 from PR #339
2 parents 2dd9516 + 82319a3 commit 2df5a11

16 files changed

+374
-47
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
66

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

9-
## [Unreleased]
9+
## 14.0.1
10+
### Fixed
11+
- Updated `PUT /persons/{id}`: parameter `name` is not required
1012

1113
## 14.0.0
1214
### Changed
@@ -15,7 +17,7 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
1517

1618
## 13.3.4
1719
### Changed
18-
- Updated `PUT /productFields/{id}`: parameter `name` is not
20+
- Updated `PUT /productFields/{id}`: parameter `name` is not
1921

2022
## 13.3.3
2123
### Changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,8 @@ Class | Method | HTTP request | Description
11821182
- [Pipedrive.UpdateFilterRequest](docs/UpdateFilterRequest.md)
11831183
- [Pipedrive.UpdateLeadLabelRequest](docs/UpdateLeadLabelRequest.md)
11841184
- [Pipedrive.UpdateLeadRequest](docs/UpdateLeadRequest.md)
1185+
- [Pipedrive.UpdatePerson](docs/UpdatePerson.md)
1186+
- [Pipedrive.UpdatePersonAllOf](docs/UpdatePersonAllOf.md)
11851187
- [Pipedrive.UpdatePersonResponse](docs/UpdatePersonResponse.md)
11861188
- [Pipedrive.UpdateProductField](docs/UpdateProductField.md)
11871189
- [Pipedrive.UpdateProductRequestBody](docs/UpdateProductRequestBody.md)

docs/BasicPerson.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**name** | **String** | The name of the person |
87
**ownerId** | **Number** | The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. | [optional]
98
**orgId** | **Number** | The ID of the organization this person will belong to | [optional]
109
**email** | [**[BasicPersonEmail]**](BasicPersonEmail.md) | List of email data related to the person | [optional]
1110
**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | List of phone data related to the person | [optional]
1211
**visibleTo** | [**VisibleTo**](VisibleTo.md) | The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional]
1312
**marketingStatus** | [**MarketingStatus**](MarketingStatus.md) | If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table> | [optional]
13+
**addTime** | **String** | The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS | [optional]
1414

1515

docs/NewPersonAllOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**addTime** | **String** | The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS | [optional]
7+
**name** | **String** | The name of the person |
88

99

docs/PersonsApi.md

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

11521152
let apiInstance = new Pipedrive.PersonsApi();
11531153
let id = 56; // Number | The ID of the person
1154-
let opts = Pipedrive.BasicPerson.constructFromObject({
1154+
let opts = Pipedrive.UpdatePerson.constructFromObject({
11551155
// Properties that you want to update
11561156
});
11571157
apiInstance.updatePerson(id, opts).then((data) => {
@@ -1168,7 +1168,7 @@ apiInstance.updatePerson(id, opts).then((data) => {
11681168
Name | Type | Description | Notes
11691169
------------- | ------------- | ------------- | -------------
11701170
**id** | **Number**| The ID of the person |
1171-
**basicPerson** | [**BasicPerson**](BasicPerson.md)| | [optional]
1171+
**updatePerson** | [**UpdatePerson**](UpdatePerson.md)| | [optional]
11721172

11731173
### Return type
11741174

docs/UpdatePerson.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Pipedrive.UpdatePerson
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | The name of the person | [optional]
8+
**ownerId** | **Number** | The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. | [optional]
9+
**orgId** | **Number** | The ID of the organization this person will belong to | [optional]
10+
**email** | [**[BasicPersonEmail]**](BasicPersonEmail.md) | List of email data related to the person | [optional]
11+
**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | List of phone data related to the person | [optional]
12+
**visibleTo** | [**VisibleTo**](VisibleTo.md) | The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional]
13+
**marketingStatus** | [**MarketingStatus**](MarketingStatus.md) | If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table> | [optional]
14+
**addTime** | **String** | The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS | [optional]
15+
16+

docs/UpdatePersonAllOf.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Pipedrive.UpdatePersonAllOf
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | The name of the person | [optional]
8+
9+

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": "14.0.0",
3+
"version": "14.0.1",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"main": "dist/index.js",

src/api/PersonsApi.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import AddFollowerToPersonResponse from '../model/AddFollowerToPersonResponse';
1717
import AddPersonFollowerRequest from '../model/AddPersonFollowerRequest';
1818
import AddPersonPictureResponse from '../model/AddPersonPictureResponse';
1919
import AddPersonResponse from '../model/AddPersonResponse';
20-
import BasicPerson from '../model/BasicPerson';
2120
import DeletePersonResponse from '../model/DeletePersonResponse';
2221
import DeletePersonsInBulkResponse from '../model/DeletePersonsInBulkResponse';
2322
import GetAllPersonsResponse from '../model/GetAllPersonsResponse';
@@ -35,6 +34,7 @@ import NewPerson from '../model/NewPerson';
3534
import NumberBoolean from '../model/NumberBoolean';
3635
import PersonFlowResponse from '../model/PersonFlowResponse';
3736
import PersonSearchResponse from '../model/PersonSearchResponse';
37+
import UpdatePerson from '../model/UpdatePerson';
3838
import UpdatePersonResponse from '../model/UpdatePersonResponse';
3939

4040
/**
@@ -1504,21 +1504,18 @@ export default class PersonsApi {
15041504
* Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field.
15051505
* @param {Number} id The ID of the person
15061506
* @param {Object} opts Optional parameters
1507-
* @param {module:model/BasicPerson} opts.basicPerson
1507+
* @param {module:model/UpdatePerson} opts.updatePerson
15081508
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePersonResponse} and HTTP response
15091509
*/
15101510
updatePersonWithHttpInfo(id, opts) {
15111511
opts = opts || {};
1512-
let postBody = opts['basicPerson'];
1512+
let postBody = opts['updatePerson'];
15131513

15141514
// verify the required parameter 'id' is set
15151515
if (id === undefined || id === null) {
15161516
throw new Error("Missing the required parameter 'id' when calling updatePerson");
15171517
}
15181518

1519-
if (opts['name'] === undefined || opts['name'] === null) {
1520-
throw new Error("Missing the required parameter 'name' when calling updatePerson");
1521-
}
15221519

15231520
let pathParams = {
15241521
'id': id,
@@ -1562,7 +1559,7 @@ export default class PersonsApi {
15621559
* Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field.
15631560
* @param {Number} id The ID of the person
15641561
* @param {Object} opts Optional parameters
1565-
* @param {module:model/BasicPerson} opts.basicPerson
1562+
* @param {module:model/UpdatePerson} opts.updatePerson
15661563
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePersonResponse}
15671564
*/
15681565
updatePerson(id, opts) {

0 commit comments

Comments
 (0)