pipedrive 22.6.1 → 22.8.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 +9 -4
- package/dist/api/DealsApi.js +2 -2
- package/dist/api/LeadsApi.js +2 -2
- package/dist/index.js +63 -28
- package/dist/model/AddLeadRequest.js +30 -0
- package/dist/model/AddProductAttachmentDetails.js +60 -23
- package/dist/model/AddProductRequestBody.js +50 -14
- package/dist/model/AddProductRequestBodyAllOf.js +78 -0
- package/dist/model/BaseDeal.js +40 -0
- package/dist/model/BaseProduct.js +60 -1
- package/dist/model/BasicDealProduct.js +139 -16
- package/dist/model/BasicDealProductAllOf.js +235 -0
- package/dist/model/BillingFrequency.js +86 -0
- package/dist/model/BillingFrequency1.js +86 -0
- package/dist/model/DealNonStrict.js +60 -0
- package/dist/model/DealNonStrictWithDetails.js +60 -0
- package/dist/model/DealProductRequestBody.js +235 -0
- package/dist/model/DealStrict.js +60 -0
- package/dist/model/DealStrictWithMergeId.js +60 -0
- package/dist/model/LeadResponse.js +40 -0
- package/dist/model/NameObject.js +78 -0
- package/dist/model/NewDeal.js +45 -0
- package/dist/model/NewDealParameters.js +30 -0
- package/dist/model/NewDealProduct.js +95 -43
- package/dist/model/NewDealProductAllOf.js +9 -12
- package/dist/model/NewDealProductAllOf1.js +78 -0
- package/dist/model/NewDealProductAllOf2.js +78 -0
- package/dist/model/PersonListProduct.js +1 -1
- package/dist/model/ProductAttachmentDetails.js +60 -23
- package/dist/model/ProductListItem.js +6 -6
- package/dist/model/ProductRequest.js +1 -1
- package/dist/model/ProductWithArrayPrices.js +72 -2
- package/dist/model/UpdateDealParameters.js +20 -0
- package/dist/model/UpdateDealProduct.js +135 -5
- package/dist/model/UpdateDealRequest.js +30 -0
- package/dist/model/UpdateLeadRequest.js +20 -0
- package/dist/model/UpdateProductRequestBody.js +50 -14
- package/dist/model/UpdateProductResponse.js +3 -3
- package/package.json +1 -1
@@ -109,6 +109,14 @@ var UpdateDealRequest = /*#__PURE__*/function () {
|
|
109
109
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
110
110
|
delete data['status'];
|
111
111
|
}
|
112
|
+
if (data.hasOwnProperty('channel')) {
|
113
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
|
114
|
+
delete data['channel'];
|
115
|
+
}
|
116
|
+
if (data.hasOwnProperty('channel_id')) {
|
117
|
+
obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
|
118
|
+
delete data['channel_id'];
|
119
|
+
}
|
112
120
|
if (data.hasOwnProperty('won_time')) {
|
113
121
|
obj['won_time'] = _ApiClient["default"].convertToType(data['won_time'], 'String');
|
114
122
|
delete data['won_time'];
|
@@ -206,6 +214,18 @@ UpdateDealRequest.prototype['stage_id'] = undefined;
|
|
206
214
|
*/
|
207
215
|
UpdateDealRequest.prototype['status'] = undefined;
|
208
216
|
|
217
|
+
/**
|
218
|
+
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>.
|
219
|
+
* @member {Number} channel
|
220
|
+
*/
|
221
|
+
UpdateDealRequest.prototype['channel'] = undefined;
|
222
|
+
|
223
|
+
/**
|
224
|
+
* The optional ID to further distinguish the Marketing channel.
|
225
|
+
* @member {String} channel_id
|
226
|
+
*/
|
227
|
+
UpdateDealRequest.prototype['channel_id'] = undefined;
|
228
|
+
|
209
229
|
/**
|
210
230
|
* The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`.
|
211
231
|
* @member {String} won_time
|
@@ -300,6 +320,16 @@ _UpdateDealParameters["default"].prototype['stage_id'] = undefined;
|
|
300
320
|
* @member {module:model/UpdateDealParameters.StatusEnum} status
|
301
321
|
*/
|
302
322
|
_UpdateDealParameters["default"].prototype['status'] = undefined;
|
323
|
+
/**
|
324
|
+
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>.
|
325
|
+
* @member {Number} channel
|
326
|
+
*/
|
327
|
+
_UpdateDealParameters["default"].prototype['channel'] = undefined;
|
328
|
+
/**
|
329
|
+
* The optional ID to further distinguish the Marketing channel.
|
330
|
+
* @member {String} channel_id
|
331
|
+
*/
|
332
|
+
_UpdateDealParameters["default"].prototype['channel_id'] = undefined;
|
303
333
|
// Implement BasicDeal interface:
|
304
334
|
/**
|
305
335
|
* The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`.
|
@@ -98,6 +98,14 @@ var UpdateLeadRequest = /*#__PURE__*/function () {
|
|
98
98
|
obj['was_seen'] = _ApiClient["default"].convertToType(data['was_seen'], 'Boolean');
|
99
99
|
delete data['was_seen'];
|
100
100
|
}
|
101
|
+
if (data.hasOwnProperty('channel')) {
|
102
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
|
103
|
+
delete data['channel'];
|
104
|
+
}
|
105
|
+
if (data.hasOwnProperty('channel_id')) {
|
106
|
+
obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
|
107
|
+
delete data['channel_id'];
|
108
|
+
}
|
101
109
|
if (Object.keys(data).length > 0) {
|
102
110
|
Object.assign(obj, data);
|
103
111
|
}
|
@@ -165,5 +173,17 @@ UpdateLeadRequest.prototype['visible_to'] = undefined;
|
|
165
173
|
* @member {Boolean} was_seen
|
166
174
|
*/
|
167
175
|
UpdateLeadRequest.prototype['was_seen'] = undefined;
|
176
|
+
|
177
|
+
/**
|
178
|
+
* The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company which you can fetch with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>.
|
179
|
+
* @member {Number} channel
|
180
|
+
*/
|
181
|
+
UpdateLeadRequest.prototype['channel'] = undefined;
|
182
|
+
|
183
|
+
/**
|
184
|
+
* The optional ID to further distinguish the Marketing channel.
|
185
|
+
* @member {String} channel_id
|
186
|
+
*/
|
187
|
+
UpdateLeadRequest.prototype['channel_id'] = undefined;
|
168
188
|
var _default = UpdateLeadRequest;
|
169
189
|
exports["default"] = _default;
|
@@ -8,7 +8,10 @@ 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
|
11
|
+
var _AddProductRequestBodyAllOf = _interopRequireDefault(require("./AddProductRequestBodyAllOf"));
|
12
|
+
var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency1"));
|
13
|
+
var _NameObject = _interopRequireDefault(require("./NameObject"));
|
14
|
+
var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf1"));
|
12
15
|
var _ProductRequest = _interopRequireDefault(require("./ProductRequest"));
|
13
16
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
14
17
|
/**
|
@@ -32,15 +35,18 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
|
|
32
35
|
/**
|
33
36
|
* Constructs a new <code>UpdateProductRequestBody</code>.
|
34
37
|
* @alias module:model/UpdateProductRequestBody
|
35
|
-
* @implements module:model/
|
38
|
+
* @implements module:model/NameObject
|
36
39
|
* @implements module:model/ProductRequest
|
37
|
-
* @
|
40
|
+
* @implements module:model/AddProductRequestBodyAllOf
|
41
|
+
* @implements module:model/NewDealProductAllOf1
|
38
42
|
*/
|
39
|
-
function UpdateProductRequestBody(
|
43
|
+
function UpdateProductRequestBody() {
|
40
44
|
(0, _classCallCheck2["default"])(this, UpdateProductRequestBody);
|
41
|
-
|
45
|
+
_NameObject["default"].initialize(this);
|
42
46
|
_ProductRequest["default"].initialize(this);
|
43
|
-
|
47
|
+
_AddProductRequestBodyAllOf["default"].initialize(this);
|
48
|
+
_NewDealProductAllOf["default"].initialize(this);
|
49
|
+
UpdateProductRequestBody.initialize(this);
|
44
50
|
}
|
45
51
|
|
46
52
|
/**
|
@@ -50,9 +56,7 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
|
|
50
56
|
*/
|
51
57
|
(0, _createClass2["default"])(UpdateProductRequestBody, null, [{
|
52
58
|
key: "initialize",
|
53
|
-
value: function initialize(obj
|
54
|
-
obj['name'] = name;
|
55
|
-
}
|
59
|
+
value: function initialize(obj) {}
|
56
60
|
|
57
61
|
/**
|
58
62
|
* Constructs a <code>UpdateProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
|
@@ -66,8 +70,10 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
|
|
66
70
|
value: function constructFromObject(data, obj) {
|
67
71
|
if (data) {
|
68
72
|
obj = obj || new UpdateProductRequestBody();
|
69
|
-
|
73
|
+
_NameObject["default"].constructFromObject(data, obj);
|
70
74
|
_ProductRequest["default"].constructFromObject(data, obj);
|
75
|
+
_AddProductRequestBodyAllOf["default"].constructFromObject(data, obj);
|
76
|
+
_NewDealProductAllOf["default"].constructFromObject(data, obj);
|
71
77
|
if (data.hasOwnProperty('name')) {
|
72
78
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
73
79
|
delete data['name'];
|
@@ -104,6 +110,14 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
|
|
104
110
|
obj['prices'] = _ApiClient["default"].convertToType(data['prices'], [Object]);
|
105
111
|
delete data['prices'];
|
106
112
|
}
|
113
|
+
if (data.hasOwnProperty('billing_frequency')) {
|
114
|
+
obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
|
115
|
+
delete data['billing_frequency'];
|
116
|
+
}
|
117
|
+
if (data.hasOwnProperty('billing_frequency_cycles')) {
|
118
|
+
obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
|
119
|
+
delete data['billing_frequency_cycles'];
|
120
|
+
}
|
107
121
|
if (Object.keys(data).length > 0) {
|
108
122
|
Object.assign(obj, data);
|
109
123
|
}
|
@@ -159,7 +173,7 @@ UpdateProductRequestBody.prototype['selectable'] = true;
|
|
159
173
|
UpdateProductRequestBody.prototype['visible_to'] = undefined;
|
160
174
|
|
161
175
|
/**
|
162
|
-
* The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
|
176
|
+
* The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
|
163
177
|
* @member {Number} owner_id
|
164
178
|
*/
|
165
179
|
UpdateProductRequestBody.prototype['owner_id'] = undefined;
|
@@ -170,12 +184,23 @@ UpdateProductRequestBody.prototype['owner_id'] = undefined;
|
|
170
184
|
*/
|
171
185
|
UpdateProductRequestBody.prototype['prices'] = undefined;
|
172
186
|
|
173
|
-
|
187
|
+
/**
|
188
|
+
* @member {module:model/BillingFrequency1} billing_frequency
|
189
|
+
*/
|
190
|
+
UpdateProductRequestBody.prototype['billing_frequency'] = undefined;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
|
194
|
+
* @member {Number} billing_frequency_cycles
|
195
|
+
*/
|
196
|
+
UpdateProductRequestBody.prototype['billing_frequency_cycles'] = undefined;
|
197
|
+
|
198
|
+
// Implement NameObject interface:
|
174
199
|
/**
|
175
200
|
* The name of the product
|
176
201
|
* @member {String} name
|
177
202
|
*/
|
178
|
-
|
203
|
+
_NameObject["default"].prototype['name'] = undefined;
|
179
204
|
// Implement ProductRequest interface:
|
180
205
|
/**
|
181
206
|
* The product code
|
@@ -211,7 +236,7 @@ _ProductRequest["default"].prototype['selectable'] = true;
|
|
211
236
|
*/
|
212
237
|
_ProductRequest["default"].prototype['visible_to'] = undefined;
|
213
238
|
/**
|
214
|
-
* The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
|
239
|
+
* The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
|
215
240
|
* @member {Number} owner_id
|
216
241
|
*/
|
217
242
|
_ProductRequest["default"].prototype['owner_id'] = undefined;
|
@@ -220,5 +245,16 @@ _ProductRequest["default"].prototype['owner_id'] = undefined;
|
|
220
245
|
* @member {Array.<Object>} prices
|
221
246
|
*/
|
222
247
|
_ProductRequest["default"].prototype['prices'] = undefined;
|
248
|
+
// Implement AddProductRequestBodyAllOf interface:
|
249
|
+
/**
|
250
|
+
* @member {module:model/BillingFrequency1} billing_frequency
|
251
|
+
*/
|
252
|
+
_AddProductRequestBodyAllOf["default"].prototype['billing_frequency'] = undefined;
|
253
|
+
// Implement NewDealProductAllOf1 interface:
|
254
|
+
/**
|
255
|
+
* Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
|
256
|
+
* @member {Number} billing_frequency_cycles
|
257
|
+
*/
|
258
|
+
_NewDealProductAllOf["default"].prototype['billing_frequency_cycles'] = undefined;
|
223
259
|
var _default = UpdateProductRequestBody;
|
224
260
|
exports["default"] = _default;
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
11
|
var _GetActivitiesResponse200RelatedObjects = _interopRequireDefault(require("./GetActivitiesResponse200RelatedObjects"));
|
12
|
-
var
|
12
|
+
var _ProductWithArrayPrices = _interopRequireDefault(require("./ProductWithArrayPrices"));
|
13
13
|
/**
|
14
14
|
* Pipedrive API v1
|
15
15
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
@@ -63,7 +63,7 @@ var UpdateProductResponse = /*#__PURE__*/function () {
|
|
63
63
|
delete data['success'];
|
64
64
|
}
|
65
65
|
if (data.hasOwnProperty('data')) {
|
66
|
-
obj['data'] =
|
66
|
+
obj['data'] = _ProductWithArrayPrices["default"].constructFromObject(data['data']);
|
67
67
|
delete data['data'];
|
68
68
|
}
|
69
69
|
if (data.hasOwnProperty('related_objects')) {
|
@@ -86,7 +86,7 @@ var UpdateProductResponse = /*#__PURE__*/function () {
|
|
86
86
|
UpdateProductResponse.prototype['success'] = undefined;
|
87
87
|
|
88
88
|
/**
|
89
|
-
* @member {module:model/
|
89
|
+
* @member {module:model/ProductWithArrayPrices} data
|
90
90
|
*/
|
91
91
|
UpdateProductResponse.prototype['data'] = undefined;
|
92
92
|
|