@seekora-ai/admin-api 1.1.41 → 1.1.43
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/README.md +12 -2
- package/api.ts +736 -0
- package/dist/api.d.ts +464 -0
- package/dist/api.js +538 -1
- package/dist/esm/api.d.ts +464 -0
- package/dist/esm/api.js +524 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.43.tgz +0 -0
- package/seekora-ai-admin-api-1.1.41.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -28,7 +28,8 @@ exports.AdminBillingGraphsUsageBreakdownGetGranularityEnum = exports.AdminBillin
|
|
|
28
28
|
exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.ExternalAPINotificationsApi = exports.ExternalAPINotificationsApiFactory = exports.ExternalAPINotificationsApiFp = exports.ExternalAPINotificationsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DefaultMenuManagementApi = exports.DefaultMenuManagementApiFactory = exports.DefaultMenuManagementApiFp = exports.DefaultMenuManagementApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CompanyConfigApi = exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyConfigApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = exports.CommonApiAxiosParamCreator = void 0;
|
|
29
29
|
exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationPreferencesApi = exports.NotificationPreferencesApiFactory = exports.NotificationPreferencesApiFp = exports.NotificationPreferencesApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.MenuRouteMetricsAdminApi = exports.MenuRouteMetricsAdminApiFactory = exports.MenuRouteMetricsAdminApiFp = exports.MenuRouteMetricsAdminApiAxiosParamCreator = exports.MenuRouteMetricGetFormnameEnum = exports.MenuRouteMetricGetRouteEnum = exports.MenuRouteMetricsApi = exports.MenuRouteMetricsApiFactory = exports.MenuRouteMetricsApiFp = exports.MenuRouteMetricsApiAxiosParamCreator = exports.MenuManagementApi = exports.MenuManagementApiFactory = exports.MenuManagementApiFp = exports.MenuManagementApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = void 0;
|
|
30
30
|
exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.V1NotificationsGetSortOrderEnum = exports.V1NotificationsGetSortByEnum = exports.V1NotificationsGetPriorityEnum = exports.V1NotificationsGetIsReadEnum = exports.V1NotificationsGetTypeEnum = exports.NotificationsApi = void 0;
|
|
31
|
-
exports.
|
|
31
|
+
exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = 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.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = void 0;
|
|
32
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = void 0;
|
|
32
33
|
const axios_1 = require("axios");
|
|
33
34
|
// Some imports not used depending on template conditions
|
|
34
35
|
// @ts-ignore
|
|
@@ -30639,6 +30640,542 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
30639
30640
|
}
|
|
30640
30641
|
}
|
|
30641
30642
|
exports.RolesApi = RolesApi;
|
|
30643
|
+
/**
|
|
30644
|
+
* SDKStoreConfigApi - axios parameter creator
|
|
30645
|
+
* @export
|
|
30646
|
+
*/
|
|
30647
|
+
const SDKStoreConfigApiAxiosParamCreator = function (configuration) {
|
|
30648
|
+
return {
|
|
30649
|
+
/**
|
|
30650
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
30651
|
+
* @summary Get Store Config (Public SDK API)
|
|
30652
|
+
* @param {string} xStoreid Store ID
|
|
30653
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
30654
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30655
|
+
* @param {*} [options] Override http request option.
|
|
30656
|
+
* @throws {RequiredError}
|
|
30657
|
+
*/
|
|
30658
|
+
apiV1StoresXStoreIDConfigGet: (xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xStoreID, options = {}) {
|
|
30659
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
30660
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigGet', 'xStoreid', xStoreid);
|
|
30661
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
30662
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigGet', 'xStoresecret', xStoresecret);
|
|
30663
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
30664
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigGet', 'xStoreID', xStoreID);
|
|
30665
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
30666
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
30667
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30668
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30669
|
+
let baseOptions;
|
|
30670
|
+
if (configuration) {
|
|
30671
|
+
baseOptions = configuration.baseOptions;
|
|
30672
|
+
}
|
|
30673
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
30674
|
+
const localVarHeaderParameter = {};
|
|
30675
|
+
const localVarQueryParameter = {};
|
|
30676
|
+
if (xStoreid != null) {
|
|
30677
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
30678
|
+
}
|
|
30679
|
+
if (xStoresecret != null) {
|
|
30680
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
30681
|
+
}
|
|
30682
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30685
|
+
return {
|
|
30686
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30687
|
+
options: localVarRequestOptions,
|
|
30688
|
+
};
|
|
30689
|
+
}),
|
|
30690
|
+
/**
|
|
30691
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
30692
|
+
* @summary Update Store Config (Public SDK API)
|
|
30693
|
+
* @param {string} xStoreid Store ID
|
|
30694
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
30695
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30696
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
30697
|
+
* @param {*} [options] Override http request option.
|
|
30698
|
+
* @throws {RequiredError}
|
|
30699
|
+
*/
|
|
30700
|
+
apiV1StoresXStoreIDConfigPut: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesIndexConfig_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesIndexConfig_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options = {}) {
|
|
30701
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
30702
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'xStoreid', xStoreid);
|
|
30703
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
30704
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
30705
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
30706
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'xStoreID', xStoreID);
|
|
30707
|
+
// verify required parameter 'dataTypesIndexConfig' is not null or undefined
|
|
30708
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig);
|
|
30709
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
30710
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
30711
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30712
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30713
|
+
let baseOptions;
|
|
30714
|
+
if (configuration) {
|
|
30715
|
+
baseOptions = configuration.baseOptions;
|
|
30716
|
+
}
|
|
30717
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
30718
|
+
const localVarHeaderParameter = {};
|
|
30719
|
+
const localVarQueryParameter = {};
|
|
30720
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30721
|
+
if (xStoreid != null) {
|
|
30722
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
30723
|
+
}
|
|
30724
|
+
if (xStoreWriteSecret != null) {
|
|
30725
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
30726
|
+
}
|
|
30727
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30728
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30729
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30730
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesIndexConfig, localVarRequestOptions, configuration);
|
|
30731
|
+
return {
|
|
30732
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30733
|
+
options: localVarRequestOptions,
|
|
30734
|
+
};
|
|
30735
|
+
}),
|
|
30736
|
+
/**
|
|
30737
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
30738
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
30739
|
+
* @param {string} xStoreid Store ID
|
|
30740
|
+
* @param {string} xStoresecret Store Secret
|
|
30741
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30742
|
+
* @param {*} [options] Override http request option.
|
|
30743
|
+
* @throws {RequiredError}
|
|
30744
|
+
*/
|
|
30745
|
+
apiV1StoresXStoreIDConfigSchemaGet: (xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xStoreID, options = {}) {
|
|
30746
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
30747
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigSchemaGet', 'xStoreid', xStoreid);
|
|
30748
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
30749
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigSchemaGet', 'xStoresecret', xStoresecret);
|
|
30750
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
30751
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID);
|
|
30752
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/config-schema`
|
|
30753
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
30754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30755
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30756
|
+
let baseOptions;
|
|
30757
|
+
if (configuration) {
|
|
30758
|
+
baseOptions = configuration.baseOptions;
|
|
30759
|
+
}
|
|
30760
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
30761
|
+
const localVarHeaderParameter = {};
|
|
30762
|
+
const localVarQueryParameter = {};
|
|
30763
|
+
if (xStoreid != null) {
|
|
30764
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
30765
|
+
}
|
|
30766
|
+
if (xStoresecret != null) {
|
|
30767
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
30768
|
+
}
|
|
30769
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30770
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30771
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30772
|
+
return {
|
|
30773
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30774
|
+
options: localVarRequestOptions,
|
|
30775
|
+
};
|
|
30776
|
+
}),
|
|
30777
|
+
};
|
|
30778
|
+
};
|
|
30779
|
+
exports.SDKStoreConfigApiAxiosParamCreator = SDKStoreConfigApiAxiosParamCreator;
|
|
30780
|
+
/**
|
|
30781
|
+
* SDKStoreConfigApi - functional programming interface
|
|
30782
|
+
* @export
|
|
30783
|
+
*/
|
|
30784
|
+
const SDKStoreConfigApiFp = function (configuration) {
|
|
30785
|
+
const localVarAxiosParamCreator = (0, exports.SDKStoreConfigApiAxiosParamCreator)(configuration);
|
|
30786
|
+
return {
|
|
30787
|
+
/**
|
|
30788
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
30789
|
+
* @summary Get Store Config (Public SDK API)
|
|
30790
|
+
* @param {string} xStoreid Store ID
|
|
30791
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
30792
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30793
|
+
* @param {*} [options] Override http request option.
|
|
30794
|
+
* @throws {RequiredError}
|
|
30795
|
+
*/
|
|
30796
|
+
apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
30797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30798
|
+
var _a, _b, _c;
|
|
30799
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options);
|
|
30800
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30801
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SDKStoreConfigApi.apiV1StoresXStoreIDConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30802
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30803
|
+
});
|
|
30804
|
+
},
|
|
30805
|
+
/**
|
|
30806
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
30807
|
+
* @summary Update Store Config (Public SDK API)
|
|
30808
|
+
* @param {string} xStoreid Store ID
|
|
30809
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
30810
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30811
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
30812
|
+
* @param {*} [options] Override http request option.
|
|
30813
|
+
* @throws {RequiredError}
|
|
30814
|
+
*/
|
|
30815
|
+
apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
|
|
30816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30817
|
+
var _a, _b, _c;
|
|
30818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options);
|
|
30819
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30820
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SDKStoreConfigApi.apiV1StoresXStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30821
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30822
|
+
});
|
|
30823
|
+
},
|
|
30824
|
+
/**
|
|
30825
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
30826
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
30827
|
+
* @param {string} xStoreid Store ID
|
|
30828
|
+
* @param {string} xStoresecret Store Secret
|
|
30829
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30830
|
+
* @param {*} [options] Override http request option.
|
|
30831
|
+
* @throws {RequiredError}
|
|
30832
|
+
*/
|
|
30833
|
+
apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
30834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30835
|
+
var _a, _b, _c;
|
|
30836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options);
|
|
30837
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30838
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SDKStoreConfigApi.apiV1StoresXStoreIDConfigSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30839
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30840
|
+
});
|
|
30841
|
+
},
|
|
30842
|
+
};
|
|
30843
|
+
};
|
|
30844
|
+
exports.SDKStoreConfigApiFp = SDKStoreConfigApiFp;
|
|
30845
|
+
/**
|
|
30846
|
+
* SDKStoreConfigApi - factory interface
|
|
30847
|
+
* @export
|
|
30848
|
+
*/
|
|
30849
|
+
const SDKStoreConfigApiFactory = function (configuration, basePath, axios) {
|
|
30850
|
+
const localVarFp = (0, exports.SDKStoreConfigApiFp)(configuration);
|
|
30851
|
+
return {
|
|
30852
|
+
/**
|
|
30853
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
30854
|
+
* @summary Get Store Config (Public SDK API)
|
|
30855
|
+
* @param {string} xStoreid Store ID
|
|
30856
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
30857
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30858
|
+
* @param {*} [options] Override http request option.
|
|
30859
|
+
* @throws {RequiredError}
|
|
30860
|
+
*/
|
|
30861
|
+
apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
30862
|
+
return localVarFp.apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
30863
|
+
},
|
|
30864
|
+
/**
|
|
30865
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
30866
|
+
* @summary Update Store Config (Public SDK API)
|
|
30867
|
+
* @param {string} xStoreid Store ID
|
|
30868
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
30869
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30870
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
30871
|
+
* @param {*} [options] Override http request option.
|
|
30872
|
+
* @throws {RequiredError}
|
|
30873
|
+
*/
|
|
30874
|
+
apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
|
|
30875
|
+
return localVarFp.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(axios, basePath));
|
|
30876
|
+
},
|
|
30877
|
+
/**
|
|
30878
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
30879
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
30880
|
+
* @param {string} xStoreid Store ID
|
|
30881
|
+
* @param {string} xStoresecret Store Secret
|
|
30882
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30883
|
+
* @param {*} [options] Override http request option.
|
|
30884
|
+
* @throws {RequiredError}
|
|
30885
|
+
*/
|
|
30886
|
+
apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
30887
|
+
return localVarFp.apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
30888
|
+
},
|
|
30889
|
+
};
|
|
30890
|
+
};
|
|
30891
|
+
exports.SDKStoreConfigApiFactory = SDKStoreConfigApiFactory;
|
|
30892
|
+
/**
|
|
30893
|
+
* SDKStoreConfigApi - object-oriented interface
|
|
30894
|
+
* @export
|
|
30895
|
+
* @class SDKStoreConfigApi
|
|
30896
|
+
* @extends {BaseAPI}
|
|
30897
|
+
*/
|
|
30898
|
+
class SDKStoreConfigApi extends base_1.BaseAPI {
|
|
30899
|
+
/**
|
|
30900
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
30901
|
+
* @summary Get Store Config (Public SDK API)
|
|
30902
|
+
* @param {string} xStoreid Store ID
|
|
30903
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
30904
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30905
|
+
* @param {*} [options] Override http request option.
|
|
30906
|
+
* @throws {RequiredError}
|
|
30907
|
+
* @memberof SDKStoreConfigApi
|
|
30908
|
+
*/
|
|
30909
|
+
apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
30910
|
+
return (0, exports.SDKStoreConfigApiFp)(this.configuration).apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
30911
|
+
}
|
|
30912
|
+
/**
|
|
30913
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
30914
|
+
* @summary Update Store Config (Public SDK API)
|
|
30915
|
+
* @param {string} xStoreid Store ID
|
|
30916
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
30917
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30918
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
30919
|
+
* @param {*} [options] Override http request option.
|
|
30920
|
+
* @throws {RequiredError}
|
|
30921
|
+
* @memberof SDKStoreConfigApi
|
|
30922
|
+
*/
|
|
30923
|
+
apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
|
|
30924
|
+
return (0, exports.SDKStoreConfigApiFp)(this.configuration).apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(this.axios, this.basePath));
|
|
30925
|
+
}
|
|
30926
|
+
/**
|
|
30927
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
30928
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
30929
|
+
* @param {string} xStoreid Store ID
|
|
30930
|
+
* @param {string} xStoresecret Store Secret
|
|
30931
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
30932
|
+
* @param {*} [options] Override http request option.
|
|
30933
|
+
* @throws {RequiredError}
|
|
30934
|
+
* @memberof SDKStoreConfigApi
|
|
30935
|
+
*/
|
|
30936
|
+
apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
30937
|
+
return (0, exports.SDKStoreConfigApiFp)(this.configuration).apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
30938
|
+
}
|
|
30939
|
+
}
|
|
30940
|
+
exports.SDKStoreConfigApi = SDKStoreConfigApi;
|
|
30941
|
+
/**
|
|
30942
|
+
* SDKStoreCreationApi - axios parameter creator
|
|
30943
|
+
* @export
|
|
30944
|
+
*/
|
|
30945
|
+
const SDKStoreCreationApiAxiosParamCreator = function (configuration) {
|
|
30946
|
+
return {
|
|
30947
|
+
/**
|
|
30948
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
30949
|
+
* @summary Create Store (Public SDK API)
|
|
30950
|
+
* @param {string} authorization Bearer JWT Token
|
|
30951
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
30952
|
+
* @param {*} [options] Override http request option.
|
|
30953
|
+
* @throws {RequiredError}
|
|
30954
|
+
*/
|
|
30955
|
+
apiV1StoresPost: (authorization_1, dataTypesPublicCreateStoreRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesPublicCreateStoreRequest_1, ...args_1], void 0, function* (authorization, dataTypesPublicCreateStoreRequest, options = {}) {
|
|
30956
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
30957
|
+
(0, common_1.assertParamExists)('apiV1StoresPost', 'authorization', authorization);
|
|
30958
|
+
// verify required parameter 'dataTypesPublicCreateStoreRequest' is not null or undefined
|
|
30959
|
+
(0, common_1.assertParamExists)('apiV1StoresPost', 'dataTypesPublicCreateStoreRequest', dataTypesPublicCreateStoreRequest);
|
|
30960
|
+
const localVarPath = `/api/v1/stores`;
|
|
30961
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30962
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30963
|
+
let baseOptions;
|
|
30964
|
+
if (configuration) {
|
|
30965
|
+
baseOptions = configuration.baseOptions;
|
|
30966
|
+
}
|
|
30967
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
30968
|
+
const localVarHeaderParameter = {};
|
|
30969
|
+
const localVarQueryParameter = {};
|
|
30970
|
+
// authentication BearerAuth required
|
|
30971
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
30972
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30973
|
+
if (authorization != null) {
|
|
30974
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
30975
|
+
}
|
|
30976
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30978
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30979
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesPublicCreateStoreRequest, localVarRequestOptions, configuration);
|
|
30980
|
+
return {
|
|
30981
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30982
|
+
options: localVarRequestOptions,
|
|
30983
|
+
};
|
|
30984
|
+
}),
|
|
30985
|
+
};
|
|
30986
|
+
};
|
|
30987
|
+
exports.SDKStoreCreationApiAxiosParamCreator = SDKStoreCreationApiAxiosParamCreator;
|
|
30988
|
+
/**
|
|
30989
|
+
* SDKStoreCreationApi - functional programming interface
|
|
30990
|
+
* @export
|
|
30991
|
+
*/
|
|
30992
|
+
const SDKStoreCreationApiFp = function (configuration) {
|
|
30993
|
+
const localVarAxiosParamCreator = (0, exports.SDKStoreCreationApiAxiosParamCreator)(configuration);
|
|
30994
|
+
return {
|
|
30995
|
+
/**
|
|
30996
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
30997
|
+
* @summary Create Store (Public SDK API)
|
|
30998
|
+
* @param {string} authorization Bearer JWT Token
|
|
30999
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
31000
|
+
* @param {*} [options] Override http request option.
|
|
31001
|
+
* @throws {RequiredError}
|
|
31002
|
+
*/
|
|
31003
|
+
apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
|
|
31004
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31005
|
+
var _a, _b, _c;
|
|
31006
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options);
|
|
31007
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31008
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SDKStoreCreationApi.apiV1StoresPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31009
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31010
|
+
});
|
|
31011
|
+
},
|
|
31012
|
+
};
|
|
31013
|
+
};
|
|
31014
|
+
exports.SDKStoreCreationApiFp = SDKStoreCreationApiFp;
|
|
31015
|
+
/**
|
|
31016
|
+
* SDKStoreCreationApi - factory interface
|
|
31017
|
+
* @export
|
|
31018
|
+
*/
|
|
31019
|
+
const SDKStoreCreationApiFactory = function (configuration, basePath, axios) {
|
|
31020
|
+
const localVarFp = (0, exports.SDKStoreCreationApiFp)(configuration);
|
|
31021
|
+
return {
|
|
31022
|
+
/**
|
|
31023
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
31024
|
+
* @summary Create Store (Public SDK API)
|
|
31025
|
+
* @param {string} authorization Bearer JWT Token
|
|
31026
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
31027
|
+
* @param {*} [options] Override http request option.
|
|
31028
|
+
* @throws {RequiredError}
|
|
31029
|
+
*/
|
|
31030
|
+
apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
|
|
31031
|
+
return localVarFp.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(axios, basePath));
|
|
31032
|
+
},
|
|
31033
|
+
};
|
|
31034
|
+
};
|
|
31035
|
+
exports.SDKStoreCreationApiFactory = SDKStoreCreationApiFactory;
|
|
31036
|
+
/**
|
|
31037
|
+
* SDKStoreCreationApi - object-oriented interface
|
|
31038
|
+
* @export
|
|
31039
|
+
* @class SDKStoreCreationApi
|
|
31040
|
+
* @extends {BaseAPI}
|
|
31041
|
+
*/
|
|
31042
|
+
class SDKStoreCreationApi extends base_1.BaseAPI {
|
|
31043
|
+
/**
|
|
31044
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
31045
|
+
* @summary Create Store (Public SDK API)
|
|
31046
|
+
* @param {string} authorization Bearer JWT Token
|
|
31047
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
31048
|
+
* @param {*} [options] Override http request option.
|
|
31049
|
+
* @throws {RequiredError}
|
|
31050
|
+
* @memberof SDKStoreCreationApi
|
|
31051
|
+
*/
|
|
31052
|
+
apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
|
|
31053
|
+
return (0, exports.SDKStoreCreationApiFp)(this.configuration).apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
31054
|
+
}
|
|
31055
|
+
}
|
|
31056
|
+
exports.SDKStoreCreationApi = SDKStoreCreationApi;
|
|
31057
|
+
/**
|
|
31058
|
+
* SDKStoreInfoApi - axios parameter creator
|
|
31059
|
+
* @export
|
|
31060
|
+
*/
|
|
31061
|
+
const SDKStoreInfoApiAxiosParamCreator = function (configuration) {
|
|
31062
|
+
return {
|
|
31063
|
+
/**
|
|
31064
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
31065
|
+
* @summary Get Store Info (Public SDK API)
|
|
31066
|
+
* @param {string} xStoreid Store ID
|
|
31067
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
31068
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
31069
|
+
* @param {*} [options] Override http request option.
|
|
31070
|
+
* @throws {RequiredError}
|
|
31071
|
+
*/
|
|
31072
|
+
apiV1StoresXStoreIDGet: (xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xStoreID, options = {}) {
|
|
31073
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
31074
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDGet', 'xStoreid', xStoreid);
|
|
31075
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
31076
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDGet', 'xStoresecret', xStoresecret);
|
|
31077
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
31078
|
+
(0, common_1.assertParamExists)('apiV1StoresXStoreIDGet', 'xStoreID', xStoreID);
|
|
31079
|
+
const localVarPath = `/api/v1/stores/{xStoreID}`
|
|
31080
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
31081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
31083
|
+
let baseOptions;
|
|
31084
|
+
if (configuration) {
|
|
31085
|
+
baseOptions = configuration.baseOptions;
|
|
31086
|
+
}
|
|
31087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
31088
|
+
const localVarHeaderParameter = {};
|
|
31089
|
+
const localVarQueryParameter = {};
|
|
31090
|
+
if (xStoreid != null) {
|
|
31091
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
31092
|
+
}
|
|
31093
|
+
if (xStoresecret != null) {
|
|
31094
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
31095
|
+
}
|
|
31096
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
31097
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31098
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31099
|
+
return {
|
|
31100
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
31101
|
+
options: localVarRequestOptions,
|
|
31102
|
+
};
|
|
31103
|
+
}),
|
|
31104
|
+
};
|
|
31105
|
+
};
|
|
31106
|
+
exports.SDKStoreInfoApiAxiosParamCreator = SDKStoreInfoApiAxiosParamCreator;
|
|
31107
|
+
/**
|
|
31108
|
+
* SDKStoreInfoApi - functional programming interface
|
|
31109
|
+
* @export
|
|
31110
|
+
*/
|
|
31111
|
+
const SDKStoreInfoApiFp = function (configuration) {
|
|
31112
|
+
const localVarAxiosParamCreator = (0, exports.SDKStoreInfoApiAxiosParamCreator)(configuration);
|
|
31113
|
+
return {
|
|
31114
|
+
/**
|
|
31115
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
31116
|
+
* @summary Get Store Info (Public SDK API)
|
|
31117
|
+
* @param {string} xStoreid Store ID
|
|
31118
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
31119
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
31120
|
+
* @param {*} [options] Override http request option.
|
|
31121
|
+
* @throws {RequiredError}
|
|
31122
|
+
*/
|
|
31123
|
+
apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
31124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31125
|
+
var _a, _b, _c;
|
|
31126
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options);
|
|
31127
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31128
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SDKStoreInfoApi.apiV1StoresXStoreIDGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31129
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31130
|
+
});
|
|
31131
|
+
},
|
|
31132
|
+
};
|
|
31133
|
+
};
|
|
31134
|
+
exports.SDKStoreInfoApiFp = SDKStoreInfoApiFp;
|
|
31135
|
+
/**
|
|
31136
|
+
* SDKStoreInfoApi - factory interface
|
|
31137
|
+
* @export
|
|
31138
|
+
*/
|
|
31139
|
+
const SDKStoreInfoApiFactory = function (configuration, basePath, axios) {
|
|
31140
|
+
const localVarFp = (0, exports.SDKStoreInfoApiFp)(configuration);
|
|
31141
|
+
return {
|
|
31142
|
+
/**
|
|
31143
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
31144
|
+
* @summary Get Store Info (Public SDK API)
|
|
31145
|
+
* @param {string} xStoreid Store ID
|
|
31146
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
31147
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
31148
|
+
* @param {*} [options] Override http request option.
|
|
31149
|
+
* @throws {RequiredError}
|
|
31150
|
+
*/
|
|
31151
|
+
apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
31152
|
+
return localVarFp.apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
31153
|
+
},
|
|
31154
|
+
};
|
|
31155
|
+
};
|
|
31156
|
+
exports.SDKStoreInfoApiFactory = SDKStoreInfoApiFactory;
|
|
31157
|
+
/**
|
|
31158
|
+
* SDKStoreInfoApi - object-oriented interface
|
|
31159
|
+
* @export
|
|
31160
|
+
* @class SDKStoreInfoApi
|
|
31161
|
+
* @extends {BaseAPI}
|
|
31162
|
+
*/
|
|
31163
|
+
class SDKStoreInfoApi extends base_1.BaseAPI {
|
|
31164
|
+
/**
|
|
31165
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
31166
|
+
* @summary Get Store Info (Public SDK API)
|
|
31167
|
+
* @param {string} xStoreid Store ID
|
|
31168
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
31169
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
31170
|
+
* @param {*} [options] Override http request option.
|
|
31171
|
+
* @throws {RequiredError}
|
|
31172
|
+
* @memberof SDKStoreInfoApi
|
|
31173
|
+
*/
|
|
31174
|
+
apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
31175
|
+
return (0, exports.SDKStoreInfoApiFp)(this.configuration).apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
31176
|
+
}
|
|
31177
|
+
}
|
|
31178
|
+
exports.SDKStoreInfoApi = SDKStoreInfoApi;
|
|
30642
31179
|
/**
|
|
30643
31180
|
* SearchApi - axios parameter creator
|
|
30644
31181
|
* @export
|