pipedrive 22.3.1-rc.1 → 22.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1258 -414
- package/dist/api/DealsApi.js +8 -8
- package/dist/api/FiltersApi.js +1 -1
- package/dist/api/ItemSearchApi.js +2 -2
- package/dist/api/LeadsApi.js +1 -1
- package/dist/api/MailboxApi.js +2 -2
- package/dist/api/MeetingsApi.js +154 -0
- package/dist/api/OrganizationsApi.js +4 -4
- package/dist/api/PersonsApi.js +5 -5
- package/dist/api/ProductsApi.js +2 -2
- package/dist/api/RecentsApi.js +2 -2
- package/dist/api/UsersApi.js +2 -2
- package/dist/index.js +49 -0
- package/dist/model/CallLogObject.js +11 -1
- package/dist/model/GetDeal.js +3 -3
- package/dist/model/GetDealRelatedObjects.js +98 -0
- package/dist/model/GetDealsRelatedObjects.js +9 -9
- package/dist/model/PostDealParticipants.js +3 -3
- package/dist/model/PostDealParticipantsRelatedObjects.js +88 -0
- package/dist/model/ResponseCallLogObject.js +17 -2
- package/dist/model/UserProviderLinkCreateRequest.js +117 -0
- package/dist/model/UserProviderLinkErrorResponse.js +88 -0
- package/dist/model/UserProviderLinkSuccessResponse.js +88 -0
- package/dist/model/UserProviderLinkSuccessResponseData.js +78 -0
- package/package.json +2 -1
@@ -0,0 +1,98 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
10
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
11
|
+
var _RelatedOrganizationDataWithActiveFlag = _interopRequireDefault(require("./RelatedOrganizationDataWithActiveFlag"));
|
12
|
+
var _RelatedPersonDataWithActiveFlag = _interopRequireDefault(require("./RelatedPersonDataWithActiveFlag"));
|
13
|
+
var _RelatedUserData = _interopRequireDefault(require("./RelatedUserData"));
|
14
|
+
/**
|
15
|
+
* Pipedrive API v1
|
16
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
17
|
+
*
|
18
|
+
* The version of the OpenAPI document: 1.0.0
|
19
|
+
*
|
20
|
+
*
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
22
|
+
* https://openapi-generator.tech
|
23
|
+
* Do not edit the class manually.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
/**
|
27
|
+
* The GetDealRelatedObjects model module.
|
28
|
+
* @module model/GetDealRelatedObjects
|
29
|
+
* @version 1.0.0
|
30
|
+
*/
|
31
|
+
var GetDealRelatedObjects = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>GetDealRelatedObjects</code>.
|
34
|
+
* @alias module:model/GetDealRelatedObjects
|
35
|
+
*/
|
36
|
+
function GetDealRelatedObjects() {
|
37
|
+
(0, _classCallCheck2["default"])(this, GetDealRelatedObjects);
|
38
|
+
GetDealRelatedObjects.initialize(this);
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Initializes the fields of this object.
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
44
|
+
* Only for internal use.
|
45
|
+
*/
|
46
|
+
(0, _createClass2["default"])(GetDealRelatedObjects, null, [{
|
47
|
+
key: "initialize",
|
48
|
+
value: function initialize(obj) {}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Constructs a <code>GetDealRelatedObjects</code> from a plain JavaScript object, optionally creating a new instance.
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
54
|
+
* @param {module:model/GetDealRelatedObjects} obj Optional instance to populate.
|
55
|
+
* @return {module:model/GetDealRelatedObjects} The populated <code>GetDealRelatedObjects</code> instance.
|
56
|
+
*/
|
57
|
+
}, {
|
58
|
+
key: "constructFromObject",
|
59
|
+
value: function constructFromObject(data, obj) {
|
60
|
+
if (data) {
|
61
|
+
obj = obj || new GetDealRelatedObjects();
|
62
|
+
if (data.hasOwnProperty('user')) {
|
63
|
+
obj['user'] = _RelatedUserData["default"].constructFromObject(data['user']);
|
64
|
+
delete data['user'];
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('person')) {
|
67
|
+
obj['person'] = _RelatedPersonDataWithActiveFlag["default"].constructFromObject(data['person']);
|
68
|
+
delete data['person'];
|
69
|
+
}
|
70
|
+
if (data.hasOwnProperty('organization')) {
|
71
|
+
obj['organization'] = _RelatedOrganizationDataWithActiveFlag["default"].constructFromObject(data['organization']);
|
72
|
+
delete data['organization'];
|
73
|
+
}
|
74
|
+
if (Object.keys(data).length > 0) {
|
75
|
+
Object.assign(obj, data);
|
76
|
+
}
|
77
|
+
}
|
78
|
+
return obj;
|
79
|
+
}
|
80
|
+
}]);
|
81
|
+
return GetDealRelatedObjects;
|
82
|
+
}();
|
83
|
+
/**
|
84
|
+
* @member {module:model/RelatedUserData} user
|
85
|
+
*/
|
86
|
+
GetDealRelatedObjects.prototype['user'] = undefined;
|
87
|
+
|
88
|
+
/**
|
89
|
+
* @member {module:model/RelatedPersonDataWithActiveFlag} person
|
90
|
+
*/
|
91
|
+
GetDealRelatedObjects.prototype['person'] = undefined;
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @member {module:model/RelatedOrganizationDataWithActiveFlag} organization
|
95
|
+
*/
|
96
|
+
GetDealRelatedObjects.prototype['organization'] = undefined;
|
97
|
+
var _default = GetDealRelatedObjects;
|
98
|
+
exports["default"] = _default;
|
@@ -8,9 +8,9 @@ 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
|
12
|
-
var
|
13
|
-
var
|
11
|
+
var _RelatedOrganizationDataWithActiveFlag = _interopRequireDefault(require("./RelatedOrganizationDataWithActiveFlag"));
|
12
|
+
var _RelatedPersonDataWithActiveFlag = _interopRequireDefault(require("./RelatedPersonDataWithActiveFlag"));
|
13
|
+
var _RelatedUserData = _interopRequireDefault(require("./RelatedUserData"));
|
14
14
|
/**
|
15
15
|
* Pipedrive API v1
|
16
16
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
@@ -60,15 +60,15 @@ var GetDealsRelatedObjects = /*#__PURE__*/function () {
|
|
60
60
|
if (data) {
|
61
61
|
obj = obj || new GetDealsRelatedObjects();
|
62
62
|
if (data.hasOwnProperty('user')) {
|
63
|
-
obj['user'] =
|
63
|
+
obj['user'] = _RelatedUserData["default"].constructFromObject(data['user']);
|
64
64
|
delete data['user'];
|
65
65
|
}
|
66
66
|
if (data.hasOwnProperty('organization')) {
|
67
|
-
obj['organization'] =
|
67
|
+
obj['organization'] = _RelatedOrganizationDataWithActiveFlag["default"].constructFromObject(data['organization']);
|
68
68
|
delete data['organization'];
|
69
69
|
}
|
70
70
|
if (data.hasOwnProperty('person')) {
|
71
|
-
obj['person'] =
|
71
|
+
obj['person'] = _RelatedPersonDataWithActiveFlag["default"].constructFromObject(data['person']);
|
72
72
|
delete data['person'];
|
73
73
|
}
|
74
74
|
if (Object.keys(data).length > 0) {
|
@@ -81,17 +81,17 @@ var GetDealsRelatedObjects = /*#__PURE__*/function () {
|
|
81
81
|
return GetDealsRelatedObjects;
|
82
82
|
}();
|
83
83
|
/**
|
84
|
-
* @member {module:model/
|
84
|
+
* @member {module:model/RelatedUserData} user
|
85
85
|
*/
|
86
86
|
GetDealsRelatedObjects.prototype['user'] = undefined;
|
87
87
|
|
88
88
|
/**
|
89
|
-
* @member {module:model/
|
89
|
+
* @member {module:model/RelatedOrganizationDataWithActiveFlag} organization
|
90
90
|
*/
|
91
91
|
GetDealsRelatedObjects.prototype['organization'] = undefined;
|
92
92
|
|
93
93
|
/**
|
94
|
-
* @member {module:model/
|
94
|
+
* @member {module:model/RelatedPersonDataWithActiveFlag} person
|
95
95
|
*/
|
96
96
|
GetDealsRelatedObjects.prototype['person'] = undefined;
|
97
97
|
var _default = GetDealsRelatedObjects;
|
@@ -8,8 +8,8 @@ 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 _GetDealsRelatedObjects = _interopRequireDefault(require("./GetDealsRelatedObjects"));
|
12
11
|
var _PersonItem = _interopRequireDefault(require("./PersonItem"));
|
12
|
+
var _PostDealParticipantsRelatedObjects = _interopRequireDefault(require("./PostDealParticipantsRelatedObjects"));
|
13
13
|
/**
|
14
14
|
* Pipedrive API v1
|
15
15
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
@@ -67,7 +67,7 @@ var PostDealParticipants = /*#__PURE__*/function () {
|
|
67
67
|
delete data['data'];
|
68
68
|
}
|
69
69
|
if (data.hasOwnProperty('related_objects')) {
|
70
|
-
obj['related_objects'] =
|
70
|
+
obj['related_objects'] = _PostDealParticipantsRelatedObjects["default"].constructFromObject(data['related_objects']);
|
71
71
|
delete data['related_objects'];
|
72
72
|
}
|
73
73
|
if (Object.keys(data).length > 0) {
|
@@ -92,7 +92,7 @@ PostDealParticipants.prototype['success'] = undefined;
|
|
92
92
|
PostDealParticipants.prototype['data'] = undefined;
|
93
93
|
|
94
94
|
/**
|
95
|
-
* @member {module:model/
|
95
|
+
* @member {module:model/PostDealParticipantsRelatedObjects} related_objects
|
96
96
|
*/
|
97
97
|
PostDealParticipants.prototype['related_objects'] = undefined;
|
98
98
|
var _default = PostDealParticipants;
|
@@ -0,0 +1,88 @@
|
|
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 _RelatedPersonDataWithActiveFlag = _interopRequireDefault(require("./RelatedPersonDataWithActiveFlag"));
|
12
|
+
var _RelatedUserData = _interopRequireDefault(require("./RelatedUserData"));
|
13
|
+
/**
|
14
|
+
* Pipedrive API v1
|
15
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
16
|
+
*
|
17
|
+
* The version of the OpenAPI document: 1.0.0
|
18
|
+
*
|
19
|
+
*
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
21
|
+
* https://openapi-generator.tech
|
22
|
+
* Do not edit the class manually.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
/**
|
26
|
+
* The PostDealParticipantsRelatedObjects model module.
|
27
|
+
* @module model/PostDealParticipantsRelatedObjects
|
28
|
+
* @version 1.0.0
|
29
|
+
*/
|
30
|
+
var PostDealParticipantsRelatedObjects = /*#__PURE__*/function () {
|
31
|
+
/**
|
32
|
+
* Constructs a new <code>PostDealParticipantsRelatedObjects</code>.
|
33
|
+
* @alias module:model/PostDealParticipantsRelatedObjects
|
34
|
+
*/
|
35
|
+
function PostDealParticipantsRelatedObjects() {
|
36
|
+
(0, _classCallCheck2["default"])(this, PostDealParticipantsRelatedObjects);
|
37
|
+
PostDealParticipantsRelatedObjects.initialize(this);
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Initializes the fields of this object.
|
42
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
43
|
+
* Only for internal use.
|
44
|
+
*/
|
45
|
+
(0, _createClass2["default"])(PostDealParticipantsRelatedObjects, null, [{
|
46
|
+
key: "initialize",
|
47
|
+
value: function initialize(obj) {}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Constructs a <code>PostDealParticipantsRelatedObjects</code> from a plain JavaScript object, optionally creating a new instance.
|
51
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
52
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
53
|
+
* @param {module:model/PostDealParticipantsRelatedObjects} obj Optional instance to populate.
|
54
|
+
* @return {module:model/PostDealParticipantsRelatedObjects} The populated <code>PostDealParticipantsRelatedObjects</code> instance.
|
55
|
+
*/
|
56
|
+
}, {
|
57
|
+
key: "constructFromObject",
|
58
|
+
value: function constructFromObject(data, obj) {
|
59
|
+
if (data) {
|
60
|
+
obj = obj || new PostDealParticipantsRelatedObjects();
|
61
|
+
if (data.hasOwnProperty('user')) {
|
62
|
+
obj['user'] = _RelatedUserData["default"].constructFromObject(data['user']);
|
63
|
+
delete data['user'];
|
64
|
+
}
|
65
|
+
if (data.hasOwnProperty('person')) {
|
66
|
+
obj['person'] = _RelatedPersonDataWithActiveFlag["default"].constructFromObject(data['person']);
|
67
|
+
delete data['person'];
|
68
|
+
}
|
69
|
+
if (Object.keys(data).length > 0) {
|
70
|
+
Object.assign(obj, data);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
return obj;
|
74
|
+
}
|
75
|
+
}]);
|
76
|
+
return PostDealParticipantsRelatedObjects;
|
77
|
+
}();
|
78
|
+
/**
|
79
|
+
* @member {module:model/RelatedUserData} user
|
80
|
+
*/
|
81
|
+
PostDealParticipantsRelatedObjects.prototype['user'] = undefined;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @member {module:model/RelatedPersonDataWithActiveFlag} person
|
85
|
+
*/
|
86
|
+
PostDealParticipantsRelatedObjects.prototype['person'] = undefined;
|
87
|
+
var _default = PostDealParticipantsRelatedObjects;
|
88
|
+
exports["default"] = _default;
|
@@ -121,6 +121,10 @@ var ResponseCallLogObject = /*#__PURE__*/function () {
|
|
121
121
|
obj['deal_id'] = _ApiClient["default"].convertToType(data['deal_id'], 'Number');
|
122
122
|
delete data['deal_id'];
|
123
123
|
}
|
124
|
+
if (data.hasOwnProperty('lead_id')) {
|
125
|
+
obj['lead_id'] = _ApiClient["default"].convertToType(data['lead_id'], 'String');
|
126
|
+
delete data['lead_id'];
|
127
|
+
}
|
124
128
|
if (data.hasOwnProperty('note')) {
|
125
129
|
obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
|
126
130
|
delete data['note'];
|
@@ -213,11 +217,17 @@ ResponseCallLogObject.prototype['person_id'] = undefined;
|
|
213
217
|
ResponseCallLogObject.prototype['org_id'] = undefined;
|
214
218
|
|
215
219
|
/**
|
216
|
-
* The ID of the deal this call is associated with
|
220
|
+
* The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once.
|
217
221
|
* @member {Number} deal_id
|
218
222
|
*/
|
219
223
|
ResponseCallLogObject.prototype['deal_id'] = undefined;
|
220
224
|
|
225
|
+
/**
|
226
|
+
* The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once.
|
227
|
+
* @member {String} lead_id
|
228
|
+
*/
|
229
|
+
ResponseCallLogObject.prototype['lead_id'] = undefined;
|
230
|
+
|
221
231
|
/**
|
222
232
|
* The note for the call log in HTML format
|
223
233
|
* @member {String} note
|
@@ -299,10 +309,15 @@ _CallLogObject["default"].prototype['person_id'] = undefined;
|
|
299
309
|
*/
|
300
310
|
_CallLogObject["default"].prototype['org_id'] = undefined;
|
301
311
|
/**
|
302
|
-
* The ID of the deal this call is associated with
|
312
|
+
* The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once.
|
303
313
|
* @member {Number} deal_id
|
304
314
|
*/
|
305
315
|
_CallLogObject["default"].prototype['deal_id'] = undefined;
|
316
|
+
/**
|
317
|
+
* The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once.
|
318
|
+
* @member {String} lead_id
|
319
|
+
*/
|
320
|
+
_CallLogObject["default"].prototype['lead_id'] = undefined;
|
306
321
|
/**
|
307
322
|
* The note for the call log in HTML format
|
308
323
|
* @member {String} note
|
@@ -0,0 +1,117 @@
|
|
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 UserProviderLinkCreateRequest model module.
|
25
|
+
* @module model/UserProviderLinkCreateRequest
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var UserProviderLinkCreateRequest = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>UserProviderLinkCreateRequest</code>.
|
31
|
+
* @alias module:model/UserProviderLinkCreateRequest
|
32
|
+
* @param userProviderId {String} Unique identifier linking a user to the installed integration. Generated by the integration.
|
33
|
+
* @param userId {Number} Pipedrive user ID
|
34
|
+
* @param companyId {Number} Pipedrive company ID
|
35
|
+
* @param marketplaceClientId {String} Pipedrive Marketplace client ID of the installed integration
|
36
|
+
*/
|
37
|
+
function UserProviderLinkCreateRequest(userProviderId, userId, companyId, marketplaceClientId) {
|
38
|
+
(0, _classCallCheck2["default"])(this, UserProviderLinkCreateRequest);
|
39
|
+
UserProviderLinkCreateRequest.initialize(this, userProviderId, userId, companyId, marketplaceClientId);
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Initializes the fields of this object.
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
45
|
+
* Only for internal use.
|
46
|
+
*/
|
47
|
+
(0, _createClass2["default"])(UserProviderLinkCreateRequest, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj, userProviderId, userId, companyId, marketplaceClientId) {
|
50
|
+
obj['user_provider_id'] = userProviderId;
|
51
|
+
obj['user_id'] = userId;
|
52
|
+
obj['company_id'] = companyId;
|
53
|
+
obj['marketplace_client_id'] = marketplaceClientId;
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Constructs a <code>UserProviderLinkCreateRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
60
|
+
* @param {module:model/UserProviderLinkCreateRequest} obj Optional instance to populate.
|
61
|
+
* @return {module:model/UserProviderLinkCreateRequest} The populated <code>UserProviderLinkCreateRequest</code> instance.
|
62
|
+
*/
|
63
|
+
}, {
|
64
|
+
key: "constructFromObject",
|
65
|
+
value: function constructFromObject(data, obj) {
|
66
|
+
if (data) {
|
67
|
+
obj = obj || new UserProviderLinkCreateRequest();
|
68
|
+
if (data.hasOwnProperty('user_provider_id')) {
|
69
|
+
obj['user_provider_id'] = _ApiClient["default"].convertToType(data['user_provider_id'], 'String');
|
70
|
+
delete data['user_provider_id'];
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('user_id')) {
|
73
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
|
74
|
+
delete data['user_id'];
|
75
|
+
}
|
76
|
+
if (data.hasOwnProperty('company_id')) {
|
77
|
+
obj['company_id'] = _ApiClient["default"].convertToType(data['company_id'], 'Number');
|
78
|
+
delete data['company_id'];
|
79
|
+
}
|
80
|
+
if (data.hasOwnProperty('marketplace_client_id')) {
|
81
|
+
obj['marketplace_client_id'] = _ApiClient["default"].convertToType(data['marketplace_client_id'], 'String');
|
82
|
+
delete data['marketplace_client_id'];
|
83
|
+
}
|
84
|
+
if (Object.keys(data).length > 0) {
|
85
|
+
Object.assign(obj, data);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
return obj;
|
89
|
+
}
|
90
|
+
}]);
|
91
|
+
return UserProviderLinkCreateRequest;
|
92
|
+
}();
|
93
|
+
/**
|
94
|
+
* Unique identifier linking a user to the installed integration. Generated by the integration.
|
95
|
+
* @member {String} user_provider_id
|
96
|
+
*/
|
97
|
+
UserProviderLinkCreateRequest.prototype['user_provider_id'] = undefined;
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Pipedrive user ID
|
101
|
+
* @member {Number} user_id
|
102
|
+
*/
|
103
|
+
UserProviderLinkCreateRequest.prototype['user_id'] = undefined;
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Pipedrive company ID
|
107
|
+
* @member {Number} company_id
|
108
|
+
*/
|
109
|
+
UserProviderLinkCreateRequest.prototype['company_id'] = undefined;
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Pipedrive Marketplace client ID of the installed integration
|
113
|
+
* @member {String} marketplace_client_id
|
114
|
+
*/
|
115
|
+
UserProviderLinkCreateRequest.prototype['marketplace_client_id'] = undefined;
|
116
|
+
var _default = UserProviderLinkCreateRequest;
|
117
|
+
exports["default"] = _default;
|
@@ -0,0 +1,88 @@
|
|
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 UserProviderLinkErrorResponse model module.
|
25
|
+
* @module model/UserProviderLinkErrorResponse
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var UserProviderLinkErrorResponse = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>UserProviderLinkErrorResponse</code>.
|
31
|
+
* @alias module:model/UserProviderLinkErrorResponse
|
32
|
+
*/
|
33
|
+
function UserProviderLinkErrorResponse() {
|
34
|
+
(0, _classCallCheck2["default"])(this, UserProviderLinkErrorResponse);
|
35
|
+
UserProviderLinkErrorResponse.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"])(UserProviderLinkErrorResponse, null, [{
|
44
|
+
key: "initialize",
|
45
|
+
value: function initialize(obj) {}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>UserProviderLinkErrorResponse</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/UserProviderLinkErrorResponse} obj Optional instance to populate.
|
52
|
+
* @return {module:model/UserProviderLinkErrorResponse} The populated <code>UserProviderLinkErrorResponse</code> instance.
|
53
|
+
*/
|
54
|
+
}, {
|
55
|
+
key: "constructFromObject",
|
56
|
+
value: function constructFromObject(data, obj) {
|
57
|
+
if (data) {
|
58
|
+
obj = obj || new UserProviderLinkErrorResponse();
|
59
|
+
if (data.hasOwnProperty('success')) {
|
60
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
61
|
+
delete data['success'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('message')) {
|
64
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
65
|
+
delete data['message'];
|
66
|
+
}
|
67
|
+
if (Object.keys(data).length > 0) {
|
68
|
+
Object.assign(obj, data);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
return obj;
|
72
|
+
}
|
73
|
+
}]);
|
74
|
+
return UserProviderLinkErrorResponse;
|
75
|
+
}();
|
76
|
+
/**
|
77
|
+
* Boolean that indicates whether the request was successful or not
|
78
|
+
* @member {Boolean} success
|
79
|
+
*/
|
80
|
+
UserProviderLinkErrorResponse.prototype['success'] = undefined;
|
81
|
+
|
82
|
+
/**
|
83
|
+
* The error message of the request
|
84
|
+
* @member {String} message
|
85
|
+
*/
|
86
|
+
UserProviderLinkErrorResponse.prototype['message'] = undefined;
|
87
|
+
var _default = UserProviderLinkErrorResponse;
|
88
|
+
exports["default"] = _default;
|
@@ -0,0 +1,88 @@
|
|
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 _UserProviderLinkSuccessResponseData = _interopRequireDefault(require("./UserProviderLinkSuccessResponseData"));
|
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 UserProviderLinkSuccessResponse model module.
|
26
|
+
* @module model/UserProviderLinkSuccessResponse
|
27
|
+
* @version 1.0.0
|
28
|
+
*/
|
29
|
+
var UserProviderLinkSuccessResponse = /*#__PURE__*/function () {
|
30
|
+
/**
|
31
|
+
* Constructs a new <code>UserProviderLinkSuccessResponse</code>.
|
32
|
+
* @alias module:model/UserProviderLinkSuccessResponse
|
33
|
+
*/
|
34
|
+
function UserProviderLinkSuccessResponse() {
|
35
|
+
(0, _classCallCheck2["default"])(this, UserProviderLinkSuccessResponse);
|
36
|
+
UserProviderLinkSuccessResponse.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"])(UserProviderLinkSuccessResponse, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>UserProviderLinkSuccessResponse</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/UserProviderLinkSuccessResponse} obj Optional instance to populate.
|
53
|
+
* @return {module:model/UserProviderLinkSuccessResponse} The populated <code>UserProviderLinkSuccessResponse</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new UserProviderLinkSuccessResponse();
|
60
|
+
if (data.hasOwnProperty('success')) {
|
61
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
|
62
|
+
delete data['success'];
|
63
|
+
}
|
64
|
+
if (data.hasOwnProperty('data')) {
|
65
|
+
obj['data'] = _UserProviderLinkSuccessResponseData["default"].constructFromObject(data['data']);
|
66
|
+
delete data['data'];
|
67
|
+
}
|
68
|
+
if (Object.keys(data).length > 0) {
|
69
|
+
Object.assign(obj, data);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
return obj;
|
73
|
+
}
|
74
|
+
}]);
|
75
|
+
return UserProviderLinkSuccessResponse;
|
76
|
+
}();
|
77
|
+
/**
|
78
|
+
* Boolean that indicates whether the request was successful or not
|
79
|
+
* @member {Boolean} success
|
80
|
+
*/
|
81
|
+
UserProviderLinkSuccessResponse.prototype['success'] = undefined;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @member {module:model/UserProviderLinkSuccessResponseData} data
|
85
|
+
*/
|
86
|
+
UserProviderLinkSuccessResponse.prototype['data'] = undefined;
|
87
|
+
var _default = UserProviderLinkSuccessResponse;
|
88
|
+
exports["default"] = _default;
|