pipedrive 13.2.7 → 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 +18 -6
- package/README.md +3 -0
- package/dist/api/BillingApi.js +94 -0
- package/dist/api/ProductsApi.js +1 -1
- package/dist/index.js +24 -0
- package/dist/model/BaseStage.js +6 -6
- package/dist/model/Stage.js +6 -6
- package/dist/model/StageDetails.js +6 -6
- package/dist/model/StageWithPipelineInfo.js +6 -6
- package/dist/model/SubscriptionAddonsResponse.js +130 -0
- package/dist/model/SubscriptionAddonsResponseAllOf.js +90 -0
- package/dist/model/UpdateStageRequest.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,20 +8,32 @@ 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
|
+
|
|
15
|
+
## 13.2.9
|
|
16
|
+
### Changed
|
|
17
|
+
- Added missing oauth scopes to /products/{id}/permittedUsers endpoint
|
|
18
|
+
|
|
19
|
+
## 13.2.8
|
|
20
|
+
### Fixed
|
|
21
|
+
- Changed rotten_flag type to boolean in `StagesApi`
|
|
22
|
+
|
|
11
23
|
## 13.2.7
|
|
12
|
-
|
|
24
|
+
### Changed
|
|
13
25
|
- Added `everyone` parameter to `GET /v1/stages/{id}` endpoint
|
|
14
26
|
- Updated `/v1/deals` endpoint `stage_id` and added `pipeline_id` descriptions
|
|
15
27
|
|
|
16
28
|
## 13.2.6
|
|
17
|
-
|
|
29
|
+
### Changed
|
|
18
30
|
- Updated `POST /products`: parameter `name` is required
|
|
19
31
|
- Updated `PUT /deals/:dealId/products`: parameter `quantity` and `item_price` are required
|
|
20
32
|
- Updated `POST /deals/:dealId/products`: parameter `quantity` and `item_price` are required
|
|
21
|
-
-
|
|
33
|
+
-
|
|
22
34
|
|
|
23
35
|
## 13.2.5
|
|
24
|
-
|
|
36
|
+
### Changed
|
|
25
37
|
- Updated `POST /notes`: parameter `content` is required
|
|
26
38
|
- Updated `POST /organizations`: parameter `name` is required
|
|
27
39
|
- Updated `POST /persons`: parameter `name` is required
|
|
@@ -35,7 +47,7 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
|
35
47
|
- Added quotation marks to fix formatting for Organizations endpoint `visible_to` parameter
|
|
36
48
|
- Updated `prices` parameter description in Products endpoint
|
|
37
49
|
|
|
38
|
-
## 13.2.3
|
|
50
|
+
## 13.2.3
|
|
39
51
|
### Changed
|
|
40
52
|
- Update `visible_to` parameter for `POST /deals` and `PUT /deals/{id}`. Differentiate options by plans
|
|
41
53
|
- Update `visible_to` parameter for `POST /persons` and `PUT /persons/{id}`. Differentiate options by plans
|
|
@@ -101,7 +113,7 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
|
101
113
|
### Fixed
|
|
102
114
|
- Fixed `POST /roles/{id}/settings` `value` parameter description
|
|
103
115
|
### Added
|
|
104
|
-
- Added type to `POST /roles/{id}/settings` `value` parameter
|
|
116
|
+
- Added type to `POST /roles/{id}/settings` `value` parameter
|
|
105
117
|
- Added description to `POST /roles/{id}/settings`
|
|
106
118
|
|
|
107
119
|
## 13.0.5
|
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/api/ProductsApi.js
CHANGED
|
@@ -608,7 +608,7 @@ var ProductsApi = /*#__PURE__*/function () {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
var authNames = ['api_key'];
|
|
611
|
+
var authNames = ['api_key', 'oauth2'];
|
|
612
612
|
var accepts = ['application/json'];
|
|
613
613
|
var returnType = _UserIDs["default"];
|
|
614
614
|
return this.apiClient.callApi('/products/{id}/permittedUsers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
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"));
|
package/dist/model/BaseStage.js
CHANGED
|
@@ -95,7 +95,7 @@ var BaseStage = /*#__PURE__*/function () {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
if (data.hasOwnProperty('rotten_flag')) {
|
|
98
|
-
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], '
|
|
98
|
+
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Boolean');
|
|
99
99
|
delete data['rotten_flag'];
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -187,22 +187,22 @@ BaseStage.prototype['add_time'] = undefined;
|
|
|
187
187
|
BaseStage.prototype['update_time'] = undefined;
|
|
188
188
|
/**
|
|
189
189
|
* Allowed values for the <code>rotten_flag</code> property.
|
|
190
|
-
* @enum {
|
|
190
|
+
* @enum {Boolean}
|
|
191
191
|
* @readonly
|
|
192
192
|
*/
|
|
193
193
|
|
|
194
194
|
BaseStage['RottenFlagEnum'] = {
|
|
195
195
|
/**
|
|
196
|
-
* value:
|
|
196
|
+
* value: "true"
|
|
197
197
|
* @const
|
|
198
198
|
*/
|
|
199
|
-
"
|
|
199
|
+
"true": "true",
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
* value:
|
|
202
|
+
* value: "false"
|
|
203
203
|
* @const
|
|
204
204
|
*/
|
|
205
|
-
"
|
|
205
|
+
"false": "false"
|
|
206
206
|
};
|
|
207
207
|
var _default = BaseStage;
|
|
208
208
|
exports["default"] = _default;
|
package/dist/model/Stage.js
CHANGED
|
@@ -80,7 +80,7 @@ var Stage = /*#__PURE__*/function () {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
if (data.hasOwnProperty('rotten_flag')) {
|
|
83
|
-
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], '
|
|
83
|
+
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Boolean');
|
|
84
84
|
delete data['rotten_flag'];
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -132,22 +132,22 @@ Stage.prototype['rotten_flag'] = undefined;
|
|
|
132
132
|
Stage.prototype['rotten_days'] = undefined;
|
|
133
133
|
/**
|
|
134
134
|
* Allowed values for the <code>rotten_flag</code> property.
|
|
135
|
-
* @enum {
|
|
135
|
+
* @enum {Boolean}
|
|
136
136
|
* @readonly
|
|
137
137
|
*/
|
|
138
138
|
|
|
139
139
|
Stage['RottenFlagEnum'] = {
|
|
140
140
|
/**
|
|
141
|
-
* value:
|
|
141
|
+
* value: "true"
|
|
142
142
|
* @const
|
|
143
143
|
*/
|
|
144
|
-
"
|
|
144
|
+
"true": "true",
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* value:
|
|
147
|
+
* value: "false"
|
|
148
148
|
* @const
|
|
149
149
|
*/
|
|
150
|
-
"
|
|
150
|
+
"false": "false"
|
|
151
151
|
};
|
|
152
152
|
var _default = Stage;
|
|
153
153
|
exports["default"] = _default;
|
|
@@ -113,7 +113,7 @@ var StageDetails = /*#__PURE__*/function () {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
if (data.hasOwnProperty('rotten_flag')) {
|
|
116
|
-
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], '
|
|
116
|
+
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Boolean');
|
|
117
117
|
delete data['rotten_flag'];
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -282,22 +282,22 @@ _BaseStage["default"].prototype['update_time'] = undefined; // Implement Pipelin
|
|
|
282
282
|
_PipelineDetailsAllOf["default"].prototype['deals_summary'] = undefined;
|
|
283
283
|
/**
|
|
284
284
|
* Allowed values for the <code>rotten_flag</code> property.
|
|
285
|
-
* @enum {
|
|
285
|
+
* @enum {Boolean}
|
|
286
286
|
* @readonly
|
|
287
287
|
*/
|
|
288
288
|
|
|
289
289
|
StageDetails['RottenFlagEnum'] = {
|
|
290
290
|
/**
|
|
291
|
-
* value:
|
|
291
|
+
* value: "true"
|
|
292
292
|
* @const
|
|
293
293
|
*/
|
|
294
|
-
"
|
|
294
|
+
"true": "true",
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
|
-
* value:
|
|
297
|
+
* value: "false"
|
|
298
298
|
* @const
|
|
299
299
|
*/
|
|
300
|
-
"
|
|
300
|
+
"false": "false"
|
|
301
301
|
};
|
|
302
302
|
var _default = StageDetails;
|
|
303
303
|
exports["default"] = _default;
|
|
@@ -110,7 +110,7 @@ var StageWithPipelineInfo = /*#__PURE__*/function () {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
if (data.hasOwnProperty('rotten_flag')) {
|
|
113
|
-
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], '
|
|
113
|
+
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Boolean');
|
|
114
114
|
delete data['rotten_flag'];
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -298,22 +298,22 @@ _StageWithPipelineInfoAllOf["default"].prototype['pipeline_name'] = undefined;
|
|
|
298
298
|
_StageWithPipelineInfoAllOf["default"].prototype['pipeline_deal_probability'] = undefined;
|
|
299
299
|
/**
|
|
300
300
|
* Allowed values for the <code>rotten_flag</code> property.
|
|
301
|
-
* @enum {
|
|
301
|
+
* @enum {Boolean}
|
|
302
302
|
* @readonly
|
|
303
303
|
*/
|
|
304
304
|
|
|
305
305
|
StageWithPipelineInfo['RottenFlagEnum'] = {
|
|
306
306
|
/**
|
|
307
|
-
* value:
|
|
307
|
+
* value: "true"
|
|
308
308
|
* @const
|
|
309
309
|
*/
|
|
310
|
-
"
|
|
310
|
+
"true": "true",
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
|
-
* value:
|
|
313
|
+
* value: "false"
|
|
314
314
|
* @const
|
|
315
315
|
*/
|
|
316
|
-
"
|
|
316
|
+
"false": "false"
|
|
317
317
|
};
|
|
318
318
|
var _default = StageWithPipelineInfo;
|
|
319
319
|
exports["default"] = _default;
|
|
@@ -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;
|
|
@@ -95,7 +95,7 @@ var UpdateStageRequest = /*#__PURE__*/function () {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
if (data.hasOwnProperty('rotten_flag')) {
|
|
98
|
-
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], '
|
|
98
|
+
obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Boolean');
|
|
99
99
|
delete data['rotten_flag'];
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -196,22 +196,22 @@ _Stage["default"].prototype['rotten_days'] = undefined; // Implement UpdateStage
|
|
|
196
196
|
_UpdateStageRequestAllOf["default"].prototype['order_nr'] = undefined;
|
|
197
197
|
/**
|
|
198
198
|
* Allowed values for the <code>rotten_flag</code> property.
|
|
199
|
-
* @enum {
|
|
199
|
+
* @enum {Boolean}
|
|
200
200
|
* @readonly
|
|
201
201
|
*/
|
|
202
202
|
|
|
203
203
|
UpdateStageRequest['RottenFlagEnum'] = {
|
|
204
204
|
/**
|
|
205
|
-
* value:
|
|
205
|
+
* value: "true"
|
|
206
206
|
* @const
|
|
207
207
|
*/
|
|
208
|
-
"
|
|
208
|
+
"true": "true",
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* value:
|
|
211
|
+
* value: "false"
|
|
212
212
|
* @const
|
|
213
213
|
*/
|
|
214
|
-
"
|
|
214
|
+
"false": "false"
|
|
215
215
|
};
|
|
216
216
|
var _default = UpdateStageRequest;
|
|
217
217
|
exports["default"] = _default;
|