pipedrive 22.3.1-rc.2 → 22.3.1-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -4
- package/README.md +29 -24
- 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 +31 -0
- package/common.ts +0 -1
- package/configuration.ts +11 -2
- 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 +26 -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 +8 -2
- 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 +26 -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 +8 -2
- package/docs/AddWebhookRequest.md +1 -1
- package/docs/BasicDeal.md +3 -0
- package/docs/CallLogObject.md +2 -1
- package/docs/DealParticipantsChangelog.md +12 -0
- package/docs/DealsApi.md +74 -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/NewDeal.md +3 -0
- package/docs/OrganizationsApi.md +10 -4
- package/docs/ParticipantsChangelog.md +11 -0
- package/docs/ParticipantsChangelogItem.md +12 -0
- 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/UpdateDealRequest.md +3 -0
- 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/migration.md +309 -0
- 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
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -340,26 +337,6 @@ export const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
340
337
|
* @export
|
341
338
|
*/
|
342
339
|
export const ActivitiesApiFp = function (configuration) {
|
343
|
-
/**
|
344
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
345
|
-
* */
|
346
|
-
globalAxios.interceptors.request.use(function (config) {
|
347
|
-
const version = require("../../package.json").version;
|
348
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
349
|
-
return config;
|
350
|
-
});
|
351
|
-
/**
|
352
|
-
* Axios response interceptor to modify response structure
|
353
|
-
*/
|
354
|
-
globalAxios.interceptors.response.use(function (response) {
|
355
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
356
|
-
}, function (error) {
|
357
|
-
var _a;
|
358
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
359
|
-
return Promise.reject(error.response.data);
|
360
|
-
}
|
361
|
-
return Promise.reject(error);
|
362
|
-
});
|
363
340
|
const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration);
|
364
341
|
return {
|
365
342
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -72,26 +69,6 @@ export const ActivityFieldsApiAxiosParamCreator = function (configuration) {
|
|
72
69
|
* @export
|
73
70
|
*/
|
74
71
|
export const ActivityFieldsApiFp = function (configuration) {
|
75
|
-
/**
|
76
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
77
|
-
* */
|
78
|
-
globalAxios.interceptors.request.use(function (config) {
|
79
|
-
const version = require("../../package.json").version;
|
80
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
81
|
-
return config;
|
82
|
-
});
|
83
|
-
/**
|
84
|
-
* Axios response interceptor to modify response structure
|
85
|
-
*/
|
86
|
-
globalAxios.interceptors.response.use(function (response) {
|
87
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
88
|
-
}, function (error) {
|
89
|
-
var _a;
|
90
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
91
|
-
return Promise.reject(error.response.data);
|
92
|
-
}
|
93
|
-
return Promise.reject(error);
|
94
|
-
});
|
95
72
|
const localVarAxiosParamCreator = ActivityFieldsApiAxiosParamCreator(configuration);
|
96
73
|
return {
|
97
74
|
/**
|
@@ -209,26 +209,6 @@ export const ActivityTypesApiAxiosParamCreator = function (configuration) {
|
|
209
209
|
* @export
|
210
210
|
*/
|
211
211
|
export const ActivityTypesApiFp = function (configuration) {
|
212
|
-
/**
|
213
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
214
|
-
* */
|
215
|
-
globalAxios.interceptors.request.use(function (config) {
|
216
|
-
const version = require("../../package.json").version;
|
217
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
218
|
-
return config;
|
219
|
-
});
|
220
|
-
/**
|
221
|
-
* Axios response interceptor to modify response structure
|
222
|
-
*/
|
223
|
-
globalAxios.interceptors.response.use(function (response) {
|
224
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
225
|
-
}, function (error) {
|
226
|
-
var _a;
|
227
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
228
|
-
return Promise.reject(error.response.data);
|
229
|
-
}
|
230
|
-
return Promise.reject(error);
|
231
|
-
});
|
232
212
|
const localVarAxiosParamCreator = ActivityTypesApiAxiosParamCreator(configuration);
|
233
213
|
return {
|
234
214
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -72,26 +69,6 @@ export const BillingApiAxiosParamCreator = function (configuration) {
|
|
72
69
|
* @export
|
73
70
|
*/
|
74
71
|
export const BillingApiFp = function (configuration) {
|
75
|
-
/**
|
76
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
77
|
-
* */
|
78
|
-
globalAxios.interceptors.request.use(function (config) {
|
79
|
-
const version = require("../../package.json").version;
|
80
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
81
|
-
return config;
|
82
|
-
});
|
83
|
-
/**
|
84
|
-
* Axios response interceptor to modify response structure
|
85
|
-
*/
|
86
|
-
globalAxios.interceptors.response.use(function (response) {
|
87
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
88
|
-
}, function (error) {
|
89
|
-
var _a;
|
90
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
91
|
-
return Promise.reject(error.response.data);
|
92
|
-
}
|
93
|
-
return Promise.reject(error);
|
94
|
-
});
|
95
72
|
const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration);
|
96
73
|
return {
|
97
74
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -224,26 +221,6 @@ export const CallLogsApiAxiosParamCreator = function (configuration) {
|
|
224
221
|
* @export
|
225
222
|
*/
|
226
223
|
export const CallLogsApiFp = function (configuration) {
|
227
|
-
/**
|
228
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
229
|
-
* */
|
230
|
-
globalAxios.interceptors.request.use(function (config) {
|
231
|
-
const version = require("../../package.json").version;
|
232
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
233
|
-
return config;
|
234
|
-
});
|
235
|
-
/**
|
236
|
-
* Axios response interceptor to modify response structure
|
237
|
-
*/
|
238
|
-
globalAxios.interceptors.response.use(function (response) {
|
239
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
240
|
-
}, function (error) {
|
241
|
-
var _a;
|
242
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
243
|
-
return Promise.reject(error.response.data);
|
244
|
-
}
|
245
|
-
return Promise.reject(error);
|
246
|
-
});
|
247
224
|
const localVarAxiosParamCreator = CallLogsApiAxiosParamCreator(configuration);
|
248
225
|
return {
|
249
226
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -180,26 +177,6 @@ export const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
180
177
|
* @export
|
181
178
|
*/
|
182
179
|
export const ChannelsApiFp = function (configuration) {
|
183
|
-
/**
|
184
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
185
|
-
* */
|
186
|
-
globalAxios.interceptors.request.use(function (config) {
|
187
|
-
const version = require("../../package.json").version;
|
188
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
189
|
-
return config;
|
190
|
-
});
|
191
|
-
/**
|
192
|
-
* Axios response interceptor to modify response structure
|
193
|
-
*/
|
194
|
-
globalAxios.interceptors.response.use(function (response) {
|
195
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
196
|
-
}, function (error) {
|
197
|
-
var _a;
|
198
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
199
|
-
return Promise.reject(error.response.data);
|
200
|
-
}
|
201
|
-
return Promise.reject(error);
|
202
|
-
});
|
203
180
|
const localVarAxiosParamCreator = ChannelsApiAxiosParamCreator(configuration);
|
204
181
|
return {
|
205
182
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -76,26 +73,6 @@ export const CurrenciesApiAxiosParamCreator = function (configuration) {
|
|
76
73
|
* @export
|
77
74
|
*/
|
78
75
|
export const CurrenciesApiFp = function (configuration) {
|
79
|
-
/**
|
80
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
81
|
-
* */
|
82
|
-
globalAxios.interceptors.request.use(function (config) {
|
83
|
-
const version = require("../../package.json").version;
|
84
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
85
|
-
return config;
|
86
|
-
});
|
87
|
-
/**
|
88
|
-
* Axios response interceptor to modify response structure
|
89
|
-
*/
|
90
|
-
globalAxios.interceptors.response.use(function (response) {
|
91
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
92
|
-
}, function (error) {
|
93
|
-
var _a;
|
94
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
95
|
-
return Promise.reject(error.response.data);
|
96
|
-
}
|
97
|
-
return Promise.reject(error);
|
98
|
-
});
|
99
76
|
const localVarAxiosParamCreator = CurrenciesApiAxiosParamCreator(configuration);
|
100
77
|
return {
|
101
78
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -254,26 +251,6 @@ export const DealFieldsApiAxiosParamCreator = function (configuration) {
|
|
254
251
|
* @export
|
255
252
|
*/
|
256
253
|
export const DealFieldsApiFp = function (configuration) {
|
257
|
-
/**
|
258
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
259
|
-
* */
|
260
|
-
globalAxios.interceptors.request.use(function (config) {
|
261
|
-
const version = require("../../package.json").version;
|
262
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
263
|
-
return config;
|
264
|
-
});
|
265
|
-
/**
|
266
|
-
* Axios response interceptor to modify response structure
|
267
|
-
*/
|
268
|
-
globalAxios.interceptors.response.use(function (response) {
|
269
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
270
|
-
}, function (error) {
|
271
|
-
var _a;
|
272
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
273
|
-
return Promise.reject(error.response.data);
|
274
|
-
}
|
275
|
-
return Promise.reject(error);
|
276
|
-
});
|
277
254
|
const localVarAxiosParamCreator = DealFieldsApiAxiosParamCreator(configuration);
|
278
255
|
return {
|
279
256
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -1249,26 +1246,6 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
1249
1246
|
* @export
|
1250
1247
|
*/
|
1251
1248
|
export const DealsApiFp = function (configuration) {
|
1252
|
-
/**
|
1253
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
1254
|
-
* */
|
1255
|
-
globalAxios.interceptors.request.use(function (config) {
|
1256
|
-
const version = require("../../package.json").version;
|
1257
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
1258
|
-
return config;
|
1259
|
-
});
|
1260
|
-
/**
|
1261
|
-
* Axios response interceptor to modify response structure
|
1262
|
-
*/
|
1263
|
-
globalAxios.interceptors.response.use(function (response) {
|
1264
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
1265
|
-
}, function (error) {
|
1266
|
-
var _a;
|
1267
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
1268
|
-
return Promise.reject(error.response.data);
|
1269
|
-
}
|
1270
|
-
return Promise.reject(error);
|
1271
|
-
});
|
1272
1249
|
const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration);
|
1273
1250
|
return {
|
1274
1251
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL, URLSearchParams } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -414,26 +411,6 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
414
411
|
* @export
|
415
412
|
*/
|
416
413
|
export const FilesApiFp = function (configuration) {
|
417
|
-
/**
|
418
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
419
|
-
* */
|
420
|
-
globalAxios.interceptors.request.use(function (config) {
|
421
|
-
const version = require("../../package.json").version;
|
422
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
423
|
-
return config;
|
424
|
-
});
|
425
|
-
/**
|
426
|
-
* Axios response interceptor to modify response structure
|
427
|
-
*/
|
428
|
-
globalAxios.interceptors.response.use(function (response) {
|
429
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
430
|
-
}, function (error) {
|
431
|
-
var _a;
|
432
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
433
|
-
return Promise.reject(error.response.data);
|
434
|
-
}
|
435
|
-
return Promise.reject(error);
|
436
|
-
});
|
437
414
|
const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration);
|
438
415
|
return {
|
439
416
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -280,26 +277,6 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
|
|
280
277
|
* @export
|
281
278
|
*/
|
282
279
|
export const FiltersApiFp = function (configuration) {
|
283
|
-
/**
|
284
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
285
|
-
* */
|
286
|
-
globalAxios.interceptors.request.use(function (config) {
|
287
|
-
const version = require("../../package.json").version;
|
288
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
289
|
-
return config;
|
290
|
-
});
|
291
|
-
/**
|
292
|
-
* Axios response interceptor to modify response structure
|
293
|
-
*/
|
294
|
-
globalAxios.interceptors.response.use(function (response) {
|
295
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
296
|
-
}, function (error) {
|
297
|
-
var _a;
|
298
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
299
|
-
return Promise.reject(error.response.data);
|
300
|
-
}
|
301
|
-
return Promise.reject(error);
|
302
|
-
});
|
303
280
|
const localVarAxiosParamCreator = FiltersApiAxiosParamCreator(configuration);
|
304
281
|
return {
|
305
282
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -282,26 +279,6 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
|
|
282
279
|
* @export
|
283
280
|
*/
|
284
281
|
export const GoalsApiFp = function (configuration) {
|
285
|
-
/**
|
286
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
287
|
-
* */
|
288
|
-
globalAxios.interceptors.request.use(function (config) {
|
289
|
-
const version = require("../../package.json").version;
|
290
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
291
|
-
return config;
|
292
|
-
});
|
293
|
-
/**
|
294
|
-
* Axios response interceptor to modify response structure
|
295
|
-
*/
|
296
|
-
globalAxios.interceptors.response.use(function (response) {
|
297
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
298
|
-
}, function (error) {
|
299
|
-
var _a;
|
300
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
301
|
-
return Promise.reject(error.response.data);
|
302
|
-
}
|
303
|
-
return Promise.reject(error);
|
304
|
-
});
|
305
282
|
const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration);
|
306
283
|
return {
|
307
284
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -170,26 +167,6 @@ export const ItemSearchApiAxiosParamCreator = function (configuration) {
|
|
170
167
|
* @export
|
171
168
|
*/
|
172
169
|
export const ItemSearchApiFp = function (configuration) {
|
173
|
-
/**
|
174
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
175
|
-
* */
|
176
|
-
globalAxios.interceptors.request.use(function (config) {
|
177
|
-
const version = require("../../package.json").version;
|
178
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
179
|
-
return config;
|
180
|
-
});
|
181
|
-
/**
|
182
|
-
* Axios response interceptor to modify response structure
|
183
|
-
*/
|
184
|
-
globalAxios.interceptors.response.use(function (response) {
|
185
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
186
|
-
}, function (error) {
|
187
|
-
var _a;
|
188
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
189
|
-
return Promise.reject(error.response.data);
|
190
|
-
}
|
191
|
-
return Promise.reject(error);
|
192
|
-
});
|
193
170
|
const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration);
|
194
171
|
return {
|
195
172
|
/**
|
@@ -173,26 +173,6 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration) {
|
|
173
173
|
* @export
|
174
174
|
*/
|
175
175
|
export const LeadLabelsApiFp = function (configuration) {
|
176
|
-
/**
|
177
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
178
|
-
* */
|
179
|
-
globalAxios.interceptors.request.use(function (config) {
|
180
|
-
const version = require("../../package.json").version;
|
181
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
182
|
-
return config;
|
183
|
-
});
|
184
|
-
/**
|
185
|
-
* Axios response interceptor to modify response structure
|
186
|
-
*/
|
187
|
-
globalAxios.interceptors.response.use(function (response) {
|
188
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
189
|
-
}, function (error) {
|
190
|
-
var _a;
|
191
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
192
|
-
return Promise.reject(error.response.data);
|
193
|
-
}
|
194
|
-
return Promise.reject(error);
|
195
|
-
});
|
196
176
|
const localVarAxiosParamCreator = LeadLabelsApiAxiosParamCreator(configuration);
|
197
177
|
return {
|
198
178
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -72,26 +69,6 @@ export const LeadSourcesApiAxiosParamCreator = function (configuration) {
|
|
72
69
|
* @export
|
73
70
|
*/
|
74
71
|
export const LeadSourcesApiFp = function (configuration) {
|
75
|
-
/**
|
76
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
77
|
-
* */
|
78
|
-
globalAxios.interceptors.request.use(function (config) {
|
79
|
-
const version = require("../../package.json").version;
|
80
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
81
|
-
return config;
|
82
|
-
});
|
83
|
-
/**
|
84
|
-
* Axios response interceptor to modify response structure
|
85
|
-
*/
|
86
|
-
globalAxios.interceptors.response.use(function (response) {
|
87
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
88
|
-
}, function (error) {
|
89
|
-
var _a;
|
90
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
91
|
-
return Promise.reject(error.response.data);
|
92
|
-
}
|
93
|
-
return Promise.reject(error);
|
94
|
-
});
|
95
72
|
const localVarAxiosParamCreator = LeadSourcesApiAxiosParamCreator(configuration);
|
96
73
|
return {
|
97
74
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -340,26 +337,6 @@ export const LeadsApiAxiosParamCreator = function (configuration) {
|
|
340
337
|
* @export
|
341
338
|
*/
|
342
339
|
export const LeadsApiFp = function (configuration) {
|
343
|
-
/**
|
344
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
345
|
-
* */
|
346
|
-
globalAxios.interceptors.request.use(function (config) {
|
347
|
-
const version = require("../../package.json").version;
|
348
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
349
|
-
return config;
|
350
|
-
});
|
351
|
-
/**
|
352
|
-
* Axios response interceptor to modify response structure
|
353
|
-
*/
|
354
|
-
globalAxios.interceptors.response.use(function (response) {
|
355
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
356
|
-
}, function (error) {
|
357
|
-
var _a;
|
358
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
359
|
-
return Promise.reject(error.response.data);
|
360
|
-
}
|
361
|
-
return Promise.reject(error);
|
362
|
-
});
|
363
340
|
const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration);
|
364
341
|
return {
|
365
342
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -338,26 +335,6 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
338
335
|
* @export
|
339
336
|
*/
|
340
337
|
export const LegacyTeamsApiFp = function (configuration) {
|
341
|
-
/**
|
342
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
343
|
-
* */
|
344
|
-
globalAxios.interceptors.request.use(function (config) {
|
345
|
-
const version = require("../../package.json").version;
|
346
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
347
|
-
return config;
|
348
|
-
});
|
349
|
-
/**
|
350
|
-
* Axios response interceptor to modify response structure
|
351
|
-
*/
|
352
|
-
globalAxios.interceptors.response.use(function (response) {
|
353
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
354
|
-
}, function (error) {
|
355
|
-
var _a;
|
356
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
357
|
-
return Promise.reject(error.response.data);
|
358
|
-
}
|
359
|
-
return Promise.reject(error);
|
360
|
-
});
|
361
338
|
const localVarAxiosParamCreator = LegacyTeamsApiAxiosParamCreator(configuration);
|
362
339
|
return {
|
363
340
|
/**
|
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
import globalAxios from 'axios';
|
24
|
-
// URLSearchParams not necessarily used
|
25
|
-
// @ts-ignore
|
26
|
-
import { URL, URLSearchParams } from 'url';
|
27
24
|
// Some imports not used depending on template conditions
|
28
25
|
// @ts-ignore
|
29
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -283,26 +280,6 @@ export const MailboxApiAxiosParamCreator = function (configuration) {
|
|
283
280
|
* @export
|
284
281
|
*/
|
285
282
|
export const MailboxApiFp = function (configuration) {
|
286
|
-
/**
|
287
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
288
|
-
* */
|
289
|
-
globalAxios.interceptors.request.use(function (config) {
|
290
|
-
const version = require("../../package.json").version;
|
291
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
292
|
-
return config;
|
293
|
-
});
|
294
|
-
/**
|
295
|
-
* Axios response interceptor to modify response structure
|
296
|
-
*/
|
297
|
-
globalAxios.interceptors.response.use(function (response) {
|
298
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
299
|
-
}, function (error) {
|
300
|
-
var _a;
|
301
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
302
|
-
return Promise.reject(error.response.data);
|
303
|
-
}
|
304
|
-
return Promise.reject(error);
|
305
|
-
});
|
306
283
|
const localVarAxiosParamCreator = MailboxApiAxiosParamCreator(configuration);
|
307
284
|
return {
|
308
285
|
/**
|