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
@@ -12,12 +12,33 @@
|
|
12
12
|
import type { Configuration } from '../configuration';
|
13
13
|
import type { AxiosInstance } from 'axios';
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
15
|
+
import { AddConvertLeadToDealResponse } from '../models';
|
16
|
+
import { ConvertLeadToDealRequest } from '../models';
|
17
|
+
import { GetConvertResponse1 } from '../models';
|
15
18
|
import { GetLeadSearchResponse } from '../models';
|
16
19
|
/**
|
17
20
|
* LeadsApi - axios parameter creator
|
18
21
|
* @export
|
19
22
|
*/
|
20
23
|
export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration) => {
|
24
|
+
/**
|
25
|
+
* 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.
|
26
|
+
* @summary Convert a lead to a deal (BETA)
|
27
|
+
* @param {string} id The ID of the lead to convert
|
28
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
29
|
+
|
30
|
+
* @throws {RequiredError}
|
31
|
+
*/
|
32
|
+
convertLeadToDeal: (id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest) => Promise<RequestArgs>;
|
33
|
+
/**
|
34
|
+
* 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.
|
35
|
+
* @summary Get Lead conversion status (BETA)
|
36
|
+
* @param {string} id The ID of a lead
|
37
|
+
* @param {string} conversion_id The ID of the conversion
|
38
|
+
|
39
|
+
* @throws {RequiredError}
|
40
|
+
*/
|
41
|
+
getLeadConversionStatus: (id: string, conversion_id: string) => Promise<RequestArgs>;
|
21
42
|
/**
|
22
43
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
23
44
|
* @summary Search leads
|
@@ -39,6 +60,24 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
39
60
|
* @export
|
40
61
|
*/
|
41
62
|
export declare const LeadsApiFp: (configuration?: Configuration) => {
|
63
|
+
/**
|
64
|
+
* 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.
|
65
|
+
* @summary Convert a lead to a deal (BETA)
|
66
|
+
* @param {string} id The ID of the lead to convert
|
67
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
68
|
+
|
69
|
+
* @throws {RequiredError}
|
70
|
+
*/
|
71
|
+
convertLeadToDeal(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertLeadToDealResponse>>;
|
72
|
+
/**
|
73
|
+
* 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.
|
74
|
+
* @summary Get Lead conversion status (BETA)
|
75
|
+
* @param {string} id The ID of a lead
|
76
|
+
* @param {string} conversion_id The ID of the conversion
|
77
|
+
|
78
|
+
* @throws {RequiredError}
|
79
|
+
*/
|
80
|
+
getLeadConversionStatus(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
|
42
81
|
/**
|
43
82
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
44
83
|
* @summary Search leads
|
@@ -60,6 +99,22 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
60
99
|
* @export
|
61
100
|
*/
|
62
101
|
export declare const LeadsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
102
|
+
/**
|
103
|
+
* 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.
|
104
|
+
* @summary Convert a lead to a deal (BETA)
|
105
|
+
* @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
|
106
|
+
|
107
|
+
* @throws {RequiredError}
|
108
|
+
*/
|
109
|
+
convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
|
110
|
+
/**
|
111
|
+
* 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.
|
112
|
+
* @summary Get Lead conversion status (BETA)
|
113
|
+
* @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
114
|
+
|
115
|
+
* @throws {RequiredError}
|
116
|
+
*/
|
117
|
+
getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
|
63
118
|
/**
|
64
119
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
65
120
|
* @summary Search leads
|
@@ -69,6 +124,44 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
69
124
|
*/
|
70
125
|
searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
|
71
126
|
};
|
127
|
+
/**
|
128
|
+
* Request parameters for convertLeadToDeal operation in LeadsApi.
|
129
|
+
* @export
|
130
|
+
* @interface LeadsApiConvertLeadToDealRequest
|
131
|
+
*/
|
132
|
+
export interface LeadsApiConvertLeadToDealRequest {
|
133
|
+
/**
|
134
|
+
* The ID of the lead to convert
|
135
|
+
* @type {string}
|
136
|
+
* @memberof LeadsApiConvertLeadToDeal
|
137
|
+
*/
|
138
|
+
readonly id: string;
|
139
|
+
/**
|
140
|
+
*
|
141
|
+
* @type {ConvertLeadToDealRequest}
|
142
|
+
* @memberof LeadsApiConvertLeadToDeal
|
143
|
+
*/
|
144
|
+
readonly ConvertLeadToDealRequest?: ConvertLeadToDealRequest;
|
145
|
+
}
|
146
|
+
/**
|
147
|
+
* Request parameters for getLeadConversionStatus operation in LeadsApi.
|
148
|
+
* @export
|
149
|
+
* @interface LeadsApiGetLeadConversionStatusRequest
|
150
|
+
*/
|
151
|
+
export interface LeadsApiGetLeadConversionStatusRequest {
|
152
|
+
/**
|
153
|
+
* The ID of a lead
|
154
|
+
* @type {string}
|
155
|
+
* @memberof LeadsApiGetLeadConversionStatus
|
156
|
+
*/
|
157
|
+
readonly id: string;
|
158
|
+
/**
|
159
|
+
* The ID of the conversion
|
160
|
+
* @type {string}
|
161
|
+
* @memberof LeadsApiGetLeadConversionStatus
|
162
|
+
*/
|
163
|
+
readonly conversion_id: string;
|
164
|
+
}
|
72
165
|
/**
|
73
166
|
* Request parameters for searchLeads operation in LeadsApi.
|
74
167
|
* @export
|
@@ -131,6 +224,24 @@ export interface LeadsApiSearchLeadsRequest {
|
|
131
224
|
* @extends {BaseAPI}
|
132
225
|
*/
|
133
226
|
export declare class LeadsApi extends BaseAPI {
|
227
|
+
/**
|
228
|
+
* 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.
|
229
|
+
* @summary Convert a lead to a deal (BETA)
|
230
|
+
* @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
|
231
|
+
|
232
|
+
* @throws {RequiredError}
|
233
|
+
* @memberof LeadsApi
|
234
|
+
*/
|
235
|
+
convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
|
236
|
+
/**
|
237
|
+
* 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.
|
238
|
+
* @summary Get Lead conversion status (BETA)
|
239
|
+
* @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
240
|
+
|
241
|
+
* @throws {RequiredError}
|
242
|
+
* @memberof LeadsApi
|
243
|
+
*/
|
244
|
+
getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
|
134
245
|
/**
|
135
246
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
136
247
|
* @summary Search leads
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
23
23
|
import globalAxios from 'axios';
|
24
24
|
// Some imports not used depending on template conditions
|
25
25
|
// @ts-ignore
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
27
27
|
// @ts-ignore
|
28
28
|
import { BASE_PATH, BaseAPI } from '../base';
|
29
29
|
/**
|
@@ -32,6 +32,81 @@ import { BASE_PATH, BaseAPI } from '../base';
|
|
32
32
|
*/
|
33
33
|
export const LeadsApiAxiosParamCreator = function (configuration) {
|
34
34
|
return {
|
35
|
+
/**
|
36
|
+
* 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.
|
37
|
+
* @summary Convert a lead to a deal (BETA)
|
38
|
+
* @param {string} id The ID of the lead to convert
|
39
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
40
|
+
|
41
|
+
* @throws {RequiredError}
|
42
|
+
*/
|
43
|
+
convertLeadToDeal: (id, ConvertLeadToDealRequest) => __awaiter(this, void 0, void 0, function* () {
|
44
|
+
// verify required parameter 'id' is not null or undefined
|
45
|
+
assertParamExists('convertLeadToDeal', 'id', id);
|
46
|
+
const localVarPath = `/leads/{id}/convert/deal`
|
47
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
50
|
+
let baseOptions;
|
51
|
+
if (configuration) {
|
52
|
+
baseOptions = configuration.baseOptions;
|
53
|
+
}
|
54
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
55
|
+
const localVarHeaderParameter = {};
|
56
|
+
const localVarQueryParameter = {};
|
57
|
+
// authentication api_key required
|
58
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
59
|
+
// authentication oauth2 required
|
60
|
+
// oauth required
|
61
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "leads:full"], configuration);
|
62
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
63
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
64
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
65
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
66
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ConvertLeadToDealRequest, localVarRequestOptions, configuration);
|
67
|
+
return {
|
68
|
+
url: toPathString(localVarUrlObj),
|
69
|
+
options: localVarRequestOptions,
|
70
|
+
};
|
71
|
+
}),
|
72
|
+
/**
|
73
|
+
* 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.
|
74
|
+
* @summary Get Lead conversion status (BETA)
|
75
|
+
* @param {string} id The ID of a lead
|
76
|
+
* @param {string} conversion_id The ID of the conversion
|
77
|
+
|
78
|
+
* @throws {RequiredError}
|
79
|
+
*/
|
80
|
+
getLeadConversionStatus: (id, conversion_id) => __awaiter(this, void 0, void 0, function* () {
|
81
|
+
// verify required parameter 'id' is not null or undefined
|
82
|
+
assertParamExists('getLeadConversionStatus', 'id', id);
|
83
|
+
// verify required parameter 'conversion_id' is not null or undefined
|
84
|
+
assertParamExists('getLeadConversionStatus', 'conversion_id', conversion_id);
|
85
|
+
const localVarPath = `/leads/{id}/convert/status/{conversion_id}`
|
86
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
87
|
+
.replace(`{${"conversion_id"}}`, encodeURIComponent(String(conversion_id)));
|
88
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
89
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
90
|
+
let baseOptions;
|
91
|
+
if (configuration) {
|
92
|
+
baseOptions = configuration.baseOptions;
|
93
|
+
}
|
94
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
95
|
+
const localVarHeaderParameter = {};
|
96
|
+
const localVarQueryParameter = {};
|
97
|
+
// authentication api_key required
|
98
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
99
|
+
// authentication oauth2 required
|
100
|
+
// oauth required
|
101
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read"], configuration);
|
102
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
105
|
+
return {
|
106
|
+
url: toPathString(localVarUrlObj),
|
107
|
+
options: localVarRequestOptions,
|
108
|
+
};
|
109
|
+
}),
|
35
110
|
/**
|
36
111
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
37
112
|
* @summary Search leads
|
@@ -60,7 +135,7 @@ export const LeadsApiAxiosParamCreator = function (configuration) {
|
|
60
135
|
const localVarHeaderParameter = {};
|
61
136
|
const localVarQueryParameter = {};
|
62
137
|
// authentication api_key required
|
63
|
-
yield setApiKeyToObject(
|
138
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
64
139
|
// authentication oauth2 required
|
65
140
|
// oauth required
|
66
141
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full", "search:read"], configuration);
|
@@ -105,6 +180,34 @@ export const LeadsApiAxiosParamCreator = function (configuration) {
|
|
105
180
|
export const LeadsApiFp = function (configuration) {
|
106
181
|
const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration);
|
107
182
|
return {
|
183
|
+
/**
|
184
|
+
* 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.
|
185
|
+
* @summary Convert a lead to a deal (BETA)
|
186
|
+
* @param {string} id The ID of the lead to convert
|
187
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
188
|
+
|
189
|
+
* @throws {RequiredError}
|
190
|
+
*/
|
191
|
+
convertLeadToDeal(id, ConvertLeadToDealRequest) {
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.convertLeadToDeal(id, ConvertLeadToDealRequest);
|
194
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
195
|
+
});
|
196
|
+
},
|
197
|
+
/**
|
198
|
+
* 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.
|
199
|
+
* @summary Get Lead conversion status (BETA)
|
200
|
+
* @param {string} id The ID of a lead
|
201
|
+
* @param {string} conversion_id The ID of the conversion
|
202
|
+
|
203
|
+
* @throws {RequiredError}
|
204
|
+
*/
|
205
|
+
getLeadConversionStatus(id, conversion_id) {
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
207
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeadConversionStatus(id, conversion_id);
|
208
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
209
|
+
});
|
210
|
+
},
|
108
211
|
/**
|
109
212
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
110
213
|
* @summary Search leads
|
@@ -134,6 +237,26 @@ export const LeadsApiFp = function (configuration) {
|
|
134
237
|
export const LeadsApiFactory = function (configuration, basePath, axios) {
|
135
238
|
const localVarFp = LeadsApiFp(configuration);
|
136
239
|
return {
|
240
|
+
/**
|
241
|
+
* 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.
|
242
|
+
* @summary Convert a lead to a deal (BETA)
|
243
|
+
* @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
|
244
|
+
|
245
|
+
* @throws {RequiredError}
|
246
|
+
*/
|
247
|
+
convertLeadToDeal(requestParameters) {
|
248
|
+
return localVarFp.convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
|
249
|
+
},
|
250
|
+
/**
|
251
|
+
* 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.
|
252
|
+
* @summary Get Lead conversion status (BETA)
|
253
|
+
* @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
254
|
+
|
255
|
+
* @throws {RequiredError}
|
256
|
+
*/
|
257
|
+
getLeadConversionStatus(requestParameters) {
|
258
|
+
return localVarFp.getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
259
|
+
},
|
137
260
|
/**
|
138
261
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
139
262
|
* @summary Search leads
|
@@ -153,6 +276,28 @@ export const LeadsApiFactory = function (configuration, basePath, axios) {
|
|
153
276
|
* @extends {BaseAPI}
|
154
277
|
*/
|
155
278
|
export class LeadsApi extends BaseAPI {
|
279
|
+
/**
|
280
|
+
* 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.
|
281
|
+
* @summary Convert a lead to a deal (BETA)
|
282
|
+
* @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
|
283
|
+
|
284
|
+
* @throws {RequiredError}
|
285
|
+
* @memberof LeadsApi
|
286
|
+
*/
|
287
|
+
convertLeadToDeal(requestParameters) {
|
288
|
+
return LeadsApiFp(this.configuration).convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
|
289
|
+
}
|
290
|
+
/**
|
291
|
+
* 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.
|
292
|
+
* @summary Get Lead conversion status (BETA)
|
293
|
+
* @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
294
|
+
|
295
|
+
* @throws {RequiredError}
|
296
|
+
* @memberof LeadsApi
|
297
|
+
*/
|
298
|
+
getLeadConversionStatus(requestParameters) {
|
299
|
+
return LeadsApiFp(this.configuration).getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
300
|
+
}
|
156
301
|
/**
|
157
302
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
158
303
|
* @summary Search leads
|
@@ -51,7 +51,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
51
51
|
const localVarHeaderParameter = {};
|
52
52
|
const localVarQueryParameter = {};
|
53
53
|
// authentication api_key required
|
54
|
-
yield setApiKeyToObject(
|
54
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
55
55
|
// authentication oauth2 required
|
56
56
|
// oauth required
|
57
57
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -88,7 +88,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
88
88
|
const localVarHeaderParameter = {};
|
89
89
|
const localVarQueryParameter = {};
|
90
90
|
// authentication api_key required
|
91
|
-
yield setApiKeyToObject(
|
91
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
92
92
|
// authentication oauth2 required
|
93
93
|
// oauth required
|
94
94
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -124,7 +124,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
124
124
|
const localVarHeaderParameter = {};
|
125
125
|
const localVarQueryParameter = {};
|
126
126
|
// authentication api_key required
|
127
|
-
yield setApiKeyToObject(
|
127
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
128
128
|
// authentication oauth2 required
|
129
129
|
// oauth required
|
130
130
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -162,7 +162,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
162
162
|
const localVarHeaderParameter = {};
|
163
163
|
const localVarQueryParameter = {};
|
164
164
|
// authentication api_key required
|
165
|
-
yield setApiKeyToObject(
|
165
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
166
166
|
// authentication oauth2 required
|
167
167
|
// oauth required
|
168
168
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -198,7 +198,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
198
198
|
const localVarHeaderParameter = {};
|
199
199
|
const localVarQueryParameter = {};
|
200
200
|
// authentication api_key required
|
201
|
-
yield setApiKeyToObject(
|
201
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
202
202
|
// authentication oauth2 required
|
203
203
|
// oauth required
|
204
204
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
@@ -240,7 +240,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
240
240
|
const localVarHeaderParameter = {};
|
241
241
|
const localVarQueryParameter = {};
|
242
242
|
// authentication api_key required
|
243
|
-
yield setApiKeyToObject(
|
243
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
244
244
|
// authentication oauth2 required
|
245
245
|
// oauth required
|
246
246
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
@@ -282,7 +282,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
282
282
|
const localVarHeaderParameter = {};
|
283
283
|
const localVarQueryParameter = {};
|
284
284
|
// authentication api_key required
|
285
|
-
yield setApiKeyToObject(
|
285
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
286
286
|
// authentication oauth2 required
|
287
287
|
// oauth required
|
288
288
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
@@ -329,7 +329,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
329
329
|
const localVarHeaderParameter = {};
|
330
330
|
const localVarQueryParameter = {};
|
331
331
|
// authentication api_key required
|
332
|
-
yield setApiKeyToObject(
|
332
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
333
333
|
// authentication oauth2 required
|
334
334
|
// oauth required
|
335
335
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
@@ -399,7 +399,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
399
399
|
const localVarHeaderParameter = {};
|
400
400
|
const localVarQueryParameter = {};
|
401
401
|
// authentication api_key required
|
402
|
-
yield setApiKeyToObject(
|
402
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
403
403
|
// authentication oauth2 required
|
404
404
|
// oauth required
|
405
405
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration);
|
@@ -449,7 +449,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
449
449
|
const localVarHeaderParameter = {};
|
450
450
|
const localVarQueryParameter = {};
|
451
451
|
// authentication api_key required
|
452
|
-
yield setApiKeyToObject(
|
452
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
453
453
|
// authentication oauth2 required
|
454
454
|
// oauth required
|
455
455
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -29,7 +29,7 @@ import { UpsertPersonResponse } from '../models';
|
|
29
29
|
*/
|
30
30
|
export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration) => {
|
31
31
|
/**
|
32
|
-
* Adds a new person.
|
32
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
33
33
|
* @summary Add a new person
|
34
34
|
* @param {AddPersonRequest} [AddPersonRequest]
|
35
35
|
|
@@ -126,7 +126,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
126
126
|
*/
|
127
127
|
searchPersons: (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string) => Promise<RequestArgs>;
|
128
128
|
/**
|
129
|
-
* Updates the properties of a person.
|
129
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
130
130
|
* @summary Update a person
|
131
131
|
* @param {number} id The ID of the person
|
132
132
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
@@ -141,7 +141,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
141
141
|
*/
|
142
142
|
export declare const PersonsApiFp: (configuration?: Configuration) => {
|
143
143
|
/**
|
144
|
-
* Adds a new person.
|
144
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
145
145
|
* @summary Add a new person
|
146
146
|
* @param {AddPersonRequest} [AddPersonRequest]
|
147
147
|
|
@@ -238,7 +238,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
238
238
|
*/
|
239
239
|
searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonSearchResponse>>;
|
240
240
|
/**
|
241
|
-
* Updates the properties of a person.
|
241
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
242
242
|
* @summary Update a person
|
243
243
|
* @param {number} id The ID of the person
|
244
244
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
@@ -253,7 +253,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
253
253
|
*/
|
254
254
|
export declare const PersonsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
255
255
|
/**
|
256
|
-
* Adds a new person.
|
256
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
257
257
|
* @summary Add a new person
|
258
258
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
259
259
|
|
@@ -325,7 +325,7 @@ export declare const PersonsApiFactory: (configuration?: Configuration, basePath
|
|
325
325
|
*/
|
326
326
|
searchPersons(requestParameters: PersonsApiSearchPersonsRequest): Promise<GetPersonSearchResponse>;
|
327
327
|
/**
|
328
|
-
* Updates the properties of a person.
|
328
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
329
329
|
* @summary Update a person
|
330
330
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
331
331
|
|
@@ -627,7 +627,7 @@ export interface PersonsApiUpdatePersonRequest {
|
|
627
627
|
*/
|
628
628
|
export declare class PersonsApi extends BaseAPI {
|
629
629
|
/**
|
630
|
-
* Adds a new person.
|
630
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
631
631
|
* @summary Add a new person
|
632
632
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
633
633
|
|
@@ -708,7 +708,7 @@ export declare class PersonsApi extends BaseAPI {
|
|
708
708
|
*/
|
709
709
|
searchPersons(requestParameters: PersonsApiSearchPersonsRequest): Promise<GetPersonSearchResponse>;
|
710
710
|
/**
|
711
|
-
* Updates the properties of a person.
|
711
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
712
712
|
* @summary Update a person
|
713
713
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
714
714
|
|