pipedrive 13.2.9 → 13.3.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/CHANGELOG.md +4 -0
- package/README.md +3 -0
- package/dist/api/BillingApi.js +94 -0
- package/dist/index.js +24 -0
- package/dist/model/SubscriptionAddonsResponse.js +130 -0
- package/dist/model/SubscriptionAddonsResponseAllOf.js +90 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -8,6 +8,10 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## 13.3.0
|
12
|
+
### Added
|
13
|
+
- Added `GET /billing/subscriptions/addons` endpoint
|
14
|
+
|
11
15
|
## 13.2.9
|
12
16
|
### Changed
|
13
17
|
- Added missing oauth scopes to /products/{id}/permittedUsers endpoint
|
package/README.md
CHANGED
@@ -276,6 +276,7 @@ Class | Method | HTTP request | Description
|
|
276
276
|
*Pipedrive.ActivityTypesApi* | [**deleteActivityTypes**](docs/ActivityTypesApi.md#deleteActivityTypes) | **DELETE** /activityTypes | Delete multiple activity types in bulk
|
277
277
|
*Pipedrive.ActivityTypesApi* | [**getActivityTypes**](docs/ActivityTypesApi.md#getActivityTypes) | **GET** /activityTypes | Get all activity types
|
278
278
|
*Pipedrive.ActivityTypesApi* | [**updateActivityType**](docs/ActivityTypesApi.md#updateActivityType) | **PUT** /activityTypes/{id} | Update an activity type
|
279
|
+
*Pipedrive.BillingApi* | [**getCompanyAddons**](docs/BillingApi.md#getCompanyAddons) | **GET** /billing/subscriptions/addons | Get all add-ons for a single company
|
279
280
|
*Pipedrive.CallLogsApi* | [**addCallLog**](docs/CallLogsApi.md#addCallLog) | **POST** /callLogs | Add a call log
|
280
281
|
*Pipedrive.CallLogsApi* | [**addCallLogAudioFile**](docs/CallLogsApi.md#addCallLogAudioFile) | **POST** /callLogs/{id}/recordings | Attach an audio file to the call log
|
281
282
|
*Pipedrive.CallLogsApi* | [**deleteCallLog**](docs/CallLogsApi.md#deleteCallLog) | **DELETE** /callLogs/{id} | Delete a call log
|
@@ -1139,6 +1140,8 @@ Class | Method | HTTP request | Description
|
|
1139
1140
|
- [Pipedrive.StageWithPipelineInfoAllOf](docs/StageWithPipelineInfoAllOf.md)
|
1140
1141
|
- [Pipedrive.SubRole](docs/SubRole.md)
|
1141
1142
|
- [Pipedrive.SubRoleAllOf](docs/SubRoleAllOf.md)
|
1143
|
+
- [Pipedrive.SubscriptionAddonsResponse](docs/SubscriptionAddonsResponse.md)
|
1144
|
+
- [Pipedrive.SubscriptionAddonsResponseAllOf](docs/SubscriptionAddonsResponseAllOf.md)
|
1142
1145
|
- [Pipedrive.SubscriptionInstallmentCreateRequest](docs/SubscriptionInstallmentCreateRequest.md)
|
1143
1146
|
- [Pipedrive.SubscriptionInstallmentUpdateRequest](docs/SubscriptionInstallmentUpdateRequest.md)
|
1144
1147
|
- [Pipedrive.SubscriptionItem](docs/SubscriptionItem.md)
|
@@ -0,0 +1,94 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11
|
+
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
13
|
+
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
15
|
+
|
16
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
17
|
+
|
18
|
+
var _SubscriptionAddonsResponse = _interopRequireDefault(require("../model/SubscriptionAddonsResponse"));
|
19
|
+
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
21
|
+
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Billing service.
|
26
|
+
* @module api/BillingApi
|
27
|
+
* @version 1.0.0
|
28
|
+
*/
|
29
|
+
var BillingApi = /*#__PURE__*/function () {
|
30
|
+
/**
|
31
|
+
* Constructs a new BillingApi.
|
32
|
+
* @alias module:api/BillingApi
|
33
|
+
* @class
|
34
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
35
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
36
|
+
*/
|
37
|
+
function BillingApi(apiClient) {
|
38
|
+
(0, _classCallCheck2["default"])(this, BillingApi);
|
39
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Get all add-ons for a single company
|
43
|
+
* Returns the add-ons for a single company.
|
44
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionAddonsResponse} and HTTP response
|
45
|
+
*/
|
46
|
+
|
47
|
+
|
48
|
+
(0, _createClass2["default"])(BillingApi, [{
|
49
|
+
key: "getCompanyAddonsWithHttpInfo",
|
50
|
+
value: function getCompanyAddonsWithHttpInfo() {
|
51
|
+
var opts = {};
|
52
|
+
var postBody = null;
|
53
|
+
var pathParams = {};
|
54
|
+
var queryParams = {};
|
55
|
+
var headerParams = {};
|
56
|
+
var formParams = {};
|
57
|
+
var formParamArray = [];
|
58
|
+
var contentTypes = [];
|
59
|
+
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
60
|
+
var isJSON = contentTypes.includes('application/json');
|
61
|
+
|
62
|
+
if (isJSON) {
|
63
|
+
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
64
|
+
} else if (isURLEncoded) {
|
65
|
+
for (var key in opts) {
|
66
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
67
|
+
formParams[key] = opts[key];
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
var authNames = ['api_key', 'oauth2'];
|
73
|
+
var accepts = ['application/json'];
|
74
|
+
var returnType = _SubscriptionAddonsResponse["default"];
|
75
|
+
return this.apiClient.callApi('/billing/subscriptions/addons', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
76
|
+
}
|
77
|
+
/**
|
78
|
+
* Get all add-ons for a single company
|
79
|
+
* Returns the add-ons for a single company.
|
80
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionAddonsResponse}
|
81
|
+
*/
|
82
|
+
|
83
|
+
}, {
|
84
|
+
key: "getCompanyAddons",
|
85
|
+
value: function getCompanyAddons() {
|
86
|
+
return this.getCompanyAddonsWithHttpInfo().then(function (response_and_data) {
|
87
|
+
return response_and_data;
|
88
|
+
});
|
89
|
+
}
|
90
|
+
}]);
|
91
|
+
return BillingApi;
|
92
|
+
}();
|
93
|
+
|
94
|
+
exports["default"] = BillingApi;
|
package/dist/index.js
CHANGED
@@ -701,6 +701,12 @@ Object.defineProperty(exports, "BasicProductField", {
|
|
701
701
|
return _BasicProductField["default"];
|
702
702
|
}
|
703
703
|
});
|
704
|
+
Object.defineProperty(exports, "BillingApi", {
|
705
|
+
enumerable: true,
|
706
|
+
get: function get() {
|
707
|
+
return _BillingApi["default"];
|
708
|
+
}
|
709
|
+
});
|
704
710
|
Object.defineProperty(exports, "BulkDeleteResponse", {
|
705
711
|
enumerable: true,
|
706
712
|
get: function get() {
|
@@ -3977,6 +3983,18 @@ Object.defineProperty(exports, "SubRoleAllOf", {
|
|
3977
3983
|
return _SubRoleAllOf["default"];
|
3978
3984
|
}
|
3979
3985
|
});
|
3986
|
+
Object.defineProperty(exports, "SubscriptionAddonsResponse", {
|
3987
|
+
enumerable: true,
|
3988
|
+
get: function get() {
|
3989
|
+
return _SubscriptionAddonsResponse["default"];
|
3990
|
+
}
|
3991
|
+
});
|
3992
|
+
Object.defineProperty(exports, "SubscriptionAddonsResponseAllOf", {
|
3993
|
+
enumerable: true,
|
3994
|
+
get: function get() {
|
3995
|
+
return _SubscriptionAddonsResponseAllOf["default"];
|
3996
|
+
}
|
3997
|
+
});
|
3980
3998
|
Object.defineProperty(exports, "SubscriptionInstallmentCreateRequest", {
|
3981
3999
|
enumerable: true,
|
3982
4000
|
get: function get() {
|
@@ -5632,6 +5650,10 @@ var _SubRole = _interopRequireDefault(require("./model/SubRole"));
|
|
5632
5650
|
|
5633
5651
|
var _SubRoleAllOf = _interopRequireDefault(require("./model/SubRoleAllOf"));
|
5634
5652
|
|
5653
|
+
var _SubscriptionAddonsResponse = _interopRequireDefault(require("./model/SubscriptionAddonsResponse"));
|
5654
|
+
|
5655
|
+
var _SubscriptionAddonsResponseAllOf = _interopRequireDefault(require("./model/SubscriptionAddonsResponseAllOf"));
|
5656
|
+
|
5635
5657
|
var _SubscriptionInstallmentCreateRequest = _interopRequireDefault(require("./model/SubscriptionInstallmentCreateRequest"));
|
5636
5658
|
|
5637
5659
|
var _SubscriptionInstallmentUpdateRequest = _interopRequireDefault(require("./model/SubscriptionInstallmentUpdateRequest"));
|
@@ -5756,6 +5778,8 @@ var _ActivityFieldsApi = _interopRequireDefault(require("./api/ActivityFieldsApi
|
|
5756
5778
|
|
5757
5779
|
var _ActivityTypesApi = _interopRequireDefault(require("./api/ActivityTypesApi"));
|
5758
5780
|
|
5781
|
+
var _BillingApi = _interopRequireDefault(require("./api/BillingApi"));
|
5782
|
+
|
5759
5783
|
var _CallLogsApi = _interopRequireDefault(require("./api/CallLogsApi"));
|
5760
5784
|
|
5761
5785
|
var _CurrenciesApi = _interopRequireDefault(require("./api/CurrenciesApi"));
|
@@ -0,0 +1,130 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
11
|
+
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
13
|
+
|
14
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
15
|
+
|
16
|
+
var _BaseResponse = _interopRequireDefault(require("./BaseResponse"));
|
17
|
+
|
18
|
+
var _SubscriptionAddonsResponseAllOf = _interopRequireDefault(require("./SubscriptionAddonsResponseAllOf"));
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Pipedrive API v1
|
22
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
23
|
+
*
|
24
|
+
* The version of the OpenAPI document: 1.0.0
|
25
|
+
*
|
26
|
+
*
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
28
|
+
* https://openapi-generator.tech
|
29
|
+
* Do not edit the class manually.
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
|
33
|
+
/**
|
34
|
+
* The SubscriptionAddonsResponse model module.
|
35
|
+
* @module model/SubscriptionAddonsResponse
|
36
|
+
* @version 1.0.0
|
37
|
+
*/
|
38
|
+
var SubscriptionAddonsResponse = /*#__PURE__*/function () {
|
39
|
+
/**
|
40
|
+
* Constructs a new <code>SubscriptionAddonsResponse</code>.
|
41
|
+
* @alias module:model/SubscriptionAddonsResponse
|
42
|
+
* @implements module:model/BaseResponse
|
43
|
+
* @implements module:model/SubscriptionAddonsResponseAllOf
|
44
|
+
*/
|
45
|
+
function SubscriptionAddonsResponse() {
|
46
|
+
(0, _classCallCheck2["default"])(this, SubscriptionAddonsResponse);
|
47
|
+
|
48
|
+
_BaseResponse["default"].initialize(this);
|
49
|
+
|
50
|
+
_SubscriptionAddonsResponseAllOf["default"].initialize(this);
|
51
|
+
|
52
|
+
SubscriptionAddonsResponse.initialize(this);
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* Initializes the fields of this object.
|
56
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
57
|
+
* Only for internal use.
|
58
|
+
*/
|
59
|
+
|
60
|
+
|
61
|
+
(0, _createClass2["default"])(SubscriptionAddonsResponse, null, [{
|
62
|
+
key: "initialize",
|
63
|
+
value: function initialize(obj) {}
|
64
|
+
/**
|
65
|
+
* Constructs a <code>SubscriptionAddonsResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
66
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
67
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
68
|
+
* @param {module:model/SubscriptionAddonsResponse} obj Optional instance to populate.
|
69
|
+
* @return {module:model/SubscriptionAddonsResponse} The populated <code>SubscriptionAddonsResponse</code> instance.
|
70
|
+
*/
|
71
|
+
|
72
|
+
}, {
|
73
|
+
key: "constructFromObject",
|
74
|
+
value: function constructFromObject(data, obj) {
|
75
|
+
if (data) {
|
76
|
+
obj = obj || new SubscriptionAddonsResponse();
|
77
|
+
|
78
|
+
_BaseResponse["default"].constructFromObject(data, obj);
|
79
|
+
|
80
|
+
_SubscriptionAddonsResponseAllOf["default"].constructFromObject(data, obj);
|
81
|
+
|
82
|
+
if (data.hasOwnProperty('success')) {
|
83
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
84
|
+
delete data['success'];
|
85
|
+
}
|
86
|
+
|
87
|
+
if (data.hasOwnProperty('data')) {
|
88
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [Object]);
|
89
|
+
delete data['data'];
|
90
|
+
}
|
91
|
+
|
92
|
+
if (Object.keys(data).length > 0) {
|
93
|
+
Object.assign(obj, data);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
return obj;
|
98
|
+
}
|
99
|
+
}]);
|
100
|
+
return SubscriptionAddonsResponse;
|
101
|
+
}();
|
102
|
+
/**
|
103
|
+
* If the response is successful or not
|
104
|
+
* @member {Boolean} success
|
105
|
+
*/
|
106
|
+
|
107
|
+
|
108
|
+
SubscriptionAddonsResponse.prototype['success'] = undefined;
|
109
|
+
/**
|
110
|
+
* An array of add-ons that the company has.
|
111
|
+
* @member {Array.<Object>} data
|
112
|
+
*/
|
113
|
+
|
114
|
+
SubscriptionAddonsResponse.prototype['data'] = undefined; // Implement BaseResponse interface:
|
115
|
+
|
116
|
+
/**
|
117
|
+
* If the response is successful or not
|
118
|
+
* @member {Boolean} success
|
119
|
+
*/
|
120
|
+
|
121
|
+
_BaseResponse["default"].prototype['success'] = undefined; // Implement SubscriptionAddonsResponseAllOf interface:
|
122
|
+
|
123
|
+
/**
|
124
|
+
* An array of add-ons that the company has.
|
125
|
+
* @member {Array.<Object>} data
|
126
|
+
*/
|
127
|
+
|
128
|
+
_SubscriptionAddonsResponseAllOf["default"].prototype['data'] = undefined;
|
129
|
+
var _default = SubscriptionAddonsResponse;
|
130
|
+
exports["default"] = _default;
|
@@ -0,0 +1,90 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
11
|
+
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
13
|
+
|
14
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Pipedrive API v1
|
18
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
19
|
+
*
|
20
|
+
* The version of the OpenAPI document: 1.0.0
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
24
|
+
* https://openapi-generator.tech
|
25
|
+
* Do not edit the class manually.
|
26
|
+
*
|
27
|
+
*/
|
28
|
+
|
29
|
+
/**
|
30
|
+
* The SubscriptionAddonsResponseAllOf model module.
|
31
|
+
* @module model/SubscriptionAddonsResponseAllOf
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var SubscriptionAddonsResponseAllOf = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>SubscriptionAddonsResponseAllOf</code>.
|
37
|
+
* @alias module:model/SubscriptionAddonsResponseAllOf
|
38
|
+
*/
|
39
|
+
function SubscriptionAddonsResponseAllOf() {
|
40
|
+
(0, _classCallCheck2["default"])(this, SubscriptionAddonsResponseAllOf);
|
41
|
+
SubscriptionAddonsResponseAllOf.initialize(this);
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Initializes the fields of this object.
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
46
|
+
* Only for internal use.
|
47
|
+
*/
|
48
|
+
|
49
|
+
|
50
|
+
(0, _createClass2["default"])(SubscriptionAddonsResponseAllOf, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>SubscriptionAddonsResponseAllOf</code> from a plain JavaScript object, optionally creating a new instance.
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
57
|
+
* @param {module:model/SubscriptionAddonsResponseAllOf} obj Optional instance to populate.
|
58
|
+
* @return {module:model/SubscriptionAddonsResponseAllOf} The populated <code>SubscriptionAddonsResponseAllOf</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new SubscriptionAddonsResponseAllOf();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('data')) {
|
68
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [Object]);
|
69
|
+
delete data['data'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return SubscriptionAddonsResponseAllOf;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* An array of add-ons that the company has.
|
84
|
+
* @member {Array.<Object>} data
|
85
|
+
*/
|
86
|
+
|
87
|
+
|
88
|
+
SubscriptionAddonsResponseAllOf.prototype['data'] = undefined;
|
89
|
+
var _default = SubscriptionAddonsResponseAllOf;
|
90
|
+
exports["default"] = _default;
|