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
@@ -177,26 +177,6 @@ exports.LeadLabelsApiAxiosParamCreator = LeadLabelsApiAxiosParamCreator;
|
|
177
177
|
* @export
|
178
178
|
*/
|
179
179
|
const LeadLabelsApiFp = function (configuration) {
|
180
|
-
/**
|
181
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
182
|
-
* */
|
183
|
-
axios_1.default.interceptors.request.use(function (config) {
|
184
|
-
const version = require("../../package.json").version;
|
185
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
186
|
-
return config;
|
187
|
-
});
|
188
|
-
/**
|
189
|
-
* Axios response interceptor to modify response structure
|
190
|
-
*/
|
191
|
-
axios_1.default.interceptors.response.use(function (response) {
|
192
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
193
|
-
}, function (error) {
|
194
|
-
var _a;
|
195
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
196
|
-
return Promise.reject(error.response.data);
|
197
|
-
}
|
198
|
-
return Promise.reject(error);
|
199
|
-
});
|
200
180
|
const localVarAxiosParamCreator = (0, exports.LeadLabelsApiAxiosParamCreator)(configuration);
|
201
181
|
return {
|
202
182
|
/**
|
@@ -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.LeadSourcesApi = exports.LeadSourcesApiFactory = exports.LeadSourcesApiFp = exports.LeadSourcesApiAxiosParamCreator = 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 LeadSourcesApiAxiosParamCreator = function (configuration) {
|
|
47
44
|
getLeadSources: () => __awaiter(this, void 0, void 0, function* () {
|
48
45
|
const localVarPath = `/leadSources`;
|
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.LeadSourcesApiAxiosParamCreator = LeadSourcesApiAxiosParamCreator;
|
|
76
73
|
* @export
|
77
74
|
*/
|
78
75
|
const LeadSourcesApiFp = 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.LeadSourcesApiAxiosParamCreator)(configuration);
|
100
77
|
return {
|
101
78
|
/**
|
package/dist/api/leads-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.LeadsApi = exports.LeadsApiFactory = exports.LeadsApiFp = exports.LeadsApiAxiosParamCreator = 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 LeadsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addLead: (AddLeadRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/leads`;
|
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 LeadsApiAxiosParamCreator = function (configuration) {
|
|
84
81
|
const localVarPath = `/leads/{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;
|
@@ -118,7 +115,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
|
|
118
115
|
const localVarPath = `/leads/{id}`
|
119
116
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
120
117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
121
|
-
const localVarUrlObj = new
|
118
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
122
119
|
let baseOptions;
|
123
120
|
if (configuration) {
|
124
121
|
baseOptions = configuration.baseOptions;
|
@@ -152,7 +149,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
|
|
152
149
|
const localVarPath = `/leads/{id}/permittedUsers`
|
153
150
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
154
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
155
|
-
const localVarUrlObj = new
|
152
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
156
153
|
let baseOptions;
|
157
154
|
if (configuration) {
|
158
155
|
baseOptions = configuration.baseOptions;
|
@@ -190,7 +187,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
|
|
190
187
|
getLeads: (limit, start, archived_status, owner_id, person_id, organization_id, filter_id, sort) => __awaiter(this, void 0, void 0, function* () {
|
191
188
|
const localVarPath = `/leads`;
|
192
189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
193
|
-
const localVarUrlObj = new
|
190
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
194
191
|
let baseOptions;
|
195
192
|
if (configuration) {
|
196
193
|
baseOptions = configuration.baseOptions;
|
@@ -254,7 +251,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
|
|
254
251
|
(0, common_1.assertParamExists)('searchLeads', 'term', term);
|
255
252
|
const localVarPath = `/leads/search`;
|
256
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
257
|
-
const localVarUrlObj = new
|
254
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
258
255
|
let baseOptions;
|
259
256
|
if (configuration) {
|
260
257
|
baseOptions = configuration.baseOptions;
|
@@ -313,7 +310,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
|
|
313
310
|
const localVarPath = `/leads/{id}`
|
314
311
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
315
312
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
316
|
-
const localVarUrlObj = new
|
313
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
317
314
|
let baseOptions;
|
318
315
|
if (configuration) {
|
319
316
|
baseOptions = configuration.baseOptions;
|
@@ -344,26 +341,6 @@ exports.LeadsApiAxiosParamCreator = LeadsApiAxiosParamCreator;
|
|
344
341
|
* @export
|
345
342
|
*/
|
346
343
|
const LeadsApiFp = function (configuration) {
|
347
|
-
/**
|
348
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
349
|
-
* */
|
350
|
-
axios_1.default.interceptors.request.use(function (config) {
|
351
|
-
const version = require("../../package.json").version;
|
352
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
353
|
-
return config;
|
354
|
-
});
|
355
|
-
/**
|
356
|
-
* Axios response interceptor to modify response structure
|
357
|
-
*/
|
358
|
-
axios_1.default.interceptors.response.use(function (response) {
|
359
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
360
|
-
}, function (error) {
|
361
|
-
var _a;
|
362
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
363
|
-
return Promise.reject(error.response.data);
|
364
|
-
}
|
365
|
-
return Promise.reject(error);
|
366
|
-
});
|
367
344
|
const localVarAxiosParamCreator = (0, exports.LeadsApiAxiosParamCreator)(configuration);
|
368
345
|
return {
|
369
346
|
/**
|
@@ -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.LegacyTeamsApi = exports.LegacyTeamsApiFactory = exports.LegacyTeamsApiFp = exports.LegacyTeamsApiAxiosParamCreator = 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 LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addTeam: (AddTeamRequest1) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/legacyTeams`;
|
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 LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
85
82
|
const localVarPath = `/legacyTeams/{id}/users`
|
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;
|
@@ -122,7 +119,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
122
119
|
const localVarPath = `/legacyTeams/{id}/users`
|
123
120
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
124
121
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
125
|
-
const localVarUrlObj = new
|
122
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
126
123
|
let baseOptions;
|
127
124
|
if (configuration) {
|
128
125
|
baseOptions = configuration.baseOptions;
|
@@ -159,7 +156,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
159
156
|
const localVarPath = `/legacyTeams/{id}`
|
160
157
|
.replace(`{${"id"}}`, encodeURIComponent(String(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;
|
@@ -196,7 +193,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
196
193
|
const localVarPath = `/legacyTeams/{id}/users`
|
197
194
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
198
195
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
199
|
-
const localVarUrlObj = new
|
196
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
200
197
|
let baseOptions;
|
201
198
|
if (configuration) {
|
202
199
|
baseOptions = configuration.baseOptions;
|
@@ -228,7 +225,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
228
225
|
getTeams: (order_by, skip_users) => __awaiter(this, void 0, void 0, function* () {
|
229
226
|
const localVarPath = `/legacyTeams`;
|
230
227
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
231
|
-
const localVarUrlObj = new
|
228
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
232
229
|
let baseOptions;
|
233
230
|
if (configuration) {
|
234
231
|
baseOptions = configuration.baseOptions;
|
@@ -270,7 +267,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
270
267
|
const localVarPath = `/legacyTeams/user/{id}`
|
271
268
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
272
269
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
273
|
-
const localVarUrlObj = new
|
270
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
274
271
|
let baseOptions;
|
275
272
|
if (configuration) {
|
276
273
|
baseOptions = configuration.baseOptions;
|
@@ -311,7 +308,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
|
|
311
308
|
const localVarPath = `/legacyTeams/{id}`
|
312
309
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
313
310
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
314
|
-
const localVarUrlObj = new
|
311
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
315
312
|
let baseOptions;
|
316
313
|
if (configuration) {
|
317
314
|
baseOptions = configuration.baseOptions;
|
@@ -342,26 +339,6 @@ exports.LegacyTeamsApiAxiosParamCreator = LegacyTeamsApiAxiosParamCreator;
|
|
342
339
|
* @export
|
343
340
|
*/
|
344
341
|
const LegacyTeamsApiFp = function (configuration) {
|
345
|
-
/**
|
346
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
347
|
-
* */
|
348
|
-
axios_1.default.interceptors.request.use(function (config) {
|
349
|
-
const version = require("../../package.json").version;
|
350
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
351
|
-
return config;
|
352
|
-
});
|
353
|
-
/**
|
354
|
-
* Axios response interceptor to modify response structure
|
355
|
-
*/
|
356
|
-
axios_1.default.interceptors.response.use(function (response) {
|
357
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
358
|
-
}, function (error) {
|
359
|
-
var _a;
|
360
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
361
|
-
return Promise.reject(error.response.data);
|
362
|
-
}
|
363
|
-
return Promise.reject(error);
|
364
|
-
});
|
365
342
|
const localVarAxiosParamCreator = (0, exports.LegacyTeamsApiAxiosParamCreator)(configuration);
|
366
343
|
return {
|
367
344
|
/**
|
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
|
/**
|