@seekora-ai/admin-api 1.0.73 → 1.0.74

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/dist/api.js CHANGED
@@ -26,7 +26,7 @@ exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = exports.AdminAnalyt
26
26
  exports.CommonApiFp = exports.CommonApiAxiosParamCreator = exports.BillingDashboardApi = exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = exports.AutomatedRefundManagementApi = exports.AutomatedRefundManagementApiFactory = exports.AutomatedRefundManagementApiFp = exports.AutomatedRefundManagementApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AnalyticsRulesApi = exports.AnalyticsRulesApiFactory = exports.AnalyticsRulesApiFp = exports.AnalyticsRulesApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = void 0;
27
27
  exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = 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 = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.ApiCreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = void 0;
28
28
  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.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = void 0;
29
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = 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 = exports.RegisterApiFp = void 0;
29
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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.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 = exports.RegisterApiFp = void 0;
30
30
  const axios_1 = require("axios");
31
31
  // Some imports not used depending on template conditions
32
32
  // @ts-ignore
@@ -15439,6 +15439,43 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15439
15439
  options: localVarRequestOptions,
15440
15440
  };
15441
15441
  }),
15442
+ /**
15443
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15444
+ * @summary Get a single subscription plan by ID or identifier
15445
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15446
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15447
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15448
+ * @param {*} [options] Override http request option.
15449
+ * @throws {RequiredError}
15450
+ */
15451
+ v1SubscriptionPlansIdGet: (id_1, currency_1, billingFrequency_1, ...args_1) => __awaiter(this, [id_1, currency_1, billingFrequency_1, ...args_1], void 0, function* (id, currency, billingFrequency, options = {}) {
15452
+ // verify required parameter 'id' is not null or undefined
15453
+ (0, common_1.assertParamExists)('v1SubscriptionPlansIdGet', 'id', id);
15454
+ const localVarPath = `/v1/subscription-plans/{id}`
15455
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15457
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15458
+ let baseOptions;
15459
+ if (configuration) {
15460
+ baseOptions = configuration.baseOptions;
15461
+ }
15462
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15463
+ const localVarHeaderParameter = {};
15464
+ const localVarQueryParameter = {};
15465
+ if (currency !== undefined) {
15466
+ localVarQueryParameter['currency'] = currency;
15467
+ }
15468
+ if (billingFrequency !== undefined) {
15469
+ localVarQueryParameter['billing_frequency'] = billingFrequency;
15470
+ }
15471
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15472
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15473
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15474
+ return {
15475
+ url: (0, common_1.toPathString)(localVarUrlObj),
15476
+ options: localVarRequestOptions,
15477
+ };
15478
+ }),
15442
15479
  };
15443
15480
  };
15444
15481
  exports.PaymentGatewayApiAxiosParamCreator = PaymentGatewayApiAxiosParamCreator;
@@ -15557,6 +15594,24 @@ const PaymentGatewayApiFp = function (configuration) {
15557
15594
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15558
15595
  });
15559
15596
  },
15597
+ /**
15598
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15599
+ * @summary Get a single subscription plan by ID or identifier
15600
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15601
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15602
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15603
+ * @param {*} [options] Override http request option.
15604
+ * @throws {RequiredError}
15605
+ */
15606
+ v1SubscriptionPlansIdGet(id, currency, billingFrequency, options) {
15607
+ return __awaiter(this, void 0, void 0, function* () {
15608
+ var _a, _b, _c;
15609
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SubscriptionPlansIdGet(id, currency, billingFrequency, options);
15610
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15611
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.v1SubscriptionPlansIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15612
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15613
+ });
15614
+ },
15560
15615
  };
15561
15616
  };
15562
15617
  exports.PaymentGatewayApiFp = PaymentGatewayApiFp;
@@ -15633,6 +15688,18 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
15633
15688
  v1SubscriptionPlansGet(options) {
15634
15689
  return localVarFp.v1SubscriptionPlansGet(options).then((request) => request(axios, basePath));
15635
15690
  },
15691
+ /**
15692
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15693
+ * @summary Get a single subscription plan by ID or identifier
15694
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15695
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15696
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15697
+ * @param {*} [options] Override http request option.
15698
+ * @throws {RequiredError}
15699
+ */
15700
+ v1SubscriptionPlansIdGet(id, currency, billingFrequency, options) {
15701
+ return localVarFp.v1SubscriptionPlansIdGet(id, currency, billingFrequency, options).then((request) => request(axios, basePath));
15702
+ },
15636
15703
  };
15637
15704
  };
15638
15705
  exports.PaymentGatewayApiFactory = PaymentGatewayApiFactory;
@@ -15716,6 +15783,19 @@ class PaymentGatewayApi extends base_1.BaseAPI {
15716
15783
  v1SubscriptionPlansGet(options) {
15717
15784
  return (0, exports.PaymentGatewayApiFp)(this.configuration).v1SubscriptionPlansGet(options).then((request) => request(this.axios, this.basePath));
15718
15785
  }
15786
+ /**
15787
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15788
+ * @summary Get a single subscription plan by ID or identifier
15789
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15790
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15791
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15792
+ * @param {*} [options] Override http request option.
15793
+ * @throws {RequiredError}
15794
+ * @memberof PaymentGatewayApi
15795
+ */
15796
+ v1SubscriptionPlansIdGet(id, currency, billingFrequency, options) {
15797
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).v1SubscriptionPlansIdGet(id, currency, billingFrequency, options).then((request) => request(this.axios, this.basePath));
15798
+ }
15719
15799
  }
15720
15800
  exports.PaymentGatewayApi = PaymentGatewayApi;
15721
15801
  /**
@@ -23579,6 +23659,388 @@ class StopwordsApi extends base_1.BaseAPI {
23579
23659
  }
23580
23660
  }
23581
23661
  exports.StopwordsApi = StopwordsApi;
23662
+ /**
23663
+ * StoreCreationApi - axios parameter creator
23664
+ * @export
23665
+ */
23666
+ const StoreCreationApiAxiosParamCreator = function (configuration) {
23667
+ return {
23668
+ /**
23669
+ * Deletes (soft delete) the current store creation progress
23670
+ * @summary Delete store creation progress
23671
+ * @param {*} [options] Override http request option.
23672
+ * @throws {RequiredError}
23673
+ */
23674
+ adminV1StoreCreationProgressDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
23675
+ const localVarPath = `/admin/v1/store-creation/progress`;
23676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23677
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23678
+ let baseOptions;
23679
+ if (configuration) {
23680
+ baseOptions = configuration.baseOptions;
23681
+ }
23682
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
23683
+ const localVarHeaderParameter = {};
23684
+ const localVarQueryParameter = {};
23685
+ // authentication BearerAuth required
23686
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
23687
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23688
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23689
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23690
+ return {
23691
+ url: (0, common_1.toPathString)(localVarUrlObj),
23692
+ options: localVarRequestOptions,
23693
+ };
23694
+ }),
23695
+ /**
23696
+ * Retrieves the current step and state of store creation for the user
23697
+ * @summary Get current store creation progress
23698
+ * @param {*} [options] Override http request option.
23699
+ * @throws {RequiredError}
23700
+ */
23701
+ adminV1StoreCreationProgressGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
23702
+ const localVarPath = `/admin/v1/store-creation/progress`;
23703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23704
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23705
+ let baseOptions;
23706
+ if (configuration) {
23707
+ baseOptions = configuration.baseOptions;
23708
+ }
23709
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
23710
+ const localVarHeaderParameter = {};
23711
+ const localVarQueryParameter = {};
23712
+ // authentication BearerAuth required
23713
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
23714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23716
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23717
+ return {
23718
+ url: (0, common_1.toPathString)(localVarUrlObj),
23719
+ options: localVarRequestOptions,
23720
+ };
23721
+ }),
23722
+ /**
23723
+ * Uploads a custom schema JSON file for store data structure definition
23724
+ * @summary Upload custom schema for store
23725
+ * @param {File} file Schema JSON file
23726
+ * @param {*} [options] Override http request option.
23727
+ * @throws {RequiredError}
23728
+ */
23729
+ adminV1StoreCreationSchemaUploadPost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
23730
+ // verify required parameter 'file' is not null or undefined
23731
+ (0, common_1.assertParamExists)('adminV1StoreCreationSchemaUploadPost', 'file', file);
23732
+ const localVarPath = `/admin/v1/store-creation/schema-upload`;
23733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23734
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23735
+ let baseOptions;
23736
+ if (configuration) {
23737
+ baseOptions = configuration.baseOptions;
23738
+ }
23739
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23740
+ const localVarHeaderParameter = {};
23741
+ const localVarQueryParameter = {};
23742
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
23743
+ // authentication BearerAuth required
23744
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
23745
+ if (file !== undefined) {
23746
+ localVarFormParams.append('file', file);
23747
+ }
23748
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
23749
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23750
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23751
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23752
+ localVarRequestOptions.data = localVarFormParams;
23753
+ return {
23754
+ url: (0, common_1.toPathString)(localVarUrlObj),
23755
+ options: localVarRequestOptions,
23756
+ };
23757
+ }),
23758
+ /**
23759
+ * Updates a specific step in the store creation flow
23760
+ * @summary Update store creation step
23761
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23762
+ * @param {*} [options] Override http request option.
23763
+ * @throws {RequiredError}
23764
+ */
23765
+ adminV1StoreCreationStepPost: (dataTypesStoreCreationRequest_1, ...args_1) => __awaiter(this, [dataTypesStoreCreationRequest_1, ...args_1], void 0, function* (dataTypesStoreCreationRequest, options = {}) {
23766
+ // verify required parameter 'dataTypesStoreCreationRequest' is not null or undefined
23767
+ (0, common_1.assertParamExists)('adminV1StoreCreationStepPost', 'dataTypesStoreCreationRequest', dataTypesStoreCreationRequest);
23768
+ const localVarPath = `/admin/v1/store-creation/step`;
23769
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23770
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23771
+ let baseOptions;
23772
+ if (configuration) {
23773
+ baseOptions = configuration.baseOptions;
23774
+ }
23775
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23776
+ const localVarHeaderParameter = {};
23777
+ const localVarQueryParameter = {};
23778
+ // authentication BearerAuth required
23779
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
23780
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23781
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23782
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23783
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23784
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreCreationRequest, localVarRequestOptions, configuration);
23785
+ return {
23786
+ url: (0, common_1.toPathString)(localVarUrlObj),
23787
+ options: localVarRequestOptions,
23788
+ };
23789
+ }),
23790
+ /**
23791
+ * Uploads a custom JSON or CSV file for store data import
23792
+ * @summary Upload custom data file for store
23793
+ * @param {number} storeId Store ID
23794
+ * @param {File} file Data file (JSON or CSV)
23795
+ * @param {*} [options] Override http request option.
23796
+ * @throws {RequiredError}
23797
+ */
23798
+ adminV1StoreCreationStoreIdUploadDataPost: (storeId_1, file_1, ...args_1) => __awaiter(this, [storeId_1, file_1, ...args_1], void 0, function* (storeId, file, options = {}) {
23799
+ // verify required parameter 'storeId' is not null or undefined
23800
+ (0, common_1.assertParamExists)('adminV1StoreCreationStoreIdUploadDataPost', 'storeId', storeId);
23801
+ // verify required parameter 'file' is not null or undefined
23802
+ (0, common_1.assertParamExists)('adminV1StoreCreationStoreIdUploadDataPost', 'file', file);
23803
+ const localVarPath = `/admin/v1/store-creation/{storeId}/upload-data`
23804
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
23805
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23806
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23807
+ let baseOptions;
23808
+ if (configuration) {
23809
+ baseOptions = configuration.baseOptions;
23810
+ }
23811
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23812
+ const localVarHeaderParameter = {};
23813
+ const localVarQueryParameter = {};
23814
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
23815
+ // authentication BearerAuth required
23816
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
23817
+ if (file !== undefined) {
23818
+ localVarFormParams.append('file', file);
23819
+ }
23820
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
23821
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23822
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23823
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23824
+ localVarRequestOptions.data = localVarFormParams;
23825
+ return {
23826
+ url: (0, common_1.toPathString)(localVarUrlObj),
23827
+ options: localVarRequestOptions,
23828
+ };
23829
+ }),
23830
+ };
23831
+ };
23832
+ exports.StoreCreationApiAxiosParamCreator = StoreCreationApiAxiosParamCreator;
23833
+ /**
23834
+ * StoreCreationApi - functional programming interface
23835
+ * @export
23836
+ */
23837
+ const StoreCreationApiFp = function (configuration) {
23838
+ const localVarAxiosParamCreator = (0, exports.StoreCreationApiAxiosParamCreator)(configuration);
23839
+ return {
23840
+ /**
23841
+ * Deletes (soft delete) the current store creation progress
23842
+ * @summary Delete store creation progress
23843
+ * @param {*} [options] Override http request option.
23844
+ * @throws {RequiredError}
23845
+ */
23846
+ adminV1StoreCreationProgressDelete(options) {
23847
+ return __awaiter(this, void 0, void 0, function* () {
23848
+ var _a, _b, _c;
23849
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationProgressDelete(options);
23850
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23851
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationProgressDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23852
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23853
+ });
23854
+ },
23855
+ /**
23856
+ * Retrieves the current step and state of store creation for the user
23857
+ * @summary Get current store creation progress
23858
+ * @param {*} [options] Override http request option.
23859
+ * @throws {RequiredError}
23860
+ */
23861
+ adminV1StoreCreationProgressGet(options) {
23862
+ return __awaiter(this, void 0, void 0, function* () {
23863
+ var _a, _b, _c;
23864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationProgressGet(options);
23865
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23866
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationProgressGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23867
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23868
+ });
23869
+ },
23870
+ /**
23871
+ * Uploads a custom schema JSON file for store data structure definition
23872
+ * @summary Upload custom schema for store
23873
+ * @param {File} file Schema JSON file
23874
+ * @param {*} [options] Override http request option.
23875
+ * @throws {RequiredError}
23876
+ */
23877
+ adminV1StoreCreationSchemaUploadPost(file, options) {
23878
+ return __awaiter(this, void 0, void 0, function* () {
23879
+ var _a, _b, _c;
23880
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationSchemaUploadPost(file, options);
23881
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23882
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationSchemaUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23883
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23884
+ });
23885
+ },
23886
+ /**
23887
+ * Updates a specific step in the store creation flow
23888
+ * @summary Update store creation step
23889
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23890
+ * @param {*} [options] Override http request option.
23891
+ * @throws {RequiredError}
23892
+ */
23893
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
23894
+ return __awaiter(this, void 0, void 0, function* () {
23895
+ var _a, _b, _c;
23896
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options);
23897
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23898
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationStepPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23899
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23900
+ });
23901
+ },
23902
+ /**
23903
+ * Uploads a custom JSON or CSV file for store data import
23904
+ * @summary Upload custom data file for store
23905
+ * @param {number} storeId Store ID
23906
+ * @param {File} file Data file (JSON or CSV)
23907
+ * @param {*} [options] Override http request option.
23908
+ * @throws {RequiredError}
23909
+ */
23910
+ adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options) {
23911
+ return __awaiter(this, void 0, void 0, function* () {
23912
+ var _a, _b, _c;
23913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options);
23914
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23915
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationStoreIdUploadDataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23916
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23917
+ });
23918
+ },
23919
+ };
23920
+ };
23921
+ exports.StoreCreationApiFp = StoreCreationApiFp;
23922
+ /**
23923
+ * StoreCreationApi - factory interface
23924
+ * @export
23925
+ */
23926
+ const StoreCreationApiFactory = function (configuration, basePath, axios) {
23927
+ const localVarFp = (0, exports.StoreCreationApiFp)(configuration);
23928
+ return {
23929
+ /**
23930
+ * Deletes (soft delete) the current store creation progress
23931
+ * @summary Delete store creation progress
23932
+ * @param {*} [options] Override http request option.
23933
+ * @throws {RequiredError}
23934
+ */
23935
+ adminV1StoreCreationProgressDelete(options) {
23936
+ return localVarFp.adminV1StoreCreationProgressDelete(options).then((request) => request(axios, basePath));
23937
+ },
23938
+ /**
23939
+ * Retrieves the current step and state of store creation for the user
23940
+ * @summary Get current store creation progress
23941
+ * @param {*} [options] Override http request option.
23942
+ * @throws {RequiredError}
23943
+ */
23944
+ adminV1StoreCreationProgressGet(options) {
23945
+ return localVarFp.adminV1StoreCreationProgressGet(options).then((request) => request(axios, basePath));
23946
+ },
23947
+ /**
23948
+ * Uploads a custom schema JSON file for store data structure definition
23949
+ * @summary Upload custom schema for store
23950
+ * @param {File} file Schema JSON file
23951
+ * @param {*} [options] Override http request option.
23952
+ * @throws {RequiredError}
23953
+ */
23954
+ adminV1StoreCreationSchemaUploadPost(file, options) {
23955
+ return localVarFp.adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(axios, basePath));
23956
+ },
23957
+ /**
23958
+ * Updates a specific step in the store creation flow
23959
+ * @summary Update store creation step
23960
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23961
+ * @param {*} [options] Override http request option.
23962
+ * @throws {RequiredError}
23963
+ */
23964
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
23965
+ return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
23966
+ },
23967
+ /**
23968
+ * Uploads a custom JSON or CSV file for store data import
23969
+ * @summary Upload custom data file for store
23970
+ * @param {number} storeId Store ID
23971
+ * @param {File} file Data file (JSON or CSV)
23972
+ * @param {*} [options] Override http request option.
23973
+ * @throws {RequiredError}
23974
+ */
23975
+ adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options) {
23976
+ return localVarFp.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(axios, basePath));
23977
+ },
23978
+ };
23979
+ };
23980
+ exports.StoreCreationApiFactory = StoreCreationApiFactory;
23981
+ /**
23982
+ * StoreCreationApi - object-oriented interface
23983
+ * @export
23984
+ * @class StoreCreationApi
23985
+ * @extends {BaseAPI}
23986
+ */
23987
+ class StoreCreationApi extends base_1.BaseAPI {
23988
+ /**
23989
+ * Deletes (soft delete) the current store creation progress
23990
+ * @summary Delete store creation progress
23991
+ * @param {*} [options] Override http request option.
23992
+ * @throws {RequiredError}
23993
+ * @memberof StoreCreationApi
23994
+ */
23995
+ adminV1StoreCreationProgressDelete(options) {
23996
+ return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationProgressDelete(options).then((request) => request(this.axios, this.basePath));
23997
+ }
23998
+ /**
23999
+ * Retrieves the current step and state of store creation for the user
24000
+ * @summary Get current store creation progress
24001
+ * @param {*} [options] Override http request option.
24002
+ * @throws {RequiredError}
24003
+ * @memberof StoreCreationApi
24004
+ */
24005
+ adminV1StoreCreationProgressGet(options) {
24006
+ return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationProgressGet(options).then((request) => request(this.axios, this.basePath));
24007
+ }
24008
+ /**
24009
+ * Uploads a custom schema JSON file for store data structure definition
24010
+ * @summary Upload custom schema for store
24011
+ * @param {File} file Schema JSON file
24012
+ * @param {*} [options] Override http request option.
24013
+ * @throws {RequiredError}
24014
+ * @memberof StoreCreationApi
24015
+ */
24016
+ adminV1StoreCreationSchemaUploadPost(file, options) {
24017
+ return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(this.axios, this.basePath));
24018
+ }
24019
+ /**
24020
+ * Updates a specific step in the store creation flow
24021
+ * @summary Update store creation step
24022
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
24023
+ * @param {*} [options] Override http request option.
24024
+ * @throws {RequiredError}
24025
+ * @memberof StoreCreationApi
24026
+ */
24027
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
24028
+ return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
24029
+ }
24030
+ /**
24031
+ * Uploads a custom JSON or CSV file for store data import
24032
+ * @summary Upload custom data file for store
24033
+ * @param {number} storeId Store ID
24034
+ * @param {File} file Data file (JSON or CSV)
24035
+ * @param {*} [options] Override http request option.
24036
+ * @throws {RequiredError}
24037
+ * @memberof StoreCreationApi
24038
+ */
24039
+ adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options) {
24040
+ return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(this.axios, this.basePath));
24041
+ }
24042
+ }
24043
+ exports.StoreCreationApi = StoreCreationApi;
23582
24044
  /**
23583
24045
  * StoreDocumentsApi - axios parameter creator
23584
24046
  * @export