pipedrive 13.2.2 → 13.2.5
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 +21 -0
- package/dist/api/OrganizationsApi.js +4 -0
- package/dist/api/PersonsApi.js +17 -10
- package/dist/model/AddNoteRequest.js +7 -4
- package/dist/model/AddProductRequestBody.js +2 -2
- package/dist/model/BasicDeal.js +22 -7
- package/dist/model/BasicOrganization.js +7 -4
- package/dist/model/BasicPerson.js +7 -4
- package/dist/model/NewDeal.js +23 -8
- package/dist/model/NewOrganization.js +3 -3
- package/dist/model/NewPerson.js +3 -3
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteParams.js +6 -3
- package/dist/model/ProductRequest.js +1 -1
- package/dist/model/UpdateDealRequest.js +23 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -8,6 +8,27 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## 13.2.5
|
12
|
+
## Changed
|
13
|
+
- Updated `POST /notes`: parameter `content` is required
|
14
|
+
- Updated `POST /organizations`: parameter `name` is required
|
15
|
+
- Updated `POST /persons`: parameter `name` is required
|
16
|
+
- Updated `DELETE /persons`: parameter `ids` is required
|
17
|
+
- Updated `visible_to` parameter for `POST /deals` and `PUT /deals/{id}` to include type `number`
|
18
|
+
- Updated `visible_to` parameter for `POST /persons` and `PUT /persons/{id}` to include type `number`
|
19
|
+
- Updated `visible_to` parameter for `POST /organizations` and `PUT /organizations/{id}` to include type `number`
|
20
|
+
|
21
|
+
## 13.2.4
|
22
|
+
### Fixed
|
23
|
+
- Added quotation marks to fix formatting for Organizations endpoint `visible_to` parameter
|
24
|
+
- Updated `prices` parameter description in Products endpoint
|
25
|
+
|
26
|
+
## 13.2.3
|
27
|
+
### Changed
|
28
|
+
- Update `visible_to` parameter for `POST /deals` and `PUT /deals/{id}`. Differentiate options by plans
|
29
|
+
- Update `visible_to` parameter for `POST /persons` and `PUT /persons/{id}`. Differentiate options by plans
|
30
|
+
- Update `visible_to` parameter for `POST /organizations` and `PUT /organizations/{id}`. Differentiate options by plans
|
31
|
+
|
11
32
|
## 13.2.1
|
12
33
|
### Fixed
|
13
34
|
- Fixed wrong field name normalization for custom fields keys
|
@@ -1197,6 +1197,10 @@ var OrganizationsApi = /*#__PURE__*/function () {
|
|
1197
1197
|
throw new Error("Missing the required parameter 'id' when calling updateOrganization");
|
1198
1198
|
}
|
1199
1199
|
|
1200
|
+
if (opts['name'] === undefined || opts['name'] === null) {
|
1201
|
+
throw new Error("Missing the required parameter 'name' when calling updateOrganization");
|
1202
|
+
}
|
1203
|
+
|
1200
1204
|
var pathParams = {
|
1201
1205
|
'id': id
|
1202
1206
|
};
|
package/dist/api/PersonsApi.js
CHANGED
@@ -462,19 +462,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
462
462
|
/**
|
463
463
|
* Delete multiple persons in bulk
|
464
464
|
* Marks multiple persons as deleted.
|
465
|
-
* @param {
|
466
|
-
* @param {String} opts.ids The comma-separated IDs that will be deleted
|
465
|
+
* @param {String} ids The comma-separated IDs that will be deleted
|
467
466
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonsInBulkResponse} and HTTP response
|
468
467
|
*/
|
469
468
|
|
470
469
|
}, {
|
471
470
|
key: "deletePersonsWithHttpInfo",
|
472
|
-
value: function deletePersonsWithHttpInfo(
|
473
|
-
opts =
|
474
|
-
var postBody = null;
|
471
|
+
value: function deletePersonsWithHttpInfo(ids) {
|
472
|
+
var opts = {};
|
473
|
+
var postBody = null; // verify the required parameter 'ids' is set
|
474
|
+
|
475
|
+
if (ids === undefined || ids === null) {
|
476
|
+
throw new Error("Missing the required parameter 'ids' when calling deletePersons");
|
477
|
+
}
|
478
|
+
|
475
479
|
var pathParams = {};
|
476
480
|
var queryParams = {
|
477
|
-
'ids':
|
481
|
+
'ids': ids
|
478
482
|
};
|
479
483
|
var headerParams = {};
|
480
484
|
var formParams = {};
|
@@ -501,15 +505,14 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
501
505
|
/**
|
502
506
|
* Delete multiple persons in bulk
|
503
507
|
* Marks multiple persons as deleted.
|
504
|
-
* @param {
|
505
|
-
* @param {String} opts.ids The comma-separated IDs that will be deleted
|
508
|
+
* @param {String} ids The comma-separated IDs that will be deleted
|
506
509
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonsInBulkResponse}
|
507
510
|
*/
|
508
511
|
|
509
512
|
}, {
|
510
513
|
key: "deletePersons",
|
511
|
-
value: function deletePersons(
|
512
|
-
return this.deletePersonsWithHttpInfo(
|
514
|
+
value: function deletePersons(ids) {
|
515
|
+
return this.deletePersonsWithHttpInfo(ids).then(function (response_and_data) {
|
513
516
|
return response_and_data;
|
514
517
|
});
|
515
518
|
}
|
@@ -1334,6 +1337,10 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1334
1337
|
throw new Error("Missing the required parameter 'id' when calling updatePerson");
|
1335
1338
|
}
|
1336
1339
|
|
1340
|
+
if (opts['name'] === undefined || opts['name'] === null) {
|
1341
|
+
throw new Error("Missing the required parameter 'name' when calling updatePerson");
|
1342
|
+
}
|
1343
|
+
|
1337
1344
|
var pathParams = {
|
1338
1345
|
'id': id
|
1339
1346
|
};
|
@@ -43,15 +43,16 @@ var AddNoteRequest = /*#__PURE__*/function () {
|
|
43
43
|
* @alias module:model/AddNoteRequest
|
44
44
|
* @implements module:model/AddNoteRequestAllOf
|
45
45
|
* @implements module:model/NoteParams
|
46
|
+
* @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end.
|
46
47
|
*/
|
47
|
-
function AddNoteRequest() {
|
48
|
+
function AddNoteRequest(content) {
|
48
49
|
(0, _classCallCheck2["default"])(this, AddNoteRequest);
|
49
50
|
|
50
51
|
_AddNoteRequestAllOf["default"].initialize(this);
|
51
52
|
|
52
|
-
_NoteParams["default"].initialize(this);
|
53
|
+
_NoteParams["default"].initialize(this, content);
|
53
54
|
|
54
|
-
AddNoteRequest.initialize(this);
|
55
|
+
AddNoteRequest.initialize(this, content);
|
55
56
|
}
|
56
57
|
/**
|
57
58
|
* Initializes the fields of this object.
|
@@ -62,7 +63,9 @@ var AddNoteRequest = /*#__PURE__*/function () {
|
|
62
63
|
|
63
64
|
(0, _createClass2["default"])(AddNoteRequest, null, [{
|
64
65
|
key: "initialize",
|
65
|
-
value: function initialize(obj) {
|
66
|
+
value: function initialize(obj, content) {
|
67
|
+
obj['content'] = content;
|
68
|
+
}
|
66
69
|
/**
|
67
70
|
* Constructs a <code>AddNoteRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
68
71
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -180,7 +180,7 @@ AddProductRequestBody.prototype['visible_to'] = undefined;
|
|
180
180
|
|
181
181
|
AddProductRequestBody.prototype['owner_id'] = undefined;
|
182
182
|
/**
|
183
|
-
*
|
183
|
+
* 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.
|
184
184
|
* @member {Array.<Object>} prices
|
185
185
|
*/
|
186
186
|
|
@@ -234,7 +234,7 @@ _ProductRequest["default"].prototype['visible_to'] = undefined;
|
|
234
234
|
|
235
235
|
_ProductRequest["default"].prototype['owner_id'] = undefined;
|
236
236
|
/**
|
237
|
-
*
|
237
|
+
* 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.
|
238
238
|
* @member {Array.<Object>} prices
|
239
239
|
*/
|
240
240
|
|
package/dist/model/BasicDeal.js
CHANGED
@@ -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"));
|
@@ -17,7 +15,18 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
17
15
|
|
18
16
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
19
17
|
|
20
|
-
|
18
|
+
/**
|
19
|
+
* Pipedrive API v1
|
20
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
21
|
+
*
|
22
|
+
* The version of the OpenAPI document: 1.0.0
|
23
|
+
*
|
24
|
+
*
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
26
|
+
* https://openapi-generator.tech
|
27
|
+
* Do not edit the class manually.
|
28
|
+
*
|
29
|
+
*/
|
21
30
|
|
22
31
|
/**
|
23
32
|
* The BasicDeal model module.
|
@@ -184,7 +193,7 @@ BasicDeal.prototype['probability'] = undefined;
|
|
184
193
|
|
185
194
|
BasicDeal.prototype['lost_reason'] = undefined;
|
186
195
|
/**
|
187
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
196
|
+
* The visibility of the deal. 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>
|
188
197
|
* @member {module:model/VisibleTo} visible_to
|
189
198
|
*/
|
190
199
|
|
@@ -195,7 +204,7 @@ BasicDeal.prototype['visible_to'] = undefined;
|
|
195
204
|
* @readonly
|
196
205
|
*/
|
197
206
|
|
198
|
-
BasicDeal['StatusEnum'] =
|
207
|
+
BasicDeal['StatusEnum'] = {
|
199
208
|
/**
|
200
209
|
* value: "open"
|
201
210
|
* @const
|
@@ -212,7 +221,13 @@ BasicDeal['StatusEnum'] = (_BasicDeal$StatusEnum = {
|
|
212
221
|
* value: "lost"
|
213
222
|
* @const
|
214
223
|
*/
|
215
|
-
"lost": "lost"
|
216
|
-
|
224
|
+
"lost": "lost",
|
225
|
+
|
226
|
+
/**
|
227
|
+
* value: "deleted"
|
228
|
+
* @const
|
229
|
+
*/
|
230
|
+
"deleted": "deleted"
|
231
|
+
};
|
217
232
|
var _default = BasicDeal;
|
218
233
|
exports["default"] = _default;
|
@@ -37,10 +37,11 @@ var BasicOrganization = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
38
38
|
* Constructs a new <code>BasicOrganization</code>.
|
39
39
|
* @alias module:model/BasicOrganization
|
40
|
+
* @param name {String} The name of the organization
|
40
41
|
*/
|
41
|
-
function BasicOrganization() {
|
42
|
+
function BasicOrganization(name) {
|
42
43
|
(0, _classCallCheck2["default"])(this, BasicOrganization);
|
43
|
-
BasicOrganization.initialize(this);
|
44
|
+
BasicOrganization.initialize(this, name);
|
44
45
|
}
|
45
46
|
/**
|
46
47
|
* Initializes the fields of this object.
|
@@ -51,7 +52,9 @@ var BasicOrganization = /*#__PURE__*/function () {
|
|
51
52
|
|
52
53
|
(0, _createClass2["default"])(BasicOrganization, null, [{
|
53
54
|
key: "initialize",
|
54
|
-
value: function initialize(obj) {
|
55
|
+
value: function initialize(obj, name) {
|
56
|
+
obj['name'] = name;
|
57
|
+
}
|
55
58
|
/**
|
56
59
|
* Constructs a <code>BasicOrganization</code> from a plain JavaScript object, optionally creating a new instance.
|
57
60
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -105,7 +108,7 @@ BasicOrganization.prototype['name'] = undefined;
|
|
105
108
|
|
106
109
|
BasicOrganization.prototype['owner_id'] = undefined;
|
107
110
|
/**
|
108
|
-
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
111
|
+
* The visibility of the organization. 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>
|
109
112
|
* @member {module:model/VisibleTo} visible_to
|
110
113
|
*/
|
111
114
|
|
@@ -43,10 +43,11 @@ var BasicPerson = /*#__PURE__*/function () {
|
|
43
43
|
/**
|
44
44
|
* Constructs a new <code>BasicPerson</code>.
|
45
45
|
* @alias module:model/BasicPerson
|
46
|
+
* @param name {String} The name of the person
|
46
47
|
*/
|
47
|
-
function BasicPerson() {
|
48
|
+
function BasicPerson(name) {
|
48
49
|
(0, _classCallCheck2["default"])(this, BasicPerson);
|
49
|
-
BasicPerson.initialize(this);
|
50
|
+
BasicPerson.initialize(this, name);
|
50
51
|
}
|
51
52
|
/**
|
52
53
|
* Initializes the fields of this object.
|
@@ -57,7 +58,9 @@ var BasicPerson = /*#__PURE__*/function () {
|
|
57
58
|
|
58
59
|
(0, _createClass2["default"])(BasicPerson, null, [{
|
59
60
|
key: "initialize",
|
60
|
-
value: function initialize(obj) {
|
61
|
+
value: function initialize(obj, name) {
|
62
|
+
obj['name'] = name;
|
63
|
+
}
|
61
64
|
/**
|
62
65
|
* Constructs a <code>BasicPerson</code> from a plain JavaScript object, optionally creating a new instance.
|
63
66
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -149,7 +152,7 @@ BasicPerson.prototype['email'] = undefined;
|
|
149
152
|
|
150
153
|
BasicPerson.prototype['phone'] = undefined;
|
151
154
|
/**
|
152
|
-
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
155
|
+
* The visibility of the person. 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>
|
153
156
|
* @member {module:model/VisibleTo} visible_to
|
154
157
|
*/
|
155
158
|
|
package/dist/model/NewDeal.js
CHANGED
@@ -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"));
|
@@ -23,7 +21,18 @@ var _RequredTitleParameter = _interopRequireDefault(require("./RequredTitleParam
|
|
23
21
|
|
24
22
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
25
23
|
|
26
|
-
|
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
|
+
*/
|
27
36
|
|
28
37
|
/**
|
29
38
|
* The NewDeal model module.
|
@@ -225,7 +234,7 @@ NewDeal.prototype['probability'] = undefined;
|
|
225
234
|
|
226
235
|
NewDeal.prototype['lost_reason'] = undefined;
|
227
236
|
/**
|
228
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
237
|
+
* The visibility of the deal. 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>
|
229
238
|
* @member {module:model/VisibleTo} visible_to
|
230
239
|
*/
|
231
240
|
|
@@ -305,7 +314,7 @@ _BasicDeal["default"].prototype['probability'] = undefined;
|
|
305
314
|
|
306
315
|
_BasicDeal["default"].prototype['lost_reason'] = undefined;
|
307
316
|
/**
|
308
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
317
|
+
* The visibility of the deal. 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>
|
309
318
|
* @member {module:model/VisibleTo} visible_to
|
310
319
|
*/
|
311
320
|
|
@@ -323,7 +332,7 @@ _NewDealAllOf["default"].prototype['add_time'] = undefined;
|
|
323
332
|
* @readonly
|
324
333
|
*/
|
325
334
|
|
326
|
-
NewDeal['StatusEnum'] =
|
335
|
+
NewDeal['StatusEnum'] = {
|
327
336
|
/**
|
328
337
|
* value: "open"
|
329
338
|
* @const
|
@@ -340,7 +349,13 @@ NewDeal['StatusEnum'] = (_NewDeal$StatusEnum = {
|
|
340
349
|
* value: "lost"
|
341
350
|
* @const
|
342
351
|
*/
|
343
|
-
"lost": "lost"
|
344
|
-
|
352
|
+
"lost": "lost",
|
353
|
+
|
354
|
+
/**
|
355
|
+
* value: "deleted"
|
356
|
+
* @const
|
357
|
+
*/
|
358
|
+
"deleted": "deleted"
|
359
|
+
};
|
345
360
|
var _default = NewDeal;
|
346
361
|
exports["default"] = _default;
|
@@ -48,7 +48,7 @@ var NewOrganization = /*#__PURE__*/function () {
|
|
48
48
|
function NewOrganization(name) {
|
49
49
|
(0, _classCallCheck2["default"])(this, NewOrganization);
|
50
50
|
|
51
|
-
_BasicOrganization["default"].initialize(this);
|
51
|
+
_BasicOrganization["default"].initialize(this, name);
|
52
52
|
|
53
53
|
_NewOrganizationAllOf["default"].initialize(this);
|
54
54
|
|
@@ -128,7 +128,7 @@ NewOrganization.prototype['name'] = undefined;
|
|
128
128
|
|
129
129
|
NewOrganization.prototype['owner_id'] = undefined;
|
130
130
|
/**
|
131
|
-
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
131
|
+
* The visibility of the organization. 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>
|
132
132
|
* @member {module:model/VisibleTo} visible_to
|
133
133
|
*/
|
134
134
|
|
@@ -153,7 +153,7 @@ _BasicOrganization["default"].prototype['name'] = undefined;
|
|
153
153
|
|
154
154
|
_BasicOrganization["default"].prototype['owner_id'] = undefined;
|
155
155
|
/**
|
156
|
-
* The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
156
|
+
* The visibility of the organization. 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>
|
157
157
|
* @member {module:model/VisibleTo} visible_to
|
158
158
|
*/
|
159
159
|
|
package/dist/model/NewPerson.js
CHANGED
@@ -54,7 +54,7 @@ var NewPerson = /*#__PURE__*/function () {
|
|
54
54
|
function NewPerson(name) {
|
55
55
|
(0, _classCallCheck2["default"])(this, NewPerson);
|
56
56
|
|
57
|
-
_BasicPerson["default"].initialize(this);
|
57
|
+
_BasicPerson["default"].initialize(this, name);
|
58
58
|
|
59
59
|
_NewPersonAllOf["default"].initialize(this);
|
60
60
|
|
@@ -172,7 +172,7 @@ NewPerson.prototype['email'] = undefined;
|
|
172
172
|
|
173
173
|
NewPerson.prototype['phone'] = undefined;
|
174
174
|
/**
|
175
|
-
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
175
|
+
* The visibility of the person. 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>
|
176
176
|
* @member {module:model/VisibleTo} visible_to
|
177
177
|
*/
|
178
178
|
|
@@ -221,7 +221,7 @@ _BasicPerson["default"].prototype['email'] = undefined;
|
|
221
221
|
|
222
222
|
_BasicPerson["default"].prototype['phone'] = undefined;
|
223
223
|
/**
|
224
|
-
* The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
224
|
+
* The visibility of the person. 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>
|
225
225
|
* @member {module:model/VisibleTo} visible_to
|
226
226
|
*/
|
227
227
|
|
package/dist/model/Note.js
CHANGED
package/dist/model/NoteParams.js
CHANGED
@@ -37,10 +37,11 @@ var NoteParams = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
38
38
|
* Constructs a new <code>NoteParams</code>.
|
39
39
|
* @alias module:model/NoteParams
|
40
|
+
* @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end.
|
40
41
|
*/
|
41
|
-
function NoteParams() {
|
42
|
+
function NoteParams(content) {
|
42
43
|
(0, _classCallCheck2["default"])(this, NoteParams);
|
43
|
-
NoteParams.initialize(this);
|
44
|
+
NoteParams.initialize(this, content);
|
44
45
|
}
|
45
46
|
/**
|
46
47
|
* Initializes the fields of this object.
|
@@ -51,7 +52,9 @@ var NoteParams = /*#__PURE__*/function () {
|
|
51
52
|
|
52
53
|
(0, _createClass2["default"])(NoteParams, null, [{
|
53
54
|
key: "initialize",
|
54
|
-
value: function initialize(obj) {
|
55
|
+
value: function initialize(obj, content) {
|
56
|
+
obj['content'] = content;
|
57
|
+
}
|
55
58
|
/**
|
56
59
|
* Constructs a <code>NoteParams</code> from a plain JavaScript object, optionally creating a new instance.
|
57
60
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -172,7 +172,7 @@ ProductRequest.prototype['visible_to'] = undefined;
|
|
172
172
|
|
173
173
|
ProductRequest.prototype['owner_id'] = undefined;
|
174
174
|
/**
|
175
|
-
*
|
175
|
+
* 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.
|
176
176
|
* @member {Array.<Object>} prices
|
177
177
|
*/
|
178
178
|
|
@@ -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.
|
@@ -210,7 +219,7 @@ UpdateDealRequest.prototype['probability'] = undefined;
|
|
210
219
|
|
211
220
|
UpdateDealRequest.prototype['lost_reason'] = undefined;
|
212
221
|
/**
|
213
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
222
|
+
* The visibility of the deal. 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>
|
214
223
|
* @member {module:model/VisibleTo} visible_to
|
215
224
|
*/
|
216
225
|
|
@@ -284,7 +293,7 @@ _BasicDeal["default"].prototype['probability'] = undefined;
|
|
284
293
|
|
285
294
|
_BasicDeal["default"].prototype['lost_reason'] = undefined;
|
286
295
|
/**
|
287
|
-
* The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user
|
296
|
+
* The visibility of the deal. 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>
|
288
297
|
* @member {module:model/VisibleTo} visible_to
|
289
298
|
*/
|
290
299
|
|
@@ -295,7 +304,7 @@ _BasicDeal["default"].prototype['visible_to'] = undefined;
|
|
295
304
|
* @readonly
|
296
305
|
*/
|
297
306
|
|
298
|
-
UpdateDealRequest['StatusEnum'] =
|
307
|
+
UpdateDealRequest['StatusEnum'] = {
|
299
308
|
/**
|
300
309
|
* value: "open"
|
301
310
|
* @const
|
@@ -312,7 +321,13 @@ UpdateDealRequest['StatusEnum'] = (_UpdateDealRequest$St = {
|
|
312
321
|
* value: "lost"
|
313
322
|
* @const
|
314
323
|
*/
|
315
|
-
"lost": "lost"
|
316
|
-
|
324
|
+
"lost": "lost",
|
325
|
+
|
326
|
+
/**
|
327
|
+
* value: "deleted"
|
328
|
+
* @const
|
329
|
+
*/
|
330
|
+
"deleted": "deleted"
|
331
|
+
};
|
317
332
|
var _default = UpdateDealRequest;
|
318
333
|
exports["default"] = _default;
|