pipedrive 18.1.3 → 19.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/AddUserRequest.js +0 -10
- 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
@@ -64,10 +64,6 @@ var AddUserRequest = /*#__PURE__*/function () {
|
|
64
64
|
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
65
65
|
delete data['email'];
|
66
66
|
}
|
67
|
-
if (data.hasOwnProperty('name')) {
|
68
|
-
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
69
|
-
delete data['name'];
|
70
|
-
}
|
71
67
|
if (data.hasOwnProperty('access')) {
|
72
68
|
obj['access'] = _ApiClient["default"].convertToType(data['access'], [_UserAccess["default"]]);
|
73
69
|
delete data['access'];
|
@@ -91,12 +87,6 @@ var AddUserRequest = /*#__PURE__*/function () {
|
|
91
87
|
*/
|
92
88
|
AddUserRequest.prototype['email'] = undefined;
|
93
89
|
|
94
|
-
/**
|
95
|
-
* The name of the user
|
96
|
-
* @member {String} name
|
97
|
-
*/
|
98
|
-
AddUserRequest.prototype['name'] = undefined;
|
99
|
-
|
100
90
|
/**
|
101
91
|
* The access given to the user. Each item in the array represents access to a specific app. Optionally may include either admin flag or permission set ID to specify which access to give within the app. If both are omitted, the default access for the corresponding app will be used. It requires structure as follows: `[{ app: 'sales', permission_set_id: '62cc4d7f-4038-4352-abf3-a8c1c822b631' }, { app: 'global', admin: true }, { app: 'account_settings' }]`
|
102
92
|
* @member {Array.<module:model/UserAccess>} access
|
@@ -87,6 +87,10 @@ var AddWebhookRequest = /*#__PURE__*/function () {
|
|
87
87
|
obj['http_auth_password'] = _ApiClient["default"].convertToType(data['http_auth_password'], 'String');
|
88
88
|
delete data['http_auth_password'];
|
89
89
|
}
|
90
|
+
if (data.hasOwnProperty('version')) {
|
91
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
92
|
+
delete data['version'];
|
93
|
+
}
|
90
94
|
if (Object.keys(data).length > 0) {
|
91
95
|
Object.assign(obj, data);
|
92
96
|
}
|
@@ -132,6 +136,13 @@ AddWebhookRequest.prototype['http_auth_user'] = undefined;
|
|
132
136
|
*/
|
133
137
|
AddWebhookRequest.prototype['http_auth_password'] = undefined;
|
134
138
|
|
139
|
+
/**
|
140
|
+
* The webhook's version
|
141
|
+
* @member {module:model/AddWebhookRequest.VersionEnum} version
|
142
|
+
* @default '1.0'
|
143
|
+
*/
|
144
|
+
AddWebhookRequest.prototype['version'] = '1.0';
|
145
|
+
|
135
146
|
/**
|
136
147
|
* Allowed values for the <code>event_action</code> property.
|
137
148
|
* @enum {String}
|
@@ -227,5 +238,23 @@ AddWebhookRequest['EventObjectEnum'] = {
|
|
227
238
|
*/
|
228
239
|
"STAR": "*"
|
229
240
|
};
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Allowed values for the <code>version</code> property.
|
244
|
+
* @enum {String}
|
245
|
+
* @readonly
|
246
|
+
*/
|
247
|
+
AddWebhookRequest['VersionEnum'] = {
|
248
|
+
/**
|
249
|
+
* value: "1.0"
|
250
|
+
* @const
|
251
|
+
*/
|
252
|
+
"1.0": "1.0",
|
253
|
+
/**
|
254
|
+
* value: "2.0"
|
255
|
+
* @const
|
256
|
+
*/
|
257
|
+
"2.0": "2.0"
|
258
|
+
};
|
230
259
|
var _default = AddWebhookRequest;
|
231
260
|
exports["default"] = _default;
|
@@ -0,0 +1,79 @@
|
|
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 AdditionalDataWithCursorPagination model module.
|
25
|
+
* @module model/AdditionalDataWithCursorPagination
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var AdditionalDataWithCursorPagination = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>AdditionalDataWithCursorPagination</code>.
|
31
|
+
* The additional data of the list
|
32
|
+
* @alias module:model/AdditionalDataWithCursorPagination
|
33
|
+
*/
|
34
|
+
function AdditionalDataWithCursorPagination() {
|
35
|
+
(0, _classCallCheck2["default"])(this, AdditionalDataWithCursorPagination);
|
36
|
+
AdditionalDataWithCursorPagination.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"])(AdditionalDataWithCursorPagination, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>AdditionalDataWithCursorPagination</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/AdditionalDataWithCursorPagination} obj Optional instance to populate.
|
53
|
+
* @return {module:model/AdditionalDataWithCursorPagination} The populated <code>AdditionalDataWithCursorPagination</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new AdditionalDataWithCursorPagination();
|
60
|
+
if (data.hasOwnProperty('next_cursor')) {
|
61
|
+
obj['next_cursor'] = _ApiClient["default"].convertToType(data['next_cursor'], 'String');
|
62
|
+
delete data['next_cursor'];
|
63
|
+
}
|
64
|
+
if (Object.keys(data).length > 0) {
|
65
|
+
Object.assign(obj, data);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return obj;
|
69
|
+
}
|
70
|
+
}]);
|
71
|
+
return AdditionalDataWithCursorPagination;
|
72
|
+
}();
|
73
|
+
/**
|
74
|
+
* The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned.
|
75
|
+
* @member {String} next_cursor
|
76
|
+
*/
|
77
|
+
AdditionalDataWithCursorPagination.prototype['next_cursor'] = undefined;
|
78
|
+
var _default = AdditionalDataWithCursorPagination;
|
79
|
+
exports["default"] = _default;
|
@@ -0,0 +1,79 @@
|
|
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 _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
|
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 AdditionalDataWithOffsetPagination model module.
|
26
|
+
* @module model/AdditionalDataWithOffsetPagination
|
27
|
+
* @version 1.0.0
|
28
|
+
*/
|
29
|
+
var AdditionalDataWithOffsetPagination = /*#__PURE__*/function () {
|
30
|
+
/**
|
31
|
+
* Constructs a new <code>AdditionalDataWithOffsetPagination</code>.
|
32
|
+
* @alias module:model/AdditionalDataWithOffsetPagination
|
33
|
+
*/
|
34
|
+
function AdditionalDataWithOffsetPagination() {
|
35
|
+
(0, _classCallCheck2["default"])(this, AdditionalDataWithOffsetPagination);
|
36
|
+
AdditionalDataWithOffsetPagination.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"])(AdditionalDataWithOffsetPagination, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>AdditionalDataWithOffsetPagination</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/AdditionalDataWithOffsetPagination} obj Optional instance to populate.
|
53
|
+
* @return {module:model/AdditionalDataWithOffsetPagination} The populated <code>AdditionalDataWithOffsetPagination</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new AdditionalDataWithOffsetPagination();
|
60
|
+
if (data.hasOwnProperty('pagination')) {
|
61
|
+
obj['pagination'] = _ApiClient["default"].convertToType(data['pagination'], _AdditionalData["default"]);
|
62
|
+
delete data['pagination'];
|
63
|
+
}
|
64
|
+
if (Object.keys(data).length > 0) {
|
65
|
+
Object.assign(obj, data);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return obj;
|
69
|
+
}
|
70
|
+
}]);
|
71
|
+
return AdditionalDataWithOffsetPagination;
|
72
|
+
}();
|
73
|
+
/**
|
74
|
+
* The pagination details of the list
|
75
|
+
* @member {module:model/AdditionalData} pagination
|
76
|
+
*/
|
77
|
+
AdditionalDataWithOffsetPagination.prototype['pagination'] = undefined;
|
78
|
+
var _default = AdditionalDataWithOffsetPagination;
|
79
|
+
exports["default"] = _default;
|
package/dist/model/BaseDeal.js
CHANGED
@@ -388,7 +388,7 @@ BaseDeal.prototype['visible_to'] = undefined;
|
|
388
388
|
BaseDeal.prototype['close_time'] = undefined;
|
389
389
|
|
390
390
|
/**
|
391
|
-
* The ID of pipeline associated with the deal
|
391
|
+
* The ID of the pipeline associated with the deal
|
392
392
|
* @member {Number} pipeline_id
|
393
393
|
*/
|
394
394
|
BaseDeal.prototype['pipeline_id'] = undefined;
|
@@ -8,7 +8,6 @@ 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 _NumberBooleanDefault = _interopRequireDefault(require("./NumberBooleanDefault1"));
|
12
11
|
var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
|
13
12
|
/**
|
14
13
|
* Pipedrive API v1
|
@@ -79,11 +78,11 @@ var BaseProduct = /*#__PURE__*/function () {
|
|
79
78
|
delete data['tax'];
|
80
79
|
}
|
81
80
|
if (data.hasOwnProperty('active_flag')) {
|
82
|
-
obj['active_flag'] =
|
81
|
+
obj['active_flag'] = _ApiClient["default"].convertToType(data['active_flag'], 'Boolean');
|
83
82
|
delete data['active_flag'];
|
84
83
|
}
|
85
84
|
if (data.hasOwnProperty('selectable')) {
|
86
|
-
obj['selectable'] =
|
85
|
+
obj['selectable'] = _ApiClient["default"].convertToType(data['selectable'], 'Boolean');
|
87
86
|
delete data['selectable'];
|
88
87
|
}
|
89
88
|
if (data.hasOwnProperty('visible_to')) {
|
@@ -135,14 +134,18 @@ BaseProduct.prototype['unit'] = undefined;
|
|
135
134
|
BaseProduct.prototype['tax'] = 0;
|
136
135
|
|
137
136
|
/**
|
138
|
-
*
|
137
|
+
* Whether this product is active or not
|
138
|
+
* @member {Boolean} active_flag
|
139
|
+
* @default true
|
139
140
|
*/
|
140
|
-
BaseProduct.prototype['active_flag'] =
|
141
|
+
BaseProduct.prototype['active_flag'] = true;
|
141
142
|
|
142
143
|
/**
|
143
|
-
*
|
144
|
+
* Whether this product is selected in deals or not
|
145
|
+
* @member {Boolean} selectable
|
146
|
+
* @default true
|
144
147
|
*/
|
145
|
-
BaseProduct.prototype['selectable'] =
|
148
|
+
BaseProduct.prototype['selectable'] = true;
|
146
149
|
|
147
150
|
/**
|
148
151
|
* Visibility of the product
|
@@ -8,13 +8,13 @@ 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 _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
|
12
12
|
/**
|
13
13
|
* Pipedrive API v1
|
14
14
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
15
15
|
*
|
16
16
|
* The version of the OpenAPI document: 1.0.0
|
17
|
-
*
|
17
|
+
*
|
18
18
|
*
|
19
19
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
20
20
|
* https://openapi-generator.tech
|
@@ -84,6 +84,10 @@ var BasicDealProduct = /*#__PURE__*/function () {
|
|
84
84
|
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
85
85
|
delete data['duration'];
|
86
86
|
}
|
87
|
+
if (data.hasOwnProperty('duration_unit')) {
|
88
|
+
obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
|
89
|
+
delete data['duration_unit'];
|
90
|
+
}
|
87
91
|
if (data.hasOwnProperty('product_variation_id')) {
|
88
92
|
obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
|
89
93
|
delete data['product_variation_id'];
|
@@ -97,7 +101,7 @@ var BasicDealProduct = /*#__PURE__*/function () {
|
|
97
101
|
delete data['tax'];
|
98
102
|
}
|
99
103
|
if (data.hasOwnProperty('enabled_flag')) {
|
100
|
-
obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'],
|
104
|
+
obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
|
101
105
|
delete data['enabled_flag'];
|
102
106
|
}
|
103
107
|
if (Object.keys(data).length > 0) {
|
@@ -135,12 +139,18 @@ BasicDealProduct.prototype['quantity'] = undefined;
|
|
135
139
|
BasicDealProduct.prototype['discount_percentage'] = 0;
|
136
140
|
|
137
141
|
/**
|
138
|
-
* The duration of the product
|
142
|
+
* The duration of the product. If omitted, will be set to 1.
|
139
143
|
* @member {Number} duration
|
140
144
|
* @default 1
|
141
145
|
*/
|
142
146
|
BasicDealProduct.prototype['duration'] = 1;
|
143
147
|
|
148
|
+
/**
|
149
|
+
* The unit duration of the product
|
150
|
+
* @member {module:model/DealProductUnitDuration} duration_unit
|
151
|
+
*/
|
152
|
+
BasicDealProduct.prototype['duration_unit'] = undefined;
|
153
|
+
|
144
154
|
/**
|
145
155
|
* The ID of the product variation to use. When omitted, no variation will be used.
|
146
156
|
* @member {Number} product_variation_id
|
@@ -148,7 +158,7 @@ BasicDealProduct.prototype['duration'] = 1;
|
|
148
158
|
BasicDealProduct.prototype['product_variation_id'] = undefined;
|
149
159
|
|
150
160
|
/**
|
151
|
-
*
|
161
|
+
* A textual comment associated with this product-deal attachment
|
152
162
|
* @member {String} comments
|
153
163
|
*/
|
154
164
|
BasicDealProduct.prototype['comments'] = undefined;
|
@@ -161,9 +171,10 @@ BasicDealProduct.prototype['comments'] = undefined;
|
|
161
171
|
BasicDealProduct.prototype['tax'] = 0;
|
162
172
|
|
163
173
|
/**
|
164
|
-
* Whether the product is enabled
|
165
|
-
* @member {
|
174
|
+
* Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default.
|
175
|
+
* @member {Boolean} enabled_flag
|
176
|
+
* @default true
|
166
177
|
*/
|
167
|
-
BasicDealProduct.prototype['enabled_flag'] =
|
178
|
+
BasicDealProduct.prototype['enabled_flag'] = true;
|
168
179
|
var _default = BasicDealProduct;
|
169
180
|
exports["default"] = _default;
|
@@ -0,0 +1,278 @@
|
|
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 DealCollectionResponseObject model module.
|
25
|
+
* @module model/DealCollectionResponseObject
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var DealCollectionResponseObject = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>DealCollectionResponseObject</code>.
|
31
|
+
* @alias module:model/DealCollectionResponseObject
|
32
|
+
*/
|
33
|
+
function DealCollectionResponseObject() {
|
34
|
+
(0, _classCallCheck2["default"])(this, DealCollectionResponseObject);
|
35
|
+
DealCollectionResponseObject.initialize(this);
|
36
|
+
}
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Initializes the fields of this object.
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
41
|
+
* Only for internal use.
|
42
|
+
*/
|
43
|
+
(0, _createClass2["default"])(DealCollectionResponseObject, null, [{
|
44
|
+
key: "initialize",
|
45
|
+
value: function initialize(obj) {}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>DealCollectionResponseObject</code> from a plain JavaScript object, optionally creating a new instance.
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
51
|
+
* @param {module:model/DealCollectionResponseObject} obj Optional instance to populate.
|
52
|
+
* @return {module:model/DealCollectionResponseObject} The populated <code>DealCollectionResponseObject</code> instance.
|
53
|
+
*/
|
54
|
+
}, {
|
55
|
+
key: "constructFromObject",
|
56
|
+
value: function constructFromObject(data, obj) {
|
57
|
+
if (data) {
|
58
|
+
obj = obj || new DealCollectionResponseObject();
|
59
|
+
if (data.hasOwnProperty('id')) {
|
60
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
61
|
+
delete data['id'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('creator_user_id')) {
|
64
|
+
obj['creator_user_id'] = _ApiClient["default"].convertToType(data['creator_user_id'], 'Number');
|
65
|
+
delete data['creator_user_id'];
|
66
|
+
}
|
67
|
+
if (data.hasOwnProperty('user_id')) {
|
68
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
|
69
|
+
delete data['user_id'];
|
70
|
+
}
|
71
|
+
if (data.hasOwnProperty('person_id')) {
|
72
|
+
obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
|
73
|
+
delete data['person_id'];
|
74
|
+
}
|
75
|
+
if (data.hasOwnProperty('org_id')) {
|
76
|
+
obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
|
77
|
+
delete data['org_id'];
|
78
|
+
}
|
79
|
+
if (data.hasOwnProperty('stage_id')) {
|
80
|
+
obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
|
81
|
+
delete data['stage_id'];
|
82
|
+
}
|
83
|
+
if (data.hasOwnProperty('title')) {
|
84
|
+
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
85
|
+
delete data['title'];
|
86
|
+
}
|
87
|
+
if (data.hasOwnProperty('value')) {
|
88
|
+
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
|
89
|
+
delete data['value'];
|
90
|
+
}
|
91
|
+
if (data.hasOwnProperty('currency')) {
|
92
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
93
|
+
delete data['currency'];
|
94
|
+
}
|
95
|
+
if (data.hasOwnProperty('add_time')) {
|
96
|
+
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
97
|
+
delete data['add_time'];
|
98
|
+
}
|
99
|
+
if (data.hasOwnProperty('update_time')) {
|
100
|
+
obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
|
101
|
+
delete data['update_time'];
|
102
|
+
}
|
103
|
+
if (data.hasOwnProperty('status')) {
|
104
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
105
|
+
delete data['status'];
|
106
|
+
}
|
107
|
+
if (data.hasOwnProperty('probability')) {
|
108
|
+
obj['probability'] = _ApiClient["default"].convertToType(data['probability'], 'Number');
|
109
|
+
delete data['probability'];
|
110
|
+
}
|
111
|
+
if (data.hasOwnProperty('lost_reason')) {
|
112
|
+
obj['lost_reason'] = _ApiClient["default"].convertToType(data['lost_reason'], 'String');
|
113
|
+
delete data['lost_reason'];
|
114
|
+
}
|
115
|
+
if (data.hasOwnProperty('visible_to')) {
|
116
|
+
obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], 'String');
|
117
|
+
delete data['visible_to'];
|
118
|
+
}
|
119
|
+
if (data.hasOwnProperty('close_time')) {
|
120
|
+
obj['close_time'] = _ApiClient["default"].convertToType(data['close_time'], 'String');
|
121
|
+
delete data['close_time'];
|
122
|
+
}
|
123
|
+
if (data.hasOwnProperty('pipeline_id')) {
|
124
|
+
obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
|
125
|
+
delete data['pipeline_id'];
|
126
|
+
}
|
127
|
+
if (data.hasOwnProperty('won_time')) {
|
128
|
+
obj['won_time'] = _ApiClient["default"].convertToType(data['won_time'], 'String');
|
129
|
+
delete data['won_time'];
|
130
|
+
}
|
131
|
+
if (data.hasOwnProperty('lost_time')) {
|
132
|
+
obj['lost_time'] = _ApiClient["default"].convertToType(data['lost_time'], 'String');
|
133
|
+
delete data['lost_time'];
|
134
|
+
}
|
135
|
+
if (data.hasOwnProperty('expected_close_date')) {
|
136
|
+
obj['expected_close_date'] = _ApiClient["default"].convertToType(data['expected_close_date'], 'Date');
|
137
|
+
delete data['expected_close_date'];
|
138
|
+
}
|
139
|
+
if (data.hasOwnProperty('label')) {
|
140
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'Number');
|
141
|
+
delete data['label'];
|
142
|
+
}
|
143
|
+
if (Object.keys(data).length > 0) {
|
144
|
+
Object.assign(obj, data);
|
145
|
+
}
|
146
|
+
}
|
147
|
+
return obj;
|
148
|
+
}
|
149
|
+
}]);
|
150
|
+
return DealCollectionResponseObject;
|
151
|
+
}();
|
152
|
+
/**
|
153
|
+
* The ID of the deal
|
154
|
+
* @member {Number} id
|
155
|
+
*/
|
156
|
+
DealCollectionResponseObject.prototype['id'] = undefined;
|
157
|
+
|
158
|
+
/**
|
159
|
+
* The ID of the deal creator
|
160
|
+
* @member {Number} creator_user_id
|
161
|
+
*/
|
162
|
+
DealCollectionResponseObject.prototype['creator_user_id'] = undefined;
|
163
|
+
|
164
|
+
/**
|
165
|
+
* The ID of the user
|
166
|
+
* @member {Number} user_id
|
167
|
+
*/
|
168
|
+
DealCollectionResponseObject.prototype['user_id'] = undefined;
|
169
|
+
|
170
|
+
/**
|
171
|
+
* The ID of the person associated with the deal
|
172
|
+
* @member {Number} person_id
|
173
|
+
*/
|
174
|
+
DealCollectionResponseObject.prototype['person_id'] = undefined;
|
175
|
+
|
176
|
+
/**
|
177
|
+
* The ID of the organization associated with the deal
|
178
|
+
* @member {Number} org_id
|
179
|
+
*/
|
180
|
+
DealCollectionResponseObject.prototype['org_id'] = undefined;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* The ID of the deal stage
|
184
|
+
* @member {Number} stage_id
|
185
|
+
*/
|
186
|
+
DealCollectionResponseObject.prototype['stage_id'] = undefined;
|
187
|
+
|
188
|
+
/**
|
189
|
+
* The title of the deal
|
190
|
+
* @member {String} title
|
191
|
+
*/
|
192
|
+
DealCollectionResponseObject.prototype['title'] = undefined;
|
193
|
+
|
194
|
+
/**
|
195
|
+
* The value of the deal
|
196
|
+
* @member {Number} value
|
197
|
+
*/
|
198
|
+
DealCollectionResponseObject.prototype['value'] = undefined;
|
199
|
+
|
200
|
+
/**
|
201
|
+
* The currency associated with the deal
|
202
|
+
* @member {String} currency
|
203
|
+
*/
|
204
|
+
DealCollectionResponseObject.prototype['currency'] = undefined;
|
205
|
+
|
206
|
+
/**
|
207
|
+
* The creation date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS.
|
208
|
+
* @member {String} add_time
|
209
|
+
*/
|
210
|
+
DealCollectionResponseObject.prototype['add_time'] = undefined;
|
211
|
+
|
212
|
+
/**
|
213
|
+
* The last update date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS.
|
214
|
+
* @member {String} update_time
|
215
|
+
*/
|
216
|
+
DealCollectionResponseObject.prototype['update_time'] = undefined;
|
217
|
+
|
218
|
+
/**
|
219
|
+
* The status of the deal
|
220
|
+
* @member {String} status
|
221
|
+
*/
|
222
|
+
DealCollectionResponseObject.prototype['status'] = undefined;
|
223
|
+
|
224
|
+
/**
|
225
|
+
* The success probability percentage of the deal
|
226
|
+
* @member {Number} probability
|
227
|
+
*/
|
228
|
+
DealCollectionResponseObject.prototype['probability'] = undefined;
|
229
|
+
|
230
|
+
/**
|
231
|
+
* The reason for losing the deal
|
232
|
+
* @member {String} lost_reason
|
233
|
+
*/
|
234
|
+
DealCollectionResponseObject.prototype['lost_reason'] = undefined;
|
235
|
+
|
236
|
+
/**
|
237
|
+
* The visibility of the deal
|
238
|
+
* @member {String} visible_to
|
239
|
+
*/
|
240
|
+
DealCollectionResponseObject.prototype['visible_to'] = undefined;
|
241
|
+
|
242
|
+
/**
|
243
|
+
* The date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS.
|
244
|
+
* @member {String} close_time
|
245
|
+
*/
|
246
|
+
DealCollectionResponseObject.prototype['close_time'] = undefined;
|
247
|
+
|
248
|
+
/**
|
249
|
+
* The ID of the pipeline associated with the deal
|
250
|
+
* @member {Number} pipeline_id
|
251
|
+
*/
|
252
|
+
DealCollectionResponseObject.prototype['pipeline_id'] = undefined;
|
253
|
+
|
254
|
+
/**
|
255
|
+
* The date and time of changing the deal status to won in UTC. Format: YYYY-MM-DD HH:MM:SS.
|
256
|
+
* @member {String} won_time
|
257
|
+
*/
|
258
|
+
DealCollectionResponseObject.prototype['won_time'] = undefined;
|
259
|
+
|
260
|
+
/**
|
261
|
+
* The date and time of changing the deal status to lost in UTC. Format: YYYY-MM-DD HH:MM:SS.
|
262
|
+
* @member {String} lost_time
|
263
|
+
*/
|
264
|
+
DealCollectionResponseObject.prototype['lost_time'] = undefined;
|
265
|
+
|
266
|
+
/**
|
267
|
+
* The expected close date of the deal
|
268
|
+
* @member {Date} expected_close_date
|
269
|
+
*/
|
270
|
+
DealCollectionResponseObject.prototype['expected_close_date'] = undefined;
|
271
|
+
|
272
|
+
/**
|
273
|
+
* The label assigned to the deal
|
274
|
+
* @member {Number} label
|
275
|
+
*/
|
276
|
+
DealCollectionResponseObject.prototype['label'] = undefined;
|
277
|
+
var _default = DealCollectionResponseObject;
|
278
|
+
exports["default"] = _default;
|
@@ -446,7 +446,7 @@ DealNonStrict.prototype['visible_to'] = undefined;
|
|
446
446
|
DealNonStrict.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
|
DealNonStrict.prototype['pipeline_id'] = undefined;
|
@@ -762,7 +762,7 @@ _BaseDeal["default"].prototype['visible_to'] = undefined;
|
|
762
762
|
*/
|
763
763
|
_BaseDeal["default"].prototype['close_time'] = undefined;
|
764
764
|
/**
|
765
|
-
* The ID of pipeline associated with the deal
|
765
|
+
* The ID of the pipeline associated with the deal
|
766
766
|
* @member {Number} pipeline_id
|
767
767
|
*/
|
768
768
|
_BaseDeal["default"].prototype['pipeline_id'] = undefined;
|