@seekora-ai/admin-api 1.1.78 → 1.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -22084,6 +22084,97 @@ export class DataQualityApi extends BaseAPI {
22084
22084
  return DataQualityApiFp(this.configuration).v1AnalyticsQualityStatusGet(authorization, options).then((request) => request(this.axios, this.basePath));
22085
22085
  }
22086
22086
  }
22087
+ /**
22088
+ * DefaultApi - axios parameter creator
22089
+ * @export
22090
+ */
22091
+ export const DefaultApiAxiosParamCreator = function (configuration) {
22092
+ return {
22093
+ /**
22094
+ *
22095
+ * @param {*} [options] Override http request option.
22096
+ * @throws {RequiredError}
22097
+ */
22098
+ adminStoresXStoreIDSearchGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
22099
+ const localVarPath = `/admin/stores/{xStoreID}/search`;
22100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22102
+ let baseOptions;
22103
+ if (configuration) {
22104
+ baseOptions = configuration.baseOptions;
22105
+ }
22106
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
22107
+ const localVarHeaderParameter = {};
22108
+ const localVarQueryParameter = {};
22109
+ // authentication BearerAuth required
22110
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
22111
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22113
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22114
+ return {
22115
+ url: toPathString(localVarUrlObj),
22116
+ options: localVarRequestOptions,
22117
+ };
22118
+ }),
22119
+ };
22120
+ };
22121
+ /**
22122
+ * DefaultApi - functional programming interface
22123
+ * @export
22124
+ */
22125
+ export const DefaultApiFp = function (configuration) {
22126
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
22127
+ return {
22128
+ /**
22129
+ *
22130
+ * @param {*} [options] Override http request option.
22131
+ * @throws {RequiredError}
22132
+ */
22133
+ adminStoresXStoreIDSearchGet(options) {
22134
+ return __awaiter(this, void 0, void 0, function* () {
22135
+ var _a, _b, _c;
22136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDSearchGet(options);
22137
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
22138
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.adminStoresXStoreIDSearchGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
22139
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22140
+ });
22141
+ },
22142
+ };
22143
+ };
22144
+ /**
22145
+ * DefaultApi - factory interface
22146
+ * @export
22147
+ */
22148
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
22149
+ const localVarFp = DefaultApiFp(configuration);
22150
+ return {
22151
+ /**
22152
+ *
22153
+ * @param {*} [options] Override http request option.
22154
+ * @throws {RequiredError}
22155
+ */
22156
+ adminStoresXStoreIDSearchGet(options) {
22157
+ return localVarFp.adminStoresXStoreIDSearchGet(options).then((request) => request(axios, basePath));
22158
+ },
22159
+ };
22160
+ };
22161
+ /**
22162
+ * DefaultApi - object-oriented interface
22163
+ * @export
22164
+ * @class DefaultApi
22165
+ * @extends {BaseAPI}
22166
+ */
22167
+ export class DefaultApi extends BaseAPI {
22168
+ /**
22169
+ *
22170
+ * @param {*} [options] Override http request option.
22171
+ * @throws {RequiredError}
22172
+ * @memberof DefaultApi
22173
+ */
22174
+ adminStoresXStoreIDSearchGet(options) {
22175
+ return DefaultApiFp(this.configuration).adminStoresXStoreIDSearchGet(options).then((request) => request(this.axios, this.basePath));
22176
+ }
22177
+ }
22087
22178
  /**
22088
22179
  * DefaultMenuManagementApi - axios parameter creator
22089
22180
  * @export
@@ -22328,6 +22419,68 @@ export const DocumentationApiAxiosParamCreator = function (configuration) {
22328
22419
  options: localVarRequestOptions,
22329
22420
  };
22330
22421
  }),
22422
+ /**
22423
+ * Creates the \"docs\" Typesense collection with the correct schema if missing or outdated. No DB change; store must already have index \"docs\". Requires X-Docs-API-Key header.
22424
+ * @summary Create or fix docs collection
22425
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22426
+ * @param {*} [options] Override http request option.
22427
+ * @throws {RequiredError}
22428
+ */
22429
+ v1DocsInitCollectionPost: (xDocsAPIKey_1, ...args_1) => __awaiter(this, [xDocsAPIKey_1, ...args_1], void 0, function* (xDocsAPIKey, options = {}) {
22430
+ // verify required parameter 'xDocsAPIKey' is not null or undefined
22431
+ assertParamExists('v1DocsInitCollectionPost', 'xDocsAPIKey', xDocsAPIKey);
22432
+ const localVarPath = `/v1/docs/init-collection`;
22433
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22434
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22435
+ let baseOptions;
22436
+ if (configuration) {
22437
+ baseOptions = configuration.baseOptions;
22438
+ }
22439
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22440
+ const localVarHeaderParameter = {};
22441
+ const localVarQueryParameter = {};
22442
+ if (xDocsAPIKey != null) {
22443
+ localVarHeaderParameter['X-Docs-API-Key'] = String(xDocsAPIKey);
22444
+ }
22445
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22447
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22448
+ return {
22449
+ url: toPathString(localVarUrlObj),
22450
+ options: localVarRequestOptions,
22451
+ };
22452
+ }),
22453
+ /**
22454
+ * Deletes the existing docs collection and the collection the alias \"docs\" points to (if any). Run the scraper (POST /v1/docs/scrape) against DOCS_URL (e.g. stage-docs.seekora.ai) to create a new collection with infix enabled. Requires X-Docs-API-Key header.
22455
+ * @summary Recreate docs collection for infix search
22456
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22457
+ * @param {*} [options] Override http request option.
22458
+ * @throws {RequiredError}
22459
+ */
22460
+ v1DocsRecreateCollectionPost: (xDocsAPIKey_1, ...args_1) => __awaiter(this, [xDocsAPIKey_1, ...args_1], void 0, function* (xDocsAPIKey, options = {}) {
22461
+ // verify required parameter 'xDocsAPIKey' is not null or undefined
22462
+ assertParamExists('v1DocsRecreateCollectionPost', 'xDocsAPIKey', xDocsAPIKey);
22463
+ const localVarPath = `/v1/docs/recreate-collection`;
22464
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22465
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22466
+ let baseOptions;
22467
+ if (configuration) {
22468
+ baseOptions = configuration.baseOptions;
22469
+ }
22470
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22471
+ const localVarHeaderParameter = {};
22472
+ const localVarQueryParameter = {};
22473
+ if (xDocsAPIKey != null) {
22474
+ localVarHeaderParameter['X-Docs-API-Key'] = String(xDocsAPIKey);
22475
+ }
22476
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22479
+ return {
22480
+ url: toPathString(localVarUrlObj),
22481
+ options: localVarRequestOptions,
22482
+ };
22483
+ }),
22331
22484
  /**
22332
22485
  * Scrapes the documentation site and indexes all pages in Typesense. Requires X-Docs-API-Key header. Returns 404 if API key is missing or invalid.
22333
22486
  * @summary Scrape and index documentation
@@ -22502,6 +22655,38 @@ export const DocumentationApiFp = function (configuration) {
22502
22655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22503
22656
  });
22504
22657
  },
22658
+ /**
22659
+ * Creates the \"docs\" Typesense collection with the correct schema if missing or outdated. No DB change; store must already have index \"docs\". Requires X-Docs-API-Key header.
22660
+ * @summary Create or fix docs collection
22661
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22662
+ * @param {*} [options] Override http request option.
22663
+ * @throws {RequiredError}
22664
+ */
22665
+ v1DocsInitCollectionPost(xDocsAPIKey, options) {
22666
+ return __awaiter(this, void 0, void 0, function* () {
22667
+ var _a, _b, _c;
22668
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DocsInitCollectionPost(xDocsAPIKey, options);
22669
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
22670
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentationApi.v1DocsInitCollectionPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
22671
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22672
+ });
22673
+ },
22674
+ /**
22675
+ * Deletes the existing docs collection and the collection the alias \"docs\" points to (if any). Run the scraper (POST /v1/docs/scrape) against DOCS_URL (e.g. stage-docs.seekora.ai) to create a new collection with infix enabled. Requires X-Docs-API-Key header.
22676
+ * @summary Recreate docs collection for infix search
22677
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22678
+ * @param {*} [options] Override http request option.
22679
+ * @throws {RequiredError}
22680
+ */
22681
+ v1DocsRecreateCollectionPost(xDocsAPIKey, options) {
22682
+ return __awaiter(this, void 0, void 0, function* () {
22683
+ var _a, _b, _c;
22684
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DocsRecreateCollectionPost(xDocsAPIKey, options);
22685
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
22686
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentationApi.v1DocsRecreateCollectionPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
22687
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22688
+ });
22689
+ },
22505
22690
  /**
22506
22691
  * Scrapes the documentation site and indexes all pages in Typesense. Requires X-Docs-API-Key header. Returns 404 if API key is missing or invalid.
22507
22692
  * @summary Scrape and index documentation
@@ -22598,6 +22783,26 @@ export const DocumentationApiFactory = function (configuration, basePath, axios)
22598
22783
  v1DocsIndexPost(xDocsAPIKey, requestBody, options) {
22599
22784
  return localVarFp.v1DocsIndexPost(xDocsAPIKey, requestBody, options).then((request) => request(axios, basePath));
22600
22785
  },
22786
+ /**
22787
+ * Creates the \"docs\" Typesense collection with the correct schema if missing or outdated. No DB change; store must already have index \"docs\". Requires X-Docs-API-Key header.
22788
+ * @summary Create or fix docs collection
22789
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22790
+ * @param {*} [options] Override http request option.
22791
+ * @throws {RequiredError}
22792
+ */
22793
+ v1DocsInitCollectionPost(xDocsAPIKey, options) {
22794
+ return localVarFp.v1DocsInitCollectionPost(xDocsAPIKey, options).then((request) => request(axios, basePath));
22795
+ },
22796
+ /**
22797
+ * Deletes the existing docs collection and the collection the alias \"docs\" points to (if any). Run the scraper (POST /v1/docs/scrape) against DOCS_URL (e.g. stage-docs.seekora.ai) to create a new collection with infix enabled. Requires X-Docs-API-Key header.
22798
+ * @summary Recreate docs collection for infix search
22799
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22800
+ * @param {*} [options] Override http request option.
22801
+ * @throws {RequiredError}
22802
+ */
22803
+ v1DocsRecreateCollectionPost(xDocsAPIKey, options) {
22804
+ return localVarFp.v1DocsRecreateCollectionPost(xDocsAPIKey, options).then((request) => request(axios, basePath));
22805
+ },
22601
22806
  /**
22602
22807
  * Scrapes the documentation site and indexes all pages in Typesense. Requires X-Docs-API-Key header. Returns 404 if API key is missing or invalid.
22603
22808
  * @summary Scrape and index documentation
@@ -22672,6 +22877,28 @@ export class DocumentationApi extends BaseAPI {
22672
22877
  v1DocsIndexPost(xDocsAPIKey, requestBody, options) {
22673
22878
  return DocumentationApiFp(this.configuration).v1DocsIndexPost(xDocsAPIKey, requestBody, options).then((request) => request(this.axios, this.basePath));
22674
22879
  }
22880
+ /**
22881
+ * Creates the \"docs\" Typesense collection with the correct schema if missing or outdated. No DB change; store must already have index \"docs\". Requires X-Docs-API-Key header.
22882
+ * @summary Create or fix docs collection
22883
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22884
+ * @param {*} [options] Override http request option.
22885
+ * @throws {RequiredError}
22886
+ * @memberof DocumentationApi
22887
+ */
22888
+ v1DocsInitCollectionPost(xDocsAPIKey, options) {
22889
+ return DocumentationApiFp(this.configuration).v1DocsInitCollectionPost(xDocsAPIKey, options).then((request) => request(this.axios, this.basePath));
22890
+ }
22891
+ /**
22892
+ * Deletes the existing docs collection and the collection the alias \"docs\" points to (if any). Run the scraper (POST /v1/docs/scrape) against DOCS_URL (e.g. stage-docs.seekora.ai) to create a new collection with infix enabled. Requires X-Docs-API-Key header.
22893
+ * @summary Recreate docs collection for infix search
22894
+ * @param {string} xDocsAPIKey Documentation API Secret Key
22895
+ * @param {*} [options] Override http request option.
22896
+ * @throws {RequiredError}
22897
+ * @memberof DocumentationApi
22898
+ */
22899
+ v1DocsRecreateCollectionPost(xDocsAPIKey, options) {
22900
+ return DocumentationApiFp(this.configuration).v1DocsRecreateCollectionPost(xDocsAPIKey, options).then((request) => request(this.axios, this.basePath));
22901
+ }
22675
22902
  /**
22676
22903
  * Scrapes the documentation site and indexes all pages in Typesense. Requires X-Docs-API-Key header. Returns 404 if API key is missing or invalid.
22677
22904
  * @summary Scrape and index documentation
@@ -44372,6 +44599,100 @@ export const StoresApiAxiosParamCreator = function (configuration) {
44372
44599
  options: localVarRequestOptions,
44373
44600
  };
44374
44601
  }),
44602
+ /**
44603
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
44604
+ * @summary Invalidate store caches
44605
+ * @param {string} xStoreID X-Store ID
44606
+ * @param {string} xStoreID2 X-Store ID
44607
+ * @param {string} [query] Search query (empty returns all results)
44608
+ * @param {number} [page] Page number
44609
+ * @param {number} [pageSize] Page size
44610
+ * @param {*} [options] Override http request option.
44611
+ * @throws {RequiredError}
44612
+ */
44613
+ adminStoresXStoreIDCacheInvalidatePost: (xStoreID_1, xStoreID2_1, query_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [xStoreID_1, xStoreID2_1, query_1, page_1, pageSize_1, ...args_1], void 0, function* (xStoreID, xStoreID2, query, page, pageSize, options = {}) {
44614
+ // verify required parameter 'xStoreID' is not null or undefined
44615
+ assertParamExists('adminStoresXStoreIDCacheInvalidatePost', 'xStoreID', xStoreID);
44616
+ // verify required parameter 'xStoreID2' is not null or undefined
44617
+ assertParamExists('adminStoresXStoreIDCacheInvalidatePost', 'xStoreID2', xStoreID2);
44618
+ const localVarPath = `/admin/stores/{xStoreID}/cache/invalidate`
44619
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
44620
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID2)));
44621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44622
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44623
+ let baseOptions;
44624
+ if (configuration) {
44625
+ baseOptions = configuration.baseOptions;
44626
+ }
44627
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
44628
+ const localVarHeaderParameter = {};
44629
+ const localVarQueryParameter = {};
44630
+ // authentication BearerAuth required
44631
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
44632
+ if (query !== undefined) {
44633
+ localVarQueryParameter['query'] = query;
44634
+ }
44635
+ if (page !== undefined) {
44636
+ localVarQueryParameter['page'] = page;
44637
+ }
44638
+ if (pageSize !== undefined) {
44639
+ localVarQueryParameter['pageSize'] = pageSize;
44640
+ }
44641
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44642
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44643
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
44644
+ return {
44645
+ url: toPathString(localVarUrlObj),
44646
+ options: localVarRequestOptions,
44647
+ };
44648
+ }),
44649
+ /**
44650
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
44651
+ * @summary Invalidate store caches
44652
+ * @param {string} xStoreID X-Store ID
44653
+ * @param {string} xStoreID2 X-Store ID
44654
+ * @param {string} [query] Search query (empty returns all results)
44655
+ * @param {number} [page] Page number
44656
+ * @param {number} [pageSize] Page size
44657
+ * @param {*} [options] Override http request option.
44658
+ * @throws {RequiredError}
44659
+ */
44660
+ adminStoresXStoreIDCacheInvalidatePost_1: (xStoreID_1, xStoreID2_1, query_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [xStoreID_1, xStoreID2_1, query_1, page_1, pageSize_1, ...args_1], void 0, function* (xStoreID, xStoreID2, query, page, pageSize, options = {}) {
44661
+ // verify required parameter 'xStoreID' is not null or undefined
44662
+ assertParamExists('adminStoresXStoreIDCacheInvalidatePost_1', 'xStoreID', xStoreID);
44663
+ // verify required parameter 'xStoreID2' is not null or undefined
44664
+ assertParamExists('adminStoresXStoreIDCacheInvalidatePost_1', 'xStoreID2', xStoreID2);
44665
+ const localVarPath = `/admin/stores/{xStoreID}/cache/invalidate`
44666
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
44667
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID2)));
44668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44670
+ let baseOptions;
44671
+ if (configuration) {
44672
+ baseOptions = configuration.baseOptions;
44673
+ }
44674
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
44675
+ const localVarHeaderParameter = {};
44676
+ const localVarQueryParameter = {};
44677
+ // authentication BearerAuth required
44678
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
44679
+ if (query !== undefined) {
44680
+ localVarQueryParameter['query'] = query;
44681
+ }
44682
+ if (page !== undefined) {
44683
+ localVarQueryParameter['page'] = page;
44684
+ }
44685
+ if (pageSize !== undefined) {
44686
+ localVarQueryParameter['pageSize'] = pageSize;
44687
+ }
44688
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44690
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
44691
+ return {
44692
+ url: toPathString(localVarUrlObj),
44693
+ options: localVarRequestOptions,
44694
+ };
44695
+ }),
44375
44696
  /**
44376
44697
  * Retrieves the store configuration using x-store ID, including onboarding status validation
44377
44698
  * @summary Get Store Config
@@ -44602,49 +44923,6 @@ export const StoresApiAxiosParamCreator = function (configuration) {
44602
44923
  options: localVarRequestOptions,
44603
44924
  };
44604
44925
  }),
44605
- /**
44606
- * Perform search on a specific store by xStoreID. Empty query string returns all results.
44607
- * @summary Get store search results
44608
- * @param {string} xStoreID X-Store ID
44609
- * @param {string} [query] Search query (empty returns all results)
44610
- * @param {number} [page] Page number
44611
- * @param {number} [pageSize] Page size
44612
- * @param {*} [options] Override http request option.
44613
- * @throws {RequiredError}
44614
- */
44615
- adminStoresXStoreIDSearchGet: (xStoreID_1, query_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [xStoreID_1, query_1, page_1, pageSize_1, ...args_1], void 0, function* (xStoreID, query, page, pageSize, options = {}) {
44616
- // verify required parameter 'xStoreID' is not null or undefined
44617
- assertParamExists('adminStoresXStoreIDSearchGet', 'xStoreID', xStoreID);
44618
- const localVarPath = `/admin/stores/{xStoreID}/search`
44619
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
44620
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44621
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44622
- let baseOptions;
44623
- if (configuration) {
44624
- baseOptions = configuration.baseOptions;
44625
- }
44626
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
44627
- const localVarHeaderParameter = {};
44628
- const localVarQueryParameter = {};
44629
- // authentication BearerAuth required
44630
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
44631
- if (query !== undefined) {
44632
- localVarQueryParameter['query'] = query;
44633
- }
44634
- if (page !== undefined) {
44635
- localVarQueryParameter['page'] = page;
44636
- }
44637
- if (pageSize !== undefined) {
44638
- localVarQueryParameter['pageSize'] = pageSize;
44639
- }
44640
- setSearchParams(localVarUrlObj, localVarQueryParameter);
44641
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44642
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
44643
- return {
44644
- url: toPathString(localVarUrlObj),
44645
- options: localVarRequestOptions,
44646
- };
44647
- }),
44648
44926
  /**
44649
44927
  * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
44650
44928
  * @summary Update store step configuration
@@ -44950,6 +45228,46 @@ export const StoresApiFp = function (configuration) {
44950
45228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44951
45229
  });
44952
45230
  },
45231
+ /**
45232
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
45233
+ * @summary Invalidate store caches
45234
+ * @param {string} xStoreID X-Store ID
45235
+ * @param {string} xStoreID2 X-Store ID
45236
+ * @param {string} [query] Search query (empty returns all results)
45237
+ * @param {number} [page] Page number
45238
+ * @param {number} [pageSize] Page size
45239
+ * @param {*} [options] Override http request option.
45240
+ * @throws {RequiredError}
45241
+ */
45242
+ adminStoresXStoreIDCacheInvalidatePost(xStoreID, xStoreID2, query, page, pageSize, options) {
45243
+ return __awaiter(this, void 0, void 0, function* () {
45244
+ var _a, _b, _c;
45245
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDCacheInvalidatePost(xStoreID, xStoreID2, query, page, pageSize, options);
45246
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
45247
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDCacheInvalidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
45248
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45249
+ });
45250
+ },
45251
+ /**
45252
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
45253
+ * @summary Invalidate store caches
45254
+ * @param {string} xStoreID X-Store ID
45255
+ * @param {string} xStoreID2 X-Store ID
45256
+ * @param {string} [query] Search query (empty returns all results)
45257
+ * @param {number} [page] Page number
45258
+ * @param {number} [pageSize] Page size
45259
+ * @param {*} [options] Override http request option.
45260
+ * @throws {RequiredError}
45261
+ */
45262
+ adminStoresXStoreIDCacheInvalidatePost_1(xStoreID, xStoreID2, query, page, pageSize, options) {
45263
+ return __awaiter(this, void 0, void 0, function* () {
45264
+ var _a, _b, _c;
45265
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDCacheInvalidatePost_1(xStoreID, xStoreID2, query, page, pageSize, options);
45266
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
45267
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDCacheInvalidatePost_1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
45268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45269
+ });
45270
+ },
44953
45271
  /**
44954
45272
  * Retrieves the store configuration using x-store ID, including onboarding status validation
44955
45273
  * @summary Get Store Config
@@ -45065,25 +45383,6 @@ export const StoresApiFp = function (configuration) {
45065
45383
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45066
45384
  });
45067
45385
  },
45068
- /**
45069
- * Perform search on a specific store by xStoreID. Empty query string returns all results.
45070
- * @summary Get store search results
45071
- * @param {string} xStoreID X-Store ID
45072
- * @param {string} [query] Search query (empty returns all results)
45073
- * @param {number} [page] Page number
45074
- * @param {number} [pageSize] Page size
45075
- * @param {*} [options] Override http request option.
45076
- * @throws {RequiredError}
45077
- */
45078
- adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options) {
45079
- return __awaiter(this, void 0, void 0, function* () {
45080
- var _a, _b, _c;
45081
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options);
45082
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
45083
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDSearchGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
45084
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45085
- });
45086
- },
45087
45386
  /**
45088
45387
  * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
45089
45388
  * @summary Update store step configuration
@@ -45274,6 +45573,34 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
45274
45573
  adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, statusCode, endpointType, responseTime, page, perPage, options) {
45275
45574
  return localVarFp.adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, statusCode, endpointType, responseTime, page, perPage, options).then((request) => request(axios, basePath));
45276
45575
  },
45576
+ /**
45577
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
45578
+ * @summary Invalidate store caches
45579
+ * @param {string} xStoreID X-Store ID
45580
+ * @param {string} xStoreID2 X-Store ID
45581
+ * @param {string} [query] Search query (empty returns all results)
45582
+ * @param {number} [page] Page number
45583
+ * @param {number} [pageSize] Page size
45584
+ * @param {*} [options] Override http request option.
45585
+ * @throws {RequiredError}
45586
+ */
45587
+ adminStoresXStoreIDCacheInvalidatePost(xStoreID, xStoreID2, query, page, pageSize, options) {
45588
+ return localVarFp.adminStoresXStoreIDCacheInvalidatePost(xStoreID, xStoreID2, query, page, pageSize, options).then((request) => request(axios, basePath));
45589
+ },
45590
+ /**
45591
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
45592
+ * @summary Invalidate store caches
45593
+ * @param {string} xStoreID X-Store ID
45594
+ * @param {string} xStoreID2 X-Store ID
45595
+ * @param {string} [query] Search query (empty returns all results)
45596
+ * @param {number} [page] Page number
45597
+ * @param {number} [pageSize] Page size
45598
+ * @param {*} [options] Override http request option.
45599
+ * @throws {RequiredError}
45600
+ */
45601
+ adminStoresXStoreIDCacheInvalidatePost_1(xStoreID, xStoreID2, query, page, pageSize, options) {
45602
+ return localVarFp.adminStoresXStoreIDCacheInvalidatePost_1(xStoreID, xStoreID2, query, page, pageSize, options).then((request) => request(axios, basePath));
45603
+ },
45277
45604
  /**
45278
45605
  * Retrieves the store configuration using x-store ID, including onboarding status validation
45279
45606
  * @summary Get Store Config
@@ -45347,19 +45674,6 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
45347
45674
  adminStoresXStoreIDSchemaOptionsGet(xStoreID, options) {
45348
45675
  return localVarFp.adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(axios, basePath));
45349
45676
  },
45350
- /**
45351
- * Perform search on a specific store by xStoreID. Empty query string returns all results.
45352
- * @summary Get store search results
45353
- * @param {string} xStoreID X-Store ID
45354
- * @param {string} [query] Search query (empty returns all results)
45355
- * @param {number} [page] Page number
45356
- * @param {number} [pageSize] Page size
45357
- * @param {*} [options] Override http request option.
45358
- * @throws {RequiredError}
45359
- */
45360
- adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options) {
45361
- return localVarFp.adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options).then((request) => request(axios, basePath));
45362
- },
45363
45677
  /**
45364
45678
  * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
45365
45679
  * @summary Update store step configuration
@@ -45551,6 +45865,36 @@ export class StoresApi extends BaseAPI {
45551
45865
  adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, statusCode, endpointType, responseTime, page, perPage, options) {
45552
45866
  return StoresApiFp(this.configuration).adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, statusCode, endpointType, responseTime, page, perPage, options).then((request) => request(this.axios, this.basePath));
45553
45867
  }
45868
+ /**
45869
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
45870
+ * @summary Invalidate store caches
45871
+ * @param {string} xStoreID X-Store ID
45872
+ * @param {string} xStoreID2 X-Store ID
45873
+ * @param {string} [query] Search query (empty returns all results)
45874
+ * @param {number} [page] Page number
45875
+ * @param {number} [pageSize] Page size
45876
+ * @param {*} [options] Override http request option.
45877
+ * @throws {RequiredError}
45878
+ * @memberof StoresApi
45879
+ */
45880
+ adminStoresXStoreIDCacheInvalidatePost(xStoreID, xStoreID2, query, page, pageSize, options) {
45881
+ return StoresApiFp(this.configuration).adminStoresXStoreIDCacheInvalidatePost(xStoreID, xStoreID2, query, page, pageSize, options).then((request) => request(this.axios, this.basePath));
45882
+ }
45883
+ /**
45884
+ * Perform search on a specific store by xStoreID. Empty query string returns all results. Invalidates Redis caches for the store (store_by_xstoreid, store_search_config, store_creation_progress_config). Use after updating store creation steps so search and config reads see fresh data.
45885
+ * @summary Invalidate store caches
45886
+ * @param {string} xStoreID X-Store ID
45887
+ * @param {string} xStoreID2 X-Store ID
45888
+ * @param {string} [query] Search query (empty returns all results)
45889
+ * @param {number} [page] Page number
45890
+ * @param {number} [pageSize] Page size
45891
+ * @param {*} [options] Override http request option.
45892
+ * @throws {RequiredError}
45893
+ * @memberof StoresApi
45894
+ */
45895
+ adminStoresXStoreIDCacheInvalidatePost_1(xStoreID, xStoreID2, query, page, pageSize, options) {
45896
+ return StoresApiFp(this.configuration).adminStoresXStoreIDCacheInvalidatePost_1(xStoreID, xStoreID2, query, page, pageSize, options).then((request) => request(this.axios, this.basePath));
45897
+ }
45554
45898
  /**
45555
45899
  * Retrieves the store configuration using x-store ID, including onboarding status validation
45556
45900
  * @summary Get Store Config
@@ -45631,20 +45975,6 @@ export class StoresApi extends BaseAPI {
45631
45975
  adminStoresXStoreIDSchemaOptionsGet(xStoreID, options) {
45632
45976
  return StoresApiFp(this.configuration).adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
45633
45977
  }
45634
- /**
45635
- * Perform search on a specific store by xStoreID. Empty query string returns all results.
45636
- * @summary Get store search results
45637
- * @param {string} xStoreID X-Store ID
45638
- * @param {string} [query] Search query (empty returns all results)
45639
- * @param {number} [page] Page number
45640
- * @param {number} [pageSize] Page size
45641
- * @param {*} [options] Override http request option.
45642
- * @throws {RequiredError}
45643
- * @memberof StoresApi
45644
- */
45645
- adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options) {
45646
- return StoresApiFp(this.configuration).adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options).then((request) => request(this.axios, this.basePath));
45647
- }
45648
45978
  /**
45649
45979
  * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
45650
45980
  * @summary Update store step configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.78",
3
+ "version": "1.1.79",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file