pipedrive 33.9.0 → 34.0.1
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/v2/api/activities-api.d.ts +16 -16
- package/dist/esm/versions/v2/api/activities-api.js +13 -13
- package/dist/esm/versions/v2/api/activity-fields-api.d.ts +12 -12
- package/dist/esm/versions/v2/api/activity-fields-api.js +9 -9
- package/dist/esm/versions/v2/api/deal-fields-api.d.ts +12 -12
- package/dist/esm/versions/v2/api/deal-fields-api.js +9 -9
- package/dist/esm/versions/v2/api/deals-api.d.ts +38 -38
- package/dist/esm/versions/v2/api/deals-api.js +33 -33
- package/dist/esm/versions/v2/api/organization-fields-api.d.ts +12 -12
- package/dist/esm/versions/v2/api/organization-fields-api.js +9 -9
- package/dist/esm/versions/v2/api/organizations-api.d.ts +24 -24
- package/dist/esm/versions/v2/api/organizations-api.js +21 -21
- package/dist/esm/versions/v2/api/person-fields-api.d.ts +12 -12
- package/dist/esm/versions/v2/api/person-fields-api.js +9 -9
- package/dist/esm/versions/v2/api/persons-api.d.ts +24 -24
- package/dist/esm/versions/v2/api/persons-api.js +21 -21
- package/dist/esm/versions/v2/api/product-fields-api.d.ts +24 -24
- package/dist/esm/versions/v2/api/product-fields-api.js +9 -9
- package/dist/esm/versions/v2/api/products-api.d.ts +14 -14
- package/dist/esm/versions/v2/api/products-api.js +15 -15
- package/dist/esm/versions/v2/models/add-product-field200-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/add-product-field200-response.js +14 -0
- package/dist/esm/versions/v2/models/get-activity-fields200-response-data-inner.d.ts +2 -0
- package/dist/esm/versions/v2/models/get-activity-fields200-response-data-inner.js +3 -1
- package/dist/esm/versions/v2/models/get-product-fields200-response-data-inner.d.ts +97 -0
- package/dist/esm/versions/v2/models/get-product-fields200-response-data-inner.js +48 -0
- package/dist/esm/versions/v2/models/get-product-fields200-response.d.ts +35 -0
- package/dist/esm/versions/v2/models/get-product-fields200-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.d.ts +1 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.js +2 -1
- package/dist/esm/versions/v2/models/index.d.ts +3 -0
- package/dist/esm/versions/v2/models/index.js +3 -0
- package/dist/versions/v2/api/activities-api.d.ts +16 -16
- package/dist/versions/v2/api/activities-api.js +12 -12
- package/dist/versions/v2/api/activity-fields-api.d.ts +12 -12
- package/dist/versions/v2/api/activity-fields-api.js +8 -8
- package/dist/versions/v2/api/deal-fields-api.d.ts +12 -12
- package/dist/versions/v2/api/deal-fields-api.js +8 -8
- package/dist/versions/v2/api/deals-api.d.ts +38 -38
- package/dist/versions/v2/api/deals-api.js +32 -32
- package/dist/versions/v2/api/organization-fields-api.d.ts +12 -12
- package/dist/versions/v2/api/organization-fields-api.js +8 -8
- package/dist/versions/v2/api/organizations-api.d.ts +24 -24
- package/dist/versions/v2/api/organizations-api.js +20 -20
- package/dist/versions/v2/api/person-fields-api.d.ts +12 -12
- package/dist/versions/v2/api/person-fields-api.js +8 -8
- package/dist/versions/v2/api/persons-api.d.ts +24 -24
- package/dist/versions/v2/api/persons-api.js +20 -20
- package/dist/versions/v2/api/product-fields-api.d.ts +24 -24
- package/dist/versions/v2/api/product-fields-api.js +8 -8
- package/dist/versions/v2/api/products-api.d.ts +14 -14
- package/dist/versions/v2/api/products-api.js +14 -14
- package/dist/versions/v2/models/add-product-field200-response.d.ts +29 -0
- package/dist/versions/v2/models/add-product-field200-response.js +15 -0
- package/dist/versions/v2/models/get-activity-fields200-response-data-inner.d.ts +2 -0
- package/dist/versions/v2/models/get-activity-fields200-response-data-inner.js +3 -1
- package/dist/versions/v2/models/get-product-fields200-response-data-inner.d.ts +97 -0
- package/dist/versions/v2/models/get-product-fields200-response-data-inner.js +51 -0
- package/dist/versions/v2/models/get-product-fields200-response.d.ts +35 -0
- package/dist/versions/v2/models/get-product-fields200-response.js +15 -0
- package/dist/versions/v2/models/get-project-fields200-response-data-inner.d.ts +1 -0
- package/dist/versions/v2/models/get-project-fields200-response-data-inner.js +2 -1
- package/dist/versions/v2/models/index.d.ts +3 -0
- package/dist/versions/v2/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -67,14 +67,14 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
67
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.
|
|
68
68
|
* @summary Get details of a person
|
|
69
69
|
* @param {number} id The ID of the person
|
|
70
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
71
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
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?: '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'
|
|
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>;
|
|
78
78
|
/**
|
|
79
79
|
* Lists users who are following the person.
|
|
80
80
|
* @summary List followers of a person
|
|
@@ -107,7 +107,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
107
107
|
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
108
108
|
* @summary Get all persons
|
|
109
109
|
* @param {number} [filter_id] If supplied, only persons matching the specified filter are returned
|
|
110
|
-
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
110
|
+
* @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
111
111
|
* @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
112
112
|
* @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
113
113
|
* @param {number} [deal_id] If supplied, only persons linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
|
@@ -115,8 +115,8 @@ 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 {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
119
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
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 }\'
|
|
122
122
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
@@ -124,7 +124,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
124
124
|
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
getPersons: (filter_id?: number, ids?: string
|
|
127
|
+
getPersons: (filter_id?: number, ids?: Set<string>, 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>;
|
|
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
|
|
@@ -192,14 +192,14 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
192
192
|
* 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.
|
|
193
193
|
* @summary Get details of a person
|
|
194
194
|
* @param {number} id The ID of the person
|
|
195
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
196
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
195
|
+
* @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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
196
|
+
* @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.
|
|
197
197
|
* @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
|
|
198
198
|
* @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 }\'
|
|
199
199
|
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
*/
|
|
202
|
-
getPerson(id: number, include_fields?: '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'
|
|
202
|
+
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>>;
|
|
203
203
|
/**
|
|
204
204
|
* Lists users who are following the person.
|
|
205
205
|
* @summary List followers of a person
|
|
@@ -232,7 +232,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
232
232
|
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
233
233
|
* @summary Get all persons
|
|
234
234
|
* @param {number} [filter_id] If supplied, only persons matching the specified filter are returned
|
|
235
|
-
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
235
|
+
* @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
236
236
|
* @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
237
237
|
* @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
238
238
|
* @param {number} [deal_id] If supplied, only persons linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
|
@@ -240,8 +240,8 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
240
240
|
* @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.
|
|
241
241
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
242
242
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
243
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
244
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
243
|
+
* @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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
244
|
+
* @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.
|
|
245
245
|
* @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
|
|
246
246
|
* @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 }\'
|
|
247
247
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
@@ -249,7 +249,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
249
249
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
*/
|
|
252
|
-
getPersons(filter_id?: number, ids?: string
|
|
252
|
+
getPersons(filter_id?: number, ids?: Set<string>, 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>>;
|
|
253
253
|
/**
|
|
254
254
|
* 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.
|
|
255
255
|
* @summary Search persons
|
|
@@ -446,16 +446,16 @@ export interface PersonsApiGetPersonRequest {
|
|
|
446
446
|
readonly id: number;
|
|
447
447
|
/**
|
|
448
448
|
* Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
449
|
-
* @type {'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'}
|
|
449
|
+
* @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'>}
|
|
450
450
|
* @memberof PersonsApiGetPerson
|
|
451
451
|
*/
|
|
452
|
-
readonly include_fields?: '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'
|
|
452
|
+
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'>;
|
|
453
453
|
/**
|
|
454
454
|
* 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.
|
|
455
|
-
* @type {string}
|
|
455
|
+
* @type {Set<string>}
|
|
456
456
|
* @memberof PersonsApiGetPerson
|
|
457
457
|
*/
|
|
458
|
-
readonly custom_fields?: string
|
|
458
|
+
readonly custom_fields?: Set<string>;
|
|
459
459
|
/**
|
|
460
460
|
* 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
|
|
461
461
|
* @type {boolean}
|
|
@@ -546,10 +546,10 @@ export interface PersonsApiGetPersonsRequest {
|
|
|
546
546
|
readonly filter_id?: number;
|
|
547
547
|
/**
|
|
548
548
|
* Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
549
|
-
* @type {string}
|
|
549
|
+
* @type {Set<string>}
|
|
550
550
|
* @memberof PersonsApiGetPersons
|
|
551
551
|
*/
|
|
552
|
-
readonly ids?: string
|
|
552
|
+
readonly ids?: Set<string>;
|
|
553
553
|
/**
|
|
554
554
|
* If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
555
555
|
* @type {number}
|
|
@@ -594,16 +594,16 @@ export interface PersonsApiGetPersonsRequest {
|
|
|
594
594
|
readonly sort_direction?: 'asc' | 'desc';
|
|
595
595
|
/**
|
|
596
596
|
* Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
597
|
-
* @type {'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'}
|
|
597
|
+
* @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'>}
|
|
598
598
|
* @memberof PersonsApiGetPersons
|
|
599
599
|
*/
|
|
600
|
-
readonly include_fields?: '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'
|
|
600
|
+
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'>;
|
|
601
601
|
/**
|
|
602
602
|
* 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.
|
|
603
|
-
* @type {string}
|
|
603
|
+
* @type {Set<string>}
|
|
604
604
|
* @memberof PersonsApiGetPersons
|
|
605
605
|
*/
|
|
606
|
-
readonly custom_fields?: string
|
|
606
|
+
readonly custom_fields?: Set<string>;
|
|
607
607
|
/**
|
|
608
608
|
* 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
|
|
609
609
|
* @type {boolean}
|
|
@@ -25,7 +25,7 @@ import globalAxios from 'axios';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
28
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
|
|
29
29
|
/**
|
|
30
30
|
* PersonsApi - axios parameter creator
|
|
31
31
|
* @export
|
|
@@ -178,8 +178,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
178
178
|
* 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.
|
|
179
179
|
* @summary Get details of a person
|
|
180
180
|
* @param {number} id The ID of the person
|
|
181
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
182
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
181
|
+
* @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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
182
|
+
* @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.
|
|
183
183
|
* @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
|
|
184
184
|
* @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 }\'
|
|
185
185
|
|
|
@@ -204,11 +204,11 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
204
204
|
// authentication oauth2 required
|
|
205
205
|
// oauth required
|
|
206
206
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
|
207
|
-
if (include_fields
|
|
208
|
-
localVarQueryParameter['include_fields'] = include_fields;
|
|
207
|
+
if (include_fields) {
|
|
208
|
+
localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
|
|
209
209
|
}
|
|
210
|
-
if (custom_fields
|
|
211
|
-
localVarQueryParameter['custom_fields'] = custom_fields;
|
|
210
|
+
if (custom_fields) {
|
|
211
|
+
localVarQueryParameter['custom_fields'] = Array.from(custom_fields).join(COLLECTION_FORMATS.csv);
|
|
212
212
|
}
|
|
213
213
|
if (include_option_labels !== undefined) {
|
|
214
214
|
localVarQueryParameter['include_option_labels'] = include_option_labels;
|
|
@@ -346,7 +346,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
346
346
|
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
347
347
|
* @summary Get all persons
|
|
348
348
|
* @param {number} [filter_id] If supplied, only persons matching the specified filter are returned
|
|
349
|
-
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
349
|
+
* @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
350
350
|
* @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
351
351
|
* @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
352
352
|
* @param {number} [deal_id] If supplied, only persons linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
|
@@ -354,8 +354,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
354
354
|
* @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.
|
|
355
355
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
356
356
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
357
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
358
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
357
|
+
* @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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
358
|
+
* @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.
|
|
359
359
|
* @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
|
|
360
360
|
* @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 }\'
|
|
361
361
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
@@ -382,8 +382,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
382
382
|
if (filter_id !== undefined) {
|
|
383
383
|
localVarQueryParameter['filter_id'] = filter_id;
|
|
384
384
|
}
|
|
385
|
-
if (ids
|
|
386
|
-
localVarQueryParameter['ids'] = ids;
|
|
385
|
+
if (ids) {
|
|
386
|
+
localVarQueryParameter['ids'] = Array.from(ids).join(COLLECTION_FORMATS.csv);
|
|
387
387
|
}
|
|
388
388
|
if (owner_id !== undefined) {
|
|
389
389
|
localVarQueryParameter['owner_id'] = owner_id;
|
|
@@ -406,11 +406,11 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
406
406
|
if (sort_direction !== undefined) {
|
|
407
407
|
localVarQueryParameter['sort_direction'] = sort_direction;
|
|
408
408
|
}
|
|
409
|
-
if (include_fields
|
|
410
|
-
localVarQueryParameter['include_fields'] = include_fields;
|
|
409
|
+
if (include_fields) {
|
|
410
|
+
localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
|
|
411
411
|
}
|
|
412
|
-
if (custom_fields
|
|
413
|
-
localVarQueryParameter['custom_fields'] = custom_fields;
|
|
412
|
+
if (custom_fields) {
|
|
413
|
+
localVarQueryParameter['custom_fields'] = Array.from(custom_fields).join(COLLECTION_FORMATS.csv);
|
|
414
414
|
}
|
|
415
415
|
if (include_option_labels !== undefined) {
|
|
416
416
|
localVarQueryParameter['include_option_labels'] = include_option_labels;
|
|
@@ -596,8 +596,8 @@ export const PersonsApiFp = function (configuration) {
|
|
|
596
596
|
* 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.
|
|
597
597
|
* @summary Get details of a person
|
|
598
598
|
* @param {number} id The ID of the person
|
|
599
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
600
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
599
|
+
* @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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
600
|
+
* @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.
|
|
601
601
|
* @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
|
|
602
602
|
* @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 }\'
|
|
603
603
|
|
|
@@ -656,7 +656,7 @@ export const PersonsApiFp = function (configuration) {
|
|
|
656
656
|
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
|
|
657
657
|
* @summary Get all persons
|
|
658
658
|
* @param {number} [filter_id] If supplied, only persons matching the specified filter are returned
|
|
659
|
-
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
659
|
+
* @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
660
660
|
* @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
661
661
|
* @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
662
662
|
* @param {number} [deal_id] If supplied, only persons linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
|
@@ -664,8 +664,8 @@ export const PersonsApiFp = function (configuration) {
|
|
|
664
664
|
* @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.
|
|
665
665
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
666
666
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
667
|
-
* @param {'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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
668
|
-
* @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
667
|
+
* @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. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled.
|
|
668
|
+
* @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.
|
|
669
669
|
* @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
|
|
670
670
|
* @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 }\'
|
|
671
671
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
@@ -14,11 +14,11 @@ import type { AxiosInstance } from 'axios';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { AddDealFieldOptions200Response } from '../models';
|
|
16
16
|
import { AddDealFieldOptionsRequestInner } from '../models';
|
|
17
|
+
import { AddProductField200Response } from '../models';
|
|
17
18
|
import { AddProductFieldRequest } from '../models';
|
|
18
19
|
import { DeleteDealFieldOptionsRequestInner } from '../models';
|
|
19
20
|
import { DeletePersonField200Response } from '../models';
|
|
20
|
-
import {
|
|
21
|
-
import { GetActivityFields200Response } from '../models';
|
|
21
|
+
import { GetProductFields200Response } from '../models';
|
|
22
22
|
import { UpdateDealFieldOptionsRequestInner } from '../models';
|
|
23
23
|
import { UpdateProductFieldRequest } from '../models';
|
|
24
24
|
/**
|
|
@@ -64,21 +64,21 @@ export declare const ProductFieldsApiAxiosParamCreator: (configuration?: Configu
|
|
|
64
64
|
* Returns metadata about a specific product field.
|
|
65
65
|
* @summary Get one product field
|
|
66
66
|
* @param {string} field_code The unique code identifying the field
|
|
67
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
67
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
68
68
|
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
getProductField: (field_code: string, include_fields?: 'ui_visibility') => Promise<RequestArgs>;
|
|
71
|
+
getProductField: (field_code: string, include_fields?: Set<'ui_visibility'>) => Promise<RequestArgs>;
|
|
72
72
|
/**
|
|
73
73
|
* Returns metadata about all product fields in the company.
|
|
74
74
|
* @summary Get all product fields
|
|
75
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
75
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
76
76
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
77
77
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
78
78
|
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
81
|
-
getProductFields: (include_fields?: 'ui_visibility'
|
|
81
|
+
getProductFields: (include_fields?: Set<'ui_visibility'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
82
82
|
/**
|
|
83
83
|
* Updates a product custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
84
84
|
* @summary Update one product field
|
|
@@ -110,7 +110,7 @@ export declare const ProductFieldsApiFp: (configuration?: Configuration) => {
|
|
|
110
110
|
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
113
|
-
addProductField(AddProductFieldRequest: AddProductFieldRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<
|
|
113
|
+
addProductField(AddProductFieldRequest: AddProductFieldRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddProductField200Response>>;
|
|
114
114
|
/**
|
|
115
115
|
* Adds new options to a product custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
116
116
|
* @summary Add product field options in bulk
|
|
@@ -141,21 +141,21 @@ export declare const ProductFieldsApiFp: (configuration?: Configuration) => {
|
|
|
141
141
|
* Returns metadata about a specific product field.
|
|
142
142
|
* @summary Get one product field
|
|
143
143
|
* @param {string} field_code The unique code identifying the field
|
|
144
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
144
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
145
145
|
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
*/
|
|
148
|
-
getProductField(field_code: string, include_fields?: 'ui_visibility'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<
|
|
148
|
+
getProductField(field_code: string, include_fields?: Set<'ui_visibility'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddProductField200Response>>;
|
|
149
149
|
/**
|
|
150
150
|
* Returns metadata about all product fields in the company.
|
|
151
151
|
* @summary Get all product fields
|
|
152
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
152
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
153
153
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
154
154
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
155
155
|
|
|
156
156
|
* @throws {RequiredError}
|
|
157
157
|
*/
|
|
158
|
-
getProductFields(include_fields?: 'ui_visibility'
|
|
158
|
+
getProductFields(include_fields?: Set<'ui_visibility'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductFields200Response>>;
|
|
159
159
|
/**
|
|
160
160
|
* Updates a product custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
161
161
|
* @summary Update one product field
|
|
@@ -164,7 +164,7 @@ export declare const ProductFieldsApiFp: (configuration?: Configuration) => {
|
|
|
164
164
|
|
|
165
165
|
* @throws {RequiredError}
|
|
166
166
|
*/
|
|
167
|
-
updateProductField(field_code: string, UpdateProductFieldRequest: UpdateProductFieldRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<
|
|
167
|
+
updateProductField(field_code: string, UpdateProductFieldRequest: UpdateProductFieldRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddProductField200Response>>;
|
|
168
168
|
/**
|
|
169
169
|
* Updates existing options for a product custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
170
170
|
* @summary Update product field options in bulk
|
|
@@ -187,7 +187,7 @@ export declare const ProductFieldsApiFactory: (configuration?: Configuration, ba
|
|
|
187
187
|
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
addProductField(requestParameters: ProductFieldsApiAddProductFieldRequest): Promise<
|
|
190
|
+
addProductField(requestParameters: ProductFieldsApiAddProductFieldRequest): Promise<AddProductField200Response>;
|
|
191
191
|
/**
|
|
192
192
|
* Adds new options to a product custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
193
193
|
* @summary Add product field options in bulk
|
|
@@ -219,7 +219,7 @@ export declare const ProductFieldsApiFactory: (configuration?: Configuration, ba
|
|
|
219
219
|
|
|
220
220
|
* @throws {RequiredError}
|
|
221
221
|
*/
|
|
222
|
-
getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest): Promise<
|
|
222
|
+
getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest): Promise<AddProductField200Response>;
|
|
223
223
|
/**
|
|
224
224
|
* Returns metadata about all product fields in the company.
|
|
225
225
|
* @summary Get all product fields
|
|
@@ -227,7 +227,7 @@ export declare const ProductFieldsApiFactory: (configuration?: Configuration, ba
|
|
|
227
227
|
|
|
228
228
|
* @throws {RequiredError}
|
|
229
229
|
*/
|
|
230
|
-
getProductFields(requestParameters?: ProductFieldsApiGetProductFieldsRequest): Promise<
|
|
230
|
+
getProductFields(requestParameters?: ProductFieldsApiGetProductFieldsRequest): Promise<GetProductFields200Response>;
|
|
231
231
|
/**
|
|
232
232
|
* Updates a product custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
233
233
|
* @summary Update one product field
|
|
@@ -235,7 +235,7 @@ export declare const ProductFieldsApiFactory: (configuration?: Configuration, ba
|
|
|
235
235
|
|
|
236
236
|
* @throws {RequiredError}
|
|
237
237
|
*/
|
|
238
|
-
updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest): Promise<
|
|
238
|
+
updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest): Promise<AddProductField200Response>;
|
|
239
239
|
/**
|
|
240
240
|
* Updates existing options for a product custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
241
241
|
* @summary Update product field options in bulk
|
|
@@ -323,10 +323,10 @@ export interface ProductFieldsApiGetProductFieldRequest {
|
|
|
323
323
|
readonly field_code: string;
|
|
324
324
|
/**
|
|
325
325
|
* Optional comma separated string array of additional data namespaces to include in response
|
|
326
|
-
* @type {'ui_visibility'}
|
|
326
|
+
* @type {Set<'ui_visibility'>}
|
|
327
327
|
* @memberof ProductFieldsApiGetProductField
|
|
328
328
|
*/
|
|
329
|
-
readonly include_fields?: 'ui_visibility'
|
|
329
|
+
readonly include_fields?: Set<'ui_visibility'>;
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
332
|
* Request parameters for getProductFields operation in ProductFieldsApi.
|
|
@@ -336,10 +336,10 @@ export interface ProductFieldsApiGetProductFieldRequest {
|
|
|
336
336
|
export interface ProductFieldsApiGetProductFieldsRequest {
|
|
337
337
|
/**
|
|
338
338
|
* Optional comma separated string array of additional data namespaces to include in response
|
|
339
|
-
* @type {'ui_visibility'}
|
|
339
|
+
* @type {Set<'ui_visibility'>}
|
|
340
340
|
* @memberof ProductFieldsApiGetProductFields
|
|
341
341
|
*/
|
|
342
|
-
readonly include_fields?: 'ui_visibility'
|
|
342
|
+
readonly include_fields?: Set<'ui_visibility'>;
|
|
343
343
|
/**
|
|
344
344
|
* For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
345
345
|
* @type {number}
|
|
@@ -406,7 +406,7 @@ export declare class ProductFieldsApi extends BaseAPI {
|
|
|
406
406
|
* @throws {RequiredError}
|
|
407
407
|
* @memberof ProductFieldsApi
|
|
408
408
|
*/
|
|
409
|
-
addProductField(requestParameters: ProductFieldsApiAddProductFieldRequest): Promise<
|
|
409
|
+
addProductField(requestParameters: ProductFieldsApiAddProductFieldRequest): Promise<AddProductField200Response>;
|
|
410
410
|
/**
|
|
411
411
|
* Adds new options to a product custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
412
412
|
* @summary Add product field options in bulk
|
|
@@ -442,7 +442,7 @@ export declare class ProductFieldsApi extends BaseAPI {
|
|
|
442
442
|
* @throws {RequiredError}
|
|
443
443
|
* @memberof ProductFieldsApi
|
|
444
444
|
*/
|
|
445
|
-
getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest): Promise<
|
|
445
|
+
getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest): Promise<AddProductField200Response>;
|
|
446
446
|
/**
|
|
447
447
|
* Returns metadata about all product fields in the company.
|
|
448
448
|
* @summary Get all product fields
|
|
@@ -451,7 +451,7 @@ export declare class ProductFieldsApi extends BaseAPI {
|
|
|
451
451
|
* @throws {RequiredError}
|
|
452
452
|
* @memberof ProductFieldsApi
|
|
453
453
|
*/
|
|
454
|
-
getProductFields(requestParameters?: ProductFieldsApiGetProductFieldsRequest): Promise<
|
|
454
|
+
getProductFields(requestParameters?: ProductFieldsApiGetProductFieldsRequest): Promise<GetProductFields200Response>;
|
|
455
455
|
/**
|
|
456
456
|
* Updates a product custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
457
457
|
* @summary Update one product field
|
|
@@ -460,7 +460,7 @@ export declare class ProductFieldsApi extends BaseAPI {
|
|
|
460
460
|
* @throws {RequiredError}
|
|
461
461
|
* @memberof ProductFieldsApi
|
|
462
462
|
*/
|
|
463
|
-
updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest): Promise<
|
|
463
|
+
updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest): Promise<AddProductField200Response>;
|
|
464
464
|
/**
|
|
465
465
|
* Updates existing options for a product custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
466
466
|
* @summary Update product field options in bulk
|
|
@@ -25,7 +25,7 @@ import globalAxios from 'axios';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
28
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
|
|
29
29
|
/**
|
|
30
30
|
* ProductFieldsApi - axios parameter creator
|
|
31
31
|
* @export
|
|
@@ -183,7 +183,7 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
183
183
|
* Returns metadata about a specific product field.
|
|
184
184
|
* @summary Get one product field
|
|
185
185
|
* @param {string} field_code The unique code identifying the field
|
|
186
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
186
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
187
187
|
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
@@ -206,8 +206,8 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
206
206
|
// authentication oauth2 required
|
|
207
207
|
// oauth required
|
|
208
208
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "product-fields:full"], configuration);
|
|
209
|
-
if (include_fields
|
|
210
|
-
localVarQueryParameter['include_fields'] = include_fields;
|
|
209
|
+
if (include_fields) {
|
|
210
|
+
localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
|
|
211
211
|
}
|
|
212
212
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
213
213
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -220,7 +220,7 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
220
220
|
/**
|
|
221
221
|
* Returns metadata about all product fields in the company.
|
|
222
222
|
* @summary Get all product fields
|
|
223
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
223
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
224
224
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
225
225
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
226
226
|
|
|
@@ -242,8 +242,8 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
// authentication oauth2 required
|
|
243
243
|
// oauth required
|
|
244
244
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "product-fields:full"], configuration);
|
|
245
|
-
if (include_fields
|
|
246
|
-
localVarQueryParameter['include_fields'] = include_fields;
|
|
245
|
+
if (include_fields) {
|
|
246
|
+
localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
|
|
247
247
|
}
|
|
248
248
|
if (limit !== undefined) {
|
|
249
249
|
localVarQueryParameter['limit'] = limit;
|
|
@@ -404,7 +404,7 @@ export const ProductFieldsApiFp = function (configuration) {
|
|
|
404
404
|
* Returns metadata about a specific product field.
|
|
405
405
|
* @summary Get one product field
|
|
406
406
|
* @param {string} field_code The unique code identifying the field
|
|
407
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
407
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
408
408
|
|
|
409
409
|
* @throws {RequiredError}
|
|
410
410
|
*/
|
|
@@ -417,7 +417,7 @@ export const ProductFieldsApiFp = function (configuration) {
|
|
|
417
417
|
/**
|
|
418
418
|
* Returns metadata about all product fields in the company.
|
|
419
419
|
* @summary Get all product fields
|
|
420
|
-
* @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
420
|
+
* @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
|
|
421
421
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
422
422
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
423
423
|
|