pipedrive 24.2.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/esm/versions/v1/api/activities-api.js +40 -40
- package/dist/esm/versions/v1/api/deals-api.d.ts +413 -91
- package/dist/esm/versions/v1/api/deals-api.js +419 -90
- package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/item-search-api.js +8 -8
- package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/esm/versions/v1/api/leads-api.js +107 -14
- package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/esm/versions/v1/api/notes-api.js +15 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +71 -71
- package/dist/esm/versions/v1/api/organizations-api.js +70 -70
- package/dist/esm/versions/v1/api/persons-api.d.ts +59 -59
- package/dist/esm/versions/v1/api/persons-api.js +58 -58
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/esm/versions/v1/api/pipelines-api.js +28 -28
- package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
- package/dist/esm/versions/v1/api/products-api.js +24 -24
- package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/stages-api.js +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/esm/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/esm/versions/v1/api/webhooks-api.js +4 -4
- package/dist/esm/versions/v1/base.d.ts +2 -3
- package/dist/esm/versions/v1/configuration.d.ts +2 -2
- package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
- package/dist/esm/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/esm/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/esm/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v1/models/index.d.ts +1 -0
- package/dist/esm/versions/v1/models/index.js +1 -0
- package/dist/esm/versions/v1/models/note-project.d.ts +23 -0
- package/dist/esm/versions/v1/models/note-project.js +14 -0
- package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/esm/versions/v1/models/note.d.ts +16 -0
- package/dist/esm/versions/v1/models/user-access.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access.js +4 -3
- package/dist/esm/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access1.js +4 -3
- package/dist/esm/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/esm/versions/v2/api/activities-api.js +12 -7
- package/dist/esm/versions/v2/api/beta-api.d.ts +194 -2532
- package/dist/esm/versions/v2/api/beta-api.js +263 -2928
- package/dist/esm/versions/v2/api/deals-api.d.ts +509 -4
- package/dist/esm/versions/v2/api/deals-api.js +589 -4
- package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/esm/versions/v2/api/leads-api.js +146 -1
- package/dist/esm/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/organizations-api.js +301 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +245 -8
- package/dist/esm/versions/v2/api/persons-api.js +309 -8
- package/dist/esm/versions/v2/api/products-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/products-api.js +301 -0
- package/dist/esm/versions/v2/api/users-api.d.ts +103 -0
- package/dist/esm/versions/v2/api/users-api.js +140 -0
- package/dist/esm/versions/v2/api.d.ts +1 -0
- package/dist/esm/versions/v2/api.js +1 -0
- package/dist/esm/versions/v2/base.d.ts +2 -3
- package/dist/esm/versions/v2/configuration.d.ts +2 -2
- package/dist/esm/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.js +14 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/add-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/add-person-request.js +6 -1
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.js +14 -0
- package/dist/esm/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item1.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/esm/versions/v2/models/get-convert-response.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.js +20 -0
- package/dist/esm/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-convert-response1.js +14 -0
- package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-followers-response.js +14 -0
- package/dist/esm/versions/v2/models/index.d.ts +19 -0
- package/dist/esm/versions/v2/models/index.js +19 -0
- package/dist/esm/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/update-person-request.js +6 -1
- package/dist/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/versions/v1/api/activities-api.js +40 -40
- package/dist/versions/v1/api/deals-api.d.ts +413 -91
- package/dist/versions/v1/api/deals-api.js +419 -90
- package/dist/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/versions/v1/api/item-search-api.js +8 -8
- package/dist/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/versions/v1/api/leads-api.js +107 -14
- package/dist/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/versions/v1/api/notes-api.js +15 -5
- package/dist/versions/v1/api/organizations-api.d.ts +71 -71
- package/dist/versions/v1/api/organizations-api.js +70 -70
- package/dist/versions/v1/api/persons-api.d.ts +59 -59
- package/dist/versions/v1/api/persons-api.js +58 -58
- package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/versions/v1/api/pipelines-api.js +28 -28
- package/dist/versions/v1/api/products-api.d.ts +24 -24
- package/dist/versions/v1/api/products-api.js +24 -24
- package/dist/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/versions/v1/api/stages-api.js +36 -36
- package/dist/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/versions/v1/api/webhooks-api.js +4 -4
- package/dist/versions/v1/base.d.ts +2 -3
- package/dist/versions/v1/configuration.d.ts +2 -2
- package/dist/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
- package/dist/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v1/models/index.d.ts +1 -0
- package/dist/versions/v1/models/index.js +1 -0
- package/dist/versions/v1/models/note-project.d.ts +23 -0
- package/dist/versions/v1/models/note-project.js +15 -0
- package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/versions/v1/models/note.d.ts +16 -0
- package/dist/versions/v1/models/user-access.d.ts +3 -2
- package/dist/versions/v1/models/user-access.js +4 -3
- package/dist/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/versions/v1/models/user-access1.js +4 -3
- package/dist/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/versions/v2/api/activities-api.js +12 -7
- package/dist/versions/v2/api/beta-api.d.ts +194 -2532
- package/dist/versions/v2/api/beta-api.js +265 -2930
- package/dist/versions/v2/api/deals-api.d.ts +509 -4
- package/dist/versions/v2/api/deals-api.js +589 -4
- package/dist/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/versions/v2/api/leads-api.js +145 -0
- package/dist/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/versions/v2/api/organizations-api.js +301 -0
- package/dist/versions/v2/api/persons-api.d.ts +245 -8
- package/dist/versions/v2/api/persons-api.js +309 -8
- package/dist/versions/v2/api/products-api.d.ts +237 -0
- package/dist/versions/v2/api/products-api.js +301 -0
- package/dist/versions/v2/api/users-api.d.ts +103 -0
- package/dist/versions/v2/api/users-api.js +150 -0
- package/dist/versions/v2/api.d.ts +1 -0
- package/dist/versions/v2/api.js +1 -0
- package/dist/versions/v2/base.d.ts +2 -3
- package/dist/versions/v2/configuration.d.ts +2 -2
- package/dist/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.js +15 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.js +15 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.js +15 -0
- package/dist/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/versions/v2/models/add-deal-follower-request.js +15 -0
- package/dist/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/versions/v2/models/add-follower-response-all-of.js +15 -0
- package/dist/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/versions/v2/models/add-follower-response.js +15 -0
- package/dist/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/versions/v2/models/add-person-request.js +7 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.js +15 -0
- package/dist/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-follower-response-data.js +15 -0
- package/dist/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-follower-response.js +15 -0
- package/dist/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/versions/v2/models/follower-changelog-item.js +15 -0
- package/dist/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/versions/v2/models/follower-item.js +15 -0
- package/dist/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/versions/v2/models/follower-item1.js +15 -0
- package/dist/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/versions/v2/models/get-convert-response.js +15 -0
- package/dist/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/versions/v2/models/get-convert-response1-data.js +23 -0
- package/dist/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/versions/v2/models/get-convert-response1.js +15 -0
- package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.js +15 -0
- package/dist/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-followers-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/versions/v2/models/get-followers-response.js +15 -0
- package/dist/versions/v2/models/index.d.ts +19 -0
- package/dist/versions/v2/models/index.js +19 -0
- package/dist/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/versions/v2/models/update-person-request.js +7 -0
- package/package.json +1 -1
@@ -15,18 +15,25 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { AddAInstallmentResponse } from '../models';
|
16
16
|
import { AddAdditionalDiscountRequestBody } from '../models';
|
17
17
|
import { AddAdditionalDiscountResponse } from '../models';
|
18
|
+
import { AddConvertDealToLeadResponse } from '../models';
|
19
|
+
import { AddDealFollowerRequest } from '../models';
|
18
20
|
import { AddDealProductRequest } from '../models';
|
19
21
|
import { AddDealProductResponse } from '../models';
|
20
22
|
import { AddDealRequest } from '../models';
|
23
|
+
import { AddFollowerResponse } from '../models';
|
21
24
|
import { AddInstallmentRequestBody } from '../models';
|
22
25
|
import { DeleteAdditionalDiscountResponse } from '../models';
|
23
26
|
import { DeleteDealProductResponse } from '../models';
|
24
27
|
import { DeleteDealResponse } from '../models';
|
28
|
+
import { DeleteFollowerResponse } from '../models';
|
25
29
|
import { DeleteInstallmentResponse } from '../models';
|
26
30
|
import { GetAdditionalDiscountsResponse } from '../models';
|
31
|
+
import { GetConvertResponse1 } from '../models';
|
27
32
|
import { GetDealSearchResponse } from '../models';
|
28
33
|
import { GetDealsProductsResponse } from '../models';
|
29
34
|
import { GetDealsResponse } from '../models';
|
35
|
+
import { GetFollowerChangelogsResponse } from '../models';
|
36
|
+
import { GetFollowersResponse } from '../models';
|
30
37
|
import { GetInstallmentsResponse } from '../models';
|
31
38
|
import { UpdateAdditionalDiscountRequestBody } from '../models';
|
32
39
|
import { UpdateAdditionalDiscountResponse } from '../models';
|
@@ -48,6 +55,15 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
48
55
|
* @throws {RequiredError}
|
49
56
|
*/
|
50
57
|
addDeal: (AddDealRequest?: AddDealRequest) => Promise<RequestArgs>;
|
58
|
+
/**
|
59
|
+
* Adds a user as a follower to the deal.
|
60
|
+
* @summary Add a follower to a deal
|
61
|
+
* @param {number} id The ID of the deal
|
62
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
63
|
+
|
64
|
+
* @throws {RequiredError}
|
65
|
+
*/
|
66
|
+
addDealFollower: (id: number, AddDealFollowerRequest?: AddDealFollowerRequest) => Promise<RequestArgs>;
|
51
67
|
/**
|
52
68
|
* Adds a product to a deal, creating a new item called a deal-product.
|
53
69
|
* @summary Add a product to a deal
|
@@ -57,6 +73,14 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
57
73
|
* @throws {RequiredError}
|
58
74
|
*/
|
59
75
|
addDealProduct: (id: number, AddDealProductRequest?: AddDealProductRequest) => Promise<RequestArgs>;
|
76
|
+
/**
|
77
|
+
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
78
|
+
* @summary Convert a deal to a lead (BETA)
|
79
|
+
* @param {number} id The ID of the deal to convert
|
80
|
+
|
81
|
+
* @throws {RequiredError}
|
82
|
+
*/
|
83
|
+
convertDealToLead: (id: number) => Promise<RequestArgs>;
|
60
84
|
/**
|
61
85
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
62
86
|
* @summary Delete a discount from a deal
|
@@ -74,6 +98,15 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
74
98
|
* @throws {RequiredError}
|
75
99
|
*/
|
76
100
|
deleteDeal: (id: number) => Promise<RequestArgs>;
|
101
|
+
/**
|
102
|
+
* Deletes a user follower from the deal.
|
103
|
+
* @summary Delete a follower from a deal
|
104
|
+
* @param {number} id The ID of the deal
|
105
|
+
* @param {number} follower_id The ID of the following user
|
106
|
+
|
107
|
+
* @throws {RequiredError}
|
108
|
+
*/
|
109
|
+
deleteDealFollower: (id: number, follower_id: number) => Promise<RequestArgs>;
|
77
110
|
/**
|
78
111
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
79
112
|
* @summary Delete an attached product from a deal
|
@@ -100,6 +133,29 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
100
133
|
* @throws {RequiredError}
|
101
134
|
*/
|
102
135
|
getAdditionalDiscounts: (id: number) => Promise<RequestArgs>;
|
136
|
+
/**
|
137
|
+
* Returns data about all archived deals.
|
138
|
+
* @summary Get all archived deals
|
139
|
+
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
140
|
+
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
141
|
+
* @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
142
|
+
* @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
143
|
+
* @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
144
|
+
* @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
145
|
+
* @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
146
|
+
* @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored.
|
147
|
+
* @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
148
|
+
* @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
149
|
+
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
150
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
151
|
+
* @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include
|
152
|
+
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
153
|
+
* @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.
|
154
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
155
|
+
|
156
|
+
* @throws {RequiredError}
|
157
|
+
*/
|
158
|
+
getArchivedDeals: (filter_id?: number, ids?: string, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
103
159
|
/**
|
104
160
|
* Returns the details of a specific deal.
|
105
161
|
* @summary Get details of a deal
|
@@ -110,6 +166,35 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
110
166
|
* @throws {RequiredError}
|
111
167
|
*/
|
112
168
|
getDeal: (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string) => Promise<RequestArgs>;
|
169
|
+
/**
|
170
|
+
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
171
|
+
* @summary Get Deal conversion status (BETA)
|
172
|
+
* @param {number} id The ID of a deal
|
173
|
+
* @param {string} conversion_id The ID of the conversion
|
174
|
+
|
175
|
+
* @throws {RequiredError}
|
176
|
+
*/
|
177
|
+
getDealConversionStatus: (id: number, conversion_id: string) => Promise<RequestArgs>;
|
178
|
+
/**
|
179
|
+
* Lists users who are following the deal.
|
180
|
+
* @summary List followers of a deal
|
181
|
+
* @param {number} id The ID of the deal
|
182
|
+
* @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.
|
183
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
184
|
+
|
185
|
+
* @throws {RequiredError}
|
186
|
+
*/
|
187
|
+
getDealFollowers: (id: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
188
|
+
/**
|
189
|
+
* Lists changelogs about users have followed the deal.
|
190
|
+
* @summary List followers changelog of a deal
|
191
|
+
* @param {number} id The ID of the deal
|
192
|
+
* @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.
|
193
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
194
|
+
|
195
|
+
* @throws {RequiredError}
|
196
|
+
*/
|
197
|
+
getDealFollowersChangelog: (id: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
113
198
|
/**
|
114
199
|
* Lists products attached to a deal.
|
115
200
|
* @summary List products attached to a deal
|
@@ -123,7 +208,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
123
208
|
*/
|
124
209
|
getDealProducts: (id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
|
125
210
|
/**
|
126
|
-
* Returns data about all deals.
|
211
|
+
* Returns data about all not archived deals.
|
127
212
|
* @summary Get all deals
|
128
213
|
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
129
214
|
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
@@ -256,6 +341,15 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
256
341
|
* @throws {RequiredError}
|
257
342
|
*/
|
258
343
|
addDeal(AddDealRequest?: AddDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertDealResponse>>;
|
344
|
+
/**
|
345
|
+
* Adds a user as a follower to the deal.
|
346
|
+
* @summary Add a follower to a deal
|
347
|
+
* @param {number} id The ID of the deal
|
348
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
349
|
+
|
350
|
+
* @throws {RequiredError}
|
351
|
+
*/
|
352
|
+
addDealFollower(id: number, AddDealFollowerRequest?: AddDealFollowerRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFollowerResponse>>;
|
259
353
|
/**
|
260
354
|
* Adds a product to a deal, creating a new item called a deal-product.
|
261
355
|
* @summary Add a product to a deal
|
@@ -265,6 +359,14 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
265
359
|
* @throws {RequiredError}
|
266
360
|
*/
|
267
361
|
addDealProduct(id: number, AddDealProductRequest?: AddDealProductRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddDealProductResponse>>;
|
362
|
+
/**
|
363
|
+
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
364
|
+
* @summary Convert a deal to a lead (BETA)
|
365
|
+
* @param {number} id The ID of the deal to convert
|
366
|
+
|
367
|
+
* @throws {RequiredError}
|
368
|
+
*/
|
369
|
+
convertDealToLead(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertDealToLeadResponse>>;
|
268
370
|
/**
|
269
371
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
270
372
|
* @summary Delete a discount from a deal
|
@@ -282,6 +384,15 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
282
384
|
* @throws {RequiredError}
|
283
385
|
*/
|
284
386
|
deleteDeal(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteDealResponse>>;
|
387
|
+
/**
|
388
|
+
* Deletes a user follower from the deal.
|
389
|
+
* @summary Delete a follower from a deal
|
390
|
+
* @param {number} id The ID of the deal
|
391
|
+
* @param {number} follower_id The ID of the following user
|
392
|
+
|
393
|
+
* @throws {RequiredError}
|
394
|
+
*/
|
395
|
+
deleteDealFollower(id: number, follower_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFollowerResponse>>;
|
285
396
|
/**
|
286
397
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
287
398
|
* @summary Delete an attached product from a deal
|
@@ -308,6 +419,29 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
308
419
|
* @throws {RequiredError}
|
309
420
|
*/
|
310
421
|
getAdditionalDiscounts(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetAdditionalDiscountsResponse>>;
|
422
|
+
/**
|
423
|
+
* Returns data about all archived deals.
|
424
|
+
* @summary Get all archived deals
|
425
|
+
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
426
|
+
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
427
|
+
* @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
428
|
+
* @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
429
|
+
* @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
430
|
+
* @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
431
|
+
* @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
432
|
+
* @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored.
|
433
|
+
* @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
434
|
+
* @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
435
|
+
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
436
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
437
|
+
* @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include
|
438
|
+
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
439
|
+
* @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.
|
440
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
441
|
+
|
442
|
+
* @throws {RequiredError}
|
443
|
+
*/
|
444
|
+
getArchivedDeals(filter_id?: number, ids?: string, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsResponse>>;
|
311
445
|
/**
|
312
446
|
* Returns the details of a specific deal.
|
313
447
|
* @summary Get details of a deal
|
@@ -318,6 +452,35 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
318
452
|
* @throws {RequiredError}
|
319
453
|
*/
|
320
454
|
getDeal(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertDealResponse>>;
|
455
|
+
/**
|
456
|
+
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
457
|
+
* @summary Get Deal conversion status (BETA)
|
458
|
+
* @param {number} id The ID of a deal
|
459
|
+
* @param {string} conversion_id The ID of the conversion
|
460
|
+
|
461
|
+
* @throws {RequiredError}
|
462
|
+
*/
|
463
|
+
getDealConversionStatus(id: number, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
|
464
|
+
/**
|
465
|
+
* Lists users who are following the deal.
|
466
|
+
* @summary List followers of a deal
|
467
|
+
* @param {number} id The ID of the deal
|
468
|
+
* @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.
|
469
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
470
|
+
|
471
|
+
* @throws {RequiredError}
|
472
|
+
*/
|
473
|
+
getDealFollowers(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowersResponse>>;
|
474
|
+
/**
|
475
|
+
* Lists changelogs about users have followed the deal.
|
476
|
+
* @summary List followers changelog of a deal
|
477
|
+
* @param {number} id The ID of the deal
|
478
|
+
* @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.
|
479
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
480
|
+
|
481
|
+
* @throws {RequiredError}
|
482
|
+
*/
|
483
|
+
getDealFollowersChangelog(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowerChangelogsResponse>>;
|
321
484
|
/**
|
322
485
|
* Lists products attached to a deal.
|
323
486
|
* @summary List products attached to a deal
|
@@ -331,7 +494,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
331
494
|
*/
|
332
495
|
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>>;
|
333
496
|
/**
|
334
|
-
* Returns data about all deals.
|
497
|
+
* Returns data about all not archived deals.
|
335
498
|
* @summary Get all deals
|
336
499
|
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
337
500
|
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
@@ -464,6 +627,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
464
627
|
* @throws {RequiredError}
|
465
628
|
*/
|
466
629
|
addDeal(requestParameters?: DealsApiAddDealRequest): Promise<UpsertDealResponse>;
|
630
|
+
/**
|
631
|
+
* Adds a user as a follower to the deal.
|
632
|
+
* @summary Add a follower to a deal
|
633
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
634
|
+
|
635
|
+
* @throws {RequiredError}
|
636
|
+
*/
|
637
|
+
addDealFollower(requestParameters: DealsApiAddDealFollowerRequest): Promise<AddFollowerResponse>;
|
467
638
|
/**
|
468
639
|
* Adds a product to a deal, creating a new item called a deal-product.
|
469
640
|
* @summary Add a product to a deal
|
@@ -472,6 +643,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
472
643
|
* @throws {RequiredError}
|
473
644
|
*/
|
474
645
|
addDealProduct(requestParameters: DealsApiAddDealProductRequest): Promise<AddDealProductResponse>;
|
646
|
+
/**
|
647
|
+
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
648
|
+
* @summary Convert a deal to a lead (BETA)
|
649
|
+
* @param {DealsApiConvertDealToLeadRequest} requestParameters Request parameters.
|
650
|
+
|
651
|
+
* @throws {RequiredError}
|
652
|
+
*/
|
653
|
+
convertDealToLead(requestParameters: DealsApiConvertDealToLeadRequest): Promise<AddConvertDealToLeadResponse>;
|
475
654
|
/**
|
476
655
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
477
656
|
* @summary Delete a discount from a deal
|
@@ -488,6 +667,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
488
667
|
* @throws {RequiredError}
|
489
668
|
*/
|
490
669
|
deleteDeal(requestParameters: DealsApiDeleteDealRequest): Promise<DeleteDealResponse>;
|
670
|
+
/**
|
671
|
+
* Deletes a user follower from the deal.
|
672
|
+
* @summary Delete a follower from a deal
|
673
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
674
|
+
|
675
|
+
* @throws {RequiredError}
|
676
|
+
*/
|
677
|
+
deleteDealFollower(requestParameters: DealsApiDeleteDealFollowerRequest): Promise<DeleteFollowerResponse>;
|
491
678
|
/**
|
492
679
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
493
680
|
* @summary Delete an attached product from a deal
|
@@ -512,6 +699,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
512
699
|
* @throws {RequiredError}
|
513
700
|
*/
|
514
701
|
getAdditionalDiscounts(requestParameters: DealsApiGetAdditionalDiscountsRequest): Promise<GetAdditionalDiscountsResponse>;
|
702
|
+
/**
|
703
|
+
* Returns data about all archived deals.
|
704
|
+
* @summary Get all archived deals
|
705
|
+
* @param {DealsApiGetArchivedDealsRequest} requestParameters Request parameters.
|
706
|
+
|
707
|
+
* @throws {RequiredError}
|
708
|
+
*/
|
709
|
+
getArchivedDeals(requestParameters?: DealsApiGetArchivedDealsRequest): Promise<GetDealsResponse>;
|
515
710
|
/**
|
516
711
|
* Returns the details of a specific deal.
|
517
712
|
* @summary Get details of a deal
|
@@ -520,6 +715,30 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
520
715
|
* @throws {RequiredError}
|
521
716
|
*/
|
522
717
|
getDeal(requestParameters: DealsApiGetDealRequest): Promise<UpsertDealResponse>;
|
718
|
+
/**
|
719
|
+
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
720
|
+
* @summary Get Deal conversion status (BETA)
|
721
|
+
* @param {DealsApiGetDealConversionStatusRequest} requestParameters Request parameters.
|
722
|
+
|
723
|
+
* @throws {RequiredError}
|
724
|
+
*/
|
725
|
+
getDealConversionStatus(requestParameters: DealsApiGetDealConversionStatusRequest): Promise<GetConvertResponse1>;
|
726
|
+
/**
|
727
|
+
* Lists users who are following the deal.
|
728
|
+
* @summary List followers of a deal
|
729
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
730
|
+
|
731
|
+
* @throws {RequiredError}
|
732
|
+
*/
|
733
|
+
getDealFollowers(requestParameters: DealsApiGetDealFollowersRequest): Promise<GetFollowersResponse>;
|
734
|
+
/**
|
735
|
+
* Lists changelogs about users have followed the deal.
|
736
|
+
* @summary List followers changelog of a deal
|
737
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
738
|
+
|
739
|
+
* @throws {RequiredError}
|
740
|
+
*/
|
741
|
+
getDealFollowersChangelog(requestParameters: DealsApiGetDealFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
|
523
742
|
/**
|
524
743
|
* Lists products attached to a deal.
|
525
744
|
* @summary List products attached to a deal
|
@@ -529,7 +748,7 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
529
748
|
*/
|
530
749
|
getDealProducts(requestParameters: DealsApiGetDealProductsRequest): Promise<GetDealsProductsResponse>;
|
531
750
|
/**
|
532
|
-
* Returns data about all deals.
|
751
|
+
* Returns data about all not archived deals.
|
533
752
|
* @summary Get all deals
|
534
753
|
* @param {DealsApiGetDealsRequest} requestParameters Request parameters.
|
535
754
|
|
@@ -622,6 +841,25 @@ export interface DealsApiAddDealRequest {
|
|
622
841
|
*/
|
623
842
|
readonly AddDealRequest?: AddDealRequest;
|
624
843
|
}
|
844
|
+
/**
|
845
|
+
* Request parameters for addDealFollower operation in DealsApi.
|
846
|
+
* @export
|
847
|
+
* @interface DealsApiAddDealFollowerRequest
|
848
|
+
*/
|
849
|
+
export interface DealsApiAddDealFollowerRequest {
|
850
|
+
/**
|
851
|
+
* The ID of the deal
|
852
|
+
* @type {number}
|
853
|
+
* @memberof DealsApiAddDealFollower
|
854
|
+
*/
|
855
|
+
readonly id: number;
|
856
|
+
/**
|
857
|
+
*
|
858
|
+
* @type {AddDealFollowerRequest}
|
859
|
+
* @memberof DealsApiAddDealFollower
|
860
|
+
*/
|
861
|
+
readonly AddDealFollowerRequest?: AddDealFollowerRequest;
|
862
|
+
}
|
625
863
|
/**
|
626
864
|
* Request parameters for addDealProduct operation in DealsApi.
|
627
865
|
* @export
|
@@ -641,6 +879,19 @@ export interface DealsApiAddDealProductRequest {
|
|
641
879
|
*/
|
642
880
|
readonly AddDealProductRequest?: AddDealProductRequest;
|
643
881
|
}
|
882
|
+
/**
|
883
|
+
* Request parameters for convertDealToLead operation in DealsApi.
|
884
|
+
* @export
|
885
|
+
* @interface DealsApiConvertDealToLeadRequest
|
886
|
+
*/
|
887
|
+
export interface DealsApiConvertDealToLeadRequest {
|
888
|
+
/**
|
889
|
+
* The ID of the deal to convert
|
890
|
+
* @type {number}
|
891
|
+
* @memberof DealsApiConvertDealToLead
|
892
|
+
*/
|
893
|
+
readonly id: number;
|
894
|
+
}
|
644
895
|
/**
|
645
896
|
* Request parameters for deleteAdditionalDiscount operation in DealsApi.
|
646
897
|
* @export
|
@@ -673,6 +924,25 @@ export interface DealsApiDeleteDealRequest {
|
|
673
924
|
*/
|
674
925
|
readonly id: number;
|
675
926
|
}
|
927
|
+
/**
|
928
|
+
* Request parameters for deleteDealFollower operation in DealsApi.
|
929
|
+
* @export
|
930
|
+
* @interface DealsApiDeleteDealFollowerRequest
|
931
|
+
*/
|
932
|
+
export interface DealsApiDeleteDealFollowerRequest {
|
933
|
+
/**
|
934
|
+
* The ID of the deal
|
935
|
+
* @type {number}
|
936
|
+
* @memberof DealsApiDeleteDealFollower
|
937
|
+
*/
|
938
|
+
readonly id: number;
|
939
|
+
/**
|
940
|
+
* The ID of the following user
|
941
|
+
* @type {number}
|
942
|
+
* @memberof DealsApiDeleteDealFollower
|
943
|
+
*/
|
944
|
+
readonly follower_id: number;
|
945
|
+
}
|
676
946
|
/**
|
677
947
|
* Request parameters for deleteDealProduct operation in DealsApi.
|
678
948
|
* @export
|
@@ -724,6 +994,109 @@ export interface DealsApiGetAdditionalDiscountsRequest {
|
|
724
994
|
*/
|
725
995
|
readonly id: number;
|
726
996
|
}
|
997
|
+
/**
|
998
|
+
* Request parameters for getArchivedDeals operation in DealsApi.
|
999
|
+
* @export
|
1000
|
+
* @interface DealsApiGetArchivedDealsRequest
|
1001
|
+
*/
|
1002
|
+
export interface DealsApiGetArchivedDealsRequest {
|
1003
|
+
/**
|
1004
|
+
* If supplied, only deals matching the specified filter are returned
|
1005
|
+
* @type {number}
|
1006
|
+
* @memberof DealsApiGetArchivedDeals
|
1007
|
+
*/
|
1008
|
+
readonly filter_id?: number;
|
1009
|
+
/**
|
1010
|
+
* Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
1011
|
+
* @type {string}
|
1012
|
+
* @memberof DealsApiGetArchivedDeals
|
1013
|
+
*/
|
1014
|
+
readonly ids?: string;
|
1015
|
+
/**
|
1016
|
+
* If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
1017
|
+
* @type {number}
|
1018
|
+
* @memberof DealsApiGetArchivedDeals
|
1019
|
+
*/
|
1020
|
+
readonly owner_id?: number;
|
1021
|
+
/**
|
1022
|
+
* If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
1023
|
+
* @type {number}
|
1024
|
+
* @memberof DealsApiGetArchivedDeals
|
1025
|
+
*/
|
1026
|
+
readonly person_id?: number;
|
1027
|
+
/**
|
1028
|
+
* If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
1029
|
+
* @type {number}
|
1030
|
+
* @memberof DealsApiGetArchivedDeals
|
1031
|
+
*/
|
1032
|
+
readonly org_id?: number;
|
1033
|
+
/**
|
1034
|
+
* If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
1035
|
+
* @type {number}
|
1036
|
+
* @memberof DealsApiGetArchivedDeals
|
1037
|
+
*/
|
1038
|
+
readonly pipeline_id?: number;
|
1039
|
+
/**
|
1040
|
+
* If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
1041
|
+
* @type {number}
|
1042
|
+
* @memberof DealsApiGetArchivedDeals
|
1043
|
+
*/
|
1044
|
+
readonly stage_id?: number;
|
1045
|
+
/**
|
1046
|
+
* Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored.
|
1047
|
+
* @type {'open' | 'won' | 'lost' | 'deleted'}
|
1048
|
+
* @memberof DealsApiGetArchivedDeals
|
1049
|
+
*/
|
1050
|
+
readonly status?: 'open' | 'won' | 'lost' | 'deleted';
|
1051
|
+
/**
|
1052
|
+
* If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
1053
|
+
* @type {string}
|
1054
|
+
* @memberof DealsApiGetArchivedDeals
|
1055
|
+
*/
|
1056
|
+
readonly updated_since?: string;
|
1057
|
+
/**
|
1058
|
+
* If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
1059
|
+
* @type {string}
|
1060
|
+
* @memberof DealsApiGetArchivedDeals
|
1061
|
+
*/
|
1062
|
+
readonly updated_until?: string;
|
1063
|
+
/**
|
1064
|
+
* The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
1065
|
+
* @type {'id' | 'update_time' | 'add_time'}
|
1066
|
+
* @memberof DealsApiGetArchivedDeals
|
1067
|
+
*/
|
1068
|
+
readonly sort_by?: 'id' | 'update_time' | 'add_time';
|
1069
|
+
/**
|
1070
|
+
* The sorting direction. Supported values: `asc`, `desc`.
|
1071
|
+
* @type {'asc' | 'desc'}
|
1072
|
+
* @memberof DealsApiGetArchivedDeals
|
1073
|
+
*/
|
1074
|
+
readonly sort_direction?: 'asc' | 'desc';
|
1075
|
+
/**
|
1076
|
+
* Optional comma separated string array of additional fields to include
|
1077
|
+
* @type {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'}
|
1078
|
+
* @memberof DealsApiGetArchivedDeals
|
1079
|
+
*/
|
1080
|
+
readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time';
|
1081
|
+
/**
|
1082
|
+
* Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
1083
|
+
* @type {string}
|
1084
|
+
* @memberof DealsApiGetArchivedDeals
|
1085
|
+
*/
|
1086
|
+
readonly custom_fields?: string;
|
1087
|
+
/**
|
1088
|
+
* 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.
|
1089
|
+
* @type {number}
|
1090
|
+
* @memberof DealsApiGetArchivedDeals
|
1091
|
+
*/
|
1092
|
+
readonly limit?: number;
|
1093
|
+
/**
|
1094
|
+
* For pagination, the marker (an opaque string value) representing the first item on the next page
|
1095
|
+
* @type {string}
|
1096
|
+
* @memberof DealsApiGetArchivedDeals
|
1097
|
+
*/
|
1098
|
+
readonly cursor?: string;
|
1099
|
+
}
|
727
1100
|
/**
|
728
1101
|
* Request parameters for getDeal operation in DealsApi.
|
729
1102
|
* @export
|
@@ -749,6 +1122,75 @@ export interface DealsApiGetDealRequest {
|
|
749
1122
|
*/
|
750
1123
|
readonly custom_fields?: string;
|
751
1124
|
}
|
1125
|
+
/**
|
1126
|
+
* Request parameters for getDealConversionStatus operation in DealsApi.
|
1127
|
+
* @export
|
1128
|
+
* @interface DealsApiGetDealConversionStatusRequest
|
1129
|
+
*/
|
1130
|
+
export interface DealsApiGetDealConversionStatusRequest {
|
1131
|
+
/**
|
1132
|
+
* The ID of a deal
|
1133
|
+
* @type {number}
|
1134
|
+
* @memberof DealsApiGetDealConversionStatus
|
1135
|
+
*/
|
1136
|
+
readonly id: number;
|
1137
|
+
/**
|
1138
|
+
* The ID of the conversion
|
1139
|
+
* @type {string}
|
1140
|
+
* @memberof DealsApiGetDealConversionStatus
|
1141
|
+
*/
|
1142
|
+
readonly conversion_id: string;
|
1143
|
+
}
|
1144
|
+
/**
|
1145
|
+
* Request parameters for getDealFollowers operation in DealsApi.
|
1146
|
+
* @export
|
1147
|
+
* @interface DealsApiGetDealFollowersRequest
|
1148
|
+
*/
|
1149
|
+
export interface DealsApiGetDealFollowersRequest {
|
1150
|
+
/**
|
1151
|
+
* The ID of the deal
|
1152
|
+
* @type {number}
|
1153
|
+
* @memberof DealsApiGetDealFollowers
|
1154
|
+
*/
|
1155
|
+
readonly id: number;
|
1156
|
+
/**
|
1157
|
+
* 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.
|
1158
|
+
* @type {number}
|
1159
|
+
* @memberof DealsApiGetDealFollowers
|
1160
|
+
*/
|
1161
|
+
readonly limit?: number;
|
1162
|
+
/**
|
1163
|
+
* For pagination, the marker (an opaque string value) representing the first item on the next page
|
1164
|
+
* @type {string}
|
1165
|
+
* @memberof DealsApiGetDealFollowers
|
1166
|
+
*/
|
1167
|
+
readonly cursor?: string;
|
1168
|
+
}
|
1169
|
+
/**
|
1170
|
+
* Request parameters for getDealFollowersChangelog operation in DealsApi.
|
1171
|
+
* @export
|
1172
|
+
* @interface DealsApiGetDealFollowersChangelogRequest
|
1173
|
+
*/
|
1174
|
+
export interface DealsApiGetDealFollowersChangelogRequest {
|
1175
|
+
/**
|
1176
|
+
* The ID of the deal
|
1177
|
+
* @type {number}
|
1178
|
+
* @memberof DealsApiGetDealFollowersChangelog
|
1179
|
+
*/
|
1180
|
+
readonly id: number;
|
1181
|
+
/**
|
1182
|
+
* 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.
|
1183
|
+
* @type {number}
|
1184
|
+
* @memberof DealsApiGetDealFollowersChangelog
|
1185
|
+
*/
|
1186
|
+
readonly limit?: number;
|
1187
|
+
/**
|
1188
|
+
* For pagination, the marker (an opaque string value) representing the first item on the next page
|
1189
|
+
* @type {string}
|
1190
|
+
* @memberof DealsApiGetDealFollowersChangelog
|
1191
|
+
*/
|
1192
|
+
readonly cursor?: string;
|
1193
|
+
}
|
752
1194
|
/**
|
753
1195
|
* Request parameters for getDealProducts operation in DealsApi.
|
754
1196
|
* @export
|
@@ -1172,6 +1614,15 @@ export declare class DealsApi extends BaseAPI {
|
|
1172
1614
|
* @memberof DealsApi
|
1173
1615
|
*/
|
1174
1616
|
addDeal(requestParameters?: DealsApiAddDealRequest): Promise<UpsertDealResponse>;
|
1617
|
+
/**
|
1618
|
+
* Adds a user as a follower to the deal.
|
1619
|
+
* @summary Add a follower to a deal
|
1620
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
1621
|
+
|
1622
|
+
* @throws {RequiredError}
|
1623
|
+
* @memberof DealsApi
|
1624
|
+
*/
|
1625
|
+
addDealFollower(requestParameters: DealsApiAddDealFollowerRequest): Promise<AddFollowerResponse>;
|
1175
1626
|
/**
|
1176
1627
|
* Adds a product to a deal, creating a new item called a deal-product.
|
1177
1628
|
* @summary Add a product to a deal
|
@@ -1181,6 +1632,15 @@ export declare class DealsApi extends BaseAPI {
|
|
1181
1632
|
* @memberof DealsApi
|
1182
1633
|
*/
|
1183
1634
|
addDealProduct(requestParameters: DealsApiAddDealProductRequest): Promise<AddDealProductResponse>;
|
1635
|
+
/**
|
1636
|
+
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
1637
|
+
* @summary Convert a deal to a lead (BETA)
|
1638
|
+
* @param {DealsApiConvertDealToLeadRequest} requestParameters Request parameters.
|
1639
|
+
|
1640
|
+
* @throws {RequiredError}
|
1641
|
+
* @memberof DealsApi
|
1642
|
+
*/
|
1643
|
+
convertDealToLead(requestParameters: DealsApiConvertDealToLeadRequest): Promise<AddConvertDealToLeadResponse>;
|
1184
1644
|
/**
|
1185
1645
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
1186
1646
|
* @summary Delete a discount from a deal
|
@@ -1199,6 +1659,15 @@ export declare class DealsApi extends BaseAPI {
|
|
1199
1659
|
* @memberof DealsApi
|
1200
1660
|
*/
|
1201
1661
|
deleteDeal(requestParameters: DealsApiDeleteDealRequest): Promise<DeleteDealResponse>;
|
1662
|
+
/**
|
1663
|
+
* Deletes a user follower from the deal.
|
1664
|
+
* @summary Delete a follower from a deal
|
1665
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
1666
|
+
|
1667
|
+
* @throws {RequiredError}
|
1668
|
+
* @memberof DealsApi
|
1669
|
+
*/
|
1670
|
+
deleteDealFollower(requestParameters: DealsApiDeleteDealFollowerRequest): Promise<DeleteFollowerResponse>;
|
1202
1671
|
/**
|
1203
1672
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
1204
1673
|
* @summary Delete an attached product from a deal
|
@@ -1226,6 +1695,15 @@ export declare class DealsApi extends BaseAPI {
|
|
1226
1695
|
* @memberof DealsApi
|
1227
1696
|
*/
|
1228
1697
|
getAdditionalDiscounts(requestParameters: DealsApiGetAdditionalDiscountsRequest): Promise<GetAdditionalDiscountsResponse>;
|
1698
|
+
/**
|
1699
|
+
* Returns data about all archived deals.
|
1700
|
+
* @summary Get all archived deals
|
1701
|
+
* @param {DealsApiGetArchivedDealsRequest} requestParameters Request parameters.
|
1702
|
+
|
1703
|
+
* @throws {RequiredError}
|
1704
|
+
* @memberof DealsApi
|
1705
|
+
*/
|
1706
|
+
getArchivedDeals(requestParameters?: DealsApiGetArchivedDealsRequest): Promise<GetDealsResponse>;
|
1229
1707
|
/**
|
1230
1708
|
* Returns the details of a specific deal.
|
1231
1709
|
* @summary Get details of a deal
|
@@ -1235,6 +1713,33 @@ export declare class DealsApi extends BaseAPI {
|
|
1235
1713
|
* @memberof DealsApi
|
1236
1714
|
*/
|
1237
1715
|
getDeal(requestParameters: DealsApiGetDealRequest): Promise<UpsertDealResponse>;
|
1716
|
+
/**
|
1717
|
+
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
1718
|
+
* @summary Get Deal conversion status (BETA)
|
1719
|
+
* @param {DealsApiGetDealConversionStatusRequest} requestParameters Request parameters.
|
1720
|
+
|
1721
|
+
* @throws {RequiredError}
|
1722
|
+
* @memberof DealsApi
|
1723
|
+
*/
|
1724
|
+
getDealConversionStatus(requestParameters: DealsApiGetDealConversionStatusRequest): Promise<GetConvertResponse1>;
|
1725
|
+
/**
|
1726
|
+
* Lists users who are following the deal.
|
1727
|
+
* @summary List followers of a deal
|
1728
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
1729
|
+
|
1730
|
+
* @throws {RequiredError}
|
1731
|
+
* @memberof DealsApi
|
1732
|
+
*/
|
1733
|
+
getDealFollowers(requestParameters: DealsApiGetDealFollowersRequest): Promise<GetFollowersResponse>;
|
1734
|
+
/**
|
1735
|
+
* Lists changelogs about users have followed the deal.
|
1736
|
+
* @summary List followers changelog of a deal
|
1737
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
1738
|
+
|
1739
|
+
* @throws {RequiredError}
|
1740
|
+
* @memberof DealsApi
|
1741
|
+
*/
|
1742
|
+
getDealFollowersChangelog(requestParameters: DealsApiGetDealFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
|
1238
1743
|
/**
|
1239
1744
|
* Lists products attached to a deal.
|
1240
1745
|
* @summary List products attached to a deal
|
@@ -1245,7 +1750,7 @@ export declare class DealsApi extends BaseAPI {
|
|
1245
1750
|
*/
|
1246
1751
|
getDealProducts(requestParameters: DealsApiGetDealProductsRequest): Promise<GetDealsProductsResponse>;
|
1247
1752
|
/**
|
1248
|
-
* Returns data about all deals.
|
1753
|
+
* Returns data about all not archived deals.
|
1249
1754
|
* @summary Get all deals
|
1250
1755
|
* @param {DealsApiGetDealsRequest} requestParameters Request parameters.
|
1251
1756
|
|