pipedrive 13.2.4 → 13.2.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@ 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
+
11
21
  ## 13.2.4
12
22
  ### Fixed
13
23
  - Added quotation marks to fix formatting for Organizations endpoint `visible_to` parameter
@@ -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
  };
@@ -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 {Object} opts Optional parameters
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(opts) {
473
- opts = 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': opts['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 {Object} opts Optional parameters
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(opts) {
512
- return this.deletePersonsWithHttpInfo(opts).then(function (response_and_data) {
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.
@@ -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
- var _BasicDeal$StatusEnum;
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.
@@ -195,7 +204,7 @@ BasicDeal.prototype['visible_to'] = undefined;
195
204
  * @readonly
196
205
  */
197
206
 
198
- BasicDeal['StatusEnum'] = (_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
- }, (0, _defineProperty2["default"])(_BasicDeal$StatusEnum, "lost", "lost"), (0, _defineProperty2["default"])(_BasicDeal$StatusEnum, "deleted", "deleted"), _BasicDeal$StatusEnum);
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.
@@ -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.
@@ -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
- var _NewDeal$StatusEnum;
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.
@@ -323,7 +332,7 @@ _NewDealAllOf["default"].prototype['add_time'] = undefined;
323
332
  * @readonly
324
333
  */
325
334
 
326
- NewDeal['StatusEnum'] = (_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
- }, (0, _defineProperty2["default"])(_NewDeal$StatusEnum, "lost", "lost"), (0, _defineProperty2["default"])(_NewDeal$StatusEnum, "deleted", "deleted"), _NewDeal$StatusEnum);
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
 
@@ -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
 
@@ -50,7 +50,7 @@ var Note = /*#__PURE__*/function () {
50
50
 
51
51
  _NoteConnectToParams["default"].initialize(this);
52
52
 
53
- _NoteParams["default"].initialize(this);
53
+ _NoteParams["default"].initialize(this, content);
54
54
 
55
55
  Note.initialize(this, content);
56
56
  }
@@ -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.
@@ -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
- var _UpdateDealRequest$St;
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.
@@ -295,7 +304,7 @@ _BasicDeal["default"].prototype['visible_to'] = undefined;
295
304
  * @readonly
296
305
  */
297
306
 
298
- UpdateDealRequest['StatusEnum'] = (_UpdateDealRequest$St = {
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
- }, (0, _defineProperty2["default"])(_UpdateDealRequest$St, "lost", "lost"), (0, _defineProperty2["default"])(_UpdateDealRequest$St, "deleted", "deleted"), _UpdateDealRequest$St);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.2.4",
3
+ "version": "13.2.5",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",