pipedrive 36.3.1 → 36.4.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/deals-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/deals-api.js +7 -7
- package/dist/esm/versions/v1/api/person-fields-api.d.ts +4 -4
- package/dist/esm/versions/v1/api/person-fields-api.js +4 -4
- package/dist/esm/versions/v1/api/persons-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/persons-api.js +7 -7
- package/dist/esm/versions/v1/models/base-organization-item-all-of.d.ts +1 -1
- package/dist/esm/versions/v1/models/organization-count-and-address-info-all-of1.d.ts +11 -11
- package/dist/esm/versions/v1/models/organization-relationship-with-calculated-fields-all-of.d.ts +1 -1
- package/dist/esm/versions/v1/models/recents-data-inner-any-of9-data.d.ts +4 -4
- package/dist/esm/versions/v2/api/persons-api.d.ts +30 -30
- package/dist/esm/versions/v2/api/persons-api.js +18 -18
- package/dist/esm/versions/v2/models/add-person-request.d.ts +22 -0
- package/dist/esm/versions/v2/models/add-person-request.js +10 -0
- package/dist/esm/versions/v2/models/person.d.ts +22 -0
- package/dist/esm/versions/v2/models/person.js +10 -1
- package/dist/esm/versions/v2/models/update-person-request.d.ts +22 -0
- package/dist/esm/versions/v2/models/update-person-request.js +10 -0
- package/dist/versions/v1/api/deals-api.d.ts +8 -8
- package/dist/versions/v1/api/deals-api.js +7 -7
- package/dist/versions/v1/api/person-fields-api.d.ts +4 -4
- package/dist/versions/v1/api/person-fields-api.js +4 -4
- package/dist/versions/v1/api/persons-api.d.ts +8 -8
- package/dist/versions/v1/api/persons-api.js +7 -7
- package/dist/versions/v1/models/base-organization-item-all-of.d.ts +1 -1
- package/dist/versions/v1/models/organization-count-and-address-info-all-of1.d.ts +11 -11
- package/dist/versions/v1/models/organization-relationship-with-calculated-fields-all-of.d.ts +1 -1
- package/dist/versions/v1/models/recents-data-inner-any-of9-data.d.ts +4 -4
- package/dist/versions/v2/api/persons-api.d.ts +30 -30
- package/dist/versions/v2/api/persons-api.js +18 -18
- package/dist/versions/v2/models/add-person-request.d.ts +22 -0
- package/dist/versions/v2/models/add-person-request.js +11 -1
- package/dist/versions/v2/models/person.d.ts +22 -0
- package/dist/versions/v2/models/person.js +11 -0
- package/dist/versions/v2/models/update-person-request.d.ts +22 -0
- package/dist/versions/v2/models/update-person-request.js +11 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ import { UpsertPersonResponse } from '../models';
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
32
32
|
/**
|
|
33
|
-
* Adds a new person
|
|
33
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
34
34
|
* @summary Add a new person
|
|
35
35
|
* @param {AddPersonRequest} [AddPersonRequest]
|
|
36
36
|
|
|
@@ -64,17 +64,17 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
64
64
|
*/
|
|
65
65
|
deletePersonFollower: (id: number, follower_id: number) => Promise<RequestArgs>;
|
|
66
66
|
/**
|
|
67
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
67
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
68
68
|
* @summary Get details of a person
|
|
69
69
|
* @param {number} id The ID of the person
|
|
70
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
70
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
71
71
|
* @param {Set<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.
|
|
72
72
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
73
73
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
74
74
|
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
|
-
getPerson: (id: number, include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean) => Promise<RequestArgs>;
|
|
77
|
+
getPerson: (id: number, include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean) => Promise<RequestArgs>;
|
|
78
78
|
/**
|
|
79
79
|
* Lists users who are following the person.
|
|
80
80
|
* @summary List followers of a person
|
|
@@ -115,7 +115,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
115
115
|
* @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
116
116
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
117
117
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
118
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
118
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
119
119
|
* @param {Set<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.
|
|
120
120
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
121
121
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -124,7 +124,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
124
124
|
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
getPersons: (filter_id?: number, ids?: Set<number>, owner_id?: number, org_id?: number, deal_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
127
|
+
getPersons: (filter_id?: number, ids?: Set<number>, owner_id?: number, org_id?: number, deal_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
128
128
|
/**
|
|
129
129
|
* Searches all persons by name, email, phone, 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 persons can be filtered by organization ID.
|
|
130
130
|
* @summary Search persons
|
|
@@ -140,7 +140,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
140
140
|
*/
|
|
141
141
|
searchPersons: (term: string, fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>, exact_match?: boolean, organization_id?: number, include_fields?: Set<'person.picture'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
142
142
|
/**
|
|
143
|
-
* Updates the properties of a person. <br>
|
|
143
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
144
144
|
* @summary Update a person
|
|
145
145
|
* @param {number} id The ID of the person
|
|
146
146
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
|
@@ -155,7 +155,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
155
155
|
*/
|
|
156
156
|
export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
157
157
|
/**
|
|
158
|
-
* Adds a new person
|
|
158
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
159
159
|
* @summary Add a new person
|
|
160
160
|
* @param {AddPersonRequest} [AddPersonRequest]
|
|
161
161
|
|
|
@@ -223,29 +223,29 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
223
223
|
*/
|
|
224
224
|
deletePersonFollowerWithHttpInfo(id: number, follower_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteFollowerResponse>>>;
|
|
225
225
|
/**
|
|
226
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
226
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
227
227
|
* @summary Get details of a person
|
|
228
228
|
* @param {number} id The ID of the person
|
|
229
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
229
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
230
230
|
* @param {Set<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.
|
|
231
231
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
232
232
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
233
233
|
|
|
234
234
|
* @throws {RequiredError}
|
|
235
235
|
*/
|
|
236
|
-
getPerson(id: number, include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertPersonResponse>>;
|
|
236
|
+
getPerson(id: number, include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertPersonResponse>>;
|
|
237
237
|
/**
|
|
238
238
|
* Same as `getPerson`, but resolves with the response body together with the HTTP status and headers.
|
|
239
239
|
* @summary Get details of a person
|
|
240
240
|
* @param {number} id The ID of the person
|
|
241
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
241
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
242
242
|
* @param {Set<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.
|
|
243
243
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
244
244
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
245
245
|
|
|
246
246
|
* @throws {RequiredError}
|
|
247
247
|
*/
|
|
248
|
-
getPersonWithHttpInfo(id: number, include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertPersonResponse>>>;
|
|
248
|
+
getPersonWithHttpInfo(id: number, include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertPersonResponse>>>;
|
|
249
249
|
/**
|
|
250
250
|
* Lists users who are following the person.
|
|
251
251
|
* @summary List followers of a person
|
|
@@ -314,7 +314,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
314
314
|
* @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
315
315
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
316
316
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
317
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
317
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
318
318
|
* @param {Set<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.
|
|
319
319
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
320
320
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -323,7 +323,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
323
323
|
|
|
324
324
|
* @throws {RequiredError}
|
|
325
325
|
*/
|
|
326
|
-
getPersons(filter_id?: number, ids?: Set<number>, owner_id?: number, org_id?: number, deal_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonsResponse>>;
|
|
326
|
+
getPersons(filter_id?: number, ids?: Set<number>, owner_id?: number, org_id?: number, deal_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonsResponse>>;
|
|
327
327
|
/**
|
|
328
328
|
* Same as `getPersons`, but resolves with the response body together with the HTTP status and headers.
|
|
329
329
|
* @summary Get all persons
|
|
@@ -336,7 +336,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
336
336
|
* @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
337
337
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
338
338
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
339
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
339
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
340
340
|
* @param {Set<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.
|
|
341
341
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
342
342
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -345,7 +345,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
345
345
|
|
|
346
346
|
* @throws {RequiredError}
|
|
347
347
|
*/
|
|
348
|
-
getPersonsWithHttpInfo(filter_id?: number, ids?: Set<number>, owner_id?: number, org_id?: number, deal_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetPersonsResponse>>>;
|
|
348
|
+
getPersonsWithHttpInfo(filter_id?: number, ids?: Set<number>, owner_id?: number, org_id?: number, deal_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetPersonsResponse>>>;
|
|
349
349
|
/**
|
|
350
350
|
* Searches all persons by name, email, phone, 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 persons can be filtered by organization ID.
|
|
351
351
|
* @summary Search persons
|
|
@@ -375,7 +375,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
375
375
|
*/
|
|
376
376
|
searchPersonsWithHttpInfo(term: string, fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>, exact_match?: boolean, organization_id?: number, include_fields?: Set<'person.picture'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetPersonSearchResponse>>>;
|
|
377
377
|
/**
|
|
378
|
-
* Updates the properties of a person. <br>
|
|
378
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
379
379
|
* @summary Update a person
|
|
380
380
|
* @param {number} id The ID of the person
|
|
381
381
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
|
@@ -399,7 +399,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
399
399
|
*/
|
|
400
400
|
export declare const PersonsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
401
401
|
/**
|
|
402
|
-
* Adds a new person
|
|
402
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
403
403
|
* @summary Add a new person
|
|
404
404
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
|
405
405
|
|
|
@@ -435,7 +435,7 @@ export declare const PersonsApiFactory: (configuration?: Configuration, basePath
|
|
|
435
435
|
deletePersonFollower(requestParameters: PersonsApiDeletePersonFollowerRequest): Promise<DeleteFollowerResponse>;
|
|
436
436
|
deletePersonFollowerWithHttpInfo(requestParameters: PersonsApiDeletePersonFollowerRequest): Promise<ApiResponse<DeleteFollowerResponse>>;
|
|
437
437
|
/**
|
|
438
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
438
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
439
439
|
* @summary Get details of a person
|
|
440
440
|
* @param {PersonsApiGetPersonRequest} requestParameters Request parameters.
|
|
441
441
|
|
|
@@ -489,7 +489,7 @@ export declare const PersonsApiFactory: (configuration?: Configuration, basePath
|
|
|
489
489
|
searchPersons(requestParameters: PersonsApiSearchPersonsRequest): Promise<GetPersonSearchResponse>;
|
|
490
490
|
searchPersonsWithHttpInfo(requestParameters: PersonsApiSearchPersonsRequest): Promise<ApiResponse<GetPersonSearchResponse>>;
|
|
491
491
|
/**
|
|
492
|
-
* Updates the properties of a person. <br>
|
|
492
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
493
493
|
* @summary Update a person
|
|
494
494
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
|
495
495
|
|
|
@@ -575,11 +575,11 @@ export interface PersonsApiGetPersonRequest {
|
|
|
575
575
|
*/
|
|
576
576
|
readonly id: number;
|
|
577
577
|
/**
|
|
578
|
-
* Optional comma separated string array of additional fields to include.
|
|
579
|
-
* @type {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>}
|
|
578
|
+
* Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
579
|
+
* @type {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>}
|
|
580
580
|
* @memberof PersonsApiGetPerson
|
|
581
581
|
*/
|
|
582
|
-
readonly include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>;
|
|
582
|
+
readonly include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>;
|
|
583
583
|
/**
|
|
584
584
|
* 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.
|
|
585
585
|
* @type {Set<string>}
|
|
@@ -723,11 +723,11 @@ export interface PersonsApiGetPersonsRequest {
|
|
|
723
723
|
*/
|
|
724
724
|
readonly sort_direction?: 'asc' | 'desc';
|
|
725
725
|
/**
|
|
726
|
-
* Optional comma separated string array of additional fields to include.
|
|
727
|
-
* @type {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>}
|
|
726
|
+
* Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
727
|
+
* @type {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>}
|
|
728
728
|
* @memberof PersonsApiGetPersons
|
|
729
729
|
*/
|
|
730
|
-
readonly include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>;
|
|
730
|
+
readonly include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>;
|
|
731
731
|
/**
|
|
732
732
|
* 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.
|
|
733
733
|
* @type {Set<string>}
|
|
@@ -835,7 +835,7 @@ export interface PersonsApiUpdatePersonRequest {
|
|
|
835
835
|
*/
|
|
836
836
|
export declare class PersonsApi extends BaseAPI {
|
|
837
837
|
/**
|
|
838
|
-
* Adds a new person
|
|
838
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
839
839
|
* @summary Add a new person
|
|
840
840
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
|
841
841
|
|
|
@@ -907,7 +907,7 @@ export declare class PersonsApi extends BaseAPI {
|
|
|
907
907
|
*/
|
|
908
908
|
deletePersonFollowerWithHttpInfo(requestParameters: PersonsApiDeletePersonFollowerRequest): Promise<ApiResponse<DeleteFollowerResponse>>;
|
|
909
909
|
/**
|
|
910
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
910
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
911
911
|
* @summary Get details of a person
|
|
912
912
|
* @param {PersonsApiGetPersonRequest} requestParameters Request parameters.
|
|
913
913
|
|
|
@@ -1015,7 +1015,7 @@ export declare class PersonsApi extends BaseAPI {
|
|
|
1015
1015
|
*/
|
|
1016
1016
|
searchPersonsWithHttpInfo(requestParameters: PersonsApiSearchPersonsRequest): Promise<ApiResponse<GetPersonSearchResponse>>;
|
|
1017
1017
|
/**
|
|
1018
|
-
* Updates the properties of a person. <br>
|
|
1018
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
1019
1019
|
* @summary Update a person
|
|
1020
1020
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
|
1021
1021
|
|
|
@@ -39,7 +39,7 @@ const base_1 = require("../base");
|
|
|
39
39
|
const PersonsApiAxiosParamCreator = function (configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
|
-
* Adds a new person
|
|
42
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
43
43
|
* @summary Add a new person
|
|
44
44
|
* @param {AddPersonRequest} [AddPersonRequest]
|
|
45
45
|
|
|
@@ -181,10 +181,10 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
};
|
|
182
182
|
}),
|
|
183
183
|
/**
|
|
184
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
184
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
185
185
|
* @summary Get details of a person
|
|
186
186
|
* @param {number} id The ID of the person
|
|
187
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
187
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
188
188
|
* @param {Set<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.
|
|
189
189
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
190
190
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -360,7 +360,7 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
360
360
|
* @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
361
361
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
362
362
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
363
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
363
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
364
364
|
* @param {Set<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.
|
|
365
365
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
366
366
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -499,7 +499,7 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
499
499
|
};
|
|
500
500
|
}),
|
|
501
501
|
/**
|
|
502
|
-
* Updates the properties of a person. <br>
|
|
502
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
503
503
|
* @summary Update a person
|
|
504
504
|
* @param {number} id The ID of the person
|
|
505
505
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
|
@@ -546,7 +546,7 @@ const PersonsApiFp = function (configuration) {
|
|
|
546
546
|
const localVarAxiosParamCreator = (0, exports.PersonsApiAxiosParamCreator)(configuration);
|
|
547
547
|
return {
|
|
548
548
|
/**
|
|
549
|
-
* Adds a new person
|
|
549
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
550
550
|
* @summary Add a new person
|
|
551
551
|
* @param {AddPersonRequest} [AddPersonRequest]
|
|
552
552
|
|
|
@@ -654,10 +654,10 @@ const PersonsApiFp = function (configuration) {
|
|
|
654
654
|
});
|
|
655
655
|
},
|
|
656
656
|
/**
|
|
657
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
657
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
658
658
|
* @summary Get details of a person
|
|
659
659
|
* @param {number} id The ID of the person
|
|
660
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
660
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
661
661
|
* @param {Set<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.
|
|
662
662
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
663
663
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -674,7 +674,7 @@ const PersonsApiFp = function (configuration) {
|
|
|
674
674
|
* Same as `getPerson`, but resolves with the response body together with the HTTP status and headers.
|
|
675
675
|
* @summary Get details of a person
|
|
676
676
|
* @param {number} id The ID of the person
|
|
677
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
677
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
678
678
|
* @param {Set<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.
|
|
679
679
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
680
680
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -785,7 +785,7 @@ const PersonsApiFp = function (configuration) {
|
|
|
785
785
|
* @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
786
786
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
787
787
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
788
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
788
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
789
789
|
* @param {Set<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.
|
|
790
790
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
791
791
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -812,7 +812,7 @@ const PersonsApiFp = function (configuration) {
|
|
|
812
812
|
* @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
813
813
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
814
814
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
815
|
-
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include.
|
|
815
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' | 'track_open' | 'track_click' | 'smart_bcc_email'>} [include_fields] Optional comma separated string array of additional fields to include. <br>`marketing_status` and `doi_status` can only be included if the company has marketing app enabled. <br>`track_open` and `track_click` can only be included if the company has the Email tracking consent setting enabled.
|
|
816
816
|
* @param {Set<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.
|
|
817
817
|
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
818
818
|
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
@@ -866,7 +866,7 @@ const PersonsApiFp = function (configuration) {
|
|
|
866
866
|
});
|
|
867
867
|
},
|
|
868
868
|
/**
|
|
869
|
-
* Updates the properties of a person. <br>
|
|
869
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
870
870
|
* @summary Update a person
|
|
871
871
|
* @param {number} id The ID of the person
|
|
872
872
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
|
@@ -904,7 +904,7 @@ const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
|
904
904
|
const localVarFp = (0, exports.PersonsApiFp)(configuration);
|
|
905
905
|
return {
|
|
906
906
|
/**
|
|
907
|
-
* Adds a new person
|
|
907
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
908
908
|
* @summary Add a new person
|
|
909
909
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
|
910
910
|
|
|
@@ -956,7 +956,7 @@ const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
|
956
956
|
return localVarFp.deletePersonFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
957
957
|
},
|
|
958
958
|
/**
|
|
959
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
959
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
960
960
|
* @summary Get details of a person
|
|
961
961
|
* @param {PersonsApiGetPersonRequest} requestParameters Request parameters.
|
|
962
962
|
|
|
@@ -1034,7 +1034,7 @@ const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
|
1034
1034
|
return localVarFp.searchPersonsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1035
1035
|
},
|
|
1036
1036
|
/**
|
|
1037
|
-
* Updates the properties of a person. <br>
|
|
1037
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
1038
1038
|
* @summary Update a person
|
|
1039
1039
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
|
1040
1040
|
|
|
@@ -1057,7 +1057,7 @@ exports.PersonsApiFactory = PersonsApiFactory;
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
class PersonsApi extends base_1.BaseAPI {
|
|
1059
1059
|
/**
|
|
1060
|
-
* Adds a new person
|
|
1060
|
+
* Adds a new person.<br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.<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.<br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
1061
1061
|
* @summary Add a new person
|
|
1062
1062
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
|
1063
1063
|
|
|
@@ -1145,7 +1145,7 @@ class PersonsApi extends base_1.BaseAPI {
|
|
|
1145
1145
|
return (0, exports.PersonsApiFp)(this.configuration).deletePersonFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1146
1146
|
}
|
|
1147
1147
|
/**
|
|
1148
|
-
* Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
1148
|
+
* Returns the details of a specific person. <br>Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
1149
1149
|
* @summary Get details of a person
|
|
1150
1150
|
* @param {PersonsApiGetPersonRequest} requestParameters Request parameters.
|
|
1151
1151
|
|
|
@@ -1277,7 +1277,7 @@ class PersonsApi extends base_1.BaseAPI {
|
|
|
1277
1277
|
return (0, exports.PersonsApiFp)(this.configuration).searchPersonsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1278
1278
|
}
|
|
1279
1279
|
/**
|
|
1280
|
-
* Updates the properties of a person. <br>
|
|
1280
|
+
* Updates the properties of a person. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. <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. <br>If the company has the Email tracking consent setting enabled, then this endpoint will also accept and return the `track_open` and `track_click` fields.
|
|
1281
1281
|
* @summary Update a person
|
|
1282
1282
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
|
1283
1283
|
|
|
@@ -90,6 +90,16 @@ export interface AddPersonRequest {
|
|
|
90
90
|
*/
|
|
91
91
|
'marketing_status'?: AddPersonRequestMarketingStatusConst;
|
|
92
92
|
/**
|
|
93
|
+
* The email open tracking consent of the person. Only accepted if the company has the Email tracking consent setting enabled.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_preference_set`</td><td>The person has not set a preference</td></tr><tr><td>`consent_given`</td><td>The person has given consent</td></tr><tr><td>`consent_declined`</td><td>The person has declined consent</td></tr></table>
|
|
94
|
+
* @type {string}
|
|
95
|
+
*/
|
|
96
|
+
'track_open'?: AddPersonRequestTrackOpenConst;
|
|
97
|
+
/**
|
|
98
|
+
* The email link click tracking consent of the person. Only accepted if the company has the Email tracking consent setting enabled.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_preference_set`</td><td>The person has not set a preference</td></tr><tr><td>`consent_given`</td><td>The person has given consent</td></tr><tr><td>`consent_declined`</td><td>The person has declined consent</td></tr></table>
|
|
99
|
+
* @type {string}
|
|
100
|
+
*/
|
|
101
|
+
'track_click'?: AddPersonRequestTrackClickConst;
|
|
102
|
+
/**
|
|
93
103
|
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error.
|
|
94
104
|
* @type {{ [key: string]: any | undefined; }}
|
|
95
105
|
*/
|
|
@@ -104,3 +114,15 @@ export declare const AddPersonRequestMarketingStatusConst: {
|
|
|
104
114
|
readonly archived: "archived";
|
|
105
115
|
};
|
|
106
116
|
export type AddPersonRequestMarketingStatusConst = typeof AddPersonRequestMarketingStatusConst[keyof typeof AddPersonRequestMarketingStatusConst];
|
|
117
|
+
export declare const AddPersonRequestTrackOpenConst: {
|
|
118
|
+
readonly no_preference_set: "no_preference_set";
|
|
119
|
+
readonly consent_given: "consent_given";
|
|
120
|
+
readonly consent_declined: "consent_declined";
|
|
121
|
+
};
|
|
122
|
+
export type AddPersonRequestTrackOpenConst = typeof AddPersonRequestTrackOpenConst[keyof typeof AddPersonRequestTrackOpenConst];
|
|
123
|
+
export declare const AddPersonRequestTrackClickConst: {
|
|
124
|
+
readonly no_preference_set: "no_preference_set";
|
|
125
|
+
readonly consent_given: "consent_given";
|
|
126
|
+
readonly consent_declined: "consent_declined";
|
|
127
|
+
};
|
|
128
|
+
export type AddPersonRequestTrackClickConst = typeof AddPersonRequestTrackClickConst[keyof typeof AddPersonRequestTrackClickConst];
|
|
@@ -13,10 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AddPersonRequestMarketingStatusConst = void 0;
|
|
16
|
+
exports.AddPersonRequestTrackClickConst = exports.AddPersonRequestTrackOpenConst = exports.AddPersonRequestMarketingStatusConst = void 0;
|
|
17
17
|
exports.AddPersonRequestMarketingStatusConst = {
|
|
18
18
|
no_consent: 'no_consent',
|
|
19
19
|
unsubscribed: 'unsubscribed',
|
|
20
20
|
subscribed: 'subscribed',
|
|
21
21
|
archived: 'archived'
|
|
22
22
|
};
|
|
23
|
+
exports.AddPersonRequestTrackOpenConst = {
|
|
24
|
+
no_preference_set: 'no_preference_set',
|
|
25
|
+
consent_given: 'consent_given',
|
|
26
|
+
consent_declined: 'consent_declined'
|
|
27
|
+
};
|
|
28
|
+
exports.AddPersonRequestTrackClickConst = {
|
|
29
|
+
no_preference_set: 'no_preference_set',
|
|
30
|
+
consent_given: 'consent_given',
|
|
31
|
+
consent_declined: 'consent_declined'
|
|
32
|
+
};
|
|
@@ -115,6 +115,16 @@ export interface Person {
|
|
|
115
115
|
*/
|
|
116
116
|
'job_title'?: string;
|
|
117
117
|
/**
|
|
118
|
+
* The email open tracking consent of the person, included if the company has the Email tracking consent setting enabled
|
|
119
|
+
* @type {string}
|
|
120
|
+
*/
|
|
121
|
+
'track_open'?: PersonTrackOpenConst;
|
|
122
|
+
/**
|
|
123
|
+
* The email link click tracking consent of the person, included if the company has the Email tracking consent setting enabled
|
|
124
|
+
* @type {string}
|
|
125
|
+
*/
|
|
126
|
+
'track_click'?: PersonTrackClickConst;
|
|
127
|
+
/**
|
|
118
128
|
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error.
|
|
119
129
|
* @type {{ [key: string]: any | undefined; }}
|
|
120
130
|
*/
|
|
@@ -122,3 +132,15 @@ export interface Person {
|
|
|
122
132
|
[key: string]: any | undefined;
|
|
123
133
|
};
|
|
124
134
|
}
|
|
135
|
+
export declare const PersonTrackOpenConst: {
|
|
136
|
+
readonly no_preference_set: "no_preference_set";
|
|
137
|
+
readonly consent_given: "consent_given";
|
|
138
|
+
readonly consent_declined: "consent_declined";
|
|
139
|
+
};
|
|
140
|
+
export type PersonTrackOpenConst = typeof PersonTrackOpenConst[keyof typeof PersonTrackOpenConst];
|
|
141
|
+
export declare const PersonTrackClickConst: {
|
|
142
|
+
readonly no_preference_set: "no_preference_set";
|
|
143
|
+
readonly consent_given: "consent_given";
|
|
144
|
+
readonly consent_declined: "consent_declined";
|
|
145
|
+
};
|
|
146
|
+
export type PersonTrackClickConst = typeof PersonTrackClickConst[keyof typeof PersonTrackClickConst];
|