Skip to content

Commit b658e1e

Browse files
Release v30.2.0 from PR #675
2 parents 833cb7e + acb1ecf commit b658e1e

File tree

5 files changed

+29
-18
lines changed

5 files changed

+29
-18
lines changed

CHANGELOG.md

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

99
## [Unreleased]
1010

11+
## [30.2.0] - 2025-10-06
12+
### Added
13+
- Added `POST /deals/{id}/products/bulk` endpoint for creating multiple deal products at once (max 100 per request)
14+
- Added `DELETE /deals/{id}/products` endpoint for deleting multiple deal products at once (max 100 per request)
15+
1116
## [30.1.0] - 2025-10-06
1217
### Added
1318
- Added `POST /deals/{id}/products/bulk` endpoint for creating multiple deal products at once (max 100 per request)
@@ -972,7 +977,8 @@ Those fields will be formatted as "2020-07-13" instead of "2020-07-13T00:00:00.0
972977
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
973978
* Fixed typo in lead example response (`crrency` to `currency`)
974979

975-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v30.1.0...HEAD
980+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v30.2.0...HEAD
981+
[30.2.0]: https://github.com/pipedrive/api-docs/compare/v30.1.0...v30.2.0
976982
[30.1.0]: https://github.com/pipedrive/api-docs/compare/v30.0.0...v30.1.0
977983
[30.0.0]: https://github.com/pipedrive/api-docs/compare/v29.2.5...v30.0.0
978984
[29.2.5]: https://github.com/pipedrive/api-docs/compare/v29.2.4...v29.2.5

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": "30.1.0",
3+
"version": "30.2.0",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"homepage": "https://developers.pipedrive.com",

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -941,12 +941,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
941941
* @param {number} id The ID of the deal
942942
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
943943
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
944-
* @param {'id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`.
944+
* @param {'id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`, `order_nr`.
945945
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
946946
947947
* @throws {RequiredError}
948948
*/
949-
getDealProducts: async (id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<RequestArgs> => {
949+
getDealProducts: async (id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time' | 'order_nr', sort_direction?: 'asc' | 'desc', ): Promise<RequestArgs> => {
950950
// verify required parameter 'id' is not null or undefined
951951
assertParamExists('getDealProducts', 'id', id)
952952
const localVarPath = `/deals/{id}/products`
@@ -1119,12 +1119,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
11191119
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided.
11201120
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
11211121
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
1122-
* @param {'id' | 'deal_id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
1122+
* @param {'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
11231123
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
11241124
11251125
* @throws {RequiredError}
11261126
*/
1127-
getDealsProducts: async (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<RequestArgs> => {
1127+
getDealsProducts: async (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr', sort_direction?: 'asc' | 'desc', ): Promise<RequestArgs> => {
11281128
// verify required parameter 'deal_ids' is not null or undefined
11291129
assertParamExists('getDealsProducts', 'deal_ids', deal_ids)
11301130
const localVarPath = `/deals/products`;
@@ -1841,12 +1841,12 @@ export const DealsApiFp = function(configuration?: Configuration) {
18411841
* @param {number} id The ID of the deal
18421842
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
18431843
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
1844-
* @param {'id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
1844+
* @param {'id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
18451845
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
18461846
18471847
* @throws {RequiredError}
18481848
*/
1849-
async getDealProducts(id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsProductsResponse>> {
1849+
async getDealProducts(id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time' | 'order_nr', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsProductsResponse>> {
18501850
const localVarAxiosArgs = await localVarAxiosParamCreator.getDealProducts(id, cursor, limit, sort_by, sort_direction, );
18511851
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18521852
},
@@ -1882,12 +1882,12 @@ export const DealsApiFp = function(configuration?: Configuration) {
18821882
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided.
18831883
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
18841884
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
1885-
* @param {'id' | 'deal_id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
1885+
* @param {'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
18861886
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
18871887
18881888
* @throws {RequiredError}
18891889
*/
1890-
async getDealsProducts(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsProductsResponse>> {
1890+
async getDealsProducts(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsProductsResponse>> {
18911891
const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsProducts(deal_ids, cursor, limit, sort_by, sort_direction, );
18921892
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18931893
},
@@ -2769,11 +2769,11 @@ export interface DealsApiGetDealProductsRequest {
27692769
readonly limit?: number
27702770

27712771
/**
2772-
* The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
2773-
* @type {'id' | 'add_time' | 'update_time'}
2772+
* The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
2773+
* @type {'id' | 'add_time' | 'update_time' | 'order_nr'}
27742774
* @memberof DealsApiGetDealProducts
27752775
*/
2776-
readonly sort_by?: 'id' | 'add_time' | 'update_time'
2776+
readonly sort_by?: 'id' | 'add_time' | 'update_time' | 'order_nr'
27772777

27782778
/**
27792779
* The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
@@ -2930,11 +2930,11 @@ export interface DealsApiGetDealsProductsRequest {
29302930
readonly limit?: number
29312931

29322932
/**
2933-
* The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
2934-
* @type {'id' | 'deal_id' | 'add_time' | 'update_time'}
2933+
* The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
2934+
* @type {'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr'}
29352935
* @memberof DealsApiGetDealsProducts
29362936
*/
2937-
readonly sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time'
2937+
readonly sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr'
29382938

29392939
/**
29402940
* The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.

src/versions/v2/models/get-deals-products-response-data-inner-all-of.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export interface GetDealsProductsResponseDataInnerAllOf {
5656
*/
5757
'product_variation_id'?: number | null;
5858
/**
59+
* The order number of the product within the deal
60+
* @type {number}
61+
*/
62+
'order_nr'?: number | null;
63+
/**
5964
* The date and time when the product was added to the deal
6065
* @type {string}
6166
*/

0 commit comments

Comments
 (0)