Skip to content

Commit dcf2083

Browse files
Release v30.6.0 from PR #686
2 parents 9173fc8 + 747db8f commit dcf2083

File tree

6 files changed

+175
-4
lines changed

6 files changed

+175
-4
lines changed

CHANGELOG.md

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

99
## [Unreleased]
1010

11+
## [30.6.0] - 2025-12-03
12+
### Added
13+
- Added `GET /v1/leadFields` endpoint for fetching all lead fields
14+
1115
## [30.5.0] - 2025-12-02
1216
### Added
1317
- Added `deal_id` query parameter to the GET `/v2/persons` endpoint
@@ -1005,7 +1009,8 @@ Those fields will be formatted as "2020-07-13" instead of "2020-07-13T00:00:00.0
10051009
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
10061010
* Fixed typo in lead example response (`crrency` to `currency`)
10071011

1008-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v30.5.0...HEAD
1012+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v30.6.0...HEAD
1013+
[30.6.0]: https://github.com/pipedrive/api-docs/compare/v30.5.0...v30.6.0
10091014
[30.5.0]: https://github.com/pipedrive/api-docs/compare/v30.4.0...v30.5.0
10101015
[30.4.0]: https://github.com/pipedrive/api-docs/compare/v30.3.3...v30.4.0
10111016
[30.3.3]: https://github.com/pipedrive/api-docs/compare/v30.3.2...v30.3.3

docs/v1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ GoalsApi | getGoals | **GET** /goals/find | Find goals
8989
GoalsApi | updateGoal | **PUT** /goals/{id} | Update existing goal
9090
ItemSearchApi | searchItem | **GET** /itemSearch | Perform a search from multiple item types
9191
ItemSearchApi | searchItemByField | **GET** /itemSearch/field | Perform a search using a specific field from an item type
92+
LeadFieldsApi | getLeadFields | **GET** /leadFields | Get all lead fields
9293
LeadLabelsApi | addLeadLabel | **POST** /leadLabels | Add a lead label
9394
LeadLabelsApi | deleteLeadLabel | **DELETE** /leadLabels/{id} | Delete a lead label
9495
LeadLabelsApi | getLeadLabels | **GET** /leadLabels | Get all lead labels

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

src/versions/v1/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export * from './api/files-api';
2727
export * from './api/filters-api';
2828
export * from './api/goals-api';
2929
export * from './api/item-search-api';
30+
export * from './api/lead-fields-api';
3031
export * from './api/lead-labels-api';
3132
export * from './api/lead-sources-api';
3233
export * from './api/leads-api';
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v1
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
import type { Configuration } from '../configuration';
17+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18+
import globalAxios from 'axios';
19+
// Some imports not used depending on template conditions
20+
// @ts-ignore
21+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22+
// @ts-ignore
23+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
24+
// @ts-ignore
25+
import { GetFieldsResponse } from '../models';
26+
/**
27+
* LeadFieldsApi - axios parameter creator
28+
* @export
29+
*/
30+
export const LeadFieldsApiAxiosParamCreator = function (configuration?: Configuration) {
31+
return {
32+
/**
33+
* Returns data about all lead fields.
34+
* @summary Get all lead fields
35+
* @param {number} [start] Pagination start
36+
* @param {number} [limit] Items shown per page
37+
38+
* @throws {RequiredError}
39+
*/
40+
getLeadFields: async (start?: number, limit?: number, ): Promise<RequestArgs> => {
41+
const localVarPath = `/leadFields`;
42+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
43+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44+
let baseOptions;
45+
if (configuration) {
46+
baseOptions = configuration.baseOptions;
47+
}
48+
49+
const localVarRequestOptions = { method: 'GET', ...baseOptions };
50+
const localVarHeaderParameter = {} as any;
51+
const localVarQueryParameter = {} as any;
52+
53+
// authentication api_key required
54+
await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration)
55+
56+
// authentication oauth2 required
57+
// oauth required
58+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full", "admin"], configuration)
59+
60+
if (start !== undefined) {
61+
localVarQueryParameter['start'] = start;
62+
}
63+
64+
if (limit !== undefined) {
65+
localVarQueryParameter['limit'] = limit;
66+
}
67+
68+
69+
70+
setSearchParams(localVarUrlObj, localVarQueryParameter);
71+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, };
73+
74+
return {
75+
url: toPathString(localVarUrlObj),
76+
options: localVarRequestOptions,
77+
};
78+
},
79+
}
80+
};
81+
82+
83+
/**
84+
* LeadFieldsApi - functional programming interface
85+
* @export
86+
*/
87+
export const LeadFieldsApiFp = function(configuration?: Configuration) {
88+
const localVarAxiosParamCreator = LeadFieldsApiAxiosParamCreator(configuration)
89+
return {
90+
/**
91+
* Returns data about all lead fields.
92+
* @summary Get all lead fields
93+
* @param {number} [start] Pagination start
94+
* @param {number} [limit] Items shown per page
95+
96+
* @throws {RequiredError}
97+
*/
98+
async getLeadFields(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFieldsResponse>> {
99+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadFields(start, limit, );
100+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101+
},
102+
}
103+
};
104+
105+
/**
106+
* LeadFieldsApi - factory interface
107+
* @export
108+
*/
109+
export const LeadFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110+
const localVarFp = LeadFieldsApiFp(configuration)
111+
return {
112+
/**
113+
* Returns data about all lead fields.
114+
* @summary Get all lead fields
115+
* @param {LeadFieldsApiGetLeadFieldsRequest} requestParameters Request parameters.
116+
117+
* @throws {RequiredError}
118+
*/
119+
getLeadFields(requestParameters: LeadFieldsApiGetLeadFieldsRequest = {}, ): Promise<GetFieldsResponse> {
120+
return localVarFp.getLeadFields(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath));
121+
},
122+
};
123+
};
124+
125+
/**
126+
* Request parameters for getLeadFields operation in LeadFieldsApi.
127+
* @export
128+
* @interface LeadFieldsApiGetLeadFieldsRequest
129+
*/
130+
export interface LeadFieldsApiGetLeadFieldsRequest {
131+
/**
132+
* Pagination start
133+
* @type {number}
134+
* @memberof LeadFieldsApiGetLeadFields
135+
*/
136+
readonly start?: number
137+
138+
/**
139+
* Items shown per page
140+
* @type {number}
141+
* @memberof LeadFieldsApiGetLeadFields
142+
*/
143+
readonly limit?: number
144+
}
145+
146+
/**
147+
* LeadFieldsApi - object-oriented interface
148+
* @export
149+
* @class LeadFieldsApi
150+
* @extends {BaseAPI}
151+
*/
152+
export class LeadFieldsApi extends BaseAPI {
153+
/**
154+
* Returns data about all lead fields.
155+
* @summary Get all lead fields
156+
* @param {LeadFieldsApiGetLeadFieldsRequest} requestParameters Request parameters.
157+
158+
* @throws {RequiredError}
159+
* @memberof LeadFieldsApi
160+
*/
161+
public getLeadFields(requestParameters: LeadFieldsApiGetLeadFieldsRequest = {}, ) {
162+
return LeadFieldsApiFp(this.configuration).getLeadFields(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath));
163+
}
164+
}

0 commit comments

Comments
 (0)