@seekora-ai/admin-api 1.1.97 → 1.1.99
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 +7 -2
- package/api.ts +367 -16
- package/dist/api.d.ts +207 -16
- package/dist/api.js +295 -0
- package/dist/esm/api.d.ts +207 -16
- package/dist/esm/api.js +295 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.99.tgz +0 -0
- package/seekora-ai-admin-api-1.1.97.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -38349,6 +38349,58 @@ export const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
|
|
|
38349
38349
|
options: localVarRequestOptions,
|
|
38350
38350
|
};
|
|
38351
38351
|
}),
|
|
38352
|
+
/**
|
|
38353
|
+
* Same as GET; use POST to send a JSON body (e.g. complex filtered_tabs). **Auth:** `x-storeid` and `x-storesecret`. Optional personalization headers: `x-user-id`, `x-anon-id`, `x-session-id`. Request body can include query, hitsPerPage, analytics_tags, include_categories, include_facets, filtered_tabs, etc.
|
|
38354
|
+
* @summary Get query suggestions (POST)
|
|
38355
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38356
|
+
* @param {string} xStoresecret Store read secret
|
|
38357
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38358
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38359
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38360
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38361
|
+
* @param {*} [options] Override http request option.
|
|
38362
|
+
* @throws {RequiredError}
|
|
38363
|
+
*/
|
|
38364
|
+
v1SuggestionsQueriesPost: (xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, xSessionId_1, querySuggestionsServiceQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, xSessionId_1, querySuggestionsServiceQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options = {}) {
|
|
38365
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
38366
|
+
assertParamExists('v1SuggestionsQueriesPost', 'xStoreid', xStoreid);
|
|
38367
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
38368
|
+
assertParamExists('v1SuggestionsQueriesPost', 'xStoresecret', xStoresecret);
|
|
38369
|
+
const localVarPath = `/v1/suggestions/queries`;
|
|
38370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38371
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38372
|
+
let baseOptions;
|
|
38373
|
+
if (configuration) {
|
|
38374
|
+
baseOptions = configuration.baseOptions;
|
|
38375
|
+
}
|
|
38376
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
38377
|
+
const localVarHeaderParameter = {};
|
|
38378
|
+
const localVarQueryParameter = {};
|
|
38379
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
38380
|
+
if (xStoreid != null) {
|
|
38381
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
38382
|
+
}
|
|
38383
|
+
if (xStoresecret != null) {
|
|
38384
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
38385
|
+
}
|
|
38386
|
+
if (xUserId != null) {
|
|
38387
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
38388
|
+
}
|
|
38389
|
+
if (xAnonId != null) {
|
|
38390
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
38391
|
+
}
|
|
38392
|
+
if (xSessionId != null) {
|
|
38393
|
+
localVarHeaderParameter['x-session-id'] = String(xSessionId);
|
|
38394
|
+
}
|
|
38395
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
38398
|
+
localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceQuerySuggestionsRequest, localVarRequestOptions, configuration);
|
|
38399
|
+
return {
|
|
38400
|
+
url: toPathString(localVarUrlObj),
|
|
38401
|
+
options: localVarRequestOptions,
|
|
38402
|
+
};
|
|
38403
|
+
}),
|
|
38352
38404
|
};
|
|
38353
38405
|
};
|
|
38354
38406
|
/**
|
|
@@ -38416,6 +38468,27 @@ export const QuerySuggestionsApiFp = function (configuration) {
|
|
|
38416
38468
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38417
38469
|
});
|
|
38418
38470
|
},
|
|
38471
|
+
/**
|
|
38472
|
+
* Same as GET; use POST to send a JSON body (e.g. complex filtered_tabs). **Auth:** `x-storeid` and `x-storesecret`. Optional personalization headers: `x-user-id`, `x-anon-id`, `x-session-id`. Request body can include query, hitsPerPage, analytics_tags, include_categories, include_facets, filtered_tabs, etc.
|
|
38473
|
+
* @summary Get query suggestions (POST)
|
|
38474
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38475
|
+
* @param {string} xStoresecret Store read secret
|
|
38476
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38477
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38478
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38479
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38480
|
+
* @param {*} [options] Override http request option.
|
|
38481
|
+
* @throws {RequiredError}
|
|
38482
|
+
*/
|
|
38483
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
38484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38485
|
+
var _a, _b, _c;
|
|
38486
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options);
|
|
38487
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
38488
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsApi.v1SuggestionsQueriesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
38489
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38490
|
+
});
|
|
38491
|
+
},
|
|
38419
38492
|
};
|
|
38420
38493
|
};
|
|
38421
38494
|
/**
|
|
@@ -38471,6 +38544,21 @@ export const QuerySuggestionsApiFactory = function (configuration, basePath, axi
|
|
|
38471
38544
|
v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, q, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, includeDropdownRecommendations, includeDropdownProductList, includeFilteredTabs, includeEmptyQueryRecommendations, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, filteredTabs, userId, anonId, sessionId, options) {
|
|
38472
38545
|
return localVarFp.v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, q, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, includeDropdownRecommendations, includeDropdownProductList, includeFilteredTabs, includeEmptyQueryRecommendations, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, filteredTabs, userId, anonId, sessionId, options).then((request) => request(axios, basePath));
|
|
38473
38546
|
},
|
|
38547
|
+
/**
|
|
38548
|
+
* Same as GET; use POST to send a JSON body (e.g. complex filtered_tabs). **Auth:** `x-storeid` and `x-storesecret`. Optional personalization headers: `x-user-id`, `x-anon-id`, `x-session-id`. Request body can include query, hitsPerPage, analytics_tags, include_categories, include_facets, filtered_tabs, etc.
|
|
38549
|
+
* @summary Get query suggestions (POST)
|
|
38550
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38551
|
+
* @param {string} xStoresecret Store read secret
|
|
38552
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38553
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38554
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38555
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38556
|
+
* @param {*} [options] Override http request option.
|
|
38557
|
+
* @throws {RequiredError}
|
|
38558
|
+
*/
|
|
38559
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
38560
|
+
return localVarFp.v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
|
|
38561
|
+
},
|
|
38474
38562
|
};
|
|
38475
38563
|
};
|
|
38476
38564
|
/**
|
|
@@ -38528,6 +38616,22 @@ export class QuerySuggestionsApi extends BaseAPI {
|
|
|
38528
38616
|
v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, q, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, includeDropdownRecommendations, includeDropdownProductList, includeFilteredTabs, includeEmptyQueryRecommendations, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, filteredTabs, userId, anonId, sessionId, options) {
|
|
38529
38617
|
return QuerySuggestionsApiFp(this.configuration).v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, q, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, includeDropdownRecommendations, includeDropdownProductList, includeFilteredTabs, includeEmptyQueryRecommendations, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, filteredTabs, userId, anonId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
38530
38618
|
}
|
|
38619
|
+
/**
|
|
38620
|
+
* Same as GET; use POST to send a JSON body (e.g. complex filtered_tabs). **Auth:** `x-storeid` and `x-storesecret`. Optional personalization headers: `x-user-id`, `x-anon-id`, `x-session-id`. Request body can include query, hitsPerPage, analytics_tags, include_categories, include_facets, filtered_tabs, etc.
|
|
38621
|
+
* @summary Get query suggestions (POST)
|
|
38622
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38623
|
+
* @param {string} xStoresecret Store read secret
|
|
38624
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38625
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38626
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38627
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38628
|
+
* @param {*} [options] Override http request option.
|
|
38629
|
+
* @throws {RequiredError}
|
|
38630
|
+
* @memberof QuerySuggestionsApi
|
|
38631
|
+
*/
|
|
38632
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
38633
|
+
return QuerySuggestionsApiFp(this.configuration).v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
38634
|
+
}
|
|
38531
38635
|
}
|
|
38532
38636
|
/**
|
|
38533
38637
|
* @export
|
|
@@ -43744,6 +43848,48 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
43744
43848
|
options: localVarRequestOptions,
|
|
43745
43849
|
};
|
|
43746
43850
|
}),
|
|
43851
|
+
/**
|
|
43852
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
43853
|
+
* @summary Multi-Search (POST)
|
|
43854
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
43855
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
43856
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
43857
|
+
* @param {*} [options] Override http request option.
|
|
43858
|
+
* @throws {RequiredError}
|
|
43859
|
+
*/
|
|
43860
|
+
v1MultiSearchPost: (xStoreid_1, xStoresecret_1, dataTypesMultiSearchRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dataTypesMultiSearchRequest_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dataTypesMultiSearchRequest, options = {}) {
|
|
43861
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
43862
|
+
assertParamExists('v1MultiSearchPost', 'xStoreid', xStoreid);
|
|
43863
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
43864
|
+
assertParamExists('v1MultiSearchPost', 'xStoresecret', xStoresecret);
|
|
43865
|
+
// verify required parameter 'dataTypesMultiSearchRequest' is not null or undefined
|
|
43866
|
+
assertParamExists('v1MultiSearchPost', 'dataTypesMultiSearchRequest', dataTypesMultiSearchRequest);
|
|
43867
|
+
const localVarPath = `/v1/multi-search`;
|
|
43868
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43869
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43870
|
+
let baseOptions;
|
|
43871
|
+
if (configuration) {
|
|
43872
|
+
baseOptions = configuration.baseOptions;
|
|
43873
|
+
}
|
|
43874
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
43875
|
+
const localVarHeaderParameter = {};
|
|
43876
|
+
const localVarQueryParameter = {};
|
|
43877
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43878
|
+
if (xStoreid != null) {
|
|
43879
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
43880
|
+
}
|
|
43881
|
+
if (xStoresecret != null) {
|
|
43882
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
43883
|
+
}
|
|
43884
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43886
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
43887
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesMultiSearchRequest, localVarRequestOptions, configuration);
|
|
43888
|
+
return {
|
|
43889
|
+
url: toPathString(localVarUrlObj),
|
|
43890
|
+
options: localVarRequestOptions,
|
|
43891
|
+
};
|
|
43892
|
+
}),
|
|
43747
43893
|
/**
|
|
43748
43894
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
43749
43895
|
* @summary Search (GET)
|
|
@@ -43947,6 +44093,60 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
43947
44093
|
options: localVarRequestOptions,
|
|
43948
44094
|
};
|
|
43949
44095
|
}),
|
|
44096
|
+
/**
|
|
44097
|
+
* Run a full-text search for your store. **Authentication:** Send `x-storeid` and `x-storesecret` (from Seekora dashboard). Optional: `x-user-id`, `x-anon-id`, `x-session-id` for personalization. Supports pagination, filters, facets, sorting, snippets, and autocomplete suggestions. Use `widget_mode: true` for lightweight widget results.
|
|
44098
|
+
* @summary Search (POST)
|
|
44099
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44100
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44101
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44102
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44103
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44104
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44105
|
+
* @param {*} [options] Override http request option.
|
|
44106
|
+
* @throws {RequiredError}
|
|
44107
|
+
*/
|
|
44108
|
+
v1SearchPost: (xStoreid_1, xStoresecret_1, dataTypesSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dataTypesSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options = {}) {
|
|
44109
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
44110
|
+
assertParamExists('v1SearchPost', 'xStoreid', xStoreid);
|
|
44111
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
44112
|
+
assertParamExists('v1SearchPost', 'xStoresecret', xStoresecret);
|
|
44113
|
+
// verify required parameter 'dataTypesSearchRequest' is not null or undefined
|
|
44114
|
+
assertParamExists('v1SearchPost', 'dataTypesSearchRequest', dataTypesSearchRequest);
|
|
44115
|
+
const localVarPath = `/v1/search`;
|
|
44116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44118
|
+
let baseOptions;
|
|
44119
|
+
if (configuration) {
|
|
44120
|
+
baseOptions = configuration.baseOptions;
|
|
44121
|
+
}
|
|
44122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
44123
|
+
const localVarHeaderParameter = {};
|
|
44124
|
+
const localVarQueryParameter = {};
|
|
44125
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44126
|
+
if (xStoreid != null) {
|
|
44127
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
44128
|
+
}
|
|
44129
|
+
if (xStoresecret != null) {
|
|
44130
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
44131
|
+
}
|
|
44132
|
+
if (xUserId != null) {
|
|
44133
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
44134
|
+
}
|
|
44135
|
+
if (xAnonId != null) {
|
|
44136
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
44137
|
+
}
|
|
44138
|
+
if (xSessionId != null) {
|
|
44139
|
+
localVarHeaderParameter['x-session-id'] = String(xSessionId);
|
|
44140
|
+
}
|
|
44141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44143
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
44144
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSearchRequest, localVarRequestOptions, configuration);
|
|
44145
|
+
return {
|
|
44146
|
+
url: toPathString(localVarUrlObj),
|
|
44147
|
+
options: localVarRequestOptions,
|
|
44148
|
+
};
|
|
44149
|
+
}),
|
|
43950
44150
|
};
|
|
43951
44151
|
};
|
|
43952
44152
|
/**
|
|
@@ -44056,6 +44256,24 @@ export const SearchApiFp = function (configuration) {
|
|
|
44056
44256
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44057
44257
|
});
|
|
44058
44258
|
},
|
|
44259
|
+
/**
|
|
44260
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
44261
|
+
* @summary Multi-Search (POST)
|
|
44262
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44263
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44264
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44265
|
+
* @param {*} [options] Override http request option.
|
|
44266
|
+
* @throws {RequiredError}
|
|
44267
|
+
*/
|
|
44268
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
44269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44270
|
+
var _a, _b, _c;
|
|
44271
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options);
|
|
44272
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
44273
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1MultiSearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
44274
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44275
|
+
});
|
|
44276
|
+
},
|
|
44059
44277
|
/**
|
|
44060
44278
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
44061
44279
|
* @summary Search (GET)
|
|
@@ -44114,6 +44332,27 @@ export const SearchApiFp = function (configuration) {
|
|
|
44114
44332
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44115
44333
|
});
|
|
44116
44334
|
},
|
|
44335
|
+
/**
|
|
44336
|
+
* Run a full-text search for your store. **Authentication:** Send `x-storeid` and `x-storesecret` (from Seekora dashboard). Optional: `x-user-id`, `x-anon-id`, `x-session-id` for personalization. Supports pagination, filters, facets, sorting, snippets, and autocomplete suggestions. Use `widget_mode: true` for lightweight widget results.
|
|
44337
|
+
* @summary Search (POST)
|
|
44338
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44339
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44340
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44341
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44342
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44343
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44344
|
+
* @param {*} [options] Override http request option.
|
|
44345
|
+
* @throws {RequiredError}
|
|
44346
|
+
*/
|
|
44347
|
+
v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
|
|
44348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44349
|
+
var _a, _b, _c;
|
|
44350
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options);
|
|
44351
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
44352
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
44353
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44354
|
+
});
|
|
44355
|
+
},
|
|
44117
44356
|
};
|
|
44118
44357
|
};
|
|
44119
44358
|
/**
|
|
@@ -44187,6 +44426,18 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
44187
44426
|
v1IndexIndexnameDefaultsGet(indexname, options) {
|
|
44188
44427
|
return localVarFp.v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(axios, basePath));
|
|
44189
44428
|
},
|
|
44429
|
+
/**
|
|
44430
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
44431
|
+
* @summary Multi-Search (POST)
|
|
44432
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44433
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44434
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44435
|
+
* @param {*} [options] Override http request option.
|
|
44436
|
+
* @throws {RequiredError}
|
|
44437
|
+
*/
|
|
44438
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
44439
|
+
return localVarFp.v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options).then((request) => request(axios, basePath));
|
|
44440
|
+
},
|
|
44190
44441
|
/**
|
|
44191
44442
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
44192
44443
|
* @summary Search (GET)
|
|
@@ -44239,6 +44490,21 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
44239
44490
|
v1SearchGet(xStoreid, xStoresecret, q, xUserId, xAnonId, xSessionId, page, perPage, sortBy, filterBy, facetBy, maxFacetValues, widgetMode, includeSuggestions, suggestionsLimit, analyticsTags, stopwordSets, synonymSets, searchFields, returnFields, omitFields, snippetFields, fullSnippetFields, fieldWeights, groupField, groupSize, snippetPrefix, snippetSuffix, snippetTokenLimit, snippetMinLen, includeSnippets, prefixMode, infixMode, typoMax, typoMinLen1, typoMinLen2, searchTimeoutMs, requireAllTerms, exactMatchBoost, cacheResults, applyRules, presetName, facetSearchText, options) {
|
|
44240
44491
|
return localVarFp.v1SearchGet(xStoreid, xStoresecret, q, xUserId, xAnonId, xSessionId, page, perPage, sortBy, filterBy, facetBy, maxFacetValues, widgetMode, includeSuggestions, suggestionsLimit, analyticsTags, stopwordSets, synonymSets, searchFields, returnFields, omitFields, snippetFields, fullSnippetFields, fieldWeights, groupField, groupSize, snippetPrefix, snippetSuffix, snippetTokenLimit, snippetMinLen, includeSnippets, prefixMode, infixMode, typoMax, typoMinLen1, typoMinLen2, searchTimeoutMs, requireAllTerms, exactMatchBoost, cacheResults, applyRules, presetName, facetSearchText, options).then((request) => request(axios, basePath));
|
|
44241
44492
|
},
|
|
44493
|
+
/**
|
|
44494
|
+
* Run a full-text search for your store. **Authentication:** Send `x-storeid` and `x-storesecret` (from Seekora dashboard). Optional: `x-user-id`, `x-anon-id`, `x-session-id` for personalization. Supports pagination, filters, facets, sorting, snippets, and autocomplete suggestions. Use `widget_mode: true` for lightweight widget results.
|
|
44495
|
+
* @summary Search (POST)
|
|
44496
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44497
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44498
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44499
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44500
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44501
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44502
|
+
* @param {*} [options] Override http request option.
|
|
44503
|
+
* @throws {RequiredError}
|
|
44504
|
+
*/
|
|
44505
|
+
v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
|
|
44506
|
+
return localVarFp.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(axios, basePath));
|
|
44507
|
+
},
|
|
44242
44508
|
};
|
|
44243
44509
|
};
|
|
44244
44510
|
/**
|
|
@@ -44318,6 +44584,19 @@ export class SearchApi extends BaseAPI {
|
|
|
44318
44584
|
v1IndexIndexnameDefaultsGet(indexname, options) {
|
|
44319
44585
|
return SearchApiFp(this.configuration).v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(this.axios, this.basePath));
|
|
44320
44586
|
}
|
|
44587
|
+
/**
|
|
44588
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
44589
|
+
* @summary Multi-Search (POST)
|
|
44590
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44591
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44592
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44593
|
+
* @param {*} [options] Override http request option.
|
|
44594
|
+
* @throws {RequiredError}
|
|
44595
|
+
* @memberof SearchApi
|
|
44596
|
+
*/
|
|
44597
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
44598
|
+
return SearchApiFp(this.configuration).v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44599
|
+
}
|
|
44321
44600
|
/**
|
|
44322
44601
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
44323
44602
|
* @summary Search (GET)
|
|
@@ -44371,6 +44650,22 @@ export class SearchApi extends BaseAPI {
|
|
|
44371
44650
|
v1SearchGet(xStoreid, xStoresecret, q, xUserId, xAnonId, xSessionId, page, perPage, sortBy, filterBy, facetBy, maxFacetValues, widgetMode, includeSuggestions, suggestionsLimit, analyticsTags, stopwordSets, synonymSets, searchFields, returnFields, omitFields, snippetFields, fullSnippetFields, fieldWeights, groupField, groupSize, snippetPrefix, snippetSuffix, snippetTokenLimit, snippetMinLen, includeSnippets, prefixMode, infixMode, typoMax, typoMinLen1, typoMinLen2, searchTimeoutMs, requireAllTerms, exactMatchBoost, cacheResults, applyRules, presetName, facetSearchText, options) {
|
|
44372
44651
|
return SearchApiFp(this.configuration).v1SearchGet(xStoreid, xStoresecret, q, xUserId, xAnonId, xSessionId, page, perPage, sortBy, filterBy, facetBy, maxFacetValues, widgetMode, includeSuggestions, suggestionsLimit, analyticsTags, stopwordSets, synonymSets, searchFields, returnFields, omitFields, snippetFields, fullSnippetFields, fieldWeights, groupField, groupSize, snippetPrefix, snippetSuffix, snippetTokenLimit, snippetMinLen, includeSnippets, prefixMode, infixMode, typoMax, typoMinLen1, typoMinLen2, searchTimeoutMs, requireAllTerms, exactMatchBoost, cacheResults, applyRules, presetName, facetSearchText, options).then((request) => request(this.axios, this.basePath));
|
|
44373
44652
|
}
|
|
44653
|
+
/**
|
|
44654
|
+
* Run a full-text search for your store. **Authentication:** Send `x-storeid` and `x-storesecret` (from Seekora dashboard). Optional: `x-user-id`, `x-anon-id`, `x-session-id` for personalization. Supports pagination, filters, facets, sorting, snippets, and autocomplete suggestions. Use `widget_mode: true` for lightweight widget results.
|
|
44655
|
+
* @summary Search (POST)
|
|
44656
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44657
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44658
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44659
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44660
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44661
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44662
|
+
* @param {*} [options] Override http request option.
|
|
44663
|
+
* @throws {RequiredError}
|
|
44664
|
+
* @memberof SearchApi
|
|
44665
|
+
*/
|
|
44666
|
+
v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
|
|
44667
|
+
return SearchApiFp(this.configuration).v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(this.axios, this.basePath));
|
|
44668
|
+
}
|
|
44374
44669
|
}
|
|
44375
44670
|
/**
|
|
44376
44671
|
* StopwordsApi - axios parameter creator
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|