pipedrive 25.0.0 → 27.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 +47 -47
- package/dist/esm/versions/v1/api/activity-fields-api.js +1 -1
- package/dist/esm/versions/v1/api/activity-types-api.js +5 -5
- package/dist/esm/versions/v1/api/billing-api.js +1 -1
- package/dist/esm/versions/v1/api/call-logs-api.js +5 -5
- package/dist/esm/versions/v1/api/channels-api.js +4 -4
- package/dist/esm/versions/v1/api/currencies-api.js +1 -1
- package/dist/esm/versions/v1/api/deal-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/deals-api.d.ts +410 -88
- package/dist/esm/versions/v1/api/deals-api.js +447 -118
- package/dist/esm/versions/v1/api/files-api.js +8 -8
- package/dist/esm/versions/v1/api/filters-api.js +7 -7
- package/dist/esm/versions/v1/api/goals-api.js +5 -5
- package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/item-search-api.js +10 -10
- package/dist/esm/versions/v1/api/lead-labels-api.js +4 -4
- package/dist/esm/versions/v1/api/lead-sources-api.js +1 -1
- package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/esm/versions/v1/api/leads-api.js +114 -21
- package/dist/esm/versions/v1/api/legacy-teams-api.js +8 -8
- package/dist/esm/versions/v1/api/mailbox-api.js +6 -6
- package/dist/esm/versions/v1/api/meetings-api.js +2 -2
- package/dist/esm/versions/v1/api/note-fields-api.js +1 -1
- package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/esm/versions/v1/api/notes-api.js +25 -15
- package/dist/esm/versions/v1/api/organization-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/organization-relationships-api.js +5 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +68 -68
- package/dist/esm/versions/v1/api/organizations-api.js +88 -88
- package/dist/esm/versions/v1/api/permission-sets-api.js +3 -3
- package/dist/esm/versions/v1/api/person-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/persons-api.d.ts +56 -56
- package/dist/esm/versions/v1/api/persons-api.js +78 -78
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/esm/versions/v1/api/pipelines-api.js +36 -36
- package/dist/esm/versions/v1/api/product-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
- package/dist/esm/versions/v1/api/products-api.js +36 -36
- package/dist/esm/versions/v1/api/project-templates-api.js +4 -4
- package/dist/esm/versions/v1/api/projects-api.js +14 -14
- package/dist/esm/versions/v1/api/recents-api.js +1 -1
- package/dist/esm/versions/v1/api/roles-api.js +12 -12
- package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/stages-api.js +43 -43
- package/dist/esm/versions/v1/api/subscriptions-api.js +9 -9
- package/dist/esm/versions/v1/api/tasks-api.js +5 -5
- package/dist/esm/versions/v1/api/user-connections-api.js +1 -1
- package/dist/esm/versions/v1/api/user-settings-api.js +1 -1
- package/dist/esm/versions/v1/api/users-api.js +10 -10
- package/dist/esm/versions/v1/api/webhooks-api.js +3 -3
- 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/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/v2/api/activities-api.d.ts +15 -7
- package/dist/esm/versions/v2/api/activities-api.js +17 -12
- package/dist/esm/versions/v2/api/beta-api.d.ts +212 -0
- package/dist/esm/versions/v2/api/beta-api.js +290 -4
- package/dist/esm/versions/v2/api/deals-api.d.ts +272 -4
- package/dist/esm/versions/v2/api/deals-api.js +311 -27
- package/dist/esm/versions/v2/api/item-search-api.js +2 -2
- package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/esm/versions/v2/api/leads-api.js +147 -2
- package/dist/esm/versions/v2/api/organizations-api.js +10 -10
- package/dist/esm/versions/v2/api/persons-api.d.ts +8 -8
- package/dist/esm/versions/v2/api/persons-api.js +18 -18
- package/dist/esm/versions/v2/api/pipelines-api.js +5 -5
- package/dist/esm/versions/v2/api/products-api.js +15 -15
- package/dist/esm/versions/v2/api/stages-api.js +5 -5
- package/dist/esm/versions/v2/api/users-api.js +1 -1
- 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-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/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/index.d.ts +7 -0
- package/dist/esm/versions/v2/models/index.js +7 -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 +47 -47
- package/dist/versions/v1/api/activity-fields-api.js +1 -1
- package/dist/versions/v1/api/activity-types-api.js +5 -5
- package/dist/versions/v1/api/billing-api.js +1 -1
- package/dist/versions/v1/api/call-logs-api.js +5 -5
- package/dist/versions/v1/api/channels-api.js +4 -4
- package/dist/versions/v1/api/currencies-api.js +1 -1
- package/dist/versions/v1/api/deal-fields-api.js +6 -6
- package/dist/versions/v1/api/deals-api.d.ts +410 -88
- package/dist/versions/v1/api/deals-api.js +447 -118
- package/dist/versions/v1/api/files-api.js +8 -8
- package/dist/versions/v1/api/filters-api.js +7 -7
- package/dist/versions/v1/api/goals-api.js +5 -5
- package/dist/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/versions/v1/api/item-search-api.js +10 -10
- package/dist/versions/v1/api/lead-labels-api.js +4 -4
- package/dist/versions/v1/api/lead-sources-api.js +1 -1
- package/dist/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/versions/v1/api/leads-api.js +114 -21
- package/dist/versions/v1/api/legacy-teams-api.js +8 -8
- package/dist/versions/v1/api/mailbox-api.js +6 -6
- package/dist/versions/v1/api/meetings-api.js +2 -2
- package/dist/versions/v1/api/note-fields-api.js +1 -1
- package/dist/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/versions/v1/api/notes-api.js +25 -15
- package/dist/versions/v1/api/organization-fields-api.js +6 -6
- package/dist/versions/v1/api/organization-relationships-api.js +5 -5
- package/dist/versions/v1/api/organizations-api.d.ts +68 -68
- package/dist/versions/v1/api/organizations-api.js +88 -88
- package/dist/versions/v1/api/permission-sets-api.js +3 -3
- package/dist/versions/v1/api/person-fields-api.js +6 -6
- package/dist/versions/v1/api/persons-api.d.ts +56 -56
- package/dist/versions/v1/api/persons-api.js +78 -78
- package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/versions/v1/api/pipelines-api.js +36 -36
- package/dist/versions/v1/api/product-fields-api.js +6 -6
- package/dist/versions/v1/api/products-api.d.ts +24 -24
- package/dist/versions/v1/api/products-api.js +36 -36
- package/dist/versions/v1/api/project-templates-api.js +4 -4
- package/dist/versions/v1/api/projects-api.js +14 -14
- package/dist/versions/v1/api/recents-api.js +1 -1
- package/dist/versions/v1/api/roles-api.js +12 -12
- package/dist/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/versions/v1/api/stages-api.js +43 -43
- package/dist/versions/v1/api/subscriptions-api.js +9 -9
- package/dist/versions/v1/api/tasks-api.js +5 -5
- package/dist/versions/v1/api/user-connections-api.js +1 -1
- package/dist/versions/v1/api/user-settings-api.js +1 -1
- package/dist/versions/v1/api/users-api.js +10 -10
- package/dist/versions/v1/api/webhooks-api.js +3 -3
- 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/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/v2/api/activities-api.d.ts +15 -7
- package/dist/versions/v2/api/activities-api.js +17 -12
- package/dist/versions/v2/api/beta-api.d.ts +212 -0
- package/dist/versions/v2/api/beta-api.js +290 -4
- package/dist/versions/v2/api/deals-api.d.ts +272 -4
- package/dist/versions/v2/api/deals-api.js +311 -27
- package/dist/versions/v2/api/item-search-api.js +2 -2
- package/dist/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/versions/v2/api/leads-api.js +146 -1
- package/dist/versions/v2/api/organizations-api.js +10 -10
- package/dist/versions/v2/api/persons-api.d.ts +8 -8
- package/dist/versions/v2/api/persons-api.js +18 -18
- package/dist/versions/v2/api/pipelines-api.js +5 -5
- package/dist/versions/v2/api/products-api.js +15 -15
- package/dist/versions/v2/api/stages-api.js +5 -5
- package/dist/versions/v2/api/users-api.js +1 -1
- 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-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/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/index.d.ts +7 -0
- package/dist/versions/v2/models/index.js +7 -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
@@ -13,8 +13,12 @@ import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosInstance } from 'axios';
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
15
15
|
import { AddAInstallmentResponse } from '../models';
|
16
|
+
import { AddConvertDealToLeadResponse } from '../models';
|
17
|
+
import { AddConvertLeadToDealResponse } from '../models';
|
16
18
|
import { AddInstallmentRequestBody } from '../models';
|
19
|
+
import { ConvertLeadToDealRequest } from '../models';
|
17
20
|
import { DeleteInstallmentResponse } from '../models';
|
21
|
+
import { GetConvertResponse1 } from '../models';
|
18
22
|
import { GetInstallmentsResponse } from '../models';
|
19
23
|
import { UpdateInstallmentRequestBody } from '../models';
|
20
24
|
import { UpdateInstallmentResponse } from '../models';
|
@@ -23,6 +27,23 @@ import { UpdateInstallmentResponse } from '../models';
|
|
23
27
|
* @export
|
24
28
|
*/
|
25
29
|
export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) => {
|
30
|
+
/**
|
31
|
+
* 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.
|
32
|
+
* @summary Convert a deal to a lead (BETA)
|
33
|
+
* @param {number} id The ID of the deal to convert
|
34
|
+
|
35
|
+
* @throws {RequiredError}
|
36
|
+
*/
|
37
|
+
convertDealToLead: (id: number) => Promise<RequestArgs>;
|
38
|
+
/**
|
39
|
+
* Initiates a conversion of a lead to a deal. 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. If the conversion is successful, the lead 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/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
|
40
|
+
* @summary Convert a lead to a deal (BETA)
|
41
|
+
* @param {string} id The ID of the lead to convert
|
42
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
43
|
+
|
44
|
+
* @throws {RequiredError}
|
45
|
+
*/
|
46
|
+
convertLeadToDeal: (id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest) => Promise<RequestArgs>;
|
26
47
|
/**
|
27
48
|
* Removes an installment from a deal. Only available in Advanced and above plans.
|
28
49
|
* @summary Delete an installment from a deal
|
@@ -32,6 +53,15 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
|
|
32
53
|
* @throws {RequiredError}
|
33
54
|
*/
|
34
55
|
deleteInstallment: (id: number, installment_id: number) => Promise<RequestArgs>;
|
56
|
+
/**
|
57
|
+
* 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.
|
58
|
+
* @summary Get Deal conversion status (BETA)
|
59
|
+
* @param {number} id The ID of a deal
|
60
|
+
* @param {string} conversion_id The ID of the conversion
|
61
|
+
|
62
|
+
* @throws {RequiredError}
|
63
|
+
*/
|
64
|
+
getDealConversionStatus: (id: number, conversion_id: string) => Promise<RequestArgs>;
|
35
65
|
/**
|
36
66
|
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
37
67
|
* @summary List installments added to a list of deals
|
@@ -44,6 +74,15 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
|
|
44
74
|
* @throws {RequiredError}
|
45
75
|
*/
|
46
76
|
getInstallments: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
|
77
|
+
/**
|
78
|
+
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
79
|
+
* @summary Get Lead conversion status (BETA)
|
80
|
+
* @param {string} id The ID of a lead
|
81
|
+
* @param {string} conversion_id The ID of the conversion
|
82
|
+
|
83
|
+
* @throws {RequiredError}
|
84
|
+
*/
|
85
|
+
getLeadConversionStatus: (id: string, conversion_id: string) => Promise<RequestArgs>;
|
47
86
|
/**
|
48
87
|
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
49
88
|
* @summary Add an installment to a deal
|
@@ -69,6 +108,23 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
|
|
69
108
|
* @export
|
70
109
|
*/
|
71
110
|
export declare const BetaApiFp: (configuration?: Configuration) => {
|
111
|
+
/**
|
112
|
+
* 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.
|
113
|
+
* @summary Convert a deal to a lead (BETA)
|
114
|
+
* @param {number} id The ID of the deal to convert
|
115
|
+
|
116
|
+
* @throws {RequiredError}
|
117
|
+
*/
|
118
|
+
convertDealToLead(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertDealToLeadResponse>>;
|
119
|
+
/**
|
120
|
+
* Initiates a conversion of a lead to a deal. 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. If the conversion is successful, the lead 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/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
|
121
|
+
* @summary Convert a lead to a deal (BETA)
|
122
|
+
* @param {string} id The ID of the lead to convert
|
123
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
124
|
+
|
125
|
+
* @throws {RequiredError}
|
126
|
+
*/
|
127
|
+
convertLeadToDeal(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertLeadToDealResponse>>;
|
72
128
|
/**
|
73
129
|
* Removes an installment from a deal. Only available in Advanced and above plans.
|
74
130
|
* @summary Delete an installment from a deal
|
@@ -78,6 +134,15 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
|
|
78
134
|
* @throws {RequiredError}
|
79
135
|
*/
|
80
136
|
deleteInstallment(id: number, installment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteInstallmentResponse>>;
|
137
|
+
/**
|
138
|
+
* 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.
|
139
|
+
* @summary Get Deal conversion status (BETA)
|
140
|
+
* @param {number} id The ID of a deal
|
141
|
+
* @param {string} conversion_id The ID of the conversion
|
142
|
+
|
143
|
+
* @throws {RequiredError}
|
144
|
+
*/
|
145
|
+
getDealConversionStatus(id: number, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
|
81
146
|
/**
|
82
147
|
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
83
148
|
* @summary List installments added to a list of deals
|
@@ -90,6 +155,15 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
|
|
90
155
|
* @throws {RequiredError}
|
91
156
|
*/
|
92
157
|
getInstallments(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetInstallmentsResponse>>;
|
158
|
+
/**
|
159
|
+
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
160
|
+
* @summary Get Lead conversion status (BETA)
|
161
|
+
* @param {string} id The ID of a lead
|
162
|
+
* @param {string} conversion_id The ID of the conversion
|
163
|
+
|
164
|
+
* @throws {RequiredError}
|
165
|
+
*/
|
166
|
+
getLeadConversionStatus(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
|
93
167
|
/**
|
94
168
|
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
95
169
|
* @summary Add an installment to a deal
|
@@ -115,6 +189,22 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
|
|
115
189
|
* @export
|
116
190
|
*/
|
117
191
|
export declare const BetaApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
192
|
+
/**
|
193
|
+
* 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.
|
194
|
+
* @summary Convert a deal to a lead (BETA)
|
195
|
+
* @param {BetaApiConvertDealToLeadRequest} requestParameters Request parameters.
|
196
|
+
|
197
|
+
* @throws {RequiredError}
|
198
|
+
*/
|
199
|
+
convertDealToLead(requestParameters: BetaApiConvertDealToLeadRequest): Promise<AddConvertDealToLeadResponse>;
|
200
|
+
/**
|
201
|
+
* Initiates a conversion of a lead to a deal. 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. If the conversion is successful, the lead 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/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
|
202
|
+
* @summary Convert a lead to a deal (BETA)
|
203
|
+
* @param {BetaApiConvertLeadToDealRequest} requestParameters Request parameters.
|
204
|
+
|
205
|
+
* @throws {RequiredError}
|
206
|
+
*/
|
207
|
+
convertLeadToDeal(requestParameters: BetaApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
|
118
208
|
/**
|
119
209
|
* Removes an installment from a deal. Only available in Advanced and above plans.
|
120
210
|
* @summary Delete an installment from a deal
|
@@ -123,6 +213,14 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
|
|
123
213
|
* @throws {RequiredError}
|
124
214
|
*/
|
125
215
|
deleteInstallment(requestParameters: BetaApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
|
216
|
+
/**
|
217
|
+
* 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.
|
218
|
+
* @summary Get Deal conversion status (BETA)
|
219
|
+
* @param {BetaApiGetDealConversionStatusRequest} requestParameters Request parameters.
|
220
|
+
|
221
|
+
* @throws {RequiredError}
|
222
|
+
*/
|
223
|
+
getDealConversionStatus(requestParameters: BetaApiGetDealConversionStatusRequest): Promise<GetConvertResponse1>;
|
126
224
|
/**
|
127
225
|
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
128
226
|
* @summary List installments added to a list of deals
|
@@ -131,6 +229,14 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
|
|
131
229
|
* @throws {RequiredError}
|
132
230
|
*/
|
133
231
|
getInstallments(requestParameters: BetaApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
|
232
|
+
/**
|
233
|
+
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
234
|
+
* @summary Get Lead conversion status (BETA)
|
235
|
+
* @param {BetaApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
236
|
+
|
237
|
+
* @throws {RequiredError}
|
238
|
+
*/
|
239
|
+
getLeadConversionStatus(requestParameters: BetaApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
|
134
240
|
/**
|
135
241
|
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
136
242
|
* @summary Add an installment to a deal
|
@@ -148,6 +254,38 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
|
|
148
254
|
*/
|
149
255
|
updateInstallment(requestParameters: BetaApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
|
150
256
|
};
|
257
|
+
/**
|
258
|
+
* Request parameters for convertDealToLead operation in BetaApi.
|
259
|
+
* @export
|
260
|
+
* @interface BetaApiConvertDealToLeadRequest
|
261
|
+
*/
|
262
|
+
export interface BetaApiConvertDealToLeadRequest {
|
263
|
+
/**
|
264
|
+
* The ID of the deal to convert
|
265
|
+
* @type {number}
|
266
|
+
* @memberof BetaApiConvertDealToLead
|
267
|
+
*/
|
268
|
+
readonly id: number;
|
269
|
+
}
|
270
|
+
/**
|
271
|
+
* Request parameters for convertLeadToDeal operation in BetaApi.
|
272
|
+
* @export
|
273
|
+
* @interface BetaApiConvertLeadToDealRequest
|
274
|
+
*/
|
275
|
+
export interface BetaApiConvertLeadToDealRequest {
|
276
|
+
/**
|
277
|
+
* The ID of the lead to convert
|
278
|
+
* @type {string}
|
279
|
+
* @memberof BetaApiConvertLeadToDeal
|
280
|
+
*/
|
281
|
+
readonly id: string;
|
282
|
+
/**
|
283
|
+
*
|
284
|
+
* @type {ConvertLeadToDealRequest}
|
285
|
+
* @memberof BetaApiConvertLeadToDeal
|
286
|
+
*/
|
287
|
+
readonly ConvertLeadToDealRequest?: ConvertLeadToDealRequest;
|
288
|
+
}
|
151
289
|
/**
|
152
290
|
* Request parameters for deleteInstallment operation in BetaApi.
|
153
291
|
* @export
|
@@ -167,6 +305,25 @@ export interface BetaApiDeleteInstallmentRequest {
|
|
167
305
|
*/
|
168
306
|
readonly installment_id: number;
|
169
307
|
}
|
308
|
+
/**
|
309
|
+
* Request parameters for getDealConversionStatus operation in BetaApi.
|
310
|
+
* @export
|
311
|
+
* @interface BetaApiGetDealConversionStatusRequest
|
312
|
+
*/
|
313
|
+
export interface BetaApiGetDealConversionStatusRequest {
|
314
|
+
/**
|
315
|
+
* The ID of a deal
|
316
|
+
* @type {number}
|
317
|
+
* @memberof BetaApiGetDealConversionStatus
|
318
|
+
*/
|
319
|
+
readonly id: number;
|
320
|
+
/**
|
321
|
+
* The ID of the conversion
|
322
|
+
* @type {string}
|
323
|
+
* @memberof BetaApiGetDealConversionStatus
|
324
|
+
*/
|
325
|
+
readonly conversion_id: string;
|
326
|
+
}
|
170
327
|
/**
|
171
328
|
* Request parameters for getInstallments operation in BetaApi.
|
172
329
|
* @export
|
@@ -204,6 +361,25 @@ export interface BetaApiGetInstallmentsRequest {
|
|
204
361
|
*/
|
205
362
|
readonly sort_direction?: 'asc' | 'desc';
|
206
363
|
}
|
364
|
+
/**
|
365
|
+
* Request parameters for getLeadConversionStatus operation in BetaApi.
|
366
|
+
* @export
|
367
|
+
* @interface BetaApiGetLeadConversionStatusRequest
|
368
|
+
*/
|
369
|
+
export interface BetaApiGetLeadConversionStatusRequest {
|
370
|
+
/**
|
371
|
+
* The ID of a lead
|
372
|
+
* @type {string}
|
373
|
+
* @memberof BetaApiGetLeadConversionStatus
|
374
|
+
*/
|
375
|
+
readonly id: string;
|
376
|
+
/**
|
377
|
+
* The ID of the conversion
|
378
|
+
* @type {string}
|
379
|
+
* @memberof BetaApiGetLeadConversionStatus
|
380
|
+
*/
|
381
|
+
readonly conversion_id: string;
|
382
|
+
}
|
207
383
|
/**
|
208
384
|
* Request parameters for postInstallment operation in BetaApi.
|
209
385
|
* @export
|
@@ -255,6 +431,24 @@ export interface BetaApiUpdateInstallmentRequest {
|
|
255
431
|
* @extends {BaseAPI}
|
256
432
|
*/
|
257
433
|
export declare class BetaApi extends BaseAPI {
|
434
|
+
/**
|
435
|
+
* 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.
|
436
|
+
* @summary Convert a deal to a lead (BETA)
|
437
|
+
* @param {BetaApiConvertDealToLeadRequest} requestParameters Request parameters.
|
438
|
+
|
439
|
+
* @throws {RequiredError}
|
440
|
+
* @memberof BetaApi
|
441
|
+
*/
|
442
|
+
convertDealToLead(requestParameters: BetaApiConvertDealToLeadRequest): Promise<AddConvertDealToLeadResponse>;
|
443
|
+
/**
|
444
|
+
* Initiates a conversion of a lead to a deal. 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. If the conversion is successful, the lead 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/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
|
445
|
+
* @summary Convert a lead to a deal (BETA)
|
446
|
+
* @param {BetaApiConvertLeadToDealRequest} requestParameters Request parameters.
|
447
|
+
|
448
|
+
* @throws {RequiredError}
|
449
|
+
* @memberof BetaApi
|
450
|
+
*/
|
451
|
+
convertLeadToDeal(requestParameters: BetaApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
|
258
452
|
/**
|
259
453
|
* Removes an installment from a deal. Only available in Advanced and above plans.
|
260
454
|
* @summary Delete an installment from a deal
|
@@ -264,6 +458,15 @@ export declare class BetaApi extends BaseAPI {
|
|
264
458
|
* @memberof BetaApi
|
265
459
|
*/
|
266
460
|
deleteInstallment(requestParameters: BetaApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
|
461
|
+
/**
|
462
|
+
* 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.
|
463
|
+
* @summary Get Deal conversion status (BETA)
|
464
|
+
* @param {BetaApiGetDealConversionStatusRequest} requestParameters Request parameters.
|
465
|
+
|
466
|
+
* @throws {RequiredError}
|
467
|
+
* @memberof BetaApi
|
468
|
+
*/
|
469
|
+
getDealConversionStatus(requestParameters: BetaApiGetDealConversionStatusRequest): Promise<GetConvertResponse1>;
|
267
470
|
/**
|
268
471
|
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
269
472
|
* @summary List installments added to a list of deals
|
@@ -273,6 +476,15 @@ export declare class BetaApi extends BaseAPI {
|
|
273
476
|
* @memberof BetaApi
|
274
477
|
*/
|
275
478
|
getInstallments(requestParameters: BetaApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
|
479
|
+
/**
|
480
|
+
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
481
|
+
* @summary Get Lead conversion status (BETA)
|
482
|
+
* @param {BetaApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
483
|
+
|
484
|
+
* @throws {RequiredError}
|
485
|
+
* @memberof BetaApi
|
486
|
+
*/
|
487
|
+
getLeadConversionStatus(requestParameters: BetaApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
|
276
488
|
/**
|
277
489
|
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
278
490
|
* @summary Add an installment to a deal
|