@seekora-ai/search-sdk 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/seekora-sdk.js +23 -27
- package/cdn/seekora-sdk.min.js +17 -15
- package/dist/generated/api.js +27 -28
- package/dist/generated/common.d.ts +0 -1
- package/dist/generated/common.js +3 -2
- package/package.json +1 -1
package/dist/generated/api.js
CHANGED
|
@@ -19,9 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AnalyticsActivityLogsGetActionEnum = exports.ActivityLogsApi = exports.ActivityLogsApiFactory = exports.ActivityLogsApiFp = exports.ActivityLogsApiAxiosParamCreator = exports.RefundRefundPreviewRequestDtoRefundTypeEnum = exports.QuerySuggestionsServiceRuleType = exports.QuerySuggestionsServiceQuerySuggestionStatus = exports.QuerySuggestionsServiceQuerySuggestionSource = exports.QuerySuggestionsServiceBulkOperation = exports.QuerySuggestionsServiceBannedMatchType = exports.MenuRoutesAddMenuRequestModuleTypeEnum = exports.MenuRoutesAddMenuRequestMenuLocationEnum = exports.MenuRoutesAddMenuRequestMenuLevelEnum = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdateStoreAccessRequestAccessLevelEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesUpdateMemberRoleRequestMemberRoleEnum = exports.DataTypesStoreLevelMenuRightAccessLevelEnum = exports.DataTypesStoreAccessRequestAccessLevelEnum = exports.DataTypesRefundCalculationRequestDtoRefundTypeEnum = exports.DataTypesRefundApprovalDtoActionEnum = exports.DataTypesProcessRefundRequestDtoRefundTypeEnum = exports.DataTypesNotificationType = exports.DataTypesNotificationStatus = exports.DataTypesNotificationPriority = exports.DataTypesNotificationChannel = exports.DataTypesGrantStoreAccessRequestAccessLevelEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreateRefundRequestDtoRefundTypeEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.DataTypesBillingAlertRequestThresholdUnitEnum = exports.DataTypesBillingAlertRequestAlertTypeEnum = exports.DataTypesAcceptInvitationWithOAuthRequestTypeEnum = void 0;
|
|
20
20
|
exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SDKStoreInfoApi = exports.SDKStoreInfoApiFactory = exports.SDKStoreInfoApiFp = exports.SDKStoreInfoApiAxiosParamCreator = exports.SDKStoreCreationApi = exports.SDKStoreCreationApiFactory = exports.SDKStoreCreationApiFp = exports.SDKStoreCreationApiAxiosParamCreator = exports.SDKStoreConfigApi = exports.SDKStoreConfigApiFactory = exports.SDKStoreConfigApiFp = exports.SDKStoreConfigApiAxiosParamCreator = exports.SDKSchemaApi = exports.SDKSchemaApiFactory = exports.SDKSchemaApiFp = exports.SDKSchemaApiAxiosParamCreator = exports.SDKQuerySuggestionsConfigApi = exports.SDKQuerySuggestionsConfigApiFactory = exports.SDKQuerySuggestionsConfigApiFp = exports.SDKQuerySuggestionsConfigApiAxiosParamCreator = exports.SDKDocumentsApi = exports.SDKDocumentsApiFactory = exports.SDKDocumentsApiFp = exports.SDKDocumentsApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
|
-
// URLSearchParams
|
|
23
|
-
//
|
|
24
|
-
const url_1 = require("url");
|
|
22
|
+
// Note: URL and URLSearchParams are globally available in modern browsers (all ES2015+) and Node.js 10+
|
|
23
|
+
// We intentionally do NOT import from 'url' module as it causes bundling issues in browser environments
|
|
25
24
|
// Some imports not used depending on template conditions
|
|
26
25
|
// @ts-ignore
|
|
27
26
|
const common_1 = require("./common");
|
|
@@ -230,7 +229,7 @@ const ActivityLogsApiAxiosParamCreator = function (configuration) {
|
|
|
230
229
|
analyticsActivityLogsGet: async (startDate, endDate, search, action, entity, page, perPage, options = {}) => {
|
|
231
230
|
const localVarPath = `/analytics/activity-logs`;
|
|
232
231
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
233
|
-
const localVarUrlObj = new
|
|
232
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
234
233
|
let baseOptions;
|
|
235
234
|
if (configuration) {
|
|
236
235
|
baseOptions = configuration.baseOptions;
|
|
@@ -375,7 +374,7 @@ const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
375
374
|
analyticsApiUsageGet: async (startDate, endDate, method, path, storeId, page, perPage, options = {}) => {
|
|
376
375
|
const localVarPath = `/analytics/api-usage`;
|
|
377
376
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
|
-
const localVarUrlObj = new
|
|
377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
379
378
|
let baseOptions;
|
|
380
379
|
if (configuration) {
|
|
381
380
|
baseOptions = configuration.baseOptions;
|
|
@@ -433,7 +432,7 @@ const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
433
432
|
const localVarPath = `/analytics/api-usage/store/{storeId}`
|
|
434
433
|
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
435
434
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
436
|
-
const localVarUrlObj = new
|
|
435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
437
436
|
let baseOptions;
|
|
438
437
|
if (configuration) {
|
|
439
438
|
baseOptions = configuration.baseOptions;
|
|
@@ -616,7 +615,7 @@ const AnalyticsEventsApiAxiosParamCreator = function (configuration) {
|
|
|
616
615
|
(0, common_1.assertParamExists)('analyticsBatchPost', 'analyticsBatchPostRequest', analyticsBatchPostRequest);
|
|
617
616
|
const localVarPath = `/analytics/batch`;
|
|
618
617
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
619
|
-
const localVarUrlObj = new
|
|
618
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
620
619
|
let baseOptions;
|
|
621
620
|
if (configuration) {
|
|
622
621
|
baseOptions = configuration.baseOptions;
|
|
@@ -656,7 +655,7 @@ const AnalyticsEventsApiAxiosParamCreator = function (configuration) {
|
|
|
656
655
|
(0, common_1.assertParamExists)('analyticsConfigGet', 'xStoresecret', xStoresecret);
|
|
657
656
|
const localVarPath = `/analytics/config`;
|
|
658
657
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
659
|
-
const localVarUrlObj = new
|
|
658
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
660
659
|
let baseOptions;
|
|
661
660
|
if (configuration) {
|
|
662
661
|
baseOptions = configuration.baseOptions;
|
|
@@ -697,7 +696,7 @@ const AnalyticsEventsApiAxiosParamCreator = function (configuration) {
|
|
|
697
696
|
(0, common_1.assertParamExists)('analyticsEventPost', 'dataTypesEventPayload', dataTypesEventPayload);
|
|
698
697
|
const localVarPath = `/analytics/event`;
|
|
699
698
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
700
|
-
const localVarUrlObj = new
|
|
699
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
701
700
|
let baseOptions;
|
|
702
701
|
if (configuration) {
|
|
703
702
|
baseOptions = configuration.baseOptions;
|
|
@@ -737,7 +736,7 @@ const AnalyticsEventsApiAxiosParamCreator = function (configuration) {
|
|
|
737
736
|
(0, common_1.assertParamExists)('analyticsSchemaGet', 'xStoresecret', xStoresecret);
|
|
738
737
|
const localVarPath = `/analytics/schema`;
|
|
739
738
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
740
|
-
const localVarUrlObj = new
|
|
739
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
741
740
|
let baseOptions;
|
|
742
741
|
if (configuration) {
|
|
743
742
|
baseOptions = configuration.baseOptions;
|
|
@@ -778,7 +777,7 @@ const AnalyticsEventsApiAxiosParamCreator = function (configuration) {
|
|
|
778
777
|
(0, common_1.assertParamExists)('analyticsValidatePost', 'dataTypesEventPayload', dataTypesEventPayload);
|
|
779
778
|
const localVarPath = `/analytics/validate`;
|
|
780
779
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
781
|
-
const localVarUrlObj = new
|
|
780
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
782
781
|
let baseOptions;
|
|
783
782
|
if (configuration) {
|
|
784
783
|
baseOptions = configuration.baseOptions;
|
|
@@ -1039,7 +1038,7 @@ const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
|
|
|
1039
1038
|
(0, common_1.assertParamExists)('v1SuggestionsConfigGet', 'xStoresecret', xStoresecret);
|
|
1040
1039
|
const localVarPath = `/v1/suggestions/config`;
|
|
1041
1040
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1042
|
-
const localVarUrlObj = new
|
|
1041
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1043
1042
|
let baseOptions;
|
|
1044
1043
|
if (configuration) {
|
|
1045
1044
|
baseOptions = configuration.baseOptions;
|
|
@@ -1092,7 +1091,7 @@ const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
|
|
|
1092
1091
|
(0, common_1.assertParamExists)('v1SuggestionsQueriesGet', 'xStoresecret', xStoresecret);
|
|
1093
1092
|
const localVarPath = `/v1/suggestions/queries`;
|
|
1094
1093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1095
|
-
const localVarUrlObj = new
|
|
1094
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1096
1095
|
let baseOptions;
|
|
1097
1096
|
if (configuration) {
|
|
1098
1097
|
baseOptions = configuration.baseOptions;
|
|
@@ -1179,7 +1178,7 @@ const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
|
|
|
1179
1178
|
(0, common_1.assertParamExists)('v1SuggestionsQueriesPost', 'xStoresecret', xStoresecret);
|
|
1180
1179
|
const localVarPath = `/v1/suggestions/queries`;
|
|
1181
1180
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1182
|
-
const localVarUrlObj = new
|
|
1181
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1183
1182
|
let baseOptions;
|
|
1184
1183
|
if (configuration) {
|
|
1185
1184
|
baseOptions = configuration.baseOptions;
|
|
@@ -1441,7 +1440,7 @@ const SDKDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
1441
1440
|
const localVarPath = `/api/v1/stores/{xStoreID}/documents/bulk`
|
|
1442
1441
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1443
1442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1444
|
-
const localVarUrlObj = new
|
|
1443
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1445
1444
|
let baseOptions;
|
|
1446
1445
|
if (configuration) {
|
|
1447
1446
|
baseOptions = configuration.baseOptions;
|
|
@@ -1489,7 +1488,7 @@ const SDKDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
1489
1488
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
1490
1489
|
.replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
|
|
1491
1490
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1492
|
-
const localVarUrlObj = new
|
|
1491
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1493
1492
|
let baseOptions;
|
|
1494
1493
|
if (configuration) {
|
|
1495
1494
|
baseOptions = configuration.baseOptions;
|
|
@@ -1534,7 +1533,7 @@ const SDKDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
1534
1533
|
const localVarPath = `/api/v1/stores/{xStoreID}/documents`
|
|
1535
1534
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1536
1535
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1537
|
-
const localVarUrlObj = new
|
|
1536
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1538
1537
|
let baseOptions;
|
|
1539
1538
|
if (configuration) {
|
|
1540
1539
|
baseOptions = configuration.baseOptions;
|
|
@@ -1736,7 +1735,7 @@ const SDKQuerySuggestionsConfigApiAxiosParamCreator = function (configuration) {
|
|
|
1736
1735
|
const localVarPath = `/api/v1/stores/{xStoreID}/query-suggestions/config`
|
|
1737
1736
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1738
1737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1739
|
-
const localVarUrlObj = new
|
|
1738
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1740
1739
|
let baseOptions;
|
|
1741
1740
|
if (configuration) {
|
|
1742
1741
|
baseOptions = configuration.baseOptions;
|
|
@@ -1781,7 +1780,7 @@ const SDKQuerySuggestionsConfigApiAxiosParamCreator = function (configuration) {
|
|
|
1781
1780
|
const localVarPath = `/api/v1/stores/{xStoreID}/query-suggestions/config`
|
|
1782
1781
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1783
1782
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1784
|
-
const localVarUrlObj = new
|
|
1783
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1785
1784
|
let baseOptions;
|
|
1786
1785
|
if (configuration) {
|
|
1787
1786
|
baseOptions = configuration.baseOptions;
|
|
@@ -1938,7 +1937,7 @@ const SDKSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
1938
1937
|
const localVarPath = `/api/v1/stores/{xStoreID}/documents`
|
|
1939
1938
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1940
1939
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1941
|
-
const localVarUrlObj = new
|
|
1940
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1942
1941
|
let baseOptions;
|
|
1943
1942
|
if (configuration) {
|
|
1944
1943
|
baseOptions = configuration.baseOptions;
|
|
@@ -1980,7 +1979,7 @@ const SDKSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
1980
1979
|
const localVarPath = `/api/v1/stores/{xStoreID}/schema`
|
|
1981
1980
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1982
1981
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1983
|
-
const localVarUrlObj = new
|
|
1982
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1984
1983
|
let baseOptions;
|
|
1985
1984
|
if (configuration) {
|
|
1986
1985
|
baseOptions = configuration.baseOptions;
|
|
@@ -2025,7 +2024,7 @@ const SDKSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
2025
2024
|
const localVarPath = `/api/v1/stores/{xStoreID}/schema`
|
|
2026
2025
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2027
2026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2028
|
-
const localVarUrlObj = new
|
|
2027
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2029
2028
|
let baseOptions;
|
|
2030
2029
|
if (configuration) {
|
|
2031
2030
|
baseOptions = configuration.baseOptions;
|
|
@@ -2221,7 +2220,7 @@ const SDKStoreConfigApiAxiosParamCreator = function (configuration) {
|
|
|
2221
2220
|
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
2222
2221
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2223
2222
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2224
|
-
const localVarUrlObj = new
|
|
2223
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2225
2224
|
let baseOptions;
|
|
2226
2225
|
if (configuration) {
|
|
2227
2226
|
baseOptions = configuration.baseOptions;
|
|
@@ -2266,7 +2265,7 @@ const SDKStoreConfigApiAxiosParamCreator = function (configuration) {
|
|
|
2266
2265
|
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
2267
2266
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2268
2267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2269
|
-
const localVarUrlObj = new
|
|
2268
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2270
2269
|
let baseOptions;
|
|
2271
2270
|
if (configuration) {
|
|
2272
2271
|
baseOptions = configuration.baseOptions;
|
|
@@ -2310,7 +2309,7 @@ const SDKStoreConfigApiAxiosParamCreator = function (configuration) {
|
|
|
2310
2309
|
const localVarPath = `/api/v1/stores/{xStoreID}/config-schema`
|
|
2311
2310
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2312
2311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2313
|
-
const localVarUrlObj = new
|
|
2312
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2314
2313
|
let baseOptions;
|
|
2315
2314
|
if (configuration) {
|
|
2316
2315
|
baseOptions = configuration.baseOptions;
|
|
@@ -2500,7 +2499,7 @@ const SDKStoreCreationApiAxiosParamCreator = function (configuration) {
|
|
|
2500
2499
|
(0, common_1.assertParamExists)('apiV1StoresPost', 'dataTypesPublicCreateStoreRequest', dataTypesPublicCreateStoreRequest);
|
|
2501
2500
|
const localVarPath = `/api/v1/stores`;
|
|
2502
2501
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2503
|
-
const localVarUrlObj = new
|
|
2502
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2504
2503
|
let baseOptions;
|
|
2505
2504
|
if (configuration) {
|
|
2506
2505
|
baseOptions = configuration.baseOptions;
|
|
@@ -2611,7 +2610,7 @@ const SDKStoreInfoApiAxiosParamCreator = function (configuration) {
|
|
|
2611
2610
|
const localVarPath = `/api/v1/stores/{xStoreID}`
|
|
2612
2611
|
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2613
2612
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2614
|
-
const localVarUrlObj = new
|
|
2613
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2615
2614
|
let baseOptions;
|
|
2616
2615
|
if (configuration) {
|
|
2617
2616
|
baseOptions = configuration.baseOptions;
|
|
@@ -2726,7 +2725,7 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
2726
2725
|
(0, common_1.assertParamExists)('v1SearchPost', 'dataTypesPublicSearchRequest', dataTypesPublicSearchRequest);
|
|
2727
2726
|
const localVarPath = `/v1/search`;
|
|
2728
2727
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2729
|
-
const localVarUrlObj = new
|
|
2728
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2730
2729
|
let baseOptions;
|
|
2731
2730
|
if (configuration) {
|
|
2732
2731
|
baseOptions = configuration.baseOptions;
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
import { URL } from 'url';
|
|
16
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
17
16
|
/**
|
|
18
17
|
*
|
package/dist/generated/common.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
|
-
|
|
18
|
+
// Note: URL and URLSearchParams are globally available in modern browsers (all ES2015+) and Node.js 10+
|
|
19
|
+
// We intentionally do NOT import from 'url' module as it causes bundling issues in browser environments
|
|
19
20
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
@@ -81,7 +82,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
const setSearchParams = function (url, ...objects) {
|
|
84
|
-
const searchParams = new
|
|
85
|
+
const searchParams = new URLSearchParams(url.search);
|
|
85
86
|
setFlattenedQueryParams(searchParams, objects);
|
|
86
87
|
url.search = searchParams.toString();
|
|
87
88
|
};
|