Skip to content

Commit 49aed11

Browse files
author
pipedrive-bot
committed
Build 310 - version-minor
1 parent 73a142e commit 49aed11

File tree

8 files changed

+27
-5
lines changed

8 files changed

+27
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ 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+
### Added
11+
- Added `custom_fields` property to the Person entity request schema in v2 endpoints that will fix types in endpoints:
12+
- `POST /api/v2/persons`
13+
- `PATCH /api/v2/persons/{id}`
14+
- Added `custom_fields` property to the Product entity request schema in v2 endpoints that will fix types in endpoints:
15+
- `POST /api/v2/products`
16+
- `PATCH /api/v2/products/{id}`
1017

1118
## [31.2.1] - 2026-01-30
1219
### Fixed

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)