Skip to content

Commit 35184f8

Browse files
author
pipedrive-bot
committed
Build 149 - version-patch
1 parent 78be756 commit 35184f8

File tree

9 files changed

+52
-41
lines changed

9 files changed

+52
-41
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ wwwroot/*.js
22
node_modules
33
typings
44
dist
5-
.idea

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
77
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).
88

99
## [Unreleased]
10+
### Changed
11+
- Updated list of lead label colors to include 'brown', 'dark-gray', 'orange', 'pink'
1012

1113
## [24.0.0] - 2025-01-30
1214
### Added

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.json

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pipedrive",
3-
"version": "24.0.0",
3+
"version": "",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"homepage": "https://developers.pipedrive.com",
@@ -25,7 +25,7 @@
2525
"test": "npm run test:functional",
2626
"test:functional:start": "npm run test:functional -- --start-environment",
2727
"test:functional:stop": "npm run test:functional -- --stop-environment",
28-
"test:functional": "node ./test/config/environment.js",
28+
"test:functional": "node ./test/functional/environment.js",
2929
"test:coverage": "npm run test:functional -- --collectCoverage",
3030
"sonar": "pipedrive-sonar-scanner",
3131
"lint-staged": "lint-staged",
@@ -61,7 +61,6 @@
6161
"@babel/plugin-transform-runtime": "^7.12.1",
6262
"@babel/preset-env": "^7.23.5",
6363
"@babel/register": "^7.0.0",
64-
"@types/jest": "^29.5.14",
6564
"@types/node": "^18.13.0",
6665
"@types/qs": "^6.9.7",
6766
"babel-eslint": "^10.1.0",
@@ -70,34 +69,20 @@
7069
"eslint": "^8.27.0",
7170
"eslint-config-pipedrive": "^13.0.0",
7271
"eslint-plugin-import": "^2.27.5",
73-
"eslint-plugin-jest": "^28.11.0",
72+
"eslint-plugin-jest": "^27.1.5",
7473
"expect.js": "^0.3.1",
7574
"get-port": "^5.1.1",
7675
"jest": "^29.7.0",
7776
"jest-environment-node": "^27.4.4",
7877
"lint-staged": "^13.0.3",
7978
"minimist": "^1.2.5",
8079
"mocha": "^10.2.0",
81-
"nock": "^13.5.6",
80+
"msw": "^2.0.10",
8281
"pre-commit": "^1.2.2",
8382
"regenerator-runtime": "^0.13.7",
8483
"shelljs": "^0.8.4",
8584
"sinon": "^7.2.0",
86-
"ts-jest": "^29.2.5",
87-
"typescript": "^4.9.5",
88-
"typescript-eslint": "^8.22.0"
89-
},
90-
"lint-staged": {
91-
"*.{ts,js}": [
92-
"eslint --fix"
93-
]
94-
},
95-
"pre-commit": [
96-
"build",
97-
"lint-staged",
98-
"test"
99-
],
100-
"publishConfig": {
101-
"access": "public"
85+
"ts-jest": "^29.1.1",
86+
"typescript": "^4.9.5"
10287
}
10388
}

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)