pipedrive 24.2.0 → 25.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/deals-api.d.ts +3 -3
- package/dist/esm/versions/v1/api/deals-api.js +2 -2
- package/dist/esm/versions/v1/api/organizations-api.d.ts +3 -3
- package/dist/esm/versions/v1/api/organizations-api.js +2 -2
- package/dist/esm/versions/v1/api/persons-api.d.ts +3 -3
- package/dist/esm/versions/v1/api/persons-api.js +2 -2
- 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/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/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/beta-api.d.ts +82 -2632
- package/dist/esm/versions/v2/api/beta-api.js +139 -3090
- package/dist/esm/versions/v2/api/deals-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/deals-api.js +301 -0
- 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 +237 -0
- package/dist/esm/versions/v2/api/persons-api.js +301 -0
- 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/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/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-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 +12 -0
- package/dist/esm/versions/v2/models/index.js +12 -0
- package/dist/versions/v1/api/deals-api.d.ts +3 -3
- package/dist/versions/v1/api/deals-api.js +2 -2
- package/dist/versions/v1/api/organizations-api.d.ts +3 -3
- package/dist/versions/v1/api/organizations-api.js +2 -2
- package/dist/versions/v1/api/persons-api.d.ts +3 -3
- package/dist/versions/v1/api/persons-api.js +2 -2
- 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/models/add-webhook-request.d.ts +5 -6
- package/dist/versions/v1/models/add-webhook-request.js +4 -5
- 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/beta-api.d.ts +82 -2632
- package/dist/versions/v2/api/beta-api.js +141 -3092
- package/dist/versions/v2/api/deals-api.d.ts +237 -0
- package/dist/versions/v2/api/deals-api.js +301 -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 +237 -0
- package/dist/versions/v2/api/persons-api.js +301 -0
- 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/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/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-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 +12 -0
- package/dist/versions/v2/models/index.js +12 -0
- package/package.json +1 -1
@@ -71,6 +71,43 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
71
71
|
options: localVarRequestOptions,
|
72
72
|
};
|
73
73
|
}),
|
74
|
+
/**
|
75
|
+
* Adds a user as a follower to the organization.
|
76
|
+
* @summary Add a follower to an organization
|
77
|
+
* @param {number} id The ID of the organization
|
78
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
79
|
+
|
80
|
+
* @throws {RequiredError}
|
81
|
+
*/
|
82
|
+
addOrganizationFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
|
83
|
+
// verify required parameter 'id' is not null or undefined
|
84
|
+
(0, common_1.assertParamExists)('addOrganizationFollower', 'id', id);
|
85
|
+
const localVarPath = `/organizations/{id}/followers`
|
86
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
87
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
88
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
89
|
+
let baseOptions;
|
90
|
+
if (configuration) {
|
91
|
+
baseOptions = configuration.baseOptions;
|
92
|
+
}
|
93
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
94
|
+
const localVarHeaderParameter = {};
|
95
|
+
const localVarQueryParameter = {};
|
96
|
+
// authentication api_key required
|
97
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
98
|
+
// authentication oauth2 required
|
99
|
+
// oauth required
|
100
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
101
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
102
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
105
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddDealFollowerRequest, localVarRequestOptions, configuration);
|
106
|
+
return {
|
107
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
108
|
+
options: localVarRequestOptions,
|
109
|
+
};
|
110
|
+
}),
|
74
111
|
/**
|
75
112
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
76
113
|
* @summary Delete a organization
|
@@ -105,6 +142,44 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
105
142
|
options: localVarRequestOptions,
|
106
143
|
};
|
107
144
|
}),
|
145
|
+
/**
|
146
|
+
* Deletes a user follower from the organization.
|
147
|
+
* @summary Delete a follower from an organization
|
148
|
+
* @param {number} id The ID of the organization
|
149
|
+
* @param {number} follower_id The ID of the following user
|
150
|
+
|
151
|
+
* @throws {RequiredError}
|
152
|
+
*/
|
153
|
+
deleteOrganizationFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
|
154
|
+
// verify required parameter 'id' is not null or undefined
|
155
|
+
(0, common_1.assertParamExists)('deleteOrganizationFollower', 'id', id);
|
156
|
+
// verify required parameter 'follower_id' is not null or undefined
|
157
|
+
(0, common_1.assertParamExists)('deleteOrganizationFollower', 'follower_id', follower_id);
|
158
|
+
const localVarPath = `/organizations/{id}/followers/{follower_id}`
|
159
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
160
|
+
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
162
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
163
|
+
let baseOptions;
|
164
|
+
if (configuration) {
|
165
|
+
baseOptions = configuration.baseOptions;
|
166
|
+
}
|
167
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
168
|
+
const localVarHeaderParameter = {};
|
169
|
+
const localVarQueryParameter = {};
|
170
|
+
// authentication api_key required
|
171
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
172
|
+
// authentication oauth2 required
|
173
|
+
// oauth required
|
174
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
175
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
177
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
178
|
+
return {
|
179
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
180
|
+
options: localVarRequestOptions,
|
181
|
+
};
|
182
|
+
}),
|
108
183
|
/**
|
109
184
|
* Returns the details of a specific organization.
|
110
185
|
* @summary Get details of a organization
|
@@ -147,6 +222,90 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
147
222
|
options: localVarRequestOptions,
|
148
223
|
};
|
149
224
|
}),
|
225
|
+
/**
|
226
|
+
* Lists users who are following the organization.
|
227
|
+
* @summary List followers of an organization
|
228
|
+
* @param {number} id The ID of the organization
|
229
|
+
* @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.
|
230
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
231
|
+
|
232
|
+
* @throws {RequiredError}
|
233
|
+
*/
|
234
|
+
getOrganizationFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
235
|
+
// verify required parameter 'id' is not null or undefined
|
236
|
+
(0, common_1.assertParamExists)('getOrganizationFollowers', 'id', id);
|
237
|
+
const localVarPath = `/organizations/{id}/followers`
|
238
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
240
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
241
|
+
let baseOptions;
|
242
|
+
if (configuration) {
|
243
|
+
baseOptions = configuration.baseOptions;
|
244
|
+
}
|
245
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
246
|
+
const localVarHeaderParameter = {};
|
247
|
+
const localVarQueryParameter = {};
|
248
|
+
// authentication api_key required
|
249
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
250
|
+
// authentication oauth2 required
|
251
|
+
// oauth required
|
252
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
253
|
+
if (limit !== undefined) {
|
254
|
+
localVarQueryParameter['limit'] = limit;
|
255
|
+
}
|
256
|
+
if (cursor !== undefined) {
|
257
|
+
localVarQueryParameter['cursor'] = cursor;
|
258
|
+
}
|
259
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
261
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
262
|
+
return {
|
263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
264
|
+
options: localVarRequestOptions,
|
265
|
+
};
|
266
|
+
}),
|
267
|
+
/**
|
268
|
+
* Lists changelogs about users have followed the organization.
|
269
|
+
* @summary List followers changelog of an organization
|
270
|
+
* @param {number} id The ID of the organization
|
271
|
+
* @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.
|
272
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
273
|
+
|
274
|
+
* @throws {RequiredError}
|
275
|
+
*/
|
276
|
+
getOrganizationFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
277
|
+
// verify required parameter 'id' is not null or undefined
|
278
|
+
(0, common_1.assertParamExists)('getOrganizationFollowersChangelog', 'id', id);
|
279
|
+
const localVarPath = `/organizations/{id}/followers/changelog`
|
280
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
281
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
282
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
283
|
+
let baseOptions;
|
284
|
+
if (configuration) {
|
285
|
+
baseOptions = configuration.baseOptions;
|
286
|
+
}
|
287
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
288
|
+
const localVarHeaderParameter = {};
|
289
|
+
const localVarQueryParameter = {};
|
290
|
+
// authentication api_key required
|
291
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
292
|
+
// authentication oauth2 required
|
293
|
+
// oauth required
|
294
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
295
|
+
if (limit !== undefined) {
|
296
|
+
localVarQueryParameter['limit'] = limit;
|
297
|
+
}
|
298
|
+
if (cursor !== undefined) {
|
299
|
+
localVarQueryParameter['cursor'] = cursor;
|
300
|
+
}
|
301
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
303
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
304
|
+
return {
|
305
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
306
|
+
options: localVarRequestOptions,
|
307
|
+
};
|
308
|
+
}),
|
150
309
|
/**
|
151
310
|
* Returns data about all organizations.
|
152
311
|
* @summary Get all organizations
|
@@ -333,6 +492,20 @@ const OrganizationsApiFp = function (configuration) {
|
|
333
492
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
334
493
|
});
|
335
494
|
},
|
495
|
+
/**
|
496
|
+
* Adds a user as a follower to the organization.
|
497
|
+
* @summary Add a follower to an organization
|
498
|
+
* @param {number} id The ID of the organization
|
499
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
500
|
+
|
501
|
+
* @throws {RequiredError}
|
502
|
+
*/
|
503
|
+
addOrganizationFollower(id, AddDealFollowerRequest) {
|
504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
505
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addOrganizationFollower(id, AddDealFollowerRequest);
|
506
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
507
|
+
});
|
508
|
+
},
|
336
509
|
/**
|
337
510
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
338
511
|
* @summary Delete a organization
|
@@ -346,6 +519,20 @@ const OrganizationsApiFp = function (configuration) {
|
|
346
519
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
347
520
|
});
|
348
521
|
},
|
522
|
+
/**
|
523
|
+
* Deletes a user follower from the organization.
|
524
|
+
* @summary Delete a follower from an organization
|
525
|
+
* @param {number} id The ID of the organization
|
526
|
+
* @param {number} follower_id The ID of the following user
|
527
|
+
|
528
|
+
* @throws {RequiredError}
|
529
|
+
*/
|
530
|
+
deleteOrganizationFollower(id, follower_id) {
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationFollower(id, follower_id);
|
533
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
534
|
+
});
|
535
|
+
},
|
349
536
|
/**
|
350
537
|
* Returns the details of a specific organization.
|
351
538
|
* @summary Get details of a organization
|
@@ -361,6 +548,36 @@ const OrganizationsApiFp = function (configuration) {
|
|
361
548
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
362
549
|
});
|
363
550
|
},
|
551
|
+
/**
|
552
|
+
* Lists users who are following the organization.
|
553
|
+
* @summary List followers of an organization
|
554
|
+
* @param {number} id The ID of the organization
|
555
|
+
* @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.
|
556
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
557
|
+
|
558
|
+
* @throws {RequiredError}
|
559
|
+
*/
|
560
|
+
getOrganizationFollowers(id, limit, cursor) {
|
561
|
+
return __awaiter(this, void 0, void 0, function* () {
|
562
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationFollowers(id, limit, cursor);
|
563
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
564
|
+
});
|
565
|
+
},
|
566
|
+
/**
|
567
|
+
* Lists changelogs about users have followed the organization.
|
568
|
+
* @summary List followers changelog of an organization
|
569
|
+
* @param {number} id The ID of the organization
|
570
|
+
* @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.
|
571
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
572
|
+
|
573
|
+
* @throws {RequiredError}
|
574
|
+
*/
|
575
|
+
getOrganizationFollowersChangelog(id, limit, cursor) {
|
576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
577
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationFollowersChangelog(id, limit, cursor);
|
578
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
579
|
+
});
|
580
|
+
},
|
364
581
|
/**
|
365
582
|
* Returns data about all organizations.
|
366
583
|
* @summary Get all organizations
|
@@ -435,6 +652,16 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
435
652
|
addOrganization(requestParameters = {}) {
|
436
653
|
return localVarFp.addOrganization(requestParameters.AddOrganizationRequest).then((request) => request(axios, basePath));
|
437
654
|
},
|
655
|
+
/**
|
656
|
+
* Adds a user as a follower to the organization.
|
657
|
+
* @summary Add a follower to an organization
|
658
|
+
* @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters.
|
659
|
+
|
660
|
+
* @throws {RequiredError}
|
661
|
+
*/
|
662
|
+
addOrganizationFollower(requestParameters) {
|
663
|
+
return localVarFp.addOrganizationFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
664
|
+
},
|
438
665
|
/**
|
439
666
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
440
667
|
* @summary Delete a organization
|
@@ -445,6 +672,16 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
445
672
|
deleteOrganization(requestParameters) {
|
446
673
|
return localVarFp.deleteOrganization(requestParameters.id).then((request) => request(axios, basePath));
|
447
674
|
},
|
675
|
+
/**
|
676
|
+
* Deletes a user follower from the organization.
|
677
|
+
* @summary Delete a follower from an organization
|
678
|
+
* @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters.
|
679
|
+
|
680
|
+
* @throws {RequiredError}
|
681
|
+
*/
|
682
|
+
deleteOrganizationFollower(requestParameters) {
|
683
|
+
return localVarFp.deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
684
|
+
},
|
448
685
|
/**
|
449
686
|
* Returns the details of a specific organization.
|
450
687
|
* @summary Get details of a organization
|
@@ -455,6 +692,26 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
455
692
|
getOrganization(requestParameters) {
|
456
693
|
return localVarFp.getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
|
457
694
|
},
|
695
|
+
/**
|
696
|
+
* Lists users who are following the organization.
|
697
|
+
* @summary List followers of an organization
|
698
|
+
* @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters.
|
699
|
+
|
700
|
+
* @throws {RequiredError}
|
701
|
+
*/
|
702
|
+
getOrganizationFollowers(requestParameters) {
|
703
|
+
return localVarFp.getOrganizationFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
704
|
+
},
|
705
|
+
/**
|
706
|
+
* Lists changelogs about users have followed the organization.
|
707
|
+
* @summary List followers changelog of an organization
|
708
|
+
* @param {OrganizationsApiGetOrganizationFollowersChangelogRequest} requestParameters Request parameters.
|
709
|
+
|
710
|
+
* @throws {RequiredError}
|
711
|
+
*/
|
712
|
+
getOrganizationFollowersChangelog(requestParameters) {
|
713
|
+
return localVarFp.getOrganizationFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
714
|
+
},
|
458
715
|
/**
|
459
716
|
* Returns data about all organizations.
|
460
717
|
* @summary Get all organizations
|
@@ -506,6 +763,17 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
506
763
|
addOrganization(requestParameters = {}) {
|
507
764
|
return (0, exports.OrganizationsApiFp)(this.configuration).addOrganization(requestParameters.AddOrganizationRequest).then((request) => request(this.axios, this.basePath));
|
508
765
|
}
|
766
|
+
/**
|
767
|
+
* Adds a user as a follower to the organization.
|
768
|
+
* @summary Add a follower to an organization
|
769
|
+
* @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters.
|
770
|
+
|
771
|
+
* @throws {RequiredError}
|
772
|
+
* @memberof OrganizationsApi
|
773
|
+
*/
|
774
|
+
addOrganizationFollower(requestParameters) {
|
775
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).addOrganizationFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
776
|
+
}
|
509
777
|
/**
|
510
778
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
511
779
|
* @summary Delete a organization
|
@@ -517,6 +785,17 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
517
785
|
deleteOrganization(requestParameters) {
|
518
786
|
return (0, exports.OrganizationsApiFp)(this.configuration).deleteOrganization(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
519
787
|
}
|
788
|
+
/**
|
789
|
+
* Deletes a user follower from the organization.
|
790
|
+
* @summary Delete a follower from an organization
|
791
|
+
* @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters.
|
792
|
+
|
793
|
+
* @throws {RequiredError}
|
794
|
+
* @memberof OrganizationsApi
|
795
|
+
*/
|
796
|
+
deleteOrganizationFollower(requestParameters) {
|
797
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
798
|
+
}
|
520
799
|
/**
|
521
800
|
* Returns the details of a specific organization.
|
522
801
|
* @summary Get details of a organization
|
@@ -528,6 +807,28 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
528
807
|
getOrganization(requestParameters) {
|
529
808
|
return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
|
530
809
|
}
|
810
|
+
/**
|
811
|
+
* Lists users who are following the organization.
|
812
|
+
* @summary List followers of an organization
|
813
|
+
* @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters.
|
814
|
+
|
815
|
+
* @throws {RequiredError}
|
816
|
+
* @memberof OrganizationsApi
|
817
|
+
*/
|
818
|
+
getOrganizationFollowers(requestParameters) {
|
819
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
820
|
+
}
|
821
|
+
/**
|
822
|
+
* Lists changelogs about users have followed the organization.
|
823
|
+
* @summary List followers changelog of an organization
|
824
|
+
* @param {OrganizationsApiGetOrganizationFollowersChangelogRequest} requestParameters Request parameters.
|
825
|
+
|
826
|
+
* @throws {RequiredError}
|
827
|
+
* @memberof OrganizationsApi
|
828
|
+
*/
|
829
|
+
getOrganizationFollowersChangelog(requestParameters) {
|
830
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
831
|
+
}
|
531
832
|
/**
|
532
833
|
* Returns data about all organizations.
|
533
834
|
* @summary Get all organizations
|