pipedrive 13.3.2 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +13 -0
- package/README.md +31 -10
- package/dist/api/ChannelsApi.js +328 -0
- package/dist/api/LegacyTeamsApi.js +557 -0
- package/dist/api/ProductFieldsApi.js +5 -9
- package/dist/index.js +160 -16
- 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/dist/model/UpdateProductField.js +101 -0
- package/package.json +4 -3
@@ -0,0 +1,214 @@
|
|
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 ChannelObjectResponseData model module.
|
31
|
+
* @module model/ChannelObjectResponseData
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var ChannelObjectResponseData = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>ChannelObjectResponseData</code>.
|
37
|
+
* @alias module:model/ChannelObjectResponseData
|
38
|
+
*/
|
39
|
+
function ChannelObjectResponseData() {
|
40
|
+
(0, _classCallCheck2["default"])(this, ChannelObjectResponseData);
|
41
|
+
ChannelObjectResponseData.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"])(ChannelObjectResponseData, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>ChannelObjectResponseData</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/ChannelObjectResponseData} obj Optional instance to populate.
|
58
|
+
* @return {module:model/ChannelObjectResponseData} The populated <code>ChannelObjectResponseData</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new ChannelObjectResponseData();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('id')) {
|
68
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
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 (data.hasOwnProperty('avatar_url')) {
|
78
|
+
obj['avatar_url'] = _ApiClient["default"].convertToType(data['avatar_url'], 'String');
|
79
|
+
delete data['avatar_url'];
|
80
|
+
}
|
81
|
+
|
82
|
+
if (data.hasOwnProperty('provider_channel_id')) {
|
83
|
+
obj['provider_channel_id'] = _ApiClient["default"].convertToType(data['provider_channel_id'], 'String');
|
84
|
+
delete data['provider_channel_id'];
|
85
|
+
}
|
86
|
+
|
87
|
+
if (data.hasOwnProperty('marketplace_client_id')) {
|
88
|
+
obj['marketplace_client_id'] = _ApiClient["default"].convertToType(data['marketplace_client_id'], 'String');
|
89
|
+
delete data['marketplace_client_id'];
|
90
|
+
}
|
91
|
+
|
92
|
+
if (data.hasOwnProperty('pd_company_id')) {
|
93
|
+
obj['pd_company_id'] = _ApiClient["default"].convertToType(data['pd_company_id'], 'Number');
|
94
|
+
delete data['pd_company_id'];
|
95
|
+
}
|
96
|
+
|
97
|
+
if (data.hasOwnProperty('pd_user_id')) {
|
98
|
+
obj['pd_user_id'] = _ApiClient["default"].convertToType(data['pd_user_id'], 'Number');
|
99
|
+
delete data['pd_user_id'];
|
100
|
+
}
|
101
|
+
|
102
|
+
if (data.hasOwnProperty('created_at')) {
|
103
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
104
|
+
delete data['created_at'];
|
105
|
+
}
|
106
|
+
|
107
|
+
if (data.hasOwnProperty('provider_type')) {
|
108
|
+
obj['provider_type'] = _ApiClient["default"].convertToType(data['provider_type'], 'String');
|
109
|
+
delete data['provider_type'];
|
110
|
+
}
|
111
|
+
|
112
|
+
if (data.hasOwnProperty('template_support')) {
|
113
|
+
obj['template_support'] = _ApiClient["default"].convertToType(data['template_support'], 'Boolean');
|
114
|
+
delete data['template_support'];
|
115
|
+
}
|
116
|
+
|
117
|
+
if (Object.keys(data).length > 0) {
|
118
|
+
Object.assign(obj, data);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
return obj;
|
123
|
+
}
|
124
|
+
}]);
|
125
|
+
return ChannelObjectResponseData;
|
126
|
+
}();
|
127
|
+
/**
|
128
|
+
* The unique channel ID used internally in omnichannel-api and the frontend of the extension
|
129
|
+
* @member {String} id
|
130
|
+
*/
|
131
|
+
|
132
|
+
|
133
|
+
ChannelObjectResponseData.prototype['id'] = undefined;
|
134
|
+
/**
|
135
|
+
* The name of the channel
|
136
|
+
* @member {String} name
|
137
|
+
*/
|
138
|
+
|
139
|
+
ChannelObjectResponseData.prototype['name'] = undefined;
|
140
|
+
/**
|
141
|
+
* The URL for an icon that represents your channel
|
142
|
+
* @member {String} avatar_url
|
143
|
+
*/
|
144
|
+
|
145
|
+
ChannelObjectResponseData.prototype['avatar_url'] = undefined;
|
146
|
+
/**
|
147
|
+
* The channel ID you specified while creating the channel
|
148
|
+
* @member {String} provider_channel_id
|
149
|
+
*/
|
150
|
+
|
151
|
+
ChannelObjectResponseData.prototype['provider_channel_id'] = undefined;
|
152
|
+
/**
|
153
|
+
* The client_id of your app in Pipedrive marketplace
|
154
|
+
* @member {String} marketplace_client_id
|
155
|
+
*/
|
156
|
+
|
157
|
+
ChannelObjectResponseData.prototype['marketplace_client_id'] = undefined;
|
158
|
+
/**
|
159
|
+
* The ID of the user's company in Pipedrive
|
160
|
+
* @member {Number} pd_company_id
|
161
|
+
*/
|
162
|
+
|
163
|
+
ChannelObjectResponseData.prototype['pd_company_id'] = undefined;
|
164
|
+
/**
|
165
|
+
* The ID of the user in Pipedrive
|
166
|
+
* @member {Number} pd_user_id
|
167
|
+
*/
|
168
|
+
|
169
|
+
ChannelObjectResponseData.prototype['pd_user_id'] = undefined;
|
170
|
+
/**
|
171
|
+
* The date and time when your channel was created in the API
|
172
|
+
* @member {Date} created_at
|
173
|
+
*/
|
174
|
+
|
175
|
+
ChannelObjectResponseData.prototype['created_at'] = undefined;
|
176
|
+
/**
|
177
|
+
* Value of the provider_type sent to this endpoint
|
178
|
+
* @member {module:model/ChannelObjectResponseData.ProviderTypeEnum} provider_type
|
179
|
+
*/
|
180
|
+
|
181
|
+
ChannelObjectResponseData.prototype['provider_type'] = undefined;
|
182
|
+
/**
|
183
|
+
* Value of the template_support sent to this endpoint
|
184
|
+
* @member {Boolean} template_support
|
185
|
+
*/
|
186
|
+
|
187
|
+
ChannelObjectResponseData.prototype['template_support'] = undefined;
|
188
|
+
/**
|
189
|
+
* Allowed values for the <code>provider_type</code> property.
|
190
|
+
* @enum {String}
|
191
|
+
* @readonly
|
192
|
+
*/
|
193
|
+
|
194
|
+
ChannelObjectResponseData['ProviderTypeEnum'] = {
|
195
|
+
/**
|
196
|
+
* value: "facebook"
|
197
|
+
* @const
|
198
|
+
*/
|
199
|
+
"facebook": "facebook",
|
200
|
+
|
201
|
+
/**
|
202
|
+
* value: "whatsapp"
|
203
|
+
* @const
|
204
|
+
*/
|
205
|
+
"whatsapp": "whatsapp",
|
206
|
+
|
207
|
+
/**
|
208
|
+
* value: "other"
|
209
|
+
* @const
|
210
|
+
*/
|
211
|
+
"other": "other"
|
212
|
+
};
|
213
|
+
var _default = ChannelObjectResponseData;
|
214
|
+
exports["default"] = _default;
|
@@ -0,0 +1,89 @@
|
|
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 DeleteChannelSuccess model module.
|
31
|
+
* @module model/DeleteChannelSuccess
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var DeleteChannelSuccess = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>DeleteChannelSuccess</code>.
|
37
|
+
* @alias module:model/DeleteChannelSuccess
|
38
|
+
*/
|
39
|
+
function DeleteChannelSuccess() {
|
40
|
+
(0, _classCallCheck2["default"])(this, DeleteChannelSuccess);
|
41
|
+
DeleteChannelSuccess.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"])(DeleteChannelSuccess, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>DeleteChannelSuccess</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/DeleteChannelSuccess} obj Optional instance to populate.
|
58
|
+
* @return {module:model/DeleteChannelSuccess} The populated <code>DeleteChannelSuccess</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new DeleteChannelSuccess();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('success')) {
|
68
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
69
|
+
delete data['success'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return DeleteChannelSuccess;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* @member {Boolean} success
|
84
|
+
*/
|
85
|
+
|
86
|
+
|
87
|
+
DeleteChannelSuccess.prototype['success'] = undefined;
|
88
|
+
var _default = DeleteChannelSuccess;
|
89
|
+
exports["default"] = _default;
|
@@ -0,0 +1,89 @@
|
|
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 DeleteConversationSuccess model module.
|
31
|
+
* @module model/DeleteConversationSuccess
|
32
|
+
* @version 1.0.0
|
33
|
+
*/
|
34
|
+
var DeleteConversationSuccess = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>DeleteConversationSuccess</code>.
|
37
|
+
* @alias module:model/DeleteConversationSuccess
|
38
|
+
*/
|
39
|
+
function DeleteConversationSuccess() {
|
40
|
+
(0, _classCallCheck2["default"])(this, DeleteConversationSuccess);
|
41
|
+
DeleteConversationSuccess.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"])(DeleteConversationSuccess, null, [{
|
51
|
+
key: "initialize",
|
52
|
+
value: function initialize(obj) {}
|
53
|
+
/**
|
54
|
+
* Constructs a <code>DeleteConversationSuccess</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/DeleteConversationSuccess} obj Optional instance to populate.
|
58
|
+
* @return {module:model/DeleteConversationSuccess} The populated <code>DeleteConversationSuccess</code> instance.
|
59
|
+
*/
|
60
|
+
|
61
|
+
}, {
|
62
|
+
key: "constructFromObject",
|
63
|
+
value: function constructFromObject(data, obj) {
|
64
|
+
if (data) {
|
65
|
+
obj = obj || new DeleteConversationSuccess();
|
66
|
+
|
67
|
+
if (data.hasOwnProperty('success')) {
|
68
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
69
|
+
delete data['success'];
|
70
|
+
}
|
71
|
+
|
72
|
+
if (Object.keys(data).length > 0) {
|
73
|
+
Object.assign(obj, data);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
return obj;
|
78
|
+
}
|
79
|
+
}]);
|
80
|
+
return DeleteConversationSuccess;
|
81
|
+
}();
|
82
|
+
/**
|
83
|
+
* @member {Boolean} success
|
84
|
+
*/
|
85
|
+
|
86
|
+
|
87
|
+
DeleteConversationSuccess.prototype['success'] = undefined;
|
88
|
+
var _default = DeleteConversationSuccess;
|
89
|
+
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 _InlineResponse400AdditionalData = _interopRequireDefault(require("./InlineResponse400AdditionalData"));
|
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 InlineResponse400 model module.
|
33
|
+
* @module model/InlineResponse400
|
34
|
+
* @version 1.0.0
|
35
|
+
*/
|
36
|
+
var InlineResponse400 = /*#__PURE__*/function () {
|
37
|
+
/**
|
38
|
+
* Constructs a new <code>InlineResponse400</code>.
|
39
|
+
* @alias module:model/InlineResponse400
|
40
|
+
*/
|
41
|
+
function InlineResponse400() {
|
42
|
+
(0, _classCallCheck2["default"])(this, InlineResponse400);
|
43
|
+
InlineResponse400.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"])(InlineResponse400, null, [{
|
53
|
+
key: "initialize",
|
54
|
+
value: function initialize(obj) {}
|
55
|
+
/**
|
56
|
+
* Constructs a <code>InlineResponse400</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/InlineResponse400} obj Optional instance to populate.
|
60
|
+
* @return {module:model/InlineResponse400} The populated <code>InlineResponse400</code> instance.
|
61
|
+
*/
|
62
|
+
|
63
|
+
}, {
|
64
|
+
key: "constructFromObject",
|
65
|
+
value: function constructFromObject(data, obj) {
|
66
|
+
if (data) {
|
67
|
+
obj = obj || new InlineResponse400();
|
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'] = _InlineResponse400AdditionalData["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 InlineResponse400;
|
98
|
+
}();
|
99
|
+
/**
|
100
|
+
* @member {Boolean} success
|
101
|
+
*/
|
102
|
+
|
103
|
+
|
104
|
+
InlineResponse400.prototype['success'] = undefined;
|
105
|
+
/**
|
106
|
+
* The error description
|
107
|
+
* @member {String} error
|
108
|
+
*/
|
109
|
+
|
110
|
+
InlineResponse400.prototype['error'] = undefined;
|
111
|
+
/**
|
112
|
+
* @member {String} error_info
|
113
|
+
*/
|
114
|
+
|
115
|
+
InlineResponse400.prototype['error_info'] = undefined;
|
116
|
+
/**
|
117
|
+
* @member {module:model/InlineResponse400AdditionalData} additional_data
|
118
|
+
*/
|
119
|
+
|
120
|
+
InlineResponse400.prototype['additional_data'] = undefined;
|
121
|
+
var _default = InlineResponse400;
|
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 _InlineResponse4001AdditionalData = _interopRequireDefault(require("./InlineResponse4001AdditionalData"));
|
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 InlineResponse4001 model module.
|
33
|
+
* @module model/InlineResponse4001
|
34
|
+
* @version 1.0.0
|
35
|
+
*/
|
36
|
+
var InlineResponse4001 = /*#__PURE__*/function () {
|
37
|
+
/**
|
38
|
+
* Constructs a new <code>InlineResponse4001</code>.
|
39
|
+
* @alias module:model/InlineResponse4001
|
40
|
+
*/
|
41
|
+
function InlineResponse4001() {
|
42
|
+
(0, _classCallCheck2["default"])(this, InlineResponse4001);
|
43
|
+
InlineResponse4001.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"])(InlineResponse4001, null, [{
|
53
|
+
key: "initialize",
|
54
|
+
value: function initialize(obj) {}
|
55
|
+
/**
|
56
|
+
* Constructs a <code>InlineResponse4001</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/InlineResponse4001} obj Optional instance to populate.
|
60
|
+
* @return {module:model/InlineResponse4001} The populated <code>InlineResponse4001</code> instance.
|
61
|
+
*/
|
62
|
+
|
63
|
+
}, {
|
64
|
+
key: "constructFromObject",
|
65
|
+
value: function constructFromObject(data, obj) {
|
66
|
+
if (data) {
|
67
|
+
obj = obj || new InlineResponse4001();
|
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'] = _InlineResponse4001AdditionalData["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 InlineResponse4001;
|
98
|
+
}();
|
99
|
+
/**
|
100
|
+
* @member {Boolean} success
|
101
|
+
*/
|
102
|
+
|
103
|
+
|
104
|
+
InlineResponse4001.prototype['success'] = undefined;
|
105
|
+
/**
|
106
|
+
* The error description
|
107
|
+
* @member {String} error
|
108
|
+
*/
|
109
|
+
|
110
|
+
InlineResponse4001.prototype['error'] = undefined;
|
111
|
+
/**
|
112
|
+
* @member {String} error_info
|
113
|
+
*/
|
114
|
+
|
115
|
+
InlineResponse4001.prototype['error_info'] = undefined;
|
116
|
+
/**
|
117
|
+
* @member {module:model/InlineResponse4001AdditionalData} additional_data
|
118
|
+
*/
|
119
|
+
|
120
|
+
InlineResponse4001.prototype['additional_data'] = undefined;
|
121
|
+
var _default = InlineResponse4001;
|
122
|
+
exports["default"] = _default;
|