diff --git a/CHANGELOG.md b/CHANGELOG.md index d9fa91f8..4a2bb6a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e 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). ## [Unreleased] +### Added +- Added `custom_fields` property to the Person entity request schema in v2 endpoints that will fix types in endpoints: + - `POST /api/v2/persons` + - `PATCH /api/v2/persons/{id}` +- Added `custom_fields` property to the Product entity request schema in v2 endpoints that will fix types in endpoints: + - `POST /api/v2/products` + - `PATCH /api/v2/products/{id}` ## [31.2.1] - 2026-01-30 ### Fixed diff --git a/src/versions/v1/api/call-logs-api.ts b/src/versions/v1/api/call-logs-api.ts index 81f4a8eb..774d9504 100644 --- a/src/versions/v1/api/call-logs-api.ts +++ b/src/versions/v1/api/call-logs-api.ts @@ -124,7 +124,7 @@ export const CallLogsApiAxiosParamCreator = function (configuration?: Configurat if (file !== undefined) { - localVarFormParams.append('file', file as any); + localVarFormParams.append('file', file); } diff --git a/src/versions/v1/api/files-api.ts b/src/versions/v1/api/files-api.ts index 5314ac25..ae450d64 100644 --- a/src/versions/v1/api/files-api.ts +++ b/src/versions/v1/api/files-api.ts @@ -79,7 +79,7 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration if (file !== undefined) { - localVarFormParams.append('file', file as any); + localVarFormParams.append('file', file); } if (deal_id !== undefined) { diff --git a/src/versions/v1/api/persons-api.ts b/src/versions/v1/api/persons-api.ts index ace2e3f2..bc3ffa79 100644 --- a/src/versions/v1/api/persons-api.ts +++ b/src/versions/v1/api/persons-api.ts @@ -201,7 +201,7 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati if (file !== undefined) { - localVarFormParams.append('file', file as any); + localVarFormParams.append('file', file); } if (crop_x !== undefined) { diff --git a/src/versions/v2/api/products-api.ts b/src/versions/v2/api/products-api.ts index e4444af2..dd30a397 100644 --- a/src/versions/v2/api/products-api.ts +++ b/src/versions/v2/api/products-api.ts @@ -875,7 +875,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat if (data !== undefined) { - localVarFormParams.append('data', data as any); + localVarFormParams.append('data', data); } @@ -976,7 +976,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat if (data !== undefined) { - localVarFormParams.append('data', data as any); + localVarFormParams.append('data', data); } diff --git a/src/versions/v2/models/add-person-request.ts b/src/versions/v2/models/add-person-request.ts index dbb8e089..71e92ea1 100644 --- a/src/versions/v2/models/add-person-request.ts +++ b/src/versions/v2/models/add-person-request.ts @@ -76,6 +76,11 @@ export interface AddPersonRequest { * @type {string} */ 'marketing_status'?: AddPersonRequestMarketingStatusConst; + /** + * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes + * @type {{ [key: string]: any | undefined; }} + */ + 'custom_fields'?: { [key: string]: any | undefined; }; } export const AddPersonRequestMarketingStatusConst = { diff --git a/src/versions/v2/models/product-request.ts b/src/versions/v2/models/product-request.ts index 5f380143..5883be58 100644 --- a/src/versions/v2/models/product-request.ts +++ b/src/versions/v2/models/product-request.ts @@ -65,6 +65,11 @@ export interface ProductRequest { * @type {Array} */ 'prices'?: Array; + /** + * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes + * @type {{ [key: string]: any | undefined; }} + */ + 'custom_fields'?: { [key: string]: any | undefined; }; } export const ProductRequestVisibleToConst = { diff --git a/src/versions/v2/models/update-person-request.ts b/src/versions/v2/models/update-person-request.ts index 4c1692fd..ad2e41d1 100644 --- a/src/versions/v2/models/update-person-request.ts +++ b/src/versions/v2/models/update-person-request.ts @@ -76,6 +76,11 @@ export interface UpdatePersonRequest { * @type {string} */ 'marketing_status'?: UpdatePersonRequestMarketingStatusConst; + /** + * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes + * @type {{ [key: string]: any | undefined; }} + */ + 'custom_fields'?: { [key: string]: any | undefined; }; } export const UpdatePersonRequestMarketingStatusConst = {