pipedrive 21.1.0 → 22.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/dist/index.js +10 -3
- package/dist/model/AddProductAttachmentDetails.js +0 -15
- package/dist/model/BasicDeal.js +0 -108
- package/dist/model/NewDeal.js +30 -30
- package/dist/model/NewDealParameters.js +186 -0
- package/dist/model/ProductAttachementFields.js +0 -10
- package/dist/model/ProductAttachmentDetails.js +0 -15
- package/dist/model/ProductListItem.js +0 -10
- package/dist/model/UpdateDealParameters.js +176 -0
- package/dist/model/UpdateDealRequest.js +29 -24
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1059,7 +1059,7 @@ Class | Method | HTTP request | Description
|
|
1059
1059
|
- [Pipedrive.MessageObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObject.md)
|
1060
1060
|
- [Pipedrive.MessageObjectAttachments](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObjectAttachments.md)
|
1061
1061
|
- [Pipedrive.NewDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDeal.md)
|
1062
|
-
- [Pipedrive.
|
1062
|
+
- [Pipedrive.NewDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealParameters.md)
|
1063
1063
|
- [Pipedrive.NewDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProduct.md)
|
1064
1064
|
- [Pipedrive.NewFollowerResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponse.md)
|
1065
1065
|
- [Pipedrive.NewFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponseData.md)
|
@@ -1278,6 +1278,7 @@ Class | Method | HTTP request | Description
|
|
1278
1278
|
- [Pipedrive.TeamsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamsAllOf.md)
|
1279
1279
|
- [Pipedrive.Unauthorized](https://github.com/pipedrive/client-nodejs/blob/master/docs/Unauthorized.md)
|
1280
1280
|
- [Pipedrive.UpdateActivityResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateActivityResponse200.md)
|
1281
|
+
- [Pipedrive.UpdateDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealParameters.md)
|
1281
1282
|
- [Pipedrive.UpdateDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealProduct.md)
|
1282
1283
|
- [Pipedrive.UpdateDealRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealRequest.md)
|
1283
1284
|
- [Pipedrive.UpdateFile](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateFile.md)
|
package/dist/index.js
CHANGED
@@ -2920,10 +2920,10 @@ Object.defineProperty(exports, "NewDeal", {
|
|
2920
2920
|
return _NewDeal["default"];
|
2921
2921
|
}
|
2922
2922
|
});
|
2923
|
-
Object.defineProperty(exports, "
|
2923
|
+
Object.defineProperty(exports, "NewDealParameters", {
|
2924
2924
|
enumerable: true,
|
2925
2925
|
get: function get() {
|
2926
|
-
return
|
2926
|
+
return _NewDealParameters["default"];
|
2927
2927
|
}
|
2928
2928
|
});
|
2929
2929
|
Object.defineProperty(exports, "NewDealProduct", {
|
@@ -4324,6 +4324,12 @@ Object.defineProperty(exports, "UpdateActivityResponse200", {
|
|
4324
4324
|
return _UpdateActivityResponse["default"];
|
4325
4325
|
}
|
4326
4326
|
});
|
4327
|
+
Object.defineProperty(exports, "UpdateDealParameters", {
|
4328
|
+
enumerable: true,
|
4329
|
+
get: function get() {
|
4330
|
+
return _UpdateDealParameters["default"];
|
4331
|
+
}
|
4332
|
+
});
|
4327
4333
|
Object.defineProperty(exports, "UpdateDealProduct", {
|
4328
4334
|
enumerable: true,
|
4329
4335
|
get: function get() {
|
@@ -5128,7 +5134,7 @@ var _MergePersonsResponseAllOf = _interopRequireDefault(require("./model/MergePe
|
|
5128
5134
|
var _MessageObject = _interopRequireDefault(require("./model/MessageObject"));
|
5129
5135
|
var _MessageObjectAttachments = _interopRequireDefault(require("./model/MessageObjectAttachments"));
|
5130
5136
|
var _NewDeal = _interopRequireDefault(require("./model/NewDeal"));
|
5131
|
-
var
|
5137
|
+
var _NewDealParameters = _interopRequireDefault(require("./model/NewDealParameters"));
|
5132
5138
|
var _NewDealProduct = _interopRequireDefault(require("./model/NewDealProduct"));
|
5133
5139
|
var _NewFollowerResponse = _interopRequireDefault(require("./model/NewFollowerResponse"));
|
5134
5140
|
var _NewFollowerResponseData = _interopRequireDefault(require("./model/NewFollowerResponseData"));
|
@@ -5347,6 +5353,7 @@ var _Teams = _interopRequireDefault(require("./model/Teams"));
|
|
5347
5353
|
var _TeamsAllOf = _interopRequireDefault(require("./model/TeamsAllOf"));
|
5348
5354
|
var _Unauthorized = _interopRequireDefault(require("./model/Unauthorized"));
|
5349
5355
|
var _UpdateActivityResponse = _interopRequireDefault(require("./model/UpdateActivityResponse200"));
|
5356
|
+
var _UpdateDealParameters = _interopRequireDefault(require("./model/UpdateDealParameters"));
|
5350
5357
|
var _UpdateDealProduct = _interopRequireDefault(require("./model/UpdateDealProduct"));
|
5351
5358
|
var _UpdateDealRequest = _interopRequireDefault(require("./model/UpdateDealRequest"));
|
5352
5359
|
var _UpdateFile = _interopRequireDefault(require("./model/UpdateFile"));
|
@@ -131,10 +131,6 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
|
|
131
131
|
obj['deal_id'] = _ApiClient["default"].convertToType(data['deal_id'], 'Number');
|
132
132
|
delete data['deal_id'];
|
133
133
|
}
|
134
|
-
if (data.hasOwnProperty('sum_no_discount')) {
|
135
|
-
obj['sum_no_discount'] = _ApiClient["default"].convertToType(data['sum_no_discount'], 'Number');
|
136
|
-
delete data['sum_no_discount'];
|
137
|
-
}
|
138
134
|
if (data.hasOwnProperty('sum')) {
|
139
135
|
obj['sum'] = _ApiClient["default"].convertToType(data['sum'], 'Number');
|
140
136
|
delete data['sum'];
|
@@ -266,12 +262,6 @@ AddProductAttachmentDetails.prototype['company_id'] = undefined;
|
|
266
262
|
*/
|
267
263
|
AddProductAttachmentDetails.prototype['deal_id'] = undefined;
|
268
264
|
|
269
|
-
/**
|
270
|
-
* The product sum without the discount
|
271
|
-
* @member {Number} sum_no_discount
|
272
|
-
*/
|
273
|
-
AddProductAttachmentDetails.prototype['sum_no_discount'] = undefined;
|
274
|
-
|
275
265
|
/**
|
276
266
|
* The sum of all the products attached to the deal
|
277
267
|
* @member {Number} sum
|
@@ -394,11 +384,6 @@ _ProductAttachmentDetails["default"].prototype['company_id'] = undefined;
|
|
394
384
|
* @member {Number} deal_id
|
395
385
|
*/
|
396
386
|
_ProductAttachmentDetails["default"].prototype['deal_id'] = undefined;
|
397
|
-
/**
|
398
|
-
* The product sum without the discount
|
399
|
-
* @member {Number} sum_no_discount
|
400
|
-
*/
|
401
|
-
_ProductAttachmentDetails["default"].prototype['sum_no_discount'] = undefined;
|
402
387
|
/**
|
403
388
|
* The sum of all the products attached to the deal
|
404
389
|
* @member {Number} sum
|
package/dist/model/BasicDeal.js
CHANGED
@@ -57,38 +57,6 @@ var BasicDeal = /*#__PURE__*/function () {
|
|
57
57
|
value: function constructFromObject(data, obj) {
|
58
58
|
if (data) {
|
59
59
|
obj = obj || new BasicDeal();
|
60
|
-
if (data.hasOwnProperty('value')) {
|
61
|
-
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
|
62
|
-
delete data['value'];
|
63
|
-
}
|
64
|
-
if (data.hasOwnProperty('currency')) {
|
65
|
-
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
66
|
-
delete data['currency'];
|
67
|
-
}
|
68
|
-
if (data.hasOwnProperty('user_id')) {
|
69
|
-
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
|
70
|
-
delete data['user_id'];
|
71
|
-
}
|
72
|
-
if (data.hasOwnProperty('person_id')) {
|
73
|
-
obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
|
74
|
-
delete data['person_id'];
|
75
|
-
}
|
76
|
-
if (data.hasOwnProperty('org_id')) {
|
77
|
-
obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
|
78
|
-
delete data['org_id'];
|
79
|
-
}
|
80
|
-
if (data.hasOwnProperty('pipeline_id')) {
|
81
|
-
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
82
|
-
delete data['pipeline_id'];
|
83
|
-
}
|
84
|
-
if (data.hasOwnProperty('stage_id')) {
|
85
|
-
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
86
|
-
delete data['stage_id'];
|
87
|
-
}
|
88
|
-
if (data.hasOwnProperty('status')) {
|
89
|
-
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
90
|
-
delete data['status'];
|
91
|
-
}
|
92
60
|
if (data.hasOwnProperty('expected_close_date')) {
|
93
61
|
obj['expected_close_date'] = _ApiClient["default"].convertToType(data['expected_close_date'], 'Date');
|
94
62
|
delete data['expected_close_date'];
|
@@ -114,54 +82,6 @@ var BasicDeal = /*#__PURE__*/function () {
|
|
114
82
|
}]);
|
115
83
|
return BasicDeal;
|
116
84
|
}();
|
117
|
-
/**
|
118
|
-
* The value of the deal. If omitted, value will be set to 0.
|
119
|
-
* @member {String} value
|
120
|
-
*/
|
121
|
-
BasicDeal.prototype['value'] = undefined;
|
122
|
-
|
123
|
-
/**
|
124
|
-
* The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
|
125
|
-
* @member {String} currency
|
126
|
-
*/
|
127
|
-
BasicDeal.prototype['currency'] = undefined;
|
128
|
-
|
129
|
-
/**
|
130
|
-
* The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
|
131
|
-
* @member {Number} user_id
|
132
|
-
*/
|
133
|
-
BasicDeal.prototype['user_id'] = undefined;
|
134
|
-
|
135
|
-
/**
|
136
|
-
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
|
137
|
-
* @member {Number} person_id
|
138
|
-
*/
|
139
|
-
BasicDeal.prototype['person_id'] = undefined;
|
140
|
-
|
141
|
-
/**
|
142
|
-
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
|
143
|
-
* @member {Number} org_id
|
144
|
-
*/
|
145
|
-
BasicDeal.prototype['org_id'] = undefined;
|
146
|
-
|
147
|
-
/**
|
148
|
-
* 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.
|
149
|
-
* @member {Number} pipeline_id
|
150
|
-
*/
|
151
|
-
BasicDeal.prototype['pipeline_id'] = undefined;
|
152
|
-
|
153
|
-
/**
|
154
|
-
* 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.
|
155
|
-
* @member {Number} stage_id
|
156
|
-
*/
|
157
|
-
BasicDeal.prototype['stage_id'] = undefined;
|
158
|
-
|
159
|
-
/**
|
160
|
-
* open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
|
161
|
-
* @member {module:model/BasicDeal.StatusEnum} status
|
162
|
-
*/
|
163
|
-
BasicDeal.prototype['status'] = undefined;
|
164
|
-
|
165
85
|
/**
|
166
86
|
* The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
|
167
87
|
* @member {Date} expected_close_date
|
@@ -185,33 +105,5 @@ BasicDeal.prototype['lost_reason'] = undefined;
|
|
185
105
|
* @member {module:model/VisibleTo} visible_to
|
186
106
|
*/
|
187
107
|
BasicDeal.prototype['visible_to'] = undefined;
|
188
|
-
|
189
|
-
/**
|
190
|
-
* Allowed values for the <code>status</code> property.
|
191
|
-
* @enum {String}
|
192
|
-
* @readonly
|
193
|
-
*/
|
194
|
-
BasicDeal['StatusEnum'] = {
|
195
|
-
/**
|
196
|
-
* value: "open"
|
197
|
-
* @const
|
198
|
-
*/
|
199
|
-
"open": "open",
|
200
|
-
/**
|
201
|
-
* value: "won"
|
202
|
-
* @const
|
203
|
-
*/
|
204
|
-
"won": "won",
|
205
|
-
/**
|
206
|
-
* value: "lost"
|
207
|
-
* @const
|
208
|
-
*/
|
209
|
-
"lost": "lost",
|
210
|
-
/**
|
211
|
-
* value: "deleted"
|
212
|
-
* @const
|
213
|
-
*/
|
214
|
-
"deleted": "deleted"
|
215
|
-
};
|
216
108
|
var _default = BasicDeal;
|
217
109
|
exports["default"] = _default;
|
package/dist/model/NewDeal.js
CHANGED
@@ -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 _BasicDeal = _interopRequireDefault(require("./BasicDeal"));
|
12
|
-
var
|
12
|
+
var _NewDealParameters = _interopRequireDefault(require("./NewDealParameters"));
|
13
13
|
var _RequredTitleParameter = _interopRequireDefault(require("./RequredTitleParameter"));
|
14
14
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
15
15
|
/**
|
@@ -34,15 +34,15 @@ var NewDeal = /*#__PURE__*/function () {
|
|
34
34
|
* Constructs a new <code>NewDeal</code>.
|
35
35
|
* @alias module:model/NewDeal
|
36
36
|
* @implements module:model/RequredTitleParameter
|
37
|
+
* @implements module:model/NewDealParameters
|
37
38
|
* @implements module:model/BasicDeal
|
38
|
-
* @implements module:model/NewDealAllOf
|
39
39
|
* @param title {String} The title of the deal
|
40
40
|
*/
|
41
41
|
function NewDeal(title) {
|
42
42
|
(0, _classCallCheck2["default"])(this, NewDeal);
|
43
43
|
_RequredTitleParameter["default"].initialize(this, title);
|
44
|
+
_NewDealParameters["default"].initialize(this);
|
44
45
|
_BasicDeal["default"].initialize(this);
|
45
|
-
_NewDealAllOf["default"].initialize(this);
|
46
46
|
NewDeal.initialize(this, title);
|
47
47
|
}
|
48
48
|
|
@@ -70,8 +70,8 @@ var NewDeal = /*#__PURE__*/function () {
|
|
70
70
|
if (data) {
|
71
71
|
obj = obj || new NewDeal();
|
72
72
|
_RequredTitleParameter["default"].constructFromObject(data, obj);
|
73
|
+
_NewDealParameters["default"].constructFromObject(data, obj);
|
73
74
|
_BasicDeal["default"].constructFromObject(data, obj);
|
74
|
-
_NewDealAllOf["default"].constructFromObject(data, obj);
|
75
75
|
if (data.hasOwnProperty('title')) {
|
76
76
|
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
77
77
|
delete data['title'];
|
@@ -108,6 +108,10 @@ var NewDeal = /*#__PURE__*/function () {
|
|
108
108
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
109
109
|
delete data['status'];
|
110
110
|
}
|
111
|
+
if (data.hasOwnProperty('add_time')) {
|
112
|
+
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
113
|
+
delete data['add_time'];
|
114
|
+
}
|
111
115
|
if (data.hasOwnProperty('expected_close_date')) {
|
112
116
|
obj['expected_close_date'] = _ApiClient["default"].convertToType(data['expected_close_date'], 'Date');
|
113
117
|
delete data['expected_close_date'];
|
@@ -124,10 +128,6 @@ var NewDeal = /*#__PURE__*/function () {
|
|
124
128
|
obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], _VisibleTo["default"]);
|
125
129
|
delete data['visible_to'];
|
126
130
|
}
|
127
|
-
if (data.hasOwnProperty('add_time')) {
|
128
|
-
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
129
|
-
delete data['add_time'];
|
130
|
-
}
|
131
131
|
if (Object.keys(data).length > 0) {
|
132
132
|
Object.assign(obj, data);
|
133
133
|
}
|
@@ -191,6 +191,12 @@ NewDeal.prototype['stage_id'] = undefined;
|
|
191
191
|
*/
|
192
192
|
NewDeal.prototype['status'] = undefined;
|
193
193
|
|
194
|
+
/**
|
195
|
+
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
196
|
+
* @member {String} add_time
|
197
|
+
*/
|
198
|
+
NewDeal.prototype['add_time'] = undefined;
|
199
|
+
|
194
200
|
/**
|
195
201
|
* The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
|
196
202
|
* @member {Date} expected_close_date
|
@@ -215,59 +221,59 @@ NewDeal.prototype['lost_reason'] = undefined;
|
|
215
221
|
*/
|
216
222
|
NewDeal.prototype['visible_to'] = undefined;
|
217
223
|
|
218
|
-
/**
|
219
|
-
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
220
|
-
* @member {String} add_time
|
221
|
-
*/
|
222
|
-
NewDeal.prototype['add_time'] = undefined;
|
223
|
-
|
224
224
|
// Implement RequredTitleParameter interface:
|
225
225
|
/**
|
226
226
|
* The title of the deal
|
227
227
|
* @member {String} title
|
228
228
|
*/
|
229
229
|
_RequredTitleParameter["default"].prototype['title'] = undefined;
|
230
|
-
// Implement
|
230
|
+
// Implement NewDealParameters interface:
|
231
231
|
/**
|
232
232
|
* The value of the deal. If omitted, value will be set to 0.
|
233
233
|
* @member {String} value
|
234
234
|
*/
|
235
|
-
|
235
|
+
_NewDealParameters["default"].prototype['value'] = undefined;
|
236
236
|
/**
|
237
237
|
* The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
|
238
238
|
* @member {String} currency
|
239
239
|
*/
|
240
|
-
|
240
|
+
_NewDealParameters["default"].prototype['currency'] = undefined;
|
241
241
|
/**
|
242
242
|
* The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
|
243
243
|
* @member {Number} user_id
|
244
244
|
*/
|
245
|
-
|
245
|
+
_NewDealParameters["default"].prototype['user_id'] = undefined;
|
246
246
|
/**
|
247
247
|
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
|
248
248
|
* @member {Number} person_id
|
249
249
|
*/
|
250
|
-
|
250
|
+
_NewDealParameters["default"].prototype['person_id'] = undefined;
|
251
251
|
/**
|
252
252
|
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
|
253
253
|
* @member {Number} org_id
|
254
254
|
*/
|
255
|
-
|
255
|
+
_NewDealParameters["default"].prototype['org_id'] = undefined;
|
256
256
|
/**
|
257
257
|
* 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.
|
258
258
|
* @member {Number} pipeline_id
|
259
259
|
*/
|
260
|
-
|
260
|
+
_NewDealParameters["default"].prototype['pipeline_id'] = undefined;
|
261
261
|
/**
|
262
262
|
* 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.
|
263
263
|
* @member {Number} stage_id
|
264
264
|
*/
|
265
|
-
|
265
|
+
_NewDealParameters["default"].prototype['stage_id'] = undefined;
|
266
266
|
/**
|
267
267
|
* open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
|
268
|
-
* @member {module:model/
|
268
|
+
* @member {module:model/NewDealParameters.StatusEnum} status
|
269
269
|
*/
|
270
|
-
|
270
|
+
_NewDealParameters["default"].prototype['status'] = undefined;
|
271
|
+
/**
|
272
|
+
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
273
|
+
* @member {String} add_time
|
274
|
+
*/
|
275
|
+
_NewDealParameters["default"].prototype['add_time'] = undefined;
|
276
|
+
// Implement BasicDeal interface:
|
271
277
|
/**
|
272
278
|
* The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
|
273
279
|
* @member {Date} expected_close_date
|
@@ -288,12 +294,6 @@ _BasicDeal["default"].prototype['lost_reason'] = undefined;
|
|
288
294
|
* @member {module:model/VisibleTo} visible_to
|
289
295
|
*/
|
290
296
|
_BasicDeal["default"].prototype['visible_to'] = undefined;
|
291
|
-
// Implement NewDealAllOf interface:
|
292
|
-
/**
|
293
|
-
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
294
|
-
* @member {String} add_time
|
295
|
-
*/
|
296
|
-
_NewDealAllOf["default"].prototype['add_time'] = undefined;
|
297
297
|
|
298
298
|
/**
|
299
299
|
* Allowed values for the <code>status</code> property.
|
@@ -0,0 +1,186 @@
|
|
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 NewDealParameters model module.
|
25
|
+
* @module model/NewDealParameters
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var NewDealParameters = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>NewDealParameters</code>.
|
31
|
+
* @alias module:model/NewDealParameters
|
32
|
+
*/
|
33
|
+
function NewDealParameters() {
|
34
|
+
(0, _classCallCheck2["default"])(this, NewDealParameters);
|
35
|
+
NewDealParameters.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"])(NewDealParameters, null, [{
|
44
|
+
key: "initialize",
|
45
|
+
value: function initialize(obj) {}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>NewDealParameters</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/NewDealParameters} obj Optional instance to populate.
|
52
|
+
* @return {module:model/NewDealParameters} The populated <code>NewDealParameters</code> instance.
|
53
|
+
*/
|
54
|
+
}, {
|
55
|
+
key: "constructFromObject",
|
56
|
+
value: function constructFromObject(data, obj) {
|
57
|
+
if (data) {
|
58
|
+
obj = obj || new NewDealParameters();
|
59
|
+
if (data.hasOwnProperty('value')) {
|
60
|
+
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
|
61
|
+
delete data['value'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('currency')) {
|
64
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
65
|
+
delete data['currency'];
|
66
|
+
}
|
67
|
+
if (data.hasOwnProperty('user_id')) {
|
68
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
|
69
|
+
delete data['user_id'];
|
70
|
+
}
|
71
|
+
if (data.hasOwnProperty('person_id')) {
|
72
|
+
obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
|
73
|
+
delete data['person_id'];
|
74
|
+
}
|
75
|
+
if (data.hasOwnProperty('org_id')) {
|
76
|
+
obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
|
77
|
+
delete data['org_id'];
|
78
|
+
}
|
79
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
80
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
81
|
+
delete data['pipeline_id'];
|
82
|
+
}
|
83
|
+
if (data.hasOwnProperty('stage_id')) {
|
84
|
+
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
85
|
+
delete data['stage_id'];
|
86
|
+
}
|
87
|
+
if (data.hasOwnProperty('status')) {
|
88
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
89
|
+
delete data['status'];
|
90
|
+
}
|
91
|
+
if (data.hasOwnProperty('add_time')) {
|
92
|
+
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
93
|
+
delete data['add_time'];
|
94
|
+
}
|
95
|
+
if (Object.keys(data).length > 0) {
|
96
|
+
Object.assign(obj, data);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
return obj;
|
100
|
+
}
|
101
|
+
}]);
|
102
|
+
return NewDealParameters;
|
103
|
+
}();
|
104
|
+
/**
|
105
|
+
* The value of the deal. If omitted, value will be set to 0.
|
106
|
+
* @member {String} value
|
107
|
+
*/
|
108
|
+
NewDealParameters.prototype['value'] = undefined;
|
109
|
+
|
110
|
+
/**
|
111
|
+
* The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
|
112
|
+
* @member {String} currency
|
113
|
+
*/
|
114
|
+
NewDealParameters.prototype['currency'] = undefined;
|
115
|
+
|
116
|
+
/**
|
117
|
+
* The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
|
118
|
+
* @member {Number} user_id
|
119
|
+
*/
|
120
|
+
NewDealParameters.prototype['user_id'] = undefined;
|
121
|
+
|
122
|
+
/**
|
123
|
+
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
|
124
|
+
* @member {Number} person_id
|
125
|
+
*/
|
126
|
+
NewDealParameters.prototype['person_id'] = undefined;
|
127
|
+
|
128
|
+
/**
|
129
|
+
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
|
130
|
+
* @member {Number} org_id
|
131
|
+
*/
|
132
|
+
NewDealParameters.prototype['org_id'] = undefined;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* 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.
|
136
|
+
* @member {Number} pipeline_id
|
137
|
+
*/
|
138
|
+
NewDealParameters.prototype['pipeline_id'] = undefined;
|
139
|
+
|
140
|
+
/**
|
141
|
+
* 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.
|
142
|
+
* @member {Number} stage_id
|
143
|
+
*/
|
144
|
+
NewDealParameters.prototype['stage_id'] = undefined;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
|
148
|
+
* @member {module:model/NewDealParameters.StatusEnum} status
|
149
|
+
*/
|
150
|
+
NewDealParameters.prototype['status'] = undefined;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
|
154
|
+
* @member {String} add_time
|
155
|
+
*/
|
156
|
+
NewDealParameters.prototype['add_time'] = undefined;
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Allowed values for the <code>status</code> property.
|
160
|
+
* @enum {String}
|
161
|
+
* @readonly
|
162
|
+
*/
|
163
|
+
NewDealParameters['StatusEnum'] = {
|
164
|
+
/**
|
165
|
+
* value: "open"
|
166
|
+
* @const
|
167
|
+
*/
|
168
|
+
"open": "open",
|
169
|
+
/**
|
170
|
+
* value: "won"
|
171
|
+
* @const
|
172
|
+
*/
|
173
|
+
"won": "won",
|
174
|
+
/**
|
175
|
+
* value: "lost"
|
176
|
+
* @const
|
177
|
+
*/
|
178
|
+
"lost": "lost",
|
179
|
+
/**
|
180
|
+
* value: "deleted"
|
181
|
+
* @const
|
182
|
+
*/
|
183
|
+
"deleted": "deleted"
|
184
|
+
};
|
185
|
+
var _default = NewDealParameters;
|
186
|
+
exports["default"] = _default;
|
@@ -76,10 +76,6 @@ var ProductAttachementFields = /*#__PURE__*/function () {
|
|
76
76
|
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], 'String');
|
77
77
|
delete data['duration_unit'];
|
78
78
|
}
|
79
|
-
if (data.hasOwnProperty('sum_no_discount')) {
|
80
|
-
obj['sum_no_discount'] = _ApiClient["default"].convertToType(data['sum_no_discount'], 'Number');
|
81
|
-
delete data['sum_no_discount'];
|
82
|
-
}
|
83
79
|
if (data.hasOwnProperty('sum')) {
|
84
80
|
obj['sum'] = _ApiClient["default"].convertToType(data['sum'], 'Number');
|
85
81
|
delete data['sum'];
|
@@ -147,12 +143,6 @@ ProductAttachementFields.prototype['product_id'] = undefined;
|
|
147
143
|
*/
|
148
144
|
ProductAttachementFields.prototype['duration_unit'] = undefined;
|
149
145
|
|
150
|
-
/**
|
151
|
-
* The product sum without the discount
|
152
|
-
* @member {Number} sum_no_discount
|
153
|
-
*/
|
154
|
-
ProductAttachementFields.prototype['sum_no_discount'] = undefined;
|
155
|
-
|
156
146
|
/**
|
157
147
|
* The sum of all the products attached to the deal
|
158
148
|
* @member {Number} sum
|
@@ -131,10 +131,6 @@ var ProductAttachmentDetails = /*#__PURE__*/function () {
|
|
131
131
|
obj['deal_id'] = _ApiClient["default"].convertToType(data['deal_id'], 'Number');
|
132
132
|
delete data['deal_id'];
|
133
133
|
}
|
134
|
-
if (data.hasOwnProperty('sum_no_discount')) {
|
135
|
-
obj['sum_no_discount'] = _ApiClient["default"].convertToType(data['sum_no_discount'], 'Number');
|
136
|
-
delete data['sum_no_discount'];
|
137
|
-
}
|
138
134
|
if (data.hasOwnProperty('sum')) {
|
139
135
|
obj['sum'] = _ApiClient["default"].convertToType(data['sum'], 'Number');
|
140
136
|
delete data['sum'];
|
@@ -262,12 +258,6 @@ ProductAttachmentDetails.prototype['company_id'] = undefined;
|
|
262
258
|
*/
|
263
259
|
ProductAttachmentDetails.prototype['deal_id'] = undefined;
|
264
260
|
|
265
|
-
/**
|
266
|
-
* The product sum without the discount
|
267
|
-
* @member {Number} sum_no_discount
|
268
|
-
*/
|
269
|
-
ProductAttachmentDetails.prototype['sum_no_discount'] = undefined;
|
270
|
-
|
271
261
|
/**
|
272
262
|
* The sum of all the products attached to the deal
|
273
263
|
* @member {Number} sum
|
@@ -396,11 +386,6 @@ _ProductAttachementFields["default"].prototype['product_id'] = undefined;
|
|
396
386
|
* @member {String} duration_unit
|
397
387
|
*/
|
398
388
|
_ProductAttachementFields["default"].prototype['duration_unit'] = undefined;
|
399
|
-
/**
|
400
|
-
* The product sum without the discount
|
401
|
-
* @member {Number} sum_no_discount
|
402
|
-
*/
|
403
|
-
_ProductAttachementFields["default"].prototype['sum_no_discount'] = undefined;
|
404
389
|
/**
|
405
390
|
* The sum of all the products attached to the deal
|
406
391
|
* @member {Number} sum
|
@@ -97,10 +97,6 @@ var ProductListItem = /*#__PURE__*/function () {
|
|
97
97
|
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], 'String');
|
98
98
|
delete data['duration_unit'];
|
99
99
|
}
|
100
|
-
if (data.hasOwnProperty('sum_no_discount')) {
|
101
|
-
obj['sum_no_discount'] = _ApiClient["default"].convertToType(data['sum_no_discount'], 'Number');
|
102
|
-
delete data['sum_no_discount'];
|
103
|
-
}
|
104
100
|
if (data.hasOwnProperty('sum')) {
|
105
101
|
obj['sum'] = _ApiClient["default"].convertToType(data['sum'], 'Number');
|
106
102
|
delete data['sum'];
|
@@ -228,12 +224,6 @@ ProductListItem.prototype['duration'] = undefined;
|
|
228
224
|
*/
|
229
225
|
ProductListItem.prototype['duration_unit'] = undefined;
|
230
226
|
|
231
|
-
/**
|
232
|
-
* The product sum without the discount
|
233
|
-
* @member {Number} sum_no_discount
|
234
|
-
*/
|
235
|
-
ProductListItem.prototype['sum_no_discount'] = undefined;
|
236
|
-
|
237
227
|
/**
|
238
228
|
* The sum of all the products attached to the deal
|
239
229
|
* @member {Number} sum
|
@@ -0,0 +1,176 @@
|
|
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 UpdateDealParameters model module.
|
25
|
+
* @module model/UpdateDealParameters
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var UpdateDealParameters = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>UpdateDealParameters</code>.
|
31
|
+
* @alias module:model/UpdateDealParameters
|
32
|
+
*/
|
33
|
+
function UpdateDealParameters() {
|
34
|
+
(0, _classCallCheck2["default"])(this, UpdateDealParameters);
|
35
|
+
UpdateDealParameters.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"])(UpdateDealParameters, null, [{
|
44
|
+
key: "initialize",
|
45
|
+
value: function initialize(obj) {}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>UpdateDealParameters</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/UpdateDealParameters} obj Optional instance to populate.
|
52
|
+
* @return {module:model/UpdateDealParameters} The populated <code>UpdateDealParameters</code> instance.
|
53
|
+
*/
|
54
|
+
}, {
|
55
|
+
key: "constructFromObject",
|
56
|
+
value: function constructFromObject(data, obj) {
|
57
|
+
if (data) {
|
58
|
+
obj = obj || new UpdateDealParameters();
|
59
|
+
if (data.hasOwnProperty('value')) {
|
60
|
+
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
|
61
|
+
delete data['value'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('currency')) {
|
64
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
65
|
+
delete data['currency'];
|
66
|
+
}
|
67
|
+
if (data.hasOwnProperty('user_id')) {
|
68
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
|
69
|
+
delete data['user_id'];
|
70
|
+
}
|
71
|
+
if (data.hasOwnProperty('person_id')) {
|
72
|
+
obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
|
73
|
+
delete data['person_id'];
|
74
|
+
}
|
75
|
+
if (data.hasOwnProperty('org_id')) {
|
76
|
+
obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
|
77
|
+
delete data['org_id'];
|
78
|
+
}
|
79
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
80
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
81
|
+
delete data['pipeline_id'];
|
82
|
+
}
|
83
|
+
if (data.hasOwnProperty('stage_id')) {
|
84
|
+
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
85
|
+
delete data['stage_id'];
|
86
|
+
}
|
87
|
+
if (data.hasOwnProperty('status')) {
|
88
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
89
|
+
delete data['status'];
|
90
|
+
}
|
91
|
+
if (Object.keys(data).length > 0) {
|
92
|
+
Object.assign(obj, data);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
return obj;
|
96
|
+
}
|
97
|
+
}]);
|
98
|
+
return UpdateDealParameters;
|
99
|
+
}();
|
100
|
+
/**
|
101
|
+
* The value of the deal.
|
102
|
+
* @member {String} value
|
103
|
+
*/
|
104
|
+
UpdateDealParameters.prototype['value'] = undefined;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* The currency of the deal. Accepts a 3-character currency code.
|
108
|
+
* @member {String} currency
|
109
|
+
*/
|
110
|
+
UpdateDealParameters.prototype['currency'] = undefined;
|
111
|
+
|
112
|
+
/**
|
113
|
+
* The ID of the user which will be the new owner of the deal.
|
114
|
+
* @member {Number} user_id
|
115
|
+
*/
|
116
|
+
UpdateDealParameters.prototype['user_id'] = undefined;
|
117
|
+
|
118
|
+
/**
|
119
|
+
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first.
|
120
|
+
* @member {Number} person_id
|
121
|
+
*/
|
122
|
+
UpdateDealParameters.prototype['person_id'] = undefined;
|
123
|
+
|
124
|
+
/**
|
125
|
+
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first.
|
126
|
+
* @member {Number} org_id
|
127
|
+
*/
|
128
|
+
UpdateDealParameters.prototype['org_id'] = undefined;
|
129
|
+
|
130
|
+
/**
|
131
|
+
* 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.
|
132
|
+
* @member {Number} pipeline_id
|
133
|
+
*/
|
134
|
+
UpdateDealParameters.prototype['pipeline_id'] = undefined;
|
135
|
+
|
136
|
+
/**
|
137
|
+
* 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`.
|
138
|
+
* @member {Number} stage_id
|
139
|
+
*/
|
140
|
+
UpdateDealParameters.prototype['stage_id'] = undefined;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* open = Open, won = Won, lost = Lost, deleted = Deleted.
|
144
|
+
* @member {module:model/UpdateDealParameters.StatusEnum} status
|
145
|
+
*/
|
146
|
+
UpdateDealParameters.prototype['status'] = undefined;
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Allowed values for the <code>status</code> property.
|
150
|
+
* @enum {String}
|
151
|
+
* @readonly
|
152
|
+
*/
|
153
|
+
UpdateDealParameters['StatusEnum'] = {
|
154
|
+
/**
|
155
|
+
* value: "open"
|
156
|
+
* @const
|
157
|
+
*/
|
158
|
+
"open": "open",
|
159
|
+
/**
|
160
|
+
* value: "won"
|
161
|
+
* @const
|
162
|
+
*/
|
163
|
+
"won": "won",
|
164
|
+
/**
|
165
|
+
* value: "lost"
|
166
|
+
* @const
|
167
|
+
*/
|
168
|
+
"lost": "lost",
|
169
|
+
/**
|
170
|
+
* value: "deleted"
|
171
|
+
* @const
|
172
|
+
*/
|
173
|
+
"deleted": "deleted"
|
174
|
+
};
|
175
|
+
var _default = UpdateDealParameters;
|
176
|
+
exports["default"] = _default;
|
@@ -10,6 +10,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
11
|
var _BasicDeal = _interopRequireDefault(require("./BasicDeal"));
|
12
12
|
var _DealTitleParameter = _interopRequireDefault(require("./DealTitleParameter"));
|
13
|
+
var _UpdateDealParameters = _interopRequireDefault(require("./UpdateDealParameters"));
|
13
14
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
14
15
|
/**
|
15
16
|
* Pipedrive API v1
|
@@ -33,11 +34,13 @@ var UpdateDealRequest = /*#__PURE__*/function () {
|
|
33
34
|
* Constructs a new <code>UpdateDealRequest</code>.
|
34
35
|
* @alias module:model/UpdateDealRequest
|
35
36
|
* @implements module:model/DealTitleParameter
|
37
|
+
* @implements module:model/UpdateDealParameters
|
36
38
|
* @implements module:model/BasicDeal
|
37
39
|
*/
|
38
40
|
function UpdateDealRequest() {
|
39
41
|
(0, _classCallCheck2["default"])(this, UpdateDealRequest);
|
40
42
|
_DealTitleParameter["default"].initialize(this);
|
43
|
+
_UpdateDealParameters["default"].initialize(this);
|
41
44
|
_BasicDeal["default"].initialize(this);
|
42
45
|
UpdateDealRequest.initialize(this);
|
43
46
|
}
|
@@ -64,6 +67,7 @@ var UpdateDealRequest = /*#__PURE__*/function () {
|
|
64
67
|
if (data) {
|
65
68
|
obj = obj || new UpdateDealRequest();
|
66
69
|
_DealTitleParameter["default"].constructFromObject(data, obj);
|
70
|
+
_UpdateDealParameters["default"].constructFromObject(data, obj);
|
67
71
|
_BasicDeal["default"].constructFromObject(data, obj);
|
68
72
|
if (data.hasOwnProperty('title')) {
|
69
73
|
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
@@ -133,31 +137,31 @@ var UpdateDealRequest = /*#__PURE__*/function () {
|
|
133
137
|
UpdateDealRequest.prototype['title'] = undefined;
|
134
138
|
|
135
139
|
/**
|
136
|
-
* The value of the deal.
|
140
|
+
* The value of the deal.
|
137
141
|
* @member {String} value
|
138
142
|
*/
|
139
143
|
UpdateDealRequest.prototype['value'] = undefined;
|
140
144
|
|
141
145
|
/**
|
142
|
-
* The currency of the deal. Accepts a 3-character currency code.
|
146
|
+
* The currency of the deal. Accepts a 3-character currency code.
|
143
147
|
* @member {String} currency
|
144
148
|
*/
|
145
149
|
UpdateDealRequest.prototype['currency'] = undefined;
|
146
150
|
|
147
151
|
/**
|
148
|
-
* The ID of the user which will be the owner of the
|
152
|
+
* The ID of the user which will be the new owner of the deal.
|
149
153
|
* @member {Number} user_id
|
150
154
|
*/
|
151
155
|
UpdateDealRequest.prototype['user_id'] = undefined;
|
152
156
|
|
153
157
|
/**
|
154
|
-
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first.
|
158
|
+
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first.
|
155
159
|
* @member {Number} person_id
|
156
160
|
*/
|
157
161
|
UpdateDealRequest.prototype['person_id'] = undefined;
|
158
162
|
|
159
163
|
/**
|
160
|
-
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first.
|
164
|
+
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first.
|
161
165
|
* @member {Number} org_id
|
162
166
|
*/
|
163
167
|
UpdateDealRequest.prototype['org_id'] = undefined;
|
@@ -169,13 +173,13 @@ UpdateDealRequest.prototype['org_id'] = undefined;
|
|
169
173
|
UpdateDealRequest.prototype['pipeline_id'] = undefined;
|
170
174
|
|
171
175
|
/**
|
172
|
-
* 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`.
|
176
|
+
* 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`.
|
173
177
|
* @member {Number} stage_id
|
174
178
|
*/
|
175
179
|
UpdateDealRequest.prototype['stage_id'] = undefined;
|
176
180
|
|
177
181
|
/**
|
178
|
-
* open = Open, won = Won, lost = Lost, deleted = Deleted.
|
182
|
+
* open = Open, won = Won, lost = Lost, deleted = Deleted.
|
179
183
|
* @member {module:model/UpdateDealRequest.StatusEnum} status
|
180
184
|
*/
|
181
185
|
UpdateDealRequest.prototype['status'] = undefined;
|
@@ -210,47 +214,48 @@ UpdateDealRequest.prototype['visible_to'] = undefined;
|
|
210
214
|
* @member {String} title
|
211
215
|
*/
|
212
216
|
_DealTitleParameter["default"].prototype['title'] = undefined;
|
213
|
-
// Implement
|
217
|
+
// Implement UpdateDealParameters interface:
|
214
218
|
/**
|
215
|
-
* The value of the deal.
|
219
|
+
* The value of the deal.
|
216
220
|
* @member {String} value
|
217
221
|
*/
|
218
|
-
|
222
|
+
_UpdateDealParameters["default"].prototype['value'] = undefined;
|
219
223
|
/**
|
220
|
-
* The currency of the deal. Accepts a 3-character currency code.
|
224
|
+
* The currency of the deal. Accepts a 3-character currency code.
|
221
225
|
* @member {String} currency
|
222
226
|
*/
|
223
|
-
|
227
|
+
_UpdateDealParameters["default"].prototype['currency'] = undefined;
|
224
228
|
/**
|
225
|
-
* The ID of the user which will be the owner of the
|
229
|
+
* The ID of the user which will be the new owner of the deal.
|
226
230
|
* @member {Number} user_id
|
227
231
|
*/
|
228
|
-
|
232
|
+
_UpdateDealParameters["default"].prototype['user_id'] = undefined;
|
229
233
|
/**
|
230
|
-
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first.
|
234
|
+
* The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first.
|
231
235
|
* @member {Number} person_id
|
232
236
|
*/
|
233
|
-
|
237
|
+
_UpdateDealParameters["default"].prototype['person_id'] = undefined;
|
234
238
|
/**
|
235
|
-
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first.
|
239
|
+
* The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first.
|
236
240
|
* @member {Number} org_id
|
237
241
|
*/
|
238
|
-
|
242
|
+
_UpdateDealParameters["default"].prototype['org_id'] = undefined;
|
239
243
|
/**
|
240
244
|
* 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.
|
241
245
|
* @member {Number} pipeline_id
|
242
246
|
*/
|
243
|
-
|
247
|
+
_UpdateDealParameters["default"].prototype['pipeline_id'] = undefined;
|
244
248
|
/**
|
245
|
-
* 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`.
|
249
|
+
* 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`.
|
246
250
|
* @member {Number} stage_id
|
247
251
|
*/
|
248
|
-
|
252
|
+
_UpdateDealParameters["default"].prototype['stage_id'] = undefined;
|
249
253
|
/**
|
250
|
-
* open = Open, won = Won, lost = Lost, deleted = Deleted.
|
251
|
-
* @member {module:model/
|
254
|
+
* open = Open, won = Won, lost = Lost, deleted = Deleted.
|
255
|
+
* @member {module:model/UpdateDealParameters.StatusEnum} status
|
252
256
|
*/
|
253
|
-
|
257
|
+
_UpdateDealParameters["default"].prototype['status'] = undefined;
|
258
|
+
// Implement BasicDeal interface:
|
254
259
|
/**
|
255
260
|
* The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
|
256
261
|
* @member {Date} expected_close_date
|