pipedrive 18.1.4 → 19.0.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/README.md +21 -1
- package/dist/api/ActivitiesApi.js +76 -5
- package/dist/api/DealsApi.js +91 -25
- package/dist/api/LeadsApi.js +56 -0
- package/dist/api/ProductsApi.js +6 -6
- package/dist/api/RolesApi.js +125 -0
- package/dist/api/StagesApi.js +7 -1
- package/dist/index.js +108 -3
- package/dist/model/ActivityCollectionResponseObject.js +637 -0
- package/dist/model/ActivityCollectionResponseObjectAllOf.js +346 -0
- package/dist/model/ActivityObjectFragment.js +11 -11
- package/dist/model/ActivityPostObject.js +32 -17
- package/dist/model/ActivityPostObjectAllOf.js +10 -0
- package/dist/model/ActivityPutObject.js +32 -17
- package/dist/model/ActivityPutObjectAllOf.js +10 -0
- package/dist/model/ActivityResponseObject.js +55 -45
- package/dist/model/ActivityResponseObjectAllOf.js +22 -22
- package/dist/model/AddProductAttachmentDetails.js +29 -28
- package/dist/model/AddProductRequestBody.js +18 -11
- package/dist/model/AddWebhookRequest.js +29 -0
- package/dist/model/AdditionalDataWithCursorPagination.js +79 -0
- package/dist/model/AdditionalDataWithOffsetPagination.js +79 -0
- package/dist/model/BaseDeal.js +1 -1
- package/dist/model/BaseProduct.js +10 -7
- package/dist/model/BasicDealProduct.js +19 -8
- package/dist/model/DealCollectionResponseObject.js +278 -0
- package/dist/model/DealNonStrict.js +2 -2
- package/dist/model/DealNonStrictWithDetails.js +2 -2
- package/dist/model/DealProductUnitDuration.js +61 -0
- package/dist/model/DealStrict.js +2 -2
- package/dist/model/DealStrictWithMergeId.js +2 -2
- package/dist/model/DeleteDealProductData.js +0 -10
- package/dist/model/GetActivitiesCollectionResponse200.js +97 -0
- package/dist/model/GetComments.js +3 -3
- package/dist/model/GetDealsCollection.js +98 -0
- package/dist/model/GetNotes.js +3 -3
- package/dist/model/GetRolePipelines.js +108 -0
- package/dist/model/GetRolePipelinesAllOf.js +78 -0
- package/dist/model/GetRolePipelinesAllOfData.js +89 -0
- package/dist/model/ListProductFilesResponse.js +124 -0
- package/dist/model/ListProductFilesResponseAllOf.js +89 -0
- package/dist/model/NewDealProduct.js +30 -13
- package/dist/model/PersonListProduct.js +10 -7
- package/dist/model/ProductAttachmentDetails.js +29 -23
- package/dist/model/ProductBaseDeal.js +1 -1
- package/dist/model/ProductFileItem.js +219 -0
- package/dist/model/ProductRequest.js +10 -7
- package/dist/model/ProductWithArrayPrices.js +18 -11
- package/dist/model/ProductWithObjectPrices.js +18 -11
- package/dist/model/PutRolePipelinesBody.js +81 -0
- package/dist/model/UpdateDealProduct.js +176 -0
- package/dist/model/UpdateProductRequestBody.js +18 -11
- package/package.json +1 -1
@@ -0,0 +1,61 @@
|
|
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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
12
|
+
/**
|
13
|
+
* Pipedrive API v1
|
14
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
15
|
+
*
|
16
|
+
* The version of the OpenAPI document: 1.0.0
|
17
|
+
*
|
18
|
+
*
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
20
|
+
* https://openapi-generator.tech
|
21
|
+
* Do not edit the class manually.
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
/**
|
25
|
+
* Enum class DealProductUnitDuration.
|
26
|
+
* @enum {}
|
27
|
+
* @readonly
|
28
|
+
*/
|
29
|
+
var DealProductUnitDuration = /*#__PURE__*/function () {
|
30
|
+
function DealProductUnitDuration() {
|
31
|
+
(0, _classCallCheck2["default"])(this, DealProductUnitDuration);
|
32
|
+
(0, _defineProperty2["default"])(this, "hourly", "hourly");
|
33
|
+
(0, _defineProperty2["default"])(this, "daily", "daily");
|
34
|
+
(0, _defineProperty2["default"])(this, "weekly", "weekly");
|
35
|
+
(0, _defineProperty2["default"])(this, "monthly", "monthly");
|
36
|
+
(0, _defineProperty2["default"])(this, "yearly", "yearly");
|
37
|
+
}
|
38
|
+
(0, _createClass2["default"])(DealProductUnitDuration, null, [{
|
39
|
+
key: "constructFromObject",
|
40
|
+
value:
|
41
|
+
/**
|
42
|
+
* Returns a <code>DealProductUnitDuration</code> enum value from a Javascript object name.
|
43
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
44
|
+
* @return {module:model/DealProductUnitDuration} The enum <code>DealProductUnitDuration</code> value.
|
45
|
+
*/
|
46
|
+
function constructFromObject(object) {
|
47
|
+
return object;
|
48
|
+
}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Initializes the fields of this object.
|
52
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
53
|
+
* Only for internal use.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "initialize",
|
57
|
+
value: function initialize(obj) {}
|
58
|
+
}]);
|
59
|
+
return DealProductUnitDuration;
|
60
|
+
}();
|
61
|
+
exports["default"] = DealProductUnitDuration;
|
package/dist/model/DealStrict.js
CHANGED
@@ -446,7 +446,7 @@ DealStrict.prototype['visible_to'] = undefined;
|
|
446
446
|
DealStrict.prototype['close_time'] = undefined;
|
447
447
|
|
448
448
|
/**
|
449
|
-
* The ID of pipeline associated with the deal
|
449
|
+
* The ID of the pipeline associated with the deal
|
450
450
|
* @member {Number} pipeline_id
|
451
451
|
*/
|
452
452
|
DealStrict.prototype['pipeline_id'] = undefined;
|
@@ -766,7 +766,7 @@ _BaseDeal["default"].prototype['visible_to'] = undefined;
|
|
766
766
|
*/
|
767
767
|
_BaseDeal["default"].prototype['close_time'] = undefined;
|
768
768
|
/**
|
769
|
-
* The ID of pipeline associated with the deal
|
769
|
+
* The ID of the pipeline associated with the deal
|
770
770
|
* @member {Number} pipeline_id
|
771
771
|
*/
|
772
772
|
_BaseDeal["default"].prototype['pipeline_id'] = undefined;
|
@@ -450,7 +450,7 @@ DealStrictWithMergeId.prototype['visible_to'] = undefined;
|
|
450
450
|
DealStrictWithMergeId.prototype['close_time'] = undefined;
|
451
451
|
|
452
452
|
/**
|
453
|
-
* The ID of pipeline associated with the deal
|
453
|
+
* The ID of the pipeline associated with the deal
|
454
454
|
* @member {Number} pipeline_id
|
455
455
|
*/
|
456
456
|
DealStrictWithMergeId.prototype['pipeline_id'] = undefined;
|
@@ -775,7 +775,7 @@ _DealStrict["default"].prototype['visible_to'] = undefined;
|
|
775
775
|
*/
|
776
776
|
_DealStrict["default"].prototype['close_time'] = undefined;
|
777
777
|
/**
|
778
|
-
* The ID of pipeline associated with the deal
|
778
|
+
* The ID of the pipeline associated with the deal
|
779
779
|
* @member {Number} pipeline_id
|
780
780
|
*/
|
781
781
|
_DealStrict["default"].prototype['pipeline_id'] = undefined;
|
@@ -60,10 +60,6 @@ var DeleteDealProductData = /*#__PURE__*/function () {
|
|
60
60
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
61
61
|
delete data['id'];
|
62
62
|
}
|
63
|
-
if (data.hasOwnProperty('product_attachment_id')) {
|
64
|
-
obj['product_attachment_id'] = _ApiClient["default"].convertToType(data['product_attachment_id'], 'Number');
|
65
|
-
delete data['product_attachment_id'];
|
66
|
-
}
|
67
63
|
if (Object.keys(data).length > 0) {
|
68
64
|
Object.assign(obj, data);
|
69
65
|
}
|
@@ -78,11 +74,5 @@ var DeleteDealProductData = /*#__PURE__*/function () {
|
|
78
74
|
* @member {Number} id
|
79
75
|
*/
|
80
76
|
DeleteDealProductData.prototype['id'] = undefined;
|
81
|
-
|
82
|
-
/**
|
83
|
-
* The ID of an attached product that was deleted from the deal
|
84
|
-
* @member {Number} product_attachment_id
|
85
|
-
*/
|
86
|
-
DeleteDealProductData.prototype['product_attachment_id'] = undefined;
|
87
77
|
var _default = DeleteDealProductData;
|
88
78
|
exports["default"] = _default;
|
@@ -0,0 +1,97 @@
|
|
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
|
+
var _ActivityCollectionResponseObject = _interopRequireDefault(require("./ActivityCollectionResponseObject"));
|
12
|
+
var _AdditionalDataWithCursorPagination = _interopRequireDefault(require("./AdditionalDataWithCursorPagination"));
|
13
|
+
/**
|
14
|
+
* Pipedrive API v1
|
15
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
16
|
+
*
|
17
|
+
* The version of the OpenAPI document: 1.0.0
|
18
|
+
*
|
19
|
+
*
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
21
|
+
* https://openapi-generator.tech
|
22
|
+
* Do not edit the class manually.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
/**
|
26
|
+
* The GetActivitiesCollectionResponse200 model module.
|
27
|
+
* @module model/GetActivitiesCollectionResponse200
|
28
|
+
* @version 1.0.0
|
29
|
+
*/
|
30
|
+
var GetActivitiesCollectionResponse200 = /*#__PURE__*/function () {
|
31
|
+
/**
|
32
|
+
* Constructs a new <code>GetActivitiesCollectionResponse200</code>.
|
33
|
+
* @alias module:model/GetActivitiesCollectionResponse200
|
34
|
+
*/
|
35
|
+
function GetActivitiesCollectionResponse200() {
|
36
|
+
(0, _classCallCheck2["default"])(this, GetActivitiesCollectionResponse200);
|
37
|
+
GetActivitiesCollectionResponse200.initialize(this);
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Initializes the fields of this object.
|
42
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
43
|
+
* Only for internal use.
|
44
|
+
*/
|
45
|
+
(0, _createClass2["default"])(GetActivitiesCollectionResponse200, null, [{
|
46
|
+
key: "initialize",
|
47
|
+
value: function initialize(obj) {}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Constructs a <code>GetActivitiesCollectionResponse200</code> from a plain JavaScript object, optionally creating a new instance.
|
51
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
52
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
53
|
+
* @param {module:model/GetActivitiesCollectionResponse200} obj Optional instance to populate.
|
54
|
+
* @return {module:model/GetActivitiesCollectionResponse200} The populated <code>GetActivitiesCollectionResponse200</code> instance.
|
55
|
+
*/
|
56
|
+
}, {
|
57
|
+
key: "constructFromObject",
|
58
|
+
value: function constructFromObject(data, obj) {
|
59
|
+
if (data) {
|
60
|
+
obj = obj || new GetActivitiesCollectionResponse200();
|
61
|
+
if (data.hasOwnProperty('success')) {
|
62
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
63
|
+
delete data['success'];
|
64
|
+
}
|
65
|
+
if (data.hasOwnProperty('data')) {
|
66
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_ActivityCollectionResponseObject["default"]]);
|
67
|
+
delete data['data'];
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('additional_data')) {
|
70
|
+
obj['additional_data'] = _AdditionalDataWithCursorPagination["default"].constructFromObject(data['additional_data']);
|
71
|
+
delete data['additional_data'];
|
72
|
+
}
|
73
|
+
if (Object.keys(data).length > 0) {
|
74
|
+
Object.assign(obj, data);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return GetActivitiesCollectionResponse200;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* @member {Boolean} success
|
84
|
+
*/
|
85
|
+
GetActivitiesCollectionResponse200.prototype['success'] = undefined;
|
86
|
+
|
87
|
+
/**
|
88
|
+
* @member {Array.<module:model/ActivityCollectionResponseObject>} data
|
89
|
+
*/
|
90
|
+
GetActivitiesCollectionResponse200.prototype['data'] = undefined;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* @member {module:model/AdditionalDataWithCursorPagination} additional_data
|
94
|
+
*/
|
95
|
+
GetActivitiesCollectionResponse200.prototype['additional_data'] = undefined;
|
96
|
+
var _default = GetActivitiesCollectionResponse200;
|
97
|
+
exports["default"] = _default;
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
|
-
var
|
11
|
+
var _AdditionalDataWithOffsetPagination = _interopRequireDefault(require("./AdditionalDataWithOffsetPagination"));
|
12
12
|
var _BaseComment = _interopRequireDefault(require("./BaseComment"));
|
13
13
|
/**
|
14
14
|
* Pipedrive API v1
|
@@ -67,7 +67,7 @@ var GetComments = /*#__PURE__*/function () {
|
|
67
67
|
delete data['data'];
|
68
68
|
}
|
69
69
|
if (data.hasOwnProperty('additional_data')) {
|
70
|
-
obj['additional_data'] =
|
70
|
+
obj['additional_data'] = _AdditionalDataWithOffsetPagination["default"].constructFromObject(data['additional_data']);
|
71
71
|
delete data['additional_data'];
|
72
72
|
}
|
73
73
|
if (Object.keys(data).length > 0) {
|
@@ -92,7 +92,7 @@ GetComments.prototype['success'] = undefined;
|
|
92
92
|
GetComments.prototype['data'] = undefined;
|
93
93
|
|
94
94
|
/**
|
95
|
-
* @member {module:model/
|
95
|
+
* @member {module:model/AdditionalDataWithOffsetPagination} additional_data
|
96
96
|
*/
|
97
97
|
GetComments.prototype['additional_data'] = undefined;
|
98
98
|
var _default = GetComments;
|
@@ -0,0 +1,98 @@
|
|
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
|
+
var _AdditionalDataWithCursorPagination = _interopRequireDefault(require("./AdditionalDataWithCursorPagination"));
|
12
|
+
var _DealCollectionResponseObject = _interopRequireDefault(require("./DealCollectionResponseObject"));
|
13
|
+
/**
|
14
|
+
* Pipedrive API v1
|
15
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
16
|
+
*
|
17
|
+
* The version of the OpenAPI document: 1.0.0
|
18
|
+
*
|
19
|
+
*
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
21
|
+
* https://openapi-generator.tech
|
22
|
+
* Do not edit the class manually.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
/**
|
26
|
+
* The GetDealsCollection model module.
|
27
|
+
* @module model/GetDealsCollection
|
28
|
+
* @version 1.0.0
|
29
|
+
*/
|
30
|
+
var GetDealsCollection = /*#__PURE__*/function () {
|
31
|
+
/**
|
32
|
+
* Constructs a new <code>GetDealsCollection</code>.
|
33
|
+
* @alias module:model/GetDealsCollection
|
34
|
+
*/
|
35
|
+
function GetDealsCollection() {
|
36
|
+
(0, _classCallCheck2["default"])(this, GetDealsCollection);
|
37
|
+
GetDealsCollection.initialize(this);
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Initializes the fields of this object.
|
42
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
43
|
+
* Only for internal use.
|
44
|
+
*/
|
45
|
+
(0, _createClass2["default"])(GetDealsCollection, null, [{
|
46
|
+
key: "initialize",
|
47
|
+
value: function initialize(obj) {}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Constructs a <code>GetDealsCollection</code> from a plain JavaScript object, optionally creating a new instance.
|
51
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
52
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
53
|
+
* @param {module:model/GetDealsCollection} obj Optional instance to populate.
|
54
|
+
* @return {module:model/GetDealsCollection} The populated <code>GetDealsCollection</code> instance.
|
55
|
+
*/
|
56
|
+
}, {
|
57
|
+
key: "constructFromObject",
|
58
|
+
value: function constructFromObject(data, obj) {
|
59
|
+
if (data) {
|
60
|
+
obj = obj || new GetDealsCollection();
|
61
|
+
if (data.hasOwnProperty('success')) {
|
62
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
63
|
+
delete data['success'];
|
64
|
+
}
|
65
|
+
if (data.hasOwnProperty('data')) {
|
66
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_DealCollectionResponseObject["default"]]);
|
67
|
+
delete data['data'];
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('additional_data')) {
|
70
|
+
obj['additional_data'] = _AdditionalDataWithCursorPagination["default"].constructFromObject(data['additional_data']);
|
71
|
+
delete data['additional_data'];
|
72
|
+
}
|
73
|
+
if (Object.keys(data).length > 0) {
|
74
|
+
Object.assign(obj, data);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return GetDealsCollection;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* If the response is successful or not
|
84
|
+
* @member {Boolean} success
|
85
|
+
*/
|
86
|
+
GetDealsCollection.prototype['success'] = undefined;
|
87
|
+
|
88
|
+
/**
|
89
|
+
* @member {Array.<module:model/DealCollectionResponseObject>} data
|
90
|
+
*/
|
91
|
+
GetDealsCollection.prototype['data'] = undefined;
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @member {module:model/AdditionalDataWithCursorPagination} additional_data
|
95
|
+
*/
|
96
|
+
GetDealsCollection.prototype['additional_data'] = undefined;
|
97
|
+
var _default = GetDealsCollection;
|
98
|
+
exports["default"] = _default;
|
package/dist/model/GetNotes.js
CHANGED
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
10
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
|
-
var
|
11
|
+
var _AdditionalDataWithOffsetPagination = _interopRequireDefault(require("./AdditionalDataWithOffsetPagination"));
|
12
12
|
var _BaseNote = _interopRequireDefault(require("./BaseNote"));
|
13
13
|
/**
|
14
14
|
* Pipedrive API v1
|
@@ -67,7 +67,7 @@ var GetNotes = /*#__PURE__*/function () {
|
|
67
67
|
delete data['data'];
|
68
68
|
}
|
69
69
|
if (data.hasOwnProperty('additional_data')) {
|
70
|
-
obj['additional_data'] =
|
70
|
+
obj['additional_data'] = _AdditionalDataWithOffsetPagination["default"].constructFromObject(data['additional_data']);
|
71
71
|
delete data['additional_data'];
|
72
72
|
}
|
73
73
|
if (Object.keys(data).length > 0) {
|
@@ -92,7 +92,7 @@ GetNotes.prototype['success'] = undefined;
|
|
92
92
|
GetNotes.prototype['data'] = undefined;
|
93
93
|
|
94
94
|
/**
|
95
|
-
* @member {module:model/
|
95
|
+
* @member {module:model/AdditionalDataWithOffsetPagination} additional_data
|
96
96
|
*/
|
97
97
|
GetNotes.prototype['additional_data'] = undefined;
|
98
98
|
var _default = GetNotes;
|
@@ -0,0 +1,108 @@
|
|
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
|
+
var _BaseResponse = _interopRequireDefault(require("./BaseResponse"));
|
12
|
+
var _GetRolePipelinesAllOf = _interopRequireDefault(require("./GetRolePipelinesAllOf"));
|
13
|
+
var _GetRolePipelinesAllOfData = _interopRequireDefault(require("./GetRolePipelinesAllOfData"));
|
14
|
+
/**
|
15
|
+
* Pipedrive API v1
|
16
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
17
|
+
*
|
18
|
+
* The version of the OpenAPI document: 1.0.0
|
19
|
+
*
|
20
|
+
*
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
22
|
+
* https://openapi-generator.tech
|
23
|
+
* Do not edit the class manually.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
/**
|
27
|
+
* The GetRolePipelines model module.
|
28
|
+
* @module model/GetRolePipelines
|
29
|
+
* @version 1.0.0
|
30
|
+
*/
|
31
|
+
var GetRolePipelines = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>GetRolePipelines</code>.
|
34
|
+
* @alias module:model/GetRolePipelines
|
35
|
+
* @implements module:model/BaseResponse
|
36
|
+
* @implements module:model/GetRolePipelinesAllOf
|
37
|
+
*/
|
38
|
+
function GetRolePipelines() {
|
39
|
+
(0, _classCallCheck2["default"])(this, GetRolePipelines);
|
40
|
+
_BaseResponse["default"].initialize(this);
|
41
|
+
_GetRolePipelinesAllOf["default"].initialize(this);
|
42
|
+
GetRolePipelines.initialize(this);
|
43
|
+
}
|
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
|
+
(0, _createClass2["default"])(GetRolePipelines, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Constructs a <code>GetRolePipelines</code> from a plain JavaScript object, optionally creating a new instance.
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
58
|
+
* @param {module:model/GetRolePipelines} obj Optional instance to populate.
|
59
|
+
* @return {module:model/GetRolePipelines} The populated <code>GetRolePipelines</code> instance.
|
60
|
+
*/
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new GetRolePipelines();
|
66
|
+
_BaseResponse["default"].constructFromObject(data, obj);
|
67
|
+
_GetRolePipelinesAllOf["default"].constructFromObject(data, obj);
|
68
|
+
if (data.hasOwnProperty('success')) {
|
69
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
70
|
+
delete data['success'];
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('data')) {
|
73
|
+
obj['data'] = _GetRolePipelinesAllOfData["default"].constructFromObject(data['data']);
|
74
|
+
delete data['data'];
|
75
|
+
}
|
76
|
+
if (Object.keys(data).length > 0) {
|
77
|
+
Object.assign(obj, data);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
return obj;
|
81
|
+
}
|
82
|
+
}]);
|
83
|
+
return GetRolePipelines;
|
84
|
+
}();
|
85
|
+
/**
|
86
|
+
* If the response is successful or not
|
87
|
+
* @member {Boolean} success
|
88
|
+
*/
|
89
|
+
GetRolePipelines.prototype['success'] = undefined;
|
90
|
+
|
91
|
+
/**
|
92
|
+
* @member {module:model/GetRolePipelinesAllOfData} data
|
93
|
+
*/
|
94
|
+
GetRolePipelines.prototype['data'] = undefined;
|
95
|
+
|
96
|
+
// Implement BaseResponse interface:
|
97
|
+
/**
|
98
|
+
* If the response is successful or not
|
99
|
+
* @member {Boolean} success
|
100
|
+
*/
|
101
|
+
_BaseResponse["default"].prototype['success'] = undefined;
|
102
|
+
// Implement GetRolePipelinesAllOf interface:
|
103
|
+
/**
|
104
|
+
* @member {module:model/GetRolePipelinesAllOfData} data
|
105
|
+
*/
|
106
|
+
_GetRolePipelinesAllOf["default"].prototype['data'] = undefined;
|
107
|
+
var _default = GetRolePipelines;
|
108
|
+
exports["default"] = _default;
|
@@ -0,0 +1,78 @@
|
|
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
|
+
var _GetRolePipelinesAllOfData = _interopRequireDefault(require("./GetRolePipelinesAllOfData"));
|
12
|
+
/**
|
13
|
+
* Pipedrive API v1
|
14
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
15
|
+
*
|
16
|
+
* The version of the OpenAPI document: 1.0.0
|
17
|
+
*
|
18
|
+
*
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
20
|
+
* https://openapi-generator.tech
|
21
|
+
* Do not edit the class manually.
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
/**
|
25
|
+
* The GetRolePipelinesAllOf model module.
|
26
|
+
* @module model/GetRolePipelinesAllOf
|
27
|
+
* @version 1.0.0
|
28
|
+
*/
|
29
|
+
var GetRolePipelinesAllOf = /*#__PURE__*/function () {
|
30
|
+
/**
|
31
|
+
* Constructs a new <code>GetRolePipelinesAllOf</code>.
|
32
|
+
* @alias module:model/GetRolePipelinesAllOf
|
33
|
+
*/
|
34
|
+
function GetRolePipelinesAllOf() {
|
35
|
+
(0, _classCallCheck2["default"])(this, GetRolePipelinesAllOf);
|
36
|
+
GetRolePipelinesAllOf.initialize(this);
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Initializes the fields of this object.
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
42
|
+
* Only for internal use.
|
43
|
+
*/
|
44
|
+
(0, _createClass2["default"])(GetRolePipelinesAllOf, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>GetRolePipelinesAllOf</code> from a plain JavaScript object, optionally creating a new instance.
|
50
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
51
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
52
|
+
* @param {module:model/GetRolePipelinesAllOf} obj Optional instance to populate.
|
53
|
+
* @return {module:model/GetRolePipelinesAllOf} The populated <code>GetRolePipelinesAllOf</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new GetRolePipelinesAllOf();
|
60
|
+
if (data.hasOwnProperty('data')) {
|
61
|
+
obj['data'] = _GetRolePipelinesAllOfData["default"].constructFromObject(data['data']);
|
62
|
+
delete data['data'];
|
63
|
+
}
|
64
|
+
if (Object.keys(data).length > 0) {
|
65
|
+
Object.assign(obj, data);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return obj;
|
69
|
+
}
|
70
|
+
}]);
|
71
|
+
return GetRolePipelinesAllOf;
|
72
|
+
}();
|
73
|
+
/**
|
74
|
+
* @member {module:model/GetRolePipelinesAllOfData} data
|
75
|
+
*/
|
76
|
+
GetRolePipelinesAllOf.prototype['data'] = undefined;
|
77
|
+
var _default = GetRolePipelinesAllOf;
|
78
|
+
exports["default"] = _default;
|
@@ -0,0 +1,89 @@
|
|
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 GetRolePipelinesAllOfData model module.
|
25
|
+
* @module model/GetRolePipelinesAllOfData
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var GetRolePipelinesAllOfData = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>GetRolePipelinesAllOfData</code>.
|
31
|
+
* The response data
|
32
|
+
* @alias module:model/GetRolePipelinesAllOfData
|
33
|
+
*/
|
34
|
+
function GetRolePipelinesAllOfData() {
|
35
|
+
(0, _classCallCheck2["default"])(this, GetRolePipelinesAllOfData);
|
36
|
+
GetRolePipelinesAllOfData.initialize(this);
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Initializes the fields of this object.
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
42
|
+
* Only for internal use.
|
43
|
+
*/
|
44
|
+
(0, _createClass2["default"])(GetRolePipelinesAllOfData, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>GetRolePipelinesAllOfData</code> from a plain JavaScript object, optionally creating a new instance.
|
50
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
51
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
52
|
+
* @param {module:model/GetRolePipelinesAllOfData} obj Optional instance to populate.
|
53
|
+
* @return {module:model/GetRolePipelinesAllOfData} The populated <code>GetRolePipelinesAllOfData</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new GetRolePipelinesAllOfData();
|
60
|
+
if (data.hasOwnProperty('pipeline_ids')) {
|
61
|
+
obj['pipeline_ids'] = _ApiClient["default"].convertToType(data['pipeline_ids'], ['Number']);
|
62
|
+
delete data['pipeline_ids'];
|
63
|
+
}
|
64
|
+
if (data.hasOwnProperty('visible')) {
|
65
|
+
obj['visible'] = _ApiClient["default"].convertToType(data['visible'], 'Boolean');
|
66
|
+
delete data['visible'];
|
67
|
+
}
|
68
|
+
if (Object.keys(data).length > 0) {
|
69
|
+
Object.assign(obj, data);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
return obj;
|
73
|
+
}
|
74
|
+
}]);
|
75
|
+
return GetRolePipelinesAllOfData;
|
76
|
+
}();
|
77
|
+
/**
|
78
|
+
* Either visible or hidden pipeline ids
|
79
|
+
* @member {Array.<Number>} pipeline_ids
|
80
|
+
*/
|
81
|
+
GetRolePipelinesAllOfData.prototype['pipeline_ids'] = undefined;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Whether visible or hidden pipeline ids were returned
|
85
|
+
* @member {Boolean} visible
|
86
|
+
*/
|
87
|
+
GetRolePipelinesAllOfData.prototype['visible'] = undefined;
|
88
|
+
var _default = GetRolePipelinesAllOfData;
|
89
|
+
exports["default"] = _default;
|