pipedrive 22.6.1 → 22.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,235 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
|
+
var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
12
|
+
/**
|
13
|
+
* Pipedrive API v1
|
14
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
15
|
+
*
|
16
|
+
* The version of the OpenAPI document: 1.0.0
|
17
|
+
*
|
18
|
+
*
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
20
|
+
* https://openapi-generator.tech
|
21
|
+
* Do not edit the class manually.
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
/**
|
25
|
+
* The DealProductRequestBody model module.
|
26
|
+
* @module model/DealProductRequestBody
|
27
|
+
* @version 1.0.0
|
28
|
+
*/
|
29
|
+
var DealProductRequestBody = /*#__PURE__*/function () {
|
30
|
+
/**
|
31
|
+
* Constructs a new <code>DealProductRequestBody</code>.
|
32
|
+
* @alias module:model/DealProductRequestBody
|
33
|
+
*/
|
34
|
+
function DealProductRequestBody() {
|
35
|
+
(0, _classCallCheck2["default"])(this, DealProductRequestBody);
|
36
|
+
DealProductRequestBody.initialize(this);
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Initializes the fields of this object.
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
42
|
+
* Only for internal use.
|
43
|
+
*/
|
44
|
+
(0, _createClass2["default"])(DealProductRequestBody, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>DealProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
|
50
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
51
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
52
|
+
* @param {module:model/DealProductRequestBody} obj Optional instance to populate.
|
53
|
+
* @return {module:model/DealProductRequestBody} The populated <code>DealProductRequestBody</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new DealProductRequestBody();
|
60
|
+
if (data.hasOwnProperty('product_id')) {
|
61
|
+
obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
|
62
|
+
delete data['product_id'];
|
63
|
+
}
|
64
|
+
if (data.hasOwnProperty('item_price')) {
|
65
|
+
obj['item_price'] = _ApiClient["default"].convertToType(data['item_price'], 'Number');
|
66
|
+
delete data['item_price'];
|
67
|
+
}
|
68
|
+
if (data.hasOwnProperty('quantity')) {
|
69
|
+
obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
|
70
|
+
delete data['quantity'];
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('discount')) {
|
73
|
+
obj['discount'] = _ApiClient["default"].convertToType(data['discount'], 'Number');
|
74
|
+
delete data['discount'];
|
75
|
+
}
|
76
|
+
if (data.hasOwnProperty('discount_type')) {
|
77
|
+
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
78
|
+
delete data['discount_type'];
|
79
|
+
}
|
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
|
+
if (data.hasOwnProperty('product_variation_id')) {
|
89
|
+
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
90
|
+
delete data['product_variation_id'];
|
91
|
+
}
|
92
|
+
if (data.hasOwnProperty('comments')) {
|
93
|
+
obj['comments'] = _ApiClient["default"].convertToType(data['comments'], 'String');
|
94
|
+
delete data['comments'];
|
95
|
+
}
|
96
|
+
if (data.hasOwnProperty('tax')) {
|
97
|
+
obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
|
98
|
+
delete data['tax'];
|
99
|
+
}
|
100
|
+
if (data.hasOwnProperty('tax_method')) {
|
101
|
+
obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
|
102
|
+
delete data['tax_method'];
|
103
|
+
}
|
104
|
+
if (data.hasOwnProperty('enabled_flag')) {
|
105
|
+
obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
|
106
|
+
delete data['enabled_flag'];
|
107
|
+
}
|
108
|
+
if (Object.keys(data).length > 0) {
|
109
|
+
Object.assign(obj, data);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
return obj;
|
113
|
+
}
|
114
|
+
}]);
|
115
|
+
return DealProductRequestBody;
|
116
|
+
}();
|
117
|
+
/**
|
118
|
+
* The ID of the product to use
|
119
|
+
* @member {Number} product_id
|
120
|
+
*/
|
121
|
+
DealProductRequestBody.prototype['product_id'] = undefined;
|
122
|
+
|
123
|
+
/**
|
124
|
+
* The price at which this product will be added to the deal
|
125
|
+
* @member {Number} item_price
|
126
|
+
*/
|
127
|
+
DealProductRequestBody.prototype['item_price'] = undefined;
|
128
|
+
|
129
|
+
/**
|
130
|
+
* How many items of this product will be added to the deal
|
131
|
+
* @member {Number} quantity
|
132
|
+
*/
|
133
|
+
DealProductRequestBody.prototype['quantity'] = undefined;
|
134
|
+
|
135
|
+
/**
|
136
|
+
* The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
|
137
|
+
* @member {Number} discount
|
138
|
+
* @default 0
|
139
|
+
*/
|
140
|
+
DealProductRequestBody.prototype['discount'] = 0;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* The type of the discount's value
|
144
|
+
* @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type
|
145
|
+
* @default 'percentage'
|
146
|
+
*/
|
147
|
+
DealProductRequestBody.prototype['discount_type'] = 'percentage';
|
148
|
+
|
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
|
+
/**
|
163
|
+
* The ID of the product variation to use. When omitted, no variation will be used
|
164
|
+
* @member {Number} product_variation_id
|
165
|
+
*/
|
166
|
+
DealProductRequestBody.prototype['product_variation_id'] = undefined;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* A textual comment associated with this product-deal attachment
|
170
|
+
* @member {String} comments
|
171
|
+
*/
|
172
|
+
DealProductRequestBody.prototype['comments'] = undefined;
|
173
|
+
|
174
|
+
/**
|
175
|
+
* The tax percentage
|
176
|
+
* @member {Number} tax
|
177
|
+
* @default 0
|
178
|
+
*/
|
179
|
+
DealProductRequestBody.prototype['tax'] = 0;
|
180
|
+
|
181
|
+
/**
|
182
|
+
* The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount
|
183
|
+
* @member {module:model/DealProductRequestBody.TaxMethodEnum} tax_method
|
184
|
+
*/
|
185
|
+
DealProductRequestBody.prototype['tax_method'] = undefined;
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default
|
189
|
+
* @member {Boolean} enabled_flag
|
190
|
+
* @default true
|
191
|
+
*/
|
192
|
+
DealProductRequestBody.prototype['enabled_flag'] = true;
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Allowed values for the <code>discount_type</code> property.
|
196
|
+
* @enum {String}
|
197
|
+
* @readonly
|
198
|
+
*/
|
199
|
+
DealProductRequestBody['DiscountTypeEnum'] = {
|
200
|
+
/**
|
201
|
+
* value: "percentage"
|
202
|
+
* @const
|
203
|
+
*/
|
204
|
+
"percentage": "percentage",
|
205
|
+
/**
|
206
|
+
* value: "amount"
|
207
|
+
* @const
|
208
|
+
*/
|
209
|
+
"amount": "amount"
|
210
|
+
};
|
211
|
+
|
212
|
+
/**
|
213
|
+
* Allowed values for the <code>tax_method</code> property.
|
214
|
+
* @enum {String}
|
215
|
+
* @readonly
|
216
|
+
*/
|
217
|
+
DealProductRequestBody['TaxMethodEnum'] = {
|
218
|
+
/**
|
219
|
+
* value: "exclusive"
|
220
|
+
* @const
|
221
|
+
*/
|
222
|
+
"exclusive": "exclusive",
|
223
|
+
/**
|
224
|
+
* value: "inclusive"
|
225
|
+
* @const
|
226
|
+
*/
|
227
|
+
"inclusive": "inclusive",
|
228
|
+
/**
|
229
|
+
* value: "none"
|
230
|
+
* @const
|
231
|
+
*/
|
232
|
+
"none": "none"
|
233
|
+
};
|
234
|
+
var _default = DealProductRequestBody;
|
235
|
+
exports["default"] = _default;
|
package/dist/model/DealStrict.js
CHANGED
@@ -292,6 +292,22 @@ var DealStrict = /*#__PURE__*/function () {
|
|
292
292
|
obj['person_hidden'] = _ApiClient["default"].convertToType(data['person_hidden'], 'Boolean');
|
293
293
|
delete data['person_hidden'];
|
294
294
|
}
|
295
|
+
if (data.hasOwnProperty('origin')) {
|
296
|
+
obj['origin'] = _ApiClient["default"].convertToType(data['origin'], 'String');
|
297
|
+
delete data['origin'];
|
298
|
+
}
|
299
|
+
if (data.hasOwnProperty('origin_id')) {
|
300
|
+
obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
|
301
|
+
delete data['origin_id'];
|
302
|
+
}
|
303
|
+
if (data.hasOwnProperty('channel')) {
|
304
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
|
305
|
+
delete data['channel'];
|
306
|
+
}
|
307
|
+
if (data.hasOwnProperty('channel_id')) {
|
308
|
+
obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
|
309
|
+
delete data['channel_id'];
|
310
|
+
}
|
295
311
|
if (Object.keys(data).length > 0) {
|
296
312
|
Object.assign(obj, data);
|
297
313
|
}
|
@@ -643,6 +659,30 @@ DealStrict.prototype['org_hidden'] = undefined;
|
|
643
659
|
*/
|
644
660
|
DealStrict.prototype['person_hidden'] = undefined;
|
645
661
|
|
662
|
+
/**
|
663
|
+
* The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
|
664
|
+
* @member {String} origin
|
665
|
+
*/
|
666
|
+
DealStrict.prototype['origin'] = undefined;
|
667
|
+
|
668
|
+
/**
|
669
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
|
670
|
+
* @member {String} origin_id
|
671
|
+
*/
|
672
|
+
DealStrict.prototype['origin_id'] = undefined;
|
673
|
+
|
674
|
+
/**
|
675
|
+
* The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>.
|
676
|
+
* @member {Number} channel
|
677
|
+
*/
|
678
|
+
DealStrict.prototype['channel'] = undefined;
|
679
|
+
|
680
|
+
/**
|
681
|
+
* The optional ID to further distinguish the Marketing channel.
|
682
|
+
* @member {String} channel_id
|
683
|
+
*/
|
684
|
+
DealStrict.prototype['channel_id'] = undefined;
|
685
|
+
|
646
686
|
// Implement DealStrictModeFields interface:
|
647
687
|
/**
|
648
688
|
* The ID of the deal
|
@@ -930,5 +970,25 @@ _BaseDeal["default"].prototype['org_hidden'] = undefined;
|
|
930
970
|
* @member {Boolean} person_hidden
|
931
971
|
*/
|
932
972
|
_BaseDeal["default"].prototype['person_hidden'] = undefined;
|
973
|
+
/**
|
974
|
+
* The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
|
975
|
+
* @member {String} origin
|
976
|
+
*/
|
977
|
+
_BaseDeal["default"].prototype['origin'] = undefined;
|
978
|
+
/**
|
979
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
|
980
|
+
* @member {String} origin_id
|
981
|
+
*/
|
982
|
+
_BaseDeal["default"].prototype['origin_id'] = undefined;
|
983
|
+
/**
|
984
|
+
* The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>.
|
985
|
+
* @member {Number} channel
|
986
|
+
*/
|
987
|
+
_BaseDeal["default"].prototype['channel'] = undefined;
|
988
|
+
/**
|
989
|
+
* The optional ID to further distinguish the Marketing channel.
|
990
|
+
* @member {String} channel_id
|
991
|
+
*/
|
992
|
+
_BaseDeal["default"].prototype['channel_id'] = undefined;
|
933
993
|
var _default = DealStrict;
|
934
994
|
exports["default"] = _default;
|
@@ -292,6 +292,22 @@ var DealStrictWithMergeId = /*#__PURE__*/function () {
|
|
292
292
|
obj['person_hidden'] = _ApiClient["default"].convertToType(data['person_hidden'], 'Boolean');
|
293
293
|
delete data['person_hidden'];
|
294
294
|
}
|
295
|
+
if (data.hasOwnProperty('origin')) {
|
296
|
+
obj['origin'] = _ApiClient["default"].convertToType(data['origin'], 'String');
|
297
|
+
delete data['origin'];
|
298
|
+
}
|
299
|
+
if (data.hasOwnProperty('origin_id')) {
|
300
|
+
obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
|
301
|
+
delete data['origin_id'];
|
302
|
+
}
|
303
|
+
if (data.hasOwnProperty('channel')) {
|
304
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
|
305
|
+
delete data['channel'];
|
306
|
+
}
|
307
|
+
if (data.hasOwnProperty('channel_id')) {
|
308
|
+
obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
|
309
|
+
delete data['channel_id'];
|
310
|
+
}
|
295
311
|
if (data.hasOwnProperty('merge_what_id')) {
|
296
312
|
obj['merge_what_id'] = _ApiClient["default"].convertToType(data['merge_what_id'], 'Number');
|
297
313
|
delete data['merge_what_id'];
|
@@ -647,6 +663,30 @@ DealStrictWithMergeId.prototype['org_hidden'] = undefined;
|
|
647
663
|
*/
|
648
664
|
DealStrictWithMergeId.prototype['person_hidden'] = undefined;
|
649
665
|
|
666
|
+
/**
|
667
|
+
* The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
|
668
|
+
* @member {String} origin
|
669
|
+
*/
|
670
|
+
DealStrictWithMergeId.prototype['origin'] = undefined;
|
671
|
+
|
672
|
+
/**
|
673
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
|
674
|
+
* @member {String} origin_id
|
675
|
+
*/
|
676
|
+
DealStrictWithMergeId.prototype['origin_id'] = undefined;
|
677
|
+
|
678
|
+
/**
|
679
|
+
* The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>.
|
680
|
+
* @member {Number} channel
|
681
|
+
*/
|
682
|
+
DealStrictWithMergeId.prototype['channel'] = undefined;
|
683
|
+
|
684
|
+
/**
|
685
|
+
* The optional ID to further distinguish the Marketing channel.
|
686
|
+
* @member {String} channel_id
|
687
|
+
*/
|
688
|
+
DealStrictWithMergeId.prototype['channel_id'] = undefined;
|
689
|
+
|
650
690
|
/**
|
651
691
|
* The deal ID of the deal which the original deal was merged with
|
652
692
|
* @member {Number} merge_what_id
|
@@ -939,6 +979,26 @@ _DealStrict["default"].prototype['org_hidden'] = undefined;
|
|
939
979
|
* @member {Boolean} person_hidden
|
940
980
|
*/
|
941
981
|
_DealStrict["default"].prototype['person_hidden'] = undefined;
|
982
|
+
/**
|
983
|
+
* The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
|
984
|
+
* @member {String} origin
|
985
|
+
*/
|
986
|
+
_DealStrict["default"].prototype['origin'] = undefined;
|
987
|
+
/**
|
988
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
|
989
|
+
* @member {String} origin_id
|
990
|
+
*/
|
991
|
+
_DealStrict["default"].prototype['origin_id'] = undefined;
|
992
|
+
/**
|
993
|
+
* The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>.
|
994
|
+
* @member {Number} channel
|
995
|
+
*/
|
996
|
+
_DealStrict["default"].prototype['channel'] = undefined;
|
997
|
+
/**
|
998
|
+
* The optional ID to further distinguish the Marketing channel.
|
999
|
+
* @member {String} channel_id
|
1000
|
+
*/
|
1001
|
+
_DealStrict["default"].prototype['channel_id'] = undefined;
|
942
1002
|
// Implement DealStrictWithMergeIdAllOf interface:
|
943
1003
|
/**
|
944
1004
|
* The deal ID of the deal which the original deal was merged with
|
@@ -90,6 +90,22 @@ var LeadResponse = /*#__PURE__*/function () {
|
|
90
90
|
obj['source_name'] = _ApiClient["default"].convertToType(data['source_name'], 'String');
|
91
91
|
delete data['source_name'];
|
92
92
|
}
|
93
|
+
if (data.hasOwnProperty('origin')) {
|
94
|
+
obj['origin'] = _ApiClient["default"].convertToType(data['origin'], 'String');
|
95
|
+
delete data['origin'];
|
96
|
+
}
|
97
|
+
if (data.hasOwnProperty('origin_id')) {
|
98
|
+
obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
|
99
|
+
delete data['origin_id'];
|
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
|
+
}
|
93
109
|
if (data.hasOwnProperty('is_archived')) {
|
94
110
|
obj['is_archived'] = _ApiClient["default"].convertToType(data['is_archived'], 'Boolean');
|
95
111
|
delete data['is_archived'];
|
@@ -183,6 +199,30 @@ LeadResponse.prototype['organization_id'] = undefined;
|
|
183
199
|
*/
|
184
200
|
LeadResponse.prototype['source_name'] = undefined;
|
185
201
|
|
202
|
+
/**
|
203
|
+
* The way this Lead was created. `origin` field is set by Pipedrive when Lead is created and cannot be changed.
|
204
|
+
* @member {String} origin
|
205
|
+
*/
|
206
|
+
LeadResponse.prototype['origin'] = undefined;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this Lead.
|
210
|
+
* @member {String} origin_id
|
211
|
+
*/
|
212
|
+
LeadResponse.prototype['origin_id'] = undefined;
|
213
|
+
|
214
|
+
/**
|
215
|
+
* The ID of your Marketing channel this Lead was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>.
|
216
|
+
* @member {Number} channel
|
217
|
+
*/
|
218
|
+
LeadResponse.prototype['channel'] = undefined;
|
219
|
+
|
220
|
+
/**
|
221
|
+
* The optional ID to further distinguish the Marketing channel.
|
222
|
+
* @member {String} channel_id
|
223
|
+
*/
|
224
|
+
LeadResponse.prototype['channel_id'] = undefined;
|
225
|
+
|
186
226
|
/**
|
187
227
|
* A flag indicating whether the lead is archived or not
|
188
228
|
* @member {Boolean} is_archived
|
@@ -0,0 +1,78 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
|
+
/**
|
12
|
+
* Pipedrive API v1
|
13
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
14
|
+
*
|
15
|
+
* The version of the OpenAPI document: 1.0.0
|
16
|
+
*
|
17
|
+
*
|
18
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
19
|
+
* https://openapi-generator.tech
|
20
|
+
* Do not edit the class manually.
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
/**
|
24
|
+
* The NameObject model module.
|
25
|
+
* @module model/NameObject
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var NameObject = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>NameObject</code>.
|
31
|
+
* @alias module:model/NameObject
|
32
|
+
*/
|
33
|
+
function NameObject() {
|
34
|
+
(0, _classCallCheck2["default"])(this, NameObject);
|
35
|
+
NameObject.initialize(this);
|
36
|
+
}
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Initializes the fields of this object.
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
41
|
+
* Only for internal use.
|
42
|
+
*/
|
43
|
+
(0, _createClass2["default"])(NameObject, null, [{
|
44
|
+
key: "initialize",
|
45
|
+
value: function initialize(obj) {}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>NameObject</code> from a plain JavaScript object, optionally creating a new instance.
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
51
|
+
* @param {module:model/NameObject} obj Optional instance to populate.
|
52
|
+
* @return {module:model/NameObject} The populated <code>NameObject</code> instance.
|
53
|
+
*/
|
54
|
+
}, {
|
55
|
+
key: "constructFromObject",
|
56
|
+
value: function constructFromObject(data, obj) {
|
57
|
+
if (data) {
|
58
|
+
obj = obj || new NameObject();
|
59
|
+
if (data.hasOwnProperty('name')) {
|
60
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
61
|
+
delete data['name'];
|
62
|
+
}
|
63
|
+
if (Object.keys(data).length > 0) {
|
64
|
+
Object.assign(obj, data);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return obj;
|
68
|
+
}
|
69
|
+
}]);
|
70
|
+
return NameObject;
|
71
|
+
}();
|
72
|
+
/**
|
73
|
+
* The name of the product
|
74
|
+
* @member {String} name
|
75
|
+
*/
|
76
|
+
NameObject.prototype['name'] = undefined;
|
77
|
+
var _default = NameObject;
|
78
|
+
exports["default"] = _default;
|
package/dist/model/NewDeal.js
CHANGED
@@ -112,6 +112,18 @@ var NewDeal = /*#__PURE__*/function () {
|
|
112
112
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
113
113
|
delete data['status'];
|
114
114
|
}
|
115
|
+
if (data.hasOwnProperty('origin_id')) {
|
116
|
+
obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
|
117
|
+
delete data['origin_id'];
|
118
|
+
}
|
119
|
+
if (data.hasOwnProperty('channel')) {
|
120
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
|
121
|
+
delete data['channel'];
|
122
|
+
}
|
123
|
+
if (data.hasOwnProperty('channel_id')) {
|
124
|
+
obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
|
125
|
+
delete data['channel_id'];
|
126
|
+
}
|
115
127
|
if (data.hasOwnProperty('add_time')) {
|
116
128
|
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
117
129
|
delete data['add_time'];
|
@@ -213,6 +225,24 @@ NewDeal.prototype['stage_id'] = undefined;
|
|
213
225
|
*/
|
214
226
|
NewDeal.prototype['status'] = undefined;
|
215
227
|
|
228
|
+
/**
|
229
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null.
|
230
|
+
* @member {String} origin_id
|
231
|
+
*/
|
232
|
+
NewDeal.prototype['origin_id'] = undefined;
|
233
|
+
|
234
|
+
/**
|
235
|
+
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null.
|
236
|
+
* @member {Number} channel
|
237
|
+
*/
|
238
|
+
NewDeal.prototype['channel'] = undefined;
|
239
|
+
|
240
|
+
/**
|
241
|
+
* The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null.
|
242
|
+
* @member {String} channel_id
|
243
|
+
*/
|
244
|
+
NewDeal.prototype['channel_id'] = undefined;
|
245
|
+
|
216
246
|
/**
|
217
247
|
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
218
248
|
* @member {String} add_time
|
@@ -313,6 +343,21 @@ _NewDealParameters["default"].prototype['stage_id'] = undefined;
|
|
313
343
|
* @member {module:model/NewDealParameters.StatusEnum} status
|
314
344
|
*/
|
315
345
|
_NewDealParameters["default"].prototype['status'] = undefined;
|
346
|
+
/**
|
347
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null.
|
348
|
+
* @member {String} origin_id
|
349
|
+
*/
|
350
|
+
_NewDealParameters["default"].prototype['origin_id'] = undefined;
|
351
|
+
/**
|
352
|
+
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null.
|
353
|
+
* @member {Number} channel
|
354
|
+
*/
|
355
|
+
_NewDealParameters["default"].prototype['channel'] = undefined;
|
356
|
+
/**
|
357
|
+
* The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null.
|
358
|
+
* @member {String} channel_id
|
359
|
+
*/
|
360
|
+
_NewDealParameters["default"].prototype['channel_id'] = undefined;
|
316
361
|
/**
|
317
362
|
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
318
363
|
* @member {String} add_time
|
@@ -92,6 +92,18 @@ var NewDealParameters = /*#__PURE__*/function () {
|
|
92
92
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
93
93
|
delete data['status'];
|
94
94
|
}
|
95
|
+
if (data.hasOwnProperty('origin_id')) {
|
96
|
+
obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
|
97
|
+
delete data['origin_id'];
|
98
|
+
}
|
99
|
+
if (data.hasOwnProperty('channel')) {
|
100
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
|
101
|
+
delete data['channel'];
|
102
|
+
}
|
103
|
+
if (data.hasOwnProperty('channel_id')) {
|
104
|
+
obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
|
105
|
+
delete data['channel_id'];
|
106
|
+
}
|
95
107
|
if (data.hasOwnProperty('add_time')) {
|
96
108
|
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
97
109
|
delete data['add_time'];
|
@@ -159,6 +171,24 @@ NewDealParameters.prototype['stage_id'] = undefined;
|
|
159
171
|
*/
|
160
172
|
NewDealParameters.prototype['status'] = undefined;
|
161
173
|
|
174
|
+
/**
|
175
|
+
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null.
|
176
|
+
* @member {String} origin_id
|
177
|
+
*/
|
178
|
+
NewDealParameters.prototype['origin_id'] = undefined;
|
179
|
+
|
180
|
+
/**
|
181
|
+
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null.
|
182
|
+
* @member {Number} channel
|
183
|
+
*/
|
184
|
+
NewDealParameters.prototype['channel'] = undefined;
|
185
|
+
|
186
|
+
/**
|
187
|
+
* The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null.
|
188
|
+
* @member {String} channel_id
|
189
|
+
*/
|
190
|
+
NewDealParameters.prototype['channel_id'] = undefined;
|
191
|
+
|
162
192
|
/**
|
163
193
|
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
164
194
|
* @member {String} add_time
|