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
package/dist/api/mailbox-api.js
CHANGED
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
25
|
exports.MailboxApi = exports.MailboxApiFactory = exports.MailboxApiFp = exports.MailboxApiAxiosParamCreator = void 0;
|
26
26
|
const axios_1 = require("axios");
|
27
|
-
// URLSearchParams not necessarily used
|
28
|
-
// @ts-ignore
|
29
|
-
const url_1 = require("url");
|
30
27
|
// Some imports not used depending on template conditions
|
31
28
|
// @ts-ignore
|
32
29
|
const common_1 = require("../common");
|
@@ -51,7 +48,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
51
48
|
const localVarPath = `/mailbox/mailThreads/{id}`
|
52
49
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
53
50
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
54
|
-
const localVarUrlObj = new
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
55
52
|
let baseOptions;
|
56
53
|
if (configuration) {
|
57
54
|
baseOptions = configuration.baseOptions;
|
@@ -86,7 +83,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
86
83
|
const localVarPath = `/mailbox/mailMessages/{id}`
|
87
84
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
88
85
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
89
|
-
const localVarUrlObj = new
|
86
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
90
87
|
let baseOptions;
|
91
88
|
if (configuration) {
|
92
89
|
baseOptions = configuration.baseOptions;
|
@@ -123,7 +120,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
123
120
|
const localVarPath = `/mailbox/mailThreads/{id}`
|
124
121
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
125
122
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
126
|
-
const localVarUrlObj = new
|
123
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
127
124
|
let baseOptions;
|
128
125
|
if (configuration) {
|
129
126
|
baseOptions = configuration.baseOptions;
|
@@ -157,7 +154,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
157
154
|
const localVarPath = `/mailbox/mailThreads/{id}/mailMessages`
|
158
155
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
159
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
160
|
-
const localVarUrlObj = new
|
157
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
161
158
|
let baseOptions;
|
162
159
|
if (configuration) {
|
163
160
|
baseOptions = configuration.baseOptions;
|
@@ -192,7 +189,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
192
189
|
(0, common_1.assertParamExists)('getMailThreads', 'folder', folder);
|
193
190
|
const localVarPath = `/mailbox/mailThreads`;
|
194
191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
195
|
-
const localVarUrlObj = new
|
192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
196
193
|
let baseOptions;
|
197
194
|
if (configuration) {
|
198
195
|
baseOptions = configuration.baseOptions;
|
@@ -240,7 +237,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
240
237
|
const localVarPath = `/mailbox/mailThreads/{id}`
|
241
238
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
242
239
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
243
|
-
const localVarUrlObj = new
|
240
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
244
241
|
let baseOptions;
|
245
242
|
if (configuration) {
|
246
243
|
baseOptions = configuration.baseOptions;
|
@@ -248,7 +245,7 @@ const MailboxApiAxiosParamCreator = function (configuration) {
|
|
248
245
|
const localVarRequestOptions = Object.assign({ method: 'PUT' }, baseOptions);
|
249
246
|
const localVarHeaderParameter = {};
|
250
247
|
const localVarQueryParameter = {};
|
251
|
-
const localVarFormParams = new
|
248
|
+
const localVarFormParams = new URLSearchParams();
|
252
249
|
// authentication api_key required
|
253
250
|
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
254
251
|
// authentication oauth2 required
|
@@ -287,26 +284,6 @@ exports.MailboxApiAxiosParamCreator = MailboxApiAxiosParamCreator;
|
|
287
284
|
* @export
|
288
285
|
*/
|
289
286
|
const MailboxApiFp = function (configuration) {
|
290
|
-
/**
|
291
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
292
|
-
* */
|
293
|
-
axios_1.default.interceptors.request.use(function (config) {
|
294
|
-
const version = require("../../package.json").version;
|
295
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
296
|
-
return config;
|
297
|
-
});
|
298
|
-
/**
|
299
|
-
* Axios response interceptor to modify response structure
|
300
|
-
*/
|
301
|
-
axios_1.default.interceptors.response.use(function (response) {
|
302
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
303
|
-
}, function (error) {
|
304
|
-
var _a;
|
305
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
306
|
-
return Promise.reject(error.response.data);
|
307
|
-
}
|
308
|
-
return Promise.reject(error);
|
309
|
-
});
|
310
287
|
const localVarAxiosParamCreator = (0, exports.MailboxApiAxiosParamCreator)(configuration);
|
311
288
|
return {
|
312
289
|
/**
|
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
25
|
exports.NoteFieldsApi = exports.NoteFieldsApiFactory = exports.NoteFieldsApiFp = exports.NoteFieldsApiAxiosParamCreator = void 0;
|
26
26
|
const axios_1 = require("axios");
|
27
|
-
// URLSearchParams not necessarily used
|
28
|
-
// @ts-ignore
|
29
|
-
const url_1 = require("url");
|
30
27
|
// Some imports not used depending on template conditions
|
31
28
|
// @ts-ignore
|
32
29
|
const common_1 = require("../common");
|
@@ -47,7 +44,7 @@ const NoteFieldsApiAxiosParamCreator = function (configuration) {
|
|
47
44
|
getNoteFields: () => __awaiter(this, void 0, void 0, function* () {
|
48
45
|
const localVarPath = `/noteFields`;
|
49
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
50
|
-
const localVarUrlObj = new
|
47
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
51
48
|
let baseOptions;
|
52
49
|
if (configuration) {
|
53
50
|
baseOptions = configuration.baseOptions;
|
@@ -76,26 +73,6 @@ exports.NoteFieldsApiAxiosParamCreator = NoteFieldsApiAxiosParamCreator;
|
|
76
73
|
* @export
|
77
74
|
*/
|
78
75
|
const NoteFieldsApiFp = function (configuration) {
|
79
|
-
/**
|
80
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
81
|
-
* */
|
82
|
-
axios_1.default.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
|
-
axios_1.default.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 = (0, exports.NoteFieldsApiAxiosParamCreator)(configuration);
|
100
77
|
return {
|
101
78
|
/**
|
package/dist/api/notes-api.js
CHANGED
@@ -467,26 +467,6 @@ exports.NotesApiAxiosParamCreator = NotesApiAxiosParamCreator;
|
|
467
467
|
* @export
|
468
468
|
*/
|
469
469
|
const NotesApiFp = function (configuration) {
|
470
|
-
/**
|
471
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
472
|
-
* */
|
473
|
-
axios_1.default.interceptors.request.use(function (config) {
|
474
|
-
const version = require("../../package.json").version;
|
475
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
476
|
-
return config;
|
477
|
-
});
|
478
|
-
/**
|
479
|
-
* Axios response interceptor to modify response structure
|
480
|
-
*/
|
481
|
-
axios_1.default.interceptors.response.use(function (response) {
|
482
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
483
|
-
}, function (error) {
|
484
|
-
var _a;
|
485
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
486
|
-
return Promise.reject(error.response.data);
|
487
|
-
}
|
488
|
-
return Promise.reject(error);
|
489
|
-
});
|
490
470
|
const localVarAxiosParamCreator = (0, exports.NotesApiAxiosParamCreator)(configuration);
|
491
471
|
return {
|
492
472
|
/**
|
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
25
|
exports.OrganizationFieldsApi = exports.OrganizationFieldsApiFactory = exports.OrganizationFieldsApiFp = exports.OrganizationFieldsApiAxiosParamCreator = void 0;
|
26
26
|
const axios_1 = require("axios");
|
27
|
-
// URLSearchParams not necessarily used
|
28
|
-
// @ts-ignore
|
29
|
-
const url_1 = require("url");
|
30
27
|
// Some imports not used depending on template conditions
|
31
28
|
// @ts-ignore
|
32
29
|
const common_1 = require("../common");
|
@@ -48,7 +45,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addOrganizationField: (CreateFieldRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/organizationFields`;
|
50
47
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
51
|
-
const localVarUrlObj = new
|
48
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
52
49
|
let baseOptions;
|
53
50
|
if (configuration) {
|
54
51
|
baseOptions = configuration.baseOptions;
|
@@ -84,7 +81,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
84
81
|
const localVarPath = `/organizationFields/{id}`
|
85
82
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
86
83
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
87
|
-
const localVarUrlObj = new
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
88
85
|
let baseOptions;
|
89
86
|
if (configuration) {
|
90
87
|
baseOptions = configuration.baseOptions;
|
@@ -117,7 +114,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
117
114
|
(0, common_1.assertParamExists)('deleteOrganizationFields', 'ids', ids);
|
118
115
|
const localVarPath = `/organizationFields`;
|
119
116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
120
|
-
const localVarUrlObj = new
|
117
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
121
118
|
let baseOptions;
|
122
119
|
if (configuration) {
|
123
120
|
baseOptions = configuration.baseOptions;
|
@@ -154,7 +151,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
154
151
|
const localVarPath = `/organizationFields/{id}`
|
155
152
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
156
153
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
157
|
-
const localVarUrlObj = new
|
154
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
158
155
|
let baseOptions;
|
159
156
|
if (configuration) {
|
160
157
|
baseOptions = configuration.baseOptions;
|
@@ -186,7 +183,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
186
183
|
getOrganizationFields: (start, limit) => __awaiter(this, void 0, void 0, function* () {
|
187
184
|
const localVarPath = `/organizationFields`;
|
188
185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
189
|
-
const localVarUrlObj = new
|
186
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
190
187
|
let baseOptions;
|
191
188
|
if (configuration) {
|
192
189
|
baseOptions = configuration.baseOptions;
|
@@ -227,7 +224,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
227
224
|
const localVarPath = `/organizationFields/{id}`
|
228
225
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
229
226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
230
|
-
const localVarUrlObj = new
|
227
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
231
228
|
let baseOptions;
|
232
229
|
if (configuration) {
|
233
230
|
baseOptions = configuration.baseOptions;
|
@@ -258,26 +255,6 @@ exports.OrganizationFieldsApiAxiosParamCreator = OrganizationFieldsApiAxiosParam
|
|
258
255
|
* @export
|
259
256
|
*/
|
260
257
|
const OrganizationFieldsApiFp = function (configuration) {
|
261
|
-
/**
|
262
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
263
|
-
* */
|
264
|
-
axios_1.default.interceptors.request.use(function (config) {
|
265
|
-
const version = require("../../package.json").version;
|
266
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
267
|
-
return config;
|
268
|
-
});
|
269
|
-
/**
|
270
|
-
* Axios response interceptor to modify response structure
|
271
|
-
*/
|
272
|
-
axios_1.default.interceptors.response.use(function (response) {
|
273
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
274
|
-
}, function (error) {
|
275
|
-
var _a;
|
276
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
277
|
-
return Promise.reject(error.response.data);
|
278
|
-
}
|
279
|
-
return Promise.reject(error);
|
280
|
-
});
|
281
258
|
const localVarAxiosParamCreator = (0, exports.OrganizationFieldsApiAxiosParamCreator)(configuration);
|
282
259
|
return {
|
283
260
|
/**
|
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
25
|
exports.OrganizationRelationshipsApi = exports.OrganizationRelationshipsApiFactory = exports.OrganizationRelationshipsApiFp = exports.OrganizationRelationshipsApiAxiosParamCreator = void 0;
|
26
26
|
const axios_1 = require("axios");
|
27
|
-
// URLSearchParams not necessarily used
|
28
|
-
// @ts-ignore
|
29
|
-
const url_1 = require("url");
|
30
27
|
// Some imports not used depending on template conditions
|
31
28
|
// @ts-ignore
|
32
29
|
const common_1 = require("../common");
|
@@ -48,7 +45,7 @@ const OrganizationRelationshipsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addOrganizationRelationship: (AddOrganizationRelationshipRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/organizationRelationships`;
|
50
47
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
51
|
-
const localVarUrlObj = new
|
48
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
52
49
|
let baseOptions;
|
53
50
|
if (configuration) {
|
54
51
|
baseOptions = configuration.baseOptions;
|
@@ -84,7 +81,7 @@ const OrganizationRelationshipsApiAxiosParamCreator = function (configuration) {
|
|
84
81
|
const localVarPath = `/organizationRelationships/{id}`
|
85
82
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
86
83
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
87
|
-
const localVarUrlObj = new
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
88
85
|
let baseOptions;
|
89
86
|
if (configuration) {
|
90
87
|
baseOptions = configuration.baseOptions;
|
@@ -119,7 +116,7 @@ const OrganizationRelationshipsApiAxiosParamCreator = function (configuration) {
|
|
119
116
|
const localVarPath = `/organizationRelationships/{id}`
|
120
117
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
121
118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
122
|
-
const localVarUrlObj = new
|
119
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
123
120
|
let baseOptions;
|
124
121
|
if (configuration) {
|
125
122
|
baseOptions = configuration.baseOptions;
|
@@ -155,7 +152,7 @@ const OrganizationRelationshipsApiAxiosParamCreator = function (configuration) {
|
|
155
152
|
(0, common_1.assertParamExists)('getOrganizationRelationships', 'org_id', org_id);
|
156
153
|
const localVarPath = `/organizationRelationships`;
|
157
154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
158
|
-
const localVarUrlObj = new
|
155
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
159
156
|
let baseOptions;
|
160
157
|
if (configuration) {
|
161
158
|
baseOptions = configuration.baseOptions;
|
@@ -193,7 +190,7 @@ const OrganizationRelationshipsApiAxiosParamCreator = function (configuration) {
|
|
193
190
|
const localVarPath = `/organizationRelationships/{id}`
|
194
191
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
195
192
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
196
|
-
const localVarUrlObj = new
|
193
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
197
194
|
let baseOptions;
|
198
195
|
if (configuration) {
|
199
196
|
baseOptions = configuration.baseOptions;
|
@@ -224,26 +221,6 @@ exports.OrganizationRelationshipsApiAxiosParamCreator = OrganizationRelationship
|
|
224
221
|
* @export
|
225
222
|
*/
|
226
223
|
const OrganizationRelationshipsApiFp = function (configuration) {
|
227
|
-
/**
|
228
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
229
|
-
* */
|
230
|
-
axios_1.default.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
|
-
axios_1.default.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 = (0, exports.OrganizationRelationshipsApiAxiosParamCreator)(configuration);
|
248
225
|
return {
|
249
226
|
/**
|
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
25
|
exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = void 0;
|
26
26
|
const axios_1 = require("axios");
|
27
|
-
// URLSearchParams not necessarily used
|
28
|
-
// @ts-ignore
|
29
|
-
const url_1 = require("url");
|
30
27
|
// Some imports not used depending on template conditions
|
31
28
|
// @ts-ignore
|
32
29
|
const common_1 = require("../common");
|
@@ -48,7 +45,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addOrganization: (AddOrganizationRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/organizations`;
|
50
47
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
51
|
-
const localVarUrlObj = new
|
48
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
52
49
|
let baseOptions;
|
53
50
|
if (configuration) {
|
54
51
|
baseOptions = configuration.baseOptions;
|
@@ -85,7 +82,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
85
82
|
const localVarPath = `/organizations/{id}/followers`
|
86
83
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
87
84
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
88
|
-
const localVarUrlObj = new
|
85
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
89
86
|
let baseOptions;
|
90
87
|
if (configuration) {
|
91
88
|
baseOptions = configuration.baseOptions;
|
@@ -121,7 +118,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
121
118
|
const localVarPath = `/organizations/{id}`
|
122
119
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
123
120
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
124
|
-
const localVarUrlObj = new
|
121
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
125
122
|
let baseOptions;
|
126
123
|
if (configuration) {
|
127
124
|
baseOptions = configuration.baseOptions;
|
@@ -159,7 +156,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
159
156
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
160
157
|
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
161
158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
162
|
-
const localVarUrlObj = new
|
159
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
163
160
|
let baseOptions;
|
164
161
|
if (configuration) {
|
165
162
|
baseOptions = configuration.baseOptions;
|
@@ -192,7 +189,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
192
189
|
(0, common_1.assertParamExists)('deleteOrganizations', 'ids', ids);
|
193
190
|
const localVarPath = `/organizations`;
|
194
191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
195
|
-
const localVarUrlObj = new
|
192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
196
193
|
let baseOptions;
|
197
194
|
if (configuration) {
|
198
195
|
baseOptions = configuration.baseOptions;
|
@@ -229,7 +226,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
229
226
|
const localVarPath = `/organizations/{id}`
|
230
227
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
231
228
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
232
|
-
const localVarUrlObj = new
|
229
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
233
230
|
let baseOptions;
|
234
231
|
if (configuration) {
|
235
232
|
baseOptions = configuration.baseOptions;
|
@@ -267,7 +264,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
267
264
|
const localVarPath = `/organizations/{id}/activities`
|
268
265
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
269
266
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
270
|
-
const localVarUrlObj = new
|
267
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
271
268
|
let baseOptions;
|
272
269
|
if (configuration) {
|
273
270
|
baseOptions = configuration.baseOptions;
|
@@ -318,7 +315,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
318
315
|
const localVarPath = `/organizations/{id}/deals`
|
319
316
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
320
317
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
321
|
-
const localVarUrlObj = new
|
318
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
322
319
|
let baseOptions;
|
323
320
|
if (configuration) {
|
324
321
|
baseOptions = configuration.baseOptions;
|
@@ -370,7 +367,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
370
367
|
const localVarPath = `/organizations/{id}/files`
|
371
368
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
372
369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
373
|
-
const localVarUrlObj = new
|
370
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
374
371
|
let baseOptions;
|
375
372
|
if (configuration) {
|
376
373
|
baseOptions = configuration.baseOptions;
|
@@ -413,7 +410,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
413
410
|
const localVarPath = `/organizations/{id}/followers`
|
414
411
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
415
412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
416
|
-
const localVarUrlObj = new
|
413
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
417
414
|
let baseOptions;
|
418
415
|
if (configuration) {
|
419
416
|
baseOptions = configuration.baseOptions;
|
@@ -449,7 +446,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
449
446
|
const localVarPath = `/organizations/{id}/mailMessages`
|
450
447
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
451
448
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
452
|
-
const localVarUrlObj = new
|
449
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
453
450
|
let baseOptions;
|
454
451
|
if (configuration) {
|
455
452
|
baseOptions = configuration.baseOptions;
|
@@ -491,7 +488,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
491
488
|
const localVarPath = `/organizations/{id}/persons`
|
492
489
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
493
490
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
494
|
-
const localVarUrlObj = new
|
491
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
495
492
|
let baseOptions;
|
496
493
|
if (configuration) {
|
497
494
|
baseOptions = configuration.baseOptions;
|
@@ -535,7 +532,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
535
532
|
const localVarPath = `/organizations/{id}/flow`
|
536
533
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
537
534
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
538
|
-
const localVarUrlObj = new
|
535
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
539
536
|
let baseOptions;
|
540
537
|
if (configuration) {
|
541
538
|
baseOptions = configuration.baseOptions;
|
@@ -581,7 +578,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
581
578
|
const localVarPath = `/organizations/{id}/permittedUsers`
|
582
579
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
583
580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
584
|
-
const localVarUrlObj = new
|
581
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
585
582
|
let baseOptions;
|
586
583
|
if (configuration) {
|
587
584
|
baseOptions = configuration.baseOptions;
|
@@ -617,7 +614,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
617
614
|
getOrganizations: (user_id, filter_id, first_char, start, limit, sort) => __awaiter(this, void 0, void 0, function* () {
|
618
615
|
const localVarPath = `/organizations`;
|
619
616
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
620
|
-
const localVarUrlObj = new
|
617
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
621
618
|
let baseOptions;
|
622
619
|
if (configuration) {
|
623
620
|
baseOptions = configuration.baseOptions;
|
@@ -671,7 +668,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
671
668
|
getOrganizationsCollection: (cursor, limit, since, until, owner_id, first_char) => __awaiter(this, void 0, void 0, function* () {
|
672
669
|
const localVarPath = `/organizations/collection`;
|
673
670
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
674
|
-
const localVarUrlObj = new
|
671
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
675
672
|
let baseOptions;
|
676
673
|
if (configuration) {
|
677
674
|
baseOptions = configuration.baseOptions;
|
@@ -724,7 +721,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
724
721
|
const localVarPath = `/organizations/{id}/merge`
|
725
722
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
726
723
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
727
|
-
const localVarUrlObj = new
|
724
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
728
725
|
let baseOptions;
|
729
726
|
if (configuration) {
|
730
727
|
baseOptions = configuration.baseOptions;
|
@@ -763,7 +760,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
763
760
|
(0, common_1.assertParamExists)('searchOrganization', 'term', term);
|
764
761
|
const localVarPath = `/organizations/search`;
|
765
762
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
766
|
-
const localVarUrlObj = new
|
763
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
767
764
|
let baseOptions;
|
768
765
|
if (configuration) {
|
769
766
|
baseOptions = configuration.baseOptions;
|
@@ -813,7 +810,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
813
810
|
const localVarPath = `/organizations/{id}`
|
814
811
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
815
812
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
816
|
-
const localVarUrlObj = new
|
813
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
817
814
|
let baseOptions;
|
818
815
|
if (configuration) {
|
819
816
|
baseOptions = configuration.baseOptions;
|
@@ -844,26 +841,6 @@ exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
|
|
844
841
|
* @export
|
845
842
|
*/
|
846
843
|
const OrganizationsApiFp = function (configuration) {
|
847
|
-
/**
|
848
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
849
|
-
* */
|
850
|
-
axios_1.default.interceptors.request.use(function (config) {
|
851
|
-
const version = require("../../package.json").version;
|
852
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
853
|
-
return config;
|
854
|
-
});
|
855
|
-
/**
|
856
|
-
* Axios response interceptor to modify response structure
|
857
|
-
*/
|
858
|
-
axios_1.default.interceptors.response.use(function (response) {
|
859
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
860
|
-
}, function (error) {
|
861
|
-
var _a;
|
862
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
863
|
-
return Promise.reject(error.response.data);
|
864
|
-
}
|
865
|
-
return Promise.reject(error);
|
866
|
-
});
|
867
844
|
const localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
|
868
845
|
return {
|
869
846
|
/**
|
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
25
|
exports.PermissionSetsApi = exports.PermissionSetsApiFactory = exports.PermissionSetsApiFp = exports.PermissionSetsApiAxiosParamCreator = void 0;
|
26
26
|
const axios_1 = require("axios");
|
27
|
-
// URLSearchParams not necessarily used
|
28
|
-
// @ts-ignore
|
29
|
-
const url_1 = require("url");
|
30
27
|
// Some imports not used depending on template conditions
|
31
28
|
// @ts-ignore
|
32
29
|
const common_1 = require("../common");
|
@@ -51,7 +48,7 @@ const PermissionSetsApiAxiosParamCreator = function (configuration) {
|
|
51
48
|
const localVarPath = `/permissionSets/{id}`
|
52
49
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
53
50
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
54
|
-
const localVarUrlObj = new
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
55
52
|
let baseOptions;
|
56
53
|
if (configuration) {
|
57
54
|
baseOptions = configuration.baseOptions;
|
@@ -87,7 +84,7 @@ const PermissionSetsApiAxiosParamCreator = function (configuration) {
|
|
87
84
|
const localVarPath = `/permissionSets/{id}/assignments`
|
88
85
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
89
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
90
|
-
const localVarUrlObj = new
|
87
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
91
88
|
let baseOptions;
|
92
89
|
if (configuration) {
|
93
90
|
baseOptions = configuration.baseOptions;
|
@@ -124,7 +121,7 @@ const PermissionSetsApiAxiosParamCreator = function (configuration) {
|
|
124
121
|
getPermissionSets: (app) => __awaiter(this, void 0, void 0, function* () {
|
125
122
|
const localVarPath = `/permissionSets`;
|
126
123
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
127
|
-
const localVarUrlObj = new
|
124
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
128
125
|
let baseOptions;
|
129
126
|
if (configuration) {
|
130
127
|
baseOptions = configuration.baseOptions;
|
@@ -156,26 +153,6 @@ exports.PermissionSetsApiAxiosParamCreator = PermissionSetsApiAxiosParamCreator;
|
|
156
153
|
* @export
|
157
154
|
*/
|
158
155
|
const PermissionSetsApiFp = function (configuration) {
|
159
|
-
/**
|
160
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
161
|
-
* */
|
162
|
-
axios_1.default.interceptors.request.use(function (config) {
|
163
|
-
const version = require("../../package.json").version;
|
164
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
165
|
-
return config;
|
166
|
-
});
|
167
|
-
/**
|
168
|
-
* Axios response interceptor to modify response structure
|
169
|
-
*/
|
170
|
-
axios_1.default.interceptors.response.use(function (response) {
|
171
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
172
|
-
}, function (error) {
|
173
|
-
var _a;
|
174
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
175
|
-
return Promise.reject(error.response.data);
|
176
|
-
}
|
177
|
-
return Promise.reject(error);
|
178
|
-
});
|
179
156
|
const localVarAxiosParamCreator = (0, exports.PermissionSetsApiAxiosParamCreator)(configuration);
|
180
157
|
return {
|
181
158
|
/**
|
@@ -255,26 +255,6 @@ exports.PersonFieldsApiAxiosParamCreator = PersonFieldsApiAxiosParamCreator;
|
|
255
255
|
* @export
|
256
256
|
*/
|
257
257
|
const PersonFieldsApiFp = function (configuration) {
|
258
|
-
/**
|
259
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
260
|
-
* */
|
261
|
-
axios_1.default.interceptors.request.use(function (config) {
|
262
|
-
const version = require("../../package.json").version;
|
263
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
264
|
-
return config;
|
265
|
-
});
|
266
|
-
/**
|
267
|
-
* Axios response interceptor to modify response structure
|
268
|
-
*/
|
269
|
-
axios_1.default.interceptors.response.use(function (response) {
|
270
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
271
|
-
}, function (error) {
|
272
|
-
var _a;
|
273
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
274
|
-
return Promise.reject(error.response.data);
|
275
|
-
}
|
276
|
-
return Promise.reject(error);
|
277
|
-
});
|
278
258
|
const localVarAxiosParamCreator = (0, exports.PersonFieldsApiAxiosParamCreator)(configuration);
|
279
259
|
return {
|
280
260
|
/**
|