@seekora-ai/admin-api 1.0.62 → 1.0.64
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/.openapi-generator/VERSION +1 -1
- package/README.md +24 -3
- package/api.ts +1426 -40
- package/common.ts +4 -4
- package/dist/api.d.ts +1186 -94
- package/dist/api.js +554 -17
- package/dist/esm/api.d.ts +1186 -94
- package/dist/esm/api.js +549 -12
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.64.tgz +0 -0
- package/seekora-ai-admin-api-1.0.62.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -22,17 +22,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = void 0;
|
|
25
|
+
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.DataTypesRefundApprovalDtoActionEnum = exports.DataTypesCreditTransactionTransactionTypeEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreateRefundRequestDtoRefundTypeEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.AnalyticsRuleType = exports.AnalyticsQuerySuggestionStatus = exports.AnalyticsQuerySuggestionSource = exports.AnalyticsBulkOperation = exports.AnalyticsBannedMatchType = void 0;
|
|
26
|
+
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.BillingDashboardApi = exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = 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 = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = void 0;
|
|
27
|
+
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 = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = void 0;
|
|
28
|
+
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.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = void 0;
|
|
29
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const common_1 = require("./common");
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
const base_1 = require("./base");
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
* @enum {string}
|
|
40
|
+
*/
|
|
41
|
+
exports.AnalyticsBannedMatchType = {
|
|
42
|
+
BannedMatchIs: 'is',
|
|
43
|
+
BannedMatchContains: 'contains',
|
|
44
|
+
BannedMatchStartsWith: 'startsWith',
|
|
45
|
+
BannedMatchEndsWith: 'endsWith',
|
|
46
|
+
BannedMatchCustom: 'custom'
|
|
47
|
+
};
|
|
36
48
|
/**
|
|
37
49
|
*
|
|
38
50
|
* @export
|
|
@@ -63,6 +75,17 @@ exports.AnalyticsQuerySuggestionStatus = {
|
|
|
63
75
|
StatusEnabled: 'enabled',
|
|
64
76
|
StatusDisabled: 'disabled'
|
|
65
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @export
|
|
81
|
+
* @enum {string}
|
|
82
|
+
*/
|
|
83
|
+
exports.AnalyticsRuleType = {
|
|
84
|
+
RuleTypePromote: 'promote',
|
|
85
|
+
RuleTypeHide: 'hide',
|
|
86
|
+
RuleTypeRedirect: 'redirect',
|
|
87
|
+
RuleTypeBanner: 'banner'
|
|
88
|
+
};
|
|
66
89
|
exports.DataTypesCreateCustomWordListRequestTypeEnum = {
|
|
67
90
|
Stopwords: 'stopwords',
|
|
68
91
|
Synonyms: 'synonyms'
|
|
@@ -2412,11 +2435,11 @@ const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
2412
2435
|
};
|
|
2413
2436
|
}),
|
|
2414
2437
|
/**
|
|
2415
|
-
* Retrieve analytics tags usage data and filtering capabilities
|
|
2438
|
+
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
2416
2439
|
* @summary Get Analytics Tags
|
|
2417
2440
|
* @param {string} xStoreID Store ID
|
|
2418
|
-
* @param {string} [startTime] Start time in RFC3339 format
|
|
2419
|
-
* @param {string} [endTime] End time in RFC3339 format
|
|
2441
|
+
* @param {string} [startTime] Start time in RFC3339 format. If not specified, returns all tags from 2 years ago
|
|
2442
|
+
* @param {string} [endTime] End time in RFC3339 format. If not specified, returns all tags until now
|
|
2420
2443
|
* @param {string} [search] Search term for tag keys and values (case-insensitive partial match)
|
|
2421
2444
|
* @param {string} [tagKey] Filter by specific tag key (exact match)
|
|
2422
2445
|
* @param {string} [tagValue] Filter by specific tag value (exact match)
|
|
@@ -3051,11 +3074,11 @@ const AnalyticsApiFp = function (configuration) {
|
|
|
3051
3074
|
});
|
|
3052
3075
|
},
|
|
3053
3076
|
/**
|
|
3054
|
-
* Retrieve analytics tags usage data and filtering capabilities
|
|
3077
|
+
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
3055
3078
|
* @summary Get Analytics Tags
|
|
3056
3079
|
* @param {string} xStoreID Store ID
|
|
3057
|
-
* @param {string} [startTime] Start time in RFC3339 format
|
|
3058
|
-
* @param {string} [endTime] End time in RFC3339 format
|
|
3080
|
+
* @param {string} [startTime] Start time in RFC3339 format. If not specified, returns all tags from 2 years ago
|
|
3081
|
+
* @param {string} [endTime] End time in RFC3339 format. If not specified, returns all tags until now
|
|
3059
3082
|
* @param {string} [search] Search term for tag keys and values (case-insensitive partial match)
|
|
3060
3083
|
* @param {string} [tagKey] Filter by specific tag key (exact match)
|
|
3061
3084
|
* @param {string} [tagValue] Filter by specific tag value (exact match)
|
|
@@ -3502,11 +3525,11 @@ const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
3502
3525
|
return localVarFp.adminAnalyticsStoreXStoreIDResultsGet(xStoreID, startTime, endTime, itemIds, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, minImpressions, sortBy, sortOrder, sort, includeDocuments, includeWidget, limit, offset, page, pageSize, options).then((request) => request(axios, basePath));
|
|
3503
3526
|
},
|
|
3504
3527
|
/**
|
|
3505
|
-
* Retrieve analytics tags usage data and filtering capabilities
|
|
3528
|
+
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
3506
3529
|
* @summary Get Analytics Tags
|
|
3507
3530
|
* @param {string} xStoreID Store ID
|
|
3508
|
-
* @param {string} [startTime] Start time in RFC3339 format
|
|
3509
|
-
* @param {string} [endTime] End time in RFC3339 format
|
|
3531
|
+
* @param {string} [startTime] Start time in RFC3339 format. If not specified, returns all tags from 2 years ago
|
|
3532
|
+
* @param {string} [endTime] End time in RFC3339 format. If not specified, returns all tags until now
|
|
3510
3533
|
* @param {string} [search] Search term for tag keys and values (case-insensitive partial match)
|
|
3511
3534
|
* @param {string} [tagKey] Filter by specific tag key (exact match)
|
|
3512
3535
|
* @param {string} [tagValue] Filter by specific tag value (exact match)
|
|
@@ -3957,11 +3980,11 @@ class AnalyticsApi extends base_1.BaseAPI {
|
|
|
3957
3980
|
return (0, exports.AnalyticsApiFp)(this.configuration).adminAnalyticsStoreXStoreIDResultsGet(xStoreID, startTime, endTime, itemIds, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, minImpressions, sortBy, sortOrder, sort, includeDocuments, includeWidget, limit, offset, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
3958
3981
|
}
|
|
3959
3982
|
/**
|
|
3960
|
-
* Retrieve analytics tags usage data and filtering capabilities
|
|
3983
|
+
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
3961
3984
|
* @summary Get Analytics Tags
|
|
3962
3985
|
* @param {string} xStoreID Store ID
|
|
3963
|
-
* @param {string} [startTime] Start time in RFC3339 format
|
|
3964
|
-
* @param {string} [endTime] End time in RFC3339 format
|
|
3986
|
+
* @param {string} [startTime] Start time in RFC3339 format. If not specified, returns all tags from 2 years ago
|
|
3987
|
+
* @param {string} [endTime] End time in RFC3339 format. If not specified, returns all tags until now
|
|
3965
3988
|
* @param {string} [search] Search term for tag keys and values (case-insensitive partial match)
|
|
3966
3989
|
* @param {string} [tagKey] Filter by specific tag key (exact match)
|
|
3967
3990
|
* @param {string} [tagValue] Filter by specific tag value (exact match)
|
|
@@ -16118,6 +16141,184 @@ const QuerySuggestionsManagementApiAxiosParamCreator = function (configuration)
|
|
|
16118
16141
|
options: localVarRequestOptions,
|
|
16119
16142
|
};
|
|
16120
16143
|
}),
|
|
16144
|
+
/**
|
|
16145
|
+
* Apply filters to remove duplicate or unhelpful suggestions based on configuration
|
|
16146
|
+
* @summary Apply Suggestion Filters
|
|
16147
|
+
* @param {string} xStoreID Store ID
|
|
16148
|
+
* @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
|
|
16149
|
+
* @param {*} [options] Override http request option.
|
|
16150
|
+
* @throws {RequiredError}
|
|
16151
|
+
*/
|
|
16152
|
+
adminV1QuerySuggestionsXStoreIDApplyFiltersPost: (xStoreID_1, analyticsQuerySuggestionRecord_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsQuerySuggestionRecord_1, ...args_1], void 0, function* (xStoreID, analyticsQuerySuggestionRecord, options = {}) {
|
|
16153
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16154
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDApplyFiltersPost', 'xStoreID', xStoreID);
|
|
16155
|
+
// verify required parameter 'analyticsQuerySuggestionRecord' is not null or undefined
|
|
16156
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDApplyFiltersPost', 'analyticsQuerySuggestionRecord', analyticsQuerySuggestionRecord);
|
|
16157
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/apply-filters`
|
|
16158
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
16159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16160
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16161
|
+
let baseOptions;
|
|
16162
|
+
if (configuration) {
|
|
16163
|
+
baseOptions = configuration.baseOptions;
|
|
16164
|
+
}
|
|
16165
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16166
|
+
const localVarHeaderParameter = {};
|
|
16167
|
+
const localVarQueryParameter = {};
|
|
16168
|
+
// authentication BearerAuth required
|
|
16169
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16170
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16171
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16173
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16174
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(analyticsQuerySuggestionRecord, localVarRequestOptions, configuration);
|
|
16175
|
+
return {
|
|
16176
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16177
|
+
options: localVarRequestOptions,
|
|
16178
|
+
};
|
|
16179
|
+
}),
|
|
16180
|
+
/**
|
|
16181
|
+
* Delete a banned expression
|
|
16182
|
+
* @summary Delete Banned Expression
|
|
16183
|
+
* @param {string} xStoreID Store ID
|
|
16184
|
+
* @param {string} expressionID Banned Expression ID
|
|
16185
|
+
* @param {*} [options] Override http request option.
|
|
16186
|
+
* @throws {RequiredError}
|
|
16187
|
+
*/
|
|
16188
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete: (xStoreID_1, expressionID_1, ...args_1) => __awaiter(this, [xStoreID_1, expressionID_1, ...args_1], void 0, function* (xStoreID, expressionID, options = {}) {
|
|
16189
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16190
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete', 'xStoreID', xStoreID);
|
|
16191
|
+
// verify required parameter 'expressionID' is not null or undefined
|
|
16192
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete', 'expressionID', expressionID);
|
|
16193
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/banned-expressions/{expressionID}`
|
|
16194
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
16195
|
+
.replace(`{${"expressionID"}}`, encodeURIComponent(String(expressionID)));
|
|
16196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16198
|
+
let baseOptions;
|
|
16199
|
+
if (configuration) {
|
|
16200
|
+
baseOptions = configuration.baseOptions;
|
|
16201
|
+
}
|
|
16202
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
16203
|
+
const localVarHeaderParameter = {};
|
|
16204
|
+
const localVarQueryParameter = {};
|
|
16205
|
+
// authentication BearerAuth required
|
|
16206
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16209
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16210
|
+
return {
|
|
16211
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16212
|
+
options: localVarRequestOptions,
|
|
16213
|
+
};
|
|
16214
|
+
}),
|
|
16215
|
+
/**
|
|
16216
|
+
* Update an existing banned expression
|
|
16217
|
+
* @summary Update Banned Expression
|
|
16218
|
+
* @param {string} xStoreID Store ID
|
|
16219
|
+
* @param {string} expressionID Banned Expression ID
|
|
16220
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
|
|
16221
|
+
* @param {*} [options] Override http request option.
|
|
16222
|
+
* @throws {RequiredError}
|
|
16223
|
+
*/
|
|
16224
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut: (xStoreID_1, expressionID_1, analyticsBannedExpression_1, ...args_1) => __awaiter(this, [xStoreID_1, expressionID_1, analyticsBannedExpression_1, ...args_1], void 0, function* (xStoreID, expressionID, analyticsBannedExpression, options = {}) {
|
|
16225
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16226
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'xStoreID', xStoreID);
|
|
16227
|
+
// verify required parameter 'expressionID' is not null or undefined
|
|
16228
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'expressionID', expressionID);
|
|
16229
|
+
// verify required parameter 'analyticsBannedExpression' is not null or undefined
|
|
16230
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'analyticsBannedExpression', analyticsBannedExpression);
|
|
16231
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/banned-expressions/{expressionID}`
|
|
16232
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
16233
|
+
.replace(`{${"expressionID"}}`, encodeURIComponent(String(expressionID)));
|
|
16234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16235
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16236
|
+
let baseOptions;
|
|
16237
|
+
if (configuration) {
|
|
16238
|
+
baseOptions = configuration.baseOptions;
|
|
16239
|
+
}
|
|
16240
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
16241
|
+
const localVarHeaderParameter = {};
|
|
16242
|
+
const localVarQueryParameter = {};
|
|
16243
|
+
// authentication BearerAuth required
|
|
16244
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16245
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16246
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16249
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(analyticsBannedExpression, localVarRequestOptions, configuration);
|
|
16250
|
+
return {
|
|
16251
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16252
|
+
options: localVarRequestOptions,
|
|
16253
|
+
};
|
|
16254
|
+
}),
|
|
16255
|
+
/**
|
|
16256
|
+
* Retrieve all banned expressions for a store with their matching types
|
|
16257
|
+
* @summary Get Banned Expressions
|
|
16258
|
+
* @param {string} xStoreID Store ID
|
|
16259
|
+
* @param {*} [options] Override http request option.
|
|
16260
|
+
* @throws {RequiredError}
|
|
16261
|
+
*/
|
|
16262
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
16263
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16264
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsGet', 'xStoreID', xStoreID);
|
|
16265
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/banned-expressions`
|
|
16266
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
16267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16268
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16269
|
+
let baseOptions;
|
|
16270
|
+
if (configuration) {
|
|
16271
|
+
baseOptions = configuration.baseOptions;
|
|
16272
|
+
}
|
|
16273
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16274
|
+
const localVarHeaderParameter = {};
|
|
16275
|
+
const localVarQueryParameter = {};
|
|
16276
|
+
// authentication BearerAuth required
|
|
16277
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16280
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16281
|
+
return {
|
|
16282
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16283
|
+
options: localVarRequestOptions,
|
|
16284
|
+
};
|
|
16285
|
+
}),
|
|
16286
|
+
/**
|
|
16287
|
+
* Create a new banned expression with specified matching type
|
|
16288
|
+
* @summary Create Banned Expression
|
|
16289
|
+
* @param {string} xStoreID Store ID
|
|
16290
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
|
|
16291
|
+
* @param {*} [options] Override http request option.
|
|
16292
|
+
* @throws {RequiredError}
|
|
16293
|
+
*/
|
|
16294
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsPost: (xStoreID_1, analyticsBannedExpression_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsBannedExpression_1, ...args_1], void 0, function* (xStoreID, analyticsBannedExpression, options = {}) {
|
|
16295
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16296
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsPost', 'xStoreID', xStoreID);
|
|
16297
|
+
// verify required parameter 'analyticsBannedExpression' is not null or undefined
|
|
16298
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDBannedExpressionsPost', 'analyticsBannedExpression', analyticsBannedExpression);
|
|
16299
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/banned-expressions`
|
|
16300
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
16301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16302
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16303
|
+
let baseOptions;
|
|
16304
|
+
if (configuration) {
|
|
16305
|
+
baseOptions = configuration.baseOptions;
|
|
16306
|
+
}
|
|
16307
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16308
|
+
const localVarHeaderParameter = {};
|
|
16309
|
+
const localVarQueryParameter = {};
|
|
16310
|
+
// authentication BearerAuth required
|
|
16311
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16313
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16316
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(analyticsBannedExpression, localVarRequestOptions, configuration);
|
|
16317
|
+
return {
|
|
16318
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16319
|
+
options: localVarRequestOptions,
|
|
16320
|
+
};
|
|
16321
|
+
}),
|
|
16121
16322
|
/**
|
|
16122
16323
|
* Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
|
|
16123
16324
|
* @summary Bulk Update Suggestions
|
|
@@ -16264,6 +16465,68 @@ const QuerySuggestionsManagementApiAxiosParamCreator = function (configuration)
|
|
|
16264
16465
|
options: localVarRequestOptions,
|
|
16265
16466
|
};
|
|
16266
16467
|
}),
|
|
16468
|
+
/**
|
|
16469
|
+
* Generate query suggestions with category counts and enhanced data structure
|
|
16470
|
+
* @summary Generate Enhanced Category Suggestions
|
|
16471
|
+
* @param {string} xStoreID Store ID
|
|
16472
|
+
* @param {*} [options] Override http request option.
|
|
16473
|
+
* @throws {RequiredError}
|
|
16474
|
+
*/
|
|
16475
|
+
adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
16476
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16477
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost', 'xStoreID', xStoreID);
|
|
16478
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/generate-categories`
|
|
16479
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
16480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16481
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16482
|
+
let baseOptions;
|
|
16483
|
+
if (configuration) {
|
|
16484
|
+
baseOptions = configuration.baseOptions;
|
|
16485
|
+
}
|
|
16486
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16487
|
+
const localVarHeaderParameter = {};
|
|
16488
|
+
const localVarQueryParameter = {};
|
|
16489
|
+
// authentication BearerAuth required
|
|
16490
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16491
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16493
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16494
|
+
return {
|
|
16495
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16496
|
+
options: localVarRequestOptions,
|
|
16497
|
+
};
|
|
16498
|
+
}),
|
|
16499
|
+
/**
|
|
16500
|
+
* Generate query suggestions based on facet combinations from search analytics data
|
|
16501
|
+
* @summary Generate Facet-Based Suggestions
|
|
16502
|
+
* @param {string} xStoreID Store ID
|
|
16503
|
+
* @param {*} [options] Override http request option.
|
|
16504
|
+
* @throws {RequiredError}
|
|
16505
|
+
*/
|
|
16506
|
+
adminV1QuerySuggestionsXStoreIDGenerateFacetsPost: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
16507
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
16508
|
+
(0, common_1.assertParamExists)('adminV1QuerySuggestionsXStoreIDGenerateFacetsPost', 'xStoreID', xStoreID);
|
|
16509
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/generate-facets`
|
|
16510
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
16511
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16512
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16513
|
+
let baseOptions;
|
|
16514
|
+
if (configuration) {
|
|
16515
|
+
baseOptions = configuration.baseOptions;
|
|
16516
|
+
}
|
|
16517
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16518
|
+
const localVarHeaderParameter = {};
|
|
16519
|
+
const localVarQueryParameter = {};
|
|
16520
|
+
// authentication BearerAuth required
|
|
16521
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16522
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16524
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16525
|
+
return {
|
|
16526
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16527
|
+
options: localVarRequestOptions,
|
|
16528
|
+
};
|
|
16529
|
+
}),
|
|
16267
16530
|
/**
|
|
16268
16531
|
* Retrieve query suggestions with filtering and pagination for management
|
|
16269
16532
|
* @summary Get Query Suggestions
|
|
@@ -16930,6 +17193,91 @@ const QuerySuggestionsManagementApiFp = function (configuration) {
|
|
|
16930
17193
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16931
17194
|
});
|
|
16932
17195
|
},
|
|
17196
|
+
/**
|
|
17197
|
+
* Apply filters to remove duplicate or unhelpful suggestions based on configuration
|
|
17198
|
+
* @summary Apply Suggestion Filters
|
|
17199
|
+
* @param {string} xStoreID Store ID
|
|
17200
|
+
* @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
|
|
17201
|
+
* @param {*} [options] Override http request option.
|
|
17202
|
+
* @throws {RequiredError}
|
|
17203
|
+
*/
|
|
17204
|
+
adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options) {
|
|
17205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17206
|
+
var _a, _b, _c;
|
|
17207
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options);
|
|
17208
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17209
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDApplyFiltersPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17210
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17211
|
+
});
|
|
17212
|
+
},
|
|
17213
|
+
/**
|
|
17214
|
+
* Delete a banned expression
|
|
17215
|
+
* @summary Delete Banned Expression
|
|
17216
|
+
* @param {string} xStoreID Store ID
|
|
17217
|
+
* @param {string} expressionID Banned Expression ID
|
|
17218
|
+
* @param {*} [options] Override http request option.
|
|
17219
|
+
* @throws {RequiredError}
|
|
17220
|
+
*/
|
|
17221
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete(xStoreID, expressionID, options) {
|
|
17222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17223
|
+
var _a, _b, _c;
|
|
17224
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete(xStoreID, expressionID, options);
|
|
17225
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17226
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17227
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17228
|
+
});
|
|
17229
|
+
},
|
|
17230
|
+
/**
|
|
17231
|
+
* Update an existing banned expression
|
|
17232
|
+
* @summary Update Banned Expression
|
|
17233
|
+
* @param {string} xStoreID Store ID
|
|
17234
|
+
* @param {string} expressionID Banned Expression ID
|
|
17235
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
|
|
17236
|
+
* @param {*} [options] Override http request option.
|
|
17237
|
+
* @throws {RequiredError}
|
|
17238
|
+
*/
|
|
17239
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options) {
|
|
17240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17241
|
+
var _a, _b, _c;
|
|
17242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options);
|
|
17243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17244
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17246
|
+
});
|
|
17247
|
+
},
|
|
17248
|
+
/**
|
|
17249
|
+
* Retrieve all banned expressions for a store with their matching types
|
|
17250
|
+
* @summary Get Banned Expressions
|
|
17251
|
+
* @param {string} xStoreID Store ID
|
|
17252
|
+
* @param {*} [options] Override http request option.
|
|
17253
|
+
* @throws {RequiredError}
|
|
17254
|
+
*/
|
|
17255
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsGet(xStoreID, options) {
|
|
17256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17257
|
+
var _a, _b, _c;
|
|
17258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsGet(xStoreID, options);
|
|
17259
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17260
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBannedExpressionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17261
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17262
|
+
});
|
|
17263
|
+
},
|
|
17264
|
+
/**
|
|
17265
|
+
* Create a new banned expression with specified matching type
|
|
17266
|
+
* @summary Create Banned Expression
|
|
17267
|
+
* @param {string} xStoreID Store ID
|
|
17268
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
|
|
17269
|
+
* @param {*} [options] Override http request option.
|
|
17270
|
+
* @throws {RequiredError}
|
|
17271
|
+
*/
|
|
17272
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options) {
|
|
17273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17274
|
+
var _a, _b, _c;
|
|
17275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options);
|
|
17276
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17277
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17278
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17279
|
+
});
|
|
17280
|
+
},
|
|
16933
17281
|
/**
|
|
16934
17282
|
* Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
|
|
16935
17283
|
* @summary Bulk Update Suggestions
|
|
@@ -16999,6 +17347,38 @@ const QuerySuggestionsManagementApiFp = function (configuration) {
|
|
|
16999
17347
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17000
17348
|
});
|
|
17001
17349
|
},
|
|
17350
|
+
/**
|
|
17351
|
+
* Generate query suggestions with category counts and enhanced data structure
|
|
17352
|
+
* @summary Generate Enhanced Category Suggestions
|
|
17353
|
+
* @param {string} xStoreID Store ID
|
|
17354
|
+
* @param {*} [options] Override http request option.
|
|
17355
|
+
* @throws {RequiredError}
|
|
17356
|
+
*/
|
|
17357
|
+
adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost(xStoreID, options) {
|
|
17358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17359
|
+
var _a, _b, _c;
|
|
17360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost(xStoreID, options);
|
|
17361
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17362
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17363
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17364
|
+
});
|
|
17365
|
+
},
|
|
17366
|
+
/**
|
|
17367
|
+
* Generate query suggestions based on facet combinations from search analytics data
|
|
17368
|
+
* @summary Generate Facet-Based Suggestions
|
|
17369
|
+
* @param {string} xStoreID Store ID
|
|
17370
|
+
* @param {*} [options] Override http request option.
|
|
17371
|
+
* @throws {RequiredError}
|
|
17372
|
+
*/
|
|
17373
|
+
adminV1QuerySuggestionsXStoreIDGenerateFacetsPost(xStoreID, options) {
|
|
17374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17375
|
+
var _a, _b, _c;
|
|
17376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDGenerateFacetsPost(xStoreID, options);
|
|
17377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17378
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDGenerateFacetsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17379
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17380
|
+
});
|
|
17381
|
+
},
|
|
17002
17382
|
/**
|
|
17003
17383
|
* Retrieve query suggestions with filtering and pagination for management
|
|
17004
17384
|
* @summary Get Query Suggestions
|
|
@@ -17318,6 +17698,61 @@ const QuerySuggestionsManagementApiFactory = function (configuration, basePath,
|
|
|
17318
17698
|
adminV1QuerySuggestionsMigrateAllPost(daysBack, minPopularity, options) {
|
|
17319
17699
|
return localVarFp.adminV1QuerySuggestionsMigrateAllPost(daysBack, minPopularity, options).then((request) => request(axios, basePath));
|
|
17320
17700
|
},
|
|
17701
|
+
/**
|
|
17702
|
+
* Apply filters to remove duplicate or unhelpful suggestions based on configuration
|
|
17703
|
+
* @summary Apply Suggestion Filters
|
|
17704
|
+
* @param {string} xStoreID Store ID
|
|
17705
|
+
* @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
|
|
17706
|
+
* @param {*} [options] Override http request option.
|
|
17707
|
+
* @throws {RequiredError}
|
|
17708
|
+
*/
|
|
17709
|
+
adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options) {
|
|
17710
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options).then((request) => request(axios, basePath));
|
|
17711
|
+
},
|
|
17712
|
+
/**
|
|
17713
|
+
* Delete a banned expression
|
|
17714
|
+
* @summary Delete Banned Expression
|
|
17715
|
+
* @param {string} xStoreID Store ID
|
|
17716
|
+
* @param {string} expressionID Banned Expression ID
|
|
17717
|
+
* @param {*} [options] Override http request option.
|
|
17718
|
+
* @throws {RequiredError}
|
|
17719
|
+
*/
|
|
17720
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete(xStoreID, expressionID, options) {
|
|
17721
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete(xStoreID, expressionID, options).then((request) => request(axios, basePath));
|
|
17722
|
+
},
|
|
17723
|
+
/**
|
|
17724
|
+
* Update an existing banned expression
|
|
17725
|
+
* @summary Update Banned Expression
|
|
17726
|
+
* @param {string} xStoreID Store ID
|
|
17727
|
+
* @param {string} expressionID Banned Expression ID
|
|
17728
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
|
|
17729
|
+
* @param {*} [options] Override http request option.
|
|
17730
|
+
* @throws {RequiredError}
|
|
17731
|
+
*/
|
|
17732
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options) {
|
|
17733
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options).then((request) => request(axios, basePath));
|
|
17734
|
+
},
|
|
17735
|
+
/**
|
|
17736
|
+
* Retrieve all banned expressions for a store with their matching types
|
|
17737
|
+
* @summary Get Banned Expressions
|
|
17738
|
+
* @param {string} xStoreID Store ID
|
|
17739
|
+
* @param {*} [options] Override http request option.
|
|
17740
|
+
* @throws {RequiredError}
|
|
17741
|
+
*/
|
|
17742
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsGet(xStoreID, options) {
|
|
17743
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsGet(xStoreID, options).then((request) => request(axios, basePath));
|
|
17744
|
+
},
|
|
17745
|
+
/**
|
|
17746
|
+
* Create a new banned expression with specified matching type
|
|
17747
|
+
* @summary Create Banned Expression
|
|
17748
|
+
* @param {string} xStoreID Store ID
|
|
17749
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
|
|
17750
|
+
* @param {*} [options] Override http request option.
|
|
17751
|
+
* @throws {RequiredError}
|
|
17752
|
+
*/
|
|
17753
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options) {
|
|
17754
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options).then((request) => request(axios, basePath));
|
|
17755
|
+
},
|
|
17321
17756
|
/**
|
|
17322
17757
|
* Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
|
|
17323
17758
|
* @summary Bulk Update Suggestions
|
|
@@ -17363,6 +17798,26 @@ const QuerySuggestionsManagementApiFactory = function (configuration, basePath,
|
|
|
17363
17798
|
adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options) {
|
|
17364
17799
|
return localVarFp.adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options).then((request) => request(axios, basePath));
|
|
17365
17800
|
},
|
|
17801
|
+
/**
|
|
17802
|
+
* Generate query suggestions with category counts and enhanced data structure
|
|
17803
|
+
* @summary Generate Enhanced Category Suggestions
|
|
17804
|
+
* @param {string} xStoreID Store ID
|
|
17805
|
+
* @param {*} [options] Override http request option.
|
|
17806
|
+
* @throws {RequiredError}
|
|
17807
|
+
*/
|
|
17808
|
+
adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost(xStoreID, options) {
|
|
17809
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost(xStoreID, options).then((request) => request(axios, basePath));
|
|
17810
|
+
},
|
|
17811
|
+
/**
|
|
17812
|
+
* Generate query suggestions based on facet combinations from search analytics data
|
|
17813
|
+
* @summary Generate Facet-Based Suggestions
|
|
17814
|
+
* @param {string} xStoreID Store ID
|
|
17815
|
+
* @param {*} [options] Override http request option.
|
|
17816
|
+
* @throws {RequiredError}
|
|
17817
|
+
*/
|
|
17818
|
+
adminV1QuerySuggestionsXStoreIDGenerateFacetsPost(xStoreID, options) {
|
|
17819
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDGenerateFacetsPost(xStoreID, options).then((request) => request(axios, basePath));
|
|
17820
|
+
},
|
|
17366
17821
|
/**
|
|
17367
17822
|
* Retrieve query suggestions with filtering and pagination for management
|
|
17368
17823
|
* @summary Get Query Suggestions
|
|
@@ -17581,6 +18036,66 @@ class QuerySuggestionsManagementApi extends base_1.BaseAPI {
|
|
|
17581
18036
|
adminV1QuerySuggestionsMigrateAllPost(daysBack, minPopularity, options) {
|
|
17582
18037
|
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsMigrateAllPost(daysBack, minPopularity, options).then((request) => request(this.axios, this.basePath));
|
|
17583
18038
|
}
|
|
18039
|
+
/**
|
|
18040
|
+
* Apply filters to remove duplicate or unhelpful suggestions based on configuration
|
|
18041
|
+
* @summary Apply Suggestion Filters
|
|
18042
|
+
* @param {string} xStoreID Store ID
|
|
18043
|
+
* @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
|
|
18044
|
+
* @param {*} [options] Override http request option.
|
|
18045
|
+
* @throws {RequiredError}
|
|
18046
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18047
|
+
*/
|
|
18048
|
+
adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options) {
|
|
18049
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options).then((request) => request(this.axios, this.basePath));
|
|
18050
|
+
}
|
|
18051
|
+
/**
|
|
18052
|
+
* Delete a banned expression
|
|
18053
|
+
* @summary Delete Banned Expression
|
|
18054
|
+
* @param {string} xStoreID Store ID
|
|
18055
|
+
* @param {string} expressionID Banned Expression ID
|
|
18056
|
+
* @param {*} [options] Override http request option.
|
|
18057
|
+
* @throws {RequiredError}
|
|
18058
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18059
|
+
*/
|
|
18060
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete(xStoreID, expressionID, options) {
|
|
18061
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDDelete(xStoreID, expressionID, options).then((request) => request(this.axios, this.basePath));
|
|
18062
|
+
}
|
|
18063
|
+
/**
|
|
18064
|
+
* Update an existing banned expression
|
|
18065
|
+
* @summary Update Banned Expression
|
|
18066
|
+
* @param {string} xStoreID Store ID
|
|
18067
|
+
* @param {string} expressionID Banned Expression ID
|
|
18068
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
|
|
18069
|
+
* @param {*} [options] Override http request option.
|
|
18070
|
+
* @throws {RequiredError}
|
|
18071
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18072
|
+
*/
|
|
18073
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options) {
|
|
18074
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options).then((request) => request(this.axios, this.basePath));
|
|
18075
|
+
}
|
|
18076
|
+
/**
|
|
18077
|
+
* Retrieve all banned expressions for a store with their matching types
|
|
18078
|
+
* @summary Get Banned Expressions
|
|
18079
|
+
* @param {string} xStoreID Store ID
|
|
18080
|
+
* @param {*} [options] Override http request option.
|
|
18081
|
+
* @throws {RequiredError}
|
|
18082
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18083
|
+
*/
|
|
18084
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsGet(xStoreID, options) {
|
|
18085
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
18086
|
+
}
|
|
18087
|
+
/**
|
|
18088
|
+
* Create a new banned expression with specified matching type
|
|
18089
|
+
* @summary Create Banned Expression
|
|
18090
|
+
* @param {string} xStoreID Store ID
|
|
18091
|
+
* @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
|
|
18092
|
+
* @param {*} [options] Override http request option.
|
|
18093
|
+
* @throws {RequiredError}
|
|
18094
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18095
|
+
*/
|
|
18096
|
+
adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options) {
|
|
18097
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options).then((request) => request(this.axios, this.basePath));
|
|
18098
|
+
}
|
|
17584
18099
|
/**
|
|
17585
18100
|
* Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
|
|
17586
18101
|
* @summary Bulk Update Suggestions
|
|
@@ -17630,6 +18145,28 @@ class QuerySuggestionsManagementApi extends base_1.BaseAPI {
|
|
|
17630
18145
|
adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options) {
|
|
17631
18146
|
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17632
18147
|
}
|
|
18148
|
+
/**
|
|
18149
|
+
* Generate query suggestions with category counts and enhanced data structure
|
|
18150
|
+
* @summary Generate Enhanced Category Suggestions
|
|
18151
|
+
* @param {string} xStoreID Store ID
|
|
18152
|
+
* @param {*} [options] Override http request option.
|
|
18153
|
+
* @throws {RequiredError}
|
|
18154
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18155
|
+
*/
|
|
18156
|
+
adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost(xStoreID, options) {
|
|
18157
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDGenerateCategoriesPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
18158
|
+
}
|
|
18159
|
+
/**
|
|
18160
|
+
* Generate query suggestions based on facet combinations from search analytics data
|
|
18161
|
+
* @summary Generate Facet-Based Suggestions
|
|
18162
|
+
* @param {string} xStoreID Store ID
|
|
18163
|
+
* @param {*} [options] Override http request option.
|
|
18164
|
+
* @throws {RequiredError}
|
|
18165
|
+
* @memberof QuerySuggestionsManagementApi
|
|
18166
|
+
*/
|
|
18167
|
+
adminV1QuerySuggestionsXStoreIDGenerateFacetsPost(xStoreID, options) {
|
|
18168
|
+
return (0, exports.QuerySuggestionsManagementApiFp)(this.configuration).adminV1QuerySuggestionsXStoreIDGenerateFacetsPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
18169
|
+
}
|
|
17633
18170
|
/**
|
|
17634
18171
|
* Retrieve query suggestions with filtering and pagination for management
|
|
17635
18172
|
* @summary Get Query Suggestions
|