pipedrive 12.1.0 → 12.2.0
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 +7 -0
- package/README.md +1 -0
- package/dist/index.js +8 -0
- package/dist/model/AdditionalDataWithPagination.js +92 -0
- package/dist/model/GetComments.js +3 -3
- package/dist/model/GetNotes.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,13 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
|
|
|
6
6
|
|
|
7
7
|
For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
|
|
8
8
|
|
|
9
|
+
## 12.2.0
|
|
10
|
+
### Changed
|
|
11
|
+
- Changed notes and comments endpoints additional_data to match the correct pagination response
|
|
12
|
+
structure
|
|
13
|
+
* GET /notes
|
|
14
|
+
* GET /notes/:id/comments
|
|
15
|
+
|
|
9
16
|
## 12.1.0
|
|
10
17
|
### Removed
|
|
11
18
|
* Removed deprecated endpoints that were deleted:
|
package/README.md
CHANGED
|
@@ -563,6 +563,7 @@ Class | Method | HTTP request | Description
|
|
|
563
563
|
- [Pipedrive.AddedDealFollowerData](docs/AddedDealFollowerData.md)
|
|
564
564
|
- [Pipedrive.AdditionalBaseOrganizationItemInfo](docs/AdditionalBaseOrganizationItemInfo.md)
|
|
565
565
|
- [Pipedrive.AdditionalData](docs/AdditionalData.md)
|
|
566
|
+
- [Pipedrive.AdditionalDataWithPagination](docs/AdditionalDataWithPagination.md)
|
|
566
567
|
- [Pipedrive.AdditionalDataWithPaginationDetails](docs/AdditionalDataWithPaginationDetails.md)
|
|
567
568
|
- [Pipedrive.AdditionalMergePersonInfo](docs/AdditionalMergePersonInfo.md)
|
|
568
569
|
- [Pipedrive.AdditionalPersonInfo](docs/AdditionalPersonInfo.md)
|
package/dist/index.js
CHANGED
|
@@ -359,6 +359,12 @@ Object.defineProperty(exports, "AdditionalData", {
|
|
|
359
359
|
return _AdditionalData["default"];
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
|
+
Object.defineProperty(exports, "AdditionalDataWithPagination", {
|
|
363
|
+
enumerable: true,
|
|
364
|
+
get: function get() {
|
|
365
|
+
return _AdditionalDataWithPagination["default"];
|
|
366
|
+
}
|
|
367
|
+
});
|
|
362
368
|
Object.defineProperty(exports, "AdditionalDataWithPaginationDetails", {
|
|
363
369
|
enumerable: true,
|
|
364
370
|
get: function get() {
|
|
@@ -4398,6 +4404,8 @@ var _AdditionalBaseOrganizationItemInfo = _interopRequireDefault(require("./mode
|
|
|
4398
4404
|
|
|
4399
4405
|
var _AdditionalData = _interopRequireDefault(require("./model/AdditionalData"));
|
|
4400
4406
|
|
|
4407
|
+
var _AdditionalDataWithPagination = _interopRequireDefault(require("./model/AdditionalDataWithPagination"));
|
|
4408
|
+
|
|
4401
4409
|
var _AdditionalDataWithPaginationDetails = _interopRequireDefault(require("./model/AdditionalDataWithPaginationDetails"));
|
|
4402
4410
|
|
|
4403
4411
|
var _AdditionalMergePersonInfo = _interopRequireDefault(require("./model/AdditionalMergePersonInfo"));
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
|
|
14
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
15
|
+
|
|
16
|
+
var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
|
|
17
|
+
|
|
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
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The AdditionalDataWithPagination model module.
|
|
33
|
+
* @module model/AdditionalDataWithPagination
|
|
34
|
+
* @version 1.0.0
|
|
35
|
+
*/
|
|
36
|
+
var AdditionalDataWithPagination = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>AdditionalDataWithPagination</code>.
|
|
39
|
+
* @alias module:model/AdditionalDataWithPagination
|
|
40
|
+
*/
|
|
41
|
+
function AdditionalDataWithPagination() {
|
|
42
|
+
(0, _classCallCheck2["default"])(this, AdditionalDataWithPagination);
|
|
43
|
+
AdditionalDataWithPagination.initialize(this);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
(0, _createClass2["default"])(AdditionalDataWithPagination, null, [{
|
|
53
|
+
key: "initialize",
|
|
54
|
+
value: function initialize(obj) {}
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>AdditionalDataWithPagination</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/AdditionalDataWithPagination} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/AdditionalDataWithPagination} The populated <code>AdditionalDataWithPagination</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new AdditionalDataWithPagination();
|
|
68
|
+
|
|
69
|
+
if (data.hasOwnProperty('pagination')) {
|
|
70
|
+
obj['pagination'] = _ApiClient["default"].convertToType(data['pagination'], _AdditionalData["default"]);
|
|
71
|
+
delete data['pagination'];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (Object.keys(data).length > 0) {
|
|
75
|
+
Object.assign(obj, data);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
}]);
|
|
82
|
+
return AdditionalDataWithPagination;
|
|
83
|
+
}();
|
|
84
|
+
/**
|
|
85
|
+
* Pagination details of the list
|
|
86
|
+
* @member {module:model/AdditionalData} pagination
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
AdditionalDataWithPagination.prototype['pagination'] = undefined;
|
|
91
|
+
var _default = AdditionalDataWithPagination;
|
|
92
|
+
exports["default"] = _default;
|
|
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
|
|
14
14
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _AdditionalDataWithPagination = _interopRequireDefault(require("./AdditionalDataWithPagination"));
|
|
17
17
|
|
|
18
18
|
var _BaseComment = _interopRequireDefault(require("./BaseComment"));
|
|
19
19
|
|
|
@@ -79,7 +79,7 @@ var GetComments = /*#__PURE__*/function () {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
if (data.hasOwnProperty('additional_data')) {
|
|
82
|
-
obj['additional_data'] =
|
|
82
|
+
obj['additional_data'] = _AdditionalDataWithPagination["default"].constructFromObject(data['additional_data']);
|
|
83
83
|
delete data['additional_data'];
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -107,7 +107,7 @@ GetComments.prototype['success'] = undefined;
|
|
|
107
107
|
|
|
108
108
|
GetComments.prototype['data'] = undefined;
|
|
109
109
|
/**
|
|
110
|
-
* @member {module:model/
|
|
110
|
+
* @member {module:model/AdditionalDataWithPagination} additional_data
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
GetComments.prototype['additional_data'] = undefined;
|
package/dist/model/GetNotes.js
CHANGED
|
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
|
|
14
14
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _AdditionalDataWithPagination = _interopRequireDefault(require("./AdditionalDataWithPagination"));
|
|
17
17
|
|
|
18
18
|
var _BaseNote = _interopRequireDefault(require("./BaseNote"));
|
|
19
19
|
|
|
@@ -79,7 +79,7 @@ var GetNotes = /*#__PURE__*/function () {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
if (data.hasOwnProperty('additional_data')) {
|
|
82
|
-
obj['additional_data'] =
|
|
82
|
+
obj['additional_data'] = _AdditionalDataWithPagination["default"].constructFromObject(data['additional_data']);
|
|
83
83
|
delete data['additional_data'];
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -107,7 +107,7 @@ GetNotes.prototype['success'] = undefined;
|
|
|
107
107
|
|
|
108
108
|
GetNotes.prototype['data'] = undefined;
|
|
109
109
|
/**
|
|
110
|
-
* @member {module:model/
|
|
110
|
+
* @member {module:model/AdditionalDataWithPagination} additional_data
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
GetNotes.prototype['additional_data'] = undefined;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pipedrive",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "Pipedrive REST client for NodeJS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "babel src -d dist",
|
|
9
9
|
"prepack": "npm run build",
|
|
10
|
-
"test": "
|
|
10
|
+
"test": "npm run test:functional:start && npm run test:functional && npm run test:functional:stop",
|
|
11
11
|
"test:functional": "node ./test/functional/environment.js",
|
|
12
12
|
"test:functional:start": "node ./test/functional/environment.js --start-environment",
|
|
13
13
|
"test:functional:stop": "node ./test/functional/environment.js --stop-environment"
|