pipedrive 22.10.0 → 23.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/README.md +0 -1
- package/dist/index.js +0 -7
- package/dist/model/AddProductAttachmentDetails.js +0 -32
- package/dist/model/BasicDealProduct.js +0 -33
- package/dist/model/BasicDealProductAllOf.js +0 -22
- package/dist/model/DealProductRequestBody.js +0 -22
- package/dist/model/NewDealProduct.js +0 -33
- package/dist/model/ProductAttachementFields.js +0 -10
- package/dist/model/ProductAttachmentDetails.js +0 -37
- package/dist/model/ProductListItem.js +0 -20
- package/dist/model/UpdateDealProduct.js +0 -33
- package/dist/model/UserSettingsItem.js +0 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -809,7 +809,6 @@ Class | Method | HTTP request | Description
|
|
|
809
809
|
- [Pipedrive.DealPersonDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithId.md)
|
|
810
810
|
- [Pipedrive.DealPersonDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithIdAllOf.md)
|
|
811
811
|
- [Pipedrive.DealProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductRequestBody.md)
|
|
812
|
-
- [Pipedrive.DealProductUnitDuration](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductUnitDuration.md)
|
|
813
812
|
- [Pipedrive.DealSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItem.md)
|
|
814
813
|
- [Pipedrive.DealSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItem.md)
|
|
815
814
|
- [Pipedrive.DealSearchItemItemOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItemOrganization.md)
|
package/dist/index.js
CHANGED
|
@@ -1138,12 +1138,6 @@ Object.defineProperty(exports, "DealProductRequestBody", {
|
|
|
1138
1138
|
return _DealProductRequestBody["default"];
|
|
1139
1139
|
}
|
|
1140
1140
|
});
|
|
1141
|
-
Object.defineProperty(exports, "DealProductUnitDuration", {
|
|
1142
|
-
enumerable: true,
|
|
1143
|
-
get: function get() {
|
|
1144
|
-
return _DealProductUnitDuration["default"];
|
|
1145
|
-
}
|
|
1146
|
-
});
|
|
1147
1141
|
Object.defineProperty(exports, "DealSearchItem", {
|
|
1148
1142
|
enumerable: true,
|
|
1149
1143
|
get: function get() {
|
|
@@ -5255,7 +5249,6 @@ var _DealPersonDataPhone = _interopRequireDefault(require("./model/DealPersonDat
|
|
|
5255
5249
|
var _DealPersonDataWithId = _interopRequireDefault(require("./model/DealPersonDataWithId"));
|
|
5256
5250
|
var _DealPersonDataWithIdAllOf = _interopRequireDefault(require("./model/DealPersonDataWithIdAllOf"));
|
|
5257
5251
|
var _DealProductRequestBody = _interopRequireDefault(require("./model/DealProductRequestBody"));
|
|
5258
|
-
var _DealProductUnitDuration = _interopRequireDefault(require("./model/DealProductUnitDuration"));
|
|
5259
5252
|
var _DealSearchItem = _interopRequireDefault(require("./model/DealSearchItem"));
|
|
5260
5253
|
var _DealSearchItemItem = _interopRequireDefault(require("./model/DealSearchItemItem"));
|
|
5261
5254
|
var _DealSearchItemItemOrganization = _interopRequireDefault(require("./model/DealSearchItemItemOrganization"));
|
|
@@ -85,14 +85,6 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
|
|
|
85
85
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
86
86
|
delete data['discount_type'];
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty('duration')) {
|
|
89
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
90
|
-
delete data['duration'];
|
|
91
|
-
}
|
|
92
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
93
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], 'String');
|
|
94
|
-
delete data['duration_unit'];
|
|
95
|
-
}
|
|
96
88
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
97
89
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
98
90
|
delete data['product_variation_id'];
|
|
@@ -206,19 +198,6 @@ AddProductAttachmentDetails.prototype['discount'] = 0;
|
|
|
206
198
|
*/
|
|
207
199
|
AddProductAttachmentDetails.prototype['discount_type'] = 'percentage';
|
|
208
200
|
|
|
209
|
-
/**
|
|
210
|
-
* The duration of the product. If omitted, will be set to 1
|
|
211
|
-
* @member {Number} duration
|
|
212
|
-
* @default 1
|
|
213
|
-
*/
|
|
214
|
-
AddProductAttachmentDetails.prototype['duration'] = 1;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* The type of the duration. (For example hourly, daily, etc.)
|
|
218
|
-
* @member {String} duration_unit
|
|
219
|
-
*/
|
|
220
|
-
AddProductAttachmentDetails.prototype['duration_unit'] = undefined;
|
|
221
|
-
|
|
222
201
|
/**
|
|
223
202
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
224
203
|
* @member {Number} product_variation_id
|
|
@@ -355,17 +334,6 @@ _ProductAttachmentDetails["default"].prototype['discount'] = 0;
|
|
|
355
334
|
* @default 'percentage'
|
|
356
335
|
*/
|
|
357
336
|
_ProductAttachmentDetails["default"].prototype['discount_type'] = 'percentage';
|
|
358
|
-
/**
|
|
359
|
-
* The duration of the product. If omitted, will be set to 1
|
|
360
|
-
* @member {Number} duration
|
|
361
|
-
* @default 1
|
|
362
|
-
*/
|
|
363
|
-
_ProductAttachmentDetails["default"].prototype['duration'] = 1;
|
|
364
|
-
/**
|
|
365
|
-
* The type of the duration. (For example hourly, daily, etc.)
|
|
366
|
-
* @member {String} duration_unit
|
|
367
|
-
*/
|
|
368
|
-
_ProductAttachmentDetails["default"].prototype['duration_unit'] = undefined;
|
|
369
337
|
/**
|
|
370
338
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
371
339
|
* @member {Number} product_variation_id
|
|
@@ -10,7 +10,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
11
11
|
var _BasicDealProductAllOf = _interopRequireDefault(require("./BasicDealProductAllOf"));
|
|
12
12
|
var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
|
|
13
|
-
var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
|
14
13
|
var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf"));
|
|
15
14
|
var _NewDealProductAllOf2 = _interopRequireDefault(require("./NewDealProductAllOf1"));
|
|
16
15
|
var _NewDealProductAllOf3 = _interopRequireDefault(require("./NewDealProductAllOf2"));
|
|
@@ -94,14 +93,6 @@ var BasicDealProduct = /*#__PURE__*/function () {
|
|
|
94
93
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
95
94
|
delete data['discount_type'];
|
|
96
95
|
}
|
|
97
|
-
if (data.hasOwnProperty('duration')) {
|
|
98
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
99
|
-
delete data['duration'];
|
|
100
|
-
}
|
|
101
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
102
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
|
|
103
|
-
delete data['duration_unit'];
|
|
104
|
-
}
|
|
105
96
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
106
97
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
107
98
|
delete data['product_variation_id'];
|
|
@@ -175,19 +166,6 @@ BasicDealProduct.prototype['discount'] = 0;
|
|
|
175
166
|
*/
|
|
176
167
|
BasicDealProduct.prototype['discount_type'] = 'percentage';
|
|
177
168
|
|
|
178
|
-
/**
|
|
179
|
-
* The duration of the product. If omitted, will be set to 1
|
|
180
|
-
* @member {Number} duration
|
|
181
|
-
* @default 1
|
|
182
|
-
*/
|
|
183
|
-
BasicDealProduct.prototype['duration'] = 1;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* The unit duration of the product
|
|
187
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
188
|
-
*/
|
|
189
|
-
BasicDealProduct.prototype['duration_unit'] = undefined;
|
|
190
|
-
|
|
191
169
|
/**
|
|
192
170
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
193
171
|
* @member {Number} product_variation_id
|
|
@@ -265,17 +243,6 @@ _BasicDealProductAllOf["default"].prototype['discount'] = 0;
|
|
|
265
243
|
* @default 'percentage'
|
|
266
244
|
*/
|
|
267
245
|
_BasicDealProductAllOf["default"].prototype['discount_type'] = 'percentage';
|
|
268
|
-
/**
|
|
269
|
-
* The duration of the product. If omitted, will be set to 1
|
|
270
|
-
* @member {Number} duration
|
|
271
|
-
* @default 1
|
|
272
|
-
*/
|
|
273
|
-
_BasicDealProductAllOf["default"].prototype['duration'] = 1;
|
|
274
|
-
/**
|
|
275
|
-
* The unit duration of the product
|
|
276
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
277
|
-
*/
|
|
278
|
-
_BasicDealProductAllOf["default"].prototype['duration_unit'] = undefined;
|
|
279
246
|
/**
|
|
280
247
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
281
248
|
* @member {Number} product_variation_id
|
|
@@ -8,7 +8,6 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
11
|
-
var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
|
12
11
|
/**
|
|
13
12
|
* Pipedrive API v1
|
|
14
13
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -77,14 +76,6 @@ var BasicDealProductAllOf = /*#__PURE__*/function () {
|
|
|
77
76
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
78
77
|
delete data['discount_type'];
|
|
79
78
|
}
|
|
80
|
-
if (data.hasOwnProperty('duration')) {
|
|
81
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
82
|
-
delete data['duration'];
|
|
83
|
-
}
|
|
84
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
85
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
|
|
86
|
-
delete data['duration_unit'];
|
|
87
|
-
}
|
|
88
79
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
89
80
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
90
81
|
delete data['product_variation_id'];
|
|
@@ -146,19 +137,6 @@ BasicDealProductAllOf.prototype['discount'] = 0;
|
|
|
146
137
|
*/
|
|
147
138
|
BasicDealProductAllOf.prototype['discount_type'] = 'percentage';
|
|
148
139
|
|
|
149
|
-
/**
|
|
150
|
-
* The duration of the product. If omitted, will be set to 1
|
|
151
|
-
* @member {Number} duration
|
|
152
|
-
* @default 1
|
|
153
|
-
*/
|
|
154
|
-
BasicDealProductAllOf.prototype['duration'] = 1;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The unit duration of the product
|
|
158
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
159
|
-
*/
|
|
160
|
-
BasicDealProductAllOf.prototype['duration_unit'] = undefined;
|
|
161
|
-
|
|
162
140
|
/**
|
|
163
141
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
164
142
|
* @member {Number} product_variation_id
|
|
@@ -8,7 +8,6 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
11
|
-
var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
|
12
11
|
/**
|
|
13
12
|
* Pipedrive API v1
|
|
14
13
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -77,14 +76,6 @@ var DealProductRequestBody = /*#__PURE__*/function () {
|
|
|
77
76
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
78
77
|
delete data['discount_type'];
|
|
79
78
|
}
|
|
80
|
-
if (data.hasOwnProperty('duration')) {
|
|
81
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
82
|
-
delete data['duration'];
|
|
83
|
-
}
|
|
84
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
85
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
|
|
86
|
-
delete data['duration_unit'];
|
|
87
|
-
}
|
|
88
79
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
89
80
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
90
81
|
delete data['product_variation_id'];
|
|
@@ -146,19 +137,6 @@ DealProductRequestBody.prototype['discount'] = 0;
|
|
|
146
137
|
*/
|
|
147
138
|
DealProductRequestBody.prototype['discount_type'] = 'percentage';
|
|
148
139
|
|
|
149
|
-
/**
|
|
150
|
-
* The duration of the product
|
|
151
|
-
* @member {Number} duration
|
|
152
|
-
* @default 1
|
|
153
|
-
*/
|
|
154
|
-
DealProductRequestBody.prototype['duration'] = 1;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The unit duration of the product
|
|
158
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
159
|
-
*/
|
|
160
|
-
DealProductRequestBody.prototype['duration_unit'] = undefined;
|
|
161
|
-
|
|
162
140
|
/**
|
|
163
141
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
164
142
|
* @member {Number} product_variation_id
|
|
@@ -10,7 +10,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
11
11
|
var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
|
|
12
12
|
var _DealProductRequestBody = _interopRequireDefault(require("./DealProductRequestBody"));
|
|
13
|
-
var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
|
14
13
|
var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf"));
|
|
15
14
|
var _NewDealProductAllOf2 = _interopRequireDefault(require("./NewDealProductAllOf1"));
|
|
16
15
|
var _NewDealProductAllOf3 = _interopRequireDefault(require("./NewDealProductAllOf2"));
|
|
@@ -94,14 +93,6 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
|
94
93
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
95
94
|
delete data['discount_type'];
|
|
96
95
|
}
|
|
97
|
-
if (data.hasOwnProperty('duration')) {
|
|
98
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
99
|
-
delete data['duration'];
|
|
100
|
-
}
|
|
101
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
102
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
|
|
103
|
-
delete data['duration_unit'];
|
|
104
|
-
}
|
|
105
96
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
106
97
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
107
98
|
delete data['product_variation_id'];
|
|
@@ -175,19 +166,6 @@ NewDealProduct.prototype['discount'] = 0;
|
|
|
175
166
|
*/
|
|
176
167
|
NewDealProduct.prototype['discount_type'] = 'percentage';
|
|
177
168
|
|
|
178
|
-
/**
|
|
179
|
-
* The duration of the product
|
|
180
|
-
* @member {Number} duration
|
|
181
|
-
* @default 1
|
|
182
|
-
*/
|
|
183
|
-
NewDealProduct.prototype['duration'] = 1;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* The unit duration of the product
|
|
187
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
188
|
-
*/
|
|
189
|
-
NewDealProduct.prototype['duration_unit'] = undefined;
|
|
190
|
-
|
|
191
169
|
/**
|
|
192
170
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
193
171
|
* @member {Number} product_variation_id
|
|
@@ -265,17 +243,6 @@ _DealProductRequestBody["default"].prototype['discount'] = 0;
|
|
|
265
243
|
* @default 'percentage'
|
|
266
244
|
*/
|
|
267
245
|
_DealProductRequestBody["default"].prototype['discount_type'] = 'percentage';
|
|
268
|
-
/**
|
|
269
|
-
* The duration of the product
|
|
270
|
-
* @member {Number} duration
|
|
271
|
-
* @default 1
|
|
272
|
-
*/
|
|
273
|
-
_DealProductRequestBody["default"].prototype['duration'] = 1;
|
|
274
|
-
/**
|
|
275
|
-
* The unit duration of the product
|
|
276
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
277
|
-
*/
|
|
278
|
-
_DealProductRequestBody["default"].prototype['duration_unit'] = undefined;
|
|
279
246
|
/**
|
|
280
247
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
281
248
|
* @member {Number} product_variation_id
|
|
@@ -72,10 +72,6 @@ var ProductAttachementFields = /*#__PURE__*/function () {
|
|
|
72
72
|
obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
|
|
73
73
|
delete data['product_id'];
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
76
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], 'String');
|
|
77
|
-
delete data['duration_unit'];
|
|
78
|
-
}
|
|
79
75
|
if (data.hasOwnProperty('sum')) {
|
|
80
76
|
obj['sum'] = _ApiClient["default"].convertToType(data['sum'], 'Number');
|
|
81
77
|
delete data['sum'];
|
|
@@ -137,12 +133,6 @@ ProductAttachementFields.prototype['deal_id'] = undefined;
|
|
|
137
133
|
*/
|
|
138
134
|
ProductAttachementFields.prototype['product_id'] = undefined;
|
|
139
135
|
|
|
140
|
-
/**
|
|
141
|
-
* The type of the duration. (For example hourly, daily, etc.)
|
|
142
|
-
* @member {String} duration_unit
|
|
143
|
-
*/
|
|
144
|
-
ProductAttachementFields.prototype['duration_unit'] = undefined;
|
|
145
|
-
|
|
146
136
|
/**
|
|
147
137
|
* The sum of all the products attached to the deal
|
|
148
138
|
* @member {Number} sum
|
|
@@ -85,14 +85,6 @@ var ProductAttachmentDetails = /*#__PURE__*/function () {
|
|
|
85
85
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
86
86
|
delete data['discount_type'];
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty('duration')) {
|
|
89
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
90
|
-
delete data['duration'];
|
|
91
|
-
}
|
|
92
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
93
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], 'String');
|
|
94
|
-
delete data['duration_unit'];
|
|
95
|
-
}
|
|
96
88
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
97
89
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
98
90
|
delete data['product_variation_id'];
|
|
@@ -202,19 +194,6 @@ ProductAttachmentDetails.prototype['discount'] = 0;
|
|
|
202
194
|
*/
|
|
203
195
|
ProductAttachmentDetails.prototype['discount_type'] = 'percentage';
|
|
204
196
|
|
|
205
|
-
/**
|
|
206
|
-
* The duration of the product. If omitted, will be set to 1
|
|
207
|
-
* @member {Number} duration
|
|
208
|
-
* @default 1
|
|
209
|
-
*/
|
|
210
|
-
ProductAttachmentDetails.prototype['duration'] = 1;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The type of the duration. (For example hourly, daily, etc.)
|
|
214
|
-
* @member {String} duration_unit
|
|
215
|
-
*/
|
|
216
|
-
ProductAttachmentDetails.prototype['duration_unit'] = undefined;
|
|
217
|
-
|
|
218
197
|
/**
|
|
219
198
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
220
199
|
* @member {Number} product_variation_id
|
|
@@ -345,17 +324,6 @@ _BasicDealProduct["default"].prototype['discount'] = 0;
|
|
|
345
324
|
* @default 'percentage'
|
|
346
325
|
*/
|
|
347
326
|
_BasicDealProduct["default"].prototype['discount_type'] = 'percentage';
|
|
348
|
-
/**
|
|
349
|
-
* The duration of the product. If omitted, will be set to 1
|
|
350
|
-
* @member {Number} duration
|
|
351
|
-
* @default 1
|
|
352
|
-
*/
|
|
353
|
-
_BasicDealProduct["default"].prototype['duration'] = 1;
|
|
354
|
-
/**
|
|
355
|
-
* The unit duration of the product
|
|
356
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
357
|
-
*/
|
|
358
|
-
_BasicDealProduct["default"].prototype['duration_unit'] = undefined;
|
|
359
327
|
/**
|
|
360
328
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
361
329
|
* @member {Number} product_variation_id
|
|
@@ -418,11 +386,6 @@ _ProductAttachementFields["default"].prototype['deal_id'] = undefined;
|
|
|
418
386
|
* @member {Number} product_id
|
|
419
387
|
*/
|
|
420
388
|
_ProductAttachementFields["default"].prototype['product_id'] = undefined;
|
|
421
|
-
/**
|
|
422
|
-
* The type of the duration. (For example hourly, daily, etc.)
|
|
423
|
-
* @member {String} duration_unit
|
|
424
|
-
*/
|
|
425
|
-
_ProductAttachementFields["default"].prototype['duration_unit'] = undefined;
|
|
426
389
|
/**
|
|
427
390
|
* The sum of all the products attached to the deal
|
|
428
391
|
* @member {Number} sum
|
|
@@ -89,14 +89,6 @@ var ProductListItem = /*#__PURE__*/function () {
|
|
|
89
89
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
90
90
|
delete data['discount_type'];
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty('duration')) {
|
|
93
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
94
|
-
delete data['duration'];
|
|
95
|
-
}
|
|
96
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
97
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], 'String');
|
|
98
|
-
delete data['duration_unit'];
|
|
99
|
-
}
|
|
100
92
|
if (data.hasOwnProperty('sum')) {
|
|
101
93
|
obj['sum'] = _ApiClient["default"].convertToType(data['sum'], 'Number');
|
|
102
94
|
delete data['sum'];
|
|
@@ -212,18 +204,6 @@ ProductListItem.prototype['discount'] = 0;
|
|
|
212
204
|
*/
|
|
213
205
|
ProductListItem.prototype['discount_type'] = 'percentage';
|
|
214
206
|
|
|
215
|
-
/**
|
|
216
|
-
* The duration of the product
|
|
217
|
-
* @member {Number} duration
|
|
218
|
-
*/
|
|
219
|
-
ProductListItem.prototype['duration'] = undefined;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* The type of the duration. (For example hourly, daily, etc.)
|
|
223
|
-
* @member {String} duration_unit
|
|
224
|
-
*/
|
|
225
|
-
ProductListItem.prototype['duration_unit'] = undefined;
|
|
226
|
-
|
|
227
207
|
/**
|
|
228
208
|
* The sum of all the products attached to the deal
|
|
229
209
|
* @member {Number} sum
|
|
@@ -10,7 +10,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
11
11
|
var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
|
|
12
12
|
var _DealProductRequestBody = _interopRequireDefault(require("./DealProductRequestBody"));
|
|
13
|
-
var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
|
14
13
|
var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf"));
|
|
15
14
|
var _NewDealProductAllOf2 = _interopRequireDefault(require("./NewDealProductAllOf1"));
|
|
16
15
|
var _NewDealProductAllOf3 = _interopRequireDefault(require("./NewDealProductAllOf2"));
|
|
@@ -94,14 +93,6 @@ var UpdateDealProduct = /*#__PURE__*/function () {
|
|
|
94
93
|
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
|
95
94
|
delete data['discount_type'];
|
|
96
95
|
}
|
|
97
|
-
if (data.hasOwnProperty('duration')) {
|
|
98
|
-
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
99
|
-
delete data['duration'];
|
|
100
|
-
}
|
|
101
|
-
if (data.hasOwnProperty('duration_unit')) {
|
|
102
|
-
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
|
|
103
|
-
delete data['duration_unit'];
|
|
104
|
-
}
|
|
105
96
|
if (data.hasOwnProperty('product_variation_id')) {
|
|
106
97
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
|
107
98
|
delete data['product_variation_id'];
|
|
@@ -175,19 +166,6 @@ UpdateDealProduct.prototype['discount'] = 0;
|
|
|
175
166
|
*/
|
|
176
167
|
UpdateDealProduct.prototype['discount_type'] = 'percentage';
|
|
177
168
|
|
|
178
|
-
/**
|
|
179
|
-
* The duration of the product
|
|
180
|
-
* @member {Number} duration
|
|
181
|
-
* @default 1
|
|
182
|
-
*/
|
|
183
|
-
UpdateDealProduct.prototype['duration'] = 1;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* The unit duration of the product
|
|
187
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
188
|
-
*/
|
|
189
|
-
UpdateDealProduct.prototype['duration_unit'] = undefined;
|
|
190
|
-
|
|
191
169
|
/**
|
|
192
170
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
193
171
|
* @member {Number} product_variation_id
|
|
@@ -265,17 +243,6 @@ _DealProductRequestBody["default"].prototype['discount'] = 0;
|
|
|
265
243
|
* @default 'percentage'
|
|
266
244
|
*/
|
|
267
245
|
_DealProductRequestBody["default"].prototype['discount_type'] = 'percentage';
|
|
268
|
-
/**
|
|
269
|
-
* The duration of the product
|
|
270
|
-
* @member {Number} duration
|
|
271
|
-
* @default 1
|
|
272
|
-
*/
|
|
273
|
-
_DealProductRequestBody["default"].prototype['duration'] = 1;
|
|
274
|
-
/**
|
|
275
|
-
* The unit duration of the product
|
|
276
|
-
* @member {module:model/DealProductUnitDuration} duration_unit
|
|
277
|
-
*/
|
|
278
|
-
_DealProductRequestBody["default"].prototype['duration_unit'] = undefined;
|
|
279
246
|
/**
|
|
280
247
|
* The ID of the product variation to use. When omitted, no variation will be used
|
|
281
248
|
* @member {Number} product_variation_id
|
|
@@ -56,14 +56,6 @@ var UserSettingsItem = /*#__PURE__*/function () {
|
|
|
56
56
|
value: function constructFromObject(data, obj) {
|
|
57
57
|
if (data) {
|
|
58
58
|
obj = obj || new UserSettingsItem();
|
|
59
|
-
if (data.hasOwnProperty('marketplace_allow_custom_install_url')) {
|
|
60
|
-
obj['marketplace_allow_custom_install_url'] = _ApiClient["default"].convertToType(data['marketplace_allow_custom_install_url'], 'Boolean');
|
|
61
|
-
delete data['marketplace_allow_custom_install_url'];
|
|
62
|
-
}
|
|
63
|
-
if (data.hasOwnProperty('marketplace_app_extensions_vendor')) {
|
|
64
|
-
obj['marketplace_app_extensions_vendor'] = _ApiClient["default"].convertToType(data['marketplace_app_extensions_vendor'], 'Boolean');
|
|
65
|
-
delete data['marketplace_app_extensions_vendor'];
|
|
66
|
-
}
|
|
67
59
|
if (data.hasOwnProperty('marketplace_team')) {
|
|
68
60
|
obj['marketplace_team'] = _ApiClient["default"].convertToType(data['marketplace_team'], 'Boolean');
|
|
69
61
|
delete data['marketplace_team'];
|
|
@@ -105,18 +97,6 @@ var UserSettingsItem = /*#__PURE__*/function () {
|
|
|
105
97
|
}]);
|
|
106
98
|
return UserSettingsItem;
|
|
107
99
|
}();
|
|
108
|
-
/**
|
|
109
|
-
* If the vendors are allowed to install custom Marketplace apps with functionality and content in the Pipedrive UI or not
|
|
110
|
-
* @member {Boolean} marketplace_allow_custom_install_url
|
|
111
|
-
*/
|
|
112
|
-
UserSettingsItem.prototype['marketplace_allow_custom_install_url'] = undefined;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* If the vendors are allowed to extend their Marketplace apps with functionality and content in the Pipedrive UI or not
|
|
116
|
-
* @member {Boolean} marketplace_app_extensions_vendor
|
|
117
|
-
*/
|
|
118
|
-
UserSettingsItem.prototype['marketplace_app_extensions_vendor'] = undefined;
|
|
119
|
-
|
|
120
100
|
/**
|
|
121
101
|
* If the vendors are allowed to be part of the Marketplace team or not
|
|
122
102
|
* @member {Boolean} marketplace_team
|