Skip to content

Commit 6c6def1

Browse files
author
pipedrive-bot
committed
Build 308 - version-minor
1 parent bf438de commit 6c6def1

7 files changed

Lines changed: 74 additions & 43 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ 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+
- Removed beta labels from v2 lead/deal conversion endpoints:
12+
- `GET /api/v2/leads/{id}/convert/status/{conversion_id}`
13+
- `POST /api/v2/leads/{id}/convert`
14+
- `GET /api/v2/deals/{id}/convert/status/{conversion_id}`
15+
- `POST /api/v2/deals/{id}/convert`
16+
- Removed beta labels from v2 deal installments endpoints:
17+
- `GET /api/v2/deals/installments`
18+
- `POST /api/v2/deals/{id}/installments`
19+
- `PATCH /api/v2/deals/{id}/installments/{installment_id}`
20+
- `DELETE /api/v2/deals/{id}/installments/{installment_id}`
21+
- Removed beta labels from v2 product images endpoints:
22+
- `GET /api/v2/products/{id}/images`
23+
- `POST /api/v2/products/{id}/images`
24+
- `PUT /api/v2/products/{id}/images`
25+
- `DELETE /api/v2/products/{id}/images`
1026

1127
## [31.0.0] - 2026-01-27
1228
### Removed

docs/v2.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ ActivitiesApi | getActivity | **GET** /activities/{id} | Get details of an activ
1111
ActivitiesApi | updateActivity | **PATCH** /activities/{id} | Update an activity
1212
ActivityFieldsApi | getActivityField | **GET** /activityFields/{field_code} | Get one activity field
1313
ActivityFieldsApi | getActivityFields | **GET** /activityFields | Get all activity fields
14-
BetaApi | convertDealToLead | **POST** /deals/{id}/convert/lead | Convert a deal to a lead (BETA)
15-
BetaApi | convertLeadToDeal | **POST** /leads/{id}/convert/deal | Convert a lead to a deal (BETA)
16-
BetaApi | deleteInstallment | **DELETE** /deals/{id}/installments/{installment_id} | Delete an installment from a deal
17-
BetaApi | deleteProductImage | **DELETE** /products/{id}/images | Delete an image of a product
18-
BetaApi | getDealConversionStatus | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status (BETA)
19-
BetaApi | getInstallments | **GET** /deals/installments | List installments added to a list of deals
20-
BetaApi | getLeadConversionStatus | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status (BETA)
21-
BetaApi | getProductImage | **GET** /products/{id}/images | Get image of a product
22-
BetaApi | postInstallment | **POST** /deals/{id}/installments | Add an installment to a deal
23-
BetaApi | updateInstallment | **PATCH** /deals/{id}/installments/{installment_id} | Update an installment added to a deal
24-
BetaApi | updateProductImage | **PUT** /products/{id}/images | Update an image for a product
25-
BetaApi | uploadProductImage | **POST** /products/{id}/images | Upload an image for a product
2614
DealFieldsApi | addDealField | **POST** /dealFields | Create one deal field
2715
DealFieldsApi | addDealFieldOptions | **POST** /dealFields/{field_code}/options | Add deal field options in bulk
2816
DealFieldsApi | deleteDealField | **DELETE** /dealFields/{field_code} | Delete one deal field
@@ -35,7 +23,7 @@ DealsApi | addDeal | **POST** /deals | Add a new deal
3523
DealsApi | addDealFollower | **POST** /deals/{id}/followers | Add a follower to a deal
3624
DealsApi | addDealProduct | **POST** /deals/{id}/products | Add a product to a deal
3725
DealsApi | addManyDealProducts | **POST** /deals/{id}/products/bulk | Add multiple products to a deal
38-
DealsApi | convertDealToLead | **POST** /deals/{id}/convert/lead | Convert a deal to a lead (BETA)
26+
DealsApi | convertDealToLead | **POST** /deals/{id}/convert/lead | Convert a deal to a lead
3927
DealsApi | deleteAdditionalDiscount | **DELETE** /deals/{id}/discounts/{discount_id} | Delete a discount from a deal
4028
DealsApi | deleteDeal | **DELETE** /deals/{id} | Delete a deal
4129
DealsApi | deleteDealFollower | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal
@@ -45,7 +33,7 @@ DealsApi | deleteManyDealProducts | **DELETE** /deals/{id}/products | Delete man
4533
DealsApi | getAdditionalDiscounts | **GET** /deals/{id}/discounts | List discounts added to a deal
4634
DealsApi | getArchivedDeals | **GET** /deals/archived | Get all archived deals
4735
DealsApi | getDeal | **GET** /deals/{id} | Get details of a deal
48-
DealsApi | getDealConversionStatus | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status (BETA)
36+
DealsApi | getDealConversionStatus | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status
4937
DealsApi | getDealFollowers | **GET** /deals/{id}/followers | List followers of a deal
5038
DealsApi | getDealFollowersChangelog | **GET** /deals/{id}/followers/changelog | List followers changelog of a deal
5139
DealsApi | getDealProducts | **GET** /deals/{id}/products | List products attached to a deal
@@ -61,8 +49,8 @@ DealsApi | updateDealProduct | **PATCH** /deals/{id}/products/{product_attachmen
6149
DealsApi | updateInstallment | **PATCH** /deals/{id}/installments/{installment_id} | Update an installment added to a deal
6250
ItemSearchApi | searchItem | **GET** /itemSearch | Perform a search from multiple item types
6351
ItemSearchApi | searchItemByField | **GET** /itemSearch/field | Perform a search using a specific field from an item type
64-
LeadsApi | convertLeadToDeal | **POST** /leads/{id}/convert/deal | Convert a lead to a deal (BETA)
65-
LeadsApi | getLeadConversionStatus | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status (BETA)
52+
LeadsApi | convertLeadToDeal | **POST** /leads/{id}/convert/deal | Convert a lead to a deal
53+
LeadsApi | getLeadConversionStatus | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status
6654
LeadsApi | searchLeads | **GET** /leads/search | Search leads
6755
OrganizationFieldsApi | addOrganizationField | **POST** /organizationFields | Create one organization field
6856
OrganizationFieldsApi | addOrganizationFieldOptions | **POST** /organizationFields/{field_code}/options | Add organization field options in bulk

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

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,12 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
288288
* @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied.
289289
* @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied.
290290
* @param {number} [filter_id] The ID of the filter to use
291+
* @param {string} [updated_since] If set, only leads with an `update_time` later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
291292
* @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys).
292293
293294
* @throws {RequiredError}
294295
*/
295-
getLeads: async (limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time', ): Promise<RequestArgs> => {
296+
getLeads: async (limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time', ): Promise<RequestArgs> => {
296297
const localVarPath = `/leads`;
297298
// use dummy base URL string because the URL constructor only accepts absolute URLs.
298299
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -336,6 +337,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
336337
localVarQueryParameter['filter_id'] = filter_id;
337338
}
338339

340+
if (updated_since !== undefined) {
341+
localVarQueryParameter['updated_since'] = updated_since;
342+
}
343+
339344
if (sort !== undefined) {
340345
localVarQueryParameter['sort'] = sort;
341346
}
@@ -556,12 +561,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
556561
* @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
557562
* @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
558563
* @param {number} [filter_id] The ID of the filter to use
564+
* @param {string} [updated_since] If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
559565
* @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
560566
561567
* @throws {RequiredError}
562568
*/
563-
async getLeads(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadsResponse>> {
564-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLeads(limit, start, owner_id, person_id, organization_id, filter_id, sort, );
569+
async getLeads(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadsResponse>> {
570+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLeads(limit, start, owner_id, person_id, organization_id, filter_id, updated_since, sort, );
565571
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566572
},
567573
/**
@@ -662,7 +668,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
662668
* @throws {RequiredError}
663669
*/
664670
getLeads(requestParameters: LeadsApiGetLeadsRequest = {}, ): Promise<GetLeadsResponse> {
665-
return localVarFp.getLeads(requestParameters.limit, requestParameters.start, requestParameters.owner_id, requestParameters.person_id, requestParameters.organization_id, requestParameters.filter_id, requestParameters.sort, ).then((request) => request(axios, basePath));
671+
return localVarFp.getLeads(requestParameters.limit, requestParameters.start, requestParameters.owner_id, requestParameters.person_id, requestParameters.organization_id, requestParameters.filter_id, requestParameters.updated_since, requestParameters.sort, ).then((request) => request(axios, basePath));
666672
},
667673
/**
668674
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
@@ -847,6 +853,13 @@ export interface LeadsApiGetLeadsRequest {
847853
*/
848854
readonly filter_id?: number
849855

856+
/**
857+
* If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
858+
* @type {string}
859+
* @memberof LeadsApiGetLeads
860+
*/
861+
readonly updated_since?: string
862+
850863
/**
851864
* The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
852865
* @type {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'}
@@ -1015,7 +1028,7 @@ export class LeadsApi extends BaseAPI {
10151028
* @memberof LeadsApi
10161029
*/
10171030
public getLeads(requestParameters: LeadsApiGetLeadsRequest = {}, ) {
1018-
return LeadsApiFp(this.configuration).getLeads(requestParameters.limit, requestParameters.start, requestParameters.owner_id, requestParameters.person_id, requestParameters.organization_id, requestParameters.filter_id, requestParameters.sort, ).then((request) => request(this.axios, this.basePath));
1031+
return LeadsApiFp(this.configuration).getLeads(requestParameters.limit, requestParameters.start, requestParameters.owner_id, requestParameters.person_id, requestParameters.organization_id, requestParameters.filter_id, requestParameters.updated_since, requestParameters.sort, ).then((request) => request(this.axios, this.basePath));
10191032
}
10201033

10211034
/**

0 commit comments

Comments
 (0)