@seekora-ai/admin-api 1.1.66 → 1.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -13
- package/api.ts +1771 -1321
- package/dist/api.d.ts +987 -703
- package/dist/api.js +606 -315
- package/dist/esm/api.d.ts +987 -703
- package/dist/esm/api.js +600 -305
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.68.tgz +0 -0
- package/seekora-ai-admin-api-1.1.66.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -2745,7 +2745,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
2745
2745
|
* @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
|
|
2746
2746
|
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
2747
2747
|
* @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
2748
|
-
* @param {boolean} [compareMode] Enable comparison mode
|
|
2748
|
+
* @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
|
|
2749
2749
|
* @param {*} [options] Override http request option.
|
|
2750
2750
|
* @throws {RequiredError}
|
|
2751
2751
|
*/
|
|
@@ -4327,6 +4327,175 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
4327
4327
|
options: localVarRequestOptions,
|
|
4328
4328
|
};
|
|
4329
4329
|
}),
|
|
4330
|
+
/**
|
|
4331
|
+
* Retrieve most popular queries used for getting suggestions, ordered by request count
|
|
4332
|
+
* @summary Get Popular Suggestion Queries
|
|
4333
|
+
* @param {string} xStoreID Store ID
|
|
4334
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
4335
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
4336
|
+
* @param {number} [limit] Number of results to return
|
|
4337
|
+
* @param {*} [options] Override http request option.
|
|
4338
|
+
* @throws {RequiredError}
|
|
4339
|
+
*/
|
|
4340
|
+
adminAnalyticsStoreXStoreIDSuggestionsPopularGet: (xStoreID_1, startTime_1, endTime_1, limit_1, ...args_1) => __awaiter(this, [xStoreID_1, startTime_1, endTime_1, limit_1, ...args_1], void 0, function* (xStoreID, startTime, endTime, limit, options = {}) {
|
|
4341
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
4342
|
+
assertParamExists('adminAnalyticsStoreXStoreIDSuggestionsPopularGet', 'xStoreID', xStoreID);
|
|
4343
|
+
const localVarPath = `/admin/analytics/store/{xStoreID}/suggestions/popular`
|
|
4344
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
4345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4346
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4347
|
+
let baseOptions;
|
|
4348
|
+
if (configuration) {
|
|
4349
|
+
baseOptions = configuration.baseOptions;
|
|
4350
|
+
}
|
|
4351
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4352
|
+
const localVarHeaderParameter = {};
|
|
4353
|
+
const localVarQueryParameter = {};
|
|
4354
|
+
// authentication BearerAuth required
|
|
4355
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
4356
|
+
if (startTime !== undefined) {
|
|
4357
|
+
localVarQueryParameter['start_time'] = startTime;
|
|
4358
|
+
}
|
|
4359
|
+
if (endTime !== undefined) {
|
|
4360
|
+
localVarQueryParameter['end_time'] = endTime;
|
|
4361
|
+
}
|
|
4362
|
+
if (limit !== undefined) {
|
|
4363
|
+
localVarQueryParameter['limit'] = limit;
|
|
4364
|
+
}
|
|
4365
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4366
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4367
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4368
|
+
return {
|
|
4369
|
+
url: toPathString(localVarUrlObj),
|
|
4370
|
+
options: localVarRequestOptions,
|
|
4371
|
+
};
|
|
4372
|
+
}),
|
|
4373
|
+
/**
|
|
4374
|
+
* Retrieve analytics for query suggestions including request counts, suggestions returned, processing time, and usage metrics. Supports filtering by query, analytics tags, and time range.
|
|
4375
|
+
* @summary Get Query Suggestions Analytics
|
|
4376
|
+
* @param {string} xStoreID Store ID
|
|
4377
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
4378
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
4379
|
+
* @param {string} [search] Search term to filter queries (case-insensitive partial match)
|
|
4380
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
4381
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
4382
|
+
* @param {string} [tagsExclude] Comma-separated analytics tags to exclude
|
|
4383
|
+
* @param {number} [page] Page number for pagination
|
|
4384
|
+
* @param {number} [pageSize] Number of results per page
|
|
4385
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum} [sortBy] Field to sort by
|
|
4386
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum} [sortOrder] Sort direction
|
|
4387
|
+
* @param {*} [options] Override http request option.
|
|
4388
|
+
* @throws {RequiredError}
|
|
4389
|
+
*/
|
|
4390
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueriesGet: (xStoreID_1, startTime_1, endTime_1, search_1, analyticsTags_1, tagsMatchMode_1, tagsExclude_1, page_1, pageSize_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [xStoreID_1, startTime_1, endTime_1, search_1, analyticsTags_1, tagsMatchMode_1, tagsExclude_1, page_1, pageSize_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options = {}) {
|
|
4391
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
4392
|
+
assertParamExists('adminAnalyticsStoreXStoreIDSuggestionsQueriesGet', 'xStoreID', xStoreID);
|
|
4393
|
+
const localVarPath = `/admin/analytics/store/{xStoreID}/suggestions/queries`
|
|
4394
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
4395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4397
|
+
let baseOptions;
|
|
4398
|
+
if (configuration) {
|
|
4399
|
+
baseOptions = configuration.baseOptions;
|
|
4400
|
+
}
|
|
4401
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4402
|
+
const localVarHeaderParameter = {};
|
|
4403
|
+
const localVarQueryParameter = {};
|
|
4404
|
+
// authentication BearerAuth required
|
|
4405
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
4406
|
+
if (startTime !== undefined) {
|
|
4407
|
+
localVarQueryParameter['start_time'] = startTime;
|
|
4408
|
+
}
|
|
4409
|
+
if (endTime !== undefined) {
|
|
4410
|
+
localVarQueryParameter['end_time'] = endTime;
|
|
4411
|
+
}
|
|
4412
|
+
if (search !== undefined) {
|
|
4413
|
+
localVarQueryParameter['search'] = search;
|
|
4414
|
+
}
|
|
4415
|
+
if (analyticsTags !== undefined) {
|
|
4416
|
+
localVarQueryParameter['analytics_tags'] = analyticsTags;
|
|
4417
|
+
}
|
|
4418
|
+
if (tagsMatchMode !== undefined) {
|
|
4419
|
+
localVarQueryParameter['tags_match_mode'] = tagsMatchMode;
|
|
4420
|
+
}
|
|
4421
|
+
if (tagsExclude !== undefined) {
|
|
4422
|
+
localVarQueryParameter['tags_exclude'] = tagsExclude;
|
|
4423
|
+
}
|
|
4424
|
+
if (page !== undefined) {
|
|
4425
|
+
localVarQueryParameter['page'] = page;
|
|
4426
|
+
}
|
|
4427
|
+
if (pageSize !== undefined) {
|
|
4428
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
4429
|
+
}
|
|
4430
|
+
if (sortBy !== undefined) {
|
|
4431
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
4432
|
+
}
|
|
4433
|
+
if (sortOrder !== undefined) {
|
|
4434
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
4435
|
+
}
|
|
4436
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4438
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4439
|
+
return {
|
|
4440
|
+
url: toPathString(localVarUrlObj),
|
|
4441
|
+
options: localVarRequestOptions,
|
|
4442
|
+
};
|
|
4443
|
+
}),
|
|
4444
|
+
/**
|
|
4445
|
+
* Retrieve comprehensive insights for a specific query suggestion including metrics, performance data, and optional time series
|
|
4446
|
+
* @summary Get Query Suggestions Insights
|
|
4447
|
+
* @param {string} xStoreID Store ID
|
|
4448
|
+
* @param {string} query Query suggestion to analyze
|
|
4449
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
4450
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
4451
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum} [granularity] Time granularity for time series
|
|
4452
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
4453
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
4454
|
+
* @param {*} [options] Override http request option.
|
|
4455
|
+
* @throws {RequiredError}
|
|
4456
|
+
*/
|
|
4457
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet: (xStoreID_1, query_1, startTime_1, endTime_1, granularity_1, analyticsTags_1, tagsMatchMode_1, ...args_1) => __awaiter(this, [xStoreID_1, query_1, startTime_1, endTime_1, granularity_1, analyticsTags_1, tagsMatchMode_1, ...args_1], void 0, function* (xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options = {}) {
|
|
4458
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
4459
|
+
assertParamExists('adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet', 'xStoreID', xStoreID);
|
|
4460
|
+
// verify required parameter 'query' is not null or undefined
|
|
4461
|
+
assertParamExists('adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet', 'query', query);
|
|
4462
|
+
const localVarPath = `/admin/analytics/store/{xStoreID}/suggestions/{query}/insights`
|
|
4463
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
4464
|
+
.replace(`{${"query"}}`, encodeURIComponent(String(query)));
|
|
4465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4466
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4467
|
+
let baseOptions;
|
|
4468
|
+
if (configuration) {
|
|
4469
|
+
baseOptions = configuration.baseOptions;
|
|
4470
|
+
}
|
|
4471
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4472
|
+
const localVarHeaderParameter = {};
|
|
4473
|
+
const localVarQueryParameter = {};
|
|
4474
|
+
// authentication BearerAuth required
|
|
4475
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
4476
|
+
if (startTime !== undefined) {
|
|
4477
|
+
localVarQueryParameter['start_time'] = startTime;
|
|
4478
|
+
}
|
|
4479
|
+
if (endTime !== undefined) {
|
|
4480
|
+
localVarQueryParameter['end_time'] = endTime;
|
|
4481
|
+
}
|
|
4482
|
+
if (granularity !== undefined) {
|
|
4483
|
+
localVarQueryParameter['granularity'] = granularity;
|
|
4484
|
+
}
|
|
4485
|
+
if (analyticsTags !== undefined) {
|
|
4486
|
+
localVarQueryParameter['analytics_tags'] = analyticsTags;
|
|
4487
|
+
}
|
|
4488
|
+
if (tagsMatchMode !== undefined) {
|
|
4489
|
+
localVarQueryParameter['tags_match_mode'] = tagsMatchMode;
|
|
4490
|
+
}
|
|
4491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4493
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4494
|
+
return {
|
|
4495
|
+
url: toPathString(localVarUrlObj),
|
|
4496
|
+
options: localVarRequestOptions,
|
|
4497
|
+
};
|
|
4498
|
+
}),
|
|
4330
4499
|
/**
|
|
4331
4500
|
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
4332
4501
|
* @summary Get Analytics Tags
|
|
@@ -4645,7 +4814,7 @@ export const AnalyticsApiFp = function (configuration) {
|
|
|
4645
4814
|
* @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
|
|
4646
4815
|
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
4647
4816
|
* @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
4648
|
-
* @param {boolean} [compareMode] Enable comparison mode
|
|
4817
|
+
* @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
|
|
4649
4818
|
* @param {*} [options] Override http request option.
|
|
4650
4819
|
* @throws {RequiredError}
|
|
4651
4820
|
*/
|
|
@@ -5191,6 +5360,73 @@ export const AnalyticsApiFp = function (configuration) {
|
|
|
5191
5360
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5192
5361
|
});
|
|
5193
5362
|
},
|
|
5363
|
+
/**
|
|
5364
|
+
* Retrieve most popular queries used for getting suggestions, ordered by request count
|
|
5365
|
+
* @summary Get Popular Suggestion Queries
|
|
5366
|
+
* @param {string} xStoreID Store ID
|
|
5367
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
5368
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
5369
|
+
* @param {number} [limit] Number of results to return
|
|
5370
|
+
* @param {*} [options] Override http request option.
|
|
5371
|
+
* @throws {RequiredError}
|
|
5372
|
+
*/
|
|
5373
|
+
adminAnalyticsStoreXStoreIDSuggestionsPopularGet(xStoreID, startTime, endTime, limit, options) {
|
|
5374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5375
|
+
var _a, _b, _c;
|
|
5376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDSuggestionsPopularGet(xStoreID, startTime, endTime, limit, options);
|
|
5377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5378
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsApi.adminAnalyticsStoreXStoreIDSuggestionsPopularGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5380
|
+
});
|
|
5381
|
+
},
|
|
5382
|
+
/**
|
|
5383
|
+
* Retrieve analytics for query suggestions including request counts, suggestions returned, processing time, and usage metrics. Supports filtering by query, analytics tags, and time range.
|
|
5384
|
+
* @summary Get Query Suggestions Analytics
|
|
5385
|
+
* @param {string} xStoreID Store ID
|
|
5386
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
5387
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
5388
|
+
* @param {string} [search] Search term to filter queries (case-insensitive partial match)
|
|
5389
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
5390
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
5391
|
+
* @param {string} [tagsExclude] Comma-separated analytics tags to exclude
|
|
5392
|
+
* @param {number} [page] Page number for pagination
|
|
5393
|
+
* @param {number} [pageSize] Number of results per page
|
|
5394
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum} [sortBy] Field to sort by
|
|
5395
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum} [sortOrder] Sort direction
|
|
5396
|
+
* @param {*} [options] Override http request option.
|
|
5397
|
+
* @throws {RequiredError}
|
|
5398
|
+
*/
|
|
5399
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueriesGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options) {
|
|
5400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5401
|
+
var _a, _b, _c;
|
|
5402
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDSuggestionsQueriesGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options);
|
|
5403
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5404
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsApi.adminAnalyticsStoreXStoreIDSuggestionsQueriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5405
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5406
|
+
});
|
|
5407
|
+
},
|
|
5408
|
+
/**
|
|
5409
|
+
* Retrieve comprehensive insights for a specific query suggestion including metrics, performance data, and optional time series
|
|
5410
|
+
* @summary Get Query Suggestions Insights
|
|
5411
|
+
* @param {string} xStoreID Store ID
|
|
5412
|
+
* @param {string} query Query suggestion to analyze
|
|
5413
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
5414
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
5415
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum} [granularity] Time granularity for time series
|
|
5416
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
5417
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
5418
|
+
* @param {*} [options] Override http request option.
|
|
5419
|
+
* @throws {RequiredError}
|
|
5420
|
+
*/
|
|
5421
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet(xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options) {
|
|
5422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5423
|
+
var _a, _b, _c;
|
|
5424
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet(xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options);
|
|
5425
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5426
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsApi.adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5427
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5428
|
+
});
|
|
5429
|
+
},
|
|
5194
5430
|
/**
|
|
5195
5431
|
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
5196
5432
|
* @summary Get Analytics Tags
|
|
@@ -5333,7 +5569,7 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
5333
5569
|
* @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
|
|
5334
5570
|
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
5335
5571
|
* @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
5336
|
-
* @param {boolean} [compareMode] Enable comparison mode
|
|
5572
|
+
* @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
|
|
5337
5573
|
* @param {*} [options] Override http request option.
|
|
5338
5574
|
* @throws {RequiredError}
|
|
5339
5575
|
*/
|
|
@@ -5765,6 +6001,55 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
5765
6001
|
adminAnalyticsStoreXStoreIDResultsGet(xStoreID, startTime, endTime, search, itemIds, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, minImpressions, sortBy, sortOrder, sort, includeDocuments, includeWidget, limit, offset, page, pageSize, options) {
|
|
5766
6002
|
return localVarFp.adminAnalyticsStoreXStoreIDResultsGet(xStoreID, startTime, endTime, search, itemIds, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, minImpressions, sortBy, sortOrder, sort, includeDocuments, includeWidget, limit, offset, page, pageSize, options).then((request) => request(axios, basePath));
|
|
5767
6003
|
},
|
|
6004
|
+
/**
|
|
6005
|
+
* Retrieve most popular queries used for getting suggestions, ordered by request count
|
|
6006
|
+
* @summary Get Popular Suggestion Queries
|
|
6007
|
+
* @param {string} xStoreID Store ID
|
|
6008
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
6009
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
6010
|
+
* @param {number} [limit] Number of results to return
|
|
6011
|
+
* @param {*} [options] Override http request option.
|
|
6012
|
+
* @throws {RequiredError}
|
|
6013
|
+
*/
|
|
6014
|
+
adminAnalyticsStoreXStoreIDSuggestionsPopularGet(xStoreID, startTime, endTime, limit, options) {
|
|
6015
|
+
return localVarFp.adminAnalyticsStoreXStoreIDSuggestionsPopularGet(xStoreID, startTime, endTime, limit, options).then((request) => request(axios, basePath));
|
|
6016
|
+
},
|
|
6017
|
+
/**
|
|
6018
|
+
* Retrieve analytics for query suggestions including request counts, suggestions returned, processing time, and usage metrics. Supports filtering by query, analytics tags, and time range.
|
|
6019
|
+
* @summary Get Query Suggestions Analytics
|
|
6020
|
+
* @param {string} xStoreID Store ID
|
|
6021
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
6022
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
6023
|
+
* @param {string} [search] Search term to filter queries (case-insensitive partial match)
|
|
6024
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
6025
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
6026
|
+
* @param {string} [tagsExclude] Comma-separated analytics tags to exclude
|
|
6027
|
+
* @param {number} [page] Page number for pagination
|
|
6028
|
+
* @param {number} [pageSize] Number of results per page
|
|
6029
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum} [sortBy] Field to sort by
|
|
6030
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum} [sortOrder] Sort direction
|
|
6031
|
+
* @param {*} [options] Override http request option.
|
|
6032
|
+
* @throws {RequiredError}
|
|
6033
|
+
*/
|
|
6034
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueriesGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options) {
|
|
6035
|
+
return localVarFp.adminAnalyticsStoreXStoreIDSuggestionsQueriesGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
6036
|
+
},
|
|
6037
|
+
/**
|
|
6038
|
+
* Retrieve comprehensive insights for a specific query suggestion including metrics, performance data, and optional time series
|
|
6039
|
+
* @summary Get Query Suggestions Insights
|
|
6040
|
+
* @param {string} xStoreID Store ID
|
|
6041
|
+
* @param {string} query Query suggestion to analyze
|
|
6042
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
6043
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
6044
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum} [granularity] Time granularity for time series
|
|
6045
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
6046
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
6047
|
+
* @param {*} [options] Override http request option.
|
|
6048
|
+
* @throws {RequiredError}
|
|
6049
|
+
*/
|
|
6050
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet(xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options) {
|
|
6051
|
+
return localVarFp.adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet(xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options).then((request) => request(axios, basePath));
|
|
6052
|
+
},
|
|
5768
6053
|
/**
|
|
5769
6054
|
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
5770
6055
|
* @summary Get Analytics Tags
|
|
@@ -5878,7 +6163,7 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
5878
6163
|
* @param {AdminAnalyticsOrgKpiGetGranularityEnum} [granularity] Time granularity
|
|
5879
6164
|
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
5880
6165
|
* @param {AdminAnalyticsOrgKpiGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
5881
|
-
* @param {boolean} [compareMode] Enable comparison mode
|
|
6166
|
+
* @param {boolean} [compareMode] Enable comparison mode (default: true, compares with previous week)
|
|
5882
6167
|
* @param {*} [options] Override http request option.
|
|
5883
6168
|
* @throws {RequiredError}
|
|
5884
6169
|
* @memberof AnalyticsApi
|
|
@@ -6329,6 +6614,58 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
6329
6614
|
adminAnalyticsStoreXStoreIDResultsGet(xStoreID, startTime, endTime, search, itemIds, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, minImpressions, sortBy, sortOrder, sort, includeDocuments, includeWidget, limit, offset, page, pageSize, options) {
|
|
6330
6615
|
return AnalyticsApiFp(this.configuration).adminAnalyticsStoreXStoreIDResultsGet(xStoreID, startTime, endTime, search, itemIds, analyticsTags, tagsMatchMode, tagsExclude, tagKeyFilter, tagValueFilter, compareMode, compareStartTime, compareEndTime, compareAnalyticsTags, compareTagsMatchMode, compareTagsExclude, compareTagKeyFilter, compareTagValueFilter, minImpressions, sortBy, sortOrder, sort, includeDocuments, includeWidget, limit, offset, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
6331
6616
|
}
|
|
6617
|
+
/**
|
|
6618
|
+
* Retrieve most popular queries used for getting suggestions, ordered by request count
|
|
6619
|
+
* @summary Get Popular Suggestion Queries
|
|
6620
|
+
* @param {string} xStoreID Store ID
|
|
6621
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
6622
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
6623
|
+
* @param {number} [limit] Number of results to return
|
|
6624
|
+
* @param {*} [options] Override http request option.
|
|
6625
|
+
* @throws {RequiredError}
|
|
6626
|
+
* @memberof AnalyticsApi
|
|
6627
|
+
*/
|
|
6628
|
+
adminAnalyticsStoreXStoreIDSuggestionsPopularGet(xStoreID, startTime, endTime, limit, options) {
|
|
6629
|
+
return AnalyticsApiFp(this.configuration).adminAnalyticsStoreXStoreIDSuggestionsPopularGet(xStoreID, startTime, endTime, limit, options).then((request) => request(this.axios, this.basePath));
|
|
6630
|
+
}
|
|
6631
|
+
/**
|
|
6632
|
+
* Retrieve analytics for query suggestions including request counts, suggestions returned, processing time, and usage metrics. Supports filtering by query, analytics tags, and time range.
|
|
6633
|
+
* @summary Get Query Suggestions Analytics
|
|
6634
|
+
* @param {string} xStoreID Store ID
|
|
6635
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
6636
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
6637
|
+
* @param {string} [search] Search term to filter queries (case-insensitive partial match)
|
|
6638
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
6639
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
6640
|
+
* @param {string} [tagsExclude] Comma-separated analytics tags to exclude
|
|
6641
|
+
* @param {number} [page] Page number for pagination
|
|
6642
|
+
* @param {number} [pageSize] Number of results per page
|
|
6643
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum} [sortBy] Field to sort by
|
|
6644
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum} [sortOrder] Sort direction
|
|
6645
|
+
* @param {*} [options] Override http request option.
|
|
6646
|
+
* @throws {RequiredError}
|
|
6647
|
+
* @memberof AnalyticsApi
|
|
6648
|
+
*/
|
|
6649
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueriesGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options) {
|
|
6650
|
+
return AnalyticsApiFp(this.configuration).adminAnalyticsStoreXStoreIDSuggestionsQueriesGet(xStoreID, startTime, endTime, search, analyticsTags, tagsMatchMode, tagsExclude, page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
6651
|
+
}
|
|
6652
|
+
/**
|
|
6653
|
+
* Retrieve comprehensive insights for a specific query suggestion including metrics, performance data, and optional time series
|
|
6654
|
+
* @summary Get Query Suggestions Insights
|
|
6655
|
+
* @param {string} xStoreID Store ID
|
|
6656
|
+
* @param {string} query Query suggestion to analyze
|
|
6657
|
+
* @param {string} [startTime] Start time in RFC3339 format
|
|
6658
|
+
* @param {string} [endTime] End time in RFC3339 format
|
|
6659
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum} [granularity] Time granularity for time series
|
|
6660
|
+
* @param {string} [analyticsTags] Comma-separated analytics tags to filter
|
|
6661
|
+
* @param {AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum} [tagsMatchMode] How to match multiple analytics tags
|
|
6662
|
+
* @param {*} [options] Override http request option.
|
|
6663
|
+
* @throws {RequiredError}
|
|
6664
|
+
* @memberof AnalyticsApi
|
|
6665
|
+
*/
|
|
6666
|
+
adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet(xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options) {
|
|
6667
|
+
return AnalyticsApiFp(this.configuration).adminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGet(xStoreID, query, startTime, endTime, granularity, analyticsTags, tagsMatchMode, options).then((request) => request(this.axios, this.basePath));
|
|
6668
|
+
}
|
|
6332
6669
|
/**
|
|
6333
6670
|
* Retrieve analytics tags usage data and filtering capabilities. If no start_time/end_time is specified, returns all tags from the last 2 years.
|
|
6334
6671
|
* @summary Get Analytics Tags
|
|
@@ -6755,6 +7092,47 @@ export const AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = {
|
|
|
6755
7092
|
Asc: 'asc',
|
|
6756
7093
|
Desc: 'desc'
|
|
6757
7094
|
};
|
|
7095
|
+
/**
|
|
7096
|
+
* @export
|
|
7097
|
+
*/
|
|
7098
|
+
export const AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum = {
|
|
7099
|
+
Any: 'any',
|
|
7100
|
+
All: 'all'
|
|
7101
|
+
};
|
|
7102
|
+
/**
|
|
7103
|
+
* @export
|
|
7104
|
+
*/
|
|
7105
|
+
export const AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum = {
|
|
7106
|
+
Requests: 'requests',
|
|
7107
|
+
TotalSuggestionsReturned: 'total_suggestions_returned',
|
|
7108
|
+
AvgSuggestionsPerRequest: 'avg_suggestions_per_request',
|
|
7109
|
+
AvgProcessingTimeMs: 'avg_processing_time_ms',
|
|
7110
|
+
UniqueUsers: 'unique_users'
|
|
7111
|
+
};
|
|
7112
|
+
/**
|
|
7113
|
+
* @export
|
|
7114
|
+
*/
|
|
7115
|
+
export const AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum = {
|
|
7116
|
+
Asc: 'asc',
|
|
7117
|
+
Desc: 'desc'
|
|
7118
|
+
};
|
|
7119
|
+
/**
|
|
7120
|
+
* @export
|
|
7121
|
+
*/
|
|
7122
|
+
export const AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum = {
|
|
7123
|
+
Minute: 'minute',
|
|
7124
|
+
_5minute: '5minute',
|
|
7125
|
+
_15minute: '15minute',
|
|
7126
|
+
Hour: 'hour',
|
|
7127
|
+
Day: 'day'
|
|
7128
|
+
};
|
|
7129
|
+
/**
|
|
7130
|
+
* @export
|
|
7131
|
+
*/
|
|
7132
|
+
export const AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum = {
|
|
7133
|
+
Any: 'any',
|
|
7134
|
+
All: 'all'
|
|
7135
|
+
};
|
|
6758
7136
|
/**
|
|
6759
7137
|
* @export
|
|
6760
7138
|
*/
|
|
@@ -15955,307 +16333,6 @@ export class DocumentsApi extends BaseAPI {
|
|
|
15955
16333
|
return DocumentsApiFp(this.configuration).adminStoresXStoreIDUploadPost(xStoreID, file, options).then((request) => request(this.axios, this.basePath));
|
|
15956
16334
|
}
|
|
15957
16335
|
}
|
|
15958
|
-
/**
|
|
15959
|
-
* DropdownRecommendationsApi - axios parameter creator
|
|
15960
|
-
* @export
|
|
15961
|
-
*/
|
|
15962
|
-
export const DropdownRecommendationsApiAxiosParamCreator = function (configuration) {
|
|
15963
|
-
return {
|
|
15964
|
-
/**
|
|
15965
|
-
* Retrieve configuration settings for dropdown recommendations
|
|
15966
|
-
* @summary Get Dropdown Recommendations Configuration
|
|
15967
|
-
* @param {string} xStoreid Store ID
|
|
15968
|
-
* @param {string} xStoresecret Store Secret
|
|
15969
|
-
* @param {*} [options] Override http request option.
|
|
15970
|
-
* @throws {RequiredError}
|
|
15971
|
-
*/
|
|
15972
|
-
v1DropdownRecommendationsConfigGet: (xStoreid_1, xStoresecret_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, ...args_1], void 0, function* (xStoreid, xStoresecret, options = {}) {
|
|
15973
|
-
// verify required parameter 'xStoreid' is not null or undefined
|
|
15974
|
-
assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoreid', xStoreid);
|
|
15975
|
-
// verify required parameter 'xStoresecret' is not null or undefined
|
|
15976
|
-
assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoresecret', xStoresecret);
|
|
15977
|
-
const localVarPath = `/v1/dropdown-recommendations/config`;
|
|
15978
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15979
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15980
|
-
let baseOptions;
|
|
15981
|
-
if (configuration) {
|
|
15982
|
-
baseOptions = configuration.baseOptions;
|
|
15983
|
-
}
|
|
15984
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15985
|
-
const localVarHeaderParameter = {};
|
|
15986
|
-
const localVarQueryParameter = {};
|
|
15987
|
-
if (xStoreid != null) {
|
|
15988
|
-
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
15989
|
-
}
|
|
15990
|
-
if (xStoresecret != null) {
|
|
15991
|
-
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
15992
|
-
}
|
|
15993
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15994
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15995
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15996
|
-
return {
|
|
15997
|
-
url: toPathString(localVarUrlObj),
|
|
15998
|
-
options: localVarRequestOptions,
|
|
15999
|
-
};
|
|
16000
|
-
}),
|
|
16001
|
-
/**
|
|
16002
|
-
* Update configuration settings for dropdown recommendations
|
|
16003
|
-
* @summary Update Dropdown Recommendations Configuration
|
|
16004
|
-
* @param {string} xStoreid Store ID
|
|
16005
|
-
* @param {string} xStoresecret Store Secret
|
|
16006
|
-
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
16007
|
-
* @param {*} [options] Override http request option.
|
|
16008
|
-
* @throws {RequiredError}
|
|
16009
|
-
*/
|
|
16010
|
-
v1DropdownRecommendationsConfigPut: (xStoreid_1, xStoresecret_1, dropdownRecommendationsServiceUpdateDropdownConfigRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dropdownRecommendationsServiceUpdateDropdownConfigRequest_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options = {}) {
|
|
16011
|
-
// verify required parameter 'xStoreid' is not null or undefined
|
|
16012
|
-
assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoreid', xStoreid);
|
|
16013
|
-
// verify required parameter 'xStoresecret' is not null or undefined
|
|
16014
|
-
assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoresecret', xStoresecret);
|
|
16015
|
-
// verify required parameter 'dropdownRecommendationsServiceUpdateDropdownConfigRequest' is not null or undefined
|
|
16016
|
-
assertParamExists('v1DropdownRecommendationsConfigPut', 'dropdownRecommendationsServiceUpdateDropdownConfigRequest', dropdownRecommendationsServiceUpdateDropdownConfigRequest);
|
|
16017
|
-
const localVarPath = `/v1/dropdown-recommendations/config`;
|
|
16018
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16019
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16020
|
-
let baseOptions;
|
|
16021
|
-
if (configuration) {
|
|
16022
|
-
baseOptions = configuration.baseOptions;
|
|
16023
|
-
}
|
|
16024
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
16025
|
-
const localVarHeaderParameter = {};
|
|
16026
|
-
const localVarQueryParameter = {};
|
|
16027
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16028
|
-
if (xStoreid != null) {
|
|
16029
|
-
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
16030
|
-
}
|
|
16031
|
-
if (xStoresecret != null) {
|
|
16032
|
-
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
16033
|
-
}
|
|
16034
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16035
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16036
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16037
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dropdownRecommendationsServiceUpdateDropdownConfigRequest, localVarRequestOptions, configuration);
|
|
16038
|
-
return {
|
|
16039
|
-
url: toPathString(localVarUrlObj),
|
|
16040
|
-
options: localVarRequestOptions,
|
|
16041
|
-
};
|
|
16042
|
-
}),
|
|
16043
|
-
/**
|
|
16044
|
-
* Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
|
|
16045
|
-
* @summary Get Dropdown Recommendations
|
|
16046
|
-
* @param {string} xStoreid Store ID
|
|
16047
|
-
* @param {string} xStoresecret Store Secret
|
|
16048
|
-
* @param {string} [xUserId] User ID for personalization
|
|
16049
|
-
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
16050
|
-
* @param {string} [q] Query string for filtering suggestions (prefix match)
|
|
16051
|
-
* @param {string} [query] Alternative query parameter for filtering suggestions
|
|
16052
|
-
* @param {*} [options] Override http request option.
|
|
16053
|
-
* @throws {RequiredError}
|
|
16054
|
-
*/
|
|
16055
|
-
v1DropdownRecommendationsGet: (xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, q_1, query_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, q_1, query_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xUserId, xAnonId, q, query, options = {}) {
|
|
16056
|
-
// verify required parameter 'xStoreid' is not null or undefined
|
|
16057
|
-
assertParamExists('v1DropdownRecommendationsGet', 'xStoreid', xStoreid);
|
|
16058
|
-
// verify required parameter 'xStoresecret' is not null or undefined
|
|
16059
|
-
assertParamExists('v1DropdownRecommendationsGet', 'xStoresecret', xStoresecret);
|
|
16060
|
-
const localVarPath = `/v1/dropdown-recommendations`;
|
|
16061
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16062
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16063
|
-
let baseOptions;
|
|
16064
|
-
if (configuration) {
|
|
16065
|
-
baseOptions = configuration.baseOptions;
|
|
16066
|
-
}
|
|
16067
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16068
|
-
const localVarHeaderParameter = {};
|
|
16069
|
-
const localVarQueryParameter = {};
|
|
16070
|
-
if (q !== undefined) {
|
|
16071
|
-
localVarQueryParameter['q'] = q;
|
|
16072
|
-
}
|
|
16073
|
-
if (query !== undefined) {
|
|
16074
|
-
localVarQueryParameter['query'] = query;
|
|
16075
|
-
}
|
|
16076
|
-
if (xStoreid != null) {
|
|
16077
|
-
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
16078
|
-
}
|
|
16079
|
-
if (xStoresecret != null) {
|
|
16080
|
-
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
16081
|
-
}
|
|
16082
|
-
if (xUserId != null) {
|
|
16083
|
-
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
16084
|
-
}
|
|
16085
|
-
if (xAnonId != null) {
|
|
16086
|
-
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
16087
|
-
}
|
|
16088
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16089
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16090
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16091
|
-
return {
|
|
16092
|
-
url: toPathString(localVarUrlObj),
|
|
16093
|
-
options: localVarRequestOptions,
|
|
16094
|
-
};
|
|
16095
|
-
}),
|
|
16096
|
-
};
|
|
16097
|
-
};
|
|
16098
|
-
/**
|
|
16099
|
-
* DropdownRecommendationsApi - functional programming interface
|
|
16100
|
-
* @export
|
|
16101
|
-
*/
|
|
16102
|
-
export const DropdownRecommendationsApiFp = function (configuration) {
|
|
16103
|
-
const localVarAxiosParamCreator = DropdownRecommendationsApiAxiosParamCreator(configuration);
|
|
16104
|
-
return {
|
|
16105
|
-
/**
|
|
16106
|
-
* Retrieve configuration settings for dropdown recommendations
|
|
16107
|
-
* @summary Get Dropdown Recommendations Configuration
|
|
16108
|
-
* @param {string} xStoreid Store ID
|
|
16109
|
-
* @param {string} xStoresecret Store Secret
|
|
16110
|
-
* @param {*} [options] Override http request option.
|
|
16111
|
-
* @throws {RequiredError}
|
|
16112
|
-
*/
|
|
16113
|
-
v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options) {
|
|
16114
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16115
|
-
var _a, _b, _c;
|
|
16116
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options);
|
|
16117
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16118
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16119
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16120
|
-
});
|
|
16121
|
-
},
|
|
16122
|
-
/**
|
|
16123
|
-
* Update configuration settings for dropdown recommendations
|
|
16124
|
-
* @summary Update Dropdown Recommendations Configuration
|
|
16125
|
-
* @param {string} xStoreid Store ID
|
|
16126
|
-
* @param {string} xStoresecret Store Secret
|
|
16127
|
-
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
16128
|
-
* @param {*} [options] Override http request option.
|
|
16129
|
-
* @throws {RequiredError}
|
|
16130
|
-
*/
|
|
16131
|
-
v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options) {
|
|
16132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16133
|
-
var _a, _b, _c;
|
|
16134
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options);
|
|
16135
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16136
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16137
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16138
|
-
});
|
|
16139
|
-
},
|
|
16140
|
-
/**
|
|
16141
|
-
* Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
|
|
16142
|
-
* @summary Get Dropdown Recommendations
|
|
16143
|
-
* @param {string} xStoreid Store ID
|
|
16144
|
-
* @param {string} xStoresecret Store Secret
|
|
16145
|
-
* @param {string} [xUserId] User ID for personalization
|
|
16146
|
-
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
16147
|
-
* @param {string} [q] Query string for filtering suggestions (prefix match)
|
|
16148
|
-
* @param {string} [query] Alternative query parameter for filtering suggestions
|
|
16149
|
-
* @param {*} [options] Override http request option.
|
|
16150
|
-
* @throws {RequiredError}
|
|
16151
|
-
*/
|
|
16152
|
-
v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options) {
|
|
16153
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16154
|
-
var _a, _b, _c;
|
|
16155
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options);
|
|
16156
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16157
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16158
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16159
|
-
});
|
|
16160
|
-
},
|
|
16161
|
-
};
|
|
16162
|
-
};
|
|
16163
|
-
/**
|
|
16164
|
-
* DropdownRecommendationsApi - factory interface
|
|
16165
|
-
* @export
|
|
16166
|
-
*/
|
|
16167
|
-
export const DropdownRecommendationsApiFactory = function (configuration, basePath, axios) {
|
|
16168
|
-
const localVarFp = DropdownRecommendationsApiFp(configuration);
|
|
16169
|
-
return {
|
|
16170
|
-
/**
|
|
16171
|
-
* Retrieve configuration settings for dropdown recommendations
|
|
16172
|
-
* @summary Get Dropdown Recommendations Configuration
|
|
16173
|
-
* @param {string} xStoreid Store ID
|
|
16174
|
-
* @param {string} xStoresecret Store Secret
|
|
16175
|
-
* @param {*} [options] Override http request option.
|
|
16176
|
-
* @throws {RequiredError}
|
|
16177
|
-
*/
|
|
16178
|
-
v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options) {
|
|
16179
|
-
return localVarFp.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
16180
|
-
},
|
|
16181
|
-
/**
|
|
16182
|
-
* Update configuration settings for dropdown recommendations
|
|
16183
|
-
* @summary Update Dropdown Recommendations Configuration
|
|
16184
|
-
* @param {string} xStoreid Store ID
|
|
16185
|
-
* @param {string} xStoresecret Store Secret
|
|
16186
|
-
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
16187
|
-
* @param {*} [options] Override http request option.
|
|
16188
|
-
* @throws {RequiredError}
|
|
16189
|
-
*/
|
|
16190
|
-
v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options) {
|
|
16191
|
-
return localVarFp.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(axios, basePath));
|
|
16192
|
-
},
|
|
16193
|
-
/**
|
|
16194
|
-
* Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
|
|
16195
|
-
* @summary Get Dropdown Recommendations
|
|
16196
|
-
* @param {string} xStoreid Store ID
|
|
16197
|
-
* @param {string} xStoresecret Store Secret
|
|
16198
|
-
* @param {string} [xUserId] User ID for personalization
|
|
16199
|
-
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
16200
|
-
* @param {string} [q] Query string for filtering suggestions (prefix match)
|
|
16201
|
-
* @param {string} [query] Alternative query parameter for filtering suggestions
|
|
16202
|
-
* @param {*} [options] Override http request option.
|
|
16203
|
-
* @throws {RequiredError}
|
|
16204
|
-
*/
|
|
16205
|
-
v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options) {
|
|
16206
|
-
return localVarFp.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options).then((request) => request(axios, basePath));
|
|
16207
|
-
},
|
|
16208
|
-
};
|
|
16209
|
-
};
|
|
16210
|
-
/**
|
|
16211
|
-
* DropdownRecommendationsApi - object-oriented interface
|
|
16212
|
-
* @export
|
|
16213
|
-
* @class DropdownRecommendationsApi
|
|
16214
|
-
* @extends {BaseAPI}
|
|
16215
|
-
*/
|
|
16216
|
-
export class DropdownRecommendationsApi extends BaseAPI {
|
|
16217
|
-
/**
|
|
16218
|
-
* Retrieve configuration settings for dropdown recommendations
|
|
16219
|
-
* @summary Get Dropdown Recommendations Configuration
|
|
16220
|
-
* @param {string} xStoreid Store ID
|
|
16221
|
-
* @param {string} xStoresecret Store Secret
|
|
16222
|
-
* @param {*} [options] Override http request option.
|
|
16223
|
-
* @throws {RequiredError}
|
|
16224
|
-
* @memberof DropdownRecommendationsApi
|
|
16225
|
-
*/
|
|
16226
|
-
v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options) {
|
|
16227
|
-
return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
16228
|
-
}
|
|
16229
|
-
/**
|
|
16230
|
-
* Update configuration settings for dropdown recommendations
|
|
16231
|
-
* @summary Update Dropdown Recommendations Configuration
|
|
16232
|
-
* @param {string} xStoreid Store ID
|
|
16233
|
-
* @param {string} xStoresecret Store Secret
|
|
16234
|
-
* @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
|
|
16235
|
-
* @param {*} [options] Override http request option.
|
|
16236
|
-
* @throws {RequiredError}
|
|
16237
|
-
* @memberof DropdownRecommendationsApi
|
|
16238
|
-
*/
|
|
16239
|
-
v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options) {
|
|
16240
|
-
return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16241
|
-
}
|
|
16242
|
-
/**
|
|
16243
|
-
* Retrieve trending search categories, trending products, and popular brands for the dropdown. Supports query-based filtering for suggestions.
|
|
16244
|
-
* @summary Get Dropdown Recommendations
|
|
16245
|
-
* @param {string} xStoreid Store ID
|
|
16246
|
-
* @param {string} xStoresecret Store Secret
|
|
16247
|
-
* @param {string} [xUserId] User ID for personalization
|
|
16248
|
-
* @param {string} [xAnonId] Anonymous ID for personalization
|
|
16249
|
-
* @param {string} [q] Query string for filtering suggestions (prefix match)
|
|
16250
|
-
* @param {string} [query] Alternative query parameter for filtering suggestions
|
|
16251
|
-
* @param {*} [options] Override http request option.
|
|
16252
|
-
* @throws {RequiredError}
|
|
16253
|
-
* @memberof DropdownRecommendationsApi
|
|
16254
|
-
*/
|
|
16255
|
-
v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options) {
|
|
16256
|
-
return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, q, query, options).then((request) => request(this.axios, this.basePath));
|
|
16257
|
-
}
|
|
16258
|
-
}
|
|
16259
16336
|
/**
|
|
16260
16337
|
* ExternalAPINotificationsApi - axios parameter creator
|
|
16261
16338
|
* @export
|
|
@@ -27679,6 +27756,37 @@ export const QuerySuggestionsManagementApiAxiosParamCreator = function (configur
|
|
|
27679
27756
|
options: localVarRequestOptions,
|
|
27680
27757
|
};
|
|
27681
27758
|
}),
|
|
27759
|
+
/**
|
|
27760
|
+
* Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
|
|
27761
|
+
* @summary Complete Sync: Refresh + Promote + Sync to Typesense
|
|
27762
|
+
* @param {string} xStoreID Store ID
|
|
27763
|
+
* @param {*} [options] Override http request option.
|
|
27764
|
+
* @throws {RequiredError}
|
|
27765
|
+
*/
|
|
27766
|
+
adminV1QuerySuggestionsXStoreIDCompleteSyncPost: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
27767
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
27768
|
+
assertParamExists('adminV1QuerySuggestionsXStoreIDCompleteSyncPost', 'xStoreID', xStoreID);
|
|
27769
|
+
const localVarPath = `/admin/v1/query-suggestions/{xStoreID}/complete-sync`
|
|
27770
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
27771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27772
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27773
|
+
let baseOptions;
|
|
27774
|
+
if (configuration) {
|
|
27775
|
+
baseOptions = configuration.baseOptions;
|
|
27776
|
+
}
|
|
27777
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
27778
|
+
const localVarHeaderParameter = {};
|
|
27779
|
+
const localVarQueryParameter = {};
|
|
27780
|
+
// authentication BearerAuth required
|
|
27781
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
27782
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27783
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27784
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27785
|
+
return {
|
|
27786
|
+
url: toPathString(localVarUrlObj),
|
|
27787
|
+
options: localVarRequestOptions,
|
|
27788
|
+
};
|
|
27789
|
+
}),
|
|
27682
27790
|
/**
|
|
27683
27791
|
* Retrieve the current configuration for query suggestions for a store
|
|
27684
27792
|
* @summary Get Query Suggestions Configuration
|
|
@@ -28625,6 +28733,22 @@ export const QuerySuggestionsManagementApiFp = function (configuration) {
|
|
|
28625
28733
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28626
28734
|
});
|
|
28627
28735
|
},
|
|
28736
|
+
/**
|
|
28737
|
+
* Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
|
|
28738
|
+
* @summary Complete Sync: Refresh + Promote + Sync to Typesense
|
|
28739
|
+
* @param {string} xStoreID Store ID
|
|
28740
|
+
* @param {*} [options] Override http request option.
|
|
28741
|
+
* @throws {RequiredError}
|
|
28742
|
+
*/
|
|
28743
|
+
adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options) {
|
|
28744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28745
|
+
var _a, _b, _c;
|
|
28746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options);
|
|
28747
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
28748
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsManagementApi.adminV1QuerySuggestionsXStoreIDCompleteSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
28749
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28750
|
+
});
|
|
28751
|
+
},
|
|
28628
28752
|
/**
|
|
28629
28753
|
* Retrieve the current configuration for query suggestions for a store
|
|
28630
28754
|
* @summary Get Query Suggestions Configuration
|
|
@@ -29103,6 +29227,16 @@ export const QuerySuggestionsManagementApiFactory = function (configuration, bas
|
|
|
29103
29227
|
adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID, page, pageSize, minPopularity, options) {
|
|
29104
29228
|
return localVarFp.adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID, page, pageSize, minPopularity, options).then((request) => request(axios, basePath));
|
|
29105
29229
|
},
|
|
29230
|
+
/**
|
|
29231
|
+
* Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
|
|
29232
|
+
* @summary Complete Sync: Refresh + Promote + Sync to Typesense
|
|
29233
|
+
* @param {string} xStoreID Store ID
|
|
29234
|
+
* @param {*} [options] Override http request option.
|
|
29235
|
+
* @throws {RequiredError}
|
|
29236
|
+
*/
|
|
29237
|
+
adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options) {
|
|
29238
|
+
return localVarFp.adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options).then((request) => request(axios, basePath));
|
|
29239
|
+
},
|
|
29106
29240
|
/**
|
|
29107
29241
|
* Retrieve the current configuration for query suggestions for a store
|
|
29108
29242
|
* @summary Get Query Suggestions Configuration
|
|
@@ -29457,6 +29591,17 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
|
|
|
29457
29591
|
adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID, page, pageSize, minPopularity, options) {
|
|
29458
29592
|
return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDCachedGet(xStoreID, page, pageSize, minPopularity, options).then((request) => request(this.axios, this.basePath));
|
|
29459
29593
|
}
|
|
29594
|
+
/**
|
|
29595
|
+
* Performs complete sync: refreshes auto-generated cache from analytics, promotes to management table, then syncs to Typesense. This is the recommended endpoint for periodic sync jobs.
|
|
29596
|
+
* @summary Complete Sync: Refresh + Promote + Sync to Typesense
|
|
29597
|
+
* @param {string} xStoreID Store ID
|
|
29598
|
+
* @param {*} [options] Override http request option.
|
|
29599
|
+
* @throws {RequiredError}
|
|
29600
|
+
* @memberof QuerySuggestionsManagementApi
|
|
29601
|
+
*/
|
|
29602
|
+
adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options) {
|
|
29603
|
+
return QuerySuggestionsManagementApiFp(this.configuration).adminV1QuerySuggestionsXStoreIDCompleteSyncPost(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
29604
|
+
}
|
|
29460
29605
|
/**
|
|
29461
29606
|
* Retrieve the current configuration for query suggestions for a store
|
|
29462
29607
|
* @summary Get Query Suggestions Configuration
|
|
@@ -35586,6 +35731,37 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
35586
35731
|
options: localVarRequestOptions,
|
|
35587
35732
|
};
|
|
35588
35733
|
}),
|
|
35734
|
+
/**
|
|
35735
|
+
* Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
|
|
35736
|
+
* @summary Ensure Analytics Collections and Rules for Store
|
|
35737
|
+
* @param {string} xStoreID Store ID
|
|
35738
|
+
* @param {*} [options] Override http request option.
|
|
35739
|
+
* @throws {RequiredError}
|
|
35740
|
+
*/
|
|
35741
|
+
adminStoresXStoreIDAnalyticsEnsurePost: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
35742
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
35743
|
+
assertParamExists('adminStoresXStoreIDAnalyticsEnsurePost', 'xStoreID', xStoreID);
|
|
35744
|
+
const localVarPath = `/admin/Stores/{xStoreID}/analytics/ensure`
|
|
35745
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
35746
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35747
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35748
|
+
let baseOptions;
|
|
35749
|
+
if (configuration) {
|
|
35750
|
+
baseOptions = configuration.baseOptions;
|
|
35751
|
+
}
|
|
35752
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
35753
|
+
const localVarHeaderParameter = {};
|
|
35754
|
+
const localVarQueryParameter = {};
|
|
35755
|
+
// authentication BearerAuth required
|
|
35756
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
35757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35759
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35760
|
+
return {
|
|
35761
|
+
url: toPathString(localVarUrlObj),
|
|
35762
|
+
options: localVarRequestOptions,
|
|
35763
|
+
};
|
|
35764
|
+
}),
|
|
35589
35765
|
/**
|
|
35590
35766
|
* Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
|
|
35591
35767
|
* @summary Get Time Series Data for Store Metrics
|
|
@@ -35893,6 +36069,45 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
35893
36069
|
options: localVarRequestOptions,
|
|
35894
36070
|
};
|
|
35895
36071
|
}),
|
|
36072
|
+
/**
|
|
36073
|
+
* Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
|
|
36074
|
+
* @summary Sync Popular Items to Typesense
|
|
36075
|
+
* @param {string} xStoreID Store ID
|
|
36076
|
+
* @param {number} [limit] Number of items to sync (default: 100)
|
|
36077
|
+
* @param {number} [daysBack] Number of days to look back (default: 30)
|
|
36078
|
+
* @param {*} [options] Override http request option.
|
|
36079
|
+
* @throws {RequiredError}
|
|
36080
|
+
*/
|
|
36081
|
+
adminStoresXStoreIDPopularItemsSyncPost: (xStoreID_1, limit_1, daysBack_1, ...args_1) => __awaiter(this, [xStoreID_1, limit_1, daysBack_1, ...args_1], void 0, function* (xStoreID, limit, daysBack, options = {}) {
|
|
36082
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
36083
|
+
assertParamExists('adminStoresXStoreIDPopularItemsSyncPost', 'xStoreID', xStoreID);
|
|
36084
|
+
const localVarPath = `/admin/Stores/{xStoreID}/popular-items/sync`
|
|
36085
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
36086
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36087
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
36088
|
+
let baseOptions;
|
|
36089
|
+
if (configuration) {
|
|
36090
|
+
baseOptions = configuration.baseOptions;
|
|
36091
|
+
}
|
|
36092
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
36093
|
+
const localVarHeaderParameter = {};
|
|
36094
|
+
const localVarQueryParameter = {};
|
|
36095
|
+
// authentication BearerAuth required
|
|
36096
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
36097
|
+
if (limit !== undefined) {
|
|
36098
|
+
localVarQueryParameter['limit'] = limit;
|
|
36099
|
+
}
|
|
36100
|
+
if (daysBack !== undefined) {
|
|
36101
|
+
localVarQueryParameter['days_back'] = daysBack;
|
|
36102
|
+
}
|
|
36103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36105
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
36106
|
+
return {
|
|
36107
|
+
url: toPathString(localVarUrlObj),
|
|
36108
|
+
options: localVarRequestOptions,
|
|
36109
|
+
};
|
|
36110
|
+
}),
|
|
35896
36111
|
/**
|
|
35897
36112
|
* Get schema options for a specific store by xStoreID
|
|
35898
36113
|
* @summary Get store schema options
|
|
@@ -36146,6 +36361,22 @@ export const StoresApiFp = function (configuration) {
|
|
|
36146
36361
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36147
36362
|
});
|
|
36148
36363
|
},
|
|
36364
|
+
/**
|
|
36365
|
+
* Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
|
|
36366
|
+
* @summary Ensure Analytics Collections and Rules for Store
|
|
36367
|
+
* @param {string} xStoreID Store ID
|
|
36368
|
+
* @param {*} [options] Override http request option.
|
|
36369
|
+
* @throws {RequiredError}
|
|
36370
|
+
*/
|
|
36371
|
+
adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options) {
|
|
36372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36373
|
+
var _a, _b, _c;
|
|
36374
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options);
|
|
36375
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36376
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsEnsurePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36377
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36378
|
+
});
|
|
36379
|
+
},
|
|
36149
36380
|
/**
|
|
36150
36381
|
* Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
|
|
36151
36382
|
* @summary Get Time Series Data for Store Metrics
|
|
@@ -36288,6 +36519,24 @@ export const StoresApiFp = function (configuration) {
|
|
|
36288
36519
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36289
36520
|
});
|
|
36290
36521
|
},
|
|
36522
|
+
/**
|
|
36523
|
+
* Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
|
|
36524
|
+
* @summary Sync Popular Items to Typesense
|
|
36525
|
+
* @param {string} xStoreID Store ID
|
|
36526
|
+
* @param {number} [limit] Number of items to sync (default: 100)
|
|
36527
|
+
* @param {number} [daysBack] Number of days to look back (default: 30)
|
|
36528
|
+
* @param {*} [options] Override http request option.
|
|
36529
|
+
* @throws {RequiredError}
|
|
36530
|
+
*/
|
|
36531
|
+
adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options) {
|
|
36532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36533
|
+
var _a, _b, _c;
|
|
36534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options);
|
|
36535
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36536
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDPopularItemsSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36537
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36538
|
+
});
|
|
36539
|
+
},
|
|
36291
36540
|
/**
|
|
36292
36541
|
* Get schema options for a specific store by xStoreID
|
|
36293
36542
|
* @summary Get store schema options
|
|
@@ -36429,6 +36678,16 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
|
|
|
36429
36678
|
adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
|
|
36430
36679
|
return localVarFp.adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
36431
36680
|
},
|
|
36681
|
+
/**
|
|
36682
|
+
* Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
|
|
36683
|
+
* @summary Ensure Analytics Collections and Rules for Store
|
|
36684
|
+
* @param {string} xStoreID Store ID
|
|
36685
|
+
* @param {*} [options] Override http request option.
|
|
36686
|
+
* @throws {RequiredError}
|
|
36687
|
+
*/
|
|
36688
|
+
adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options) {
|
|
36689
|
+
return localVarFp.adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options).then((request) => request(axios, basePath));
|
|
36690
|
+
},
|
|
36432
36691
|
/**
|
|
36433
36692
|
* Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
|
|
36434
36693
|
* @summary Get Time Series Data for Store Metrics
|
|
@@ -36523,6 +36782,18 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
|
|
|
36523
36782
|
adminStoresXStoreIDDefaultsGet(xStoreID, options) {
|
|
36524
36783
|
return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
|
|
36525
36784
|
},
|
|
36785
|
+
/**
|
|
36786
|
+
* Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
|
|
36787
|
+
* @summary Sync Popular Items to Typesense
|
|
36788
|
+
* @param {string} xStoreID Store ID
|
|
36789
|
+
* @param {number} [limit] Number of items to sync (default: 100)
|
|
36790
|
+
* @param {number} [daysBack] Number of days to look back (default: 30)
|
|
36791
|
+
* @param {*} [options] Override http request option.
|
|
36792
|
+
* @throws {RequiredError}
|
|
36793
|
+
*/
|
|
36794
|
+
adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options) {
|
|
36795
|
+
return localVarFp.adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options).then((request) => request(axios, basePath));
|
|
36796
|
+
},
|
|
36526
36797
|
/**
|
|
36527
36798
|
* Get schema options for a specific store by xStoreID
|
|
36528
36799
|
* @summary Get store schema options
|
|
@@ -36646,6 +36917,17 @@ export class StoresApi extends BaseAPI {
|
|
|
36646
36917
|
adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
|
|
36647
36918
|
return StoresApiFp(this.configuration).adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
36648
36919
|
}
|
|
36920
|
+
/**
|
|
36921
|
+
* Ensures that Typesense analytics collections and rules exist for the store\'s collection. This is useful for retroactive fixes or ensuring analytics exist for existing stores.
|
|
36922
|
+
* @summary Ensure Analytics Collections and Rules for Store
|
|
36923
|
+
* @param {string} xStoreID Store ID
|
|
36924
|
+
* @param {*} [options] Override http request option.
|
|
36925
|
+
* @throws {RequiredError}
|
|
36926
|
+
* @memberof StoresApi
|
|
36927
|
+
*/
|
|
36928
|
+
adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options) {
|
|
36929
|
+
return StoresApiFp(this.configuration).adminStoresXStoreIDAnalyticsEnsurePost(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
36930
|
+
}
|
|
36649
36931
|
/**
|
|
36650
36932
|
* Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
|
|
36651
36933
|
* @summary Get Time Series Data for Store Metrics
|
|
@@ -36748,6 +37030,19 @@ export class StoresApi extends BaseAPI {
|
|
|
36748
37030
|
adminStoresXStoreIDDefaultsGet(xStoreID, options) {
|
|
36749
37031
|
return StoresApiFp(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
36750
37032
|
}
|
|
37033
|
+
/**
|
|
37034
|
+
* Syncs popular items from ClickHouse to Typesense for real-time boosting in search results
|
|
37035
|
+
* @summary Sync Popular Items to Typesense
|
|
37036
|
+
* @param {string} xStoreID Store ID
|
|
37037
|
+
* @param {number} [limit] Number of items to sync (default: 100)
|
|
37038
|
+
* @param {number} [daysBack] Number of days to look back (default: 30)
|
|
37039
|
+
* @param {*} [options] Override http request option.
|
|
37040
|
+
* @throws {RequiredError}
|
|
37041
|
+
* @memberof StoresApi
|
|
37042
|
+
*/
|
|
37043
|
+
adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options) {
|
|
37044
|
+
return StoresApiFp(this.configuration).adminStoresXStoreIDPopularItemsSyncPost(xStoreID, limit, daysBack, options).then((request) => request(this.axios, this.basePath));
|
|
37045
|
+
}
|
|
36751
37046
|
/**
|
|
36752
37047
|
* Get schema options for a specific store by xStoreID
|
|
36753
37048
|
* @summary Get store schema options
|