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/CHANGELOG.md
CHANGED
@@ -8,6 +8,9 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## [22.3.1-rc.3] - 2024-01-08
|
12
|
+
- Add `lead_id` as an acceptable body parameter for the `POST /v1/callLogs` endpoint
|
13
|
+
|
11
14
|
## [22.3.1-rc.2] - 2023-12-22
|
12
15
|
|
13
16
|
## [22.3.1-rc.1] - 2023-12-22
|
@@ -592,10 +595,9 @@ structure
|
|
592
595
|
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
|
593
596
|
* Fixed typo in lead example response (`crrency` to `currency`)
|
594
597
|
|
595
|
-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.
|
596
|
-
[22.3.1-rc.
|
597
|
-
[22.
|
598
|
-
[22.3.1-rc.0]: https://github.com/pipedrive/api-docs/compare/v22.3.0...v22.3.1-rc.0
|
598
|
+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.3...HEAD
|
599
|
+
[22.3.1-rc.3]: https://github.com/pipedrive/api-docs/compare/v22.4.0...v22.3.1-rc.3
|
600
|
+
[22.4.0]: https://github.com/pipedrive/api-docs/compare/v22.3.0...v22.4.0
|
599
601
|
[22.3.0]: https://github.com/pipedrive/api-docs/compare/v22.2.0...v22.3.0
|
600
602
|
[22.2.0]: https://github.com/pipedrive/api-docs/compare/v22.1.0...v22.2.0
|
601
603
|
[22.1.0]: https://github.com/pipedrive/api-docs/compare/v22.0.2...v22.1.0
|
package/api/activities-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -418,32 +415,12 @@ export const ActivitiesApiAxiosParamCreator = function (configuration?: Configur
|
|
418
415
|
}
|
419
416
|
};
|
420
417
|
|
418
|
+
|
421
419
|
/**
|
422
420
|
* ActivitiesApi - functional programming interface
|
423
421
|
* @export
|
424
422
|
*/
|
425
423
|
export const ActivitiesApiFp = function(configuration?: Configuration) {
|
426
|
-
|
427
|
-
/**
|
428
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
429
|
-
* */
|
430
|
-
globalAxios.interceptors.request.use(function (config) {
|
431
|
-
const version = require("../../package.json").version;
|
432
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
433
|
-
return config;
|
434
|
-
});
|
435
|
-
|
436
|
-
/**
|
437
|
-
* Axios response interceptor to modify response structure
|
438
|
-
*/
|
439
|
-
globalAxios.interceptors.response.use(function (response) {
|
440
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
441
|
-
}, function (error) {
|
442
|
-
if(error?.response?.data) {
|
443
|
-
return Promise.reject(error.response.data);
|
444
|
-
}
|
445
|
-
return Promise.reject(error);
|
446
|
-
});
|
447
424
|
const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration)
|
448
425
|
return {
|
449
426
|
/**
|
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -72,32 +69,12 @@ export const ActivityFieldsApiAxiosParamCreator = function (configuration?: Conf
|
|
72
69
|
}
|
73
70
|
};
|
74
71
|
|
72
|
+
|
75
73
|
/**
|
76
74
|
* ActivityFieldsApi - functional programming interface
|
77
75
|
* @export
|
78
76
|
*/
|
79
77
|
export const ActivityFieldsApiFp = function(configuration?: Configuration) {
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
83
|
-
* */
|
84
|
-
globalAxios.interceptors.request.use(function (config) {
|
85
|
-
const version = require("../../package.json").version;
|
86
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
87
|
-
return config;
|
88
|
-
});
|
89
|
-
|
90
|
-
/**
|
91
|
-
* Axios response interceptor to modify response structure
|
92
|
-
*/
|
93
|
-
globalAxios.interceptors.response.use(function (response) {
|
94
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
95
|
-
}, function (error) {
|
96
|
-
if(error?.response?.data) {
|
97
|
-
return Promise.reject(error.response.data);
|
98
|
-
}
|
99
|
-
return Promise.reject(error);
|
100
|
-
});
|
101
78
|
const localVarAxiosParamCreator = ActivityFieldsApiAxiosParamCreator(configuration)
|
102
79
|
return {
|
103
80
|
/**
|
@@ -248,32 +248,12 @@ export const ActivityTypesApiAxiosParamCreator = function (configuration?: Confi
|
|
248
248
|
}
|
249
249
|
};
|
250
250
|
|
251
|
+
|
251
252
|
/**
|
252
253
|
* ActivityTypesApi - functional programming interface
|
253
254
|
* @export
|
254
255
|
*/
|
255
256
|
export const ActivityTypesApiFp = function(configuration?: Configuration) {
|
256
|
-
|
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
|
-
/**
|
267
|
-
* Axios response interceptor to modify response structure
|
268
|
-
*/
|
269
|
-
globalAxios.interceptors.response.use(function (response) {
|
270
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
271
|
-
}, function (error) {
|
272
|
-
if(error?.response?.data) {
|
273
|
-
return Promise.reject(error.response.data);
|
274
|
-
}
|
275
|
-
return Promise.reject(error);
|
276
|
-
});
|
277
257
|
const localVarAxiosParamCreator = ActivityTypesApiAxiosParamCreator(configuration)
|
278
258
|
return {
|
279
259
|
/**
|
package/api/billing-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -72,32 +69,12 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
72
69
|
}
|
73
70
|
};
|
74
71
|
|
72
|
+
|
75
73
|
/**
|
76
74
|
* BillingApi - functional programming interface
|
77
75
|
* @export
|
78
76
|
*/
|
79
77
|
export const BillingApiFp = function(configuration?: Configuration) {
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
83
|
-
* */
|
84
|
-
globalAxios.interceptors.request.use(function (config) {
|
85
|
-
const version = require("../../package.json").version;
|
86
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
87
|
-
return config;
|
88
|
-
});
|
89
|
-
|
90
|
-
/**
|
91
|
-
* Axios response interceptor to modify response structure
|
92
|
-
*/
|
93
|
-
globalAxios.interceptors.response.use(function (response) {
|
94
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
95
|
-
}, function (error) {
|
96
|
-
if(error?.response?.data) {
|
97
|
-
return Promise.reject(error.response.data);
|
98
|
-
}
|
99
|
-
return Promise.reject(error);
|
100
|
-
});
|
101
78
|
const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration)
|
102
79
|
return {
|
103
80
|
/**
|
package/api/call-logs-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -275,32 +272,12 @@ export const CallLogsApiAxiosParamCreator = function (configuration?: Configurat
|
|
275
272
|
}
|
276
273
|
};
|
277
274
|
|
275
|
+
|
278
276
|
/**
|
279
277
|
* CallLogsApi - functional programming interface
|
280
278
|
* @export
|
281
279
|
*/
|
282
280
|
export const CallLogsApiFp = function(configuration?: Configuration) {
|
283
|
-
|
284
|
-
/**
|
285
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
286
|
-
* */
|
287
|
-
globalAxios.interceptors.request.use(function (config) {
|
288
|
-
const version = require("../../package.json").version;
|
289
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
290
|
-
return config;
|
291
|
-
});
|
292
|
-
|
293
|
-
/**
|
294
|
-
* Axios response interceptor to modify response structure
|
295
|
-
*/
|
296
|
-
globalAxios.interceptors.response.use(function (response) {
|
297
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
298
|
-
}, function (error) {
|
299
|
-
if(error?.response?.data) {
|
300
|
-
return Promise.reject(error.response.data);
|
301
|
-
}
|
302
|
-
return Promise.reject(error);
|
303
|
-
});
|
304
281
|
const localVarAxiosParamCreator = CallLogsApiAxiosParamCreator(configuration)
|
305
282
|
return {
|
306
283
|
/**
|
package/api/channels-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -221,32 +218,12 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat
|
|
221
218
|
}
|
222
219
|
};
|
223
220
|
|
221
|
+
|
224
222
|
/**
|
225
223
|
* ChannelsApi - functional programming interface
|
226
224
|
* @export
|
227
225
|
*/
|
228
226
|
export const ChannelsApiFp = function(configuration?: Configuration) {
|
229
|
-
|
230
|
-
/**
|
231
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
232
|
-
* */
|
233
|
-
globalAxios.interceptors.request.use(function (config) {
|
234
|
-
const version = require("../../package.json").version;
|
235
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
236
|
-
return config;
|
237
|
-
});
|
238
|
-
|
239
|
-
/**
|
240
|
-
* Axios response interceptor to modify response structure
|
241
|
-
*/
|
242
|
-
globalAxios.interceptors.response.use(function (response) {
|
243
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
244
|
-
}, function (error) {
|
245
|
-
if(error?.response?.data) {
|
246
|
-
return Promise.reject(error.response.data);
|
247
|
-
}
|
248
|
-
return Promise.reject(error);
|
249
|
-
});
|
250
227
|
const localVarAxiosParamCreator = ChannelsApiAxiosParamCreator(configuration)
|
251
228
|
return {
|
252
229
|
/**
|
package/api/currencies-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -77,32 +74,12 @@ export const CurrenciesApiAxiosParamCreator = function (configuration?: Configur
|
|
77
74
|
}
|
78
75
|
};
|
79
76
|
|
77
|
+
|
80
78
|
/**
|
81
79
|
* CurrenciesApi - functional programming interface
|
82
80
|
* @export
|
83
81
|
*/
|
84
82
|
export const CurrenciesApiFp = function(configuration?: Configuration) {
|
85
|
-
|
86
|
-
/**
|
87
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
88
|
-
* */
|
89
|
-
globalAxios.interceptors.request.use(function (config) {
|
90
|
-
const version = require("../../package.json").version;
|
91
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
92
|
-
return config;
|
93
|
-
});
|
94
|
-
|
95
|
-
/**
|
96
|
-
* Axios response interceptor to modify response structure
|
97
|
-
*/
|
98
|
-
globalAxios.interceptors.response.use(function (response) {
|
99
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
100
|
-
}, function (error) {
|
101
|
-
if(error?.response?.data) {
|
102
|
-
return Promise.reject(error.response.data);
|
103
|
-
}
|
104
|
-
return Promise.reject(error);
|
105
|
-
});
|
106
83
|
const localVarAxiosParamCreator = CurrenciesApiAxiosParamCreator(configuration)
|
107
84
|
return {
|
108
85
|
/**
|
package/api/deal-fields-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -304,32 +301,12 @@ export const DealFieldsApiAxiosParamCreator = function (configuration?: Configur
|
|
304
301
|
}
|
305
302
|
};
|
306
303
|
|
304
|
+
|
307
305
|
/**
|
308
306
|
* DealFieldsApi - functional programming interface
|
309
307
|
* @export
|
310
308
|
*/
|
311
309
|
export const DealFieldsApiFp = function(configuration?: Configuration) {
|
312
|
-
|
313
|
-
/**
|
314
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
315
|
-
* */
|
316
|
-
globalAxios.interceptors.request.use(function (config) {
|
317
|
-
const version = require("../../package.json").version;
|
318
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
319
|
-
return config;
|
320
|
-
});
|
321
|
-
|
322
|
-
/**
|
323
|
-
* Axios response interceptor to modify response structure
|
324
|
-
*/
|
325
|
-
globalAxios.interceptors.response.use(function (response) {
|
326
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
327
|
-
}, function (error) {
|
328
|
-
if(error?.response?.data) {
|
329
|
-
return Promise.reject(error.response.data);
|
330
|
-
}
|
331
|
-
return Promise.reject(error);
|
332
|
-
});
|
333
310
|
const localVarAxiosParamCreator = DealFieldsApiAxiosParamCreator(configuration)
|
334
311
|
return {
|
335
312
|
/**
|
package/api/deals-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -1571,32 +1568,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
1571
1568
|
}
|
1572
1569
|
};
|
1573
1570
|
|
1571
|
+
|
1574
1572
|
/**
|
1575
1573
|
* DealsApi - functional programming interface
|
1576
1574
|
* @export
|
1577
1575
|
*/
|
1578
1576
|
export const DealsApiFp = function(configuration?: Configuration) {
|
1579
|
-
|
1580
|
-
/**
|
1581
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
1582
|
-
* */
|
1583
|
-
globalAxios.interceptors.request.use(function (config) {
|
1584
|
-
const version = require("../../package.json").version;
|
1585
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
1586
|
-
return config;
|
1587
|
-
});
|
1588
|
-
|
1589
|
-
/**
|
1590
|
-
* Axios response interceptor to modify response structure
|
1591
|
-
*/
|
1592
|
-
globalAxios.interceptors.response.use(function (response) {
|
1593
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
1594
|
-
}, function (error) {
|
1595
|
-
if(error?.response?.data) {
|
1596
|
-
return Promise.reject(error.response.data);
|
1597
|
-
}
|
1598
|
-
return Promise.reject(error);
|
1599
|
-
});
|
1600
1577
|
const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
|
1601
1578
|
return {
|
1602
1579
|
/**
|
package/api/files-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -500,32 +497,12 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
|
|
500
497
|
}
|
501
498
|
};
|
502
499
|
|
500
|
+
|
503
501
|
/**
|
504
502
|
* FilesApi - functional programming interface
|
505
503
|
* @export
|
506
504
|
*/
|
507
505
|
export const FilesApiFp = function(configuration?: Configuration) {
|
508
|
-
|
509
|
-
/**
|
510
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
511
|
-
* */
|
512
|
-
globalAxios.interceptors.request.use(function (config) {
|
513
|
-
const version = require("../../package.json").version;
|
514
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
515
|
-
return config;
|
516
|
-
});
|
517
|
-
|
518
|
-
/**
|
519
|
-
* Axios response interceptor to modify response structure
|
520
|
-
*/
|
521
|
-
globalAxios.interceptors.response.use(function (response) {
|
522
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
523
|
-
}, function (error) {
|
524
|
-
if(error?.response?.data) {
|
525
|
-
return Promise.reject(error.response.data);
|
526
|
-
}
|
527
|
-
return Promise.reject(error);
|
528
|
-
});
|
529
506
|
const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration)
|
530
507
|
return {
|
531
508
|
/**
|
package/api/filters-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -338,32 +335,12 @@ export const FiltersApiAxiosParamCreator = function (configuration?: Configurati
|
|
338
335
|
}
|
339
336
|
};
|
340
337
|
|
338
|
+
|
341
339
|
/**
|
342
340
|
* FiltersApi - functional programming interface
|
343
341
|
* @export
|
344
342
|
*/
|
345
343
|
export const FiltersApiFp = function(configuration?: Configuration) {
|
346
|
-
|
347
|
-
/**
|
348
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
349
|
-
* */
|
350
|
-
globalAxios.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
|
-
/**
|
357
|
-
* Axios response interceptor to modify response structure
|
358
|
-
*/
|
359
|
-
globalAxios.interceptors.response.use(function (response) {
|
360
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
361
|
-
}, function (error) {
|
362
|
-
if(error?.response?.data) {
|
363
|
-
return Promise.reject(error.response.data);
|
364
|
-
}
|
365
|
-
return Promise.reject(error);
|
366
|
-
});
|
367
344
|
const localVarAxiosParamCreator = FiltersApiAxiosParamCreator(configuration)
|
368
345
|
return {
|
369
346
|
/**
|
package/api/goals-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -337,32 +334,12 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
|
|
337
334
|
}
|
338
335
|
};
|
339
336
|
|
337
|
+
|
340
338
|
/**
|
341
339
|
* GoalsApi - functional programming interface
|
342
340
|
* @export
|
343
341
|
*/
|
344
342
|
export const GoalsApiFp = function(configuration?: Configuration) {
|
345
|
-
|
346
|
-
/**
|
347
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
348
|
-
* */
|
349
|
-
globalAxios.interceptors.request.use(function (config) {
|
350
|
-
const version = require("../../package.json").version;
|
351
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
352
|
-
return config;
|
353
|
-
});
|
354
|
-
|
355
|
-
/**
|
356
|
-
* Axios response interceptor to modify response structure
|
357
|
-
*/
|
358
|
-
globalAxios.interceptors.response.use(function (response) {
|
359
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
360
|
-
}, function (error) {
|
361
|
-
if(error?.response?.data) {
|
362
|
-
return Promise.reject(error.response.data);
|
363
|
-
}
|
364
|
-
return Promise.reject(error);
|
365
|
-
});
|
366
343
|
const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration)
|
367
344
|
return {
|
368
345
|
/**
|
package/api/item-search-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -194,32 +191,12 @@ export const ItemSearchApiAxiosParamCreator = function (configuration?: Configur
|
|
194
191
|
}
|
195
192
|
};
|
196
193
|
|
194
|
+
|
197
195
|
/**
|
198
196
|
* ItemSearchApi - functional programming interface
|
199
197
|
* @export
|
200
198
|
*/
|
201
199
|
export const ItemSearchApiFp = function(configuration?: Configuration) {
|
202
|
-
|
203
|
-
/**
|
204
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
205
|
-
* */
|
206
|
-
globalAxios.interceptors.request.use(function (config) {
|
207
|
-
const version = require("../../package.json").version;
|
208
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
209
|
-
return config;
|
210
|
-
});
|
211
|
-
|
212
|
-
/**
|
213
|
-
* Axios response interceptor to modify response structure
|
214
|
-
*/
|
215
|
-
globalAxios.interceptors.response.use(function (response) {
|
216
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
217
|
-
}, function (error) {
|
218
|
-
if(error?.response?.data) {
|
219
|
-
return Promise.reject(error.response.data);
|
220
|
-
}
|
221
|
-
return Promise.reject(error);
|
222
|
-
});
|
223
200
|
const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration)
|
224
201
|
return {
|
225
202
|
/**
|
package/api/lead-labels-api.ts
CHANGED
@@ -206,32 +206,12 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration?: Configur
|
|
206
206
|
}
|
207
207
|
};
|
208
208
|
|
209
|
+
|
209
210
|
/**
|
210
211
|
* LeadLabelsApi - functional programming interface
|
211
212
|
* @export
|
212
213
|
*/
|
213
214
|
export const LeadLabelsApiFp = function(configuration?: Configuration) {
|
214
|
-
|
215
|
-
/**
|
216
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
217
|
-
* */
|
218
|
-
globalAxios.interceptors.request.use(function (config) {
|
219
|
-
const version = require("../../package.json").version;
|
220
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
221
|
-
return config;
|
222
|
-
});
|
223
|
-
|
224
|
-
/**
|
225
|
-
* Axios response interceptor to modify response structure
|
226
|
-
*/
|
227
|
-
globalAxios.interceptors.response.use(function (response) {
|
228
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
229
|
-
}, function (error) {
|
230
|
-
if(error?.response?.data) {
|
231
|
-
return Promise.reject(error.response.data);
|
232
|
-
}
|
233
|
-
return Promise.reject(error);
|
234
|
-
});
|
235
215
|
const localVarAxiosParamCreator = LeadLabelsApiAxiosParamCreator(configuration)
|
236
216
|
return {
|
237
217
|
/**
|
package/api/lead-sources-api.ts
CHANGED
@@ -16,9 +16,6 @@
|
|
16
16
|
import type { Configuration } from '../configuration';
|
17
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
18
|
import globalAxios from 'axios';
|
19
|
-
// URLSearchParams not necessarily used
|
20
|
-
// @ts-ignore
|
21
|
-
import { URL, URLSearchParams } from 'url';
|
22
19
|
// Some imports not used depending on template conditions
|
23
20
|
// @ts-ignore
|
24
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
@@ -72,32 +69,12 @@ export const LeadSourcesApiAxiosParamCreator = function (configuration?: Configu
|
|
72
69
|
}
|
73
70
|
};
|
74
71
|
|
72
|
+
|
75
73
|
/**
|
76
74
|
* LeadSourcesApi - functional programming interface
|
77
75
|
* @export
|
78
76
|
*/
|
79
77
|
export const LeadSourcesApiFp = function(configuration?: Configuration) {
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
83
|
-
* */
|
84
|
-
globalAxios.interceptors.request.use(function (config) {
|
85
|
-
const version = require("../../package.json").version;
|
86
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
87
|
-
return config;
|
88
|
-
});
|
89
|
-
|
90
|
-
/**
|
91
|
-
* Axios response interceptor to modify response structure
|
92
|
-
*/
|
93
|
-
globalAxios.interceptors.response.use(function (response) {
|
94
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
95
|
-
}, function (error) {
|
96
|
-
if(error?.response?.data) {
|
97
|
-
return Promise.reject(error.response.data);
|
98
|
-
}
|
99
|
-
return Promise.reject(error);
|
100
|
-
});
|
101
78
|
const localVarAxiosParamCreator = LeadSourcesApiAxiosParamCreator(configuration)
|
102
79
|
return {
|
103
80
|
/**
|