Skip to content

Commit dac223d

Browse files
author
pipedrive-bot
committed
Build 287 - version-minor
1 parent 833cb7e commit dac223d

11 files changed

Lines changed: 107 additions & 28 deletions

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+
## Added
11+
- Added `is_archived` field in search response schemas for deals and leads
1012

1113
## [30.1.0] - 2025-10-06
1214
### Added

src/versions/v1/models/add-team-request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface AddTeamRequest {
3636
*/
3737
'manager_id'?: number;
3838
/**
39-
* The IDs of the users that belong to the team
39+
* The list of user IDs
4040
* @type {Array<number>}
4141
*/
4242
'users'?: Array<number>;

src/versions/v1/models/add-team-request1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface AddTeamRequest1 {
3636
*/
3737
'description'?: string;
3838
/**
39-
* The IDs of the users that belong to the team
39+
* The list of user IDs
4040
* @type {Array<number>}
4141
*/
4242
'users'?: Array<number>;

src/versions/v1/models/get-permitted-users-response.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
// May contain unused imports in some cases
1717
// @ts-ignore
18-
import { BaseResponse1 } from './base-response1';
18+
import { BaseResponse } from './base-response';
1919

2020
/**
2121
* @type GetPermittedUsersResponse
2222
* @export
2323
*/
24-
export type GetPermittedUsersResponse = BaseResponse1;
24+
export type GetPermittedUsersResponse = BaseResponse;
2525

2626

src/versions/v1/models/get-products-response1.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
21-
import { GetProductResponse } from './get-product-response';
21+
import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data';
2222
// May contain unused imports in some cases
2323
// @ts-ignore
24-
import { GetProductsResponse1AdditionalData } from './get-products-response1-additional-data';
24+
import { GetProductResponse } from './get-product-response';
2525

2626
/**
2727
*
@@ -41,9 +41,9 @@ export interface GetProductsResponse1 {
4141
'data': Array<GetProductResponse>;
4242
/**
4343
*
44-
* @type {GetProductsResponse1AdditionalData}
44+
* @type {GetFieldsResponseAllOfAdditionalData}
4545
*/
46-
'additional_data': GetProductsResponse1AdditionalData;
46+
'additional_data': GetFieldsResponseAllOfAdditionalData;
4747
/**
4848
*
4949
* @type {GetActivitiesResponseRelatedObjects}

src/versions/v1/models/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export * from './base-pipeline-with-selected-flag';
112112
export * from './base-pipeline-with-selected-flag-all-of';
113113
export * from './base-product';
114114
export * from './base-response';
115-
export * from './base-response1';
116115
export * from './base-response-all-of';
117116
export * from './base-role-request';
118117
export * from './base-stage';
@@ -497,7 +496,6 @@ export * from './get-product-search-response-all-of-data-items-inner-item';
497496
export * from './get-product-search-response-all-of-data-items-inner-item-owner';
498497
export * from './get-products-response';
499498
export * from './get-products-response1';
500-
export * from './get-products-response1-additional-data';
501499
export * from './get-products-response-all-of';
502500
export * from './get-products-response-all-of-additional-data';
503501
export * from './get-products-response-all-of-additional-data-all-of';

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: &#x60;id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
944+
* @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;.
945945
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
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
*/

src/versions/v2/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ export * from './organization-item1';
160160
export * from './organization-item-address';
161161
export * from './prices-array';
162162
export * from './product-request';
163-
export * from './stage';
164163
export * from './stage-item';
164+
export * from './stage-item1';
165165
export * from './update-additional-discount-request-body';
166166
export * from './update-additional-discount-response';
167167
export * from './update-deal-product-request';
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.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+
17+
/**
18+
* The stage object
19+
* @export
20+
* @interface StageItem1
21+
*/
22+
export interface StageItem1 {
23+
/**
24+
* The ID of the stage
25+
* @type {number}
26+
*/
27+
'id'?: number;
28+
/**
29+
* Defines the order of the stage
30+
* @type {number}
31+
*/
32+
'order_nr'?: number;
33+
/**
34+
* The name of the stage
35+
* @type {string}
36+
*/
37+
'name'?: string;
38+
/**
39+
* Whether the stage is marked as deleted or not
40+
* @type {boolean}
41+
*/
42+
'is_deleted'?: boolean;
43+
/**
44+
* The success probability percentage of the deal. Used/shown when the deal weighted values are used.
45+
* @type {number}
46+
*/
47+
'deal_probability'?: number;
48+
/**
49+
* The ID of the pipeline to add the stage to
50+
* @type {number}
51+
*/
52+
'pipeline_id'?: number;
53+
/**
54+
* Whether deals in this stage can become rotten
55+
* @type {boolean}
56+
*/
57+
'is_deal_rot_enabled'?: boolean;
58+
/**
59+
* The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set.
60+
* @type {number}
61+
*/
62+
'days_to_rotten'?: number | null;
63+
/**
64+
* The stage creation time
65+
* @type {string}
66+
*/
67+
'add_time'?: string;
68+
/**
69+
* The stage update time
70+
* @type {string}
71+
*/
72+
'update_time'?: string;
73+
}
74+

0 commit comments

Comments
 (0)