@seekora-ai/admin-api 1.1.31 → 1.1.32

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/esm/api.js CHANGED
@@ -26,59 +26,6 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
- /**
30
- *
31
- * @export
32
- * @enum {string}
33
- */
34
- export const AnalyticsBannedMatchType = {
35
- BannedMatchIs: 'is',
36
- BannedMatchContains: 'contains',
37
- BannedMatchStartsWith: 'startsWith',
38
- BannedMatchEndsWith: 'endsWith',
39
- BannedMatchCustom: 'custom'
40
- };
41
- /**
42
- *
43
- * @export
44
- * @enum {string}
45
- */
46
- export const AnalyticsBulkOperation = {
47
- BulkEnable: 'enable',
48
- BulkDisable: 'disable',
49
- BulkDelete: 'delete',
50
- BulkUpdatePriority: 'update_priority'
51
- };
52
- /**
53
- *
54
- * @export
55
- * @enum {string}
56
- */
57
- export const AnalyticsQuerySuggestionSource = {
58
- SourceAutoGenerated: 'auto_generated',
59
- SourceManual: 'manual',
60
- SourceImported: 'imported'
61
- };
62
- /**
63
- *
64
- * @export
65
- * @enum {string}
66
- */
67
- export const AnalyticsQuerySuggestionStatus = {
68
- StatusEnabled: 'enabled',
69
- StatusDisabled: 'disabled'
70
- };
71
- /**
72
- *
73
- * @export
74
- * @enum {string}
75
- */
76
- export const AnalyticsRuleType = {
77
- RuleTypePromote: 'promote',
78
- RuleTypeHide: 'hide',
79
- RuleTypeRedirect: 'redirect',
80
- RuleTypeBanner: 'banner'
81
- };
82
29
  export const DataTypesBillingAlertRequestAlertTypeEnum = {
83
30
  LowBalance: 'low_balance',
84
31
  ExpiringCredits: 'expiring_credits',
@@ -235,6 +182,59 @@ export const DataTypesUpdateWordStatusRequestWordTypeEnum = {
235
182
  StoreLanguage: 'store_language',
236
183
  Custom: 'custom'
237
184
  };
185
+ /**
186
+ *
187
+ * @export
188
+ * @enum {string}
189
+ */
190
+ export const QuerySuggestionsServiceBannedMatchType = {
191
+ BannedMatchIs: 'is',
192
+ BannedMatchContains: 'contains',
193
+ BannedMatchStartsWith: 'startsWith',
194
+ BannedMatchEndsWith: 'endsWith',
195
+ BannedMatchCustom: 'custom'
196
+ };
197
+ /**
198
+ *
199
+ * @export
200
+ * @enum {string}
201
+ */
202
+ export const QuerySuggestionsServiceBulkOperation = {
203
+ BulkEnable: 'enable',
204
+ BulkDisable: 'disable',
205
+ BulkDelete: 'delete',
206
+ BulkUpdatePriority: 'update_priority'
207
+ };
208
+ /**
209
+ *
210
+ * @export
211
+ * @enum {string}
212
+ */
213
+ export const QuerySuggestionsServiceQuerySuggestionSource = {
214
+ SourceAutoGenerated: 'auto_generated',
215
+ SourceManual: 'manual',
216
+ SourceImported: 'imported'
217
+ };
218
+ /**
219
+ *
220
+ * @export
221
+ * @enum {string}
222
+ */
223
+ export const QuerySuggestionsServiceQuerySuggestionStatus = {
224
+ StatusEnabled: 'enabled',
225
+ StatusDisabled: 'disabled'
226
+ };
227
+ /**
228
+ *
229
+ * @export
230
+ * @enum {string}
231
+ */
232
+ export const QuerySuggestionsServiceRuleType = {
233
+ RuleTypePromote: 'promote',
234
+ RuleTypeHide: 'hide',
235
+ RuleTypeRedirect: 'redirect',
236
+ RuleTypeBanner: 'banner'
237
+ };
238
238
  export const RefundRefundPreviewRequestDtoRefundTypeEnum = {
239
239
  Full: 'full',
240
240
  Partial: 'partial',
@@ -1918,6 +1918,45 @@ export const AdminNotificationsApiAxiosParamCreator = function (configuration) {
1918
1918
  options: localVarRequestOptions,
1919
1919
  };
1920
1920
  }),
1921
+ /**
1922
+ * Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
1923
+ * @summary Send test notification (Admin)
1924
+ * @param {string} [email] Test email address (defaults to user\'s email)
1925
+ * @param {string} [templateCode] Template code to use (e.g., \'account_verified\', \'user_welcome\', \'payment_success\'). Defaults to \'account_verified\'
1926
+ * @param {string} [notificationCode] Notification code to use (e.g., \'account.verified\', \'payment.success\'). Defaults to \'account.verified\'
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ */
1930
+ v1AdminNotificationsTestSendPost: (email_1, templateCode_1, notificationCode_1, ...args_1) => __awaiter(this, [email_1, templateCode_1, notificationCode_1, ...args_1], void 0, function* (email, templateCode, notificationCode, options = {}) {
1931
+ const localVarPath = `/v1/admin/notifications/test/send`;
1932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1933
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1934
+ let baseOptions;
1935
+ if (configuration) {
1936
+ baseOptions = configuration.baseOptions;
1937
+ }
1938
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1939
+ const localVarHeaderParameter = {};
1940
+ const localVarQueryParameter = {};
1941
+ // authentication BearerAuth required
1942
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1943
+ if (email !== undefined) {
1944
+ localVarQueryParameter['email'] = email;
1945
+ }
1946
+ if (templateCode !== undefined) {
1947
+ localVarQueryParameter['template_code'] = templateCode;
1948
+ }
1949
+ if (notificationCode !== undefined) {
1950
+ localVarQueryParameter['notification_code'] = notificationCode;
1951
+ }
1952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1954
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1955
+ return {
1956
+ url: toPathString(localVarUrlObj),
1957
+ options: localVarRequestOptions,
1958
+ };
1959
+ }),
1921
1960
  };
1922
1961
  };
1923
1962
  /**
@@ -2070,6 +2109,24 @@ export const AdminNotificationsApiFp = function (configuration) {
2070
2109
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2071
2110
  });
2072
2111
  },
2112
+ /**
2113
+ * Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
2114
+ * @summary Send test notification (Admin)
2115
+ * @param {string} [email] Test email address (defaults to user\'s email)
2116
+ * @param {string} [templateCode] Template code to use (e.g., \'account_verified\', \'user_welcome\', \'payment_success\'). Defaults to \'account_verified\'
2117
+ * @param {string} [notificationCode] Notification code to use (e.g., \'account.verified\', \'payment.success\'). Defaults to \'account.verified\'
2118
+ * @param {*} [options] Override http request option.
2119
+ * @throws {RequiredError}
2120
+ */
2121
+ v1AdminNotificationsTestSendPost(email, templateCode, notificationCode, options) {
2122
+ return __awaiter(this, void 0, void 0, function* () {
2123
+ var _a, _b, _c;
2124
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminNotificationsTestSendPost(email, templateCode, notificationCode, options);
2125
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2126
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminNotificationsApi.v1AdminNotificationsTestSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2127
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2128
+ });
2129
+ },
2073
2130
  };
2074
2131
  };
2075
2132
  /**
@@ -2168,6 +2225,18 @@ export const AdminNotificationsApiFactory = function (configuration, basePath, a
2168
2225
  v1AdminNotificationsStatsGet(startDate, endDate, options) {
2169
2226
  return localVarFp.v1AdminNotificationsStatsGet(startDate, endDate, options).then((request) => request(axios, basePath));
2170
2227
  },
2228
+ /**
2229
+ * Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
2230
+ * @summary Send test notification (Admin)
2231
+ * @param {string} [email] Test email address (defaults to user\'s email)
2232
+ * @param {string} [templateCode] Template code to use (e.g., \'account_verified\', \'user_welcome\', \'payment_success\'). Defaults to \'account_verified\'
2233
+ * @param {string} [notificationCode] Notification code to use (e.g., \'account.verified\', \'payment.success\'). Defaults to \'account.verified\'
2234
+ * @param {*} [options] Override http request option.
2235
+ * @throws {RequiredError}
2236
+ */
2237
+ v1AdminNotificationsTestSendPost(email, templateCode, notificationCode, options) {
2238
+ return localVarFp.v1AdminNotificationsTestSendPost(email, templateCode, notificationCode, options).then((request) => request(axios, basePath));
2239
+ },
2171
2240
  };
2172
2241
  };
2173
2242
  /**
@@ -2275,6 +2344,19 @@ export class AdminNotificationsApi extends BaseAPI {
2275
2344
  v1AdminNotificationsStatsGet(startDate, endDate, options) {
2276
2345
  return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsStatsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
2277
2346
  }
2347
+ /**
2348
+ * Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
2349
+ * @summary Send test notification (Admin)
2350
+ * @param {string} [email] Test email address (defaults to user\'s email)
2351
+ * @param {string} [templateCode] Template code to use (e.g., \'account_verified\', \'user_welcome\', \'payment_success\'). Defaults to \'account_verified\'
2352
+ * @param {string} [notificationCode] Notification code to use (e.g., \'account.verified\', \'payment.success\'). Defaults to \'account.verified\'
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ * @memberof AdminNotificationsApi
2356
+ */
2357
+ v1AdminNotificationsTestSendPost(email, templateCode, notificationCode, options) {
2358
+ return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsTestSendPost(email, templateCode, notificationCode, options).then((request) => request(this.axios, this.basePath));
2359
+ }
2278
2360
  }
2279
2361
  /**
2280
2362
  * AnalyticsApi - axios parameter creator
@@ -24771,15 +24853,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24771
24853
  * Apply filters to remove duplicate or unhelpful suggestions based on configuration
24772
24854
  * @summary Apply Suggestion Filters
24773
24855
  * @param {string} xStoreID Store ID
24774
- * @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
24856
+ * @param {Array<QuerySuggestionsServiceQuerySuggestionRecord>} querySuggestionsServiceQuerySuggestionRecord Array of suggestions to filter
24775
24857
  * @param {*} [options] Override http request option.
24776
24858
  * @throws {RequiredError}
24777
24859
  */
24778
- adminV1QuerySuggestionsXStoreIDApplyFiltersPost: (xStoreID_1, analyticsQuerySuggestionRecord_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsQuerySuggestionRecord_1, ...args_1], void 0, function* (xStoreID, analyticsQuerySuggestionRecord, options = {}) {
24860
+ adminV1QuerySuggestionsXStoreIDApplyFiltersPost: (xStoreID_1, querySuggestionsServiceQuerySuggestionRecord_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceQuerySuggestionRecord_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceQuerySuggestionRecord, options = {}) {
24779
24861
  // verify required parameter 'xStoreID' is not null or undefined
24780
24862
  assertParamExists('adminV1QuerySuggestionsXStoreIDApplyFiltersPost', 'xStoreID', xStoreID);
24781
- // verify required parameter 'analyticsQuerySuggestionRecord' is not null or undefined
24782
- assertParamExists('adminV1QuerySuggestionsXStoreIDApplyFiltersPost', 'analyticsQuerySuggestionRecord', analyticsQuerySuggestionRecord);
24863
+ // verify required parameter 'querySuggestionsServiceQuerySuggestionRecord' is not null or undefined
24864
+ assertParamExists('adminV1QuerySuggestionsXStoreIDApplyFiltersPost', 'querySuggestionsServiceQuerySuggestionRecord', querySuggestionsServiceQuerySuggestionRecord);
24783
24865
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/apply-filters`
24784
24866
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
24785
24867
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -24797,7 +24879,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24797
24879
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24798
24880
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24799
24881
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24800
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsQuerySuggestionRecord, localVarRequestOptions, configuration);
24882
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceQuerySuggestionRecord, localVarRequestOptions, configuration);
24801
24883
  return {
24802
24884
  url: toPathString(localVarUrlObj),
24803
24885
  options: localVarRequestOptions,
@@ -24843,17 +24925,17 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24843
24925
  * @summary Update Banned Expression
24844
24926
  * @param {string} xStoreID Store ID
24845
24927
  * @param {string} expressionID Banned Expression ID
24846
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
24928
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Updated banned expression
24847
24929
  * @param {*} [options] Override http request option.
24848
24930
  * @throws {RequiredError}
24849
24931
  */
24850
- 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 = {}) {
24932
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut: (xStoreID_1, expressionID_1, querySuggestionsServiceBannedExpression_1, ...args_1) => __awaiter(this, [xStoreID_1, expressionID_1, querySuggestionsServiceBannedExpression_1, ...args_1], void 0, function* (xStoreID, expressionID, querySuggestionsServiceBannedExpression, options = {}) {
24851
24933
  // verify required parameter 'xStoreID' is not null or undefined
24852
24934
  assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'xStoreID', xStoreID);
24853
24935
  // verify required parameter 'expressionID' is not null or undefined
24854
24936
  assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'expressionID', expressionID);
24855
- // verify required parameter 'analyticsBannedExpression' is not null or undefined
24856
- assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'analyticsBannedExpression', analyticsBannedExpression);
24937
+ // verify required parameter 'querySuggestionsServiceBannedExpression' is not null or undefined
24938
+ assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut', 'querySuggestionsServiceBannedExpression', querySuggestionsServiceBannedExpression);
24857
24939
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/banned-expressions/{expressionID}`
24858
24940
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
24859
24941
  .replace(`{${"expressionID"}}`, encodeURIComponent(String(expressionID)));
@@ -24872,7 +24954,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24872
24954
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24873
24955
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24874
24956
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24875
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsBannedExpression, localVarRequestOptions, configuration);
24957
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceBannedExpression, localVarRequestOptions, configuration);
24876
24958
  return {
24877
24959
  url: toPathString(localVarUrlObj),
24878
24960
  options: localVarRequestOptions,
@@ -24913,15 +24995,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24913
24995
  * Create a new banned expression with specified matching type
24914
24996
  * @summary Create Banned Expression
24915
24997
  * @param {string} xStoreID Store ID
24916
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
24998
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Banned expression to create
24917
24999
  * @param {*} [options] Override http request option.
24918
25000
  * @throws {RequiredError}
24919
25001
  */
24920
- adminV1QuerySuggestionsXStoreIDBannedExpressionsPost: (xStoreID_1, analyticsBannedExpression_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsBannedExpression_1, ...args_1], void 0, function* (xStoreID, analyticsBannedExpression, options = {}) {
25002
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsPost: (xStoreID_1, querySuggestionsServiceBannedExpression_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceBannedExpression_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceBannedExpression, options = {}) {
24921
25003
  // verify required parameter 'xStoreID' is not null or undefined
24922
25004
  assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsPost', 'xStoreID', xStoreID);
24923
- // verify required parameter 'analyticsBannedExpression' is not null or undefined
24924
- assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsPost', 'analyticsBannedExpression', analyticsBannedExpression);
25005
+ // verify required parameter 'querySuggestionsServiceBannedExpression' is not null or undefined
25006
+ assertParamExists('adminV1QuerySuggestionsXStoreIDBannedExpressionsPost', 'querySuggestionsServiceBannedExpression', querySuggestionsServiceBannedExpression);
24925
25007
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/banned-expressions`
24926
25008
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
24927
25009
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -24939,7 +25021,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24939
25021
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24940
25022
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24941
25023
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24942
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsBannedExpression, localVarRequestOptions, configuration);
25024
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceBannedExpression, localVarRequestOptions, configuration);
24943
25025
  return {
24944
25026
  url: toPathString(localVarUrlObj),
24945
25027
  options: localVarRequestOptions,
@@ -24949,15 +25031,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24949
25031
  * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
24950
25032
  * @summary Bulk Update Suggestions
24951
25033
  * @param {string} xStoreID Store ID
24952
- * @param {AnalyticsBulkOperationRequest} analyticsBulkOperationRequest Bulk operation request
25034
+ * @param {QuerySuggestionsServiceBulkOperationRequest} querySuggestionsServiceBulkOperationRequest Bulk operation request
24953
25035
  * @param {*} [options] Override http request option.
24954
25036
  * @throws {RequiredError}
24955
25037
  */
24956
- adminV1QuerySuggestionsXStoreIDBulkPost: (xStoreID_1, analyticsBulkOperationRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsBulkOperationRequest_1, ...args_1], void 0, function* (xStoreID, analyticsBulkOperationRequest, options = {}) {
25038
+ adminV1QuerySuggestionsXStoreIDBulkPost: (xStoreID_1, querySuggestionsServiceBulkOperationRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceBulkOperationRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceBulkOperationRequest, options = {}) {
24957
25039
  // verify required parameter 'xStoreID' is not null or undefined
24958
25040
  assertParamExists('adminV1QuerySuggestionsXStoreIDBulkPost', 'xStoreID', xStoreID);
24959
- // verify required parameter 'analyticsBulkOperationRequest' is not null or undefined
24960
- assertParamExists('adminV1QuerySuggestionsXStoreIDBulkPost', 'analyticsBulkOperationRequest', analyticsBulkOperationRequest);
25041
+ // verify required parameter 'querySuggestionsServiceBulkOperationRequest' is not null or undefined
25042
+ assertParamExists('adminV1QuerySuggestionsXStoreIDBulkPost', 'querySuggestionsServiceBulkOperationRequest', querySuggestionsServiceBulkOperationRequest);
24961
25043
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/bulk`
24962
25044
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
24963
25045
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -24975,7 +25057,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
24975
25057
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24976
25058
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24977
25059
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24978
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsBulkOperationRequest, localVarRequestOptions, configuration);
25060
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceBulkOperationRequest, localVarRequestOptions, configuration);
24979
25061
  return {
24980
25062
  url: toPathString(localVarUrlObj),
24981
25063
  options: localVarRequestOptions,
@@ -25059,15 +25141,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25059
25141
  * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25060
25142
  * @summary Update Query Suggestions Configuration
25061
25143
  * @param {string} xStoreID Store ID
25062
- * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
25144
+ * @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Configuration update request
25063
25145
  * @param {*} [options] Override http request option.
25064
25146
  * @throws {RequiredError}
25065
25147
  */
25066
- adminV1QuerySuggestionsXStoreIDConfigPut: (xStoreID_1, analyticsUpdateSuggestionConfigRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsUpdateSuggestionConfigRequest_1, ...args_1], void 0, function* (xStoreID, analyticsUpdateSuggestionConfigRequest, options = {}) {
25148
+ adminV1QuerySuggestionsXStoreIDConfigPut: (xStoreID_1, querySuggestionsServiceUpdateSuggestionConfigRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceUpdateSuggestionConfigRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options = {}) {
25067
25149
  // verify required parameter 'xStoreID' is not null or undefined
25068
25150
  assertParamExists('adminV1QuerySuggestionsXStoreIDConfigPut', 'xStoreID', xStoreID);
25069
- // verify required parameter 'analyticsUpdateSuggestionConfigRequest' is not null or undefined
25070
- assertParamExists('adminV1QuerySuggestionsXStoreIDConfigPut', 'analyticsUpdateSuggestionConfigRequest', analyticsUpdateSuggestionConfigRequest);
25151
+ // verify required parameter 'querySuggestionsServiceUpdateSuggestionConfigRequest' is not null or undefined
25152
+ assertParamExists('adminV1QuerySuggestionsXStoreIDConfigPut', 'querySuggestionsServiceUpdateSuggestionConfigRequest', querySuggestionsServiceUpdateSuggestionConfigRequest);
25071
25153
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/config`
25072
25154
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25073
25155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -25085,7 +25167,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25085
25167
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25086
25168
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25087
25169
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25088
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsUpdateSuggestionConfigRequest, localVarRequestOptions, configuration);
25170
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceUpdateSuggestionConfigRequest, localVarRequestOptions, configuration);
25089
25171
  return {
25090
25172
  url: toPathString(localVarUrlObj),
25091
25173
  options: localVarRequestOptions,
@@ -25216,15 +25298,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25216
25298
  * Import query suggestions from JSON data
25217
25299
  * @summary Import Query Suggestions
25218
25300
  * @param {string} xStoreID Store ID
25219
- * @param {AnalyticsImportQuerySuggestionsRequest} analyticsImportQuerySuggestionsRequest Import suggestions request
25301
+ * @param {QuerySuggestionsServiceImportQuerySuggestionsRequest} querySuggestionsServiceImportQuerySuggestionsRequest Import suggestions request
25220
25302
  * @param {*} [options] Override http request option.
25221
25303
  * @throws {RequiredError}
25222
25304
  */
25223
- adminV1QuerySuggestionsXStoreIDImportPost: (xStoreID_1, analyticsImportQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsImportQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, analyticsImportQuerySuggestionsRequest, options = {}) {
25305
+ adminV1QuerySuggestionsXStoreIDImportPost: (xStoreID_1, querySuggestionsServiceImportQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceImportQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options = {}) {
25224
25306
  // verify required parameter 'xStoreID' is not null or undefined
25225
25307
  assertParamExists('adminV1QuerySuggestionsXStoreIDImportPost', 'xStoreID', xStoreID);
25226
- // verify required parameter 'analyticsImportQuerySuggestionsRequest' is not null or undefined
25227
- assertParamExists('adminV1QuerySuggestionsXStoreIDImportPost', 'analyticsImportQuerySuggestionsRequest', analyticsImportQuerySuggestionsRequest);
25308
+ // verify required parameter 'querySuggestionsServiceImportQuerySuggestionsRequest' is not null or undefined
25309
+ assertParamExists('adminV1QuerySuggestionsXStoreIDImportPost', 'querySuggestionsServiceImportQuerySuggestionsRequest', querySuggestionsServiceImportQuerySuggestionsRequest);
25228
25310
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/import`
25229
25311
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25230
25312
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -25242,7 +25324,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25242
25324
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25243
25325
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25244
25326
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25245
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsImportQuerySuggestionsRequest, localVarRequestOptions, configuration);
25327
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceImportQuerySuggestionsRequest, localVarRequestOptions, configuration);
25246
25328
  return {
25247
25329
  url: toPathString(localVarUrlObj),
25248
25330
  options: localVarRequestOptions,
@@ -25252,15 +25334,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25252
25334
  * Delete manually added query suggestions for a store
25253
25335
  * @summary Delete Manual Query Suggestions
25254
25336
  * @param {string} xStoreID Store ID
25255
- * @param {AnalyticsDeleteManualSuggestionsRequest} analyticsDeleteManualSuggestionsRequest Delete request
25337
+ * @param {QuerySuggestionsServiceDeleteManualSuggestionsRequest} querySuggestionsServiceDeleteManualSuggestionsRequest Delete request
25256
25338
  * @param {*} [options] Override http request option.
25257
25339
  * @throws {RequiredError}
25258
25340
  */
25259
- adminV1QuerySuggestionsXStoreIDManualDeleteDelete: (xStoreID_1, analyticsDeleteManualSuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsDeleteManualSuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, analyticsDeleteManualSuggestionsRequest, options = {}) {
25341
+ adminV1QuerySuggestionsXStoreIDManualDeleteDelete: (xStoreID_1, querySuggestionsServiceDeleteManualSuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceDeleteManualSuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options = {}) {
25260
25342
  // verify required parameter 'xStoreID' is not null or undefined
25261
25343
  assertParamExists('adminV1QuerySuggestionsXStoreIDManualDeleteDelete', 'xStoreID', xStoreID);
25262
- // verify required parameter 'analyticsDeleteManualSuggestionsRequest' is not null or undefined
25263
- assertParamExists('adminV1QuerySuggestionsXStoreIDManualDeleteDelete', 'analyticsDeleteManualSuggestionsRequest', analyticsDeleteManualSuggestionsRequest);
25344
+ // verify required parameter 'querySuggestionsServiceDeleteManualSuggestionsRequest' is not null or undefined
25345
+ assertParamExists('adminV1QuerySuggestionsXStoreIDManualDeleteDelete', 'querySuggestionsServiceDeleteManualSuggestionsRequest', querySuggestionsServiceDeleteManualSuggestionsRequest);
25264
25346
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/manual/delete`
25265
25347
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25266
25348
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -25278,7 +25360,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25278
25360
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25279
25361
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25280
25362
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25281
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsDeleteManualSuggestionsRequest, localVarRequestOptions, configuration);
25363
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceDeleteManualSuggestionsRequest, localVarRequestOptions, configuration);
25282
25364
  return {
25283
25365
  url: toPathString(localVarUrlObj),
25284
25366
  options: localVarRequestOptions,
@@ -25288,15 +25370,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25288
25370
  * Add a manually created query suggestion for a store
25289
25371
  * @summary Add Manual Query Suggestion
25290
25372
  * @param {string} xStoreID Store ID
25291
- * @param {AnalyticsManualQuerySuggestionRequest} analyticsManualQuerySuggestionRequest Manual suggestion request
25373
+ * @param {QuerySuggestionsServiceManualQuerySuggestionRequest} querySuggestionsServiceManualQuerySuggestionRequest Manual suggestion request
25292
25374
  * @param {*} [options] Override http request option.
25293
25375
  * @throws {RequiredError}
25294
25376
  */
25295
- adminV1QuerySuggestionsXStoreIDManualPost: (xStoreID_1, analyticsManualQuerySuggestionRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsManualQuerySuggestionRequest_1, ...args_1], void 0, function* (xStoreID, analyticsManualQuerySuggestionRequest, options = {}) {
25377
+ adminV1QuerySuggestionsXStoreIDManualPost: (xStoreID_1, querySuggestionsServiceManualQuerySuggestionRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceManualQuerySuggestionRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options = {}) {
25296
25378
  // verify required parameter 'xStoreID' is not null or undefined
25297
25379
  assertParamExists('adminV1QuerySuggestionsXStoreIDManualPost', 'xStoreID', xStoreID);
25298
- // verify required parameter 'analyticsManualQuerySuggestionRequest' is not null or undefined
25299
- assertParamExists('adminV1QuerySuggestionsXStoreIDManualPost', 'analyticsManualQuerySuggestionRequest', analyticsManualQuerySuggestionRequest);
25380
+ // verify required parameter 'querySuggestionsServiceManualQuerySuggestionRequest' is not null or undefined
25381
+ assertParamExists('adminV1QuerySuggestionsXStoreIDManualPost', 'querySuggestionsServiceManualQuerySuggestionRequest', querySuggestionsServiceManualQuerySuggestionRequest);
25300
25382
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/manual`
25301
25383
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25302
25384
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -25314,7 +25396,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25314
25396
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25315
25397
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25316
25398
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25317
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsManualQuerySuggestionRequest, localVarRequestOptions, configuration);
25399
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceManualQuerySuggestionRequest, localVarRequestOptions, configuration);
25318
25400
  return {
25319
25401
  url: toPathString(localVarUrlObj),
25320
25402
  options: localVarRequestOptions,
@@ -25398,15 +25480,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25398
25480
  * Move selected auto-generated suggestions from cache to the management table
25399
25481
  * @summary Promote Cached Suggestions to Management Table
25400
25482
  * @param {string} xStoreID Store ID
25401
- * @param {AnalyticsPromoteSuggestionsRequest} analyticsPromoteSuggestionsRequest Promotion request
25483
+ * @param {QuerySuggestionsServicePromoteSuggestionsRequest} querySuggestionsServicePromoteSuggestionsRequest Promotion request
25402
25484
  * @param {*} [options] Override http request option.
25403
25485
  * @throws {RequiredError}
25404
25486
  */
25405
- adminV1QuerySuggestionsXStoreIDPromotePost: (xStoreID_1, analyticsPromoteSuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsPromoteSuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, analyticsPromoteSuggestionsRequest, options = {}) {
25487
+ adminV1QuerySuggestionsXStoreIDPromotePost: (xStoreID_1, querySuggestionsServicePromoteSuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServicePromoteSuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options = {}) {
25406
25488
  // verify required parameter 'xStoreID' is not null or undefined
25407
25489
  assertParamExists('adminV1QuerySuggestionsXStoreIDPromotePost', 'xStoreID', xStoreID);
25408
- // verify required parameter 'analyticsPromoteSuggestionsRequest' is not null or undefined
25409
- assertParamExists('adminV1QuerySuggestionsXStoreIDPromotePost', 'analyticsPromoteSuggestionsRequest', analyticsPromoteSuggestionsRequest);
25490
+ // verify required parameter 'querySuggestionsServicePromoteSuggestionsRequest' is not null or undefined
25491
+ assertParamExists('adminV1QuerySuggestionsXStoreIDPromotePost', 'querySuggestionsServicePromoteSuggestionsRequest', querySuggestionsServicePromoteSuggestionsRequest);
25410
25492
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/promote`
25411
25493
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25412
25494
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -25424,7 +25506,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25424
25506
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25425
25507
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25426
25508
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25427
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsPromoteSuggestionsRequest, localVarRequestOptions, configuration);
25509
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServicePromoteSuggestionsRequest, localVarRequestOptions, configuration);
25428
25510
  return {
25429
25511
  url: toPathString(localVarUrlObj),
25430
25512
  options: localVarRequestOptions,
@@ -25606,17 +25688,17 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25606
25688
  * @summary Update Query Suggestion by ID
25607
25689
  * @param {string} xStoreID Store ID
25608
25690
  * @param {string} suggestionID Suggestion ID
25609
- * @param {AnalyticsUpdateSuggestionRequest} analyticsUpdateSuggestionRequest Update request
25691
+ * @param {QuerySuggestionsServiceUpdateSuggestionRequest} querySuggestionsServiceUpdateSuggestionRequest Update request
25610
25692
  * @param {*} [options] Override http request option.
25611
25693
  * @throws {RequiredError}
25612
25694
  */
25613
- adminV1QuerySuggestionsXStoreIDSuggestionIDPut: (xStoreID_1, suggestionID_1, analyticsUpdateSuggestionRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, suggestionID_1, analyticsUpdateSuggestionRequest_1, ...args_1], void 0, function* (xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options = {}) {
25695
+ adminV1QuerySuggestionsXStoreIDSuggestionIDPut: (xStoreID_1, suggestionID_1, querySuggestionsServiceUpdateSuggestionRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, suggestionID_1, querySuggestionsServiceUpdateSuggestionRequest_1, ...args_1], void 0, function* (xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options = {}) {
25614
25696
  // verify required parameter 'xStoreID' is not null or undefined
25615
25697
  assertParamExists('adminV1QuerySuggestionsXStoreIDSuggestionIDPut', 'xStoreID', xStoreID);
25616
25698
  // verify required parameter 'suggestionID' is not null or undefined
25617
25699
  assertParamExists('adminV1QuerySuggestionsXStoreIDSuggestionIDPut', 'suggestionID', suggestionID);
25618
- // verify required parameter 'analyticsUpdateSuggestionRequest' is not null or undefined
25619
- assertParamExists('adminV1QuerySuggestionsXStoreIDSuggestionIDPut', 'analyticsUpdateSuggestionRequest', analyticsUpdateSuggestionRequest);
25700
+ // verify required parameter 'querySuggestionsServiceUpdateSuggestionRequest' is not null or undefined
25701
+ assertParamExists('adminV1QuerySuggestionsXStoreIDSuggestionIDPut', 'querySuggestionsServiceUpdateSuggestionRequest', querySuggestionsServiceUpdateSuggestionRequest);
25620
25702
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/{suggestionID}`
25621
25703
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
25622
25704
  .replace(`{${"suggestionID"}}`, encodeURIComponent(String(suggestionID)));
@@ -25635,7 +25717,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25635
25717
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25636
25718
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25637
25719
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25638
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsUpdateSuggestionRequest, localVarRequestOptions, configuration);
25720
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceUpdateSuggestionRequest, localVarRequestOptions, configuration);
25639
25721
  return {
25640
25722
  url: toPathString(localVarUrlObj),
25641
25723
  options: localVarRequestOptions,
@@ -25717,15 +25799,15 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25717
25799
  * Enable or disable query suggestions for a specific store
25718
25800
  * @summary Toggle Query Suggestions for Store
25719
25801
  * @param {string} xStoreID Store ID
25720
- * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
25802
+ * @param {QuerySuggestionsServiceToggleQuerySuggestionsRequest} querySuggestionsServiceToggleQuerySuggestionsRequest Toggle request
25721
25803
  * @param {*} [options] Override http request option.
25722
25804
  * @throws {RequiredError}
25723
25805
  */
25724
- adminV1QuerySuggestionsXStoreIDTogglePost: (xStoreID_1, analyticsToggleQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, analyticsToggleQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, analyticsToggleQuerySuggestionsRequest, options = {}) {
25806
+ adminV1QuerySuggestionsXStoreIDTogglePost: (xStoreID_1, querySuggestionsServiceToggleQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreID_1, querySuggestionsServiceToggleQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options = {}) {
25725
25807
  // verify required parameter 'xStoreID' is not null or undefined
25726
25808
  assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'xStoreID', xStoreID);
25727
- // verify required parameter 'analyticsToggleQuerySuggestionsRequest' is not null or undefined
25728
- assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'analyticsToggleQuerySuggestionsRequest', analyticsToggleQuerySuggestionsRequest);
25809
+ // verify required parameter 'querySuggestionsServiceToggleQuerySuggestionsRequest' is not null or undefined
25810
+ assertParamExists('adminV1QuerySuggestionsXStoreIDTogglePost', 'querySuggestionsServiceToggleQuerySuggestionsRequest', querySuggestionsServiceToggleQuerySuggestionsRequest);
25729
25811
  const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/toggle`
25730
25812
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25731
25813
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -25743,7 +25825,7 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25743
25825
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25744
25826
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25745
25827
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25746
- localVarRequestOptions.data = serializeDataIfNeeded(analyticsToggleQuerySuggestionsRequest, localVarRequestOptions, configuration);
25828
+ localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceToggleQuerySuggestionsRequest, localVarRequestOptions, configuration);
25747
25829
  return {
25748
25830
  url: toPathString(localVarUrlObj),
25749
25831
  options: localVarRequestOptions,
@@ -25792,6 +25874,37 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
25792
25874
  options: localVarRequestOptions,
25793
25875
  };
25794
25876
  }),
25877
+ /**
25878
+ * Manually trigger schema update to enable infix search for the query field
25879
+ * @summary Update Query Suggestions Collection Schema
25880
+ * @param {string} xStoreID Store ID
25881
+ * @param {*} [options] Override http request option.
25882
+ * @throws {RequiredError}
25883
+ */
25884
+ adminV1QuerySuggestionsXStoreIDUpdateSchemaPost: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
25885
+ // verify required parameter 'xStoreID' is not null or undefined
25886
+ assertParamExists('adminV1QuerySuggestionsXStoreIDUpdateSchemaPost', 'xStoreID', xStoreID);
25887
+ const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/update-schema`
25888
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
25889
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25890
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25891
+ let baseOptions;
25892
+ if (configuration) {
25893
+ baseOptions = configuration.baseOptions;
25894
+ }
25895
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
25896
+ const localVarHeaderParameter = {};
25897
+ const localVarQueryParameter = {};
25898
+ // authentication BearerAuth required
25899
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
25900
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25901
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25902
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25903
+ return {
25904
+ url: toPathString(localVarUrlObj),
25905
+ options: localVarRequestOptions,
25906
+ };
25907
+ }),
25795
25908
  };
25796
25909
  };
25797
25910
  /**
@@ -25822,14 +25935,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
25822
25935
  * Apply filters to remove duplicate or unhelpful suggestions based on configuration
25823
25936
  * @summary Apply Suggestion Filters
25824
25937
  * @param {string} xStoreID Store ID
25825
- * @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
25938
+ * @param {Array<QuerySuggestionsServiceQuerySuggestionRecord>} querySuggestionsServiceQuerySuggestionRecord Array of suggestions to filter
25826
25939
  * @param {*} [options] Override http request option.
25827
25940
  * @throws {RequiredError}
25828
25941
  */
25829
- adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options) {
25942
+ adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, querySuggestionsServiceQuerySuggestionRecord, options) {
25830
25943
  return __awaiter(this, void 0, void 0, function* () {
25831
25944
  var _a, _b, _c;
25832
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options);
25945
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, querySuggestionsServiceQuerySuggestionRecord, options);
25833
25946
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25834
25947
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDApplyFiltersPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25835
25948
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -25857,14 +25970,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
25857
25970
  * @summary Update Banned Expression
25858
25971
  * @param {string} xStoreID Store ID
25859
25972
  * @param {string} expressionID Banned Expression ID
25860
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
25973
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Updated banned expression
25861
25974
  * @param {*} [options] Override http request option.
25862
25975
  * @throws {RequiredError}
25863
25976
  */
25864
- adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options) {
25977
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, querySuggestionsServiceBannedExpression, options) {
25865
25978
  return __awaiter(this, void 0, void 0, function* () {
25866
25979
  var _a, _b, _c;
25867
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options);
25980
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, querySuggestionsServiceBannedExpression, options);
25868
25981
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25869
25982
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25870
25983
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -25890,14 +26003,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
25890
26003
  * Create a new banned expression with specified matching type
25891
26004
  * @summary Create Banned Expression
25892
26005
  * @param {string} xStoreID Store ID
25893
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
26006
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Banned expression to create
25894
26007
  * @param {*} [options] Override http request option.
25895
26008
  * @throws {RequiredError}
25896
26009
  */
25897
- adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options) {
26010
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, querySuggestionsServiceBannedExpression, options) {
25898
26011
  return __awaiter(this, void 0, void 0, function* () {
25899
26012
  var _a, _b, _c;
25900
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options);
26013
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, querySuggestionsServiceBannedExpression, options);
25901
26014
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25902
26015
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25903
26016
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -25907,14 +26020,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
25907
26020
  * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
25908
26021
  * @summary Bulk Update Suggestions
25909
26022
  * @param {string} xStoreID Store ID
25910
- * @param {AnalyticsBulkOperationRequest} analyticsBulkOperationRequest Bulk operation request
26023
+ * @param {QuerySuggestionsServiceBulkOperationRequest} querySuggestionsServiceBulkOperationRequest Bulk operation request
25911
26024
  * @param {*} [options] Override http request option.
25912
26025
  * @throws {RequiredError}
25913
26026
  */
25914
- adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, analyticsBulkOperationRequest, options) {
26027
+ adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, querySuggestionsServiceBulkOperationRequest, options) {
25915
26028
  return __awaiter(this, void 0, void 0, function* () {
25916
26029
  var _a, _b, _c;
25917
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, analyticsBulkOperationRequest, options);
26030
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, querySuggestionsServiceBulkOperationRequest, options);
25918
26031
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25919
26032
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDBulkPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25920
26033
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -25959,14 +26072,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
25959
26072
  * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
25960
26073
  * @summary Update Query Suggestions Configuration
25961
26074
  * @param {string} xStoreID Store ID
25962
- * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
26075
+ * @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Configuration update request
25963
26076
  * @param {*} [options] Override http request option.
25964
26077
  * @throws {RequiredError}
25965
26078
  */
25966
- adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options) {
26079
+ adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
25967
26080
  return __awaiter(this, void 0, void 0, function* () {
25968
26081
  var _a, _b, _c;
25969
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options);
26082
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options);
25970
26083
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25971
26084
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25972
26085
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26031,14 +26144,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26031
26144
  * Import query suggestions from JSON data
26032
26145
  * @summary Import Query Suggestions
26033
26146
  * @param {string} xStoreID Store ID
26034
- * @param {AnalyticsImportQuerySuggestionsRequest} analyticsImportQuerySuggestionsRequest Import suggestions request
26147
+ * @param {QuerySuggestionsServiceImportQuerySuggestionsRequest} querySuggestionsServiceImportQuerySuggestionsRequest Import suggestions request
26035
26148
  * @param {*} [options] Override http request option.
26036
26149
  * @throws {RequiredError}
26037
26150
  */
26038
- adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, analyticsImportQuerySuggestionsRequest, options) {
26151
+ adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options) {
26039
26152
  return __awaiter(this, void 0, void 0, function* () {
26040
26153
  var _a, _b, _c;
26041
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, analyticsImportQuerySuggestionsRequest, options);
26154
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options);
26042
26155
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26043
26156
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDImportPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26044
26157
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26048,14 +26161,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26048
26161
  * Delete manually added query suggestions for a store
26049
26162
  * @summary Delete Manual Query Suggestions
26050
26163
  * @param {string} xStoreID Store ID
26051
- * @param {AnalyticsDeleteManualSuggestionsRequest} analyticsDeleteManualSuggestionsRequest Delete request
26164
+ * @param {QuerySuggestionsServiceDeleteManualSuggestionsRequest} querySuggestionsServiceDeleteManualSuggestionsRequest Delete request
26052
26165
  * @param {*} [options] Override http request option.
26053
26166
  * @throws {RequiredError}
26054
26167
  */
26055
- adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, analyticsDeleteManualSuggestionsRequest, options) {
26168
+ adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options) {
26056
26169
  return __awaiter(this, void 0, void 0, function* () {
26057
26170
  var _a, _b, _c;
26058
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, analyticsDeleteManualSuggestionsRequest, options);
26171
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options);
26059
26172
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26060
26173
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDManualDeleteDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26061
26174
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26065,14 +26178,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26065
26178
  * Add a manually created query suggestion for a store
26066
26179
  * @summary Add Manual Query Suggestion
26067
26180
  * @param {string} xStoreID Store ID
26068
- * @param {AnalyticsManualQuerySuggestionRequest} analyticsManualQuerySuggestionRequest Manual suggestion request
26181
+ * @param {QuerySuggestionsServiceManualQuerySuggestionRequest} querySuggestionsServiceManualQuerySuggestionRequest Manual suggestion request
26069
26182
  * @param {*} [options] Override http request option.
26070
26183
  * @throws {RequiredError}
26071
26184
  */
26072
- adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, analyticsManualQuerySuggestionRequest, options) {
26185
+ adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options) {
26073
26186
  return __awaiter(this, void 0, void 0, function* () {
26074
26187
  var _a, _b, _c;
26075
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, analyticsManualQuerySuggestionRequest, options);
26188
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options);
26076
26189
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26077
26190
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDManualPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26078
26191
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26117,14 +26230,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26117
26230
  * Move selected auto-generated suggestions from cache to the management table
26118
26231
  * @summary Promote Cached Suggestions to Management Table
26119
26232
  * @param {string} xStoreID Store ID
26120
- * @param {AnalyticsPromoteSuggestionsRequest} analyticsPromoteSuggestionsRequest Promotion request
26233
+ * @param {QuerySuggestionsServicePromoteSuggestionsRequest} querySuggestionsServicePromoteSuggestionsRequest Promotion request
26121
26234
  * @param {*} [options] Override http request option.
26122
26235
  * @throws {RequiredError}
26123
26236
  */
26124
- adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, analyticsPromoteSuggestionsRequest, options) {
26237
+ adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options) {
26125
26238
  return __awaiter(this, void 0, void 0, function* () {
26126
26239
  var _a, _b, _c;
26127
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, analyticsPromoteSuggestionsRequest, options);
26240
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options);
26128
26241
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26129
26242
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDPromotePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26130
26243
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26219,14 +26332,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26219
26332
  * @summary Update Query Suggestion by ID
26220
26333
  * @param {string} xStoreID Store ID
26221
26334
  * @param {string} suggestionID Suggestion ID
26222
- * @param {AnalyticsUpdateSuggestionRequest} analyticsUpdateSuggestionRequest Update request
26335
+ * @param {QuerySuggestionsServiceUpdateSuggestionRequest} querySuggestionsServiceUpdateSuggestionRequest Update request
26223
26336
  * @param {*} [options] Override http request option.
26224
26337
  * @throws {RequiredError}
26225
26338
  */
26226
- adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options) {
26339
+ adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options) {
26227
26340
  return __awaiter(this, void 0, void 0, function* () {
26228
26341
  var _a, _b, _c;
26229
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options);
26342
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options);
26230
26343
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26231
26344
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDSuggestionIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26232
26345
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26270,14 +26383,14 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26270
26383
  * Enable or disable query suggestions for a specific store
26271
26384
  * @summary Toggle Query Suggestions for Store
26272
26385
  * @param {string} xStoreID Store ID
26273
- * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
26386
+ * @param {QuerySuggestionsServiceToggleQuerySuggestionsRequest} querySuggestionsServiceToggleQuerySuggestionsRequest Toggle request
26274
26387
  * @param {*} [options] Override http request option.
26275
26388
  * @throws {RequiredError}
26276
26389
  */
26277
- adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
26390
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options) {
26278
26391
  return __awaiter(this, void 0, void 0, function* () {
26279
26392
  var _a, _b, _c;
26280
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options);
26393
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options);
26281
26394
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26282
26395
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDTogglePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26283
26396
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26302,6 +26415,22 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
26302
26415
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26303
26416
  });
26304
26417
  },
26418
+ /**
26419
+ * Manually trigger schema update to enable infix search for the query field
26420
+ * @summary Update Query Suggestions Collection Schema
26421
+ * @param {string} xStoreID Store ID
26422
+ * @param {*} [options] Override http request option.
26423
+ * @throws {RequiredError}
26424
+ */
26425
+ adminV1QuerySuggestionsXStoreIDUpdateSchemaPost(xStoreID, options) {
26426
+ return __awaiter(this, void 0, void 0, function* () {
26427
+ var _a, _b, _c;
26428
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDUpdateSchemaPost(xStoreID, options);
26429
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26430
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDUpdateSchemaPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26431
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26432
+ });
26433
+ },
26305
26434
  };
26306
26435
  };
26307
26436
  /**
@@ -26326,12 +26455,12 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26326
26455
  * Apply filters to remove duplicate or unhelpful suggestions based on configuration
26327
26456
  * @summary Apply Suggestion Filters
26328
26457
  * @param {string} xStoreID Store ID
26329
- * @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
26458
+ * @param {Array<QuerySuggestionsServiceQuerySuggestionRecord>} querySuggestionsServiceQuerySuggestionRecord Array of suggestions to filter
26330
26459
  * @param {*} [options] Override http request option.
26331
26460
  * @throws {RequiredError}
26332
26461
  */
26333
- adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options) {
26334
- return localVarFp.adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options).then((request) => request(axios, basePath));
26462
+ adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, querySuggestionsServiceQuerySuggestionRecord, options) {
26463
+ return localVarFp.adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, querySuggestionsServiceQuerySuggestionRecord, options).then((request) => request(axios, basePath));
26335
26464
  },
26336
26465
  /**
26337
26466
  * Delete a banned expression
@@ -26349,12 +26478,12 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26349
26478
  * @summary Update Banned Expression
26350
26479
  * @param {string} xStoreID Store ID
26351
26480
  * @param {string} expressionID Banned Expression ID
26352
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
26481
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Updated banned expression
26353
26482
  * @param {*} [options] Override http request option.
26354
26483
  * @throws {RequiredError}
26355
26484
  */
26356
- adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options) {
26357
- return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options).then((request) => request(axios, basePath));
26485
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, querySuggestionsServiceBannedExpression, options) {
26486
+ return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, querySuggestionsServiceBannedExpression, options).then((request) => request(axios, basePath));
26358
26487
  },
26359
26488
  /**
26360
26489
  * Retrieve all banned expressions for a store with their matching types
@@ -26370,23 +26499,23 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26370
26499
  * Create a new banned expression with specified matching type
26371
26500
  * @summary Create Banned Expression
26372
26501
  * @param {string} xStoreID Store ID
26373
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
26502
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Banned expression to create
26374
26503
  * @param {*} [options] Override http request option.
26375
26504
  * @throws {RequiredError}
26376
26505
  */
26377
- adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options) {
26378
- return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options).then((request) => request(axios, basePath));
26506
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, querySuggestionsServiceBannedExpression, options) {
26507
+ return localVarFp.adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, querySuggestionsServiceBannedExpression, options).then((request) => request(axios, basePath));
26379
26508
  },
26380
26509
  /**
26381
26510
  * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
26382
26511
  * @summary Bulk Update Suggestions
26383
26512
  * @param {string} xStoreID Store ID
26384
- * @param {AnalyticsBulkOperationRequest} analyticsBulkOperationRequest Bulk operation request
26513
+ * @param {QuerySuggestionsServiceBulkOperationRequest} querySuggestionsServiceBulkOperationRequest Bulk operation request
26385
26514
  * @param {*} [options] Override http request option.
26386
26515
  * @throws {RequiredError}
26387
26516
  */
26388
- adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, analyticsBulkOperationRequest, options) {
26389
- return localVarFp.adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, analyticsBulkOperationRequest, options).then((request) => request(axios, basePath));
26517
+ adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, querySuggestionsServiceBulkOperationRequest, options) {
26518
+ return localVarFp.adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, querySuggestionsServiceBulkOperationRequest, options).then((request) => request(axios, basePath));
26390
26519
  },
26391
26520
  /**
26392
26521
  * Retrieve auto-generated suggestions from cache for review before promoting to management table
@@ -26415,12 +26544,12 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26415
26544
  * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
26416
26545
  * @summary Update Query Suggestions Configuration
26417
26546
  * @param {string} xStoreID Store ID
26418
- * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
26547
+ * @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Configuration update request
26419
26548
  * @param {*} [options] Override http request option.
26420
26549
  * @throws {RequiredError}
26421
26550
  */
26422
- adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options) {
26423
- return localVarFp.adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options).then((request) => request(axios, basePath));
26551
+ adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
26552
+ return localVarFp.adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(axios, basePath));
26424
26553
  },
26425
26554
  /**
26426
26555
  * Generate query suggestions with category counts and enhanced data structure
@@ -26463,34 +26592,34 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26463
26592
  * Import query suggestions from JSON data
26464
26593
  * @summary Import Query Suggestions
26465
26594
  * @param {string} xStoreID Store ID
26466
- * @param {AnalyticsImportQuerySuggestionsRequest} analyticsImportQuerySuggestionsRequest Import suggestions request
26595
+ * @param {QuerySuggestionsServiceImportQuerySuggestionsRequest} querySuggestionsServiceImportQuerySuggestionsRequest Import suggestions request
26467
26596
  * @param {*} [options] Override http request option.
26468
26597
  * @throws {RequiredError}
26469
26598
  */
26470
- adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, analyticsImportQuerySuggestionsRequest, options) {
26471
- return localVarFp.adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, analyticsImportQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
26599
+ adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options) {
26600
+ return localVarFp.adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
26472
26601
  },
26473
26602
  /**
26474
26603
  * Delete manually added query suggestions for a store
26475
26604
  * @summary Delete Manual Query Suggestions
26476
26605
  * @param {string} xStoreID Store ID
26477
- * @param {AnalyticsDeleteManualSuggestionsRequest} analyticsDeleteManualSuggestionsRequest Delete request
26606
+ * @param {QuerySuggestionsServiceDeleteManualSuggestionsRequest} querySuggestionsServiceDeleteManualSuggestionsRequest Delete request
26478
26607
  * @param {*} [options] Override http request option.
26479
26608
  * @throws {RequiredError}
26480
26609
  */
26481
- adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, analyticsDeleteManualSuggestionsRequest, options) {
26482
- return localVarFp.adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, analyticsDeleteManualSuggestionsRequest, options).then((request) => request(axios, basePath));
26610
+ adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options) {
26611
+ return localVarFp.adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options).then((request) => request(axios, basePath));
26483
26612
  },
26484
26613
  /**
26485
26614
  * Add a manually created query suggestion for a store
26486
26615
  * @summary Add Manual Query Suggestion
26487
26616
  * @param {string} xStoreID Store ID
26488
- * @param {AnalyticsManualQuerySuggestionRequest} analyticsManualQuerySuggestionRequest Manual suggestion request
26617
+ * @param {QuerySuggestionsServiceManualQuerySuggestionRequest} querySuggestionsServiceManualQuerySuggestionRequest Manual suggestion request
26489
26618
  * @param {*} [options] Override http request option.
26490
26619
  * @throws {RequiredError}
26491
26620
  */
26492
- adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, analyticsManualQuerySuggestionRequest, options) {
26493
- return localVarFp.adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, analyticsManualQuerySuggestionRequest, options).then((request) => request(axios, basePath));
26621
+ adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options) {
26622
+ return localVarFp.adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options).then((request) => request(axios, basePath));
26494
26623
  },
26495
26624
  /**
26496
26625
  * Migrate existing search analytics data to the new query suggestions management system
@@ -26519,12 +26648,12 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26519
26648
  * Move selected auto-generated suggestions from cache to the management table
26520
26649
  * @summary Promote Cached Suggestions to Management Table
26521
26650
  * @param {string} xStoreID Store ID
26522
- * @param {AnalyticsPromoteSuggestionsRequest} analyticsPromoteSuggestionsRequest Promotion request
26651
+ * @param {QuerySuggestionsServicePromoteSuggestionsRequest} querySuggestionsServicePromoteSuggestionsRequest Promotion request
26523
26652
  * @param {*} [options] Override http request option.
26524
26653
  * @throws {RequiredError}
26525
26654
  */
26526
- adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, analyticsPromoteSuggestionsRequest, options) {
26527
- return localVarFp.adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, analyticsPromoteSuggestionsRequest, options).then((request) => request(axios, basePath));
26655
+ adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options) {
26656
+ return localVarFp.adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options).then((request) => request(axios, basePath));
26528
26657
  },
26529
26658
  /**
26530
26659
  * Refresh auto-generated suggestions from search analytics data
@@ -26585,12 +26714,12 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26585
26714
  * @summary Update Query Suggestion by ID
26586
26715
  * @param {string} xStoreID Store ID
26587
26716
  * @param {string} suggestionID Suggestion ID
26588
- * @param {AnalyticsUpdateSuggestionRequest} analyticsUpdateSuggestionRequest Update request
26717
+ * @param {QuerySuggestionsServiceUpdateSuggestionRequest} querySuggestionsServiceUpdateSuggestionRequest Update request
26589
26718
  * @param {*} [options] Override http request option.
26590
26719
  * @throws {RequiredError}
26591
26720
  */
26592
- adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options) {
26593
- return localVarFp.adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options).then((request) => request(axios, basePath));
26721
+ adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options) {
26722
+ return localVarFp.adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options).then((request) => request(axios, basePath));
26594
26723
  },
26595
26724
  /**
26596
26725
  * Update the status (enabled/disabled) of a query suggestion
@@ -26618,12 +26747,12 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26618
26747
  * Enable or disable query suggestions for a specific store
26619
26748
  * @summary Toggle Query Suggestions for Store
26620
26749
  * @param {string} xStoreID Store ID
26621
- * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
26750
+ * @param {QuerySuggestionsServiceToggleQuerySuggestionsRequest} querySuggestionsServiceToggleQuerySuggestionsRequest Toggle request
26622
26751
  * @param {*} [options] Override http request option.
26623
26752
  * @throws {RequiredError}
26624
26753
  */
26625
- adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
26626
- return localVarFp.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
26754
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options) {
26755
+ return localVarFp.adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
26627
26756
  },
26628
26757
  /**
26629
26758
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
@@ -26638,6 +26767,16 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
26638
26767
  adminV1QuerySuggestionsXStoreIDTypesenseGet(xStoreID, query, hitsPerPage, page, options) {
26639
26768
  return localVarFp.adminV1QuerySuggestionsXStoreIDTypesenseGet(xStoreID, query, hitsPerPage, page, options).then((request) => request(axios, basePath));
26640
26769
  },
26770
+ /**
26771
+ * Manually trigger schema update to enable infix search for the query field
26772
+ * @summary Update Query Suggestions Collection Schema
26773
+ * @param {string} xStoreID Store ID
26774
+ * @param {*} [options] Override http request option.
26775
+ * @throws {RequiredError}
26776
+ */
26777
+ adminV1QuerySuggestionsXStoreIDUpdateSchemaPost(xStoreID, options) {
26778
+ return localVarFp.adminV1QuerySuggestionsXStoreIDUpdateSchemaPost(xStoreID, options).then((request) => request(axios, basePath));
26779
+ },
26641
26780
  };
26642
26781
  };
26643
26782
  /**
@@ -26663,13 +26802,13 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26663
26802
  * Apply filters to remove duplicate or unhelpful suggestions based on configuration
26664
26803
  * @summary Apply Suggestion Filters
26665
26804
  * @param {string} xStoreID Store ID
26666
- * @param {Array<AnalyticsQuerySuggestionRecord>} analyticsQuerySuggestionRecord Array of suggestions to filter
26805
+ * @param {Array<QuerySuggestionsServiceQuerySuggestionRecord>} querySuggestionsServiceQuerySuggestionRecord Array of suggestions to filter
26667
26806
  * @param {*} [options] Override http request option.
26668
26807
  * @throws {RequiredError}
26669
26808
  * @memberof QuerySuggestionsManagementApi
26670
26809
  */
26671
- adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options) {
26672
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, analyticsQuerySuggestionRecord, options).then((request) => request(this.axios, this.basePath));
26810
+ adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, querySuggestionsServiceQuerySuggestionRecord, options) {
26811
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDApplyFiltersPost(xStoreID, querySuggestionsServiceQuerySuggestionRecord, options).then((request) => request(this.axios, this.basePath));
26673
26812
  }
26674
26813
  /**
26675
26814
  * Delete a banned expression
@@ -26688,13 +26827,13 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26688
26827
  * @summary Update Banned Expression
26689
26828
  * @param {string} xStoreID Store ID
26690
26829
  * @param {string} expressionID Banned Expression ID
26691
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Updated banned expression
26830
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Updated banned expression
26692
26831
  * @param {*} [options] Override http request option.
26693
26832
  * @throws {RequiredError}
26694
26833
  * @memberof QuerySuggestionsManagementApi
26695
26834
  */
26696
- adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options) {
26697
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, analyticsBannedExpression, options).then((request) => request(this.axios, this.basePath));
26835
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, querySuggestionsServiceBannedExpression, options) {
26836
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsExpressionIDPut(xStoreID, expressionID, querySuggestionsServiceBannedExpression, options).then((request) => request(this.axios, this.basePath));
26698
26837
  }
26699
26838
  /**
26700
26839
  * Retrieve all banned expressions for a store with their matching types
@@ -26711,25 +26850,25 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26711
26850
  * Create a new banned expression with specified matching type
26712
26851
  * @summary Create Banned Expression
26713
26852
  * @param {string} xStoreID Store ID
26714
- * @param {AnalyticsBannedExpression} analyticsBannedExpression Banned expression to create
26853
+ * @param {QuerySuggestionsServiceBannedExpression} querySuggestionsServiceBannedExpression Banned expression to create
26715
26854
  * @param {*} [options] Override http request option.
26716
26855
  * @throws {RequiredError}
26717
26856
  * @memberof QuerySuggestionsManagementApi
26718
26857
  */
26719
- adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options) {
26720
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, analyticsBannedExpression, options).then((request) => request(this.axios, this.basePath));
26858
+ adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, querySuggestionsServiceBannedExpression, options) {
26859
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDBannedExpressionsPost(xStoreID, querySuggestionsServiceBannedExpression, options).then((request) => request(this.axios, this.basePath));
26721
26860
  }
26722
26861
  /**
26723
26862
  * Perform bulk operations on multiple suggestions (enable, disable, delete, update priority)
26724
26863
  * @summary Bulk Update Suggestions
26725
26864
  * @param {string} xStoreID Store ID
26726
- * @param {AnalyticsBulkOperationRequest} analyticsBulkOperationRequest Bulk operation request
26865
+ * @param {QuerySuggestionsServiceBulkOperationRequest} querySuggestionsServiceBulkOperationRequest Bulk operation request
26727
26866
  * @param {*} [options] Override http request option.
26728
26867
  * @throws {RequiredError}
26729
26868
  * @memberof QuerySuggestionsManagementApi
26730
26869
  */
26731
- adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, analyticsBulkOperationRequest, options) {
26732
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, analyticsBulkOperationRequest, options).then((request) => request(this.axios, this.basePath));
26870
+ adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, querySuggestionsServiceBulkOperationRequest, options) {
26871
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDBulkPost(xStoreID, querySuggestionsServiceBulkOperationRequest, options).then((request) => request(this.axios, this.basePath));
26733
26872
  }
26734
26873
  /**
26735
26874
  * Retrieve auto-generated suggestions from cache for review before promoting to management table
@@ -26760,13 +26899,13 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26760
26899
  * Enable or disable auto-generated, manual, imported, and facet-based query suggestions for a store
26761
26900
  * @summary Update Query Suggestions Configuration
26762
26901
  * @param {string} xStoreID Store ID
26763
- * @param {AnalyticsUpdateSuggestionConfigRequest} analyticsUpdateSuggestionConfigRequest Configuration update request
26902
+ * @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Configuration update request
26764
26903
  * @param {*} [options] Override http request option.
26765
26904
  * @throws {RequiredError}
26766
26905
  * @memberof QuerySuggestionsManagementApi
26767
26906
  */
26768
- adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options) {
26769
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, analyticsUpdateSuggestionConfigRequest, options).then((request) => request(this.axios, this.basePath));
26907
+ adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
26908
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDConfigPut(xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(this.axios, this.basePath));
26770
26909
  }
26771
26910
  /**
26772
26911
  * Generate query suggestions with category counts and enhanced data structure
@@ -26812,37 +26951,37 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26812
26951
  * Import query suggestions from JSON data
26813
26952
  * @summary Import Query Suggestions
26814
26953
  * @param {string} xStoreID Store ID
26815
- * @param {AnalyticsImportQuerySuggestionsRequest} analyticsImportQuerySuggestionsRequest Import suggestions request
26954
+ * @param {QuerySuggestionsServiceImportQuerySuggestionsRequest} querySuggestionsServiceImportQuerySuggestionsRequest Import suggestions request
26816
26955
  * @param {*} [options] Override http request option.
26817
26956
  * @throws {RequiredError}
26818
26957
  * @memberof QuerySuggestionsManagementApi
26819
26958
  */
26820
- adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, analyticsImportQuerySuggestionsRequest, options) {
26821
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, analyticsImportQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
26959
+ adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options) {
26960
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDImportPost(xStoreID, querySuggestionsServiceImportQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
26822
26961
  }
26823
26962
  /**
26824
26963
  * Delete manually added query suggestions for a store
26825
26964
  * @summary Delete Manual Query Suggestions
26826
26965
  * @param {string} xStoreID Store ID
26827
- * @param {AnalyticsDeleteManualSuggestionsRequest} analyticsDeleteManualSuggestionsRequest Delete request
26966
+ * @param {QuerySuggestionsServiceDeleteManualSuggestionsRequest} querySuggestionsServiceDeleteManualSuggestionsRequest Delete request
26828
26967
  * @param {*} [options] Override http request option.
26829
26968
  * @throws {RequiredError}
26830
26969
  * @memberof QuerySuggestionsManagementApi
26831
26970
  */
26832
- adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, analyticsDeleteManualSuggestionsRequest, options) {
26833
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, analyticsDeleteManualSuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
26971
+ adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options) {
26972
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDManualDeleteDelete(xStoreID, querySuggestionsServiceDeleteManualSuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
26834
26973
  }
26835
26974
  /**
26836
26975
  * Add a manually created query suggestion for a store
26837
26976
  * @summary Add Manual Query Suggestion
26838
26977
  * @param {string} xStoreID Store ID
26839
- * @param {AnalyticsManualQuerySuggestionRequest} analyticsManualQuerySuggestionRequest Manual suggestion request
26978
+ * @param {QuerySuggestionsServiceManualQuerySuggestionRequest} querySuggestionsServiceManualQuerySuggestionRequest Manual suggestion request
26840
26979
  * @param {*} [options] Override http request option.
26841
26980
  * @throws {RequiredError}
26842
26981
  * @memberof QuerySuggestionsManagementApi
26843
26982
  */
26844
- adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, analyticsManualQuerySuggestionRequest, options) {
26845
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, analyticsManualQuerySuggestionRequest, options).then((request) => request(this.axios, this.basePath));
26983
+ adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options) {
26984
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDManualPost(xStoreID, querySuggestionsServiceManualQuerySuggestionRequest, options).then((request) => request(this.axios, this.basePath));
26846
26985
  }
26847
26986
  /**
26848
26987
  * Migrate existing search analytics data to the new query suggestions management system
@@ -26873,13 +27012,13 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26873
27012
  * Move selected auto-generated suggestions from cache to the management table
26874
27013
  * @summary Promote Cached Suggestions to Management Table
26875
27014
  * @param {string} xStoreID Store ID
26876
- * @param {AnalyticsPromoteSuggestionsRequest} analyticsPromoteSuggestionsRequest Promotion request
27015
+ * @param {QuerySuggestionsServicePromoteSuggestionsRequest} querySuggestionsServicePromoteSuggestionsRequest Promotion request
26877
27016
  * @param {*} [options] Override http request option.
26878
27017
  * @throws {RequiredError}
26879
27018
  * @memberof QuerySuggestionsManagementApi
26880
27019
  */
26881
- adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, analyticsPromoteSuggestionsRequest, options) {
26882
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, analyticsPromoteSuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
27020
+ adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options) {
27021
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDPromotePost(xStoreID, querySuggestionsServicePromoteSuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
26883
27022
  }
26884
27023
  /**
26885
27024
  * Refresh auto-generated suggestions from search analytics data
@@ -26945,13 +27084,13 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26945
27084
  * @summary Update Query Suggestion by ID
26946
27085
  * @param {string} xStoreID Store ID
26947
27086
  * @param {string} suggestionID Suggestion ID
26948
- * @param {AnalyticsUpdateSuggestionRequest} analyticsUpdateSuggestionRequest Update request
27087
+ * @param {QuerySuggestionsServiceUpdateSuggestionRequest} querySuggestionsServiceUpdateSuggestionRequest Update request
26949
27088
  * @param {*} [options] Override http request option.
26950
27089
  * @throws {RequiredError}
26951
27090
  * @memberof QuerySuggestionsManagementApi
26952
27091
  */
26953
- adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options) {
26954
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, analyticsUpdateSuggestionRequest, options).then((request) => request(this.axios, this.basePath));
27092
+ adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options) {
27093
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDSuggestionIDPut(xStoreID, suggestionID, querySuggestionsServiceUpdateSuggestionRequest, options).then((request) => request(this.axios, this.basePath));
26955
27094
  }
26956
27095
  /**
26957
27096
  * Update the status (enabled/disabled) of a query suggestion
@@ -26981,13 +27120,13 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
26981
27120
  * Enable or disable query suggestions for a specific store
26982
27121
  * @summary Toggle Query Suggestions for Store
26983
27122
  * @param {string} xStoreID Store ID
26984
- * @param {AnalyticsToggleQuerySuggestionsRequest} analyticsToggleQuerySuggestionsRequest Toggle request
27123
+ * @param {QuerySuggestionsServiceToggleQuerySuggestionsRequest} querySuggestionsServiceToggleQuerySuggestionsRequest Toggle request
26985
27124
  * @param {*} [options] Override http request option.
26986
27125
  * @throws {RequiredError}
26987
27126
  * @memberof QuerySuggestionsManagementApi
26988
27127
  */
26989
- adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options) {
26990
- return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, analyticsToggleQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
27128
+ adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options) {
27129
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDTogglePost(xStoreID, querySuggestionsServiceToggleQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
26991
27130
  }
26992
27131
  /**
26993
27132
  * Retrieve query suggestions directly from Typesense collection for admin dashboard testing/viewing
@@ -27003,6 +27142,17 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
27003
27142
  adminV1QuerySuggestionsXStoreIDTypesenseGet(xStoreID, query, hitsPerPage, page, options) {
27004
27143
  return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDTypesenseGet(xStoreID, query, hitsPerPage, page, options).then((request) => request(this.axios, this.basePath));
27005
27144
  }
27145
+ /**
27146
+ * Manually trigger schema update to enable infix search for the query field
27147
+ * @summary Update Query Suggestions Collection Schema
27148
+ * @param {string} xStoreID Store ID
27149
+ * @param {*} [options] Override http request option.
27150
+ * @throws {RequiredError}
27151
+ * @memberof QuerySuggestionsManagementApi
27152
+ */
27153
+ adminV1QuerySuggestionsXStoreIDUpdateSchemaPost(xStoreID, options) {
27154
+ return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDUpdateSchemaPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
27155
+ }
27006
27156
  }
27007
27157
  /**
27008
27158
  * RefundManagementApi - axios parameter creator
@@ -29178,6 +29328,37 @@ export const RolesApiAxiosParamCreator = function (configuration) {
29178
29328
  options: localVarRequestOptions,
29179
29329
  };
29180
29330
  }),
29331
+ /**
29332
+ * Backfills missing store permissions for a role across all stores in the organization
29333
+ * @summary Backfill missing store permissions for a role
29334
+ * @param {number} roleId Role ID
29335
+ * @param {*} [options] Override http request option.
29336
+ * @throws {RequiredError}
29337
+ */
29338
+ adminRolesRoleIdPermissionsBackfillPost: (roleId_1, ...args_1) => __awaiter(this, [roleId_1, ...args_1], void 0, function* (roleId, options = {}) {
29339
+ // verify required parameter 'roleId' is not null or undefined
29340
+ assertParamExists('adminRolesRoleIdPermissionsBackfillPost', 'roleId', roleId);
29341
+ const localVarPath = `/admin/roles/{roleId}/permissions/backfill`
29342
+ .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
29343
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29344
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29345
+ let baseOptions;
29346
+ if (configuration) {
29347
+ baseOptions = configuration.baseOptions;
29348
+ }
29349
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29350
+ const localVarHeaderParameter = {};
29351
+ const localVarQueryParameter = {};
29352
+ // authentication BearerAuth required
29353
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29356
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29357
+ return {
29358
+ url: toPathString(localVarUrlObj),
29359
+ options: localVarRequestOptions,
29360
+ };
29361
+ }),
29181
29362
  /**
29182
29363
  * Retrieves role permissions separated by org-level and store-level menus/routes
29183
29364
  * @summary Get role permissions with org-level and store-level separation
@@ -29334,6 +29515,22 @@ export const RolesApiFp = function (configuration) {
29334
29515
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29335
29516
  });
29336
29517
  },
29518
+ /**
29519
+ * Backfills missing store permissions for a role across all stores in the organization
29520
+ * @summary Backfill missing store permissions for a role
29521
+ * @param {number} roleId Role ID
29522
+ * @param {*} [options] Override http request option.
29523
+ * @throws {RequiredError}
29524
+ */
29525
+ adminRolesRoleIdPermissionsBackfillPost(roleId, options) {
29526
+ return __awaiter(this, void 0, void 0, function* () {
29527
+ var _a, _b, _c;
29528
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesRoleIdPermissionsBackfillPost(roleId, options);
29529
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29530
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesRoleIdPermissionsBackfillPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29531
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29532
+ });
29533
+ },
29337
29534
  /**
29338
29535
  * Retrieves role permissions separated by org-level and store-level menus/routes
29339
29536
  * @summary Get role permissions with org-level and store-level separation
@@ -29426,6 +29623,16 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
29426
29623
  adminRolesRoleIdGet(roleId, options) {
29427
29624
  return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
29428
29625
  },
29626
+ /**
29627
+ * Backfills missing store permissions for a role across all stores in the organization
29628
+ * @summary Backfill missing store permissions for a role
29629
+ * @param {number} roleId Role ID
29630
+ * @param {*} [options] Override http request option.
29631
+ * @throws {RequiredError}
29632
+ */
29633
+ adminRolesRoleIdPermissionsBackfillPost(roleId, options) {
29634
+ return localVarFp.adminRolesRoleIdPermissionsBackfillPost(roleId, options).then((request) => request(axios, basePath));
29635
+ },
29429
29636
  /**
29430
29637
  * Retrieves role permissions separated by org-level and store-level menus/routes
29431
29638
  * @summary Get role permissions with org-level and store-level separation
@@ -29511,6 +29718,17 @@ export class RolesApi extends BaseAPI {
29511
29718
  adminRolesRoleIdGet(roleId, options) {
29512
29719
  return RolesApiFp(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
29513
29720
  }
29721
+ /**
29722
+ * Backfills missing store permissions for a role across all stores in the organization
29723
+ * @summary Backfill missing store permissions for a role
29724
+ * @param {number} roleId Role ID
29725
+ * @param {*} [options] Override http request option.
29726
+ * @throws {RequiredError}
29727
+ * @memberof RolesApi
29728
+ */
29729
+ adminRolesRoleIdPermissionsBackfillPost(roleId, options) {
29730
+ return RolesApiFp(this.configuration).adminRolesRoleIdPermissionsBackfillPost(roleId, options).then((request) => request(this.axios, this.basePath));
29731
+ }
29514
29732
  /**
29515
29733
  * Retrieves role permissions separated by org-level and store-level menus/routes
29516
29734
  * @summary Get role permissions with org-level and store-level separation