pipedrive 13.2.5 → 13.2.8
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 +17 -2
- package/README.md +12 -1
- package/dist/api/DealsApi.js +8 -0
- package/dist/api/LeadsApi.js +92 -1
- package/dist/api/ProductsApi.js +5 -5
- package/dist/api/StagesApi.js +11 -5
- package/dist/index.js +88 -8
- package/dist/model/ActivityObjectFragment.js +11 -0
- package/dist/model/ActivityPostObject.js +17 -0
- package/dist/model/ActivityPutObject.js +17 -0
- package/dist/model/ActivityResponseObject.js +17 -11
- package/dist/model/AddLeadRequest.js +1 -1
- package/dist/model/AddProductAttachmentDetails.js +11 -4
- package/dist/model/AddProductRequestBody.js +16 -5
- package/dist/model/BaseStage.js +6 -6
- package/dist/model/BasicDeal.js +12 -1
- package/dist/model/BasicDealProduct.js +8 -3
- package/dist/model/FilterType.js +1 -0
- package/dist/model/LeadSearchItem.js +102 -0
- package/dist/model/LeadSearchItemItem.js +234 -0
- package/dist/model/LeadSearchItemItemOrganization.js +101 -0
- package/dist/model/LeadSearchItemItemOwner.js +90 -0
- package/dist/model/LeadSearchItemItemPerson.js +101 -0
- package/dist/model/LeadSearchResponse.js +147 -0
- package/dist/model/LeadSearchResponseAllOf.js +103 -0
- package/dist/model/LeadSearchResponseAllOfData.js +92 -0
- package/dist/model/NewDeal.js +19 -2
- package/dist/model/NewDealProduct.js +6 -33
- package/dist/model/OptionalNameObject.js +90 -0
- package/dist/model/ProductAttachmentDetails.js +11 -4
- package/dist/model/ProductRequest.js +1 -12
- package/dist/model/RequiredNameObject.js +93 -0
- package/dist/model/Stage.js +6 -6
- package/dist/model/StageDetails.js +6 -6
- package/dist/model/StageWithPipelineInfo.js +6 -6
- package/dist/model/UpdateDealRequest.js +19 -2
- package/dist/model/UpdateLeadRequest.js +1 -1
- package/dist/model/UpdateProductRequestBody.js +254 -0
- package/dist/model/UpdateStageRequest.js +6 -6
- package/package.json +1 -1
@@ -0,0 +1,90 @@
|
|
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
|
+
/**
|
17
|
+
* Pipedrive API v1
|
18
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
19
|
+
*
|
20
|
+
* The version of the OpenAPI document: 1.0.0
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
24
|
+
* https://openapi-generator.tech
|
25
|
+
* Do not edit the class manually.
|
26
|
+
*
|
27
|
+
*/
|
28
|
+
|
29
|
+
/**
|
30
|
+
* The LeadSearchItemItemOwner model module.
|
31
|
+
* @module model/LeadSearchItemItemOwner
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var LeadSearchItemItemOwner = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>LeadSearchItemItemOwner</code>.
|
37
|
+
* @alias module:model/LeadSearchItemItemOwner
|
38
|
+
*/
|
39
|
+
function LeadSearchItemItemOwner() {
|
40
|
+
(0, _classCallCheck2["default"])(this, LeadSearchItemItemOwner);
|
41
|
+
LeadSearchItemItemOwner.initialize(this);
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Initializes the fields of this object.
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
46
|
+
* Only for internal use.
|
47
|
+
*/
|
48
|
+
|
49
|
+
|
50
|
+
(0, _createClass2["default"])(LeadSearchItemItemOwner, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>LeadSearchItemItemOwner</code> from a plain JavaScript object, optionally creating a new instance.
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
57
|
+
* @param {module:model/LeadSearchItemItemOwner} obj Optional instance to populate.
|
58
|
+
* @return {module:model/LeadSearchItemItemOwner} The populated <code>LeadSearchItemItemOwner</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new LeadSearchItemItemOwner();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('id')) {
|
68
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
69
|
+
delete data['id'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return LeadSearchItemItemOwner;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* The ID of the owner of the lead
|
84
|
+
* @member {Number} id
|
85
|
+
*/
|
86
|
+
|
87
|
+
|
88
|
+
LeadSearchItemItemOwner.prototype['id'] = undefined;
|
89
|
+
var _default = LeadSearchItemItemOwner;
|
90
|
+
exports["default"] = _default;
|
@@ -0,0 +1,101 @@
|
|
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
|
+
/**
|
17
|
+
* Pipedrive API v1
|
18
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
19
|
+
*
|
20
|
+
* The version of the OpenAPI document: 1.0.0
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
24
|
+
* https://openapi-generator.tech
|
25
|
+
* Do not edit the class manually.
|
26
|
+
*
|
27
|
+
*/
|
28
|
+
|
29
|
+
/**
|
30
|
+
* The LeadSearchItemItemPerson model module.
|
31
|
+
* @module model/LeadSearchItemItemPerson
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var LeadSearchItemItemPerson = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>LeadSearchItemItemPerson</code>.
|
37
|
+
* @alias module:model/LeadSearchItemItemPerson
|
38
|
+
*/
|
39
|
+
function LeadSearchItemItemPerson() {
|
40
|
+
(0, _classCallCheck2["default"])(this, LeadSearchItemItemPerson);
|
41
|
+
LeadSearchItemItemPerson.initialize(this);
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Initializes the fields of this object.
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
46
|
+
* Only for internal use.
|
47
|
+
*/
|
48
|
+
|
49
|
+
|
50
|
+
(0, _createClass2["default"])(LeadSearchItemItemPerson, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>LeadSearchItemItemPerson</code> from a plain JavaScript object, optionally creating a new instance.
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
57
|
+
* @param {module:model/LeadSearchItemItemPerson} obj Optional instance to populate.
|
58
|
+
* @return {module:model/LeadSearchItemItemPerson} The populated <code>LeadSearchItemItemPerson</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new LeadSearchItemItemPerson();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('id')) {
|
68
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
69
|
+
delete data['id'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (data.hasOwnProperty('name')) {
|
73
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
74
|
+
delete data['name'];
|
75
|
+
}
|
76
|
+
|
77
|
+
if (Object.keys(data).length > 0) {
|
78
|
+
Object.assign(obj, data);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
return obj;
|
83
|
+
}
|
84
|
+
}]);
|
85
|
+
return LeadSearchItemItemPerson;
|
86
|
+
}();
|
87
|
+
/**
|
88
|
+
* The ID of the person the lead is associated with
|
89
|
+
* @member {Number} id
|
90
|
+
*/
|
91
|
+
|
92
|
+
|
93
|
+
LeadSearchItemItemPerson.prototype['id'] = undefined;
|
94
|
+
/**
|
95
|
+
* The name of the person the lead is associated with
|
96
|
+
* @member {String} name
|
97
|
+
*/
|
98
|
+
|
99
|
+
LeadSearchItemItemPerson.prototype['name'] = undefined;
|
100
|
+
var _default = LeadSearchItemItemPerson;
|
101
|
+
exports["default"] = _default;
|
@@ -0,0 +1,147 @@
|
|
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 _BaseResponse = _interopRequireDefault(require("./BaseResponse"));
|
17
|
+
|
18
|
+
var _ItemSearchAdditionalData = _interopRequireDefault(require("./ItemSearchAdditionalData"));
|
19
|
+
|
20
|
+
var _LeadSearchResponseAllOf = _interopRequireDefault(require("./LeadSearchResponseAllOf"));
|
21
|
+
|
22
|
+
var _LeadSearchResponseAllOfData = _interopRequireDefault(require("./LeadSearchResponseAllOfData"));
|
23
|
+
|
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
|
+
*/
|
36
|
+
|
37
|
+
/**
|
38
|
+
* The LeadSearchResponse model module.
|
39
|
+
* @module model/LeadSearchResponse
|
40
|
+
* @version 1.0.0
|
41
|
+
*/
|
42
|
+
var LeadSearchResponse = /*#__PURE__*/function () {
|
43
|
+
/**
|
44
|
+
* Constructs a new <code>LeadSearchResponse</code>.
|
45
|
+
* @alias module:model/LeadSearchResponse
|
46
|
+
* @implements module:model/BaseResponse
|
47
|
+
* @implements module:model/LeadSearchResponseAllOf
|
48
|
+
*/
|
49
|
+
function LeadSearchResponse() {
|
50
|
+
(0, _classCallCheck2["default"])(this, LeadSearchResponse);
|
51
|
+
|
52
|
+
_BaseResponse["default"].initialize(this);
|
53
|
+
|
54
|
+
_LeadSearchResponseAllOf["default"].initialize(this);
|
55
|
+
|
56
|
+
LeadSearchResponse.initialize(this);
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* Initializes the fields of this object.
|
60
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
61
|
+
* Only for internal use.
|
62
|
+
*/
|
63
|
+
|
64
|
+
|
65
|
+
(0, _createClass2["default"])(LeadSearchResponse, null, [{
|
66
|
+
key: "initialize",
|
67
|
+
value: function initialize(obj) {}
|
68
|
+
/**
|
69
|
+
* Constructs a <code>LeadSearchResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
70
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
72
|
+
* @param {module:model/LeadSearchResponse} obj Optional instance to populate.
|
73
|
+
* @return {module:model/LeadSearchResponse} The populated <code>LeadSearchResponse</code> instance.
|
74
|
+
*/
|
75
|
+
|
76
|
+
}, {
|
77
|
+
key: "constructFromObject",
|
78
|
+
value: function constructFromObject(data, obj) {
|
79
|
+
if (data) {
|
80
|
+
obj = obj || new LeadSearchResponse();
|
81
|
+
|
82
|
+
_BaseResponse["default"].constructFromObject(data, obj);
|
83
|
+
|
84
|
+
_LeadSearchResponseAllOf["default"].constructFromObject(data, obj);
|
85
|
+
|
86
|
+
if (data.hasOwnProperty('success')) {
|
87
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
88
|
+
delete data['success'];
|
89
|
+
}
|
90
|
+
|
91
|
+
if (data.hasOwnProperty('data')) {
|
92
|
+
obj['data'] = _LeadSearchResponseAllOfData["default"].constructFromObject(data['data']);
|
93
|
+
delete data['data'];
|
94
|
+
}
|
95
|
+
|
96
|
+
if (data.hasOwnProperty('additional_data')) {
|
97
|
+
obj['additional_data'] = _ItemSearchAdditionalData["default"].constructFromObject(data['additional_data']);
|
98
|
+
delete data['additional_data'];
|
99
|
+
}
|
100
|
+
|
101
|
+
if (Object.keys(data).length > 0) {
|
102
|
+
Object.assign(obj, data);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
return obj;
|
107
|
+
}
|
108
|
+
}]);
|
109
|
+
return LeadSearchResponse;
|
110
|
+
}();
|
111
|
+
/**
|
112
|
+
* If the response is successful or not
|
113
|
+
* @member {Boolean} success
|
114
|
+
*/
|
115
|
+
|
116
|
+
|
117
|
+
LeadSearchResponse.prototype['success'] = undefined;
|
118
|
+
/**
|
119
|
+
* @member {module:model/LeadSearchResponseAllOfData} data
|
120
|
+
*/
|
121
|
+
|
122
|
+
LeadSearchResponse.prototype['data'] = undefined;
|
123
|
+
/**
|
124
|
+
* @member {module:model/ItemSearchAdditionalData} additional_data
|
125
|
+
*/
|
126
|
+
|
127
|
+
LeadSearchResponse.prototype['additional_data'] = undefined; // Implement BaseResponse interface:
|
128
|
+
|
129
|
+
/**
|
130
|
+
* If the response is successful or not
|
131
|
+
* @member {Boolean} success
|
132
|
+
*/
|
133
|
+
|
134
|
+
_BaseResponse["default"].prototype['success'] = undefined; // Implement LeadSearchResponseAllOf interface:
|
135
|
+
|
136
|
+
/**
|
137
|
+
* @member {module:model/LeadSearchResponseAllOfData} data
|
138
|
+
*/
|
139
|
+
|
140
|
+
_LeadSearchResponseAllOf["default"].prototype['data'] = undefined;
|
141
|
+
/**
|
142
|
+
* @member {module:model/ItemSearchAdditionalData} additional_data
|
143
|
+
*/
|
144
|
+
|
145
|
+
_LeadSearchResponseAllOf["default"].prototype['additional_data'] = undefined;
|
146
|
+
var _default = LeadSearchResponse;
|
147
|
+
exports["default"] = _default;
|
@@ -0,0 +1,103 @@
|
|
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 _ItemSearchAdditionalData = _interopRequireDefault(require("./ItemSearchAdditionalData"));
|
17
|
+
|
18
|
+
var _LeadSearchResponseAllOfData = _interopRequireDefault(require("./LeadSearchResponseAllOfData"));
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Pipedrive API v1
|
22
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
23
|
+
*
|
24
|
+
* The version of the OpenAPI document: 1.0.0
|
25
|
+
*
|
26
|
+
*
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
28
|
+
* https://openapi-generator.tech
|
29
|
+
* Do not edit the class manually.
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
|
33
|
+
/**
|
34
|
+
* The LeadSearchResponseAllOf model module.
|
35
|
+
* @module model/LeadSearchResponseAllOf
|
36
|
+
* @version 1.0.0
|
37
|
+
*/
|
38
|
+
var LeadSearchResponseAllOf = /*#__PURE__*/function () {
|
39
|
+
/**
|
40
|
+
* Constructs a new <code>LeadSearchResponseAllOf</code>.
|
41
|
+
* @alias module:model/LeadSearchResponseAllOf
|
42
|
+
*/
|
43
|
+
function LeadSearchResponseAllOf() {
|
44
|
+
(0, _classCallCheck2["default"])(this, LeadSearchResponseAllOf);
|
45
|
+
LeadSearchResponseAllOf.initialize(this);
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Initializes the fields of this object.
|
49
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
50
|
+
* Only for internal use.
|
51
|
+
*/
|
52
|
+
|
53
|
+
|
54
|
+
(0, _createClass2["default"])(LeadSearchResponseAllOf, null, [{
|
55
|
+
key: "initialize",
|
56
|
+
value: function initialize(obj) {}
|
57
|
+
/**
|
58
|
+
* Constructs a <code>LeadSearchResponseAllOf</code> from a plain JavaScript object, optionally creating a new instance.
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
61
|
+
* @param {module:model/LeadSearchResponseAllOf} obj Optional instance to populate.
|
62
|
+
* @return {module:model/LeadSearchResponseAllOf} The populated <code>LeadSearchResponseAllOf</code> instance.
|
63
|
+
*/
|
64
|
+
|
65
|
+
}, {
|
66
|
+
key: "constructFromObject",
|
67
|
+
value: function constructFromObject(data, obj) {
|
68
|
+
if (data) {
|
69
|
+
obj = obj || new LeadSearchResponseAllOf();
|
70
|
+
|
71
|
+
if (data.hasOwnProperty('data')) {
|
72
|
+
obj['data'] = _LeadSearchResponseAllOfData["default"].constructFromObject(data['data']);
|
73
|
+
delete data['data'];
|
74
|
+
}
|
75
|
+
|
76
|
+
if (data.hasOwnProperty('additional_data')) {
|
77
|
+
obj['additional_data'] = _ItemSearchAdditionalData["default"].constructFromObject(data['additional_data']);
|
78
|
+
delete data['additional_data'];
|
79
|
+
}
|
80
|
+
|
81
|
+
if (Object.keys(data).length > 0) {
|
82
|
+
Object.assign(obj, data);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
return obj;
|
87
|
+
}
|
88
|
+
}]);
|
89
|
+
return LeadSearchResponseAllOf;
|
90
|
+
}();
|
91
|
+
/**
|
92
|
+
* @member {module:model/LeadSearchResponseAllOfData} data
|
93
|
+
*/
|
94
|
+
|
95
|
+
|
96
|
+
LeadSearchResponseAllOf.prototype['data'] = undefined;
|
97
|
+
/**
|
98
|
+
* @member {module:model/ItemSearchAdditionalData} additional_data
|
99
|
+
*/
|
100
|
+
|
101
|
+
LeadSearchResponseAllOf.prototype['additional_data'] = undefined;
|
102
|
+
var _default = LeadSearchResponseAllOf;
|
103
|
+
exports["default"] = _default;
|
@@ -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 _LeadSearchItem = _interopRequireDefault(require("./LeadSearchItem"));
|
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 LeadSearchResponseAllOfData model module.
|
33
|
+
* @module model/LeadSearchResponseAllOfData
|
34
|
+
* @version 1.0.0
|
35
|
+
*/
|
36
|
+
var LeadSearchResponseAllOfData = /*#__PURE__*/function () {
|
37
|
+
/**
|
38
|
+
* Constructs a new <code>LeadSearchResponseAllOfData</code>.
|
39
|
+
* @alias module:model/LeadSearchResponseAllOfData
|
40
|
+
*/
|
41
|
+
function LeadSearchResponseAllOfData() {
|
42
|
+
(0, _classCallCheck2["default"])(this, LeadSearchResponseAllOfData);
|
43
|
+
LeadSearchResponseAllOfData.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"])(LeadSearchResponseAllOfData, null, [{
|
53
|
+
key: "initialize",
|
54
|
+
value: function initialize(obj) {}
|
55
|
+
/**
|
56
|
+
* Constructs a <code>LeadSearchResponseAllOfData</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/LeadSearchResponseAllOfData} obj Optional instance to populate.
|
60
|
+
* @return {module:model/LeadSearchResponseAllOfData} The populated <code>LeadSearchResponseAllOfData</code> instance.
|
61
|
+
*/
|
62
|
+
|
63
|
+
}, {
|
64
|
+
key: "constructFromObject",
|
65
|
+
value: function constructFromObject(data, obj) {
|
66
|
+
if (data) {
|
67
|
+
obj = obj || new LeadSearchResponseAllOfData();
|
68
|
+
|
69
|
+
if (data.hasOwnProperty('items')) {
|
70
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_LeadSearchItem["default"]]);
|
71
|
+
delete data['items'];
|
72
|
+
}
|
73
|
+
|
74
|
+
if (Object.keys(data).length > 0) {
|
75
|
+
Object.assign(obj, data);
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
return obj;
|
80
|
+
}
|
81
|
+
}]);
|
82
|
+
return LeadSearchResponseAllOfData;
|
83
|
+
}();
|
84
|
+
/**
|
85
|
+
* The array of leads
|
86
|
+
* @member {Array.<module:model/LeadSearchItem>} items
|
87
|
+
*/
|
88
|
+
|
89
|
+
|
90
|
+
LeadSearchResponseAllOfData.prototype['items'] = undefined;
|
91
|
+
var _default = LeadSearchResponseAllOfData;
|
92
|
+
exports["default"] = _default;
|
package/dist/model/NewDeal.js
CHANGED
@@ -121,6 +121,11 @@ var NewDeal = /*#__PURE__*/function () {
|
|
121
121
|
delete data['org_id'];
|
122
122
|
}
|
123
123
|
|
124
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
125
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
126
|
+
delete data['pipeline_id'];
|
127
|
+
}
|
128
|
+
|
124
129
|
if (data.hasOwnProperty('stage_id')) {
|
125
130
|
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
126
131
|
delete data['stage_id'];
|
@@ -204,7 +209,13 @@ NewDeal.prototype['person_id'] = undefined;
|
|
204
209
|
|
205
210
|
NewDeal.prototype['org_id'] = undefined;
|
206
211
|
/**
|
207
|
-
* The ID of
|
212
|
+
* The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
|
213
|
+
* @member {Number} pipeline_id
|
214
|
+
*/
|
215
|
+
|
216
|
+
NewDeal.prototype['pipeline_id'] = undefined;
|
217
|
+
/**
|
218
|
+
* The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
|
208
219
|
* @member {Number} stage_id
|
209
220
|
*/
|
210
221
|
|
@@ -284,7 +295,13 @@ _BasicDeal["default"].prototype['person_id'] = undefined;
|
|
284
295
|
|
285
296
|
_BasicDeal["default"].prototype['org_id'] = undefined;
|
286
297
|
/**
|
287
|
-
* The ID of
|
298
|
+
* The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
|
299
|
+
* @member {Number} pipeline_id
|
300
|
+
*/
|
301
|
+
|
302
|
+
_BasicDeal["default"].prototype['pipeline_id'] = undefined;
|
303
|
+
/**
|
304
|
+
* The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
|
288
305
|
* @member {Number} stage_id
|
289
306
|
*/
|
290
307
|
|
@@ -15,8 +15,6 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
15
15
|
|
16
16
|
var _BasicDealProduct = _interopRequireDefault(require("./BasicDealProduct"));
|
17
17
|
|
18
|
-
var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf"));
|
19
|
-
|
20
18
|
var _NumberBoolean = _interopRequireDefault(require("./NumberBoolean"));
|
21
19
|
|
22
20
|
/**
|
@@ -42,19 +40,15 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
42
40
|
* Constructs a new <code>NewDealProduct</code>.
|
43
41
|
* @alias module:model/NewDealProduct
|
44
42
|
* @implements module:model/BasicDealProduct
|
45
|
-
* @implements module:model/NewDealProductAllOf
|
46
43
|
* @param itemPrice {Number} The price at which this product will be added to the deal
|
47
44
|
* @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
|
48
|
-
* @param productId {Number} The ID of the product that will be attached
|
49
45
|
*/
|
50
|
-
function NewDealProduct(itemPrice, quantity
|
46
|
+
function NewDealProduct(itemPrice, quantity) {
|
51
47
|
(0, _classCallCheck2["default"])(this, NewDealProduct);
|
52
48
|
|
53
|
-
_BasicDealProduct["default"].initialize(this);
|
54
|
-
|
55
|
-
_NewDealProductAllOf["default"].initialize(this, productId);
|
49
|
+
_BasicDealProduct["default"].initialize(this, itemPrice, quantity);
|
56
50
|
|
57
|
-
NewDealProduct.initialize(this, itemPrice, quantity
|
51
|
+
NewDealProduct.initialize(this, itemPrice, quantity);
|
58
52
|
}
|
59
53
|
/**
|
60
54
|
* Initializes the fields of this object.
|
@@ -65,10 +59,9 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
65
59
|
|
66
60
|
(0, _createClass2["default"])(NewDealProduct, null, [{
|
67
61
|
key: "initialize",
|
68
|
-
value: function initialize(obj, itemPrice, quantity
|
62
|
+
value: function initialize(obj, itemPrice, quantity) {
|
69
63
|
obj['item_price'] = itemPrice;
|
70
64
|
obj['quantity'] = quantity;
|
71
|
-
obj['product_id'] = productId;
|
72
65
|
}
|
73
66
|
/**
|
74
67
|
* Constructs a <code>NewDealProduct</code> from a plain JavaScript object, optionally creating a new instance.
|
@@ -86,8 +79,6 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
86
79
|
|
87
80
|
_BasicDealProduct["default"].constructFromObject(data, obj);
|
88
81
|
|
89
|
-
_NewDealProductAllOf["default"].constructFromObject(data, obj);
|
90
|
-
|
91
82
|
if (data.hasOwnProperty('item_price')) {
|
92
83
|
obj['item_price'] = _ApiClient["default"].convertToType(data['item_price'], 'Number');
|
93
84
|
delete data['item_price'];
|
@@ -128,11 +119,6 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
128
119
|
delete data['enabled_flag'];
|
129
120
|
}
|
130
121
|
|
131
|
-
if (data.hasOwnProperty('product_id')) {
|
132
|
-
obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
|
133
|
-
delete data['product_id'];
|
134
|
-
}
|
135
|
-
|
136
122
|
if (Object.keys(data).length > 0) {
|
137
123
|
Object.assign(obj, data);
|
138
124
|
}
|
@@ -194,13 +180,7 @@ NewDealProduct.prototype['tax'] = 0;
|
|
194
180
|
* @member {module:model/NumberBoolean} enabled_flag
|
195
181
|
*/
|
196
182
|
|
197
|
-
NewDealProduct.prototype['enabled_flag'] = undefined;
|
198
|
-
/**
|
199
|
-
* The ID of the product that will be attached
|
200
|
-
* @member {Number} product_id
|
201
|
-
*/
|
202
|
-
|
203
|
-
NewDealProduct.prototype['product_id'] = undefined; // Implement BasicDealProduct interface:
|
183
|
+
NewDealProduct.prototype['enabled_flag'] = undefined; // Implement BasicDealProduct interface:
|
204
184
|
|
205
185
|
/**
|
206
186
|
* The price at which this product will be added to the deal
|
@@ -252,13 +232,6 @@ _BasicDealProduct["default"].prototype['tax'] = 0;
|
|
252
232
|
* @member {module:model/NumberBoolean} enabled_flag
|
253
233
|
*/
|
254
234
|
|
255
|
-
_BasicDealProduct["default"].prototype['enabled_flag'] = undefined;
|
256
|
-
|
257
|
-
/**
|
258
|
-
* The ID of the product that will be attached
|
259
|
-
* @member {Number} product_id
|
260
|
-
*/
|
261
|
-
|
262
|
-
_NewDealProductAllOf["default"].prototype['product_id'] = undefined;
|
235
|
+
_BasicDealProduct["default"].prototype['enabled_flag'] = undefined;
|
263
236
|
var _default = NewDealProduct;
|
264
237
|
exports["default"] = _default;
|