pipedrive 18.1.4 → 19.0.1
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 +72 -0
- package/dist/api/DealsApi.js +78 -12
- 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 +28 -27
- 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 +4 -4
- package/dist/model/BaseProduct.js +10 -7
- package/dist/model/BasicDealProduct.js +18 -7
- package/dist/model/DealCollectionResponseObject.js +278 -0
- package/dist/model/DealNonStrict.js +7 -7
- package/dist/model/DealNonStrictWithDetails.js +7 -7
- package/dist/model/DealProductUnitDuration.js +61 -0
- package/dist/model/DealStrict.js +7 -7
- package/dist/model/DealStrictWithMergeId.js +7 -7
- 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 +29 -12
- package/dist/model/PersonListProduct.js +10 -7
- package/dist/model/ProductAttachmentDetails.js +28 -22
- package/dist/model/ProductBaseDeal.js +2 -2
- 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
@@ -232,7 +232,7 @@ var DealNonStrictWithDetails = /*#__PURE__*/function () {
|
|
232
232
|
delete data['last_outgoing_mail_time'];
|
233
233
|
}
|
234
234
|
if (data.hasOwnProperty('label')) {
|
235
|
-
obj['label'] = _ApiClient["default"].convertToType(data['label'], '
|
235
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
236
236
|
delete data['label'];
|
237
237
|
}
|
238
238
|
if (data.hasOwnProperty('stage_order_nr')) {
|
@@ -473,7 +473,7 @@ DealNonStrictWithDetails.prototype['visible_to'] = undefined;
|
|
473
473
|
DealNonStrictWithDetails.prototype['close_time'] = undefined;
|
474
474
|
|
475
475
|
/**
|
476
|
-
* The ID of pipeline associated with the deal
|
476
|
+
* The ID of the pipeline associated with the deal
|
477
477
|
* @member {Number} pipeline_id
|
478
478
|
*/
|
479
479
|
DealNonStrictWithDetails.prototype['pipeline_id'] = undefined;
|
@@ -569,8 +569,8 @@ DealNonStrictWithDetails.prototype['last_incoming_mail_time'] = undefined;
|
|
569
569
|
DealNonStrictWithDetails.prototype['last_outgoing_mail_time'] = undefined;
|
570
570
|
|
571
571
|
/**
|
572
|
-
* The label assigned to the deal
|
573
|
-
* @member {
|
572
|
+
* The label or multiple labels assigned to the deal
|
573
|
+
* @member {String} label
|
574
574
|
*/
|
575
575
|
DealNonStrictWithDetails.prototype['label'] = undefined;
|
576
576
|
|
@@ -821,7 +821,7 @@ _DealNonStrict["default"].prototype['visible_to'] = undefined;
|
|
821
821
|
*/
|
822
822
|
_DealNonStrict["default"].prototype['close_time'] = undefined;
|
823
823
|
/**
|
824
|
-
* The ID of pipeline associated with the deal
|
824
|
+
* The ID of the pipeline associated with the deal
|
825
825
|
* @member {Number} pipeline_id
|
826
826
|
*/
|
827
827
|
_DealNonStrict["default"].prototype['pipeline_id'] = undefined;
|
@@ -901,8 +901,8 @@ _DealNonStrict["default"].prototype['last_incoming_mail_time'] = undefined;
|
|
901
901
|
*/
|
902
902
|
_DealNonStrict["default"].prototype['last_outgoing_mail_time'] = undefined;
|
903
903
|
/**
|
904
|
-
* The label assigned to the deal
|
905
|
-
* @member {
|
904
|
+
* The label or multiple labels assigned to the deal
|
905
|
+
* @member {String} label
|
906
906
|
*/
|
907
907
|
_DealNonStrict["default"].prototype['label'] = undefined;
|
908
908
|
/**
|
@@ -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
@@ -225,7 +225,7 @@ var DealStrict = /*#__PURE__*/function () {
|
|
225
225
|
delete data['last_outgoing_mail_time'];
|
226
226
|
}
|
227
227
|
if (data.hasOwnProperty('label')) {
|
228
|
-
obj['label'] = _ApiClient["default"].convertToType(data['label'], '
|
228
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
229
229
|
delete data['label'];
|
230
230
|
}
|
231
231
|
if (data.hasOwnProperty('stage_order_nr')) {
|
@@ -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;
|
@@ -542,8 +542,8 @@ DealStrict.prototype['last_incoming_mail_time'] = undefined;
|
|
542
542
|
DealStrict.prototype['last_outgoing_mail_time'] = undefined;
|
543
543
|
|
544
544
|
/**
|
545
|
-
* The label assigned to the deal
|
546
|
-
* @member {
|
545
|
+
* The label or multiple labels assigned to the deal
|
546
|
+
* @member {String} label
|
547
547
|
*/
|
548
548
|
DealStrict.prototype['label'] = undefined;
|
549
549
|
|
@@ -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;
|
@@ -846,8 +846,8 @@ _BaseDeal["default"].prototype['last_incoming_mail_time'] = undefined;
|
|
846
846
|
*/
|
847
847
|
_BaseDeal["default"].prototype['last_outgoing_mail_time'] = undefined;
|
848
848
|
/**
|
849
|
-
* The label assigned to the deal
|
850
|
-
* @member {
|
849
|
+
* The label or multiple labels assigned to the deal
|
850
|
+
* @member {String} label
|
851
851
|
*/
|
852
852
|
_BaseDeal["default"].prototype['label'] = undefined;
|
853
853
|
/**
|
@@ -225,7 +225,7 @@ var DealStrictWithMergeId = /*#__PURE__*/function () {
|
|
225
225
|
delete data['last_outgoing_mail_time'];
|
226
226
|
}
|
227
227
|
if (data.hasOwnProperty('label')) {
|
228
|
-
obj['label'] = _ApiClient["default"].convertToType(data['label'], '
|
228
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
229
229
|
delete data['label'];
|
230
230
|
}
|
231
231
|
if (data.hasOwnProperty('stage_order_nr')) {
|
@@ -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;
|
@@ -546,8 +546,8 @@ DealStrictWithMergeId.prototype['last_incoming_mail_time'] = undefined;
|
|
546
546
|
DealStrictWithMergeId.prototype['last_outgoing_mail_time'] = undefined;
|
547
547
|
|
548
548
|
/**
|
549
|
-
* The label assigned to the deal
|
550
|
-
* @member {
|
549
|
+
* The label or multiple labels assigned to the deal
|
550
|
+
* @member {String} label
|
551
551
|
*/
|
552
552
|
DealStrictWithMergeId.prototype['label'] = undefined;
|
553
553
|
|
@@ -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;
|
@@ -855,8 +855,8 @@ _DealStrict["default"].prototype['last_incoming_mail_time'] = undefined;
|
|
855
855
|
*/
|
856
856
|
_DealStrict["default"].prototype['last_outgoing_mail_time'] = undefined;
|
857
857
|
/**
|
858
|
-
* The label assigned to the deal
|
859
|
-
* @member {
|
858
|
+
* The label or multiple labels assigned to the deal
|
859
|
+
* @member {String} label
|
860
860
|
*/
|
861
861
|
_DealStrict["default"].prototype['label'] = undefined;
|
862
862
|
/**
|
@@ -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;
|