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, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
@@ -72,26 +69,6 @@ export const NoteFieldsApiAxiosParamCreator = function (configuration) {
|
|
72
69
|
* @export
|
73
70
|
*/
|
74
71
|
export const NoteFieldsApiFp = 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 = NoteFieldsApiAxiosParamCreator(configuration);
|
96
73
|
return {
|
97
74
|
/**
|
@@ -463,26 +463,6 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
463
463
|
* @export
|
464
464
|
*/
|
465
465
|
export const NotesApiFp = function (configuration) {
|
466
|
-
/**
|
467
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
468
|
-
* */
|
469
|
-
globalAxios.interceptors.request.use(function (config) {
|
470
|
-
const version = require("../../package.json").version;
|
471
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
472
|
-
return config;
|
473
|
-
});
|
474
|
-
/**
|
475
|
-
* Axios response interceptor to modify response structure
|
476
|
-
*/
|
477
|
-
globalAxios.interceptors.response.use(function (response) {
|
478
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
479
|
-
}, function (error) {
|
480
|
-
var _a;
|
481
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
482
|
-
return Promise.reject(error.response.data);
|
483
|
-
}
|
484
|
-
return Promise.reject(error);
|
485
|
-
});
|
486
466
|
const localVarAxiosParamCreator = NotesApiAxiosParamCreator(configuration);
|
487
467
|
return {
|
488
468
|
/**
|
@@ -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 OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
254
251
|
* @export
|
255
252
|
*/
|
256
253
|
export const OrganizationFieldsApiFp = 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 = OrganizationFieldsApiAxiosParamCreator(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';
|
@@ -220,26 +217,6 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
220
217
|
* @export
|
221
218
|
*/
|
222
219
|
export const OrganizationRelationshipsApiFp = function (configuration) {
|
223
|
-
/**
|
224
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
225
|
-
* */
|
226
|
-
globalAxios.interceptors.request.use(function (config) {
|
227
|
-
const version = require("../../package.json").version;
|
228
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
229
|
-
return config;
|
230
|
-
});
|
231
|
-
/**
|
232
|
-
* Axios response interceptor to modify response structure
|
233
|
-
*/
|
234
|
-
globalAxios.interceptors.response.use(function (response) {
|
235
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
236
|
-
}, function (error) {
|
237
|
-
var _a;
|
238
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
239
|
-
return Promise.reject(error.response.data);
|
240
|
-
}
|
241
|
-
return Promise.reject(error);
|
242
|
-
});
|
243
220
|
const localVarAxiosParamCreator = OrganizationRelationshipsApiAxiosParamCreator(configuration);
|
244
221
|
return {
|
245
222
|
/**
|
@@ -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';
|
@@ -840,26 +837,6 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
840
837
|
* @export
|
841
838
|
*/
|
842
839
|
export const OrganizationsApiFp = function (configuration) {
|
843
|
-
/**
|
844
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
845
|
-
* */
|
846
|
-
globalAxios.interceptors.request.use(function (config) {
|
847
|
-
const version = require("../../package.json").version;
|
848
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
849
|
-
return config;
|
850
|
-
});
|
851
|
-
/**
|
852
|
-
* Axios response interceptor to modify response structure
|
853
|
-
*/
|
854
|
-
globalAxios.interceptors.response.use(function (response) {
|
855
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
856
|
-
}, function (error) {
|
857
|
-
var _a;
|
858
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
859
|
-
return Promise.reject(error.response.data);
|
860
|
-
}
|
861
|
-
return Promise.reject(error);
|
862
|
-
});
|
863
840
|
const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
|
864
841
|
return {
|
865
842
|
/**
|
@@ -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';
|
@@ -152,26 +149,6 @@ export const PermissionSetsApiAxiosParamCreator = function (configuration) {
|
|
152
149
|
* @export
|
153
150
|
*/
|
154
151
|
export const PermissionSetsApiFp = function (configuration) {
|
155
|
-
/**
|
156
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
157
|
-
* */
|
158
|
-
globalAxios.interceptors.request.use(function (config) {
|
159
|
-
const version = require("../../package.json").version;
|
160
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
161
|
-
return config;
|
162
|
-
});
|
163
|
-
/**
|
164
|
-
* Axios response interceptor to modify response structure
|
165
|
-
*/
|
166
|
-
globalAxios.interceptors.response.use(function (response) {
|
167
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
168
|
-
}, function (error) {
|
169
|
-
var _a;
|
170
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
171
|
-
return Promise.reject(error.response.data);
|
172
|
-
}
|
173
|
-
return Promise.reject(error);
|
174
|
-
});
|
175
152
|
const localVarAxiosParamCreator = PermissionSetsApiAxiosParamCreator(configuration);
|
176
153
|
return {
|
177
154
|
/**
|
@@ -251,26 +251,6 @@ export const PersonFieldsApiAxiosParamCreator = function (configuration) {
|
|
251
251
|
* @export
|
252
252
|
*/
|
253
253
|
export const PersonFieldsApiFp = function (configuration) {
|
254
|
-
/**
|
255
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
256
|
-
* */
|
257
|
-
globalAxios.interceptors.request.use(function (config) {
|
258
|
-
const version = require("../../package.json").version;
|
259
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
260
|
-
return config;
|
261
|
-
});
|
262
|
-
/**
|
263
|
-
* Axios response interceptor to modify response structure
|
264
|
-
*/
|
265
|
-
globalAxios.interceptors.response.use(function (response) {
|
266
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
267
|
-
}, function (error) {
|
268
|
-
var _a;
|
269
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
270
|
-
return Promise.reject(error.response.data);
|
271
|
-
}
|
272
|
-
return Promise.reject(error);
|
273
|
-
});
|
274
254
|
const localVarAxiosParamCreator = PersonFieldsApiAxiosParamCreator(configuration);
|
275
255
|
return {
|
276
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';
|
@@ -937,26 +934,6 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
937
934
|
* @export
|
938
935
|
*/
|
939
936
|
export const PersonsApiFp = function (configuration) {
|
940
|
-
/**
|
941
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
942
|
-
* */
|
943
|
-
globalAxios.interceptors.request.use(function (config) {
|
944
|
-
const version = require("../../package.json").version;
|
945
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
946
|
-
return config;
|
947
|
-
});
|
948
|
-
/**
|
949
|
-
* Axios response interceptor to modify response structure
|
950
|
-
*/
|
951
|
-
globalAxios.interceptors.response.use(function (response) {
|
952
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
953
|
-
}, function (error) {
|
954
|
-
var _a;
|
955
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
956
|
-
return Promise.reject(error.response.data);
|
957
|
-
}
|
958
|
-
return Promise.reject(error);
|
959
|
-
});
|
960
937
|
const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration);
|
961
938
|
return {
|
962
939
|
/**
|
@@ -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';
|
@@ -388,26 +385,6 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
|
|
388
385
|
* @export
|
389
386
|
*/
|
390
387
|
export const PipelinesApiFp = function (configuration) {
|
391
|
-
/**
|
392
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
393
|
-
* */
|
394
|
-
globalAxios.interceptors.request.use(function (config) {
|
395
|
-
const version = require("../../package.json").version;
|
396
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
397
|
-
return config;
|
398
|
-
});
|
399
|
-
/**
|
400
|
-
* Axios response interceptor to modify response structure
|
401
|
-
*/
|
402
|
-
globalAxios.interceptors.response.use(function (response) {
|
403
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
404
|
-
}, function (error) {
|
405
|
-
var _a;
|
406
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
407
|
-
return Promise.reject(error.response.data);
|
408
|
-
}
|
409
|
-
return Promise.reject(error);
|
410
|
-
});
|
411
388
|
const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration);
|
412
389
|
return {
|
413
390
|
/**
|
@@ -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 ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
254
251
|
* @export
|
255
252
|
*/
|
256
253
|
export const ProductFieldsApiFp = 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 = ProductFieldsApiAxiosParamCreator(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';
|
@@ -537,26 +534,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
537
534
|
* @export
|
538
535
|
*/
|
539
536
|
export const ProductsApiFp = function (configuration) {
|
540
|
-
/**
|
541
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
542
|
-
* */
|
543
|
-
globalAxios.interceptors.request.use(function (config) {
|
544
|
-
const version = require("../../package.json").version;
|
545
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
546
|
-
return config;
|
547
|
-
});
|
548
|
-
/**
|
549
|
-
* Axios response interceptor to modify response structure
|
550
|
-
*/
|
551
|
-
globalAxios.interceptors.response.use(function (response) {
|
552
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
553
|
-
}, function (error) {
|
554
|
-
var _a;
|
555
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
556
|
-
return Promise.reject(error.response.data);
|
557
|
-
}
|
558
|
-
return Promise.reject(error);
|
559
|
-
});
|
560
537
|
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration);
|
561
538
|
return {
|
562
539
|
/**
|
@@ -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';
|
@@ -182,26 +179,6 @@ export const ProjectTemplatesApiAxiosParamCreator = function (configuration) {
|
|
182
179
|
* @export
|
183
180
|
*/
|
184
181
|
export const ProjectTemplatesApiFp = function (configuration) {
|
185
|
-
/**
|
186
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
187
|
-
* */
|
188
|
-
globalAxios.interceptors.request.use(function (config) {
|
189
|
-
const version = require("../../package.json").version;
|
190
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
191
|
-
return config;
|
192
|
-
});
|
193
|
-
/**
|
194
|
-
* Axios response interceptor to modify response structure
|
195
|
-
*/
|
196
|
-
globalAxios.interceptors.response.use(function (response) {
|
197
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
198
|
-
}, function (error) {
|
199
|
-
var _a;
|
200
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
201
|
-
return Promise.reject(error.response.data);
|
202
|
-
}
|
203
|
-
return Promise.reject(error);
|
204
|
-
});
|
205
182
|
const localVarAxiosParamCreator = ProjectTemplatesApiAxiosParamCreator(configuration);
|
206
183
|
return {
|
207
184
|
/**
|
@@ -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';
|
@@ -552,26 +549,6 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
552
549
|
* @export
|
553
550
|
*/
|
554
551
|
export const ProjectsApiFp = function (configuration) {
|
555
|
-
/**
|
556
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
557
|
-
* */
|
558
|
-
globalAxios.interceptors.request.use(function (config) {
|
559
|
-
const version = require("../../package.json").version;
|
560
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
561
|
-
return config;
|
562
|
-
});
|
563
|
-
/**
|
564
|
-
* Axios response interceptor to modify response structure
|
565
|
-
*/
|
566
|
-
globalAxios.interceptors.response.use(function (response) {
|
567
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
568
|
-
}, function (error) {
|
569
|
-
var _a;
|
570
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
571
|
-
return Promise.reject(error.response.data);
|
572
|
-
}
|
573
|
-
return Promise.reject(error);
|
574
|
-
});
|
575
552
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
|
576
553
|
return {
|
577
554
|
/**
|
@@ -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';
|
@@ -90,26 +87,6 @@ export const RecentsApiAxiosParamCreator = function (configuration) {
|
|
90
87
|
* @export
|
91
88
|
*/
|
92
89
|
export const RecentsApiFp = function (configuration) {
|
93
|
-
/**
|
94
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
95
|
-
* */
|
96
|
-
globalAxios.interceptors.request.use(function (config) {
|
97
|
-
const version = require("../../package.json").version;
|
98
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
99
|
-
return config;
|
100
|
-
});
|
101
|
-
/**
|
102
|
-
* Axios response interceptor to modify response structure
|
103
|
-
*/
|
104
|
-
globalAxios.interceptors.response.use(function (response) {
|
105
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
106
|
-
}, function (error) {
|
107
|
-
var _a;
|
108
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
109
|
-
return Promise.reject(error.response.data);
|
110
|
-
}
|
111
|
-
return Promise.reject(error);
|
112
|
-
});
|
113
90
|
const localVarAxiosParamCreator = RecentsApiAxiosParamCreator(configuration);
|
114
91
|
return {
|
115
92
|
/**
|
@@ -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';
|
@@ -480,26 +477,6 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
480
477
|
* @export
|
481
478
|
*/
|
482
479
|
export const RolesApiFp = function (configuration) {
|
483
|
-
/**
|
484
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
485
|
-
* */
|
486
|
-
globalAxios.interceptors.request.use(function (config) {
|
487
|
-
const version = require("../../package.json").version;
|
488
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
489
|
-
return config;
|
490
|
-
});
|
491
|
-
/**
|
492
|
-
* Axios response interceptor to modify response structure
|
493
|
-
*/
|
494
|
-
globalAxios.interceptors.response.use(function (response) {
|
495
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
496
|
-
}, function (error) {
|
497
|
-
var _a;
|
498
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
499
|
-
return Promise.reject(error.response.data);
|
500
|
-
}
|
501
|
-
return Promise.reject(error);
|
502
|
-
});
|
503
480
|
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
|
504
481
|
return {
|
505
482
|
/**
|
@@ -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';
|
@@ -316,26 +313,6 @@ export const StagesApiAxiosParamCreator = function (configuration) {
|
|
316
313
|
* @export
|
317
314
|
*/
|
318
315
|
export const StagesApiFp = function (configuration) {
|
319
|
-
/**
|
320
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
321
|
-
* */
|
322
|
-
globalAxios.interceptors.request.use(function (config) {
|
323
|
-
const version = require("../../package.json").version;
|
324
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
325
|
-
return config;
|
326
|
-
});
|
327
|
-
/**
|
328
|
-
* Axios response interceptor to modify response structure
|
329
|
-
*/
|
330
|
-
globalAxios.interceptors.response.use(function (response) {
|
331
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
332
|
-
}, function (error) {
|
333
|
-
var _a;
|
334
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
335
|
-
return Promise.reject(error.response.data);
|
336
|
-
}
|
337
|
-
return Promise.reject(error);
|
338
|
-
});
|
339
316
|
const localVarAxiosParamCreator = StagesApiAxiosParamCreator(configuration);
|
340
317
|
return {
|
341
318
|
/**
|
@@ -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';
|
@@ -355,26 +352,6 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
355
352
|
* @export
|
356
353
|
*/
|
357
354
|
export const SubscriptionsApiFp = function (configuration) {
|
358
|
-
/**
|
359
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
360
|
-
* */
|
361
|
-
globalAxios.interceptors.request.use(function (config) {
|
362
|
-
const version = require("../../package.json").version;
|
363
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
364
|
-
return config;
|
365
|
-
});
|
366
|
-
/**
|
367
|
-
* Axios response interceptor to modify response structure
|
368
|
-
*/
|
369
|
-
globalAxios.interceptors.response.use(function (response) {
|
370
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
371
|
-
}, function (error) {
|
372
|
-
var _a;
|
373
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
374
|
-
return Promise.reject(error.response.data);
|
375
|
-
}
|
376
|
-
return Promise.reject(error);
|
377
|
-
});
|
378
355
|
const localVarAxiosParamCreator = SubscriptionsApiAxiosParamCreator(configuration);
|
379
356
|
return {
|
380
357
|
/**
|
@@ -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';
|
@@ -234,26 +231,6 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
234
231
|
* @export
|
235
232
|
*/
|
236
233
|
export const TasksApiFp = function (configuration) {
|
237
|
-
/**
|
238
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
239
|
-
* */
|
240
|
-
globalAxios.interceptors.request.use(function (config) {
|
241
|
-
const version = require("../../package.json").version;
|
242
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
243
|
-
return config;
|
244
|
-
});
|
245
|
-
/**
|
246
|
-
* Axios response interceptor to modify response structure
|
247
|
-
*/
|
248
|
-
globalAxios.interceptors.response.use(function (response) {
|
249
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
250
|
-
}, function (error) {
|
251
|
-
var _a;
|
252
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
253
|
-
return Promise.reject(error.response.data);
|
254
|
-
}
|
255
|
-
return Promise.reject(error);
|
256
|
-
});
|
257
234
|
const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration);
|
258
235
|
return {
|
259
236
|
/**
|