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
@@ -65,6 +65,43 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
65
65
|
options: localVarRequestOptions,
|
66
66
|
};
|
67
67
|
}),
|
68
|
+
/**
|
69
|
+
* Adds a user as a follower to the organization.
|
70
|
+
* @summary Add a follower to an organization
|
71
|
+
* @param {number} id The ID of the organization
|
72
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
73
|
+
|
74
|
+
* @throws {RequiredError}
|
75
|
+
*/
|
76
|
+
addOrganizationFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
|
77
|
+
// verify required parameter 'id' is not null or undefined
|
78
|
+
assertParamExists('addOrganizationFollower', 'id', id);
|
79
|
+
const localVarPath = `/organizations/{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 organization as deleted. After 30 days, the organization will be permanently deleted.
|
70
107
|
* @summary Delete a organization
|
@@ -99,6 +136,44 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
99
136
|
options: localVarRequestOptions,
|
100
137
|
};
|
101
138
|
}),
|
139
|
+
/**
|
140
|
+
* Deletes a user follower from the organization.
|
141
|
+
* @summary Delete a follower from an organization
|
142
|
+
* @param {number} id The ID of the organization
|
143
|
+
* @param {number} follower_id The ID of the following user
|
144
|
+
|
145
|
+
* @throws {RequiredError}
|
146
|
+
*/
|
147
|
+
deleteOrganizationFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
|
148
|
+
// verify required parameter 'id' is not null or undefined
|
149
|
+
assertParamExists('deleteOrganizationFollower', 'id', id);
|
150
|
+
// verify required parameter 'follower_id' is not null or undefined
|
151
|
+
assertParamExists('deleteOrganizationFollower', 'follower_id', follower_id);
|
152
|
+
const localVarPath = `/organizations/{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 organization.
|
104
179
|
* @summary Get details of a organization
|
@@ -141,6 +216,90 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
141
216
|
options: localVarRequestOptions,
|
142
217
|
};
|
143
218
|
}),
|
219
|
+
/**
|
220
|
+
* Lists users who are following the organization.
|
221
|
+
* @summary List followers of an organization
|
222
|
+
* @param {number} id The ID of the organization
|
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
|
+
getOrganizationFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
229
|
+
// verify required parameter 'id' is not null or undefined
|
230
|
+
assertParamExists('getOrganizationFollowers', 'id', id);
|
231
|
+
const localVarPath = `/organizations/{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 organization.
|
263
|
+
* @summary List followers changelog of an organization
|
264
|
+
* @param {number} id The ID of the organization
|
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
|
+
getOrganizationFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
271
|
+
// verify required parameter 'id' is not null or undefined
|
272
|
+
assertParamExists('getOrganizationFollowersChangelog', 'id', id);
|
273
|
+
const localVarPath = `/organizations/{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 organizations.
|
146
305
|
* @summary Get all organizations
|
@@ -326,6 +485,20 @@ export const OrganizationsApiFp = function (configuration) {
|
|
326
485
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
327
486
|
});
|
328
487
|
},
|
488
|
+
/**
|
489
|
+
* Adds a user as a follower to the organization.
|
490
|
+
* @summary Add a follower to an organization
|
491
|
+
* @param {number} id The ID of the organization
|
492
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
493
|
+
|
494
|
+
* @throws {RequiredError}
|
495
|
+
*/
|
496
|
+
addOrganizationFollower(id, AddDealFollowerRequest) {
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
498
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addOrganizationFollower(id, AddDealFollowerRequest);
|
499
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
500
|
+
});
|
501
|
+
},
|
329
502
|
/**
|
330
503
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
331
504
|
* @summary Delete a organization
|
@@ -339,6 +512,20 @@ export const OrganizationsApiFp = function (configuration) {
|
|
339
512
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
340
513
|
});
|
341
514
|
},
|
515
|
+
/**
|
516
|
+
* Deletes a user follower from the organization.
|
517
|
+
* @summary Delete a follower from an organization
|
518
|
+
* @param {number} id The ID of the organization
|
519
|
+
* @param {number} follower_id The ID of the following user
|
520
|
+
|
521
|
+
* @throws {RequiredError}
|
522
|
+
*/
|
523
|
+
deleteOrganizationFollower(id, follower_id) {
|
524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
525
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationFollower(id, follower_id);
|
526
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
527
|
+
});
|
528
|
+
},
|
342
529
|
/**
|
343
530
|
* Returns the details of a specific organization.
|
344
531
|
* @summary Get details of a organization
|
@@ -354,6 +541,36 @@ export const OrganizationsApiFp = function (configuration) {
|
|
354
541
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
355
542
|
});
|
356
543
|
},
|
544
|
+
/**
|
545
|
+
* Lists users who are following the organization.
|
546
|
+
* @summary List followers of an organization
|
547
|
+
* @param {number} id The ID of the organization
|
548
|
+
* @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.
|
549
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
550
|
+
|
551
|
+
* @throws {RequiredError}
|
552
|
+
*/
|
553
|
+
getOrganizationFollowers(id, limit, cursor) {
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
555
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationFollowers(id, limit, cursor);
|
556
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
557
|
+
});
|
558
|
+
},
|
559
|
+
/**
|
560
|
+
* Lists changelogs about users have followed the organization.
|
561
|
+
* @summary List followers changelog of an organization
|
562
|
+
* @param {number} id The ID of the organization
|
563
|
+
* @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.
|
564
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
565
|
+
|
566
|
+
* @throws {RequiredError}
|
567
|
+
*/
|
568
|
+
getOrganizationFollowersChangelog(id, limit, cursor) {
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
570
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationFollowersChangelog(id, limit, cursor);
|
571
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
572
|
+
});
|
573
|
+
},
|
357
574
|
/**
|
358
575
|
* Returns data about all organizations.
|
359
576
|
* @summary Get all organizations
|
@@ -427,6 +644,16 @@ export const OrganizationsApiFactory = function (configuration, basePath, axios)
|
|
427
644
|
addOrganization(requestParameters = {}) {
|
428
645
|
return localVarFp.addOrganization(requestParameters.AddOrganizationRequest).then((request) => request(axios, basePath));
|
429
646
|
},
|
647
|
+
/**
|
648
|
+
* Adds a user as a follower to the organization.
|
649
|
+
* @summary Add a follower to an organization
|
650
|
+
* @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters.
|
651
|
+
|
652
|
+
* @throws {RequiredError}
|
653
|
+
*/
|
654
|
+
addOrganizationFollower(requestParameters) {
|
655
|
+
return localVarFp.addOrganizationFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
656
|
+
},
|
430
657
|
/**
|
431
658
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
432
659
|
* @summary Delete a organization
|
@@ -437,6 +664,16 @@ export const OrganizationsApiFactory = function (configuration, basePath, axios)
|
|
437
664
|
deleteOrganization(requestParameters) {
|
438
665
|
return localVarFp.deleteOrganization(requestParameters.id).then((request) => request(axios, basePath));
|
439
666
|
},
|
667
|
+
/**
|
668
|
+
* Deletes a user follower from the organization.
|
669
|
+
* @summary Delete a follower from an organization
|
670
|
+
* @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters.
|
671
|
+
|
672
|
+
* @throws {RequiredError}
|
673
|
+
*/
|
674
|
+
deleteOrganizationFollower(requestParameters) {
|
675
|
+
return localVarFp.deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
676
|
+
},
|
440
677
|
/**
|
441
678
|
* Returns the details of a specific organization.
|
442
679
|
* @summary Get details of a organization
|
@@ -447,6 +684,26 @@ export const OrganizationsApiFactory = function (configuration, basePath, axios)
|
|
447
684
|
getOrganization(requestParameters) {
|
448
685
|
return localVarFp.getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
|
449
686
|
},
|
687
|
+
/**
|
688
|
+
* Lists users who are following the organization.
|
689
|
+
* @summary List followers of an organization
|
690
|
+
* @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters.
|
691
|
+
|
692
|
+
* @throws {RequiredError}
|
693
|
+
*/
|
694
|
+
getOrganizationFollowers(requestParameters) {
|
695
|
+
return localVarFp.getOrganizationFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
696
|
+
},
|
697
|
+
/**
|
698
|
+
* Lists changelogs about users have followed the organization.
|
699
|
+
* @summary List followers changelog of an organization
|
700
|
+
* @param {OrganizationsApiGetOrganizationFollowersChangelogRequest} requestParameters Request parameters.
|
701
|
+
|
702
|
+
* @throws {RequiredError}
|
703
|
+
*/
|
704
|
+
getOrganizationFollowersChangelog(requestParameters) {
|
705
|
+
return localVarFp.getOrganizationFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
706
|
+
},
|
450
707
|
/**
|
451
708
|
* Returns data about all organizations.
|
452
709
|
* @summary Get all organizations
|
@@ -497,6 +754,17 @@ export class OrganizationsApi extends BaseAPI {
|
|
497
754
|
addOrganization(requestParameters = {}) {
|
498
755
|
return OrganizationsApiFp(this.configuration).addOrganization(requestParameters.AddOrganizationRequest).then((request) => request(this.axios, this.basePath));
|
499
756
|
}
|
757
|
+
/**
|
758
|
+
* Adds a user as a follower to the organization.
|
759
|
+
* @summary Add a follower to an organization
|
760
|
+
* @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters.
|
761
|
+
|
762
|
+
* @throws {RequiredError}
|
763
|
+
* @memberof OrganizationsApi
|
764
|
+
*/
|
765
|
+
addOrganizationFollower(requestParameters) {
|
766
|
+
return OrganizationsApiFp(this.configuration).addOrganizationFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
767
|
+
}
|
500
768
|
/**
|
501
769
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
502
770
|
* @summary Delete a organization
|
@@ -508,6 +776,17 @@ export class OrganizationsApi extends BaseAPI {
|
|
508
776
|
deleteOrganization(requestParameters) {
|
509
777
|
return OrganizationsApiFp(this.configuration).deleteOrganization(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
510
778
|
}
|
779
|
+
/**
|
780
|
+
* Deletes a user follower from the organization.
|
781
|
+
* @summary Delete a follower from an organization
|
782
|
+
* @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters.
|
783
|
+
|
784
|
+
* @throws {RequiredError}
|
785
|
+
* @memberof OrganizationsApi
|
786
|
+
*/
|
787
|
+
deleteOrganizationFollower(requestParameters) {
|
788
|
+
return OrganizationsApiFp(this.configuration).deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
789
|
+
}
|
511
790
|
/**
|
512
791
|
* Returns the details of a specific organization.
|
513
792
|
* @summary Get details of a organization
|
@@ -519,6 +798,28 @@ export class OrganizationsApi extends BaseAPI {
|
|
519
798
|
getOrganization(requestParameters) {
|
520
799
|
return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
|
521
800
|
}
|
801
|
+
/**
|
802
|
+
* Lists users who are following the organization.
|
803
|
+
* @summary List followers of an organization
|
804
|
+
* @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters.
|
805
|
+
|
806
|
+
* @throws {RequiredError}
|
807
|
+
* @memberof OrganizationsApi
|
808
|
+
*/
|
809
|
+
getOrganizationFollowers(requestParameters) {
|
810
|
+
return OrganizationsApiFp(this.configuration).getOrganizationFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
811
|
+
}
|
812
|
+
/**
|
813
|
+
* Lists changelogs about users have followed the organization.
|
814
|
+
* @summary List followers changelog of an organization
|
815
|
+
* @param {OrganizationsApiGetOrganizationFollowersChangelogRequest} requestParameters Request parameters.
|
816
|
+
|
817
|
+
* @throws {RequiredError}
|
818
|
+
* @memberof OrganizationsApi
|
819
|
+
*/
|
820
|
+
getOrganizationFollowersChangelog(requestParameters) {
|
821
|
+
return OrganizationsApiFp(this.configuration).getOrganizationFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
822
|
+
}
|
522
823
|
/**
|
523
824
|
* Returns data about all organizations.
|
524
825
|
* @summary Get all organizations
|