@seekora-ai/admin-api 1.1.97 → 1.1.98
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 +351 -0
- package/dist/api.d.ts +191 -0
- package/dist/api.js +295 -0
- package/dist/esm/api.d.ts +191 -0
- package/dist/esm/api.js +295 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.98.tgz +0 -0
- package/seekora-ai-admin-api-1.1.97.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -38621,6 +38621,58 @@ const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
|
|
|
38621
38621
|
options: localVarRequestOptions,
|
|
38622
38622
|
};
|
|
38623
38623
|
}),
|
|
38624
|
+
/**
|
|
38625
|
+
* 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.
|
|
38626
|
+
* @summary Get query suggestions (POST)
|
|
38627
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38628
|
+
* @param {string} xStoresecret Store read secret
|
|
38629
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38630
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38631
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38632
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38633
|
+
* @param {*} [options] Override http request option.
|
|
38634
|
+
* @throws {RequiredError}
|
|
38635
|
+
*/
|
|
38636
|
+
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 = {}) {
|
|
38637
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
38638
|
+
(0, common_1.assertParamExists)('v1SuggestionsQueriesPost', 'xStoreid', xStoreid);
|
|
38639
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
38640
|
+
(0, common_1.assertParamExists)('v1SuggestionsQueriesPost', 'xStoresecret', xStoresecret);
|
|
38641
|
+
const localVarPath = `/v1/suggestions/queries`;
|
|
38642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38643
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
38644
|
+
let baseOptions;
|
|
38645
|
+
if (configuration) {
|
|
38646
|
+
baseOptions = configuration.baseOptions;
|
|
38647
|
+
}
|
|
38648
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
38649
|
+
const localVarHeaderParameter = {};
|
|
38650
|
+
const localVarQueryParameter = {};
|
|
38651
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
38652
|
+
if (xStoreid != null) {
|
|
38653
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
38654
|
+
}
|
|
38655
|
+
if (xStoresecret != null) {
|
|
38656
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
38657
|
+
}
|
|
38658
|
+
if (xUserId != null) {
|
|
38659
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
38660
|
+
}
|
|
38661
|
+
if (xAnonId != null) {
|
|
38662
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
38663
|
+
}
|
|
38664
|
+
if (xSessionId != null) {
|
|
38665
|
+
localVarHeaderParameter['x-session-id'] = String(xSessionId);
|
|
38666
|
+
}
|
|
38667
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
38668
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38669
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
38670
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(querySuggestionsServiceQuerySuggestionsRequest, localVarRequestOptions, configuration);
|
|
38671
|
+
return {
|
|
38672
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
38673
|
+
options: localVarRequestOptions,
|
|
38674
|
+
};
|
|
38675
|
+
}),
|
|
38624
38676
|
};
|
|
38625
38677
|
};
|
|
38626
38678
|
exports.QuerySuggestionsApiAxiosParamCreator = QuerySuggestionsApiAxiosParamCreator;
|
|
@@ -38689,6 +38741,27 @@ const QuerySuggestionsApiFp = function (configuration) {
|
|
|
38689
38741
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38690
38742
|
});
|
|
38691
38743
|
},
|
|
38744
|
+
/**
|
|
38745
|
+
* 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.
|
|
38746
|
+
* @summary Get query suggestions (POST)
|
|
38747
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38748
|
+
* @param {string} xStoresecret Store read secret
|
|
38749
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38750
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38751
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38752
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38753
|
+
* @param {*} [options] Override http request option.
|
|
38754
|
+
* @throws {RequiredError}
|
|
38755
|
+
*/
|
|
38756
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
38757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38758
|
+
var _a, _b, _c;
|
|
38759
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options);
|
|
38760
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
38761
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuerySuggestionsApi.v1SuggestionsQueriesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
38762
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38763
|
+
});
|
|
38764
|
+
},
|
|
38692
38765
|
};
|
|
38693
38766
|
};
|
|
38694
38767
|
exports.QuerySuggestionsApiFp = QuerySuggestionsApiFp;
|
|
@@ -38745,6 +38818,21 @@ const QuerySuggestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
38745
38818
|
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) {
|
|
38746
38819
|
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));
|
|
38747
38820
|
},
|
|
38821
|
+
/**
|
|
38822
|
+
* 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.
|
|
38823
|
+
* @summary Get query suggestions (POST)
|
|
38824
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38825
|
+
* @param {string} xStoresecret Store read secret
|
|
38826
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38827
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38828
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38829
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38830
|
+
* @param {*} [options] Override http request option.
|
|
38831
|
+
* @throws {RequiredError}
|
|
38832
|
+
*/
|
|
38833
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
38834
|
+
return localVarFp.v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
|
|
38835
|
+
},
|
|
38748
38836
|
};
|
|
38749
38837
|
};
|
|
38750
38838
|
exports.QuerySuggestionsApiFactory = QuerySuggestionsApiFactory;
|
|
@@ -38803,6 +38891,22 @@ class QuerySuggestionsApi extends base_1.BaseAPI {
|
|
|
38803
38891
|
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) {
|
|
38804
38892
|
return (0, exports.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));
|
|
38805
38893
|
}
|
|
38894
|
+
/**
|
|
38895
|
+
* 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.
|
|
38896
|
+
* @summary Get query suggestions (POST)
|
|
38897
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
38898
|
+
* @param {string} xStoresecret Store read secret
|
|
38899
|
+
* @param {string} [xUserId] User ID for personalization
|
|
38900
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
38901
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
38902
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Request (query, hitsPerPage, analytics_tags, filtered_tabs, etc.)
|
|
38903
|
+
* @param {*} [options] Override http request option.
|
|
38904
|
+
* @throws {RequiredError}
|
|
38905
|
+
* @memberof QuerySuggestionsApi
|
|
38906
|
+
*/
|
|
38907
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
38908
|
+
return (0, exports.QuerySuggestionsApiFp)(this.configuration).v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
38909
|
+
}
|
|
38806
38910
|
}
|
|
38807
38911
|
exports.QuerySuggestionsApi = QuerySuggestionsApi;
|
|
38808
38912
|
/**
|
|
@@ -44044,6 +44148,48 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
44044
44148
|
options: localVarRequestOptions,
|
|
44045
44149
|
};
|
|
44046
44150
|
}),
|
|
44151
|
+
/**
|
|
44152
|
+
* 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.
|
|
44153
|
+
* @summary Multi-Search (POST)
|
|
44154
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44155
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44156
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44157
|
+
* @param {*} [options] Override http request option.
|
|
44158
|
+
* @throws {RequiredError}
|
|
44159
|
+
*/
|
|
44160
|
+
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 = {}) {
|
|
44161
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
44162
|
+
(0, common_1.assertParamExists)('v1MultiSearchPost', 'xStoreid', xStoreid);
|
|
44163
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
44164
|
+
(0, common_1.assertParamExists)('v1MultiSearchPost', 'xStoresecret', xStoresecret);
|
|
44165
|
+
// verify required parameter 'dataTypesMultiSearchRequest' is not null or undefined
|
|
44166
|
+
(0, common_1.assertParamExists)('v1MultiSearchPost', 'dataTypesMultiSearchRequest', dataTypesMultiSearchRequest);
|
|
44167
|
+
const localVarPath = `/v1/multi-search`;
|
|
44168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44169
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44170
|
+
let baseOptions;
|
|
44171
|
+
if (configuration) {
|
|
44172
|
+
baseOptions = configuration.baseOptions;
|
|
44173
|
+
}
|
|
44174
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
44175
|
+
const localVarHeaderParameter = {};
|
|
44176
|
+
const localVarQueryParameter = {};
|
|
44177
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44178
|
+
if (xStoreid != null) {
|
|
44179
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
44180
|
+
}
|
|
44181
|
+
if (xStoresecret != null) {
|
|
44182
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
44183
|
+
}
|
|
44184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
44185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44186
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
44187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesMultiSearchRequest, localVarRequestOptions, configuration);
|
|
44188
|
+
return {
|
|
44189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
44190
|
+
options: localVarRequestOptions,
|
|
44191
|
+
};
|
|
44192
|
+
}),
|
|
44047
44193
|
/**
|
|
44048
44194
|
* 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.
|
|
44049
44195
|
* @summary Search (GET)
|
|
@@ -44247,6 +44393,60 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
44247
44393
|
options: localVarRequestOptions,
|
|
44248
44394
|
};
|
|
44249
44395
|
}),
|
|
44396
|
+
/**
|
|
44397
|
+
* 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.
|
|
44398
|
+
* @summary Search (POST)
|
|
44399
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44400
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44401
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44402
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44403
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44404
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44405
|
+
* @param {*} [options] Override http request option.
|
|
44406
|
+
* @throws {RequiredError}
|
|
44407
|
+
*/
|
|
44408
|
+
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 = {}) {
|
|
44409
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
44410
|
+
(0, common_1.assertParamExists)('v1SearchPost', 'xStoreid', xStoreid);
|
|
44411
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
44412
|
+
(0, common_1.assertParamExists)('v1SearchPost', 'xStoresecret', xStoresecret);
|
|
44413
|
+
// verify required parameter 'dataTypesSearchRequest' is not null or undefined
|
|
44414
|
+
(0, common_1.assertParamExists)('v1SearchPost', 'dataTypesSearchRequest', dataTypesSearchRequest);
|
|
44415
|
+
const localVarPath = `/v1/search`;
|
|
44416
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44417
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44418
|
+
let baseOptions;
|
|
44419
|
+
if (configuration) {
|
|
44420
|
+
baseOptions = configuration.baseOptions;
|
|
44421
|
+
}
|
|
44422
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
44423
|
+
const localVarHeaderParameter = {};
|
|
44424
|
+
const localVarQueryParameter = {};
|
|
44425
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44426
|
+
if (xStoreid != null) {
|
|
44427
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
44428
|
+
}
|
|
44429
|
+
if (xStoresecret != null) {
|
|
44430
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
44431
|
+
}
|
|
44432
|
+
if (xUserId != null) {
|
|
44433
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
44434
|
+
}
|
|
44435
|
+
if (xAnonId != null) {
|
|
44436
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
44437
|
+
}
|
|
44438
|
+
if (xSessionId != null) {
|
|
44439
|
+
localVarHeaderParameter['x-session-id'] = String(xSessionId);
|
|
44440
|
+
}
|
|
44441
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
44442
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44443
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
44444
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesSearchRequest, localVarRequestOptions, configuration);
|
|
44445
|
+
return {
|
|
44446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
44447
|
+
options: localVarRequestOptions,
|
|
44448
|
+
};
|
|
44449
|
+
}),
|
|
44250
44450
|
};
|
|
44251
44451
|
};
|
|
44252
44452
|
exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
|
|
@@ -44357,6 +44557,24 @@ const SearchApiFp = function (configuration) {
|
|
|
44357
44557
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44358
44558
|
});
|
|
44359
44559
|
},
|
|
44560
|
+
/**
|
|
44561
|
+
* 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.
|
|
44562
|
+
* @summary Multi-Search (POST)
|
|
44563
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44564
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44565
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44566
|
+
* @param {*} [options] Override http request option.
|
|
44567
|
+
* @throws {RequiredError}
|
|
44568
|
+
*/
|
|
44569
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
44570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44571
|
+
var _a, _b, _c;
|
|
44572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options);
|
|
44573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
44574
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1MultiSearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
44575
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44576
|
+
});
|
|
44577
|
+
},
|
|
44360
44578
|
/**
|
|
44361
44579
|
* 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.
|
|
44362
44580
|
* @summary Search (GET)
|
|
@@ -44415,6 +44633,27 @@ const SearchApiFp = function (configuration) {
|
|
|
44415
44633
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44416
44634
|
});
|
|
44417
44635
|
},
|
|
44636
|
+
/**
|
|
44637
|
+
* 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.
|
|
44638
|
+
* @summary Search (POST)
|
|
44639
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44640
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44641
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44642
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44643
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44644
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44645
|
+
* @param {*} [options] Override http request option.
|
|
44646
|
+
* @throws {RequiredError}
|
|
44647
|
+
*/
|
|
44648
|
+
v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
|
|
44649
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44650
|
+
var _a, _b, _c;
|
|
44651
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options);
|
|
44652
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
44653
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
44654
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44655
|
+
});
|
|
44656
|
+
},
|
|
44418
44657
|
};
|
|
44419
44658
|
};
|
|
44420
44659
|
exports.SearchApiFp = SearchApiFp;
|
|
@@ -44489,6 +44728,18 @@ const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
44489
44728
|
v1IndexIndexnameDefaultsGet(indexname, options) {
|
|
44490
44729
|
return localVarFp.v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(axios, basePath));
|
|
44491
44730
|
},
|
|
44731
|
+
/**
|
|
44732
|
+
* 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.
|
|
44733
|
+
* @summary Multi-Search (POST)
|
|
44734
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44735
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44736
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44737
|
+
* @param {*} [options] Override http request option.
|
|
44738
|
+
* @throws {RequiredError}
|
|
44739
|
+
*/
|
|
44740
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
44741
|
+
return localVarFp.v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options).then((request) => request(axios, basePath));
|
|
44742
|
+
},
|
|
44492
44743
|
/**
|
|
44493
44744
|
* 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.
|
|
44494
44745
|
* @summary Search (GET)
|
|
@@ -44541,6 +44792,21 @@ const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
44541
44792
|
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) {
|
|
44542
44793
|
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));
|
|
44543
44794
|
},
|
|
44795
|
+
/**
|
|
44796
|
+
* 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.
|
|
44797
|
+
* @summary Search (POST)
|
|
44798
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44799
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44800
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44801
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44802
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44803
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44804
|
+
* @param {*} [options] Override http request option.
|
|
44805
|
+
* @throws {RequiredError}
|
|
44806
|
+
*/
|
|
44807
|
+
v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
|
|
44808
|
+
return localVarFp.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(axios, basePath));
|
|
44809
|
+
},
|
|
44544
44810
|
};
|
|
44545
44811
|
};
|
|
44546
44812
|
exports.SearchApiFactory = SearchApiFactory;
|
|
@@ -44621,6 +44887,19 @@ class SearchApi extends base_1.BaseAPI {
|
|
|
44621
44887
|
v1IndexIndexnameDefaultsGet(indexname, options) {
|
|
44622
44888
|
return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(this.axios, this.basePath));
|
|
44623
44889
|
}
|
|
44890
|
+
/**
|
|
44891
|
+
* 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.
|
|
44892
|
+
* @summary Multi-Search (POST)
|
|
44893
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44894
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44895
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
44896
|
+
* @param {*} [options] Override http request option.
|
|
44897
|
+
* @throws {RequiredError}
|
|
44898
|
+
* @memberof SearchApi
|
|
44899
|
+
*/
|
|
44900
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
44901
|
+
return (0, exports.SearchApiFp)(this.configuration).v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44902
|
+
}
|
|
44624
44903
|
/**
|
|
44625
44904
|
* 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.
|
|
44626
44905
|
* @summary Search (GET)
|
|
@@ -44674,6 +44953,22 @@ class SearchApi extends base_1.BaseAPI {
|
|
|
44674
44953
|
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) {
|
|
44675
44954
|
return (0, exports.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));
|
|
44676
44955
|
}
|
|
44956
|
+
/**
|
|
44957
|
+
* 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.
|
|
44958
|
+
* @summary Search (POST)
|
|
44959
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
44960
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
44961
|
+
* @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
|
|
44962
|
+
* @param {string} [xUserId] User ID for personalization
|
|
44963
|
+
* @param {string} [xAnonId] Anonymous user ID for personalization
|
|
44964
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
44965
|
+
* @param {*} [options] Override http request option.
|
|
44966
|
+
* @throws {RequiredError}
|
|
44967
|
+
* @memberof SearchApi
|
|
44968
|
+
*/
|
|
44969
|
+
v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
|
|
44970
|
+
return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(this.axios, this.basePath));
|
|
44971
|
+
}
|
|
44677
44972
|
}
|
|
44678
44973
|
exports.SearchApi = SearchApi;
|
|
44679
44974
|
/**
|