pipedrive 13.3.4 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +5 -0
- package/README.md +30 -9
- package/dist/api/ChannelsApi.js +328 -0
- package/dist/api/LegacyTeamsApi.js +557 -0
- package/dist/index.js +152 -8
- package/dist/model/ChannelObject.js +166 -0
- package/dist/model/ChannelObjectResponse.js +101 -0
- package/dist/model/ChannelObjectResponseData.js +214 -0
- package/dist/model/DeleteChannelSuccess.js +89 -0
- package/dist/model/DeleteConversationSuccess.js +89 -0
- package/dist/model/InlineResponse400.js +122 -0
- package/dist/model/InlineResponse4001.js +122 -0
- package/dist/model/InlineResponse4001AdditionalData.js +90 -0
- package/dist/model/InlineResponse400AdditionalData.js +90 -0
- package/dist/model/InlineResponse403.js +122 -0
- package/dist/model/InlineResponse4031.js +122 -0
- package/dist/model/InlineResponse4031AdditionalData.js +90 -0
- package/dist/model/InlineResponse403AdditionalData.js +90 -0
- package/dist/model/InlineResponse404.js +122 -0
- package/dist/model/InlineResponse404AdditionalData.js +90 -0
- package/dist/model/MessageObject.js +237 -0
- package/dist/model/MessageObjectAttachments.js +164 -0
- 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 InlineResponse4001AdditionalData model module.
|
31
|
+
* @module model/InlineResponse4001AdditionalData
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var InlineResponse4001AdditionalData = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>InlineResponse4001AdditionalData</code>.
|
37
|
+
* @alias module:model/InlineResponse4001AdditionalData
|
38
|
+
*/
|
39
|
+
function InlineResponse4001AdditionalData() {
|
40
|
+
(0, _classCallCheck2["default"])(this, InlineResponse4001AdditionalData);
|
41
|
+
InlineResponse4001AdditionalData.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"])(InlineResponse4001AdditionalData, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>InlineResponse4001AdditionalData</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/InlineResponse4001AdditionalData} obj Optional instance to populate.
|
58
|
+
* @return {module:model/InlineResponse4001AdditionalData} The populated <code>InlineResponse4001AdditionalData</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new InlineResponse4001AdditionalData();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('code')) {
|
68
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
69
|
+
delete data['code'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return InlineResponse4001AdditionalData;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* An error code sent by the API
|
84
|
+
* @member {String} code
|
85
|
+
*/
|
86
|
+
|
87
|
+
|
88
|
+
InlineResponse4001AdditionalData.prototype['code'] = undefined;
|
89
|
+
var _default = InlineResponse4001AdditionalData;
|
90
|
+
exports["default"] = _default;
|
@@ -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 InlineResponse400AdditionalData model module.
|
31
|
+
* @module model/InlineResponse400AdditionalData
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var InlineResponse400AdditionalData = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>InlineResponse400AdditionalData</code>.
|
37
|
+
* @alias module:model/InlineResponse400AdditionalData
|
38
|
+
*/
|
39
|
+
function InlineResponse400AdditionalData() {
|
40
|
+
(0, _classCallCheck2["default"])(this, InlineResponse400AdditionalData);
|
41
|
+
InlineResponse400AdditionalData.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"])(InlineResponse400AdditionalData, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>InlineResponse400AdditionalData</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/InlineResponse400AdditionalData} obj Optional instance to populate.
|
58
|
+
* @return {module:model/InlineResponse400AdditionalData} The populated <code>InlineResponse400AdditionalData</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new InlineResponse400AdditionalData();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('code')) {
|
68
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
69
|
+
delete data['code'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return InlineResponse400AdditionalData;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* An error code sent by the API
|
84
|
+
* @member {String} code
|
85
|
+
*/
|
86
|
+
|
87
|
+
|
88
|
+
InlineResponse400AdditionalData.prototype['code'] = undefined;
|
89
|
+
var _default = InlineResponse400AdditionalData;
|
90
|
+
exports["default"] = _default;
|
@@ -0,0 +1,122 @@
|
|
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 _InlineResponse403AdditionalData = _interopRequireDefault(require("./InlineResponse403AdditionalData"));
|
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 InlineResponse403 model module.
|
33
|
+
* @module model/InlineResponse403
|
34
|
+
* @version 1.0.0
|
35
|
+
*/
|
36
|
+
var InlineResponse403 = /*#__PURE__*/function () {
|
37
|
+
/**
|
38
|
+
* Constructs a new <code>InlineResponse403</code>.
|
39
|
+
* @alias module:model/InlineResponse403
|
40
|
+
*/
|
41
|
+
function InlineResponse403() {
|
42
|
+
(0, _classCallCheck2["default"])(this, InlineResponse403);
|
43
|
+
InlineResponse403.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"])(InlineResponse403, null, [{
|
53
|
+
key: "initialize",
|
54
|
+
value: function initialize(obj) {}
|
55
|
+
/**
|
56
|
+
* Constructs a <code>InlineResponse403</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/InlineResponse403} obj Optional instance to populate.
|
60
|
+
* @return {module:model/InlineResponse403} The populated <code>InlineResponse403</code> instance.
|
61
|
+
*/
|
62
|
+
|
63
|
+
}, {
|
64
|
+
key: "constructFromObject",
|
65
|
+
value: function constructFromObject(data, obj) {
|
66
|
+
if (data) {
|
67
|
+
obj = obj || new InlineResponse403();
|
68
|
+
|
69
|
+
if (data.hasOwnProperty('success')) {
|
70
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
71
|
+
delete data['success'];
|
72
|
+
}
|
73
|
+
|
74
|
+
if (data.hasOwnProperty('error')) {
|
75
|
+
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
76
|
+
delete data['error'];
|
77
|
+
}
|
78
|
+
|
79
|
+
if (data.hasOwnProperty('error_info')) {
|
80
|
+
obj['error_info'] = _ApiClient["default"].convertToType(data['error_info'], 'String');
|
81
|
+
delete data['error_info'];
|
82
|
+
}
|
83
|
+
|
84
|
+
if (data.hasOwnProperty('additional_data')) {
|
85
|
+
obj['additional_data'] = _InlineResponse403AdditionalData["default"].constructFromObject(data['additional_data']);
|
86
|
+
delete data['additional_data'];
|
87
|
+
}
|
88
|
+
|
89
|
+
if (Object.keys(data).length > 0) {
|
90
|
+
Object.assign(obj, data);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
return obj;
|
95
|
+
}
|
96
|
+
}]);
|
97
|
+
return InlineResponse403;
|
98
|
+
}();
|
99
|
+
/**
|
100
|
+
* @member {Boolean} success
|
101
|
+
*/
|
102
|
+
|
103
|
+
|
104
|
+
InlineResponse403.prototype['success'] = undefined;
|
105
|
+
/**
|
106
|
+
* The error description
|
107
|
+
* @member {String} error
|
108
|
+
*/
|
109
|
+
|
110
|
+
InlineResponse403.prototype['error'] = undefined;
|
111
|
+
/**
|
112
|
+
* @member {String} error_info
|
113
|
+
*/
|
114
|
+
|
115
|
+
InlineResponse403.prototype['error_info'] = undefined;
|
116
|
+
/**
|
117
|
+
* @member {module:model/InlineResponse403AdditionalData} additional_data
|
118
|
+
*/
|
119
|
+
|
120
|
+
InlineResponse403.prototype['additional_data'] = undefined;
|
121
|
+
var _default = InlineResponse403;
|
122
|
+
exports["default"] = _default;
|
@@ -0,0 +1,122 @@
|
|
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 _InlineResponse4031AdditionalData = _interopRequireDefault(require("./InlineResponse4031AdditionalData"));
|
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 InlineResponse4031 model module.
|
33
|
+
* @module model/InlineResponse4031
|
34
|
+
* @version 1.0.0
|
35
|
+
*/
|
36
|
+
var InlineResponse4031 = /*#__PURE__*/function () {
|
37
|
+
/**
|
38
|
+
* Constructs a new <code>InlineResponse4031</code>.
|
39
|
+
* @alias module:model/InlineResponse4031
|
40
|
+
*/
|
41
|
+
function InlineResponse4031() {
|
42
|
+
(0, _classCallCheck2["default"])(this, InlineResponse4031);
|
43
|
+
InlineResponse4031.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"])(InlineResponse4031, null, [{
|
53
|
+
key: "initialize",
|
54
|
+
value: function initialize(obj) {}
|
55
|
+
/**
|
56
|
+
* Constructs a <code>InlineResponse4031</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/InlineResponse4031} obj Optional instance to populate.
|
60
|
+
* @return {module:model/InlineResponse4031} The populated <code>InlineResponse4031</code> instance.
|
61
|
+
*/
|
62
|
+
|
63
|
+
}, {
|
64
|
+
key: "constructFromObject",
|
65
|
+
value: function constructFromObject(data, obj) {
|
66
|
+
if (data) {
|
67
|
+
obj = obj || new InlineResponse4031();
|
68
|
+
|
69
|
+
if (data.hasOwnProperty('success')) {
|
70
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
71
|
+
delete data['success'];
|
72
|
+
}
|
73
|
+
|
74
|
+
if (data.hasOwnProperty('error')) {
|
75
|
+
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
76
|
+
delete data['error'];
|
77
|
+
}
|
78
|
+
|
79
|
+
if (data.hasOwnProperty('error_info')) {
|
80
|
+
obj['error_info'] = _ApiClient["default"].convertToType(data['error_info'], 'String');
|
81
|
+
delete data['error_info'];
|
82
|
+
}
|
83
|
+
|
84
|
+
if (data.hasOwnProperty('additional_data')) {
|
85
|
+
obj['additional_data'] = _InlineResponse4031AdditionalData["default"].constructFromObject(data['additional_data']);
|
86
|
+
delete data['additional_data'];
|
87
|
+
}
|
88
|
+
|
89
|
+
if (Object.keys(data).length > 0) {
|
90
|
+
Object.assign(obj, data);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
return obj;
|
95
|
+
}
|
96
|
+
}]);
|
97
|
+
return InlineResponse4031;
|
98
|
+
}();
|
99
|
+
/**
|
100
|
+
* @member {Boolean} success
|
101
|
+
*/
|
102
|
+
|
103
|
+
|
104
|
+
InlineResponse4031.prototype['success'] = undefined;
|
105
|
+
/**
|
106
|
+
* The error description
|
107
|
+
* @member {String} error
|
108
|
+
*/
|
109
|
+
|
110
|
+
InlineResponse4031.prototype['error'] = undefined;
|
111
|
+
/**
|
112
|
+
* @member {String} error_info
|
113
|
+
*/
|
114
|
+
|
115
|
+
InlineResponse4031.prototype['error_info'] = undefined;
|
116
|
+
/**
|
117
|
+
* @member {module:model/InlineResponse4031AdditionalData} additional_data
|
118
|
+
*/
|
119
|
+
|
120
|
+
InlineResponse4031.prototype['additional_data'] = undefined;
|
121
|
+
var _default = InlineResponse4031;
|
122
|
+
exports["default"] = _default;
|
@@ -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 InlineResponse4031AdditionalData model module.
|
31
|
+
* @module model/InlineResponse4031AdditionalData
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var InlineResponse4031AdditionalData = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>InlineResponse4031AdditionalData</code>.
|
37
|
+
* @alias module:model/InlineResponse4031AdditionalData
|
38
|
+
*/
|
39
|
+
function InlineResponse4031AdditionalData() {
|
40
|
+
(0, _classCallCheck2["default"])(this, InlineResponse4031AdditionalData);
|
41
|
+
InlineResponse4031AdditionalData.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"])(InlineResponse4031AdditionalData, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>InlineResponse4031AdditionalData</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/InlineResponse4031AdditionalData} obj Optional instance to populate.
|
58
|
+
* @return {module:model/InlineResponse4031AdditionalData} The populated <code>InlineResponse4031AdditionalData</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new InlineResponse4031AdditionalData();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('code')) {
|
68
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
69
|
+
delete data['code'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return InlineResponse4031AdditionalData;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* An error code sent by the API
|
84
|
+
* @member {String} code
|
85
|
+
*/
|
86
|
+
|
87
|
+
|
88
|
+
InlineResponse4031AdditionalData.prototype['code'] = undefined;
|
89
|
+
var _default = InlineResponse4031AdditionalData;
|
90
|
+
exports["default"] = _default;
|
@@ -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 InlineResponse403AdditionalData model module.
|
31
|
+
* @module model/InlineResponse403AdditionalData
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var InlineResponse403AdditionalData = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>InlineResponse403AdditionalData</code>.
|
37
|
+
* @alias module:model/InlineResponse403AdditionalData
|
38
|
+
*/
|
39
|
+
function InlineResponse403AdditionalData() {
|
40
|
+
(0, _classCallCheck2["default"])(this, InlineResponse403AdditionalData);
|
41
|
+
InlineResponse403AdditionalData.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"])(InlineResponse403AdditionalData, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>InlineResponse403AdditionalData</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/InlineResponse403AdditionalData} obj Optional instance to populate.
|
58
|
+
* @return {module:model/InlineResponse403AdditionalData} The populated <code>InlineResponse403AdditionalData</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new InlineResponse403AdditionalData();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('code')) {
|
68
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
69
|
+
delete data['code'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return InlineResponse403AdditionalData;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* An error code sent by the API
|
84
|
+
* @member {String} code
|
85
|
+
*/
|
86
|
+
|
87
|
+
|
88
|
+
InlineResponse403AdditionalData.prototype['code'] = undefined;
|
89
|
+
var _default = InlineResponse403AdditionalData;
|
90
|
+
exports["default"] = _default;
|