pipedrive 13.2.4 → 13.2.7
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 +22 -0
- package/README.md +12 -1
- package/dist/api/DealsApi.js +8 -0
- package/dist/api/LeadsApi.js +92 -1
- package/dist/api/OrganizationsApi.js +4 -0
- package/dist/api/PersonsApi.js +17 -10
- package/dist/api/ProductsApi.js +5 -5
- package/dist/api/StagesApi.js +11 -5
- package/dist/index.js +88 -8
- package/dist/model/ActivityObjectFragment.js +11 -0
- package/dist/model/ActivityPostObject.js +17 -0
- package/dist/model/ActivityPutObject.js +17 -0
- package/dist/model/ActivityResponseObject.js +17 -11
- package/dist/model/AddLeadRequest.js +1 -1
- package/dist/model/AddNoteRequest.js +7 -4
- package/dist/model/AddProductAttachmentDetails.js +11 -4
- package/dist/model/AddProductRequestBody.js +16 -5
- package/dist/model/BasicDeal.js +33 -7
- package/dist/model/BasicDealProduct.js +8 -3
- package/dist/model/BasicOrganization.js +6 -3
- package/dist/model/BasicPerson.js +6 -3
- package/dist/model/FilterType.js +1 -0
- package/dist/model/LeadSearchItem.js +102 -0
- package/dist/model/LeadSearchItemItem.js +234 -0
- package/dist/model/LeadSearchItemItemOrganization.js +101 -0
- package/dist/model/LeadSearchItemItemOwner.js +90 -0
- package/dist/model/LeadSearchItemItemPerson.js +101 -0
- package/dist/model/LeadSearchResponse.js +147 -0
- package/dist/model/LeadSearchResponseAllOf.js +103 -0
- package/dist/model/LeadSearchResponseAllOfData.js +92 -0
- package/dist/model/NewDeal.js +40 -8
- package/dist/model/NewDealProduct.js +6 -33
- package/dist/model/NewOrganization.js +1 -1
- package/dist/model/NewPerson.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteParams.js +6 -3
- package/dist/model/OptionalNameObject.js +90 -0
- package/dist/model/ProductAttachmentDetails.js +11 -4
- package/dist/model/ProductRequest.js +1 -12
- package/dist/model/RequiredNameObject.js +93 -0
- package/dist/model/UpdateDealRequest.js +40 -8
- package/dist/model/UpdateLeadRequest.js +1 -1
- package/dist/model/UpdateProductRequestBody.js +254 -0
- package/package.json +1 -1
@@ -0,0 +1,93 @@
|
|
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 RequiredNameObject model module.
|
31
|
+
* @module model/RequiredNameObject
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var RequiredNameObject = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>RequiredNameObject</code>.
|
37
|
+
* @alias module:model/RequiredNameObject
|
38
|
+
* @param name {String} The name of the product
|
39
|
+
*/
|
40
|
+
function RequiredNameObject(name) {
|
41
|
+
(0, _classCallCheck2["default"])(this, RequiredNameObject);
|
42
|
+
RequiredNameObject.initialize(this, name);
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Initializes the fields of this object.
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
47
|
+
* Only for internal use.
|
48
|
+
*/
|
49
|
+
|
50
|
+
|
51
|
+
(0, _createClass2["default"])(RequiredNameObject, null, [{
|
52
|
+
key: "initialize",
|
53
|
+
value: function initialize(obj, name) {
|
54
|
+
obj['name'] = name;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Constructs a <code>RequiredNameObject</code> from a plain JavaScript object, optionally creating a new instance.
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
60
|
+
* @param {module:model/RequiredNameObject} obj Optional instance to populate.
|
61
|
+
* @return {module:model/RequiredNameObject} The populated <code>RequiredNameObject</code> instance.
|
62
|
+
*/
|
63
|
+
|
64
|
+
}, {
|
65
|
+
key: "constructFromObject",
|
66
|
+
value: function constructFromObject(data, obj) {
|
67
|
+
if (data) {
|
68
|
+
obj = obj || new RequiredNameObject();
|
69
|
+
|
70
|
+
if (data.hasOwnProperty('name')) {
|
71
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
72
|
+
delete data['name'];
|
73
|
+
}
|
74
|
+
|
75
|
+
if (Object.keys(data).length > 0) {
|
76
|
+
Object.assign(obj, data);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
return obj;
|
81
|
+
}
|
82
|
+
}]);
|
83
|
+
return RequiredNameObject;
|
84
|
+
}();
|
85
|
+
/**
|
86
|
+
* The name of the product
|
87
|
+
* @member {String} name
|
88
|
+
*/
|
89
|
+
|
90
|
+
|
91
|
+
RequiredNameObject.prototype['name'] = undefined;
|
92
|
+
var _default = RequiredNameObject;
|
93
|
+
exports["default"] = _default;
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
});
|
8
8
|
exports["default"] = void 0;
|
9
9
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11
|
-
|
12
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
13
11
|
|
14
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
@@ -21,7 +19,18 @@ var _DealTitleParameter = _interopRequireDefault(require("./DealTitleParameter")
|
|
21
19
|
|
22
20
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
23
21
|
|
24
|
-
|
22
|
+
/**
|
23
|
+
* Pipedrive API v1
|
24
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
25
|
+
*
|
26
|
+
* The version of the OpenAPI document: 1.0.0
|
27
|
+
*
|
28
|
+
*
|
29
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
30
|
+
* https://openapi-generator.tech
|
31
|
+
* Do not edit the class manually.
|
32
|
+
*
|
33
|
+
*/
|
25
34
|
|
26
35
|
/**
|
27
36
|
* The UpdateDealRequest model module.
|
@@ -102,6 +111,11 @@ var UpdateDealRequest = /*#__PURE__*/function () {
|
|
102
111
|
delete data['org_id'];
|
103
112
|
}
|
104
113
|
|
114
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
115
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
116
|
+
delete data['pipeline_id'];
|
117
|
+
}
|
118
|
+
|
105
119
|
if (data.hasOwnProperty('stage_id')) {
|
106
120
|
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
107
121
|
delete data['stage_id'];
|
@@ -180,7 +194,13 @@ UpdateDealRequest.prototype['person_id'] = undefined;
|
|
180
194
|
|
181
195
|
UpdateDealRequest.prototype['org_id'] = undefined;
|
182
196
|
/**
|
183
|
-
* The ID of
|
197
|
+
* The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
|
198
|
+
* @member {Number} pipeline_id
|
199
|
+
*/
|
200
|
+
|
201
|
+
UpdateDealRequest.prototype['pipeline_id'] = undefined;
|
202
|
+
/**
|
203
|
+
* The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
|
184
204
|
* @member {Number} stage_id
|
185
205
|
*/
|
186
206
|
|
@@ -254,7 +274,13 @@ _BasicDeal["default"].prototype['person_id'] = undefined;
|
|
254
274
|
|
255
275
|
_BasicDeal["default"].prototype['org_id'] = undefined;
|
256
276
|
/**
|
257
|
-
* The ID of
|
277
|
+
* The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
|
278
|
+
* @member {Number} pipeline_id
|
279
|
+
*/
|
280
|
+
|
281
|
+
_BasicDeal["default"].prototype['pipeline_id'] = undefined;
|
282
|
+
/**
|
283
|
+
* The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
|
258
284
|
* @member {Number} stage_id
|
259
285
|
*/
|
260
286
|
|
@@ -295,7 +321,7 @@ _BasicDeal["default"].prototype['visible_to'] = undefined;
|
|
295
321
|
* @readonly
|
296
322
|
*/
|
297
323
|
|
298
|
-
UpdateDealRequest['StatusEnum'] =
|
324
|
+
UpdateDealRequest['StatusEnum'] = {
|
299
325
|
/**
|
300
326
|
* value: "open"
|
301
327
|
* @const
|
@@ -312,7 +338,13 @@ UpdateDealRequest['StatusEnum'] = (_UpdateDealRequest$St = {
|
|
312
338
|
* value: "lost"
|
313
339
|
* @const
|
314
340
|
*/
|
315
|
-
"lost": "lost"
|
316
|
-
|
341
|
+
"lost": "lost",
|
342
|
+
|
343
|
+
/**
|
344
|
+
* value: "deleted"
|
345
|
+
* @const
|
346
|
+
*/
|
347
|
+
"deleted": "deleted"
|
348
|
+
};
|
317
349
|
var _default = UpdateDealRequest;
|
318
350
|
exports["default"] = _default;
|
@@ -177,7 +177,7 @@ UpdateLeadRequest.prototype['value'] = undefined;
|
|
177
177
|
|
178
178
|
UpdateLeadRequest.prototype['expected_close_date'] = undefined;
|
179
179
|
/**
|
180
|
-
* The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
180
|
+
* The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
181
181
|
* @member {module:model/VisibleTo} visible_to
|
182
182
|
*/
|
183
183
|
|
@@ -0,0 +1,254 @@
|
|
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 _NumberBooleanDefault = _interopRequireDefault(require("./NumberBooleanDefault1"));
|
17
|
+
|
18
|
+
var _OptionalNameObject = _interopRequireDefault(require("./OptionalNameObject"));
|
19
|
+
|
20
|
+
var _ProductRequest = _interopRequireDefault(require("./ProductRequest"));
|
21
|
+
|
22
|
+
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Pipedrive API v1
|
26
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
27
|
+
*
|
28
|
+
* The version of the OpenAPI document: 1.0.0
|
29
|
+
*
|
30
|
+
*
|
31
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
32
|
+
* https://openapi-generator.tech
|
33
|
+
* Do not edit the class manually.
|
34
|
+
*
|
35
|
+
*/
|
36
|
+
|
37
|
+
/**
|
38
|
+
* The UpdateProductRequestBody model module.
|
39
|
+
* @module model/UpdateProductRequestBody
|
40
|
+
* @version 1.0.0
|
41
|
+
*/
|
42
|
+
var UpdateProductRequestBody = /*#__PURE__*/function () {
|
43
|
+
/**
|
44
|
+
* Constructs a new <code>UpdateProductRequestBody</code>.
|
45
|
+
* @alias module:model/UpdateProductRequestBody
|
46
|
+
* @implements module:model/OptionalNameObject
|
47
|
+
* @implements module:model/ProductRequest
|
48
|
+
* @param name {String} The name of the product
|
49
|
+
*/
|
50
|
+
function UpdateProductRequestBody(name) {
|
51
|
+
(0, _classCallCheck2["default"])(this, UpdateProductRequestBody);
|
52
|
+
|
53
|
+
_OptionalNameObject["default"].initialize(this);
|
54
|
+
|
55
|
+
_ProductRequest["default"].initialize(this);
|
56
|
+
|
57
|
+
UpdateProductRequestBody.initialize(this, name);
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* Initializes the fields of this object.
|
61
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
62
|
+
* Only for internal use.
|
63
|
+
*/
|
64
|
+
|
65
|
+
|
66
|
+
(0, _createClass2["default"])(UpdateProductRequestBody, null, [{
|
67
|
+
key: "initialize",
|
68
|
+
value: function initialize(obj, name) {
|
69
|
+
obj['name'] = name;
|
70
|
+
}
|
71
|
+
/**
|
72
|
+
* Constructs a <code>UpdateProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
|
73
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
74
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
75
|
+
* @param {module:model/UpdateProductRequestBody} obj Optional instance to populate.
|
76
|
+
* @return {module:model/UpdateProductRequestBody} The populated <code>UpdateProductRequestBody</code> instance.
|
77
|
+
*/
|
78
|
+
|
79
|
+
}, {
|
80
|
+
key: "constructFromObject",
|
81
|
+
value: function constructFromObject(data, obj) {
|
82
|
+
if (data) {
|
83
|
+
obj = obj || new UpdateProductRequestBody();
|
84
|
+
|
85
|
+
_OptionalNameObject["default"].constructFromObject(data, obj);
|
86
|
+
|
87
|
+
_ProductRequest["default"].constructFromObject(data, obj);
|
88
|
+
|
89
|
+
if (data.hasOwnProperty('name')) {
|
90
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
91
|
+
delete data['name'];
|
92
|
+
}
|
93
|
+
|
94
|
+
if (data.hasOwnProperty('code')) {
|
95
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
96
|
+
delete data['code'];
|
97
|
+
}
|
98
|
+
|
99
|
+
if (data.hasOwnProperty('unit')) {
|
100
|
+
obj['unit'] = _ApiClient["default"].convertToType(data['unit'], 'String');
|
101
|
+
delete data['unit'];
|
102
|
+
}
|
103
|
+
|
104
|
+
if (data.hasOwnProperty('tax')) {
|
105
|
+
obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
|
106
|
+
delete data['tax'];
|
107
|
+
}
|
108
|
+
|
109
|
+
if (data.hasOwnProperty('active_flag')) {
|
110
|
+
obj['active_flag'] = _NumberBooleanDefault["default"].constructFromObject(data['active_flag']);
|
111
|
+
delete data['active_flag'];
|
112
|
+
}
|
113
|
+
|
114
|
+
if (data.hasOwnProperty('selectable')) {
|
115
|
+
obj['selectable'] = _NumberBooleanDefault["default"].constructFromObject(data['selectable']);
|
116
|
+
delete data['selectable'];
|
117
|
+
}
|
118
|
+
|
119
|
+
if (data.hasOwnProperty('visible_to')) {
|
120
|
+
obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], _VisibleTo["default"]);
|
121
|
+
delete data['visible_to'];
|
122
|
+
}
|
123
|
+
|
124
|
+
if (data.hasOwnProperty('owner_id')) {
|
125
|
+
obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
|
126
|
+
delete data['owner_id'];
|
127
|
+
}
|
128
|
+
|
129
|
+
if (data.hasOwnProperty('prices')) {
|
130
|
+
obj['prices'] = _ApiClient["default"].convertToType(data['prices'], [Object]);
|
131
|
+
delete data['prices'];
|
132
|
+
}
|
133
|
+
|
134
|
+
if (Object.keys(data).length > 0) {
|
135
|
+
Object.assign(obj, data);
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
return obj;
|
140
|
+
}
|
141
|
+
}]);
|
142
|
+
return UpdateProductRequestBody;
|
143
|
+
}();
|
144
|
+
/**
|
145
|
+
* The name of the product
|
146
|
+
* @member {String} name
|
147
|
+
*/
|
148
|
+
|
149
|
+
|
150
|
+
UpdateProductRequestBody.prototype['name'] = undefined;
|
151
|
+
/**
|
152
|
+
* The product code
|
153
|
+
* @member {String} code
|
154
|
+
*/
|
155
|
+
|
156
|
+
UpdateProductRequestBody.prototype['code'] = undefined;
|
157
|
+
/**
|
158
|
+
* The unit in which this product is sold
|
159
|
+
* @member {String} unit
|
160
|
+
*/
|
161
|
+
|
162
|
+
UpdateProductRequestBody.prototype['unit'] = undefined;
|
163
|
+
/**
|
164
|
+
* The tax percentage
|
165
|
+
* @member {Number} tax
|
166
|
+
* @default 0
|
167
|
+
*/
|
168
|
+
|
169
|
+
UpdateProductRequestBody.prototype['tax'] = 0;
|
170
|
+
/**
|
171
|
+
* @member {module:model/NumberBooleanDefault1} active_flag
|
172
|
+
*/
|
173
|
+
|
174
|
+
UpdateProductRequestBody.prototype['active_flag'] = undefined;
|
175
|
+
/**
|
176
|
+
* @member {module:model/NumberBooleanDefault1} selectable
|
177
|
+
*/
|
178
|
+
|
179
|
+
UpdateProductRequestBody.prototype['selectable'] = undefined;
|
180
|
+
/**
|
181
|
+
* The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
182
|
+
* @member {module:model/VisibleTo} visible_to
|
183
|
+
*/
|
184
|
+
|
185
|
+
UpdateProductRequestBody.prototype['visible_to'] = undefined;
|
186
|
+
/**
|
187
|
+
* The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
|
188
|
+
* @member {Number} owner_id
|
189
|
+
*/
|
190
|
+
|
191
|
+
UpdateProductRequestBody.prototype['owner_id'] = undefined;
|
192
|
+
/**
|
193
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, no prices will be set up for the product.
|
194
|
+
* @member {Array.<Object>} prices
|
195
|
+
*/
|
196
|
+
|
197
|
+
UpdateProductRequestBody.prototype['prices'] = undefined; // Implement OptionalNameObject interface:
|
198
|
+
|
199
|
+
/**
|
200
|
+
* The name of the product
|
201
|
+
* @member {String} name
|
202
|
+
*/
|
203
|
+
|
204
|
+
_OptionalNameObject["default"].prototype['name'] = undefined; // Implement ProductRequest interface:
|
205
|
+
|
206
|
+
/**
|
207
|
+
* The product code
|
208
|
+
* @member {String} code
|
209
|
+
*/
|
210
|
+
|
211
|
+
_ProductRequest["default"].prototype['code'] = undefined;
|
212
|
+
/**
|
213
|
+
* The unit in which this product is sold
|
214
|
+
* @member {String} unit
|
215
|
+
*/
|
216
|
+
|
217
|
+
_ProductRequest["default"].prototype['unit'] = undefined;
|
218
|
+
/**
|
219
|
+
* The tax percentage
|
220
|
+
* @member {Number} tax
|
221
|
+
* @default 0
|
222
|
+
*/
|
223
|
+
|
224
|
+
_ProductRequest["default"].prototype['tax'] = 0;
|
225
|
+
/**
|
226
|
+
* @member {module:model/NumberBooleanDefault1} active_flag
|
227
|
+
*/
|
228
|
+
|
229
|
+
_ProductRequest["default"].prototype['active_flag'] = undefined;
|
230
|
+
/**
|
231
|
+
* @member {module:model/NumberBooleanDefault1} selectable
|
232
|
+
*/
|
233
|
+
|
234
|
+
_ProductRequest["default"].prototype['selectable'] = undefined;
|
235
|
+
/**
|
236
|
+
* The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner & followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
|
237
|
+
* @member {module:model/VisibleTo} visible_to
|
238
|
+
*/
|
239
|
+
|
240
|
+
_ProductRequest["default"].prototype['visible_to'] = undefined;
|
241
|
+
/**
|
242
|
+
* The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
|
243
|
+
* @member {Number} owner_id
|
244
|
+
*/
|
245
|
+
|
246
|
+
_ProductRequest["default"].prototype['owner_id'] = undefined;
|
247
|
+
/**
|
248
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, no prices will be set up for the product.
|
249
|
+
* @member {Array.<Object>} prices
|
250
|
+
*/
|
251
|
+
|
252
|
+
_ProductRequest["default"].prototype['prices'] = undefined;
|
253
|
+
var _default = UpdateProductRequestBody;
|
254
|
+
exports["default"] = _default;
|