Skip to content

Commit 98794f0

Browse files
Release v24.1.0 from PR #598
2 parents 78be756 + 15a9cd2 commit 98794f0

File tree

10 files changed

+81
-24
lines changed

10 files changed

+81
-24
lines changed

.openapi-generator-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
package.json

CHANGELOG.md

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

99
## [Unreleased]
1010

11+
## [24.1.0] - 2025-02-06
12+
### Added
13+
14+
- Added “pipeline_id” query parameter to GET /api/v1/deals/summary endpoint
15+
16+
### Changed
17+
18+
- Updated list of lead label colors to include 'brown', 'dark-gray', 'orange', 'pink'
19+
1120
## [24.0.0] - 2025-01-30
1221
### Added
22+
1323
- Introduced a new client-nodejs library with full TypeScript support
1424
- Added compatibility for both API v1 and v2 endpoints. See migration guide for more details
25+
- Add documentation for installments functionality:
26+
- `POST` `/v1/deals/{id}/products` endpoint
27+
- `PUT` `/v1/deals/{id}/products/{product_attachment_id}` endpoint
28+
- `DELETE` `/v1/deals/{id}/products/{product_attachment_id}` endpoint
29+
- `POST` `/v2/deals/{id}/products` endpoint
30+
- `PATCH` `/v2/deals/{id}/products/{product_attachment_id}` endpoint
31+
- `DELETE` `/v2/deals/{id}/products/{product_attachment_id}` endpoint
32+
- Added the field “notes” to product prices in the body and response for v1 and v2
33+
- Added the field “overhead_cost” to the product variation prices in the response for v1
34+
- Added the field “direct_cost” to the product variation prices in the response and body for v2
35+
- Add “custom_fields” query paremeter to GET /api/v2/products
36+
37+
### Changed
38+
39+
- Reduce maximum `limit` query param to 100 for the following endpoints
40+
- GET v1/files
41+
- GET v1/deals/{id}/files
42+
- GET v1/organizations/{id}/files
43+
- GET v1/persons/{id}/files
44+
- GET /v1/products/{id}/files
1545

1646
## [23.4.3] - 2024-11-22
1747
### Added
@@ -722,7 +752,8 @@ structure
722752
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
723753
* Fixed typo in lead example response (`crrency` to `currency`)
724754

725-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v24.0.0...HEAD
755+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v24.1.0...HEAD
756+
[24.1.0]: https://github.com/pipedrive/api-docs/compare/v24.0.0...v24.1.0
726757
[24.0.0]: https://github.com/pipedrive/api-docs/compare/v23.4.3...v24.0.0
727758
[23.4.3]: https://github.com/pipedrive/api-docs/compare/v23.4.2...v23.4.3
728759
[23.4.2]: https://github.com/pipedrive/api-docs/compare/v23.4.1...v23.4.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,4 @@ app.get('/callback', async (req, res) => {
261261
}
262262
});
263263

264-
```
264+
```

package-lock.json

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

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

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,11 +1305,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
13051305
* @param {'open' | 'won' | 'lost'} [status] Only fetch deals with a specific status. open = Open, won = Won, lost = Lost.
13061306
* @param {number} [filter_id] <code>user_id</code> will not be considered. Only deals matching the given filter will be returned.
13071307
* @param {number} [user_id] Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`.
1308+
* @param {number} [pipeline_id] Only deals within the given pipeline will be returned
13081309
* @param {number} [stage_id] Only deals within the given stage will be returned
13091310
13101311
* @throws {RequiredError}
13111312
*/
1312-
getDealsSummary: async (status?: 'open' | 'won' | 'lost', filter_id?: number, user_id?: number, stage_id?: number, ): Promise<RequestArgs> => {
1313+
getDealsSummary: async (status?: 'open' | 'won' | 'lost', filter_id?: number, user_id?: number, pipeline_id?: number, stage_id?: number, ): Promise<RequestArgs> => {
13131314
const localVarPath = `/deals/summary`;
13141315
// use dummy base URL string because the URL constructor only accepts absolute URLs.
13151316
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1341,6 +1342,10 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
13411342
localVarQueryParameter['user_id'] = user_id;
13421343
}
13431344

1345+
if (pipeline_id !== undefined) {
1346+
localVarQueryParameter['pipeline_id'] = pipeline_id;
1347+
}
1348+
13441349
if (stage_id !== undefined) {
13451350
localVarQueryParameter['stage_id'] = stage_id;
13461351
}
@@ -1995,12 +2000,13 @@ export const DealsApiFp = function(configuration?: Configuration) {
19952000
* @param {'open' | 'won' | 'lost'} [status] Only fetch deals with a specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost.
19962001
* @param {number} [filter_id] &lt;code&gt;user_id&lt;/code&gt; will not be considered. Only deals matching the given filter will be returned.
19972002
* @param {number} [user_id] Only deals matching the given user will be returned. &#x60;user_id&#x60; will not be considered if you use &#x60;filter_id&#x60;.
2003+
* @param {number} [pipeline_id] Only deals within the given pipeline will be returned
19982004
* @param {number} [stage_id] Only deals within the given stage will be returned
19992005
20002006
* @throws {RequiredError}
20012007
*/
2002-
async getDealsSummary(status?: 'open' | 'won' | 'lost', filter_id?: number, user_id?: number, stage_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsSummaryResponse>> {
2003-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsSummary(status, filter_id, user_id, stage_id, );
2008+
async getDealsSummary(status?: 'open' | 'won' | 'lost', filter_id?: number, user_id?: number, pipeline_id?: number, stage_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsSummaryResponse>> {
2009+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsSummary(status, filter_id, user_id, pipeline_id, stage_id, );
20042010
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20052011
},
20062012
/**
@@ -2336,7 +2342,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
23362342
* @throws {RequiredError}
23372343
*/
23382344
getDealsSummary(requestParameters: DealsApiGetDealsSummaryRequest = {}, ): Promise<GetDealsSummaryResponse> {
2339-
return localVarFp.getDealsSummary(requestParameters.status, requestParameters.filter_id, requestParameters.user_id, requestParameters.stage_id, ).then((request) => request(axios, basePath));
2345+
return localVarFp.getDealsSummary(requestParameters.status, requestParameters.filter_id, requestParameters.user_id, requestParameters.pipeline_id, requestParameters.stage_id, ).then((request) => request(axios, basePath));
23402346
},
23412347
/**
23422348
* Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`.
@@ -3055,6 +3061,13 @@ export interface DealsApiGetDealsSummaryRequest {
30553061
*/
30563062
readonly user_id?: number
30573063

3064+
/**
3065+
* Only deals within the given pipeline will be returned
3066+
* @type {number}
3067+
* @memberof DealsApiGetDealsSummary
3068+
*/
3069+
readonly pipeline_id?: number
3070+
30583071
/**
30593072
* Only deals within the given stage will be returned
30603073
* @type {number}
@@ -3577,7 +3590,7 @@ export class DealsApi extends BaseAPI {
35773590
* @memberof DealsApi
35783591
*/
35793592
public getDealsSummary(requestParameters: DealsApiGetDealsSummaryRequest = {}, ) {
3580-
return DealsApiFp(this.configuration).getDealsSummary(requestParameters.status, requestParameters.filter_id, requestParameters.user_id, requestParameters.stage_id, ).then((request) => request(this.axios, this.basePath));
3593+
return DealsApiFp(this.configuration).getDealsSummary(requestParameters.status, requestParameters.filter_id, requestParameters.user_id, requestParameters.pipeline_id, requestParameters.stage_id, ).then((request) => request(this.axios, this.basePath));
35813594
}
35823595

35833596
/**

src/versions/v1/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
66
*
77
* The version of the OpenAPI document: 1.0.0
8-
*
8+
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1111
* https://openapi-generator.tech

src/versions/v1/models/add-lead-label-request.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ export interface AddLeadLabelRequest {
3333
}
3434

3535
export const AddLeadLabelRequestColorConst = {
36-
green: 'green',
3736
blue: 'blue',
38-
red: 'red',
39-
yellow: 'yellow',
37+
brown: 'brown',
38+
dark_gray: 'dark-gray',
39+
gray: 'gray',
40+
green: 'green',
41+
orange: 'orange',
42+
pink: 'pink',
4043
purple: 'purple',
41-
gray: 'gray'
44+
red: 'red',
45+
yellow: 'yellow'
4246
} as const;
4347

4448
export type AddLeadLabelRequestColorConst = typeof AddLeadLabelRequestColorConst[keyof typeof AddLeadLabelRequestColorConst];

src/versions/v1/models/lead-label.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ export interface LeadLabel {
4848
}
4949

5050
export const LeadLabelColorConst = {
51-
green: 'green',
5251
blue: 'blue',
53-
red: 'red',
54-
yellow: 'yellow',
52+
brown: 'brown',
53+
dark_gray: 'dark-gray',
54+
gray: 'gray',
55+
green: 'green',
56+
orange: 'orange',
57+
pink: 'pink',
5558
purple: 'purple',
56-
gray: 'gray'
59+
red: 'red',
60+
yellow: 'yellow'
5761
} as const;
5862

5963
export type LeadLabelColorConst = typeof LeadLabelColorConst[keyof typeof LeadLabelColorConst];

src/versions/v1/models/update-lead-label-request.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ export interface UpdateLeadLabelRequest {
3333
}
3434

3535
export const UpdateLeadLabelRequestColorConst = {
36-
green: 'green',
3736
blue: 'blue',
38-
red: 'red',
39-
yellow: 'yellow',
37+
brown: 'brown',
38+
dark_gray: 'dark-gray',
39+
gray: 'gray',
40+
green: 'green',
41+
orange: 'orange',
42+
pink: 'pink',
4043
purple: 'purple',
41-
gray: 'gray'
44+
red: 'red',
45+
yellow: 'yellow'
4246
} as const;
4347

4448
export type UpdateLeadLabelRequestColorConst = typeof UpdateLeadLabelRequestColorConst[keyof typeof UpdateLeadLabelRequestColorConst];

0 commit comments

Comments
 (0)