Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ 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]
### Fixed
- Fixed `nullable: true` handling for `BaseNote.deal` (`BaseNoteDealTitle`, returned by `GET /v1/notes`, `POST /v1/notes`, `GET /v1/notes/{id}`, `PUT /v1/notes/{id}`, and `GET /v1/recents`) and for the `person_id` and `org_id` fields (`DealPersonDataWithId`, `DealOrganizationDataWithId`, returned by `GET /v1/deals/archived` and `GET /v1/products/{id}/deals`)
- Fixed v2 product `prices` item schemas (`POST /api/v2/products`, `PATCH /api/v2/products/{id}`, and other v2 product endpoints) — replaced `ProductPriceBase` by explicit named schemas `ProductPrice` (responses) and `ProductPriceRequest` (add/update product request bodies) and removed `ProductPriceBase`; fields, nullability, and required properties (`price`, `currency`) are unchanged

## [36.0.0] - 2026-10-13
### Fixed
Expand Down
26 changes: 0 additions & 26 deletions src/versions/v1/models/deal-all-of-org-id.ts

This file was deleted.

32 changes: 0 additions & 32 deletions src/versions/v1/models/deal-all-of-person-id.ts

This file was deleted.

12 changes: 6 additions & 6 deletions src/versions/v1/models/deal-all-of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id';
// May contain unused imports in some cases
// @ts-ignore
import { DealAllOfOrgId } from './deal-all-of-org-id';
import { DealOrganizationDataWithId } from './deal-organization-data-with-id';
// May contain unused imports in some cases
// @ts-ignore
import { DealAllOfPersonId } from './deal-all-of-person-id';
import { DealPersonDataWithId } from './deal-person-data-with-id';
// May contain unused imports in some cases
// @ts-ignore
import { DealUserDataWithId } from './deal-user-data-with-id';
Expand Down Expand Up @@ -49,13 +49,13 @@ export interface DealAllOf {
'user_id'?: DealUserDataWithId;
/**
*
* @type {DealAllOfPersonId}
* @type {DealPersonDataWithId}
*/
'person_id'?: DealAllOfPersonId | null;
'person_id'?: DealPersonDataWithId | null;
/**
*
* @type {DealAllOfOrgId}
* @type {DealOrganizationDataWithId}
*/
'org_id'?: DealAllOfOrgId | null;
'org_id'?: DealOrganizationDataWithId | null;
}

4 changes: 2 additions & 2 deletions src/versions/v1/models/deal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import { DealAllOf } from './deal-all-of';
import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id';
// May contain unused imports in some cases
// @ts-ignore
import { DealAllOfOrgId } from './deal-all-of-org-id';
import { DealOrganizationDataWithId } from './deal-organization-data-with-id';
// May contain unused imports in some cases
// @ts-ignore
import { DealAllOfPersonId } from './deal-all-of-person-id';
import { DealPersonDataWithId } from './deal-person-data-with-id';
// May contain unused imports in some cases
// @ts-ignore
import { DealUserDataWithId } from './deal-user-data-with-id';
Expand Down
3 changes: 0 additions & 3 deletions src/versions/v1/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ export * from './create-field-request-all-of1';
export * from './deal';
export * from './deal-all-of';
export * from './deal-all-of-creator-user-id';
export * from './deal-all-of-org-id';
export * from './deal-all-of-person-id';
export * from './deal-count-and-activity-info';
export * from './deal-count-and-activity-info-all-of';
export * from './deal-count-and-activity-info-all-of1';
Expand Down Expand Up @@ -440,7 +438,6 @@ export * from './merge-persons-response';
export * from './merge-persons-response-all-of';
export * from './note';
export * from './note-deal';
export * from './note-deal-all-of';
export * from './note-organization';
export * from './note-person';
export * from './note-project';
Expand Down
29 changes: 0 additions & 29 deletions src/versions/v1/models/note-deal-all-of.ts

This file was deleted.

19 changes: 11 additions & 8 deletions src/versions/v1/models/note-deal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@
*/


// May contain unused imports in some cases
// @ts-ignore
import { NoteDealAllOf } from './note-deal-all-of';

/**
* @type NoteDeal
* @export
*/
export type NoteDeal = NoteDealAllOf;

* The deal this note is attached to
* @export
* @interface NoteDeal
*/
export interface NoteDeal {
/**
* The title of the deal this note is attached to
* @type {string}
*/
'title'?: string;
}

4 changes: 2 additions & 2 deletions src/versions/v2/models/add-product-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import { BaseProductAllOf1 } from './base-product-all-of1';
import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2';
// May contain unused imports in some cases
// @ts-ignore
import { ProductRequest } from './product-request';
import { ProductPriceRequest } from './product-price-request';
// May contain unused imports in some cases
// @ts-ignore
import { ProductRequestPricesInner } from './product-request-prices-inner';
import { ProductRequest } from './product-request';

/**
* @type AddProductRequest
Expand Down
2 changes: 1 addition & 1 deletion src/versions/v2/models/get-products-response-data-inner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { BaseProduct } from './base-product';
import { PricesArray } from './prices-array';
// May contain unused imports in some cases
// @ts-ignore
import { PricesArrayPricesInner } from './prices-array-prices-inner';
import { ProductPrice } from './product-price';

/**
* @type GetProductsResponseDataInner
Expand Down
7 changes: 2 additions & 5 deletions src/versions/v2/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,9 @@ export * from './person-item-email';
export * from './person-item-im';
export * from './person-item-phone';
export * from './prices-array';
export * from './prices-array-prices-inner';
export * from './prices-array-prices-inner-all-of';
export * from './product-price-base';
export * from './product-price';
export * from './product-price-request';
export * from './product-request';
export * from './product-request-prices-inner';
export * from './product-request-prices-inner-all-of';
export * from './project';
export * from './project-template';
export * from './stage-item';
Expand Down
29 changes: 0 additions & 29 deletions src/versions/v2/models/prices-array-prices-inner.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/versions/v2/models/prices-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// May contain unused imports in some cases
// @ts-ignore
import { PricesArrayPricesInner } from './prices-array-prices-inner';
import { ProductPrice } from './product-price';

/**
*
Expand All @@ -25,8 +25,8 @@ import { PricesArrayPricesInner } from './prices-array-prices-inner';
export interface PricesArray {
/**
* The prices of the product in different currencies
* @type {Array<PricesArrayPricesInner>}
* @type {Array<ProductPrice>}
*/
'prices'?: Array<PricesArrayPricesInner>;
'prices'?: Array<ProductPrice>;
}

34 changes: 0 additions & 34 deletions src/versions/v2/models/product-price-base.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,25 @@
/**
*
* @export
* @interface ProductRequestPricesInnerAllOf
* @interface ProductPriceRequest
*/
export interface ProductRequestPricesInnerAllOf {
export interface ProductPriceRequest {
/**
* The price of the product
* @type {number}
*/
'price': number;
/**
* The currency of the price
* @type {string}
*/
'currency': string;
/**
* The cost of the product
* @type {number}
*/
'cost'?: number;
/**
* The direct cost of the product
* @type {number}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@
/**
*
* @export
* @interface PricesArrayPricesInnerAllOf
* @interface ProductPrice
*/
export interface PricesArrayPricesInnerAllOf {
export interface ProductPrice {
/**
* The price of the product
* @type {number}
*/
'price'?: number;
/**
* The cost of the product
* @type {number}
*/
'cost'?: number;
/**
* The ID of the product
* @type {number}
Expand Down
29 changes: 0 additions & 29 deletions src/versions/v2/models/product-request-prices-inner.ts

This file was deleted.

Loading
Loading