pipedrive 13.2.6 → 13.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +5 -0
- package/dist/api/StagesApi.js +11 -5
- package/dist/model/BasicDeal.js +12 -1
- package/dist/model/NewDeal.js +19 -2
- package/dist/model/UpdateDealRequest.js +19 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -8,6 +8,11 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## 13.2.7
|
12
|
+
## Changed
|
13
|
+
- Added `everyone` parameter to `GET /v1/stages/{id}` endpoint
|
14
|
+
- Updated `/v1/deals` endpoint `stage_id` and added `pipeline_id` descriptions
|
15
|
+
|
11
16
|
## 13.2.6
|
12
17
|
## Changed
|
13
18
|
- Updated `POST /products`: parameter `name` is required
|
package/dist/api/StagesApi.js
CHANGED
@@ -225,13 +225,15 @@ var StagesApi = /*#__PURE__*/function () {
|
|
225
225
|
* Get one stage
|
226
226
|
* Returns data about a specific stage.
|
227
227
|
* @param {Number} id The ID of the stage
|
228
|
+
* @param {Object} opts Optional parameters
|
229
|
+
* @param {module:model/NumberBoolean} opts.everyone If `everyone=1` is provided, deals summary will return deals owned by every user
|
228
230
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOneStage} and HTTP response
|
229
231
|
*/
|
230
232
|
|
231
233
|
}, {
|
232
234
|
key: "getStageWithHttpInfo",
|
233
|
-
value: function getStageWithHttpInfo(id) {
|
234
|
-
|
235
|
+
value: function getStageWithHttpInfo(id, opts) {
|
236
|
+
opts = opts || {};
|
235
237
|
var postBody = null; // verify the required parameter 'id' is set
|
236
238
|
|
237
239
|
if (id === undefined || id === null) {
|
@@ -241,7 +243,9 @@ var StagesApi = /*#__PURE__*/function () {
|
|
241
243
|
var pathParams = {
|
242
244
|
'id': id
|
243
245
|
};
|
244
|
-
var queryParams = {
|
246
|
+
var queryParams = {
|
247
|
+
'everyone': opts['everyone']
|
248
|
+
};
|
245
249
|
var headerParams = {};
|
246
250
|
var formParams = {};
|
247
251
|
var formParamArray = [];
|
@@ -268,13 +272,15 @@ var StagesApi = /*#__PURE__*/function () {
|
|
268
272
|
* Get one stage
|
269
273
|
* Returns data about a specific stage.
|
270
274
|
* @param {Number} id The ID of the stage
|
275
|
+
* @param {Object} opts Optional parameters
|
276
|
+
* @param {module:model/NumberBoolean} opts.everyone If `everyone=1` is provided, deals summary will return deals owned by every user
|
271
277
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOneStage}
|
272
278
|
*/
|
273
279
|
|
274
280
|
}, {
|
275
281
|
key: "getStage",
|
276
|
-
value: function getStage(id) {
|
277
|
-
return this.getStageWithHttpInfo(id).then(function (response_and_data) {
|
282
|
+
value: function getStage(id, opts) {
|
283
|
+
return this.getStageWithHttpInfo(id, opts).then(function (response_and_data) {
|
278
284
|
return response_and_data;
|
279
285
|
});
|
280
286
|
}
|
package/dist/model/BasicDeal.js
CHANGED
@@ -91,6 +91,11 @@ var BasicDeal = /*#__PURE__*/function () {
|
|
91
91
|
delete data['org_id'];
|
92
92
|
}
|
93
93
|
|
94
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
95
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
96
|
+
delete data['pipeline_id'];
|
97
|
+
}
|
98
|
+
|
94
99
|
if (data.hasOwnProperty('stage_id')) {
|
95
100
|
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
96
101
|
delete data['stage_id'];
|
@@ -163,7 +168,13 @@ BasicDeal.prototype['person_id'] = undefined;
|
|
163
168
|
|
164
169
|
BasicDeal.prototype['org_id'] = undefined;
|
165
170
|
/**
|
166
|
-
* The ID of
|
171
|
+
* 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.
|
172
|
+
* @member {Number} pipeline_id
|
173
|
+
*/
|
174
|
+
|
175
|
+
BasicDeal.prototype['pipeline_id'] = undefined;
|
176
|
+
/**
|
177
|
+
* 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.
|
167
178
|
* @member {Number} stage_id
|
168
179
|
*/
|
169
180
|
|
package/dist/model/NewDeal.js
CHANGED
@@ -121,6 +121,11 @@ var NewDeal = /*#__PURE__*/function () {
|
|
121
121
|
delete data['org_id'];
|
122
122
|
}
|
123
123
|
|
124
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
125
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
126
|
+
delete data['pipeline_id'];
|
127
|
+
}
|
128
|
+
|
124
129
|
if (data.hasOwnProperty('stage_id')) {
|
125
130
|
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
126
131
|
delete data['stage_id'];
|
@@ -204,7 +209,13 @@ NewDeal.prototype['person_id'] = undefined;
|
|
204
209
|
|
205
210
|
NewDeal.prototype['org_id'] = undefined;
|
206
211
|
/**
|
207
|
-
* The ID of
|
212
|
+
* 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.
|
213
|
+
* @member {Number} pipeline_id
|
214
|
+
*/
|
215
|
+
|
216
|
+
NewDeal.prototype['pipeline_id'] = undefined;
|
217
|
+
/**
|
218
|
+
* 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.
|
208
219
|
* @member {Number} stage_id
|
209
220
|
*/
|
210
221
|
|
@@ -284,7 +295,13 @@ _BasicDeal["default"].prototype['person_id'] = undefined;
|
|
284
295
|
|
285
296
|
_BasicDeal["default"].prototype['org_id'] = undefined;
|
286
297
|
/**
|
287
|
-
* The ID of
|
298
|
+
* 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.
|
299
|
+
* @member {Number} pipeline_id
|
300
|
+
*/
|
301
|
+
|
302
|
+
_BasicDeal["default"].prototype['pipeline_id'] = undefined;
|
303
|
+
/**
|
304
|
+
* 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.
|
288
305
|
* @member {Number} stage_id
|
289
306
|
*/
|
290
307
|
|
@@ -111,6 +111,11 @@ var UpdateDealRequest = /*#__PURE__*/function () {
|
|
111
111
|
delete data['org_id'];
|
112
112
|
}
|
113
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
|
+
|
114
119
|
if (data.hasOwnProperty('stage_id')) {
|
115
120
|
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
116
121
|
delete data['stage_id'];
|
@@ -189,7 +194,13 @@ UpdateDealRequest.prototype['person_id'] = undefined;
|
|
189
194
|
|
190
195
|
UpdateDealRequest.prototype['org_id'] = undefined;
|
191
196
|
/**
|
192
|
-
* 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.
|
193
204
|
* @member {Number} stage_id
|
194
205
|
*/
|
195
206
|
|
@@ -263,7 +274,13 @@ _BasicDeal["default"].prototype['person_id'] = undefined;
|
|
263
274
|
|
264
275
|
_BasicDeal["default"].prototype['org_id'] = undefined;
|
265
276
|
/**
|
266
|
-
* 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.
|
267
284
|
* @member {Number} stage_id
|
268
285
|
*/
|
269
286
|
|