pipedrive 24.2.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/esm/versions/v1/api/activities-api.js +40 -40
- package/dist/esm/versions/v1/api/deals-api.d.ts +413 -91
- package/dist/esm/versions/v1/api/deals-api.js +419 -90
- package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/item-search-api.js +8 -8
- package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/esm/versions/v1/api/leads-api.js +107 -14
- package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/esm/versions/v1/api/notes-api.js +15 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +71 -71
- package/dist/esm/versions/v1/api/organizations-api.js +70 -70
- package/dist/esm/versions/v1/api/persons-api.d.ts +59 -59
- package/dist/esm/versions/v1/api/persons-api.js +58 -58
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/esm/versions/v1/api/pipelines-api.js +28 -28
- package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
- package/dist/esm/versions/v1/api/products-api.js +24 -24
- package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/stages-api.js +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/esm/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/esm/versions/v1/api/webhooks-api.js +4 -4
- package/dist/esm/versions/v1/base.d.ts +2 -3
- package/dist/esm/versions/v1/configuration.d.ts +2 -2
- package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
- package/dist/esm/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/esm/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/esm/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v1/models/index.d.ts +1 -0
- package/dist/esm/versions/v1/models/index.js +1 -0
- package/dist/esm/versions/v1/models/note-project.d.ts +23 -0
- package/dist/esm/versions/v1/models/note-project.js +14 -0
- package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/esm/versions/v1/models/note.d.ts +16 -0
- package/dist/esm/versions/v1/models/user-access.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access.js +4 -3
- package/dist/esm/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access1.js +4 -3
- package/dist/esm/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/esm/versions/v2/api/activities-api.js +12 -7
- package/dist/esm/versions/v2/api/beta-api.d.ts +194 -2532
- package/dist/esm/versions/v2/api/beta-api.js +263 -2928
- package/dist/esm/versions/v2/api/deals-api.d.ts +509 -4
- package/dist/esm/versions/v2/api/deals-api.js +589 -4
- package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/esm/versions/v2/api/leads-api.js +146 -1
- package/dist/esm/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/organizations-api.js +301 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +245 -8
- package/dist/esm/versions/v2/api/persons-api.js +309 -8
- package/dist/esm/versions/v2/api/products-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/products-api.js +301 -0
- package/dist/esm/versions/v2/api/users-api.d.ts +103 -0
- package/dist/esm/versions/v2/api/users-api.js +140 -0
- package/dist/esm/versions/v2/api.d.ts +1 -0
- package/dist/esm/versions/v2/api.js +1 -0
- package/dist/esm/versions/v2/base.d.ts +2 -3
- package/dist/esm/versions/v2/configuration.d.ts +2 -2
- package/dist/esm/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.js +14 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/add-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/add-person-request.js +6 -1
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.js +14 -0
- package/dist/esm/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item1.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/esm/versions/v2/models/get-convert-response.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.js +20 -0
- package/dist/esm/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-convert-response1.js +14 -0
- package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-followers-response.js +14 -0
- package/dist/esm/versions/v2/models/index.d.ts +19 -0
- package/dist/esm/versions/v2/models/index.js +19 -0
- package/dist/esm/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/update-person-request.js +6 -1
- package/dist/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/versions/v1/api/activities-api.js +40 -40
- package/dist/versions/v1/api/deals-api.d.ts +413 -91
- package/dist/versions/v1/api/deals-api.js +419 -90
- package/dist/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/versions/v1/api/item-search-api.js +8 -8
- package/dist/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/versions/v1/api/leads-api.js +107 -14
- package/dist/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/versions/v1/api/notes-api.js +15 -5
- package/dist/versions/v1/api/organizations-api.d.ts +71 -71
- package/dist/versions/v1/api/organizations-api.js +70 -70
- package/dist/versions/v1/api/persons-api.d.ts +59 -59
- package/dist/versions/v1/api/persons-api.js +58 -58
- package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/versions/v1/api/pipelines-api.js +28 -28
- package/dist/versions/v1/api/products-api.d.ts +24 -24
- package/dist/versions/v1/api/products-api.js +24 -24
- package/dist/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/versions/v1/api/stages-api.js +36 -36
- package/dist/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/versions/v1/api/webhooks-api.js +4 -4
- package/dist/versions/v1/base.d.ts +2 -3
- package/dist/versions/v1/configuration.d.ts +2 -2
- package/dist/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
- package/dist/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v1/models/index.d.ts +1 -0
- package/dist/versions/v1/models/index.js +1 -0
- package/dist/versions/v1/models/note-project.d.ts +23 -0
- package/dist/versions/v1/models/note-project.js +15 -0
- package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/versions/v1/models/note.d.ts +16 -0
- package/dist/versions/v1/models/user-access.d.ts +3 -2
- package/dist/versions/v1/models/user-access.js +4 -3
- package/dist/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/versions/v1/models/user-access1.js +4 -3
- package/dist/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/versions/v2/api/activities-api.js +12 -7
- package/dist/versions/v2/api/beta-api.d.ts +194 -2532
- package/dist/versions/v2/api/beta-api.js +265 -2930
- package/dist/versions/v2/api/deals-api.d.ts +509 -4
- package/dist/versions/v2/api/deals-api.js +589 -4
- package/dist/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/versions/v2/api/leads-api.js +145 -0
- package/dist/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/versions/v2/api/organizations-api.js +301 -0
- package/dist/versions/v2/api/persons-api.d.ts +245 -8
- package/dist/versions/v2/api/persons-api.js +309 -8
- package/dist/versions/v2/api/products-api.d.ts +237 -0
- package/dist/versions/v2/api/products-api.js +301 -0
- package/dist/versions/v2/api/users-api.d.ts +103 -0
- package/dist/versions/v2/api/users-api.js +150 -0
- package/dist/versions/v2/api.d.ts +1 -0
- package/dist/versions/v2/api.js +1 -0
- package/dist/versions/v2/base.d.ts +2 -3
- package/dist/versions/v2/configuration.d.ts +2 -2
- package/dist/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.js +15 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.js +15 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.js +15 -0
- package/dist/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/versions/v2/models/add-deal-follower-request.js +15 -0
- package/dist/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/versions/v2/models/add-follower-response-all-of.js +15 -0
- package/dist/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/versions/v2/models/add-follower-response.js +15 -0
- package/dist/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/versions/v2/models/add-person-request.js +7 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.js +15 -0
- package/dist/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-follower-response-data.js +15 -0
- package/dist/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-follower-response.js +15 -0
- package/dist/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/versions/v2/models/follower-changelog-item.js +15 -0
- package/dist/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/versions/v2/models/follower-item.js +15 -0
- package/dist/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/versions/v2/models/follower-item1.js +15 -0
- package/dist/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/versions/v2/models/get-convert-response.js +15 -0
- package/dist/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/versions/v2/models/get-convert-response1-data.js +23 -0
- package/dist/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/versions/v2/models/get-convert-response1.js +15 -0
- package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.js +15 -0
- package/dist/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-followers-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/versions/v2/models/get-followers-response.js +15 -0
- package/dist/versions/v2/models/index.d.ts +19 -0
- package/dist/versions/v2/models/index.js +19 -0
- package/dist/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/versions/v2/models/update-person-request.js +7 -0
- package/package.json +1 -1
@@ -33,7 +33,7 @@ import { BASE_PATH, BaseAPI } from '../base';
|
|
33
33
|
export const PersonsApiAxiosParamCreator = function (configuration) {
|
34
34
|
return {
|
35
35
|
/**
|
36
|
-
* Adds a new person.
|
36
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
37
37
|
* @summary Add a new person
|
38
38
|
* @param {AddPersonRequest} [AddPersonRequest]
|
39
39
|
|
@@ -65,6 +65,43 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
65
65
|
options: localVarRequestOptions,
|
66
66
|
};
|
67
67
|
}),
|
68
|
+
/**
|
69
|
+
* Adds a user as a follower to the person.
|
70
|
+
* @summary Add a follower to a person
|
71
|
+
* @param {number} id The ID of the person
|
72
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
73
|
+
|
74
|
+
* @throws {RequiredError}
|
75
|
+
*/
|
76
|
+
addPersonFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
|
77
|
+
// verify required parameter 'id' is not null or undefined
|
78
|
+
assertParamExists('addPersonFollower', 'id', id);
|
79
|
+
const localVarPath = `/persons/{id}/followers`
|
80
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
81
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
82
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
83
|
+
let baseOptions;
|
84
|
+
if (configuration) {
|
85
|
+
baseOptions = configuration.baseOptions;
|
86
|
+
}
|
87
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
88
|
+
const localVarHeaderParameter = {};
|
89
|
+
const localVarQueryParameter = {};
|
90
|
+
// authentication api_key required
|
91
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
92
|
+
// authentication oauth2 required
|
93
|
+
// oauth required
|
94
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
95
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
98
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
99
|
+
localVarRequestOptions.data = serializeDataIfNeeded(AddDealFollowerRequest, localVarRequestOptions, configuration);
|
100
|
+
return {
|
101
|
+
url: toPathString(localVarUrlObj),
|
102
|
+
options: localVarRequestOptions,
|
103
|
+
};
|
104
|
+
}),
|
68
105
|
/**
|
69
106
|
* Marks a person as deleted. After 30 days, the person will be permanently deleted.
|
70
107
|
* @summary Delete a person
|
@@ -99,6 +136,44 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
99
136
|
options: localVarRequestOptions,
|
100
137
|
};
|
101
138
|
}),
|
139
|
+
/**
|
140
|
+
* Deletes a user follower from the person.
|
141
|
+
* @summary Delete a follower from a person
|
142
|
+
* @param {number} id The ID of the person
|
143
|
+
* @param {number} follower_id The ID of the following user
|
144
|
+
|
145
|
+
* @throws {RequiredError}
|
146
|
+
*/
|
147
|
+
deletePersonFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
|
148
|
+
// verify required parameter 'id' is not null or undefined
|
149
|
+
assertParamExists('deletePersonFollower', 'id', id);
|
150
|
+
// verify required parameter 'follower_id' is not null or undefined
|
151
|
+
assertParamExists('deletePersonFollower', 'follower_id', follower_id);
|
152
|
+
const localVarPath = `/persons/{id}/followers/{follower_id}`
|
153
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
154
|
+
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
157
|
+
let baseOptions;
|
158
|
+
if (configuration) {
|
159
|
+
baseOptions = configuration.baseOptions;
|
160
|
+
}
|
161
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
162
|
+
const localVarHeaderParameter = {};
|
163
|
+
const localVarQueryParameter = {};
|
164
|
+
// authentication api_key required
|
165
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
166
|
+
// authentication oauth2 required
|
167
|
+
// oauth required
|
168
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
171
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
172
|
+
return {
|
173
|
+
url: toPathString(localVarUrlObj),
|
174
|
+
options: localVarRequestOptions,
|
175
|
+
};
|
176
|
+
}),
|
102
177
|
/**
|
103
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.
|
104
179
|
* @summary Get details of a person
|
@@ -141,6 +216,90 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
141
216
|
options: localVarRequestOptions,
|
142
217
|
};
|
143
218
|
}),
|
219
|
+
/**
|
220
|
+
* Lists users who are following the person.
|
221
|
+
* @summary List followers of a person
|
222
|
+
* @param {number} id The ID of the person
|
223
|
+
* @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.
|
224
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
225
|
+
|
226
|
+
* @throws {RequiredError}
|
227
|
+
*/
|
228
|
+
getPersonFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
229
|
+
// verify required parameter 'id' is not null or undefined
|
230
|
+
assertParamExists('getPersonFollowers', 'id', id);
|
231
|
+
const localVarPath = `/persons/{id}/followers`
|
232
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
235
|
+
let baseOptions;
|
236
|
+
if (configuration) {
|
237
|
+
baseOptions = configuration.baseOptions;
|
238
|
+
}
|
239
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
240
|
+
const localVarHeaderParameter = {};
|
241
|
+
const localVarQueryParameter = {};
|
242
|
+
// authentication api_key required
|
243
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
244
|
+
// authentication oauth2 required
|
245
|
+
// oauth required
|
246
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
247
|
+
if (limit !== undefined) {
|
248
|
+
localVarQueryParameter['limit'] = limit;
|
249
|
+
}
|
250
|
+
if (cursor !== undefined) {
|
251
|
+
localVarQueryParameter['cursor'] = cursor;
|
252
|
+
}
|
253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
255
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
256
|
+
return {
|
257
|
+
url: toPathString(localVarUrlObj),
|
258
|
+
options: localVarRequestOptions,
|
259
|
+
};
|
260
|
+
}),
|
261
|
+
/**
|
262
|
+
* Lists changelogs about users have followed the person.
|
263
|
+
* @summary List followers changelog of a person
|
264
|
+
* @param {number} id The ID of the person
|
265
|
+
* @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.
|
266
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
267
|
+
|
268
|
+
* @throws {RequiredError}
|
269
|
+
*/
|
270
|
+
getPersonFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
271
|
+
// verify required parameter 'id' is not null or undefined
|
272
|
+
assertParamExists('getPersonFollowersChangelog', 'id', id);
|
273
|
+
const localVarPath = `/persons/{id}/followers/changelog`
|
274
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
275
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
276
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
277
|
+
let baseOptions;
|
278
|
+
if (configuration) {
|
279
|
+
baseOptions = configuration.baseOptions;
|
280
|
+
}
|
281
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
282
|
+
const localVarHeaderParameter = {};
|
283
|
+
const localVarQueryParameter = {};
|
284
|
+
// authentication api_key required
|
285
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
286
|
+
// authentication oauth2 required
|
287
|
+
// oauth required
|
288
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
289
|
+
if (limit !== undefined) {
|
290
|
+
localVarQueryParameter['limit'] = limit;
|
291
|
+
}
|
292
|
+
if (cursor !== undefined) {
|
293
|
+
localVarQueryParameter['cursor'] = cursor;
|
294
|
+
}
|
295
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
296
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
297
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
298
|
+
return {
|
299
|
+
url: toPathString(localVarUrlObj),
|
300
|
+
options: localVarRequestOptions,
|
301
|
+
};
|
302
|
+
}),
|
144
303
|
/**
|
145
304
|
* 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.
|
146
305
|
* @summary Get all persons
|
@@ -280,7 +439,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
280
439
|
};
|
281
440
|
}),
|
282
441
|
/**
|
283
|
-
* Updates the properties of a person.
|
442
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
284
443
|
* @summary Update a person
|
285
444
|
* @param {number} id The ID of the person
|
286
445
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
@@ -326,7 +485,7 @@ export const PersonsApiFp = function (configuration) {
|
|
326
485
|
const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration);
|
327
486
|
return {
|
328
487
|
/**
|
329
|
-
* Adds a new person.
|
488
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
330
489
|
* @summary Add a new person
|
331
490
|
* @param {AddPersonRequest} [AddPersonRequest]
|
332
491
|
|
@@ -338,6 +497,20 @@ export const PersonsApiFp = function (configuration) {
|
|
338
497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
339
498
|
});
|
340
499
|
},
|
500
|
+
/**
|
501
|
+
* Adds a user as a follower to the person.
|
502
|
+
* @summary Add a follower to a person
|
503
|
+
* @param {number} id The ID of the person
|
504
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
505
|
+
|
506
|
+
* @throws {RequiredError}
|
507
|
+
*/
|
508
|
+
addPersonFollower(id, AddDealFollowerRequest) {
|
509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPersonFollower(id, AddDealFollowerRequest);
|
511
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
512
|
+
});
|
513
|
+
},
|
341
514
|
/**
|
342
515
|
* Marks a person as deleted. After 30 days, the person will be permanently deleted.
|
343
516
|
* @summary Delete a person
|
@@ -351,6 +524,20 @@ export const PersonsApiFp = function (configuration) {
|
|
351
524
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
352
525
|
});
|
353
526
|
},
|
527
|
+
/**
|
528
|
+
* Deletes a user follower from the person.
|
529
|
+
* @summary Delete a follower from a person
|
530
|
+
* @param {number} id The ID of the person
|
531
|
+
* @param {number} follower_id The ID of the following user
|
532
|
+
|
533
|
+
* @throws {RequiredError}
|
534
|
+
*/
|
535
|
+
deletePersonFollower(id, follower_id) {
|
536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePersonFollower(id, follower_id);
|
538
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
539
|
+
});
|
540
|
+
},
|
354
541
|
/**
|
355
542
|
* 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.
|
356
543
|
* @summary Get details of a person
|
@@ -366,6 +553,36 @@ export const PersonsApiFp = function (configuration) {
|
|
366
553
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
367
554
|
});
|
368
555
|
},
|
556
|
+
/**
|
557
|
+
* Lists users who are following the person.
|
558
|
+
* @summary List followers of a person
|
559
|
+
* @param {number} id The ID of the person
|
560
|
+
* @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.
|
561
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
562
|
+
|
563
|
+
* @throws {RequiredError}
|
564
|
+
*/
|
565
|
+
getPersonFollowers(id, limit, cursor) {
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
567
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonFollowers(id, limit, cursor);
|
568
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
569
|
+
});
|
570
|
+
},
|
571
|
+
/**
|
572
|
+
* Lists changelogs about users have followed the person.
|
573
|
+
* @summary List followers changelog of a person
|
574
|
+
* @param {number} id The ID of the person
|
575
|
+
* @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.
|
576
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
577
|
+
|
578
|
+
* @throws {RequiredError}
|
579
|
+
*/
|
580
|
+
getPersonFollowersChangelog(id, limit, cursor) {
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
582
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonFollowersChangelog(id, limit, cursor);
|
583
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
584
|
+
});
|
585
|
+
},
|
369
586
|
/**
|
370
587
|
* 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.
|
371
588
|
* @summary Get all persons
|
@@ -410,7 +627,7 @@ export const PersonsApiFp = function (configuration) {
|
|
410
627
|
});
|
411
628
|
},
|
412
629
|
/**
|
413
|
-
* Updates the properties of a person.
|
630
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
414
631
|
* @summary Update a person
|
415
632
|
* @param {number} id The ID of the person
|
416
633
|
* @param {UpdatePersonRequest} [UpdatePersonRequest]
|
@@ -433,7 +650,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
433
650
|
const localVarFp = PersonsApiFp(configuration);
|
434
651
|
return {
|
435
652
|
/**
|
436
|
-
* Adds a new person.
|
653
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
437
654
|
* @summary Add a new person
|
438
655
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
439
656
|
|
@@ -442,6 +659,16 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
442
659
|
addPerson(requestParameters = {}) {
|
443
660
|
return localVarFp.addPerson(requestParameters.AddPersonRequest).then((request) => request(axios, basePath));
|
444
661
|
},
|
662
|
+
/**
|
663
|
+
* Adds a user as a follower to the person.
|
664
|
+
* @summary Add a follower to a person
|
665
|
+
* @param {PersonsApiAddPersonFollowerRequest} requestParameters Request parameters.
|
666
|
+
|
667
|
+
* @throws {RequiredError}
|
668
|
+
*/
|
669
|
+
addPersonFollower(requestParameters) {
|
670
|
+
return localVarFp.addPersonFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
671
|
+
},
|
445
672
|
/**
|
446
673
|
* Marks a person as deleted. After 30 days, the person will be permanently deleted.
|
447
674
|
* @summary Delete a person
|
@@ -452,6 +679,16 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
452
679
|
deletePerson(requestParameters) {
|
453
680
|
return localVarFp.deletePerson(requestParameters.id).then((request) => request(axios, basePath));
|
454
681
|
},
|
682
|
+
/**
|
683
|
+
* Deletes a user follower from the person.
|
684
|
+
* @summary Delete a follower from a person
|
685
|
+
* @param {PersonsApiDeletePersonFollowerRequest} requestParameters Request parameters.
|
686
|
+
|
687
|
+
* @throws {RequiredError}
|
688
|
+
*/
|
689
|
+
deletePersonFollower(requestParameters) {
|
690
|
+
return localVarFp.deletePersonFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
691
|
+
},
|
455
692
|
/**
|
456
693
|
* 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.
|
457
694
|
* @summary Get details of a person
|
@@ -462,6 +699,26 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
462
699
|
getPerson(requestParameters) {
|
463
700
|
return localVarFp.getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
|
464
701
|
},
|
702
|
+
/**
|
703
|
+
* Lists users who are following the person.
|
704
|
+
* @summary List followers of a person
|
705
|
+
* @param {PersonsApiGetPersonFollowersRequest} requestParameters Request parameters.
|
706
|
+
|
707
|
+
* @throws {RequiredError}
|
708
|
+
*/
|
709
|
+
getPersonFollowers(requestParameters) {
|
710
|
+
return localVarFp.getPersonFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
711
|
+
},
|
712
|
+
/**
|
713
|
+
* Lists changelogs about users have followed the person.
|
714
|
+
* @summary List followers changelog of a person
|
715
|
+
* @param {PersonsApiGetPersonFollowersChangelogRequest} requestParameters Request parameters.
|
716
|
+
|
717
|
+
* @throws {RequiredError}
|
718
|
+
*/
|
719
|
+
getPersonFollowersChangelog(requestParameters) {
|
720
|
+
return localVarFp.getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
721
|
+
},
|
465
722
|
/**
|
466
723
|
* 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.
|
467
724
|
* @summary Get all persons
|
@@ -483,7 +740,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
483
740
|
return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
484
741
|
},
|
485
742
|
/**
|
486
|
-
* Updates the properties of a person.
|
743
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
487
744
|
* @summary Update a person
|
488
745
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
489
746
|
|
@@ -502,7 +759,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
502
759
|
*/
|
503
760
|
export class PersonsApi extends BaseAPI {
|
504
761
|
/**
|
505
|
-
* Adds a new person.
|
762
|
+
* Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
506
763
|
* @summary Add a new person
|
507
764
|
* @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
|
508
765
|
|
@@ -512,6 +769,17 @@ export class PersonsApi extends BaseAPI {
|
|
512
769
|
addPerson(requestParameters = {}) {
|
513
770
|
return PersonsApiFp(this.configuration).addPerson(requestParameters.AddPersonRequest).then((request) => request(this.axios, this.basePath));
|
514
771
|
}
|
772
|
+
/**
|
773
|
+
* Adds a user as a follower to the person.
|
774
|
+
* @summary Add a follower to a person
|
775
|
+
* @param {PersonsApiAddPersonFollowerRequest} requestParameters Request parameters.
|
776
|
+
|
777
|
+
* @throws {RequiredError}
|
778
|
+
* @memberof PersonsApi
|
779
|
+
*/
|
780
|
+
addPersonFollower(requestParameters) {
|
781
|
+
return PersonsApiFp(this.configuration).addPersonFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
782
|
+
}
|
515
783
|
/**
|
516
784
|
* Marks a person as deleted. After 30 days, the person will be permanently deleted.
|
517
785
|
* @summary Delete a person
|
@@ -523,6 +791,17 @@ export class PersonsApi extends BaseAPI {
|
|
523
791
|
deletePerson(requestParameters) {
|
524
792
|
return PersonsApiFp(this.configuration).deletePerson(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
525
793
|
}
|
794
|
+
/**
|
795
|
+
* Deletes a user follower from the person.
|
796
|
+
* @summary Delete a follower from a person
|
797
|
+
* @param {PersonsApiDeletePersonFollowerRequest} requestParameters Request parameters.
|
798
|
+
|
799
|
+
* @throws {RequiredError}
|
800
|
+
* @memberof PersonsApi
|
801
|
+
*/
|
802
|
+
deletePersonFollower(requestParameters) {
|
803
|
+
return PersonsApiFp(this.configuration).deletePersonFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
804
|
+
}
|
526
805
|
/**
|
527
806
|
* 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.
|
528
807
|
* @summary Get details of a person
|
@@ -534,6 +813,28 @@ export class PersonsApi extends BaseAPI {
|
|
534
813
|
getPerson(requestParameters) {
|
535
814
|
return PersonsApiFp(this.configuration).getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
|
536
815
|
}
|
816
|
+
/**
|
817
|
+
* Lists users who are following the person.
|
818
|
+
* @summary List followers of a person
|
819
|
+
* @param {PersonsApiGetPersonFollowersRequest} requestParameters Request parameters.
|
820
|
+
|
821
|
+
* @throws {RequiredError}
|
822
|
+
* @memberof PersonsApi
|
823
|
+
*/
|
824
|
+
getPersonFollowers(requestParameters) {
|
825
|
+
return PersonsApiFp(this.configuration).getPersonFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
826
|
+
}
|
827
|
+
/**
|
828
|
+
* Lists changelogs about users have followed the person.
|
829
|
+
* @summary List followers changelog of a person
|
830
|
+
* @param {PersonsApiGetPersonFollowersChangelogRequest} requestParameters Request parameters.
|
831
|
+
|
832
|
+
* @throws {RequiredError}
|
833
|
+
* @memberof PersonsApi
|
834
|
+
*/
|
835
|
+
getPersonFollowersChangelog(requestParameters) {
|
836
|
+
return PersonsApiFp(this.configuration).getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
837
|
+
}
|
537
838
|
/**
|
538
839
|
* 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.
|
539
840
|
* @summary Get all persons
|
@@ -557,7 +858,7 @@ export class PersonsApi extends BaseAPI {
|
|
557
858
|
return PersonsApiFp(this.configuration).searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
558
859
|
}
|
559
860
|
/**
|
560
|
-
* Updates the properties of a person.
|
861
|
+
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
|
561
862
|
* @summary Update a person
|
562
863
|
* @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
|
563
864
|
|