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 ProductsApiAxiosParamCreator = function (configuration) {
|
|
71
71
|
options: localVarRequestOptions,
|
72
72
|
};
|
73
73
|
}),
|
74
|
+
/**
|
75
|
+
* Adds a user as a follower to the product.
|
76
|
+
* @summary Add a follower to a product
|
77
|
+
* @param {number} id The ID of the product
|
78
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
79
|
+
|
80
|
+
* @throws {RequiredError}
|
81
|
+
*/
|
82
|
+
addProductFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
|
83
|
+
// verify required parameter 'id' is not null or undefined
|
84
|
+
(0, common_1.assertParamExists)('addProductFollower', 'id', id);
|
85
|
+
const localVarPath = `/products/{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", [], 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
|
* Adds a new product variation.
|
76
113
|
* @summary Add a product variation
|
@@ -142,6 +179,44 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
142
179
|
options: localVarRequestOptions,
|
143
180
|
};
|
144
181
|
}),
|
182
|
+
/**
|
183
|
+
* Deletes a user follower from the product.
|
184
|
+
* @summary Delete a follower from a product
|
185
|
+
* @param {number} id The ID of the product
|
186
|
+
* @param {number} follower_id The ID of the following user
|
187
|
+
|
188
|
+
* @throws {RequiredError}
|
189
|
+
*/
|
190
|
+
deleteProductFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
|
191
|
+
// verify required parameter 'id' is not null or undefined
|
192
|
+
(0, common_1.assertParamExists)('deleteProductFollower', 'id', id);
|
193
|
+
// verify required parameter 'follower_id' is not null or undefined
|
194
|
+
(0, common_1.assertParamExists)('deleteProductFollower', 'follower_id', follower_id);
|
195
|
+
const localVarPath = `/products/{id}/followers/{follower_id}`
|
196
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
197
|
+
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
199
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
200
|
+
let baseOptions;
|
201
|
+
if (configuration) {
|
202
|
+
baseOptions = configuration.baseOptions;
|
203
|
+
}
|
204
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
205
|
+
const localVarHeaderParameter = {};
|
206
|
+
const localVarQueryParameter = {};
|
207
|
+
// authentication api_key required
|
208
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
209
|
+
// authentication oauth2 required
|
210
|
+
// oauth required
|
211
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
|
212
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
213
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
214
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
215
|
+
return {
|
216
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
217
|
+
options: localVarRequestOptions,
|
218
|
+
};
|
219
|
+
}),
|
145
220
|
/**
|
146
221
|
* Deletes a product variation.
|
147
222
|
* @summary Delete a product variation
|
@@ -214,6 +289,90 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
214
289
|
options: localVarRequestOptions,
|
215
290
|
};
|
216
291
|
}),
|
292
|
+
/**
|
293
|
+
* Lists users who are following the product.
|
294
|
+
* @summary List followers of a product
|
295
|
+
* @param {number} id The ID of the product
|
296
|
+
* @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.
|
297
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
298
|
+
|
299
|
+
* @throws {RequiredError}
|
300
|
+
*/
|
301
|
+
getProductFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
302
|
+
// verify required parameter 'id' is not null or undefined
|
303
|
+
(0, common_1.assertParamExists)('getProductFollowers', 'id', id);
|
304
|
+
const localVarPath = `/products/{id}/followers`
|
305
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
306
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
307
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
308
|
+
let baseOptions;
|
309
|
+
if (configuration) {
|
310
|
+
baseOptions = configuration.baseOptions;
|
311
|
+
}
|
312
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
313
|
+
const localVarHeaderParameter = {};
|
314
|
+
const localVarQueryParameter = {};
|
315
|
+
// authentication api_key required
|
316
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
317
|
+
// authentication oauth2 required
|
318
|
+
// oauth required
|
319
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
|
320
|
+
if (limit !== undefined) {
|
321
|
+
localVarQueryParameter['limit'] = limit;
|
322
|
+
}
|
323
|
+
if (cursor !== undefined) {
|
324
|
+
localVarQueryParameter['cursor'] = cursor;
|
325
|
+
}
|
326
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
328
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
329
|
+
return {
|
330
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
331
|
+
options: localVarRequestOptions,
|
332
|
+
};
|
333
|
+
}),
|
334
|
+
/**
|
335
|
+
* Lists changelogs about users have followed the product.
|
336
|
+
* @summary List followers changelog of a product
|
337
|
+
* @param {number} id The ID of the product
|
338
|
+
* @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.
|
339
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
340
|
+
|
341
|
+
* @throws {RequiredError}
|
342
|
+
*/
|
343
|
+
getProductFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
344
|
+
// verify required parameter 'id' is not null or undefined
|
345
|
+
(0, common_1.assertParamExists)('getProductFollowersChangelog', 'id', id);
|
346
|
+
const localVarPath = `/products/{id}/followers/changelog`
|
347
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
349
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
350
|
+
let baseOptions;
|
351
|
+
if (configuration) {
|
352
|
+
baseOptions = configuration.baseOptions;
|
353
|
+
}
|
354
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
355
|
+
const localVarHeaderParameter = {};
|
356
|
+
const localVarQueryParameter = {};
|
357
|
+
// authentication api_key required
|
358
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
359
|
+
// authentication oauth2 required
|
360
|
+
// oauth required
|
361
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
|
362
|
+
if (limit !== undefined) {
|
363
|
+
localVarQueryParameter['limit'] = limit;
|
364
|
+
}
|
365
|
+
if (cursor !== undefined) {
|
366
|
+
localVarQueryParameter['cursor'] = cursor;
|
367
|
+
}
|
368
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
369
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
370
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
371
|
+
return {
|
372
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
373
|
+
options: localVarRequestOptions,
|
374
|
+
};
|
375
|
+
}),
|
217
376
|
/**
|
218
377
|
* Returns data about all product variations.
|
219
378
|
* @summary Get all product variations
|
@@ -475,6 +634,20 @@ const ProductsApiFp = function (configuration) {
|
|
475
634
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
476
635
|
});
|
477
636
|
},
|
637
|
+
/**
|
638
|
+
* Adds a user as a follower to the product.
|
639
|
+
* @summary Add a follower to a product
|
640
|
+
* @param {number} id The ID of the product
|
641
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
642
|
+
|
643
|
+
* @throws {RequiredError}
|
644
|
+
*/
|
645
|
+
addProductFollower(id, AddDealFollowerRequest) {
|
646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProductFollower(id, AddDealFollowerRequest);
|
648
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
649
|
+
});
|
650
|
+
},
|
478
651
|
/**
|
479
652
|
* Adds a new product variation.
|
480
653
|
* @summary Add a product variation
|
@@ -502,6 +675,20 @@ const ProductsApiFp = function (configuration) {
|
|
502
675
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
503
676
|
});
|
504
677
|
},
|
678
|
+
/**
|
679
|
+
* Deletes a user follower from the product.
|
680
|
+
* @summary Delete a follower from a product
|
681
|
+
* @param {number} id The ID of the product
|
682
|
+
* @param {number} follower_id The ID of the following user
|
683
|
+
|
684
|
+
* @throws {RequiredError}
|
685
|
+
*/
|
686
|
+
deleteProductFollower(id, follower_id) {
|
687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
688
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductFollower(id, follower_id);
|
689
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
690
|
+
});
|
691
|
+
},
|
505
692
|
/**
|
506
693
|
* Deletes a product variation.
|
507
694
|
* @summary Delete a product variation
|
@@ -529,6 +716,36 @@ const ProductsApiFp = function (configuration) {
|
|
529
716
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
530
717
|
});
|
531
718
|
},
|
719
|
+
/**
|
720
|
+
* Lists users who are following the product.
|
721
|
+
* @summary List followers of a product
|
722
|
+
* @param {number} id The ID of the product
|
723
|
+
* @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.
|
724
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
725
|
+
|
726
|
+
* @throws {RequiredError}
|
727
|
+
*/
|
728
|
+
getProductFollowers(id, limit, cursor) {
|
729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
730
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowers(id, limit, cursor);
|
731
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
732
|
+
});
|
733
|
+
},
|
734
|
+
/**
|
735
|
+
* Lists changelogs about users have followed the product.
|
736
|
+
* @summary List followers changelog of a product
|
737
|
+
* @param {number} id The ID of the product
|
738
|
+
* @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.
|
739
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
740
|
+
|
741
|
+
* @throws {RequiredError}
|
742
|
+
*/
|
743
|
+
getProductFollowersChangelog(id, limit, cursor) {
|
744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
745
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowersChangelog(id, limit, cursor);
|
746
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
747
|
+
});
|
748
|
+
},
|
532
749
|
/**
|
533
750
|
* Returns data about all product variations.
|
534
751
|
* @summary Get all product variations
|
@@ -631,6 +848,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
631
848
|
addProduct(requestParameters = {}) {
|
632
849
|
return localVarFp.addProduct(requestParameters.AddProductRequest).then((request) => request(axios, basePath));
|
633
850
|
},
|
851
|
+
/**
|
852
|
+
* Adds a user as a follower to the product.
|
853
|
+
* @summary Add a follower to a product
|
854
|
+
* @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters.
|
855
|
+
|
856
|
+
* @throws {RequiredError}
|
857
|
+
*/
|
858
|
+
addProductFollower(requestParameters) {
|
859
|
+
return localVarFp.addProductFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
860
|
+
},
|
634
861
|
/**
|
635
862
|
* Adds a new product variation.
|
636
863
|
* @summary Add a product variation
|
@@ -651,6 +878,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
651
878
|
deleteProduct(requestParameters) {
|
652
879
|
return localVarFp.deleteProduct(requestParameters.id).then((request) => request(axios, basePath));
|
653
880
|
},
|
881
|
+
/**
|
882
|
+
* Deletes a user follower from the product.
|
883
|
+
* @summary Delete a follower from a product
|
884
|
+
* @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters.
|
885
|
+
|
886
|
+
* @throws {RequiredError}
|
887
|
+
*/
|
888
|
+
deleteProductFollower(requestParameters) {
|
889
|
+
return localVarFp.deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
890
|
+
},
|
654
891
|
/**
|
655
892
|
* Deletes a product variation.
|
656
893
|
* @summary Delete a product variation
|
@@ -671,6 +908,26 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
671
908
|
getProduct(requestParameters) {
|
672
909
|
return localVarFp.getProduct(requestParameters.id).then((request) => request(axios, basePath));
|
673
910
|
},
|
911
|
+
/**
|
912
|
+
* Lists users who are following the product.
|
913
|
+
* @summary List followers of a product
|
914
|
+
* @param {ProductsApiGetProductFollowersRequest} requestParameters Request parameters.
|
915
|
+
|
916
|
+
* @throws {RequiredError}
|
917
|
+
*/
|
918
|
+
getProductFollowers(requestParameters) {
|
919
|
+
return localVarFp.getProductFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
920
|
+
},
|
921
|
+
/**
|
922
|
+
* Lists changelogs about users have followed the product.
|
923
|
+
* @summary List followers changelog of a product
|
924
|
+
* @param {ProductsApiGetProductFollowersChangelogRequest} requestParameters Request parameters.
|
925
|
+
|
926
|
+
* @throws {RequiredError}
|
927
|
+
*/
|
928
|
+
getProductFollowersChangelog(requestParameters) {
|
929
|
+
return localVarFp.getProductFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
930
|
+
},
|
674
931
|
/**
|
675
932
|
* Returns data about all product variations.
|
676
933
|
* @summary Get all product variations
|
@@ -742,6 +999,17 @@ class ProductsApi extends base_1.BaseAPI {
|
|
742
999
|
addProduct(requestParameters = {}) {
|
743
1000
|
return (0, exports.ProductsApiFp)(this.configuration).addProduct(requestParameters.AddProductRequest).then((request) => request(this.axios, this.basePath));
|
744
1001
|
}
|
1002
|
+
/**
|
1003
|
+
* Adds a user as a follower to the product.
|
1004
|
+
* @summary Add a follower to a product
|
1005
|
+
* @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters.
|
1006
|
+
|
1007
|
+
* @throws {RequiredError}
|
1008
|
+
* @memberof ProductsApi
|
1009
|
+
*/
|
1010
|
+
addProductFollower(requestParameters) {
|
1011
|
+
return (0, exports.ProductsApiFp)(this.configuration).addProductFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
1012
|
+
}
|
745
1013
|
/**
|
746
1014
|
* Adds a new product variation.
|
747
1015
|
* @summary Add a product variation
|
@@ -764,6 +1032,17 @@ class ProductsApi extends base_1.BaseAPI {
|
|
764
1032
|
deleteProduct(requestParameters) {
|
765
1033
|
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
766
1034
|
}
|
1035
|
+
/**
|
1036
|
+
* Deletes a user follower from the product.
|
1037
|
+
* @summary Delete a follower from a product
|
1038
|
+
* @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters.
|
1039
|
+
|
1040
|
+
* @throws {RequiredError}
|
1041
|
+
* @memberof ProductsApi
|
1042
|
+
*/
|
1043
|
+
deleteProductFollower(requestParameters) {
|
1044
|
+
return (0, exports.ProductsApiFp)(this.configuration).deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
1045
|
+
}
|
767
1046
|
/**
|
768
1047
|
* Deletes a product variation.
|
769
1048
|
* @summary Delete a product variation
|
@@ -786,6 +1065,28 @@ class ProductsApi extends base_1.BaseAPI {
|
|
786
1065
|
getProduct(requestParameters) {
|
787
1066
|
return (0, exports.ProductsApiFp)(this.configuration).getProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
788
1067
|
}
|
1068
|
+
/**
|
1069
|
+
* Lists users who are following the product.
|
1070
|
+
* @summary List followers of a product
|
1071
|
+
* @param {ProductsApiGetProductFollowersRequest} requestParameters Request parameters.
|
1072
|
+
|
1073
|
+
* @throws {RequiredError}
|
1074
|
+
* @memberof ProductsApi
|
1075
|
+
*/
|
1076
|
+
getProductFollowers(requestParameters) {
|
1077
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
1078
|
+
}
|
1079
|
+
/**
|
1080
|
+
* Lists changelogs about users have followed the product.
|
1081
|
+
* @summary List followers changelog of a product
|
1082
|
+
* @param {ProductsApiGetProductFollowersChangelogRequest} requestParameters Request parameters.
|
1083
|
+
|
1084
|
+
* @throws {RequiredError}
|
1085
|
+
* @memberof ProductsApi
|
1086
|
+
*/
|
1087
|
+
getProductFollowersChangelog(requestParameters) {
|
1088
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
1089
|
+
}
|
789
1090
|
/**
|
790
1091
|
* Returns data about all product variations.
|
791
1092
|
* @summary Get all product variations
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v2
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
import type { Configuration } from '../configuration';
|
13
|
+
import type { AxiosInstance } from 'axios';
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
15
|
+
import { GetFollowersResponse } from '../models';
|
16
|
+
/**
|
17
|
+
* UsersApi - axios parameter creator
|
18
|
+
* @export
|
19
|
+
*/
|
20
|
+
export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
|
21
|
+
/**
|
22
|
+
* Lists users who are following the user.
|
23
|
+
* @summary List followers of a user
|
24
|
+
* @param {number} id The ID of the user
|
25
|
+
* @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.
|
26
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
27
|
+
|
28
|
+
* @throws {RequiredError}
|
29
|
+
*/
|
30
|
+
getUserFollowers: (id: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* UsersApi - functional programming interface
|
34
|
+
* @export
|
35
|
+
*/
|
36
|
+
export declare const UsersApiFp: (configuration?: Configuration) => {
|
37
|
+
/**
|
38
|
+
* Lists users who are following the user.
|
39
|
+
* @summary List followers of a user
|
40
|
+
* @param {number} id The ID of the user
|
41
|
+
* @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.
|
42
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
43
|
+
|
44
|
+
* @throws {RequiredError}
|
45
|
+
*/
|
46
|
+
getUserFollowers(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowersResponse>>;
|
47
|
+
};
|
48
|
+
/**
|
49
|
+
* UsersApi - factory interface
|
50
|
+
* @export
|
51
|
+
*/
|
52
|
+
export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
53
|
+
/**
|
54
|
+
* Lists users who are following the user.
|
55
|
+
* @summary List followers of a user
|
56
|
+
* @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
|
57
|
+
|
58
|
+
* @throws {RequiredError}
|
59
|
+
*/
|
60
|
+
getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest): Promise<GetFollowersResponse>;
|
61
|
+
};
|
62
|
+
/**
|
63
|
+
* Request parameters for getUserFollowers operation in UsersApi.
|
64
|
+
* @export
|
65
|
+
* @interface UsersApiGetUserFollowersRequest
|
66
|
+
*/
|
67
|
+
export interface UsersApiGetUserFollowersRequest {
|
68
|
+
/**
|
69
|
+
* The ID of the user
|
70
|
+
* @type {number}
|
71
|
+
* @memberof UsersApiGetUserFollowers
|
72
|
+
*/
|
73
|
+
readonly id: number;
|
74
|
+
/**
|
75
|
+
* 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.
|
76
|
+
* @type {number}
|
77
|
+
* @memberof UsersApiGetUserFollowers
|
78
|
+
*/
|
79
|
+
readonly limit?: number;
|
80
|
+
/**
|
81
|
+
* For pagination, the marker (an opaque string value) representing the first item on the next page
|
82
|
+
* @type {string}
|
83
|
+
* @memberof UsersApiGetUserFollowers
|
84
|
+
*/
|
85
|
+
readonly cursor?: string;
|
86
|
+
}
|
87
|
+
/**
|
88
|
+
* UsersApi - object-oriented interface
|
89
|
+
* @export
|
90
|
+
* @class UsersApi
|
91
|
+
* @extends {BaseAPI}
|
92
|
+
*/
|
93
|
+
export declare class UsersApi extends BaseAPI {
|
94
|
+
/**
|
95
|
+
* Lists users who are following the user.
|
96
|
+
* @summary List followers of a user
|
97
|
+
* @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
|
98
|
+
|
99
|
+
* @throws {RequiredError}
|
100
|
+
* @memberof UsersApi
|
101
|
+
*/
|
102
|
+
getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest): Promise<GetFollowersResponse>;
|
103
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* Pipedrive API v2
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
9
|
+
*
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
22
|
+
});
|
23
|
+
};
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
26
|
+
};
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
30
|
+
// Some imports not used depending on template conditions
|
31
|
+
// @ts-ignore
|
32
|
+
const common_1 = require("../common");
|
33
|
+
// @ts-ignore
|
34
|
+
const base_1 = require("../base");
|
35
|
+
/**
|
36
|
+
* UsersApi - axios parameter creator
|
37
|
+
* @export
|
38
|
+
*/
|
39
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
40
|
+
return {
|
41
|
+
/**
|
42
|
+
* Lists users who are following the user.
|
43
|
+
* @summary List followers of a user
|
44
|
+
* @param {number} id The ID of the user
|
45
|
+
* @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.
|
46
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
47
|
+
|
48
|
+
* @throws {RequiredError}
|
49
|
+
*/
|
50
|
+
getUserFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
51
|
+
// verify required parameter 'id' is not null or undefined
|
52
|
+
(0, common_1.assertParamExists)('getUserFollowers', 'id', id);
|
53
|
+
const localVarPath = `/users/{id}/followers`
|
54
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
56
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
57
|
+
let baseOptions;
|
58
|
+
if (configuration) {
|
59
|
+
baseOptions = configuration.baseOptions;
|
60
|
+
}
|
61
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
62
|
+
const localVarHeaderParameter = {};
|
63
|
+
const localVarQueryParameter = {};
|
64
|
+
// authentication api_key required
|
65
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
66
|
+
// authentication oauth2 required
|
67
|
+
// oauth required
|
68
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
|
69
|
+
if (limit !== undefined) {
|
70
|
+
localVarQueryParameter['limit'] = limit;
|
71
|
+
}
|
72
|
+
if (cursor !== undefined) {
|
73
|
+
localVarQueryParameter['cursor'] = cursor;
|
74
|
+
}
|
75
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
76
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
77
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
78
|
+
return {
|
79
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
80
|
+
options: localVarRequestOptions,
|
81
|
+
};
|
82
|
+
}),
|
83
|
+
};
|
84
|
+
};
|
85
|
+
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
86
|
+
/**
|
87
|
+
* UsersApi - functional programming interface
|
88
|
+
* @export
|
89
|
+
*/
|
90
|
+
const UsersApiFp = function (configuration) {
|
91
|
+
const localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
|
92
|
+
return {
|
93
|
+
/**
|
94
|
+
* Lists users who are following the user.
|
95
|
+
* @summary List followers of a user
|
96
|
+
* @param {number} id The ID of the user
|
97
|
+
* @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.
|
98
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
99
|
+
|
100
|
+
* @throws {RequiredError}
|
101
|
+
*/
|
102
|
+
getUserFollowers(id, limit, cursor) {
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
104
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserFollowers(id, limit, cursor);
|
105
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
106
|
+
});
|
107
|
+
},
|
108
|
+
};
|
109
|
+
};
|
110
|
+
exports.UsersApiFp = UsersApiFp;
|
111
|
+
/**
|
112
|
+
* UsersApi - factory interface
|
113
|
+
* @export
|
114
|
+
*/
|
115
|
+
const UsersApiFactory = function (configuration, basePath, axios) {
|
116
|
+
const localVarFp = (0, exports.UsersApiFp)(configuration);
|
117
|
+
return {
|
118
|
+
/**
|
119
|
+
* Lists users who are following the user.
|
120
|
+
* @summary List followers of a user
|
121
|
+
* @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
|
122
|
+
|
123
|
+
* @throws {RequiredError}
|
124
|
+
*/
|
125
|
+
getUserFollowers(requestParameters) {
|
126
|
+
return localVarFp.getUserFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
127
|
+
},
|
128
|
+
};
|
129
|
+
};
|
130
|
+
exports.UsersApiFactory = UsersApiFactory;
|
131
|
+
/**
|
132
|
+
* UsersApi - object-oriented interface
|
133
|
+
* @export
|
134
|
+
* @class UsersApi
|
135
|
+
* @extends {BaseAPI}
|
136
|
+
*/
|
137
|
+
class UsersApi extends base_1.BaseAPI {
|
138
|
+
/**
|
139
|
+
* Lists users who are following the user.
|
140
|
+
* @summary List followers of a user
|
141
|
+
* @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
|
142
|
+
|
143
|
+
* @throws {RequiredError}
|
144
|
+
* @memberof UsersApi
|
145
|
+
*/
|
146
|
+
getUserFollowers(requestParameters) {
|
147
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
148
|
+
}
|
149
|
+
}
|
150
|
+
exports.UsersApi = UsersApi;
|
package/dist/versions/v2/api.js
CHANGED
@@ -37,3 +37,4 @@ __exportStar(require("./api/persons-api"), exports);
|
|
37
37
|
__exportStar(require("./api/pipelines-api"), exports);
|
38
38
|
__exportStar(require("./api/products-api"), exports);
|
39
39
|
__exportStar(require("./api/stages-api"), exports);
|
40
|
+
__exportStar(require("./api/users-api"), exports);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v2
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
*
|
14
|
+
* @export
|
15
|
+
* @interface AddDealFollowerRequest
|
16
|
+
*/
|
17
|
+
export interface AddDealFollowerRequest {
|
18
|
+
/**
|
19
|
+
* The ID of the user to add as a follower
|
20
|
+
* @type {number}
|
21
|
+
*/
|
22
|
+
'user_id': number;
|
23
|
+
}
|