pipedrive 22.3.1-rc.2 → 22.3.1-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -4
- package/api/activities-api.ts +1 -24
- package/api/activity-fields-api.ts +1 -24
- package/api/activity-types-api.ts +1 -21
- package/api/billing-api.ts +1 -24
- package/api/call-logs-api.ts +1 -24
- package/api/channels-api.ts +1 -24
- package/api/currencies-api.ts +1 -24
- package/api/deal-fields-api.ts +1 -24
- package/api/deals-api.ts +1 -24
- package/api/files-api.ts +1 -24
- package/api/filters-api.ts +1 -24
- package/api/goals-api.ts +1 -24
- package/api/item-search-api.ts +1 -24
- package/api/lead-labels-api.ts +1 -21
- package/api/lead-sources-api.ts +1 -24
- package/api/leads-api.ts +1 -24
- package/api/legacy-teams-api.ts +1 -24
- package/api/mailbox-api.ts +1 -24
- package/api/note-fields-api.ts +1 -24
- package/api/notes-api.ts +1 -21
- package/api/organization-fields-api.ts +1 -24
- package/api/organization-relationships-api.ts +1 -24
- package/api/organizations-api.ts +1 -24
- package/api/permission-sets-api.ts +1 -24
- package/api/person-fields-api.ts +1 -21
- package/api/persons-api.ts +1 -24
- package/api/pipelines-api.ts +1 -24
- package/api/product-fields-api.ts +1 -24
- package/api/products-api.ts +1 -24
- package/api/project-templates-api.ts +1 -24
- package/api/projects-api.ts +1 -24
- package/api/recents-api.ts +1 -24
- package/api/roles-api.ts +1 -24
- package/api/stages-api.ts +1 -24
- package/api/subscriptions-api.ts +1 -24
- package/api/tasks-api.ts +1 -24
- package/api/user-connections-api.ts +1 -24
- package/api/user-settings-api.ts +1 -24
- package/api/users-api.ts +1 -24
- package/api/webhooks-api.ts +1 -21
- package/base.ts +23 -0
- package/common.ts +0 -1
- package/configuration.ts +3 -1
- package/dist/api/activities-api.js +7 -30
- package/dist/api/activity-fields-api.js +1 -24
- package/dist/api/activity-types-api.js +0 -20
- package/dist/api/billing-api.js +1 -24
- package/dist/api/call-logs-api.js +5 -28
- package/dist/api/channels-api.js +4 -27
- package/dist/api/currencies-api.js +1 -24
- package/dist/api/deal-fields-api.js +6 -29
- package/dist/api/deals-api.js +28 -51
- package/dist/api/files-api.js +11 -34
- package/dist/api/filters-api.js +7 -30
- package/dist/api/goals-api.js +5 -28
- package/dist/api/item-search-api.js +2 -25
- package/dist/api/lead-labels-api.js +0 -20
- package/dist/api/lead-sources-api.js +1 -24
- package/dist/api/leads-api.js +7 -30
- package/dist/api/legacy-teams-api.js +8 -31
- package/dist/api/mailbox-api.js +7 -30
- package/dist/api/note-fields-api.js +1 -24
- package/dist/api/notes-api.js +0 -20
- package/dist/api/organization-fields-api.js +6 -29
- package/dist/api/organization-relationships-api.js +5 -28
- package/dist/api/organizations-api.js +19 -42
- package/dist/api/permission-sets-api.js +3 -26
- package/dist/api/person-fields-api.js +0 -20
- package/dist/api/persons-api.js +21 -44
- package/dist/api/pipelines-api.js +8 -31
- package/dist/api/product-fields-api.js +6 -29
- package/dist/api/products-api.js +12 -35
- package/dist/api/project-templates-api.js +4 -27
- package/dist/api/projects-api.js +14 -37
- package/dist/api/recents-api.js +1 -24
- package/dist/api/roles-api.js +12 -35
- package/dist/api/stages-api.js +7 -30
- package/dist/api/subscriptions-api.js +9 -32
- package/dist/api/tasks-api.js +5 -28
- package/dist/api/user-connections-api.js +1 -24
- package/dist/api/user-settings-api.js +1 -24
- package/dist/api/users-api.js +10 -33
- package/dist/api/webhooks-api.js +0 -20
- package/dist/base.js +20 -0
- package/dist/common.d.ts +0 -1
- package/dist/common.js +1 -2
- package/dist/configuration.d.ts +1 -0
- package/dist/configuration.js +1 -1
- package/dist/esm/api/activities-api.js +0 -23
- package/dist/esm/api/activity-fields-api.js +0 -23
- package/dist/esm/api/activity-types-api.js +0 -20
- package/dist/esm/api/billing-api.js +0 -23
- package/dist/esm/api/call-logs-api.js +0 -23
- package/dist/esm/api/channels-api.js +0 -23
- package/dist/esm/api/currencies-api.js +0 -23
- package/dist/esm/api/deal-fields-api.js +0 -23
- package/dist/esm/api/deals-api.js +0 -23
- package/dist/esm/api/files-api.js +0 -23
- package/dist/esm/api/filters-api.js +0 -23
- package/dist/esm/api/goals-api.js +0 -23
- package/dist/esm/api/item-search-api.js +0 -23
- package/dist/esm/api/lead-labels-api.js +0 -20
- package/dist/esm/api/lead-sources-api.js +0 -23
- package/dist/esm/api/leads-api.js +0 -23
- package/dist/esm/api/legacy-teams-api.js +0 -23
- package/dist/esm/api/mailbox-api.js +0 -23
- package/dist/esm/api/note-fields-api.js +0 -23
- package/dist/esm/api/notes-api.js +0 -20
- package/dist/esm/api/organization-fields-api.js +0 -23
- package/dist/esm/api/organization-relationships-api.js +0 -23
- package/dist/esm/api/organizations-api.js +0 -23
- package/dist/esm/api/permission-sets-api.js +0 -23
- package/dist/esm/api/person-fields-api.js +0 -20
- package/dist/esm/api/persons-api.js +0 -23
- package/dist/esm/api/pipelines-api.js +0 -23
- package/dist/esm/api/product-fields-api.js +0 -23
- package/dist/esm/api/products-api.js +0 -23
- package/dist/esm/api/project-templates-api.js +0 -23
- package/dist/esm/api/projects-api.js +0 -23
- package/dist/esm/api/recents-api.js +0 -23
- package/dist/esm/api/roles-api.js +0 -23
- package/dist/esm/api/stages-api.js +0 -23
- package/dist/esm/api/subscriptions-api.js +0 -23
- package/dist/esm/api/tasks-api.js +0 -23
- package/dist/esm/api/user-connections-api.js +0 -23
- package/dist/esm/api/user-settings-api.js +0 -23
- package/dist/esm/api/users-api.js +0 -23
- package/dist/esm/api/webhooks-api.js +0 -20
- package/dist/esm/base.js +20 -0
- package/dist/esm/common.d.ts +0 -1
- package/dist/esm/common.js +0 -1
- package/dist/esm/configuration.d.ts +1 -0
- package/dist/esm/configuration.js +1 -1
- package/docs/CallLogObject.md +2 -1
- package/docs/DealsApi.md +14 -8
- package/docs/FiltersApi.md +4 -1
- package/docs/GetDeal.md +1 -1
- package/docs/GetDealRelatedObjects.md +11 -0
- package/docs/GetDealsRelatedObjects.md +3 -3
- package/docs/ItemSearchApi.md +2 -2
- package/docs/LeadsApi.md +4 -1
- package/docs/MailboxApi.md +2 -2
- package/docs/MeetingsApi.md +118 -0
- package/docs/OrganizationsApi.md +10 -4
- package/docs/PersonsApi.md +14 -5
- package/docs/PostDealParticipants.md +1 -1
- package/docs/PostDealParticipantsRelatedObjects.md +10 -0
- package/docs/ProductsApi.md +2 -2
- package/docs/RecentsApi.md +2 -2
- package/docs/ResponseCallLogObject.md +2 -1
- package/docs/UserProviderLinkCreateRequest.md +12 -0
- package/docs/UserProviderLinkErrorResponse.md +10 -0
- package/docs/UserProviderLinkSuccessResponse.md +10 -0
- package/docs/UserProviderLinkSuccessResponseData.md +9 -0
- package/docs/UsersApi.md +2 -2
- package/package.json +3 -3
- package/src/api/MeetingsApi.js +181 -0
- package/src/model/GetDealRelatedObjects.js +101 -0
- package/src/model/PostDealParticipantsRelatedObjects.js +90 -0
- package/src/model/UserProviderLinkCreateRequest.js +120 -0
- package/src/model/UserProviderLinkErrorResponse.js +90 -0
- package/src/model/UserProviderLinkSuccessResponse.js +90 -0
- package/src/model/UserProviderLinkSuccessResponseData.js +79 -0
- package/test/functional/access-token.test.js +5 -5
- package/test/functional/authorisation.test.js +5 -8
@@ -0,0 +1,181 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
|
15
|
+
import ApiClient from "../ApiClient";
|
16
|
+
import UserProviderLinkCreateRequest from '../model/UserProviderLinkCreateRequest';
|
17
|
+
import UserProviderLinkErrorResponse from '../model/UserProviderLinkErrorResponse';
|
18
|
+
import UserProviderLinkSuccessResponse from '../model/UserProviderLinkSuccessResponse';
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Meetings service.
|
22
|
+
* @module api/MeetingsApi
|
23
|
+
* @version 1.0.0
|
24
|
+
*/
|
25
|
+
export default class MeetingsApi {
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Constructs a new MeetingsApi.
|
29
|
+
* @alias module:api/MeetingsApi
|
30
|
+
* @class
|
31
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
32
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
33
|
+
*/
|
34
|
+
constructor(apiClient) {
|
35
|
+
this.apiClient = apiClient;
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Delete the link between a user and the installed video call integration
|
42
|
+
* A video calling provider must call this endpoint to remove the link between a user and the installed video calling app.
|
43
|
+
* @param {String} id Unique identifier linking a user to the installed integration
|
44
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserProviderLinkSuccessResponse} and HTTP response
|
45
|
+
*/
|
46
|
+
deleteUserProviderLinkWithHttpInfo(id) {
|
47
|
+
const opts = {}
|
48
|
+
let postBody = null;
|
49
|
+
|
50
|
+
// verify the required parameter 'id' is set
|
51
|
+
if (id === undefined || id === null) {
|
52
|
+
throw new Error("Missing the required parameter 'id' when calling deleteUserProviderLink");
|
53
|
+
}
|
54
|
+
|
55
|
+
let pathParams = {
|
56
|
+
'id': id,
|
57
|
+
};
|
58
|
+
let queryParams = {
|
59
|
+
};
|
60
|
+
let headerParams = {
|
61
|
+
};
|
62
|
+
let formParams = {
|
63
|
+
};
|
64
|
+
|
65
|
+
let formParamArray = [
|
66
|
+
];
|
67
|
+
|
68
|
+
let contentTypes = [];
|
69
|
+
const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
70
|
+
const isJSON = contentTypes.includes('application/json');
|
71
|
+
|
72
|
+
if (isJSON) {
|
73
|
+
postBody = { ...postBody, ...opts };
|
74
|
+
} else if (isURLEncoded) {
|
75
|
+
for (let key in opts) {
|
76
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
77
|
+
formParams[key] = opts[key];
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
let authNames = ['api_key', 'oauth2', ];
|
83
|
+
let accepts = ['application/json', ];
|
84
|
+
let returnType = UserProviderLinkSuccessResponse;
|
85
|
+
return this.apiClient.callApi(
|
86
|
+
'/meetings/userProviderLinks/{id}', 'DELETE',
|
87
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
88
|
+
authNames, contentTypes, accepts, returnType, null
|
89
|
+
);
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Delete the link between a user and the installed video call integration
|
94
|
+
* A video calling provider must call this endpoint to remove the link between a user and the installed video calling app.
|
95
|
+
* @param {String} id Unique identifier linking a user to the installed integration
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserProviderLinkSuccessResponse}
|
97
|
+
*/
|
98
|
+
deleteUserProviderLink(id) {
|
99
|
+
return this.deleteUserProviderLinkWithHttpInfo(id)
|
100
|
+
.then(function(response_and_data) {
|
101
|
+
return response_and_data;
|
102
|
+
});
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Link a user with the installed video call integration
|
108
|
+
* A video calling provider must call this endpoint after a user has installed the video calling app so that the new user's information is sent.
|
109
|
+
* @param {Object} opts Optional parameters
|
110
|
+
* @param {module:model/UserProviderLinkCreateRequest} opts.userProviderLinkCreateRequest
|
111
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserProviderLinkSuccessResponse} and HTTP response
|
112
|
+
*/
|
113
|
+
saveUserProviderLinkWithHttpInfo(opts) {
|
114
|
+
opts = opts || {};
|
115
|
+
let postBody = opts['userProviderLinkCreateRequest'];
|
116
|
+
|
117
|
+
if (opts['user_provider_id'] === undefined || opts['user_provider_id'] === null) {
|
118
|
+
throw new Error("Missing the required parameter 'user_provider_id' when calling saveUserProviderLink");
|
119
|
+
}
|
120
|
+
if (opts['user_id'] === undefined || opts['user_id'] === null) {
|
121
|
+
throw new Error("Missing the required parameter 'user_id' when calling saveUserProviderLink");
|
122
|
+
}
|
123
|
+
if (opts['company_id'] === undefined || opts['company_id'] === null) {
|
124
|
+
throw new Error("Missing the required parameter 'company_id' when calling saveUserProviderLink");
|
125
|
+
}
|
126
|
+
if (opts['marketplace_client_id'] === undefined || opts['marketplace_client_id'] === null) {
|
127
|
+
throw new Error("Missing the required parameter 'marketplace_client_id' when calling saveUserProviderLink");
|
128
|
+
}
|
129
|
+
|
130
|
+
let pathParams = {
|
131
|
+
};
|
132
|
+
let queryParams = {
|
133
|
+
};
|
134
|
+
let headerParams = {
|
135
|
+
};
|
136
|
+
let formParams = {
|
137
|
+
};
|
138
|
+
|
139
|
+
let formParamArray = [
|
140
|
+
];
|
141
|
+
|
142
|
+
let contentTypes = ['application/json', ];
|
143
|
+
const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
144
|
+
const isJSON = contentTypes.includes('application/json');
|
145
|
+
|
146
|
+
if (isJSON) {
|
147
|
+
postBody = { ...postBody, ...opts };
|
148
|
+
} else if (isURLEncoded) {
|
149
|
+
for (let key in opts) {
|
150
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
151
|
+
formParams[key] = opts[key];
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
let authNames = ['api_key', 'oauth2', ];
|
157
|
+
let accepts = ['application/json', ];
|
158
|
+
let returnType = UserProviderLinkSuccessResponse;
|
159
|
+
return this.apiClient.callApi(
|
160
|
+
'/meetings/userProviderLinks', 'POST',
|
161
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
162
|
+
authNames, contentTypes, accepts, returnType, null
|
163
|
+
);
|
164
|
+
}
|
165
|
+
|
166
|
+
/**
|
167
|
+
* Link a user with the installed video call integration
|
168
|
+
* A video calling provider must call this endpoint after a user has installed the video calling app so that the new user's information is sent.
|
169
|
+
* @param {Object} opts Optional parameters
|
170
|
+
* @param {module:model/UserProviderLinkCreateRequest} opts.userProviderLinkCreateRequest
|
171
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserProviderLinkSuccessResponse}
|
172
|
+
*/
|
173
|
+
saveUserProviderLink(opts) {
|
174
|
+
return this.saveUserProviderLinkWithHttpInfo(opts)
|
175
|
+
.then(function(response_and_data) {
|
176
|
+
return response_and_data;
|
177
|
+
});
|
178
|
+
}
|
179
|
+
|
180
|
+
|
181
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
import ApiClient from '../ApiClient';
|
15
|
+
import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag';
|
16
|
+
import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag';
|
17
|
+
import RelatedUserData from './RelatedUserData';
|
18
|
+
|
19
|
+
/**
|
20
|
+
* The GetDealRelatedObjects model module.
|
21
|
+
* @module model/GetDealRelatedObjects
|
22
|
+
* @version 1.0.0
|
23
|
+
*/
|
24
|
+
class GetDealRelatedObjects {
|
25
|
+
/**
|
26
|
+
* Constructs a new <code>GetDealRelatedObjects</code>.
|
27
|
+
* @alias module:model/GetDealRelatedObjects
|
28
|
+
*/
|
29
|
+
constructor() {
|
30
|
+
|
31
|
+
GetDealRelatedObjects.initialize(this);
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Initializes the fields of this object.
|
36
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
37
|
+
* Only for internal use.
|
38
|
+
*/
|
39
|
+
static initialize(obj) {
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Constructs a <code>GetDealRelatedObjects</code> from a plain JavaScript object, optionally creating a new instance.
|
44
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
45
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
46
|
+
* @param {module:model/GetDealRelatedObjects} obj Optional instance to populate.
|
47
|
+
* @return {module:model/GetDealRelatedObjects} The populated <code>GetDealRelatedObjects</code> instance.
|
48
|
+
*/
|
49
|
+
static constructFromObject(data, obj) {
|
50
|
+
if (data) {
|
51
|
+
obj = obj || new GetDealRelatedObjects();
|
52
|
+
|
53
|
+
if (data.hasOwnProperty('user')) {
|
54
|
+
obj['user'] = RelatedUserData.constructFromObject(data['user']);
|
55
|
+
|
56
|
+
delete data['user'];
|
57
|
+
}
|
58
|
+
if (data.hasOwnProperty('person')) {
|
59
|
+
obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']);
|
60
|
+
|
61
|
+
delete data['person'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('organization')) {
|
64
|
+
obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']);
|
65
|
+
|
66
|
+
delete data['organization'];
|
67
|
+
}
|
68
|
+
|
69
|
+
if (Object.keys(data).length > 0) {
|
70
|
+
Object.assign(obj, data);
|
71
|
+
}
|
72
|
+
|
73
|
+
}
|
74
|
+
return obj;
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* @member {module:model/RelatedUserData} user
|
82
|
+
*/
|
83
|
+
GetDealRelatedObjects.prototype['user'] = undefined;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* @member {module:model/RelatedPersonDataWithActiveFlag} person
|
87
|
+
*/
|
88
|
+
GetDealRelatedObjects.prototype['person'] = undefined;
|
89
|
+
|
90
|
+
/**
|
91
|
+
* @member {module:model/RelatedOrganizationDataWithActiveFlag} organization
|
92
|
+
*/
|
93
|
+
GetDealRelatedObjects.prototype['organization'] = undefined;
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
export default GetDealRelatedObjects;
|
101
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
import ApiClient from '../ApiClient';
|
15
|
+
import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag';
|
16
|
+
import RelatedUserData from './RelatedUserData';
|
17
|
+
|
18
|
+
/**
|
19
|
+
* The PostDealParticipantsRelatedObjects model module.
|
20
|
+
* @module model/PostDealParticipantsRelatedObjects
|
21
|
+
* @version 1.0.0
|
22
|
+
*/
|
23
|
+
class PostDealParticipantsRelatedObjects {
|
24
|
+
/**
|
25
|
+
* Constructs a new <code>PostDealParticipantsRelatedObjects</code>.
|
26
|
+
* @alias module:model/PostDealParticipantsRelatedObjects
|
27
|
+
*/
|
28
|
+
constructor() {
|
29
|
+
|
30
|
+
PostDealParticipantsRelatedObjects.initialize(this);
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Initializes the fields of this object.
|
35
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
36
|
+
* Only for internal use.
|
37
|
+
*/
|
38
|
+
static initialize(obj) {
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Constructs a <code>PostDealParticipantsRelatedObjects</code> from a plain JavaScript object, optionally creating a new instance.
|
43
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
44
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
45
|
+
* @param {module:model/PostDealParticipantsRelatedObjects} obj Optional instance to populate.
|
46
|
+
* @return {module:model/PostDealParticipantsRelatedObjects} The populated <code>PostDealParticipantsRelatedObjects</code> instance.
|
47
|
+
*/
|
48
|
+
static constructFromObject(data, obj) {
|
49
|
+
if (data) {
|
50
|
+
obj = obj || new PostDealParticipantsRelatedObjects();
|
51
|
+
|
52
|
+
if (data.hasOwnProperty('user')) {
|
53
|
+
obj['user'] = RelatedUserData.constructFromObject(data['user']);
|
54
|
+
|
55
|
+
delete data['user'];
|
56
|
+
}
|
57
|
+
if (data.hasOwnProperty('person')) {
|
58
|
+
obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']);
|
59
|
+
|
60
|
+
delete data['person'];
|
61
|
+
}
|
62
|
+
|
63
|
+
if (Object.keys(data).length > 0) {
|
64
|
+
Object.assign(obj, data);
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
68
|
+
return obj;
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* @member {module:model/RelatedUserData} user
|
76
|
+
*/
|
77
|
+
PostDealParticipantsRelatedObjects.prototype['user'] = undefined;
|
78
|
+
|
79
|
+
/**
|
80
|
+
* @member {module:model/RelatedPersonDataWithActiveFlag} person
|
81
|
+
*/
|
82
|
+
PostDealParticipantsRelatedObjects.prototype['person'] = undefined;
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
export default PostDealParticipantsRelatedObjects;
|
90
|
+
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
import ApiClient from '../ApiClient';
|
15
|
+
|
16
|
+
/**
|
17
|
+
* The UserProviderLinkCreateRequest model module.
|
18
|
+
* @module model/UserProviderLinkCreateRequest
|
19
|
+
* @version 1.0.0
|
20
|
+
*/
|
21
|
+
class UserProviderLinkCreateRequest {
|
22
|
+
/**
|
23
|
+
* Constructs a new <code>UserProviderLinkCreateRequest</code>.
|
24
|
+
* @alias module:model/UserProviderLinkCreateRequest
|
25
|
+
* @param userProviderId {String} Unique identifier linking a user to the installed integration. Generated by the integration.
|
26
|
+
* @param userId {Number} Pipedrive user ID
|
27
|
+
* @param companyId {Number} Pipedrive company ID
|
28
|
+
* @param marketplaceClientId {String} Pipedrive Marketplace client ID of the installed integration
|
29
|
+
*/
|
30
|
+
constructor(userProviderId, userId, companyId, marketplaceClientId) {
|
31
|
+
|
32
|
+
UserProviderLinkCreateRequest.initialize(this, userProviderId, userId, companyId, marketplaceClientId);
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Initializes the fields of this object.
|
37
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
38
|
+
* Only for internal use.
|
39
|
+
*/
|
40
|
+
static initialize(obj, userProviderId, userId, companyId, marketplaceClientId) {
|
41
|
+
obj['user_provider_id'] = userProviderId;
|
42
|
+
obj['user_id'] = userId;
|
43
|
+
obj['company_id'] = companyId;
|
44
|
+
obj['marketplace_client_id'] = marketplaceClientId;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>UserProviderLinkCreateRequest</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/UserProviderLinkCreateRequest} obj Optional instance to populate.
|
52
|
+
* @return {module:model/UserProviderLinkCreateRequest} The populated <code>UserProviderLinkCreateRequest</code> instance.
|
53
|
+
*/
|
54
|
+
static constructFromObject(data, obj) {
|
55
|
+
if (data) {
|
56
|
+
obj = obj || new UserProviderLinkCreateRequest();
|
57
|
+
|
58
|
+
if (data.hasOwnProperty('user_provider_id')) {
|
59
|
+
obj['user_provider_id'] = ApiClient.convertToType(data['user_provider_id'], 'String');
|
60
|
+
|
61
|
+
delete data['user_provider_id'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('user_id')) {
|
64
|
+
obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
|
65
|
+
|
66
|
+
delete data['user_id'];
|
67
|
+
}
|
68
|
+
if (data.hasOwnProperty('company_id')) {
|
69
|
+
obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number');
|
70
|
+
|
71
|
+
delete data['company_id'];
|
72
|
+
}
|
73
|
+
if (data.hasOwnProperty('marketplace_client_id')) {
|
74
|
+
obj['marketplace_client_id'] = ApiClient.convertToType(data['marketplace_client_id'], 'String');
|
75
|
+
|
76
|
+
delete data['marketplace_client_id'];
|
77
|
+
}
|
78
|
+
|
79
|
+
if (Object.keys(data).length > 0) {
|
80
|
+
Object.assign(obj, data);
|
81
|
+
}
|
82
|
+
|
83
|
+
}
|
84
|
+
return obj;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Unique identifier linking a user to the installed integration. Generated by the integration.
|
92
|
+
* @member {String} user_provider_id
|
93
|
+
*/
|
94
|
+
UserProviderLinkCreateRequest.prototype['user_provider_id'] = undefined;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Pipedrive user ID
|
98
|
+
* @member {Number} user_id
|
99
|
+
*/
|
100
|
+
UserProviderLinkCreateRequest.prototype['user_id'] = undefined;
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Pipedrive company ID
|
104
|
+
* @member {Number} company_id
|
105
|
+
*/
|
106
|
+
UserProviderLinkCreateRequest.prototype['company_id'] = undefined;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Pipedrive Marketplace client ID of the installed integration
|
110
|
+
* @member {String} marketplace_client_id
|
111
|
+
*/
|
112
|
+
UserProviderLinkCreateRequest.prototype['marketplace_client_id'] = undefined;
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
export default UserProviderLinkCreateRequest;
|
120
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
import ApiClient from '../ApiClient';
|
15
|
+
|
16
|
+
/**
|
17
|
+
* The UserProviderLinkErrorResponse model module.
|
18
|
+
* @module model/UserProviderLinkErrorResponse
|
19
|
+
* @version 1.0.0
|
20
|
+
*/
|
21
|
+
class UserProviderLinkErrorResponse {
|
22
|
+
/**
|
23
|
+
* Constructs a new <code>UserProviderLinkErrorResponse</code>.
|
24
|
+
* @alias module:model/UserProviderLinkErrorResponse
|
25
|
+
*/
|
26
|
+
constructor() {
|
27
|
+
|
28
|
+
UserProviderLinkErrorResponse.initialize(this);
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initializes the fields of this object.
|
33
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
34
|
+
* Only for internal use.
|
35
|
+
*/
|
36
|
+
static initialize(obj) {
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Constructs a <code>UserProviderLinkErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
41
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
42
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
43
|
+
* @param {module:model/UserProviderLinkErrorResponse} obj Optional instance to populate.
|
44
|
+
* @return {module:model/UserProviderLinkErrorResponse} The populated <code>UserProviderLinkErrorResponse</code> instance.
|
45
|
+
*/
|
46
|
+
static constructFromObject(data, obj) {
|
47
|
+
if (data) {
|
48
|
+
obj = obj || new UserProviderLinkErrorResponse();
|
49
|
+
|
50
|
+
if (data.hasOwnProperty('success')) {
|
51
|
+
obj['success'] = ApiClient.convertToType(data['success'], 'Boolean');
|
52
|
+
|
53
|
+
delete data['success'];
|
54
|
+
}
|
55
|
+
if (data.hasOwnProperty('message')) {
|
56
|
+
obj['message'] = ApiClient.convertToType(data['message'], 'String');
|
57
|
+
|
58
|
+
delete data['message'];
|
59
|
+
}
|
60
|
+
|
61
|
+
if (Object.keys(data).length > 0) {
|
62
|
+
Object.assign(obj, data);
|
63
|
+
}
|
64
|
+
|
65
|
+
}
|
66
|
+
return obj;
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Boolean that indicates whether the request was successful or not
|
74
|
+
* @member {Boolean} success
|
75
|
+
*/
|
76
|
+
UserProviderLinkErrorResponse.prototype['success'] = undefined;
|
77
|
+
|
78
|
+
/**
|
79
|
+
* The error message of the request
|
80
|
+
* @member {String} message
|
81
|
+
*/
|
82
|
+
UserProviderLinkErrorResponse.prototype['message'] = undefined;
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
export default UserProviderLinkErrorResponse;
|
90
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
import ApiClient from '../ApiClient';
|
15
|
+
import UserProviderLinkSuccessResponseData from './UserProviderLinkSuccessResponseData';
|
16
|
+
|
17
|
+
/**
|
18
|
+
* The UserProviderLinkSuccessResponse model module.
|
19
|
+
* @module model/UserProviderLinkSuccessResponse
|
20
|
+
* @version 1.0.0
|
21
|
+
*/
|
22
|
+
class UserProviderLinkSuccessResponse {
|
23
|
+
/**
|
24
|
+
* Constructs a new <code>UserProviderLinkSuccessResponse</code>.
|
25
|
+
* @alias module:model/UserProviderLinkSuccessResponse
|
26
|
+
*/
|
27
|
+
constructor() {
|
28
|
+
|
29
|
+
UserProviderLinkSuccessResponse.initialize(this);
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Initializes the fields of this object.
|
34
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
35
|
+
* Only for internal use.
|
36
|
+
*/
|
37
|
+
static initialize(obj) {
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Constructs a <code>UserProviderLinkSuccessResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
42
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
43
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
44
|
+
* @param {module:model/UserProviderLinkSuccessResponse} obj Optional instance to populate.
|
45
|
+
* @return {module:model/UserProviderLinkSuccessResponse} The populated <code>UserProviderLinkSuccessResponse</code> instance.
|
46
|
+
*/
|
47
|
+
static constructFromObject(data, obj) {
|
48
|
+
if (data) {
|
49
|
+
obj = obj || new UserProviderLinkSuccessResponse();
|
50
|
+
|
51
|
+
if (data.hasOwnProperty('success')) {
|
52
|
+
obj['success'] = ApiClient.convertToType(data['success'], 'Boolean');
|
53
|
+
|
54
|
+
delete data['success'];
|
55
|
+
}
|
56
|
+
if (data.hasOwnProperty('data')) {
|
57
|
+
obj['data'] = UserProviderLinkSuccessResponseData.constructFromObject(data['data']);
|
58
|
+
|
59
|
+
delete data['data'];
|
60
|
+
}
|
61
|
+
|
62
|
+
if (Object.keys(data).length > 0) {
|
63
|
+
Object.assign(obj, data);
|
64
|
+
}
|
65
|
+
|
66
|
+
}
|
67
|
+
return obj;
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Boolean that indicates whether the request was successful or not
|
75
|
+
* @member {Boolean} success
|
76
|
+
*/
|
77
|
+
UserProviderLinkSuccessResponse.prototype['success'] = undefined;
|
78
|
+
|
79
|
+
/**
|
80
|
+
* @member {module:model/UserProviderLinkSuccessResponseData} data
|
81
|
+
*/
|
82
|
+
UserProviderLinkSuccessResponse.prototype['data'] = undefined;
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
export default UserProviderLinkSuccessResponse;
|
90
|
+
|