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/dist/api/deals-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.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = 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 DealsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addDeal: (AddDealRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/deals`;
|
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 DealsApiAxiosParamCreator = function (configuration) {
|
|
85
82
|
const localVarPath = `/deals/{id}/followers`
|
86
83
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
87
84
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
88
|
-
const localVarUrlObj = new
|
85
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
89
86
|
let baseOptions;
|
90
87
|
if (configuration) {
|
91
88
|
baseOptions = configuration.baseOptions;
|
@@ -122,7 +119,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
122
119
|
const localVarPath = `/deals/{id}/participants`
|
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 DealsApiAxiosParamCreator = function (configuration) {
|
|
159
156
|
const localVarPath = `/deals/{id}/products`
|
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;
|
@@ -195,7 +192,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
195
192
|
const localVarPath = `/deals/{id}`
|
196
193
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
197
194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
198
|
-
const localVarUrlObj = new
|
195
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
199
196
|
let baseOptions;
|
200
197
|
if (configuration) {
|
201
198
|
baseOptions = configuration.baseOptions;
|
@@ -233,7 +230,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
233
230
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
234
231
|
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
235
232
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
236
|
-
const localVarUrlObj = new
|
233
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
237
234
|
let baseOptions;
|
238
235
|
if (configuration) {
|
239
236
|
baseOptions = configuration.baseOptions;
|
@@ -271,7 +268,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
271
268
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
272
269
|
.replace(`{${"deal_participant_id"}}`, encodeURIComponent(String(deal_participant_id)));
|
273
270
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
274
|
-
const localVarUrlObj = new
|
271
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
275
272
|
let baseOptions;
|
276
273
|
if (configuration) {
|
277
274
|
baseOptions = configuration.baseOptions;
|
@@ -309,7 +306,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
309
306
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
310
307
|
.replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id)));
|
311
308
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
312
|
-
const localVarUrlObj = new
|
309
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
313
310
|
let baseOptions;
|
314
311
|
if (configuration) {
|
315
312
|
baseOptions = configuration.baseOptions;
|
@@ -342,7 +339,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
342
339
|
(0, common_1.assertParamExists)('deleteDeals', 'ids', ids);
|
343
340
|
const localVarPath = `/deals`;
|
344
341
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
345
|
-
const localVarUrlObj = new
|
342
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
346
343
|
let baseOptions;
|
347
344
|
if (configuration) {
|
348
345
|
baseOptions = configuration.baseOptions;
|
@@ -379,7 +376,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
379
376
|
const localVarPath = `/deals/{id}/duplicate`
|
380
377
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
381
378
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
382
|
-
const localVarUrlObj = new
|
379
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
383
380
|
let baseOptions;
|
384
381
|
if (configuration) {
|
385
382
|
baseOptions = configuration.baseOptions;
|
@@ -413,7 +410,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
413
410
|
const localVarPath = `/deals/{id}`
|
414
411
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
415
412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
416
|
-
const localVarUrlObj = new
|
413
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
417
414
|
let baseOptions;
|
418
415
|
if (configuration) {
|
419
416
|
baseOptions = configuration.baseOptions;
|
@@ -451,7 +448,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
451
448
|
const localVarPath = `/deals/{id}/activities`
|
452
449
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
453
450
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
454
|
-
const localVarUrlObj = new
|
451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
455
452
|
let baseOptions;
|
456
453
|
if (configuration) {
|
457
454
|
baseOptions = configuration.baseOptions;
|
@@ -500,7 +497,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
500
497
|
const localVarPath = `/deals/{id}/files`
|
501
498
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
502
499
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
503
|
-
const localVarUrlObj = new
|
500
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
504
501
|
let baseOptions;
|
505
502
|
if (configuration) {
|
506
503
|
baseOptions = configuration.baseOptions;
|
@@ -543,7 +540,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
543
540
|
const localVarPath = `/deals/{id}/followers`
|
544
541
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
545
542
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
546
|
-
const localVarUrlObj = new
|
543
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
547
544
|
let baseOptions;
|
548
545
|
if (configuration) {
|
549
546
|
baseOptions = configuration.baseOptions;
|
@@ -579,7 +576,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
579
576
|
const localVarPath = `/deals/{id}/mailMessages`
|
580
577
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
581
578
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
582
|
-
const localVarUrlObj = new
|
579
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
583
580
|
let baseOptions;
|
584
581
|
if (configuration) {
|
585
582
|
baseOptions = configuration.baseOptions;
|
@@ -621,7 +618,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
621
618
|
const localVarPath = `/deals/{id}/participants`
|
622
619
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
623
620
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
624
|
-
const localVarUrlObj = new
|
621
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
625
622
|
let baseOptions;
|
626
623
|
if (configuration) {
|
627
624
|
baseOptions = configuration.baseOptions;
|
@@ -663,7 +660,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
663
660
|
const localVarPath = `/deals/{id}/persons`
|
664
661
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
665
662
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
666
|
-
const localVarUrlObj = new
|
663
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
667
664
|
let baseOptions;
|
668
665
|
if (configuration) {
|
669
666
|
baseOptions = configuration.baseOptions;
|
@@ -706,7 +703,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
706
703
|
const localVarPath = `/deals/{id}/products`
|
707
704
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
708
705
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
709
|
-
const localVarUrlObj = new
|
706
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
710
707
|
let baseOptions;
|
711
708
|
if (configuration) {
|
712
709
|
baseOptions = configuration.baseOptions;
|
@@ -753,7 +750,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
753
750
|
const localVarPath = `/deals/{id}/flow`
|
754
751
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
755
752
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
756
|
-
const localVarUrlObj = new
|
753
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
757
754
|
let baseOptions;
|
758
755
|
if (configuration) {
|
759
756
|
baseOptions = configuration.baseOptions;
|
@@ -799,7 +796,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
799
796
|
const localVarPath = `/deals/{id}/permittedUsers`
|
800
797
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
801
798
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
802
|
-
const localVarUrlObj = new
|
799
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
803
800
|
let baseOptions;
|
804
801
|
if (configuration) {
|
805
802
|
baseOptions = configuration.baseOptions;
|
@@ -837,7 +834,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
837
834
|
getDeals: (user_id, filter_id, stage_id, status, start, limit, sort, owned_by_you) => __awaiter(this, void 0, void 0, function* () {
|
838
835
|
const localVarPath = `/deals`;
|
839
836
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
840
|
-
const localVarUrlObj = new
|
837
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
841
838
|
let baseOptions;
|
842
839
|
if (configuration) {
|
843
840
|
baseOptions = configuration.baseOptions;
|
@@ -898,7 +895,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
898
895
|
getDealsCollection: (cursor, limit, since, until, user_id, stage_id, status) => __awaiter(this, void 0, void 0, function* () {
|
899
896
|
const localVarPath = `/deals/collection`;
|
900
897
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
901
|
-
const localVarUrlObj = new
|
898
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
902
899
|
let baseOptions;
|
903
900
|
if (configuration) {
|
904
901
|
baseOptions = configuration.baseOptions;
|
@@ -953,7 +950,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
953
950
|
getDealsSummary: (status, filter_id, user_id, stage_id) => __awaiter(this, void 0, void 0, function* () {
|
954
951
|
const localVarPath = `/deals/summary`;
|
955
952
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
956
|
-
const localVarUrlObj = new
|
953
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
957
954
|
let baseOptions;
|
958
955
|
if (configuration) {
|
959
956
|
baseOptions = configuration.baseOptions;
|
@@ -1012,7 +1009,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
1012
1009
|
(0, common_1.assertParamExists)('getDealsTimeline', 'field_key', field_key);
|
1013
1010
|
const localVarPath = `/deals/timeline`;
|
1014
1011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1015
|
-
const localVarUrlObj = new
|
1012
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1016
1013
|
let baseOptions;
|
1017
1014
|
if (configuration) {
|
1018
1015
|
baseOptions = configuration.baseOptions;
|
@@ -1076,7 +1073,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
1076
1073
|
const localVarPath = `/deals/{id}/merge`
|
1077
1074
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
1078
1075
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1079
|
-
const localVarUrlObj = new
|
1076
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1080
1077
|
let baseOptions;
|
1081
1078
|
if (configuration) {
|
1082
1079
|
baseOptions = configuration.baseOptions;
|
@@ -1119,7 +1116,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
1119
1116
|
(0, common_1.assertParamExists)('searchDeals', 'term', term);
|
1120
1117
|
const localVarPath = `/deals/search`;
|
1121
1118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1122
|
-
const localVarUrlObj = new
|
1119
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1123
1120
|
let baseOptions;
|
1124
1121
|
if (configuration) {
|
1125
1122
|
baseOptions = configuration.baseOptions;
|
@@ -1181,7 +1178,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
1181
1178
|
const localVarPath = `/deals/{id}`
|
1182
1179
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
1183
1180
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1184
|
-
const localVarUrlObj = new
|
1181
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1185
1182
|
let baseOptions;
|
1186
1183
|
if (configuration) {
|
1187
1184
|
baseOptions = configuration.baseOptions;
|
@@ -1222,7 +1219,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
1222
1219
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
1223
1220
|
.replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id)));
|
1224
1221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1225
|
-
const localVarUrlObj = new
|
1222
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1226
1223
|
let baseOptions;
|
1227
1224
|
if (configuration) {
|
1228
1225
|
baseOptions = configuration.baseOptions;
|
@@ -1253,26 +1250,6 @@ exports.DealsApiAxiosParamCreator = DealsApiAxiosParamCreator;
|
|
1253
1250
|
* @export
|
1254
1251
|
*/
|
1255
1252
|
const DealsApiFp = function (configuration) {
|
1256
|
-
/**
|
1257
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
1258
|
-
* */
|
1259
|
-
axios_1.default.interceptors.request.use(function (config) {
|
1260
|
-
const version = require("../../package.json").version;
|
1261
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
1262
|
-
return config;
|
1263
|
-
});
|
1264
|
-
/**
|
1265
|
-
* Axios response interceptor to modify response structure
|
1266
|
-
*/
|
1267
|
-
axios_1.default.interceptors.response.use(function (response) {
|
1268
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
1269
|
-
}, function (error) {
|
1270
|
-
var _a;
|
1271
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
1272
|
-
return Promise.reject(error.response.data);
|
1273
|
-
}
|
1274
|
-
return Promise.reject(error);
|
1275
|
-
});
|
1276
1253
|
const localVarAxiosParamCreator = (0, exports.DealsApiAxiosParamCreator)(configuration);
|
1277
1254
|
return {
|
1278
1255
|
/**
|
package/dist/api/files-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.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = 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");
|
@@ -56,7 +53,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
56
53
|
(0, common_1.assertParamExists)('addFile', 'file', file);
|
57
54
|
const localVarPath = `/files`;
|
58
55
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
59
|
-
const localVarUrlObj = new
|
56
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
60
57
|
let baseOptions;
|
61
58
|
if (configuration) {
|
62
59
|
baseOptions = configuration.baseOptions;
|
@@ -125,7 +122,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
125
122
|
(0, common_1.assertParamExists)('addFileAndLinkIt', 'remote_location', remote_location);
|
126
123
|
const localVarPath = `/files/remote`;
|
127
124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
128
|
-
const localVarUrlObj = new
|
125
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
129
126
|
let baseOptions;
|
130
127
|
if (configuration) {
|
131
128
|
baseOptions = configuration.baseOptions;
|
@@ -133,7 +130,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
133
130
|
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
134
131
|
const localVarHeaderParameter = {};
|
135
132
|
const localVarQueryParameter = {};
|
136
|
-
const localVarFormParams = new
|
133
|
+
const localVarFormParams = new URLSearchParams();
|
137
134
|
// authentication api_key required
|
138
135
|
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
139
136
|
// authentication oauth2 required
|
@@ -177,7 +174,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
177
174
|
const localVarPath = `/files/{id}`
|
178
175
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
179
176
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
180
|
-
const localVarUrlObj = new
|
177
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
181
178
|
let baseOptions;
|
182
179
|
if (configuration) {
|
183
180
|
baseOptions = configuration.baseOptions;
|
@@ -211,7 +208,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
211
208
|
const localVarPath = `/files/{id}/download`
|
212
209
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
213
210
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
214
|
-
const localVarUrlObj = new
|
211
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
215
212
|
let baseOptions;
|
216
213
|
if (configuration) {
|
217
214
|
baseOptions = configuration.baseOptions;
|
@@ -245,7 +242,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
245
242
|
const localVarPath = `/files/{id}`
|
246
243
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
247
244
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
248
|
-
const localVarUrlObj = new
|
245
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
249
246
|
let baseOptions;
|
250
247
|
if (configuration) {
|
251
248
|
baseOptions = configuration.baseOptions;
|
@@ -278,7 +275,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
278
275
|
getFiles: (start, limit, sort) => __awaiter(this, void 0, void 0, function* () {
|
279
276
|
const localVarPath = `/files`;
|
280
277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
281
|
-
const localVarUrlObj = new
|
278
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
282
279
|
let baseOptions;
|
283
280
|
if (configuration) {
|
284
281
|
baseOptions = configuration.baseOptions;
|
@@ -329,7 +326,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
329
326
|
(0, common_1.assertParamExists)('linkFileToItem', 'remote_location', remote_location);
|
330
327
|
const localVarPath = `/files/remoteLink`;
|
331
328
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
332
|
-
const localVarUrlObj = new
|
329
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
333
330
|
let baseOptions;
|
334
331
|
if (configuration) {
|
335
332
|
baseOptions = configuration.baseOptions;
|
@@ -337,7 +334,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
337
334
|
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
338
335
|
const localVarHeaderParameter = {};
|
339
336
|
const localVarQueryParameter = {};
|
340
|
-
const localVarFormParams = new
|
337
|
+
const localVarFormParams = new URLSearchParams();
|
341
338
|
// authentication api_key required
|
342
339
|
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
343
340
|
// authentication oauth2 required
|
@@ -380,7 +377,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
380
377
|
const localVarPath = `/files/{id}`
|
381
378
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
382
379
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
383
|
-
const localVarUrlObj = new
|
380
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
384
381
|
let baseOptions;
|
385
382
|
if (configuration) {
|
386
383
|
baseOptions = configuration.baseOptions;
|
@@ -388,7 +385,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
388
385
|
const localVarRequestOptions = Object.assign({ method: 'PUT' }, baseOptions);
|
389
386
|
const localVarHeaderParameter = {};
|
390
387
|
const localVarQueryParameter = {};
|
391
|
-
const localVarFormParams = new
|
388
|
+
const localVarFormParams = new URLSearchParams();
|
392
389
|
// authentication api_key required
|
393
390
|
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
394
391
|
// authentication oauth2 required
|
@@ -418,26 +415,6 @@ exports.FilesApiAxiosParamCreator = FilesApiAxiosParamCreator;
|
|
418
415
|
* @export
|
419
416
|
*/
|
420
417
|
const FilesApiFp = function (configuration) {
|
421
|
-
/**
|
422
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
423
|
-
* */
|
424
|
-
axios_1.default.interceptors.request.use(function (config) {
|
425
|
-
const version = require("../../package.json").version;
|
426
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
427
|
-
return config;
|
428
|
-
});
|
429
|
-
/**
|
430
|
-
* Axios response interceptor to modify response structure
|
431
|
-
*/
|
432
|
-
axios_1.default.interceptors.response.use(function (response) {
|
433
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
434
|
-
}, function (error) {
|
435
|
-
var _a;
|
436
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
437
|
-
return Promise.reject(error.response.data);
|
438
|
-
}
|
439
|
-
return Promise.reject(error);
|
440
|
-
});
|
441
418
|
const localVarAxiosParamCreator = (0, exports.FilesApiAxiosParamCreator)(configuration);
|
442
419
|
return {
|
443
420
|
/**
|
package/dist/api/filters-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.FiltersApi = exports.FiltersApiFactory = exports.FiltersApiFp = exports.FiltersApiAxiosParamCreator = 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 FiltersApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addFilter: (AddFilterRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/filters`;
|
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 FiltersApiAxiosParamCreator = function (configuration) {
|
|
84
81
|
const localVarPath = `/filters/{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 FiltersApiAxiosParamCreator = function (configuration) {
|
|
117
114
|
(0, common_1.assertParamExists)('deleteFilters', 'ids', ids);
|
118
115
|
const localVarPath = `/filters`;
|
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 FiltersApiAxiosParamCreator = function (configuration) {
|
|
154
151
|
const localVarPath = `/filters/{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;
|
@@ -184,7 +181,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
184
181
|
getFilterHelpers: () => __awaiter(this, void 0, void 0, function* () {
|
185
182
|
const localVarPath = `/filters/helpers`;
|
186
183
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
187
|
-
const localVarUrlObj = new
|
184
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
188
185
|
let baseOptions;
|
189
186
|
if (configuration) {
|
190
187
|
baseOptions = configuration.baseOptions;
|
@@ -215,7 +212,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
215
212
|
getFilters: (type) => __awaiter(this, void 0, void 0, function* () {
|
216
213
|
const localVarPath = `/filters`;
|
217
214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
218
|
-
const localVarUrlObj = new
|
215
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
219
216
|
let baseOptions;
|
220
217
|
if (configuration) {
|
221
218
|
baseOptions = configuration.baseOptions;
|
@@ -253,7 +250,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
253
250
|
const localVarPath = `/filters/{id}`
|
254
251
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
255
252
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
256
|
-
const localVarUrlObj = new
|
253
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
257
254
|
let baseOptions;
|
258
255
|
if (configuration) {
|
259
256
|
baseOptions = configuration.baseOptions;
|
@@ -284,26 +281,6 @@ exports.FiltersApiAxiosParamCreator = FiltersApiAxiosParamCreator;
|
|
284
281
|
* @export
|
285
282
|
*/
|
286
283
|
const FiltersApiFp = function (configuration) {
|
287
|
-
/**
|
288
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
289
|
-
* */
|
290
|
-
axios_1.default.interceptors.request.use(function (config) {
|
291
|
-
const version = require("../../package.json").version;
|
292
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
293
|
-
return config;
|
294
|
-
});
|
295
|
-
/**
|
296
|
-
* Axios response interceptor to modify response structure
|
297
|
-
*/
|
298
|
-
axios_1.default.interceptors.response.use(function (response) {
|
299
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
300
|
-
}, function (error) {
|
301
|
-
var _a;
|
302
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
303
|
-
return Promise.reject(error.response.data);
|
304
|
-
}
|
305
|
-
return Promise.reject(error);
|
306
|
-
});
|
307
284
|
const localVarAxiosParamCreator = (0, exports.FiltersApiAxiosParamCreator)(configuration);
|
308
285
|
return {
|
309
286
|
/**
|
package/dist/api/goals-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.GoalsApi = exports.GoalsApiFactory = exports.GoalsApiFp = exports.GoalsApiAxiosParamCreator = 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 GoalsApiAxiosParamCreator = function (configuration) {
|
|
48
45
|
addGoal: (AddGoalRequest) => __awaiter(this, void 0, void 0, function* () {
|
49
46
|
const localVarPath = `/goals`;
|
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 GoalsApiAxiosParamCreator = function (configuration) {
|
|
84
81
|
const localVarPath = `/goals/{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;
|
@@ -124,7 +121,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
|
|
124
121
|
const localVarPath = `/goals/{id}/results`
|
125
122
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
126
123
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
127
|
-
const localVarUrlObj = new
|
124
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
128
125
|
let baseOptions;
|
129
126
|
if (configuration) {
|
130
127
|
baseOptions = configuration.baseOptions;
|
@@ -177,7 +174,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
|
|
177
174
|
getGoals: (type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end) => __awaiter(this, void 0, void 0, function* () {
|
178
175
|
const localVarPath = `/goals/find`;
|
179
176
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
180
|
-
const localVarUrlObj = new
|
177
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
181
178
|
let baseOptions;
|
182
179
|
if (configuration) {
|
183
180
|
baseOptions = configuration.baseOptions;
|
@@ -255,7 +252,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
|
|
255
252
|
const localVarPath = `/goals/{id}`
|
256
253
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
257
254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
258
|
-
const localVarUrlObj = new
|
255
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
259
256
|
let baseOptions;
|
260
257
|
if (configuration) {
|
261
258
|
baseOptions = configuration.baseOptions;
|
@@ -286,26 +283,6 @@ exports.GoalsApiAxiosParamCreator = GoalsApiAxiosParamCreator;
|
|
286
283
|
* @export
|
287
284
|
*/
|
288
285
|
const GoalsApiFp = function (configuration) {
|
289
|
-
/**
|
290
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
291
|
-
* */
|
292
|
-
axios_1.default.interceptors.request.use(function (config) {
|
293
|
-
const version = require("../../package.json").version;
|
294
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
295
|
-
return config;
|
296
|
-
});
|
297
|
-
/**
|
298
|
-
* Axios response interceptor to modify response structure
|
299
|
-
*/
|
300
|
-
axios_1.default.interceptors.response.use(function (response) {
|
301
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
302
|
-
}, function (error) {
|
303
|
-
var _a;
|
304
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
305
|
-
return Promise.reject(error.response.data);
|
306
|
-
}
|
307
|
-
return Promise.reject(error);
|
308
|
-
});
|
309
286
|
const localVarAxiosParamCreator = (0, exports.GoalsApiAxiosParamCreator)(configuration);
|
310
287
|
return {
|
311
288
|
/**
|
@@ -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.ItemSearchApi = exports.ItemSearchApiFactory = exports.ItemSearchApiFp = exports.ItemSearchApiAxiosParamCreator = 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");
|
@@ -57,7 +54,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
|
|
57
54
|
(0, common_1.assertParamExists)('searchItem', 'term', term);
|
58
55
|
const localVarPath = `/itemSearch`;
|
59
56
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
60
|
-
const localVarUrlObj = new
|
57
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
61
58
|
let baseOptions;
|
62
59
|
if (configuration) {
|
63
60
|
baseOptions = configuration.baseOptions;
|
@@ -124,7 +121,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
|
|
124
121
|
(0, common_1.assertParamExists)('searchItemByField', 'field_key', field_key);
|
125
122
|
const localVarPath = `/itemSearch/field`;
|
126
123
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
127
|
-
const localVarUrlObj = new
|
124
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
128
125
|
let baseOptions;
|
129
126
|
if (configuration) {
|
130
127
|
baseOptions = configuration.baseOptions;
|
@@ -174,26 +171,6 @@ exports.ItemSearchApiAxiosParamCreator = ItemSearchApiAxiosParamCreator;
|
|
174
171
|
* @export
|
175
172
|
*/
|
176
173
|
const ItemSearchApiFp = function (configuration) {
|
177
|
-
/**
|
178
|
-
* Axios interceptor to add the SDK version as a User-Agent header
|
179
|
-
* */
|
180
|
-
axios_1.default.interceptors.request.use(function (config) {
|
181
|
-
const version = require("../../package.json").version;
|
182
|
-
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
|
183
|
-
return config;
|
184
|
-
});
|
185
|
-
/**
|
186
|
-
* Axios response interceptor to modify response structure
|
187
|
-
*/
|
188
|
-
axios_1.default.interceptors.response.use(function (response) {
|
189
|
-
return response.hasOwnProperty('success') ? response : response.data;
|
190
|
-
}, function (error) {
|
191
|
-
var _a;
|
192
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
193
|
-
return Promise.reject(error.response.data);
|
194
|
-
}
|
195
|
-
return Promise.reject(error);
|
196
|
-
});
|
197
174
|
const localVarAxiosParamCreator = (0, exports.ItemSearchApiAxiosParamCreator)(configuration);
|
198
175
|
return {
|
199
176
|
/**
|