@seekora-ai/admin-api 1.0.50 → 1.0.52

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
@@ -22,16 +22,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesCreditTransactionTransactionTypeEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = void 0;
26
- 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.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = 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.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = void 0;
27
- 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 = 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 = void 0;
28
- 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 = exports.RegisterApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = void 0;
25
+ exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesCreditTransactionTransactionTypeEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.AnalyticsQuerySuggestionStatus = exports.AnalyticsQuerySuggestionSource = exports.AnalyticsBulkOperation = void 0;
26
+ 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.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = 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.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = void 0;
27
+ 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 = 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 = void 0;
28
+ 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 = exports.RegisterApiAxiosParamCreator = 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 = 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 = void 0;
29
30
  const axios_1 = require("axios");
30
31
  // Some imports not used depending on template conditions
31
32
  // @ts-ignore
32
33
  const common_1 = require("./common");
33
34
  // @ts-ignore
34
35
  const base_1 = require("./base");
36
+ /**
37
+ *
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ exports.AnalyticsBulkOperation = {
42
+ BulkEnable: 'enable',
43
+ BulkDisable: 'disable',
44
+ BulkDelete: 'delete',
45
+ BulkUpdatePriority: 'update_priority'
46
+ };
47
+ /**
48
+ *
49
+ * @export
50
+ * @enum {string}
51
+ */
52
+ exports.AnalyticsQuerySuggestionSource = {
53
+ SourceAutoGenerated: 'auto_generated',
54
+ SourceManual: 'manual',
55
+ SourceImported: 'imported'
56
+ };
57
+ /**
58
+ *
59
+ * @export
60
+ * @enum {string}
61
+ */
62
+ exports.AnalyticsQuerySuggestionStatus = {
63
+ StatusEnabled: 'enabled',
64
+ StatusDisabled: 'disabled'
65
+ };
35
66
  exports.DataTypesCreateCustomWordListRequestTypeEnum = {
36
67
  Stopwords: 'stopwords',
37
68
  Synonyms: 'synonyms'
@@ -1456,6 +1487,133 @@ const AnalyticsApiAxiosParamCreator = function (configuration) {
1456
1487
  options: localVarRequestOptions,
1457
1488
  };
1458
1489
  }),
1490
+ /**
1491
+ * Retrieve comprehensive analytics insights for a specific geographic location including all core metrics (Total Searches, Total Clicks, CTR, Conversions, CVR, Revenue), popular queries with performance metrics, top results by region with average rankings, popular filters used per region with performance impact, and totals & rates with optional comparison mode and internal pagination for each subsection
1492
+ * @summary Get Geographic Insights
1493
+ * @param {string} xStoreID Store ID
1494
+ * @param {string} [country] Country name to analyze
1495
+ * @param {string} [region] Region/state name to analyze
1496
+ * @param {string} [city] City name to analyze
1497
+ * @param {string} [startTime] Start time in RFC3339 format
1498
+ * @param {string} [endTime] End time in RFC3339 format
1499
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter (e.g., \'campaign:summer,source:email\')
1500
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
1501
+ * @param {string} [tagsExclude] Comma-separated analytics tags to exclude
1502
+ * @param {string} [tagKeyFilter] Filter by tag key pattern (matches tags starting with key:)
1503
+ * @param {string} [tagValueFilter] Filter by tag value pattern (matches tags ending with :value)
1504
+ * @param {boolean} [compareMode] Enable comparison mode to compare with another time period/tag set
1505
+ * @param {string} [compareStartTime] Comparison period start time in RFC3339 format
1506
+ * @param {string} [compareEndTime] Comparison period end time in RFC3339 format
1507
+ * @param {string} [compareAnalyticsTags] Comma-separated analytics tags for comparison period
1508
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum} [compareTagsMatchMode] How to match comparison analytics tags
1509
+ * @param {string} [compareTagsExclude] Comma-separated analytics tags to exclude in comparison
1510
+ * @param {string} [compareTagKeyFilter] Tag key filter for comparison period
1511
+ * @param {string} [compareTagValueFilter] Tag value filter for comparison period
1512
+ * @param {number} [queriesPage] Page number for popular queries pagination
1513
+ * @param {number} [queriesPageSize] Number of queries per page for popular queries
1514
+ * @param {number} [resultsPage] Page number for top results pagination
1515
+ * @param {number} [resultsPageSize] Number of results per page for top results
1516
+ * @param {number} [filtersPage] Page number for popular filters pagination
1517
+ * @param {number} [filtersPageSize] Number of filters per page
1518
+ * @param {*} [options] Override http request option.
1519
+ * @throws {RequiredError}
1520
+ */
1521
+ adminAnalyticsStoreXStoreIDGeoInsightsGet: (xStoreID_1, country_1, region_1, city_1, startTime_1, endTime_1, analyticsTags_1, tagsMatchMode_1, tagsExclude_1, tagKeyFilter_1, tagValueFilter_1, compareMode_1, compareStartTime_1, compareEndTime_1, compareAnalyticsTags_1, compareTagsMatchMode_1, compareTagsExclude_1, compareTagKeyFilter_1, compareTagValueFilter_1, queriesPage_1, queriesPageSize_1, resultsPage_1, resultsPageSize_1, filtersPage_1, filtersPageSize_1, ...args_1) => __awaiter(this, [xStoreID_1, country_1, region_1, city_1, startTime_1, endTime_1, analyticsTags_1, tagsMatchMode_1, tagsExclude_1, tagKeyFilter_1, tagValueFilter_1, compareMode_1, compareStartTime_1, compareEndTime_1, compareAnalyticsTags_1, compareTagsMatchMode_1, compareTagsExclude_1, compareTagKeyFilter_1, compareTagValueFilter_1, queriesPage_1, queriesPageSize_1, resultsPage_1, resultsPageSize_1, filtersPage_1, filtersPageSize_1, ...args_1], void 0, function* (xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options = {}) {
1522
+ // verify required parameter 'xStoreID' is not null or undefined
1523
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDGeoInsightsGet', 'xStoreID', xStoreID);
1524
+ const localVarPath = `/admin/analytics/store/{xStoreID}/geo/insights`
1525
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
1526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1527
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1528
+ let baseOptions;
1529
+ if (configuration) {
1530
+ baseOptions = configuration.baseOptions;
1531
+ }
1532
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1533
+ const localVarHeaderParameter = {};
1534
+ const localVarQueryParameter = {};
1535
+ // authentication BearerAuth required
1536
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1537
+ if (country !== undefined) {
1538
+ localVarQueryParameter['country'] = country;
1539
+ }
1540
+ if (region !== undefined) {
1541
+ localVarQueryParameter['region'] = region;
1542
+ }
1543
+ if (city !== undefined) {
1544
+ localVarQueryParameter['city'] = city;
1545
+ }
1546
+ if (startTime !== undefined) {
1547
+ localVarQueryParameter['start_time'] = startTime;
1548
+ }
1549
+ if (endTime !== undefined) {
1550
+ localVarQueryParameter['end_time'] = endTime;
1551
+ }
1552
+ if (analyticsTags !== undefined) {
1553
+ localVarQueryParameter['analytics_tags'] = analyticsTags;
1554
+ }
1555
+ if (tagsMatchMode !== undefined) {
1556
+ localVarQueryParameter['tags_match_mode'] = tagsMatchMode;
1557
+ }
1558
+ if (tagsExclude !== undefined) {
1559
+ localVarQueryParameter['tags_exclude'] = tagsExclude;
1560
+ }
1561
+ if (tagKeyFilter !== undefined) {
1562
+ localVarQueryParameter['tag_key_filter'] = tagKeyFilter;
1563
+ }
1564
+ if (tagValueFilter !== undefined) {
1565
+ localVarQueryParameter['tag_value_filter'] = tagValueFilter;
1566
+ }
1567
+ if (compareMode !== undefined) {
1568
+ localVarQueryParameter['compare_mode'] = compareMode;
1569
+ }
1570
+ if (compareStartTime !== undefined) {
1571
+ localVarQueryParameter['compare_start_time'] = compareStartTime;
1572
+ }
1573
+ if (compareEndTime !== undefined) {
1574
+ localVarQueryParameter['compare_end_time'] = compareEndTime;
1575
+ }
1576
+ if (compareAnalyticsTags !== undefined) {
1577
+ localVarQueryParameter['compare_analytics_tags'] = compareAnalyticsTags;
1578
+ }
1579
+ if (compareTagsMatchMode !== undefined) {
1580
+ localVarQueryParameter['compare_tags_match_mode'] = compareTagsMatchMode;
1581
+ }
1582
+ if (compareTagsExclude !== undefined) {
1583
+ localVarQueryParameter['compare_tags_exclude'] = compareTagsExclude;
1584
+ }
1585
+ if (compareTagKeyFilter !== undefined) {
1586
+ localVarQueryParameter['compare_tag_key_filter'] = compareTagKeyFilter;
1587
+ }
1588
+ if (compareTagValueFilter !== undefined) {
1589
+ localVarQueryParameter['compare_tag_value_filter'] = compareTagValueFilter;
1590
+ }
1591
+ if (queriesPage !== undefined) {
1592
+ localVarQueryParameter['queries_page'] = queriesPage;
1593
+ }
1594
+ if (queriesPageSize !== undefined) {
1595
+ localVarQueryParameter['queries_page_size'] = queriesPageSize;
1596
+ }
1597
+ if (resultsPage !== undefined) {
1598
+ localVarQueryParameter['results_page'] = resultsPage;
1599
+ }
1600
+ if (resultsPageSize !== undefined) {
1601
+ localVarQueryParameter['results_page_size'] = resultsPageSize;
1602
+ }
1603
+ if (filtersPage !== undefined) {
1604
+ localVarQueryParameter['filters_page'] = filtersPage;
1605
+ }
1606
+ if (filtersPageSize !== undefined) {
1607
+ localVarQueryParameter['filters_page_size'] = filtersPageSize;
1608
+ }
1609
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1610
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1611
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1612
+ return {
1613
+ url: (0, common_1.toPathString)(localVarUrlObj),
1614
+ options: localVarRequestOptions,
1615
+ };
1616
+ }),
1459
1617
  /**
1460
1618
  * Check the health status of analytics service and ClickHouse connection
1461
1619
  * @summary Analytics Health Check
@@ -2007,7 +2165,7 @@ const AnalyticsApiAxiosParamCreator = function (configuration) {
2007
2165
  };
2008
2166
  }),
2009
2167
  /**
2010
- * Retrieve comprehensive analytics for a specific search query including popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
2168
+ * Retrieve comprehensive analytics for a specific search query including all core metrics (Searches, Results Shown, Clicks, CTR, Avg Result Rank, Avg Click Rank, Conversions, CVR, Conversion Rate per Search, No-Result Rate, No-Click Rate, Revenue), popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
2011
2169
  * @summary Get Query Insights
2012
2170
  * @param {string} xStoreID Store ID
2013
2171
  * @param {string} query Search query to analyze
@@ -2580,6 +2738,46 @@ const AnalyticsApiFp = function (configuration) {
2580
2738
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2581
2739
  });
2582
2740
  },
2741
+ /**
2742
+ * Retrieve comprehensive analytics insights for a specific geographic location including all core metrics (Total Searches, Total Clicks, CTR, Conversions, CVR, Revenue), popular queries with performance metrics, top results by region with average rankings, popular filters used per region with performance impact, and totals & rates with optional comparison mode and internal pagination for each subsection
2743
+ * @summary Get Geographic Insights
2744
+ * @param {string} xStoreID Store ID
2745
+ * @param {string} [country] Country name to analyze
2746
+ * @param {string} [region] Region/state name to analyze
2747
+ * @param {string} [city] City name to analyze
2748
+ * @param {string} [startTime] Start time in RFC3339 format
2749
+ * @param {string} [endTime] End time in RFC3339 format
2750
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter (e.g., \'campaign:summer,source:email\')
2751
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
2752
+ * @param {string} [tagsExclude] Comma-separated analytics tags to exclude
2753
+ * @param {string} [tagKeyFilter] Filter by tag key pattern (matches tags starting with key:)
2754
+ * @param {string} [tagValueFilter] Filter by tag value pattern (matches tags ending with :value)
2755
+ * @param {boolean} [compareMode] Enable comparison mode to compare with another time period/tag set
2756
+ * @param {string} [compareStartTime] Comparison period start time in RFC3339 format
2757
+ * @param {string} [compareEndTime] Comparison period end time in RFC3339 format
2758
+ * @param {string} [compareAnalyticsTags] Comma-separated analytics tags for comparison period
2759
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum} [compareTagsMatchMode] How to match comparison analytics tags
2760
+ * @param {string} [compareTagsExclude] Comma-separated analytics tags to exclude in comparison
2761
+ * @param {string} [compareTagKeyFilter] Tag key filter for comparison period
2762
+ * @param {string} [compareTagValueFilter] Tag value filter for comparison period
2763
+ * @param {number} [queriesPage] Page number for popular queries pagination
2764
+ * @param {number} [queriesPageSize] Number of queries per page for popular queries
2765
+ * @param {number} [resultsPage] Page number for top results pagination
2766
+ * @param {number} [resultsPageSize] Number of results per page for top results
2767
+ * @param {number} [filtersPage] Page number for popular filters pagination
2768
+ * @param {number} [filtersPageSize] Number of filters per page
2769
+ * @param {*} [options] Override http request option.
2770
+ * @throws {RequiredError}
2771
+ */
2772
+ adminAnalyticsStoreXStoreIDGeoInsightsGet(xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options) {
2773
+ return __awaiter(this, void 0, void 0, function* () {
2774
+ var _a, _b, _c;
2775
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDGeoInsightsGet(xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options);
2776
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2777
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.adminAnalyticsStoreXStoreIDGeoInsightsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2778
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2779
+ });
2780
+ },
2583
2781
  /**
2584
2782
  * Check the health status of analytics service and ClickHouse connection
2585
2783
  * @summary Analytics Health Check
@@ -2768,7 +2966,7 @@ const AnalyticsApiFp = function (configuration) {
2768
2966
  });
2769
2967
  },
2770
2968
  /**
2771
- * Retrieve comprehensive analytics for a specific search query including popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
2969
+ * Retrieve comprehensive analytics for a specific search query including all core metrics (Searches, Results Shown, Clicks, CTR, Avg Result Rank, Avg Click Rank, Conversions, CVR, Conversion Rate per Search, No-Result Rate, No-Click Rate, Revenue), popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
2772
2970
  * @summary Get Query Insights
2773
2971
  * @param {string} xStoreID Store ID
2774
2972
  * @param {string} query Search query to analyze
@@ -3045,6 +3243,40 @@ const AnalyticsApiFactory = function (configuration, basePath, axios) {
3045
3243
  adminAnalyticsStoreXStoreIDGeoGet(xStoreID, startTime, endTime, granularity, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, limit, offset, page, pageSize, sortBy, sortOrder, sort, options) {
3046
3244
  return localVarFp.adminAnalyticsStoreXStoreIDGeoGet(xStoreID, startTime, endTime, granularity, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(axios, basePath));
3047
3245
  },
3246
+ /**
3247
+ * Retrieve comprehensive analytics insights for a specific geographic location including all core metrics (Total Searches, Total Clicks, CTR, Conversions, CVR, Revenue), popular queries with performance metrics, top results by region with average rankings, popular filters used per region with performance impact, and totals & rates with optional comparison mode and internal pagination for each subsection
3248
+ * @summary Get Geographic Insights
3249
+ * @param {string} xStoreID Store ID
3250
+ * @param {string} [country] Country name to analyze
3251
+ * @param {string} [region] Region/state name to analyze
3252
+ * @param {string} [city] City name to analyze
3253
+ * @param {string} [startTime] Start time in RFC3339 format
3254
+ * @param {string} [endTime] End time in RFC3339 format
3255
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter (e.g., \'campaign:summer,source:email\')
3256
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
3257
+ * @param {string} [tagsExclude] Comma-separated analytics tags to exclude
3258
+ * @param {string} [tagKeyFilter] Filter by tag key pattern (matches tags starting with key:)
3259
+ * @param {string} [tagValueFilter] Filter by tag value pattern (matches tags ending with :value)
3260
+ * @param {boolean} [compareMode] Enable comparison mode to compare with another time period/tag set
3261
+ * @param {string} [compareStartTime] Comparison period start time in RFC3339 format
3262
+ * @param {string} [compareEndTime] Comparison period end time in RFC3339 format
3263
+ * @param {string} [compareAnalyticsTags] Comma-separated analytics tags for comparison period
3264
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum} [compareTagsMatchMode] How to match comparison analytics tags
3265
+ * @param {string} [compareTagsExclude] Comma-separated analytics tags to exclude in comparison
3266
+ * @param {string} [compareTagKeyFilter] Tag key filter for comparison period
3267
+ * @param {string} [compareTagValueFilter] Tag value filter for comparison period
3268
+ * @param {number} [queriesPage] Page number for popular queries pagination
3269
+ * @param {number} [queriesPageSize] Number of queries per page for popular queries
3270
+ * @param {number} [resultsPage] Page number for top results pagination
3271
+ * @param {number} [resultsPageSize] Number of results per page for top results
3272
+ * @param {number} [filtersPage] Page number for popular filters pagination
3273
+ * @param {number} [filtersPageSize] Number of filters per page
3274
+ * @param {*} [options] Override http request option.
3275
+ * @throws {RequiredError}
3276
+ */
3277
+ adminAnalyticsStoreXStoreIDGeoInsightsGet(xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options) {
3278
+ return localVarFp.adminAnalyticsStoreXStoreIDGeoInsightsGet(xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options).then((request) => request(axios, basePath));
3279
+ },
3048
3280
  /**
3049
3281
  * Check the health status of analytics service and ClickHouse connection
3050
3282
  * @summary Analytics Health Check
@@ -3197,7 +3429,7 @@ const AnalyticsApiFactory = function (configuration, basePath, axios) {
3197
3429
  return localVarFp.adminAnalyticsStoreXStoreIDQueriesNoResultsGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(axios, basePath));
3198
3430
  },
3199
3431
  /**
3200
- * Retrieve comprehensive analytics for a specific search query including popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
3432
+ * Retrieve comprehensive analytics for a specific search query including all core metrics (Searches, Results Shown, Clicks, CTR, Avg Result Rank, Avg Click Rank, Conversions, CVR, Conversion Rate per Search, No-Result Rate, No-Click Rate, Revenue), popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
3201
3433
  * @summary Get Query Insights
3202
3434
  * @param {string} xStoreID Store ID
3203
3435
  * @param {string} query Search query to analyze
@@ -3457,6 +3689,41 @@ class AnalyticsApi extends base_1.BaseAPI {
3457
3689
  adminAnalyticsStoreXStoreIDGeoGet(xStoreID, startTime, endTime, granularity, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, limit, offset, page, pageSize, sortBy, sortOrder, sort, options) {
3458
3690
  return (0, exports.AnalyticsApiFp)(this.configuration).adminAnalyticsStoreXStoreIDGeoGet(xStoreID, startTime, endTime, granularity, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(this.axios, this.basePath));
3459
3691
  }
3692
+ /**
3693
+ * Retrieve comprehensive analytics insights for a specific geographic location including all core metrics (Total Searches, Total Clicks, CTR, Conversions, CVR, Revenue), popular queries with performance metrics, top results by region with average rankings, popular filters used per region with performance impact, and totals & rates with optional comparison mode and internal pagination for each subsection
3694
+ * @summary Get Geographic Insights
3695
+ * @param {string} xStoreID Store ID
3696
+ * @param {string} [country] Country name to analyze
3697
+ * @param {string} [region] Region/state name to analyze
3698
+ * @param {string} [city] City name to analyze
3699
+ * @param {string} [startTime] Start time in RFC3339 format
3700
+ * @param {string} [endTime] End time in RFC3339 format
3701
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter (e.g., \'campaign:summer,source:email\')
3702
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
3703
+ * @param {string} [tagsExclude] Comma-separated analytics tags to exclude
3704
+ * @param {string} [tagKeyFilter] Filter by tag key pattern (matches tags starting with key:)
3705
+ * @param {string} [tagValueFilter] Filter by tag value pattern (matches tags ending with :value)
3706
+ * @param {boolean} [compareMode] Enable comparison mode to compare with another time period/tag set
3707
+ * @param {string} [compareStartTime] Comparison period start time in RFC3339 format
3708
+ * @param {string} [compareEndTime] Comparison period end time in RFC3339 format
3709
+ * @param {string} [compareAnalyticsTags] Comma-separated analytics tags for comparison period
3710
+ * @param {AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum} [compareTagsMatchMode] How to match comparison analytics tags
3711
+ * @param {string} [compareTagsExclude] Comma-separated analytics tags to exclude in comparison
3712
+ * @param {string} [compareTagKeyFilter] Tag key filter for comparison period
3713
+ * @param {string} [compareTagValueFilter] Tag value filter for comparison period
3714
+ * @param {number} [queriesPage] Page number for popular queries pagination
3715
+ * @param {number} [queriesPageSize] Number of queries per page for popular queries
3716
+ * @param {number} [resultsPage] Page number for top results pagination
3717
+ * @param {number} [resultsPageSize] Number of results per page for top results
3718
+ * @param {number} [filtersPage] Page number for popular filters pagination
3719
+ * @param {number} [filtersPageSize] Number of filters per page
3720
+ * @param {*} [options] Override http request option.
3721
+ * @throws {RequiredError}
3722
+ * @memberof AnalyticsApi
3723
+ */
3724
+ adminAnalyticsStoreXStoreIDGeoInsightsGet(xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options) {
3725
+ return (0, exports.AnalyticsApiFp)(this.configuration).adminAnalyticsStoreXStoreIDGeoInsightsGet(xStoreID, country, region, city, startTime, endTime, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, queriesPage, queriesPageSize, resultsPage, resultsPageSize, filtersPage, filtersPageSize, options).then((request) => request(this.axios, this.basePath));
3726
+ }
3460
3727
  /**
3461
3728
  * Check the health status of analytics service and ClickHouse connection
3462
3729
  * @summary Analytics Health Check
@@ -3615,7 +3882,7 @@ class AnalyticsApi extends base_1.BaseAPI {
3615
3882
  return (0, exports.AnalyticsApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQueriesNoResultsGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(this.axios, this.basePath));
3616
3883
  }
3617
3884
  /**
3618
- * Retrieve comprehensive analytics for a specific search query including popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
3885
+ * Retrieve comprehensive analytics for a specific search query including all core metrics (Searches, Results Shown, Clicks, CTR, Avg Result Rank, Avg Click Rank, Conversions, CVR, Conversion Rate per Search, No-Result Rate, No-Click Rate, Revenue), popular results, filters, click position histogram, geo analytics, and performance metrics with deep comparison mode support and independent pagination for popular results and filters
3619
3886
  * @summary Get Query Insights
3620
3887
  * @param {string} xStoreID Store ID
3621
3888
  * @param {string} query Search query to analyze
@@ -3856,6 +4123,20 @@ exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = {
3856
4123
  Asc: 'asc',
3857
4124
  Desc: 'desc'
3858
4125
  };
4126
+ /**
4127
+ * @export
4128
+ */
4129
+ exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = {
4130
+ Any: 'any',
4131
+ All: 'all'
4132
+ };
4133
+ /**
4134
+ * @export
4135
+ */
4136
+ exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = {
4137
+ Any: 'any',
4138
+ All: 'all'
4139
+ };
3859
4140
  /**
3860
4141
  * @export
3861
4142
  */
@@ -7459,7 +7740,7 @@ const ItemAnalyticsApiAxiosParamCreator = function (configuration) {
7459
7740
  };
7460
7741
  }),
7461
7742
  /**
7462
- * Retrieve comprehensive analytics insights for a specific item including popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
7743
+ * Retrieve comprehensive analytics insights for a specific item including all core metrics (Total Searches, Results Shown, Impressions, Clicks, Conversions, Revenue, CTR, CVR, Conversion Rate per Search, No-Click Rate, Avg Result Rank, Avg Click Position), popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
7463
7744
  * @summary Get Item Insights
7464
7745
  * @param {string} xStoreID Store ID
7465
7746
  * @param {string} itemId Item ID to analyze
@@ -7933,7 +8214,7 @@ const ItemAnalyticsApiFp = function (configuration) {
7933
8214
  });
7934
8215
  },
7935
8216
  /**
7936
- * Retrieve comprehensive analytics insights for a specific item including popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
8217
+ * Retrieve comprehensive analytics insights for a specific item including all core metrics (Total Searches, Results Shown, Impressions, Clicks, Conversions, Revenue, CTR, CVR, Conversion Rate per Search, No-Click Rate, Avg Result Rank, Avg Click Position), popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
7937
8218
  * @summary Get Item Insights
7938
8219
  * @param {string} xStoreID Store ID
7939
8220
  * @param {string} itemId Item ID to analyze
@@ -8140,7 +8421,7 @@ const ItemAnalyticsApiFactory = function (configuration, basePath, axios) {
8140
8421
  return localVarFp.adminAnalyticsStoreXStoreIDItemsItemIdGet(xStoreID, itemId, startTime, endTime, options).then((request) => request(axios, basePath));
8141
8422
  },
8142
8423
  /**
8143
- * Retrieve comprehensive analytics insights for a specific item including popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
8424
+ * Retrieve comprehensive analytics insights for a specific item including all core metrics (Total Searches, Results Shown, Impressions, Clicks, Conversions, Revenue, CTR, CVR, Conversion Rate per Search, No-Click Rate, Avg Result Rank, Avg Click Position), popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
8144
8425
  * @summary Get Item Insights
8145
8426
  * @param {string} xStoreID Store ID
8146
8427
  * @param {string} itemId Item ID to analyze
@@ -8327,7 +8608,7 @@ class ItemAnalyticsApi extends base_1.BaseAPI {
8327
8608
  return (0, exports.ItemAnalyticsApiFp)(this.configuration).adminAnalyticsStoreXStoreIDItemsItemIdGet(xStoreID, itemId, startTime, endTime, options).then((request) => request(this.axios, this.basePath));
8328
8609
  }
8329
8610
  /**
8330
- * Retrieve comprehensive analytics insights for a specific item including popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
8611
+ * Retrieve comprehensive analytics insights for a specific item including all core metrics (Total Searches, Results Shown, Impressions, Clicks, Conversions, Revenue, CTR, CVR, Conversion Rate per Search, No-Click Rate, Avg Result Rank, Avg Click Position), popular queries, filters, position distribution, geo analytics, and performance metrics with pagination support for subsections and optional comparison mode
8331
8612
  * @summary Get Item Insights
8332
8613
  * @param {string} xStoreID Store ID
8333
8614
  * @param {string} itemId Item ID to analyze
@@ -14706,6 +14987,1468 @@ class PluralsDeclensionsApi extends base_1.BaseAPI {
14706
14987
  }
14707
14988
  }
14708
14989
  exports.PluralsDeclensionsApi = PluralsDeclensionsApi;
14990
+ /**
14991
+ * QuerySuggestionsApi - axios parameter creator
14992
+ * @export
14993
+ */
14994
+ const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
14995
+ return {
14996
+ /**
14997
+ * Retrieve configuration settings for query suggestions API including limits, supported time ranges, and default values
14998
+ * @summary Get Query Suggestions Configuration
14999
+ * @param {string} xStoreid Store ID
15000
+ * @param {string} xStoresecret Store Secret
15001
+ * @param {*} [options] Override http request option.
15002
+ * @throws {RequiredError}
15003
+ */
15004
+ v1SuggestionsConfigGet: (xStoreid_1, xStoresecret_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, ...args_1], void 0, function* (xStoreid, xStoresecret, options = {}) {
15005
+ // verify required parameter 'xStoreid' is not null or undefined
15006
+ (0, common_1.assertParamExists)('v1SuggestionsConfigGet', 'xStoreid', xStoreid);
15007
+ // verify required parameter 'xStoresecret' is not null or undefined
15008
+ (0, common_1.assertParamExists)('v1SuggestionsConfigGet', 'xStoresecret', xStoresecret);
15009
+ const localVarPath = `/v1/suggestions/config`;
15010
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15011
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15012
+ let baseOptions;
15013
+ if (configuration) {
15014
+ baseOptions = configuration.baseOptions;
15015
+ }
15016
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15017
+ const localVarHeaderParameter = {};
15018
+ const localVarQueryParameter = {};
15019
+ if (xStoreid != null) {
15020
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
15021
+ }
15022
+ if (xStoresecret != null) {
15023
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
15024
+ }
15025
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15026
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15027
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15028
+ return {
15029
+ url: (0, common_1.toPathString)(localVarUrlObj),
15030
+ options: localVarRequestOptions,
15031
+ };
15032
+ }),
15033
+ /**
15034
+ * Retrieve query suggestions based on search analytics data with popularity ranking and optional category/facet enrichment. Supports partial query matching, analytics tags filtering, and configurable time ranges.
15035
+ * @summary Get Query Suggestions
15036
+ * @param {string} xStoreid Store ID
15037
+ * @param {string} xStoresecret Store Secret
15038
+ * @param {string} [query] Partial query to get suggestions for
15039
+ * @param {number} [hitsPerPage] Number of suggestions to return
15040
+ * @param {number} [page] Page number for pagination
15041
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter suggestions
15042
+ * @param {V1SuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match analytics tags
15043
+ * @param {boolean} [includeCategories] Include category information in suggestions
15044
+ * @param {boolean} [includeFacets] Include popular facets/filters information
15045
+ * @param {number} [maxCategories] Maximum categories per suggestion
15046
+ * @param {number} [maxFacets] Maximum facets per suggestion
15047
+ * @param {number} [minPopularity] Minimum popularity threshold
15048
+ * @param {V1SuggestionsQueriesGetTimeRangeEnum} [timeRange] Time range for analytics data
15049
+ * @param {boolean} [disableTypoTolerance] Disable fuzzy/typo-tolerant matching
15050
+ * @param {*} [options] Override http request option.
15051
+ * @throws {RequiredError}
15052
+ */
15053
+ v1SuggestionsQueriesGet: (xStoreid_1, xStoresecret_1, query_1, hitsPerPage_1, page_1, analyticsTags_1, tagsMatchMode_1, includeCategories_1, includeFacets_1, maxCategories_1, maxFacets_1, minPopularity_1, timeRange_1, disableTypoTolerance_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, query_1, hitsPerPage_1, page_1, analyticsTags_1, tagsMatchMode_1, includeCategories_1, includeFacets_1, maxCategories_1, maxFacets_1, minPopularity_1, timeRange_1, disableTypoTolerance_1, ...args_1], void 0, function* (xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options = {}) {
15054
+ // verify required parameter 'xStoreid' is not null or undefined
15055
+ (0, common_1.assertParamExists)('v1SuggestionsQueriesGet', 'xStoreid', xStoreid);
15056
+ // verify required parameter 'xStoresecret' is not null or undefined
15057
+ (0, common_1.assertParamExists)('v1SuggestionsQueriesGet', 'xStoresecret', xStoresecret);
15058
+ const localVarPath = `/v1/suggestions/queries`;
15059
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15060
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15061
+ let baseOptions;
15062
+ if (configuration) {
15063
+ baseOptions = configuration.baseOptions;
15064
+ }
15065
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15066
+ const localVarHeaderParameter = {};
15067
+ const localVarQueryParameter = {};
15068
+ if (query !== undefined) {
15069
+ localVarQueryParameter['query'] = query;
15070
+ }
15071
+ if (hitsPerPage !== undefined) {
15072
+ localVarQueryParameter['hitsPerPage'] = hitsPerPage;
15073
+ }
15074
+ if (page !== undefined) {
15075
+ localVarQueryParameter['page'] = page;
15076
+ }
15077
+ if (analyticsTags !== undefined) {
15078
+ localVarQueryParameter['analytics_tags'] = analyticsTags;
15079
+ }
15080
+ if (tagsMatchMode !== undefined) {
15081
+ localVarQueryParameter['tags_match_mode'] = tagsMatchMode;
15082
+ }
15083
+ if (includeCategories !== undefined) {
15084
+ localVarQueryParameter['include_categories'] = includeCategories;
15085
+ }
15086
+ if (includeFacets !== undefined) {
15087
+ localVarQueryParameter['include_facets'] = includeFacets;
15088
+ }
15089
+ if (maxCategories !== undefined) {
15090
+ localVarQueryParameter['max_categories'] = maxCategories;
15091
+ }
15092
+ if (maxFacets !== undefined) {
15093
+ localVarQueryParameter['max_facets'] = maxFacets;
15094
+ }
15095
+ if (minPopularity !== undefined) {
15096
+ localVarQueryParameter['min_popularity'] = minPopularity;
15097
+ }
15098
+ if (timeRange !== undefined) {
15099
+ localVarQueryParameter['time_range'] = timeRange;
15100
+ }
15101
+ if (disableTypoTolerance !== undefined) {
15102
+ localVarQueryParameter['disable_typo_tolerance'] = disableTypoTolerance;
15103
+ }
15104
+ if (xStoreid != null) {
15105
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
15106
+ }
15107
+ if (xStoresecret != null) {
15108
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
15109
+ }
15110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15112
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15113
+ return {
15114
+ url: (0, common_1.toPathString)(localVarUrlObj),
15115
+ options: localVarRequestOptions,
15116
+ };
15117
+ }),
15118
+ };
15119
+ };
15120
+ exports.QuerySuggestionsApiAxiosParamCreator = QuerySuggestionsApiAxiosParamCreator;
15121
+ /**
15122
+ * QuerySuggestionsApi - functional programming interface
15123
+ * @export
15124
+ */
15125
+ const QuerySuggestionsApiFp = function (configuration) {
15126
+ const localVarAxiosParamCreator = (0, exports.QuerySuggestionsApiAxiosParamCreator)(configuration);
15127
+ return {
15128
+ /**
15129
+ * Retrieve configuration settings for query suggestions API including limits, supported time ranges, and default values
15130
+ * @summary Get Query Suggestions Configuration
15131
+ * @param {string} xStoreid Store ID
15132
+ * @param {string} xStoresecret Store Secret
15133
+ * @param {*} [options] Override http request option.
15134
+ * @throws {RequiredError}
15135
+ */
15136
+ v1SuggestionsConfigGet(xStoreid, xStoresecret, options) {
15137
+ return __awaiter(this, void 0, void 0, function* () {
15138
+ var _a, _b, _c;
15139
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SuggestionsConfigGet(xStoreid, xStoresecret, options);
15140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15141
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsApi.v1SuggestionsConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15143
+ });
15144
+ },
15145
+ /**
15146
+ * Retrieve query suggestions based on search analytics data with popularity ranking and optional category/facet enrichment. Supports partial query matching, analytics tags filtering, and configurable time ranges.
15147
+ * @summary Get Query Suggestions
15148
+ * @param {string} xStoreid Store ID
15149
+ * @param {string} xStoresecret Store Secret
15150
+ * @param {string} [query] Partial query to get suggestions for
15151
+ * @param {number} [hitsPerPage] Number of suggestions to return
15152
+ * @param {number} [page] Page number for pagination
15153
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter suggestions
15154
+ * @param {V1SuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match analytics tags
15155
+ * @param {boolean} [includeCategories] Include category information in suggestions
15156
+ * @param {boolean} [includeFacets] Include popular facets/filters information
15157
+ * @param {number} [maxCategories] Maximum categories per suggestion
15158
+ * @param {number} [maxFacets] Maximum facets per suggestion
15159
+ * @param {number} [minPopularity] Minimum popularity threshold
15160
+ * @param {V1SuggestionsQueriesGetTimeRangeEnum} [timeRange] Time range for analytics data
15161
+ * @param {boolean} [disableTypoTolerance] Disable fuzzy/typo-tolerant matching
15162
+ * @param {*} [options] Override http request option.
15163
+ * @throws {RequiredError}
15164
+ */
15165
+ v1SuggestionsQueriesGet(xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options) {
15166
+ return __awaiter(this, void 0, void 0, function* () {
15167
+ var _a, _b, _c;
15168
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SuggestionsQueriesGet(xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options);
15169
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15170
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsApi.v1SuggestionsQueriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15171
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15172
+ });
15173
+ },
15174
+ };
15175
+ };
15176
+ exports.QuerySuggestionsApiFp = QuerySuggestionsApiFp;
15177
+ /**
15178
+ * QuerySuggestionsApi - factory interface
15179
+ * @export
15180
+ */
15181
+ const QuerySuggestionsApiFactory = function (configuration, basePath, axios) {
15182
+ const localVarFp = (0, exports.QuerySuggestionsApiFp)(configuration);
15183
+ return {
15184
+ /**
15185
+ * Retrieve configuration settings for query suggestions API including limits, supported time ranges, and default values
15186
+ * @summary Get Query Suggestions Configuration
15187
+ * @param {string} xStoreid Store ID
15188
+ * @param {string} xStoresecret Store Secret
15189
+ * @param {*} [options] Override http request option.
15190
+ * @throws {RequiredError}
15191
+ */
15192
+ v1SuggestionsConfigGet(xStoreid, xStoresecret, options) {
15193
+ return localVarFp.v1SuggestionsConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
15194
+ },
15195
+ /**
15196
+ * Retrieve query suggestions based on search analytics data with popularity ranking and optional category/facet enrichment. Supports partial query matching, analytics tags filtering, and configurable time ranges.
15197
+ * @summary Get Query Suggestions
15198
+ * @param {string} xStoreid Store ID
15199
+ * @param {string} xStoresecret Store Secret
15200
+ * @param {string} [query] Partial query to get suggestions for
15201
+ * @param {number} [hitsPerPage] Number of suggestions to return
15202
+ * @param {number} [page] Page number for pagination
15203
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter suggestions
15204
+ * @param {V1SuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match analytics tags
15205
+ * @param {boolean} [includeCategories] Include category information in suggestions
15206
+ * @param {boolean} [includeFacets] Include popular facets/filters information
15207
+ * @param {number} [maxCategories] Maximum categories per suggestion
15208
+ * @param {number} [maxFacets] Maximum facets per suggestion
15209
+ * @param {number} [minPopularity] Minimum popularity threshold
15210
+ * @param {V1SuggestionsQueriesGetTimeRangeEnum} [timeRange] Time range for analytics data
15211
+ * @param {boolean} [disableTypoTolerance] Disable fuzzy/typo-tolerant matching
15212
+ * @param {*} [options] Override http request option.
15213
+ * @throws {RequiredError}
15214
+ */
15215
+ v1SuggestionsQueriesGet(xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options) {
15216
+ return localVarFp.v1SuggestionsQueriesGet(xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options).then((request) => request(axios, basePath));
15217
+ },
15218
+ };
15219
+ };
15220
+ exports.QuerySuggestionsApiFactory = QuerySuggestionsApiFactory;
15221
+ /**
15222
+ * QuerySuggestionsApi - object-oriented interface
15223
+ * @export
15224
+ * @class QuerySuggestionsApi
15225
+ * @extends {BaseAPI}
15226
+ */
15227
+ class QuerySuggestionsApi extends base_1.BaseAPI {
15228
+ /**
15229
+ * Retrieve configuration settings for query suggestions API including limits, supported time ranges, and default values
15230
+ * @summary Get Query Suggestions Configuration
15231
+ * @param {string} xStoreid Store ID
15232
+ * @param {string} xStoresecret Store Secret
15233
+ * @param {*} [options] Override http request option.
15234
+ * @throws {RequiredError}
15235
+ * @memberof QuerySuggestionsApi
15236
+ */
15237
+ v1SuggestionsConfigGet(xStoreid, xStoresecret, options) {
15238
+ return (0, exports.QuerySuggestionsApiFp)(this.configuration).v1SuggestionsConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
15239
+ }
15240
+ /**
15241
+ * Retrieve query suggestions based on search analytics data with popularity ranking and optional category/facet enrichment. Supports partial query matching, analytics tags filtering, and configurable time ranges.
15242
+ * @summary Get Query Suggestions
15243
+ * @param {string} xStoreid Store ID
15244
+ * @param {string} xStoresecret Store Secret
15245
+ * @param {string} [query] Partial query to get suggestions for
15246
+ * @param {number} [hitsPerPage] Number of suggestions to return
15247
+ * @param {number} [page] Page number for pagination
15248
+ * @param {string} [analyticsTags] Comma-separated analytics tags to filter suggestions
15249
+ * @param {V1SuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match analytics tags
15250
+ * @param {boolean} [includeCategories] Include category information in suggestions
15251
+ * @param {boolean} [includeFacets] Include popular facets/filters information
15252
+ * @param {number} [maxCategories] Maximum categories per suggestion
15253
+ * @param {number} [maxFacets] Maximum facets per suggestion
15254
+ * @param {number} [minPopularity] Minimum popularity threshold
15255
+ * @param {V1SuggestionsQueriesGetTimeRangeEnum} [timeRange] Time range for analytics data
15256
+ * @param {boolean} [disableTypoTolerance] Disable fuzzy/typo-tolerant matching
15257
+ * @param {*} [options] Override http request option.
15258
+ * @throws {RequiredError}
15259
+ * @memberof QuerySuggestionsApi
15260
+ */
15261
+ v1SuggestionsQueriesGet(xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options) {
15262
+ return (0, exports.QuerySuggestionsApiFp)(this.configuration).v1SuggestionsQueriesGet(xStoreid, xStoresecret, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options).then((request) => request(this.axios, this.basePath));
15263
+ }
15264
+ }
15265
+ exports.QuerySuggestionsApi = QuerySuggestionsApi;
15266
+ /**
15267
+ * @export
15268
+ */
15269
+ exports.V1SuggestionsQueriesGetTagsMatchModeEnum = {
15270
+ Any: 'any',
15271
+ All: 'all'
15272
+ };
15273
+ /**
15274
+ * @export
15275
+ */
15276
+ exports.V1SuggestionsQueriesGetTimeRangeEnum = {
15277
+ _7d: '7d',
15278
+ _30d: '30d',
15279
+ _90d: '90d'
15280
+ };
15281
+ /**
15282
+ * QuerySuggestionsManagementApi - axios parameter creator
15283
+ * @export
15284
+ */
15285
+ const QuerySuggestionsManagementApiAxiosParamCreator = function (configuration) {
15286
+ return {
15287
+ /**
15288
+ * Migrate existing analytics data for all stores (admin only)
15289
+ * @summary Migrate All Stores Data
15290
+ * @param {number} [daysBack] Number of days back to migrate data
15291
+ * @param {number} [minPopularity] Minimum popularity threshold
15292
+ * @param {*} [options] Override http request option.
15293
+ * @throws {RequiredError}
15294
+ */
15295
+ adminAnalyticsQuerySuggestionsMigrateAllPost: (daysBack_1, minPopularity_1, ...args_1) => __awaiter(this, [daysBack_1, minPopularity_1, ...args_1], void 0, function* (daysBack, minPopularity, options = {}) {
15296
+ const localVarPath = `/admin/analytics/query-suggestions/migrate-all`;
15297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15298
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15299
+ let baseOptions;
15300
+ if (configuration) {
15301
+ baseOptions = configuration.baseOptions;
15302
+ }
15303
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15304
+ const localVarHeaderParameter = {};
15305
+ const localVarQueryParameter = {};
15306
+ // authentication BearerAuth required
15307
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15308
+ if (daysBack !== undefined) {
15309
+ localVarQueryParameter['days_back'] = daysBack;
15310
+ }
15311
+ if (minPopularity !== undefined) {
15312
+ localVarQueryParameter['min_popularity'] = minPopularity;
15313
+ }
15314
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15315
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15316
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15317
+ return {
15318
+ url: (0, common_1.toPathString)(localVarUrlObj),
15319
+ options: localVarRequestOptions,
15320
+ };
15321
+ }),
15322
+ /**
15323
+ * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
15324
+ * @summary Bulk Update Suggestions
15325
+ * @param {string} xStoreID Store ID
15326
+ * @param {AnalyticsBulkOperationRequest} body Bulk operation request
15327
+ * @param {*} [options] Override http request option.
15328
+ * @throws {RequiredError}
15329
+ */
15330
+ adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
15331
+ // verify required parameter 'xStoreID' is not null or undefined
15332
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost', 'xStoreID', xStoreID);
15333
+ // verify required parameter 'body' is not null or undefined
15334
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost', 'body', body);
15335
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/bulk`
15336
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15338
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15339
+ let baseOptions;
15340
+ if (configuration) {
15341
+ baseOptions = configuration.baseOptions;
15342
+ }
15343
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15344
+ const localVarHeaderParameter = {};
15345
+ const localVarQueryParameter = {};
15346
+ // authentication BearerAuth required
15347
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15349
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15351
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15352
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
15353
+ return {
15354
+ url: (0, common_1.toPathString)(localVarUrlObj),
15355
+ options: localVarRequestOptions,
15356
+ };
15357
+ }),
15358
+ /**
15359
+ * Retrieve auto-generated suggestions from cache for review before promoting to management table
15360
+ * @summary Get Cached Auto-Generated Suggestions
15361
+ * @param {string} xStoreID Store ID
15362
+ * @param {number} [page] Page number
15363
+ * @param {number} [pageSize] Items per page
15364
+ * @param {number} [minPopularity] Minimum popularity threshold
15365
+ * @param {*} [options] Override http request option.
15366
+ * @throws {RequiredError}
15367
+ */
15368
+ adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet: (xStoreID_1, page_1, pageSize_1, minPopularity_1, ...args_1) => __awaiter(this, [xStoreID_1, page_1, pageSize_1, minPopularity_1, ...args_1], void 0, function* (xStoreID, page, pageSize, minPopularity, options = {}) {
15369
+ // verify required parameter 'xStoreID' is not null or undefined
15370
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet', 'xStoreID', xStoreID);
15371
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/cached`
15372
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15374
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15375
+ let baseOptions;
15376
+ if (configuration) {
15377
+ baseOptions = configuration.baseOptions;
15378
+ }
15379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15380
+ const localVarHeaderParameter = {};
15381
+ const localVarQueryParameter = {};
15382
+ // authentication BearerAuth required
15383
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15384
+ if (page !== undefined) {
15385
+ localVarQueryParameter['page'] = page;
15386
+ }
15387
+ if (pageSize !== undefined) {
15388
+ localVarQueryParameter['page_size'] = pageSize;
15389
+ }
15390
+ if (minPopularity !== undefined) {
15391
+ localVarQueryParameter['min_popularity'] = minPopularity;
15392
+ }
15393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15396
+ return {
15397
+ url: (0, common_1.toPathString)(localVarUrlObj),
15398
+ options: localVarRequestOptions,
15399
+ };
15400
+ }),
15401
+ /**
15402
+ * Retrieve query suggestions with filtering and pagination for management
15403
+ * @summary Get Query Suggestions
15404
+ * @param {string} xStoreID Store ID
15405
+ * @param {string} [source] Filter by source (auto_generated, manual, imported)
15406
+ * @param {string} [status] Filter by status (enabled, disabled)
15407
+ * @param {string} [query] Search within query text
15408
+ * @param {string} [category] Filter by category
15409
+ * @param {string} [tag] Filter by tag
15410
+ * @param {number} [page] Page number
15411
+ * @param {number} [pageSize] Number of items per page
15412
+ * @param {*} [options] Override http request option.
15413
+ * @throws {RequiredError}
15414
+ */
15415
+ adminAnalyticsStoreXStoreIDQuerySuggestionsGet: (xStoreID_1, source_1, status_1, query_1, category_1, tag_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [xStoreID_1, source_1, status_1, query_1, category_1, tag_1, page_1, pageSize_1, ...args_1], void 0, function* (xStoreID, source, status, query, category, tag, page, pageSize, options = {}) {
15416
+ // verify required parameter 'xStoreID' is not null or undefined
15417
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsGet', 'xStoreID', xStoreID);
15418
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions`
15419
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15420
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15421
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15422
+ let baseOptions;
15423
+ if (configuration) {
15424
+ baseOptions = configuration.baseOptions;
15425
+ }
15426
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15427
+ const localVarHeaderParameter = {};
15428
+ const localVarQueryParameter = {};
15429
+ // authentication BearerAuth required
15430
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15431
+ if (source !== undefined) {
15432
+ localVarQueryParameter['source'] = source;
15433
+ }
15434
+ if (status !== undefined) {
15435
+ localVarQueryParameter['status'] = status;
15436
+ }
15437
+ if (query !== undefined) {
15438
+ localVarQueryParameter['query'] = query;
15439
+ }
15440
+ if (category !== undefined) {
15441
+ localVarQueryParameter['category'] = category;
15442
+ }
15443
+ if (tag !== undefined) {
15444
+ localVarQueryParameter['tag'] = tag;
15445
+ }
15446
+ if (page !== undefined) {
15447
+ localVarQueryParameter['page'] = page;
15448
+ }
15449
+ if (pageSize !== undefined) {
15450
+ localVarQueryParameter['page_size'] = pageSize;
15451
+ }
15452
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15454
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15455
+ return {
15456
+ url: (0, common_1.toPathString)(localVarUrlObj),
15457
+ options: localVarRequestOptions,
15458
+ };
15459
+ }),
15460
+ /**
15461
+ * Import query suggestions from JSON data
15462
+ * @summary Import Query Suggestions
15463
+ * @param {string} xStoreID Store ID
15464
+ * @param {AnalyticsImportQuerySuggestionsRequest} body Import suggestions request
15465
+ * @param {*} [options] Override http request option.
15466
+ * @throws {RequiredError}
15467
+ */
15468
+ adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
15469
+ // verify required parameter 'xStoreID' is not null or undefined
15470
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost', 'xStoreID', xStoreID);
15471
+ // verify required parameter 'body' is not null or undefined
15472
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost', 'body', body);
15473
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/import`
15474
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15476
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15477
+ let baseOptions;
15478
+ if (configuration) {
15479
+ baseOptions = configuration.baseOptions;
15480
+ }
15481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15482
+ const localVarHeaderParameter = {};
15483
+ const localVarQueryParameter = {};
15484
+ // authentication BearerAuth required
15485
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15486
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15487
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15489
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15490
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
15491
+ return {
15492
+ url: (0, common_1.toPathString)(localVarUrlObj),
15493
+ options: localVarRequestOptions,
15494
+ };
15495
+ }),
15496
+ /**
15497
+ * Add a manually created query suggestion for a store
15498
+ * @summary Add Manual Query Suggestion
15499
+ * @param {string} xStoreID Store ID
15500
+ * @param {AnalyticsManualQuerySuggestionRequest} body Manual suggestion request
15501
+ * @param {*} [options] Override http request option.
15502
+ * @throws {RequiredError}
15503
+ */
15504
+ adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
15505
+ // verify required parameter 'xStoreID' is not null or undefined
15506
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost', 'xStoreID', xStoreID);
15507
+ // verify required parameter 'body' is not null or undefined
15508
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost', 'body', body);
15509
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/manual`
15510
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15512
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15513
+ let baseOptions;
15514
+ if (configuration) {
15515
+ baseOptions = configuration.baseOptions;
15516
+ }
15517
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15518
+ const localVarHeaderParameter = {};
15519
+ const localVarQueryParameter = {};
15520
+ // authentication BearerAuth required
15521
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15523
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15524
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15525
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15526
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
15527
+ return {
15528
+ url: (0, common_1.toPathString)(localVarUrlObj),
15529
+ options: localVarRequestOptions,
15530
+ };
15531
+ }),
15532
+ /**
15533
+ * Migrate existing search analytics data to the new query suggestions management system
15534
+ * @summary Migrate Existing Analytics Data
15535
+ * @param {string} xStoreID Store ID
15536
+ * @param {number} [daysBack] Number of days back to migrate data
15537
+ * @param {number} [minPopularity] Minimum popularity threshold
15538
+ * @param {*} [options] Override http request option.
15539
+ * @throws {RequiredError}
15540
+ */
15541
+ adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost: (xStoreID_1, daysBack_1, minPopularity_1, ...args_1) => __awaiter(this, [xStoreID_1, daysBack_1, minPopularity_1, ...args_1], void 0, function* (xStoreID, daysBack, minPopularity, options = {}) {
15542
+ // verify required parameter 'xStoreID' is not null or undefined
15543
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost', 'xStoreID', xStoreID);
15544
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/migrate`
15545
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15546
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15547
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15548
+ let baseOptions;
15549
+ if (configuration) {
15550
+ baseOptions = configuration.baseOptions;
15551
+ }
15552
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15553
+ const localVarHeaderParameter = {};
15554
+ const localVarQueryParameter = {};
15555
+ // authentication BearerAuth required
15556
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15557
+ if (daysBack !== undefined) {
15558
+ localVarQueryParameter['days_back'] = daysBack;
15559
+ }
15560
+ if (minPopularity !== undefined) {
15561
+ localVarQueryParameter['min_popularity'] = minPopularity;
15562
+ }
15563
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15566
+ return {
15567
+ url: (0, common_1.toPathString)(localVarUrlObj),
15568
+ options: localVarRequestOptions,
15569
+ };
15570
+ }),
15571
+ /**
15572
+ * Move ALL auto-generated suggestions from cache to the management table that meet minimum popularity criteria
15573
+ * @summary Promote ALL Cached Suggestions to Management Table
15574
+ * @param {string} xStoreID Store ID
15575
+ * @param {number} [minPopularity] Minimum popularity threshold (default: 5)
15576
+ * @param {*} [options] Override http request option.
15577
+ * @throws {RequiredError}
15578
+ */
15579
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost: (xStoreID_1, minPopularity_1, ...args_1) => __awaiter(this, [xStoreID_1, minPopularity_1, ...args_1], void 0, function* (xStoreID, minPopularity, options = {}) {
15580
+ // verify required parameter 'xStoreID' is not null or undefined
15581
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost', 'xStoreID', xStoreID);
15582
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/promote-all`
15583
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15584
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15585
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15586
+ let baseOptions;
15587
+ if (configuration) {
15588
+ baseOptions = configuration.baseOptions;
15589
+ }
15590
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15591
+ const localVarHeaderParameter = {};
15592
+ const localVarQueryParameter = {};
15593
+ // authentication BearerAuth required
15594
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15595
+ if (minPopularity !== undefined) {
15596
+ localVarQueryParameter['min_popularity'] = minPopularity;
15597
+ }
15598
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15600
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15601
+ return {
15602
+ url: (0, common_1.toPathString)(localVarUrlObj),
15603
+ options: localVarRequestOptions,
15604
+ };
15605
+ }),
15606
+ /**
15607
+ * Move selected auto-generated suggestions from cache to the management table
15608
+ * @summary Promote Cached Suggestions to Management Table
15609
+ * @param {string} xStoreID Store ID
15610
+ * @param {AnalyticsPromoteSuggestionsRequest} body Promotion request
15611
+ * @param {*} [options] Override http request option.
15612
+ * @throws {RequiredError}
15613
+ */
15614
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
15615
+ // verify required parameter 'xStoreID' is not null or undefined
15616
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost', 'xStoreID', xStoreID);
15617
+ // verify required parameter 'body' is not null or undefined
15618
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost', 'body', body);
15619
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/promote`
15620
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15622
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15623
+ let baseOptions;
15624
+ if (configuration) {
15625
+ baseOptions = configuration.baseOptions;
15626
+ }
15627
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15628
+ const localVarHeaderParameter = {};
15629
+ const localVarQueryParameter = {};
15630
+ // authentication BearerAuth required
15631
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15632
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15633
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15634
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15635
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15636
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
15637
+ return {
15638
+ url: (0, common_1.toPathString)(localVarUrlObj),
15639
+ options: localVarRequestOptions,
15640
+ };
15641
+ }),
15642
+ /**
15643
+ * Refresh auto-generated suggestions from search analytics data
15644
+ * @summary Refresh Auto-Generated Suggestions
15645
+ * @param {string} xStoreID Store ID
15646
+ * @param {number} [minPopularity] Minimum popularity threshold
15647
+ * @param {number} [days] Number of days to analyze
15648
+ * @param {*} [options] Override http request option.
15649
+ * @throws {RequiredError}
15650
+ */
15651
+ adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost: (xStoreID_1, minPopularity_1, days_1, ...args_1) => __awaiter(this, [xStoreID_1, minPopularity_1, days_1, ...args_1], void 0, function* (xStoreID, minPopularity, days, options = {}) {
15652
+ // verify required parameter 'xStoreID' is not null or undefined
15653
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost', 'xStoreID', xStoreID);
15654
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/refresh`
15655
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15656
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15657
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15658
+ let baseOptions;
15659
+ if (configuration) {
15660
+ baseOptions = configuration.baseOptions;
15661
+ }
15662
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15663
+ const localVarHeaderParameter = {};
15664
+ const localVarQueryParameter = {};
15665
+ // authentication BearerAuth required
15666
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15667
+ if (minPopularity !== undefined) {
15668
+ localVarQueryParameter['min_popularity'] = minPopularity;
15669
+ }
15670
+ if (days !== undefined) {
15671
+ localVarQueryParameter['days'] = days;
15672
+ }
15673
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15674
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15675
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15676
+ return {
15677
+ url: (0, common_1.toPathString)(localVarUrlObj),
15678
+ options: localVarRequestOptions,
15679
+ };
15680
+ }),
15681
+ /**
15682
+ * Get statistics about query suggestions for a store
15683
+ * @summary Get Suggestion Statistics
15684
+ * @param {string} xStoreID Store ID
15685
+ * @param {*} [options] Override http request option.
15686
+ * @throws {RequiredError}
15687
+ */
15688
+ adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
15689
+ // verify required parameter 'xStoreID' is not null or undefined
15690
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet', 'xStoreID', xStoreID);
15691
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/stats`
15692
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15693
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15694
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15695
+ let baseOptions;
15696
+ if (configuration) {
15697
+ baseOptions = configuration.baseOptions;
15698
+ }
15699
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15700
+ const localVarHeaderParameter = {};
15701
+ const localVarQueryParameter = {};
15702
+ // authentication BearerAuth required
15703
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15704
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15706
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15707
+ return {
15708
+ url: (0, common_1.toPathString)(localVarUrlObj),
15709
+ options: localVarRequestOptions,
15710
+ };
15711
+ }),
15712
+ /**
15713
+ * Update the status (enabled/disabled) of a query suggestion
15714
+ * @summary Update Suggestion Status
15715
+ * @param {string} xStoreID Store ID
15716
+ * @param {string} suggestionID Suggestion ID
15717
+ * @param {string} status New status (enabled, disabled)
15718
+ * @param {*} [options] Override http request option.
15719
+ * @throws {RequiredError}
15720
+ */
15721
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut: (xStoreID_1, suggestionID_1, status_1, ...args_1) => __awaiter(this, [xStoreID_1, suggestionID_1, status_1, ...args_1], void 0, function* (xStoreID, suggestionID, status, options = {}) {
15722
+ // verify required parameter 'xStoreID' is not null or undefined
15723
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut', 'xStoreID', xStoreID);
15724
+ // verify required parameter 'suggestionID' is not null or undefined
15725
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut', 'suggestionID', suggestionID);
15726
+ // verify required parameter 'status' is not null or undefined
15727
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut', 'status', status);
15728
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/{suggestionID}/status`
15729
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
15730
+ .replace(`{${"suggestionID"}}`, encodeURIComponent(String(suggestionID)));
15731
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15732
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15733
+ let baseOptions;
15734
+ if (configuration) {
15735
+ baseOptions = configuration.baseOptions;
15736
+ }
15737
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
15738
+ const localVarHeaderParameter = {};
15739
+ const localVarQueryParameter = {};
15740
+ // authentication BearerAuth required
15741
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15742
+ if (status !== undefined) {
15743
+ localVarQueryParameter['status'] = status;
15744
+ }
15745
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15747
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15748
+ return {
15749
+ url: (0, common_1.toPathString)(localVarUrlObj),
15750
+ options: localVarRequestOptions,
15751
+ };
15752
+ }),
15753
+ /**
15754
+ * Sync enabled query suggestions to Typesense collection for public API usage
15755
+ * @summary Sync Suggestions to Typesense
15756
+ * @param {string} xStoreID Store ID
15757
+ * @param {*} [options] Override http request option.
15758
+ * @throws {RequiredError}
15759
+ */
15760
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
15761
+ // verify required parameter 'xStoreID' is not null or undefined
15762
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost', 'xStoreID', xStoreID);
15763
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/sync`
15764
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15766
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15767
+ let baseOptions;
15768
+ if (configuration) {
15769
+ baseOptions = configuration.baseOptions;
15770
+ }
15771
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15772
+ const localVarHeaderParameter = {};
15773
+ const localVarQueryParameter = {};
15774
+ // authentication BearerAuth required
15775
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15776
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15778
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15779
+ return {
15780
+ url: (0, common_1.toPathString)(localVarUrlObj),
15781
+ options: localVarRequestOptions,
15782
+ };
15783
+ }),
15784
+ /**
15785
+ * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
15786
+ * @summary Get Query Suggestions from Typesense (Admin)
15787
+ * @param {string} xStoreID Store ID
15788
+ * @param {string} [query] Partial query to get suggestions for
15789
+ * @param {number} [hitsPerPage] Number of suggestions to return
15790
+ * @param {number} [page] Page number for pagination
15791
+ * @param {*} [options] Override http request option.
15792
+ * @throws {RequiredError}
15793
+ */
15794
+ adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet: (xStoreID_1, query_1, hitsPerPage_1, page_1, ...args_1) => __awaiter(this, [xStoreID_1, query_1, hitsPerPage_1, page_1, ...args_1], void 0, function* (xStoreID, query, hitsPerPage, page, options = {}) {
15795
+ // verify required parameter 'xStoreID' is not null or undefined
15796
+ (0, common_1.assertParamExists)('adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet', 'xStoreID', xStoreID);
15797
+ const localVarPath = `/admin/analytics/store/{xStoreID}/query-suggestions/typesense`
15798
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
15799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15800
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15801
+ let baseOptions;
15802
+ if (configuration) {
15803
+ baseOptions = configuration.baseOptions;
15804
+ }
15805
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15806
+ const localVarHeaderParameter = {};
15807
+ const localVarQueryParameter = {};
15808
+ // authentication BearerAuth required
15809
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15810
+ if (query !== undefined) {
15811
+ localVarQueryParameter['query'] = query;
15812
+ }
15813
+ if (hitsPerPage !== undefined) {
15814
+ localVarQueryParameter['hitsPerPage'] = hitsPerPage;
15815
+ }
15816
+ if (page !== undefined) {
15817
+ localVarQueryParameter['page'] = page;
15818
+ }
15819
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15820
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15821
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15822
+ return {
15823
+ url: (0, common_1.toPathString)(localVarUrlObj),
15824
+ options: localVarRequestOptions,
15825
+ };
15826
+ }),
15827
+ };
15828
+ };
15829
+ exports.QuerySuggestionsManagementApiAxiosParamCreator = QuerySuggestionsManagementApiAxiosParamCreator;
15830
+ /**
15831
+ * QuerySuggestionsManagementApi - functional programming interface
15832
+ * @export
15833
+ */
15834
+ const QuerySuggestionsManagementApiFp = function (configuration) {
15835
+ const localVarAxiosParamCreator = (0, exports.QuerySuggestionsManagementApiAxiosParamCreator)(configuration);
15836
+ return {
15837
+ /**
15838
+ * Migrate existing analytics data for all stores (admin only)
15839
+ * @summary Migrate All Stores Data
15840
+ * @param {number} [daysBack] Number of days back to migrate data
15841
+ * @param {number} [minPopularity] Minimum popularity threshold
15842
+ * @param {*} [options] Override http request option.
15843
+ * @throws {RequiredError}
15844
+ */
15845
+ adminAnalyticsQuerySuggestionsMigrateAllPost(daysBack, minPopularity, options) {
15846
+ return __awaiter(this, void 0, void 0, function* () {
15847
+ var _a, _b, _c;
15848
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsQuerySuggestionsMigrateAllPost(daysBack, minPopularity, options);
15849
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15850
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsQuerySuggestionsMigrateAllPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15851
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15852
+ });
15853
+ },
15854
+ /**
15855
+ * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
15856
+ * @summary Bulk Update Suggestions
15857
+ * @param {string} xStoreID Store ID
15858
+ * @param {AnalyticsBulkOperationRequest} body Bulk operation request
15859
+ * @param {*} [options] Override http request option.
15860
+ * @throws {RequiredError}
15861
+ */
15862
+ adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost(xStoreID, body, options) {
15863
+ return __awaiter(this, void 0, void 0, function* () {
15864
+ var _a, _b, _c;
15865
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost(xStoreID, body, options);
15866
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15867
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15868
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15869
+ });
15870
+ },
15871
+ /**
15872
+ * Retrieve auto-generated suggestions from cache for review before promoting to management table
15873
+ * @summary Get Cached Auto-Generated Suggestions
15874
+ * @param {string} xStoreID Store ID
15875
+ * @param {number} [page] Page number
15876
+ * @param {number} [pageSize] Items per page
15877
+ * @param {number} [minPopularity] Minimum popularity threshold
15878
+ * @param {*} [options] Override http request option.
15879
+ * @throws {RequiredError}
15880
+ */
15881
+ adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet(xStoreID, page, pageSize, minPopularity, options) {
15882
+ return __awaiter(this, void 0, void 0, function* () {
15883
+ var _a, _b, _c;
15884
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet(xStoreID, page, pageSize, minPopularity, options);
15885
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15886
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15887
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15888
+ });
15889
+ },
15890
+ /**
15891
+ * Retrieve query suggestions with filtering and pagination for management
15892
+ * @summary Get Query Suggestions
15893
+ * @param {string} xStoreID Store ID
15894
+ * @param {string} [source] Filter by source (auto_generated, manual, imported)
15895
+ * @param {string} [status] Filter by status (enabled, disabled)
15896
+ * @param {string} [query] Search within query text
15897
+ * @param {string} [category] Filter by category
15898
+ * @param {string} [tag] Filter by tag
15899
+ * @param {number} [page] Page number
15900
+ * @param {number} [pageSize] Number of items per page
15901
+ * @param {*} [options] Override http request option.
15902
+ * @throws {RequiredError}
15903
+ */
15904
+ adminAnalyticsStoreXStoreIDQuerySuggestionsGet(xStoreID, source, status, query, category, tag, page, pageSize, options) {
15905
+ return __awaiter(this, void 0, void 0, function* () {
15906
+ var _a, _b, _c;
15907
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsGet(xStoreID, source, status, query, category, tag, page, pageSize, options);
15908
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15909
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15910
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15911
+ });
15912
+ },
15913
+ /**
15914
+ * Import query suggestions from JSON data
15915
+ * @summary Import Query Suggestions
15916
+ * @param {string} xStoreID Store ID
15917
+ * @param {AnalyticsImportQuerySuggestionsRequest} body Import suggestions request
15918
+ * @param {*} [options] Override http request option.
15919
+ * @throws {RequiredError}
15920
+ */
15921
+ adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost(xStoreID, body, options) {
15922
+ return __awaiter(this, void 0, void 0, function* () {
15923
+ var _a, _b, _c;
15924
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost(xStoreID, body, options);
15925
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15926
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15927
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15928
+ });
15929
+ },
15930
+ /**
15931
+ * Add a manually created query suggestion for a store
15932
+ * @summary Add Manual Query Suggestion
15933
+ * @param {string} xStoreID Store ID
15934
+ * @param {AnalyticsManualQuerySuggestionRequest} body Manual suggestion request
15935
+ * @param {*} [options] Override http request option.
15936
+ * @throws {RequiredError}
15937
+ */
15938
+ adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost(xStoreID, body, options) {
15939
+ return __awaiter(this, void 0, void 0, function* () {
15940
+ var _a, _b, _c;
15941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost(xStoreID, body, options);
15942
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15943
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15944
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15945
+ });
15946
+ },
15947
+ /**
15948
+ * Migrate existing search analytics data to the new query suggestions management system
15949
+ * @summary Migrate Existing Analytics Data
15950
+ * @param {string} xStoreID Store ID
15951
+ * @param {number} [daysBack] Number of days back to migrate data
15952
+ * @param {number} [minPopularity] Minimum popularity threshold
15953
+ * @param {*} [options] Override http request option.
15954
+ * @throws {RequiredError}
15955
+ */
15956
+ adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost(xStoreID, daysBack, minPopularity, options) {
15957
+ return __awaiter(this, void 0, void 0, function* () {
15958
+ var _a, _b, _c;
15959
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost(xStoreID, daysBack, minPopularity, options);
15960
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15961
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15962
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15963
+ });
15964
+ },
15965
+ /**
15966
+ * Move ALL auto-generated suggestions from cache to the management table that meet minimum popularity criteria
15967
+ * @summary Promote ALL Cached Suggestions to Management Table
15968
+ * @param {string} xStoreID Store ID
15969
+ * @param {number} [minPopularity] Minimum popularity threshold (default: 5)
15970
+ * @param {*} [options] Override http request option.
15971
+ * @throws {RequiredError}
15972
+ */
15973
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost(xStoreID, minPopularity, options) {
15974
+ return __awaiter(this, void 0, void 0, function* () {
15975
+ var _a, _b, _c;
15976
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost(xStoreID, minPopularity, options);
15977
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15978
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15979
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15980
+ });
15981
+ },
15982
+ /**
15983
+ * Move selected auto-generated suggestions from cache to the management table
15984
+ * @summary Promote Cached Suggestions to Management Table
15985
+ * @param {string} xStoreID Store ID
15986
+ * @param {AnalyticsPromoteSuggestionsRequest} body Promotion request
15987
+ * @param {*} [options] Override http request option.
15988
+ * @throws {RequiredError}
15989
+ */
15990
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost(xStoreID, body, options) {
15991
+ return __awaiter(this, void 0, void 0, function* () {
15992
+ var _a, _b, _c;
15993
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost(xStoreID, body, options);
15994
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15995
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15996
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15997
+ });
15998
+ },
15999
+ /**
16000
+ * Refresh auto-generated suggestions from search analytics data
16001
+ * @summary Refresh Auto-Generated Suggestions
16002
+ * @param {string} xStoreID Store ID
16003
+ * @param {number} [minPopularity] Minimum popularity threshold
16004
+ * @param {number} [days] Number of days to analyze
16005
+ * @param {*} [options] Override http request option.
16006
+ * @throws {RequiredError}
16007
+ */
16008
+ adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost(xStoreID, minPopularity, days, options) {
16009
+ return __awaiter(this, void 0, void 0, function* () {
16010
+ var _a, _b, _c;
16011
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost(xStoreID, minPopularity, days, options);
16012
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16013
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16014
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16015
+ });
16016
+ },
16017
+ /**
16018
+ * Get statistics about query suggestions for a store
16019
+ * @summary Get Suggestion Statistics
16020
+ * @param {string} xStoreID Store ID
16021
+ * @param {*} [options] Override http request option.
16022
+ * @throws {RequiredError}
16023
+ */
16024
+ adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet(xStoreID, options) {
16025
+ return __awaiter(this, void 0, void 0, function* () {
16026
+ var _a, _b, _c;
16027
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet(xStoreID, options);
16028
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16029
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16030
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16031
+ });
16032
+ },
16033
+ /**
16034
+ * Update the status (enabled/disabled) of a query suggestion
16035
+ * @summary Update Suggestion Status
16036
+ * @param {string} xStoreID Store ID
16037
+ * @param {string} suggestionID Suggestion ID
16038
+ * @param {string} status New status (enabled, disabled)
16039
+ * @param {*} [options] Override http request option.
16040
+ * @throws {RequiredError}
16041
+ */
16042
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut(xStoreID, suggestionID, status, options) {
16043
+ return __awaiter(this, void 0, void 0, function* () {
16044
+ var _a, _b, _c;
16045
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut(xStoreID, suggestionID, status, options);
16046
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16047
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16048
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16049
+ });
16050
+ },
16051
+ /**
16052
+ * Sync enabled query suggestions to Typesense collection for public API usage
16053
+ * @summary Sync Suggestions to Typesense
16054
+ * @param {string} xStoreID Store ID
16055
+ * @param {*} [options] Override http request option.
16056
+ * @throws {RequiredError}
16057
+ */
16058
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost(xStoreID, options) {
16059
+ return __awaiter(this, void 0, void 0, function* () {
16060
+ var _a, _b, _c;
16061
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost(xStoreID, options);
16062
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16063
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16064
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16065
+ });
16066
+ },
16067
+ /**
16068
+ * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
16069
+ * @summary Get Query Suggestions from Typesense (Admin)
16070
+ * @param {string} xStoreID Store ID
16071
+ * @param {string} [query] Partial query to get suggestions for
16072
+ * @param {number} [hitsPerPage] Number of suggestions to return
16073
+ * @param {number} [page] Page number for pagination
16074
+ * @param {*} [options] Override http request option.
16075
+ * @throws {RequiredError}
16076
+ */
16077
+ adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet(xStoreID, query, hitsPerPage, page, options) {
16078
+ return __awaiter(this, void 0, void 0, function* () {
16079
+ var _a, _b, _c;
16080
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet(xStoreID, query, hitsPerPage, page, options);
16081
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16082
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16083
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16084
+ });
16085
+ },
16086
+ };
16087
+ };
16088
+ exports.QuerySuggestionsManagementApiFp = QuerySuggestionsManagementApiFp;
16089
+ /**
16090
+ * QuerySuggestionsManagementApi - factory interface
16091
+ * @export
16092
+ */
16093
+ const QuerySuggestionsManagementApiFactory = function (configuration, basePath, axios) {
16094
+ const localVarFp = (0, exports.QuerySuggestionsManagementApiFp)(configuration);
16095
+ return {
16096
+ /**
16097
+ * Migrate existing analytics data for all stores (admin only)
16098
+ * @summary Migrate All Stores Data
16099
+ * @param {number} [daysBack] Number of days back to migrate data
16100
+ * @param {number} [minPopularity] Minimum popularity threshold
16101
+ * @param {*} [options] Override http request option.
16102
+ * @throws {RequiredError}
16103
+ */
16104
+ adminAnalyticsQuerySuggestionsMigrateAllPost(daysBack, minPopularity, options) {
16105
+ return localVarFp.adminAnalyticsQuerySuggestionsMigrateAllPost(daysBack, minPopularity, options).then((request) => request(axios, basePath));
16106
+ },
16107
+ /**
16108
+ * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
16109
+ * @summary Bulk Update Suggestions
16110
+ * @param {string} xStoreID Store ID
16111
+ * @param {AnalyticsBulkOperationRequest} body Bulk operation request
16112
+ * @param {*} [options] Override http request option.
16113
+ * @throws {RequiredError}
16114
+ */
16115
+ adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost(xStoreID, body, options) {
16116
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost(xStoreID, body, options).then((request) => request(axios, basePath));
16117
+ },
16118
+ /**
16119
+ * Retrieve auto-generated suggestions from cache for review before promoting to management table
16120
+ * @summary Get Cached Auto-Generated Suggestions
16121
+ * @param {string} xStoreID Store ID
16122
+ * @param {number} [page] Page number
16123
+ * @param {number} [pageSize] Items per page
16124
+ * @param {number} [minPopularity] Minimum popularity threshold
16125
+ * @param {*} [options] Override http request option.
16126
+ * @throws {RequiredError}
16127
+ */
16128
+ adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet(xStoreID, page, pageSize, minPopularity, options) {
16129
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet(xStoreID, page, pageSize, minPopularity, options).then((request) => request(axios, basePath));
16130
+ },
16131
+ /**
16132
+ * Retrieve query suggestions with filtering and pagination for management
16133
+ * @summary Get Query Suggestions
16134
+ * @param {string} xStoreID Store ID
16135
+ * @param {string} [source] Filter by source (auto_generated, manual, imported)
16136
+ * @param {string} [status] Filter by status (enabled, disabled)
16137
+ * @param {string} [query] Search within query text
16138
+ * @param {string} [category] Filter by category
16139
+ * @param {string} [tag] Filter by tag
16140
+ * @param {number} [page] Page number
16141
+ * @param {number} [pageSize] Number of items per page
16142
+ * @param {*} [options] Override http request option.
16143
+ * @throws {RequiredError}
16144
+ */
16145
+ adminAnalyticsStoreXStoreIDQuerySuggestionsGet(xStoreID, source, status, query, category, tag, page, pageSize, options) {
16146
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsGet(xStoreID, source, status, query, category, tag, page, pageSize, options).then((request) => request(axios, basePath));
16147
+ },
16148
+ /**
16149
+ * Import query suggestions from JSON data
16150
+ * @summary Import Query Suggestions
16151
+ * @param {string} xStoreID Store ID
16152
+ * @param {AnalyticsImportQuerySuggestionsRequest} body Import suggestions request
16153
+ * @param {*} [options] Override http request option.
16154
+ * @throws {RequiredError}
16155
+ */
16156
+ adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost(xStoreID, body, options) {
16157
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost(xStoreID, body, options).then((request) => request(axios, basePath));
16158
+ },
16159
+ /**
16160
+ * Add a manually created query suggestion for a store
16161
+ * @summary Add Manual Query Suggestion
16162
+ * @param {string} xStoreID Store ID
16163
+ * @param {AnalyticsManualQuerySuggestionRequest} body Manual suggestion request
16164
+ * @param {*} [options] Override http request option.
16165
+ * @throws {RequiredError}
16166
+ */
16167
+ adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost(xStoreID, body, options) {
16168
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost(xStoreID, body, options).then((request) => request(axios, basePath));
16169
+ },
16170
+ /**
16171
+ * Migrate existing search analytics data to the new query suggestions management system
16172
+ * @summary Migrate Existing Analytics Data
16173
+ * @param {string} xStoreID Store ID
16174
+ * @param {number} [daysBack] Number of days back to migrate data
16175
+ * @param {number} [minPopularity] Minimum popularity threshold
16176
+ * @param {*} [options] Override http request option.
16177
+ * @throws {RequiredError}
16178
+ */
16179
+ adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost(xStoreID, daysBack, minPopularity, options) {
16180
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost(xStoreID, daysBack, minPopularity, options).then((request) => request(axios, basePath));
16181
+ },
16182
+ /**
16183
+ * Move ALL auto-generated suggestions from cache to the management table that meet minimum popularity criteria
16184
+ * @summary Promote ALL Cached Suggestions to Management Table
16185
+ * @param {string} xStoreID Store ID
16186
+ * @param {number} [minPopularity] Minimum popularity threshold (default: 5)
16187
+ * @param {*} [options] Override http request option.
16188
+ * @throws {RequiredError}
16189
+ */
16190
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost(xStoreID, minPopularity, options) {
16191
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost(xStoreID, minPopularity, options).then((request) => request(axios, basePath));
16192
+ },
16193
+ /**
16194
+ * Move selected auto-generated suggestions from cache to the management table
16195
+ * @summary Promote Cached Suggestions to Management Table
16196
+ * @param {string} xStoreID Store ID
16197
+ * @param {AnalyticsPromoteSuggestionsRequest} body Promotion request
16198
+ * @param {*} [options] Override http request option.
16199
+ * @throws {RequiredError}
16200
+ */
16201
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost(xStoreID, body, options) {
16202
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost(xStoreID, body, options).then((request) => request(axios, basePath));
16203
+ },
16204
+ /**
16205
+ * Refresh auto-generated suggestions from search analytics data
16206
+ * @summary Refresh Auto-Generated Suggestions
16207
+ * @param {string} xStoreID Store ID
16208
+ * @param {number} [minPopularity] Minimum popularity threshold
16209
+ * @param {number} [days] Number of days to analyze
16210
+ * @param {*} [options] Override http request option.
16211
+ * @throws {RequiredError}
16212
+ */
16213
+ adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost(xStoreID, minPopularity, days, options) {
16214
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost(xStoreID, minPopularity, days, options).then((request) => request(axios, basePath));
16215
+ },
16216
+ /**
16217
+ * Get statistics about query suggestions for a store
16218
+ * @summary Get Suggestion Statistics
16219
+ * @param {string} xStoreID Store ID
16220
+ * @param {*} [options] Override http request option.
16221
+ * @throws {RequiredError}
16222
+ */
16223
+ adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet(xStoreID, options) {
16224
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet(xStoreID, options).then((request) => request(axios, basePath));
16225
+ },
16226
+ /**
16227
+ * Update the status (enabled/disabled) of a query suggestion
16228
+ * @summary Update Suggestion Status
16229
+ * @param {string} xStoreID Store ID
16230
+ * @param {string} suggestionID Suggestion ID
16231
+ * @param {string} status New status (enabled, disabled)
16232
+ * @param {*} [options] Override http request option.
16233
+ * @throws {RequiredError}
16234
+ */
16235
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut(xStoreID, suggestionID, status, options) {
16236
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut(xStoreID, suggestionID, status, options).then((request) => request(axios, basePath));
16237
+ },
16238
+ /**
16239
+ * Sync enabled query suggestions to Typesense collection for public API usage
16240
+ * @summary Sync Suggestions to Typesense
16241
+ * @param {string} xStoreID Store ID
16242
+ * @param {*} [options] Override http request option.
16243
+ * @throws {RequiredError}
16244
+ */
16245
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost(xStoreID, options) {
16246
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost(xStoreID, options).then((request) => request(axios, basePath));
16247
+ },
16248
+ /**
16249
+ * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
16250
+ * @summary Get Query Suggestions from Typesense (Admin)
16251
+ * @param {string} xStoreID Store ID
16252
+ * @param {string} [query] Partial query to get suggestions for
16253
+ * @param {number} [hitsPerPage] Number of suggestions to return
16254
+ * @param {number} [page] Page number for pagination
16255
+ * @param {*} [options] Override http request option.
16256
+ * @throws {RequiredError}
16257
+ */
16258
+ adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet(xStoreID, query, hitsPerPage, page, options) {
16259
+ return localVarFp.adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet(xStoreID, query, hitsPerPage, page, options).then((request) => request(axios, basePath));
16260
+ },
16261
+ };
16262
+ };
16263
+ exports.QuerySuggestionsManagementApiFactory = QuerySuggestionsManagementApiFactory;
16264
+ /**
16265
+ * QuerySuggestionsManagementApi - object-oriented interface
16266
+ * @export
16267
+ * @class QuerySuggestionsManagementApi
16268
+ * @extends {BaseAPI}
16269
+ */
16270
+ class QuerySuggestionsManagementApi extends base_1.BaseAPI {
16271
+ /**
16272
+ * Migrate existing analytics data for all stores (admin only)
16273
+ * @summary Migrate All Stores Data
16274
+ * @param {number} [daysBack] Number of days back to migrate data
16275
+ * @param {number} [minPopularity] Minimum popularity threshold
16276
+ * @param {*} [options] Override http request option.
16277
+ * @throws {RequiredError}
16278
+ * @memberof QuerySuggestionsManagementApi
16279
+ */
16280
+ adminAnalyticsQuerySuggestionsMigrateAllPost(daysBack, minPopularity, options) {
16281
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsQuerySuggestionsMigrateAllPost(daysBack, minPopularity, options).then((request) => request(this.axios, this.basePath));
16282
+ }
16283
+ /**
16284
+ * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
16285
+ * @summary Bulk Update Suggestions
16286
+ * @param {string} xStoreID Store ID
16287
+ * @param {AnalyticsBulkOperationRequest} body Bulk operation request
16288
+ * @param {*} [options] Override http request option.
16289
+ * @throws {RequiredError}
16290
+ * @memberof QuerySuggestionsManagementApi
16291
+ */
16292
+ adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost(xStoreID, body, options) {
16293
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsBulkPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
16294
+ }
16295
+ /**
16296
+ * Retrieve auto-generated suggestions from cache for review before promoting to management table
16297
+ * @summary Get Cached Auto-Generated Suggestions
16298
+ * @param {string} xStoreID Store ID
16299
+ * @param {number} [page] Page number
16300
+ * @param {number} [pageSize] Items per page
16301
+ * @param {number} [minPopularity] Minimum popularity threshold
16302
+ * @param {*} [options] Override http request option.
16303
+ * @throws {RequiredError}
16304
+ * @memberof QuerySuggestionsManagementApi
16305
+ */
16306
+ adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet(xStoreID, page, pageSize, minPopularity, options) {
16307
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsCachedGet(xStoreID, page, pageSize, minPopularity, options).then((request) => request(this.axios, this.basePath));
16308
+ }
16309
+ /**
16310
+ * Retrieve query suggestions with filtering and pagination for management
16311
+ * @summary Get Query Suggestions
16312
+ * @param {string} xStoreID Store ID
16313
+ * @param {string} [source] Filter by source (auto_generated, manual, imported)
16314
+ * @param {string} [status] Filter by status (enabled, disabled)
16315
+ * @param {string} [query] Search within query text
16316
+ * @param {string} [category] Filter by category
16317
+ * @param {string} [tag] Filter by tag
16318
+ * @param {number} [page] Page number
16319
+ * @param {number} [pageSize] Number of items per page
16320
+ * @param {*} [options] Override http request option.
16321
+ * @throws {RequiredError}
16322
+ * @memberof QuerySuggestionsManagementApi
16323
+ */
16324
+ adminAnalyticsStoreXStoreIDQuerySuggestionsGet(xStoreID, source, status, query, category, tag, page, pageSize, options) {
16325
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsGet(xStoreID, source, status, query, category, tag, page, pageSize, options).then((request) => request(this.axios, this.basePath));
16326
+ }
16327
+ /**
16328
+ * Import query suggestions from JSON data
16329
+ * @summary Import Query Suggestions
16330
+ * @param {string} xStoreID Store ID
16331
+ * @param {AnalyticsImportQuerySuggestionsRequest} body Import suggestions request
16332
+ * @param {*} [options] Override http request option.
16333
+ * @throws {RequiredError}
16334
+ * @memberof QuerySuggestionsManagementApi
16335
+ */
16336
+ adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost(xStoreID, body, options) {
16337
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsImportPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
16338
+ }
16339
+ /**
16340
+ * Add a manually created query suggestion for a store
16341
+ * @summary Add Manual Query Suggestion
16342
+ * @param {string} xStoreID Store ID
16343
+ * @param {AnalyticsManualQuerySuggestionRequest} body Manual suggestion request
16344
+ * @param {*} [options] Override http request option.
16345
+ * @throws {RequiredError}
16346
+ * @memberof QuerySuggestionsManagementApi
16347
+ */
16348
+ adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost(xStoreID, body, options) {
16349
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsManualPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
16350
+ }
16351
+ /**
16352
+ * Migrate existing search analytics data to the new query suggestions management system
16353
+ * @summary Migrate Existing Analytics Data
16354
+ * @param {string} xStoreID Store ID
16355
+ * @param {number} [daysBack] Number of days back to migrate data
16356
+ * @param {number} [minPopularity] Minimum popularity threshold
16357
+ * @param {*} [options] Override http request option.
16358
+ * @throws {RequiredError}
16359
+ * @memberof QuerySuggestionsManagementApi
16360
+ */
16361
+ adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost(xStoreID, daysBack, minPopularity, options) {
16362
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsMigratePost(xStoreID, daysBack, minPopularity, options).then((request) => request(this.axios, this.basePath));
16363
+ }
16364
+ /**
16365
+ * Move ALL auto-generated suggestions from cache to the management table that meet minimum popularity criteria
16366
+ * @summary Promote ALL Cached Suggestions to Management Table
16367
+ * @param {string} xStoreID Store ID
16368
+ * @param {number} [minPopularity] Minimum popularity threshold (default: 5)
16369
+ * @param {*} [options] Override http request option.
16370
+ * @throws {RequiredError}
16371
+ * @memberof QuerySuggestionsManagementApi
16372
+ */
16373
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost(xStoreID, minPopularity, options) {
16374
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsPromoteAllPost(xStoreID, minPopularity, options).then((request) => request(this.axios, this.basePath));
16375
+ }
16376
+ /**
16377
+ * Move selected auto-generated suggestions from cache to the management table
16378
+ * @summary Promote Cached Suggestions to Management Table
16379
+ * @param {string} xStoreID Store ID
16380
+ * @param {AnalyticsPromoteSuggestionsRequest} body Promotion request
16381
+ * @param {*} [options] Override http request option.
16382
+ * @throws {RequiredError}
16383
+ * @memberof QuerySuggestionsManagementApi
16384
+ */
16385
+ adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost(xStoreID, body, options) {
16386
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsPromotePost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
16387
+ }
16388
+ /**
16389
+ * Refresh auto-generated suggestions from search analytics data
16390
+ * @summary Refresh Auto-Generated Suggestions
16391
+ * @param {string} xStoreID Store ID
16392
+ * @param {number} [minPopularity] Minimum popularity threshold
16393
+ * @param {number} [days] Number of days to analyze
16394
+ * @param {*} [options] Override http request option.
16395
+ * @throws {RequiredError}
16396
+ * @memberof QuerySuggestionsManagementApi
16397
+ */
16398
+ adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost(xStoreID, minPopularity, days, options) {
16399
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsRefreshPost(xStoreID, minPopularity, days, options).then((request) => request(this.axios, this.basePath));
16400
+ }
16401
+ /**
16402
+ * Get statistics about query suggestions for a store
16403
+ * @summary Get Suggestion Statistics
16404
+ * @param {string} xStoreID Store ID
16405
+ * @param {*} [options] Override http request option.
16406
+ * @throws {RequiredError}
16407
+ * @memberof QuerySuggestionsManagementApi
16408
+ */
16409
+ adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet(xStoreID, options) {
16410
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsStatsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
16411
+ }
16412
+ /**
16413
+ * Update the status (enabled/disabled) of a query suggestion
16414
+ * @summary Update Suggestion Status
16415
+ * @param {string} xStoreID Store ID
16416
+ * @param {string} suggestionID Suggestion ID
16417
+ * @param {string} status New status (enabled, disabled)
16418
+ * @param {*} [options] Override http request option.
16419
+ * @throws {RequiredError}
16420
+ * @memberof QuerySuggestionsManagementApi
16421
+ */
16422
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut(xStoreID, suggestionID, status, options) {
16423
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsSuggestionIDStatusPut(xStoreID, suggestionID, status, options).then((request) => request(this.axios, this.basePath));
16424
+ }
16425
+ /**
16426
+ * Sync enabled query suggestions to Typesense collection for public API usage
16427
+ * @summary Sync Suggestions to Typesense
16428
+ * @param {string} xStoreID Store ID
16429
+ * @param {*} [options] Override http request option.
16430
+ * @throws {RequiredError}
16431
+ * @memberof QuerySuggestionsManagementApi
16432
+ */
16433
+ adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost(xStoreID, options) {
16434
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsSyncPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
16435
+ }
16436
+ /**
16437
+ * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
16438
+ * @summary Get Query Suggestions from Typesense (Admin)
16439
+ * @param {string} xStoreID Store ID
16440
+ * @param {string} [query] Partial query to get suggestions for
16441
+ * @param {number} [hitsPerPage] Number of suggestions to return
16442
+ * @param {number} [page] Page number for pagination
16443
+ * @param {*} [options] Override http request option.
16444
+ * @throws {RequiredError}
16445
+ * @memberof QuerySuggestionsManagementApi
16446
+ */
16447
+ adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet(xStoreID, query, hitsPerPage, page, options) {
16448
+ return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminAnalyticsStoreXStoreIDQuerySuggestionsTypesenseGet(xStoreID, query, hitsPerPage, page, options).then((request) => request(this.axios, this.basePath));
16449
+ }
16450
+ }
16451
+ exports.QuerySuggestionsManagementApi = QuerySuggestionsManagementApi;
14709
16452
  /**
14710
16453
  * RegisterApi - axios parameter creator
14711
16454
  * @export