Skip to content

Commit 2e514b5

Browse files
Release v31.3.0 from PR #703
2 parents 73a142e + c23e94d commit 2e514b5

File tree

10 files changed

+34
-9
lines changed

10 files changed

+34
-9
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
88

99
## [Unreleased]
1010

11+
## [31.3.0] - 2026-02-06
12+
### Added
13+
- Added `custom_fields` property to the Person entity request schema in v2 endpoints that will fix types in endpoints:
14+
- `POST /api/v2/persons`
15+
- `PATCH /api/v2/persons/{id}`
16+
- Added `custom_fields` property to the Product entity request schema in v2 endpoints that will fix types in endpoints:
17+
- `POST /api/v2/products`
18+
- `PATCH /api/v2/products/{id}`
19+
1120
## [31.2.1] - 2026-01-30
1221
### Fixed
1322
- Fixed incorrect type definitions for `label` fields in v2 Persons API request schema (`PersonRequestBody`). The `label` field for both `phones` and `emails` arrays was incorrectly typed as `boolean` instead of `string`, causing SDK type generation issues. Labels now correctly accept string values like 'work', 'home', 'mobile', and 'other'.
@@ -1108,7 +1117,8 @@ Those fields will be formatted as "2020-07-13" instead of "2020-07-13T00:00:00.0
11081117
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
11091118
* Fixed typo in lead example response (`crrency` to `currency`)
11101119

1111-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v31.2.1...HEAD
1120+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v31.3.0...HEAD
1121+
[31.3.0]: https://github.com/pipedrive/api-docs/compare/v31.2.1...v31.3.0
11121122
[31.2.1]: https://github.com/pipedrive/api-docs/compare/v31.2.0...v31.2.1
11131123
[31.2.0]: https://github.com/pipedrive/api-docs/compare/v31.1.0...v31.2.0
11141124
[31.1.0]: https://github.com/pipedrive/api-docs/compare/v31.0.0...v31.1.0

package-lock.json

Lines changed: 2 additions & 2 deletions
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": "31.2.1",
3+
"version": "31.3.0",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"homepage": "https://developers.pipedrive.com",

src/versions/v1/api/call-logs-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const CallLogsApiAxiosParamCreator = function (configuration?: Configurat
124124

125125

126126
if (file !== undefined) {
127-
localVarFormParams.append('file', file as any);
127+
localVarFormParams.append('file', file);
128128
}
129129

130130

src/versions/v1/api/files-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
7979

8080

8181
if (file !== undefined) {
82-
localVarFormParams.append('file', file as any);
82+
localVarFormParams.append('file', file);
8383
}
8484

8585
if (deal_id !== undefined) {

src/versions/v1/api/persons-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati
201201

202202

203203
if (file !== undefined) {
204-
localVarFormParams.append('file', file as any);
204+
localVarFormParams.append('file', file);
205205
}
206206

207207
if (crop_x !== undefined) {

src/versions/v2/api/products-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
875875

876876

877877
if (data !== undefined) {
878-
localVarFormParams.append('data', data as any);
878+
localVarFormParams.append('data', data);
879879
}
880880

881881

@@ -976,7 +976,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
976976

977977

978978
if (data !== undefined) {
979-
localVarFormParams.append('data', data as any);
979+
localVarFormParams.append('data', data);
980980
}
981981

982982

src/versions/v2/models/add-person-request.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export interface AddPersonRequest {
7676
* @type {string}
7777
*/
7878
'marketing_status'?: AddPersonRequestMarketingStatusConst;
79+
/**
80+
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
81+
* @type {{ [key: string]: any | undefined; }}
82+
*/
83+
'custom_fields'?: { [key: string]: any | undefined; };
7984
}
8085

8186
export const AddPersonRequestMarketingStatusConst = {

src/versions/v2/models/product-request.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export interface ProductRequest {
6565
* @type {Array<object>}
6666
*/
6767
'prices'?: Array<object>;
68+
/**
69+
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
70+
* @type {{ [key: string]: any | undefined; }}
71+
*/
72+
'custom_fields'?: { [key: string]: any | undefined; };
6873
}
6974

7075
export const ProductRequestVisibleToConst = {

src/versions/v2/models/update-person-request.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export interface UpdatePersonRequest {
7676
* @type {string}
7777
*/
7878
'marketing_status'?: UpdatePersonRequestMarketingStatusConst;
79+
/**
80+
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
81+
* @type {{ [key: string]: any | undefined; }}
82+
*/
83+
'custom_fields'?: { [key: string]: any | undefined; };
7984
}
8085

8186
export const UpdatePersonRequestMarketingStatusConst = {

0 commit comments

Comments
 (0)