diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d042944..4d4a156d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ 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 +- Documented the `custom_fields` in /v2 api for create organization and update deal +### Added +- Documented the `name` property in the Webhooks API for the following endpoints: + - `GET /v1/webhooks` + - `POST /v1/webhooks` ## [29.2.0] - 2025-09-03 ### Added diff --git a/src/versions/v2/models/add-deal-request.ts b/src/versions/v2/models/add-deal-request.ts index 849419c2..443a4f09 100644 --- a/src/versions/v2/models/add-deal-request.ts +++ b/src/versions/v2/models/add-deal-request.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { DealItemCustomFieldsValue } from './deal-item-custom-fields-value'; /** * @@ -120,5 +123,10 @@ export interface AddDealRequest { * @type {Array} */ 'label_ids'?: Array; + /** + * A map of custom fields with hash-based keys + * @type {{ [key: string]: DealItemCustomFieldsValue | undefined; }} + */ + 'custom_fields'?: { [key: string]: DealItemCustomFieldsValue | undefined; }; } diff --git a/src/versions/v2/models/add-organization-request.ts b/src/versions/v2/models/add-organization-request.ts index 3529df51..fa3eeaee 100644 --- a/src/versions/v2/models/add-organization-request.ts +++ b/src/versions/v2/models/add-organization-request.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { DealItemCustomFieldsValue } from './deal-item-custom-fields-value'; // May contain unused imports in some cases // @ts-ignore import { OrganizationItemAddress } from './organization-item-address'; @@ -58,5 +61,10 @@ export interface AddOrganizationRequest { * @type {OrganizationItemAddress} */ 'address'?: OrganizationItemAddress; + /** + * A map of custom fields with hash-based keys + * @type {{ [key: string]: DealItemCustomFieldsValue | undefined; }} + */ + 'custom_fields'?: { [key: string]: DealItemCustomFieldsValue | undefined; }; } diff --git a/src/versions/v2/models/update-deal-request.ts b/src/versions/v2/models/update-deal-request.ts index 06217a64..007af048 100644 --- a/src/versions/v2/models/update-deal-request.ts +++ b/src/versions/v2/models/update-deal-request.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { DealItemCustomFieldsValue } from './deal-item-custom-fields-value'; /** * @@ -120,5 +123,10 @@ export interface UpdateDealRequest { * @type {Array} */ 'label_ids'?: Array; + /** + * A map of custom fields with hash-based keys + * @type {{ [key: string]: DealItemCustomFieldsValue | undefined; }} + */ + 'custom_fields'?: { [key: string]: DealItemCustomFieldsValue | undefined; }; } diff --git a/src/versions/v2/models/update-organization-request.ts b/src/versions/v2/models/update-organization-request.ts index a70dcc90..caec386e 100644 --- a/src/versions/v2/models/update-organization-request.ts +++ b/src/versions/v2/models/update-organization-request.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { DealItemCustomFieldsValue } from './deal-item-custom-fields-value'; // May contain unused imports in some cases // @ts-ignore import { OrganizationItemAddress } from './organization-item-address'; @@ -58,5 +61,10 @@ export interface UpdateOrganizationRequest { * @type {OrganizationItemAddress} */ 'address'?: OrganizationItemAddress; + /** + * A map of custom fields with hash-based keys + * @type {{ [key: string]: DealItemCustomFieldsValue | undefined; }} + */ + 'custom_fields'?: { [key: string]: DealItemCustomFieldsValue | undefined; }; }