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
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
|
/**
|
package/api/leads-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';
|
@@ -414,32 +411,12 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
414
411
|
}
|
415
412
|
};
|
416
413
|
|
414
|
+
|
417
415
|
/**
|
418
416
|
* LeadsApi - functional programming interface
|
419
417
|
* @export
|
420
418
|
*/
|
421
419
|
export const LeadsApiFp = function(configuration?: Configuration) {
|
422
|
-
|
423
|
-
/**
|
424
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
425
|
-
* */
|
426
|
-
globalAxios.interceptors.request.use(function (config) {
|
427
|
-
const version = require("../../package.json").version;
|
428
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
429
|
-
return config;
|
430
|
-
});
|
431
|
-
|
432
|
-
/**
|
433
|
-
* Axios response interceptor to modify response structure
|
434
|
-
*/
|
435
|
-
globalAxios.interceptors.response.use(function (response) {
|
436
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
437
|
-
}, function (error) {
|
438
|
-
if(error?.response?.data) {
|
439
|
-
return Promise.reject(error.response.data);
|
440
|
-
}
|
441
|
-
return Promise.reject(error);
|
442
|
-
});
|
443
420
|
const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration)
|
444
421
|
return {
|
445
422
|
/**
|
package/api/legacy-teams-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';
|
@@ -410,32 +407,12 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu
|
|
410
407
|
}
|
411
408
|
};
|
412
409
|
|
410
|
+
|
413
411
|
/**
|
414
412
|
* LegacyTeamsApi - functional programming interface
|
415
413
|
* @export
|
416
414
|
*/
|
417
415
|
export const LegacyTeamsApiFp = function(configuration?: Configuration) {
|
418
|
-
|
419
|
-
/**
|
420
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
421
|
-
* */
|
422
|
-
globalAxios.interceptors.request.use(function (config) {
|
423
|
-
const version = require("../../package.json").version;
|
424
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
425
|
-
return config;
|
426
|
-
});
|
427
|
-
|
428
|
-
/**
|
429
|
-
* Axios response interceptor to modify response structure
|
430
|
-
*/
|
431
|
-
globalAxios.interceptors.response.use(function (response) {
|
432
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
433
|
-
}, function (error) {
|
434
|
-
if(error?.response?.data) {
|
435
|
-
return Promise.reject(error.response.data);
|
436
|
-
}
|
437
|
-
return Promise.reject(error);
|
438
|
-
});
|
439
416
|
const localVarAxiosParamCreator = LegacyTeamsApiAxiosParamCreator(configuration)
|
440
417
|
return {
|
441
418
|
/**
|
package/api/mailbox-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 MailboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
338
335
|
}
|
339
336
|
};
|
340
337
|
|
338
|
+
|
341
339
|
/**
|
342
340
|
* MailboxApi - functional programming interface
|
343
341
|
* @export
|
344
342
|
*/
|
345
343
|
export const MailboxApiFp = 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 = MailboxApiAxiosParamCreator(configuration)
|
368
345
|
return {
|
369
346
|
/**
|
package/api/note-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';
|
@@ -72,32 +69,12 @@ export const NoteFieldsApiAxiosParamCreator = function (configuration?: Configur
|
|
72
69
|
}
|
73
70
|
};
|
74
71
|
|
72
|
+
|
75
73
|
/**
|
76
74
|
* NoteFieldsApi - functional programming interface
|
77
75
|
* @export
|
78
76
|
*/
|
79
77
|
export const NoteFieldsApiFp = 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 = NoteFieldsApiAxiosParamCreator(configuration)
|
102
79
|
return {
|
103
80
|
/**
|
package/api/notes-api.ts
CHANGED
@@ -562,32 +562,12 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
|
|
562
562
|
}
|
563
563
|
};
|
564
564
|
|
565
|
+
|
565
566
|
/**
|
566
567
|
* NotesApi - functional programming interface
|
567
568
|
* @export
|
568
569
|
*/
|
569
570
|
export const NotesApiFp = function(configuration?: Configuration) {
|
570
|
-
|
571
|
-
/**
|
572
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
573
|
-
* */
|
574
|
-
globalAxios.interceptors.request.use(function (config) {
|
575
|
-
const version = require("../../package.json").version;
|
576
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
577
|
-
return config;
|
578
|
-
});
|
579
|
-
|
580
|
-
/**
|
581
|
-
* Axios response interceptor to modify response structure
|
582
|
-
*/
|
583
|
-
globalAxios.interceptors.response.use(function (response) {
|
584
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
585
|
-
}, function (error) {
|
586
|
-
if(error?.response?.data) {
|
587
|
-
return Promise.reject(error.response.data);
|
588
|
-
}
|
589
|
-
return Promise.reject(error);
|
590
|
-
});
|
591
571
|
const localVarAxiosParamCreator = NotesApiAxiosParamCreator(configuration)
|
592
572
|
return {
|
593
573
|
/**
|
@@ -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 OrganizationFieldsApiAxiosParamCreator = function (configuration?:
|
|
304
301
|
}
|
305
302
|
};
|
306
303
|
|
304
|
+
|
307
305
|
/**
|
308
306
|
* OrganizationFieldsApi - functional programming interface
|
309
307
|
* @export
|
310
308
|
*/
|
311
309
|
export const OrganizationFieldsApiFp = 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 = OrganizationFieldsApiAxiosParamCreator(configuration)
|
334
311
|
return {
|
335
312
|
/**
|
@@ -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';
|
@@ -264,32 +261,12 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
264
261
|
}
|
265
262
|
};
|
266
263
|
|
264
|
+
|
267
265
|
/**
|
268
266
|
* OrganizationRelationshipsApi - functional programming interface
|
269
267
|
* @export
|
270
268
|
*/
|
271
269
|
export const OrganizationRelationshipsApiFp = function(configuration?: Configuration) {
|
272
|
-
|
273
|
-
/**
|
274
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
275
|
-
* */
|
276
|
-
globalAxios.interceptors.request.use(function (config) {
|
277
|
-
const version = require("../../package.json").version;
|
278
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
279
|
-
return config;
|
280
|
-
});
|
281
|
-
|
282
|
-
/**
|
283
|
-
* Axios response interceptor to modify response structure
|
284
|
-
*/
|
285
|
-
globalAxios.interceptors.response.use(function (response) {
|
286
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
287
|
-
}, function (error) {
|
288
|
-
if(error?.response?.data) {
|
289
|
-
return Promise.reject(error.response.data);
|
290
|
-
}
|
291
|
-
return Promise.reject(error);
|
292
|
-
});
|
293
270
|
const localVarAxiosParamCreator = OrganizationRelationshipsApiAxiosParamCreator(configuration)
|
294
271
|
return {
|
295
272
|
/**
|
package/api/organizations-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';
|
@@ -1054,32 +1051,12 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
1054
1051
|
}
|
1055
1052
|
};
|
1056
1053
|
|
1054
|
+
|
1057
1055
|
/**
|
1058
1056
|
* OrganizationsApi - functional programming interface
|
1059
1057
|
* @export
|
1060
1058
|
*/
|
1061
1059
|
export const OrganizationsApiFp = function(configuration?: Configuration) {
|
1062
|
-
|
1063
|
-
/**
|
1064
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
1065
|
-
* */
|
1066
|
-
globalAxios.interceptors.request.use(function (config) {
|
1067
|
-
const version = require("../../package.json").version;
|
1068
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
1069
|
-
return config;
|
1070
|
-
});
|
1071
|
-
|
1072
|
-
/**
|
1073
|
-
* Axios response interceptor to modify response structure
|
1074
|
-
*/
|
1075
|
-
globalAxios.interceptors.response.use(function (response) {
|
1076
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
1077
|
-
}, function (error) {
|
1078
|
-
if(error?.response?.data) {
|
1079
|
-
return Promise.reject(error.response.data);
|
1080
|
-
}
|
1081
|
-
return Promise.reject(error);
|
1082
|
-
});
|
1083
1060
|
const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration)
|
1084
1061
|
return {
|
1085
1062
|
/**
|
@@ -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';
|
@@ -173,32 +170,12 @@ export const PermissionSetsApiAxiosParamCreator = function (configuration?: Conf
|
|
173
170
|
}
|
174
171
|
};
|
175
172
|
|
173
|
+
|
176
174
|
/**
|
177
175
|
* PermissionSetsApi - functional programming interface
|
178
176
|
* @export
|
179
177
|
*/
|
180
178
|
export const PermissionSetsApiFp = function(configuration?: Configuration) {
|
181
|
-
|
182
|
-
/**
|
183
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
184
|
-
* */
|
185
|
-
globalAxios.interceptors.request.use(function (config) {
|
186
|
-
const version = require("../../package.json").version;
|
187
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
188
|
-
return config;
|
189
|
-
});
|
190
|
-
|
191
|
-
/**
|
192
|
-
* Axios response interceptor to modify response structure
|
193
|
-
*/
|
194
|
-
globalAxios.interceptors.response.use(function (response) {
|
195
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
196
|
-
}, function (error) {
|
197
|
-
if(error?.response?.data) {
|
198
|
-
return Promise.reject(error.response.data);
|
199
|
-
}
|
200
|
-
return Promise.reject(error);
|
201
|
-
});
|
202
179
|
const localVarAxiosParamCreator = PermissionSetsApiAxiosParamCreator(configuration)
|
203
180
|
return {
|
204
181
|
/**
|
package/api/person-fields-api.ts
CHANGED
@@ -301,32 +301,12 @@ export const PersonFieldsApiAxiosParamCreator = function (configuration?: Config
|
|
301
301
|
}
|
302
302
|
};
|
303
303
|
|
304
|
+
|
304
305
|
/**
|
305
306
|
* PersonFieldsApi - functional programming interface
|
306
307
|
* @export
|
307
308
|
*/
|
308
309
|
export const PersonFieldsApiFp = function(configuration?: Configuration) {
|
309
|
-
|
310
|
-
/**
|
311
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
312
|
-
* */
|
313
|
-
globalAxios.interceptors.request.use(function (config) {
|
314
|
-
const version = require("../../package.json").version;
|
315
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
316
|
-
return config;
|
317
|
-
});
|
318
|
-
|
319
|
-
/**
|
320
|
-
* Axios response interceptor to modify response structure
|
321
|
-
*/
|
322
|
-
globalAxios.interceptors.response.use(function (response) {
|
323
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
324
|
-
}, function (error) {
|
325
|
-
if(error?.response?.data) {
|
326
|
-
return Promise.reject(error.response.data);
|
327
|
-
}
|
328
|
-
return Promise.reject(error);
|
329
|
-
});
|
330
310
|
const localVarAxiosParamCreator = PersonFieldsApiAxiosParamCreator(configuration)
|
331
311
|
return {
|
332
312
|
/**
|
package/api/persons-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';
|
@@ -1172,32 +1169,12 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati
|
|
1172
1169
|
}
|
1173
1170
|
};
|
1174
1171
|
|
1172
|
+
|
1175
1173
|
/**
|
1176
1174
|
* PersonsApi - functional programming interface
|
1177
1175
|
* @export
|
1178
1176
|
*/
|
1179
1177
|
export const PersonsApiFp = function(configuration?: Configuration) {
|
1180
|
-
|
1181
|
-
/**
|
1182
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
1183
|
-
* */
|
1184
|
-
globalAxios.interceptors.request.use(function (config) {
|
1185
|
-
const version = require("../../package.json").version;
|
1186
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
1187
|
-
return config;
|
1188
|
-
});
|
1189
|
-
|
1190
|
-
/**
|
1191
|
-
* Axios response interceptor to modify response structure
|
1192
|
-
*/
|
1193
|
-
globalAxios.interceptors.response.use(function (response) {
|
1194
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
1195
|
-
}, function (error) {
|
1196
|
-
if(error?.response?.data) {
|
1197
|
-
return Promise.reject(error.response.data);
|
1198
|
-
}
|
1199
|
-
return Promise.reject(error);
|
1200
|
-
});
|
1201
1178
|
const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration)
|
1202
1179
|
return {
|
1203
1180
|
/**
|
package/api/pipelines-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';
|
@@ -472,32 +469,12 @@ export const PipelinesApiAxiosParamCreator = function (configuration?: Configura
|
|
472
469
|
}
|
473
470
|
};
|
474
471
|
|
472
|
+
|
475
473
|
/**
|
476
474
|
* PipelinesApi - functional programming interface
|
477
475
|
* @export
|
478
476
|
*/
|
479
477
|
export const PipelinesApiFp = function(configuration?: Configuration) {
|
480
|
-
|
481
|
-
/**
|
482
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
483
|
-
* */
|
484
|
-
globalAxios.interceptors.request.use(function (config) {
|
485
|
-
const version = require("../../package.json").version;
|
486
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
487
|
-
return config;
|
488
|
-
});
|
489
|
-
|
490
|
-
/**
|
491
|
-
* Axios response interceptor to modify response structure
|
492
|
-
*/
|
493
|
-
globalAxios.interceptors.response.use(function (response) {
|
494
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
495
|
-
}, function (error) {
|
496
|
-
if(error?.response?.data) {
|
497
|
-
return Promise.reject(error.response.data);
|
498
|
-
}
|
499
|
-
return Promise.reject(error);
|
500
|
-
});
|
501
478
|
const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration)
|
502
479
|
return {
|
503
480
|
/**
|
@@ -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';
|
@@ -306,32 +303,12 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
|
|
306
303
|
}
|
307
304
|
};
|
308
305
|
|
306
|
+
|
309
307
|
/**
|
310
308
|
* ProductFieldsApi - functional programming interface
|
311
309
|
* @export
|
312
310
|
*/
|
313
311
|
export const ProductFieldsApiFp = function(configuration?: Configuration) {
|
314
|
-
|
315
|
-
/**
|
316
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
317
|
-
* */
|
318
|
-
globalAxios.interceptors.request.use(function (config) {
|
319
|
-
const version = require("../../package.json").version;
|
320
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
321
|
-
return config;
|
322
|
-
});
|
323
|
-
|
324
|
-
/**
|
325
|
-
* Axios response interceptor to modify response structure
|
326
|
-
*/
|
327
|
-
globalAxios.interceptors.response.use(function (response) {
|
328
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
329
|
-
}, function (error) {
|
330
|
-
if(error?.response?.data) {
|
331
|
-
return Promise.reject(error.response.data);
|
332
|
-
}
|
333
|
-
return Promise.reject(error);
|
334
|
-
});
|
335
312
|
const localVarAxiosParamCreator = ProductFieldsApiAxiosParamCreator(configuration)
|
336
313
|
return {
|
337
314
|
/**
|