@seekora-ai/admin-api 1.0.17 → 1.0.18

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/api.js CHANGED
@@ -8176,18 +8176,18 @@ const SearchApiAxiosParamCreator = function (configuration) {
8176
8176
  /**
8177
8177
  * Search documents with optional configuration override and autocomplete suggestions
8178
8178
  * @summary Admin Search API
8179
- * @param {number} storeid Store ID
8179
+ * @param {string} xStoreID X-Store ID
8180
8180
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8181
8181
  * @param {*} [options] Override http request option.
8182
8182
  * @throws {RequiredError}
8183
8183
  */
8184
- adminV1SearchStoreidPost: (storeid_1, body_1, ...args_1) => __awaiter(this, [storeid_1, body_1, ...args_1], void 0, function* (storeid, body, options = {}) {
8185
- // verify required parameter 'storeid' is not null or undefined
8186
- (0, common_1.assertParamExists)('adminV1SearchStoreidPost', 'storeid', storeid);
8184
+ adminV1SearchXStoreIDPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
8185
+ // verify required parameter 'xStoreID' is not null or undefined
8186
+ (0, common_1.assertParamExists)('adminV1SearchXStoreIDPost', 'xStoreID', xStoreID);
8187
8187
  // verify required parameter 'body' is not null or undefined
8188
- (0, common_1.assertParamExists)('adminV1SearchStoreidPost', 'body', body);
8189
- const localVarPath = `/admin/v1/search/{storeid}`
8190
- .replace(`{${"storeid"}}`, encodeURIComponent(String(storeid)));
8188
+ (0, common_1.assertParamExists)('adminV1SearchXStoreIDPost', 'body', body);
8189
+ const localVarPath = `/admin/v1/search/{xStoreID}`
8190
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8191
8191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8192
8192
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8193
8193
  let baseOptions;
@@ -8423,17 +8423,17 @@ const SearchApiFp = function (configuration) {
8423
8423
  /**
8424
8424
  * Search documents with optional configuration override and autocomplete suggestions
8425
8425
  * @summary Admin Search API
8426
- * @param {number} storeid Store ID
8426
+ * @param {string} xStoreID X-Store ID
8427
8427
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8428
8428
  * @param {*} [options] Override http request option.
8429
8429
  * @throws {RequiredError}
8430
8430
  */
8431
- adminV1SearchStoreidPost(storeid, body, options) {
8431
+ adminV1SearchXStoreIDPost(xStoreID, body, options) {
8432
8432
  return __awaiter(this, void 0, void 0, function* () {
8433
8433
  var _a, _b, _c;
8434
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchStoreidPost(storeid, body, options);
8434
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchXStoreIDPost(xStoreID, body, options);
8435
8435
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8436
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.adminV1SearchStoreidPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8436
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.adminV1SearchXStoreIDPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8437
8437
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8438
8438
  });
8439
8439
  },
@@ -8551,13 +8551,13 @@ const SearchApiFactory = function (configuration, basePath, axios) {
8551
8551
  /**
8552
8552
  * Search documents with optional configuration override and autocomplete suggestions
8553
8553
  * @summary Admin Search API
8554
- * @param {number} storeid Store ID
8554
+ * @param {string} xStoreID X-Store ID
8555
8555
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8556
8556
  * @param {*} [options] Override http request option.
8557
8557
  * @throws {RequiredError}
8558
8558
  */
8559
- adminV1SearchStoreidPost(storeid, body, options) {
8560
- return localVarFp.adminV1SearchStoreidPost(storeid, body, options).then((request) => request(axios, basePath));
8559
+ adminV1SearchXStoreIDPost(xStoreID, body, options) {
8560
+ return localVarFp.adminV1SearchXStoreIDPost(xStoreID, body, options).then((request) => request(axios, basePath));
8561
8561
  },
8562
8562
  /**
8563
8563
  * Get metadata about all configurable fields for dynamic form generation
@@ -8637,14 +8637,14 @@ class SearchApi extends base_1.BaseAPI {
8637
8637
  /**
8638
8638
  * Search documents with optional configuration override and autocomplete suggestions
8639
8639
  * @summary Admin Search API
8640
- * @param {number} storeid Store ID
8640
+ * @param {string} xStoreID X-Store ID
8641
8641
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8642
8642
  * @param {*} [options] Override http request option.
8643
8643
  * @throws {RequiredError}
8644
8644
  * @memberof SearchApi
8645
8645
  */
8646
- adminV1SearchStoreidPost(storeid, body, options) {
8647
- return (0, exports.SearchApiFp)(this.configuration).adminV1SearchStoreidPost(storeid, body, options).then((request) => request(this.axios, this.basePath));
8646
+ adminV1SearchXStoreIDPost(xStoreID, body, options) {
8647
+ return (0, exports.SearchApiFp)(this.configuration).adminV1SearchXStoreIDPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
8648
8648
  }
8649
8649
  /**
8650
8650
  * Get metadata about all configurable fields for dynamic form generation
@@ -8725,6 +8725,33 @@ exports.SearchApi = SearchApi;
8725
8725
  */
8726
8726
  const StoresApiAxiosParamCreator = function (configuration) {
8727
8727
  return {
8728
+ /**
8729
+ * Fetches list of all stores for the authenticated user\'s organization
8730
+ * @summary Fetches list of all stores
8731
+ * @param {*} [options] Override http request option.
8732
+ * @throws {RequiredError}
8733
+ */
8734
+ adminStoresGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8735
+ const localVarPath = `/admin/Stores`;
8736
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8737
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8738
+ let baseOptions;
8739
+ if (configuration) {
8740
+ baseOptions = configuration.baseOptions;
8741
+ }
8742
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8743
+ const localVarHeaderParameter = {};
8744
+ const localVarQueryParameter = {};
8745
+ // authentication BearerAuth required
8746
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8747
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8748
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8749
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8750
+ return {
8751
+ url: (0, common_1.toPathString)(localVarUrlObj),
8752
+ options: localVarRequestOptions,
8753
+ };
8754
+ }),
8728
8755
  /**
8729
8756
  * Fetches stores by id
8730
8757
  * @summary Fetches stores by id
@@ -8757,17 +8784,17 @@ const StoresApiAxiosParamCreator = function (configuration) {
8757
8784
  };
8758
8785
  }),
8759
8786
  /**
8760
- * Fetches list of all stores
8761
- * @summary Fetches list of all stores
8762
- * @param {number} orgId Org ID
8787
+ * Fetches stores by xStoreID
8788
+ * @summary Fetches stores by xStoreID
8789
+ * @param {string} xStoreID X-Store ID
8763
8790
  * @param {*} [options] Override http request option.
8764
8791
  * @throws {RequiredError}
8765
8792
  */
8766
- adminStoresOrgIdGet: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
8767
- // verify required parameter 'orgId' is not null or undefined
8768
- (0, common_1.assertParamExists)('adminStoresOrgIdGet', 'orgId', orgId);
8769
- const localVarPath = `/admin/Stores/{OrgId}`
8770
- .replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)));
8793
+ adminStoresGetStoreXStoreIDGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
8794
+ // verify required parameter 'xStoreID' is not null or undefined
8795
+ (0, common_1.assertParamExists)('adminStoresGetStoreXStoreIDGet', 'xStoreID', xStoreID);
8796
+ const localVarPath = `/admin/Stores/GetStore/{xStoreID}`
8797
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8771
8798
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8772
8799
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8773
8800
  let baseOptions;
@@ -8820,16 +8847,19 @@ const StoresApiAxiosParamCreator = function (configuration) {
8820
8847
  };
8821
8848
  }),
8822
8849
  /**
8823
- * Retrieves the store configuration
8824
- * @summary Get Store Config
8825
- * @param {number} storeID Store ID
8850
+ * Updates store information by ID.
8851
+ * @summary Update an existing store
8852
+ * @param {number} storeID store ID
8853
+ * @param {DataTypesStoreRequestDto} store Store data to update
8826
8854
  * @param {*} [options] Override http request option.
8827
8855
  * @throws {RequiredError}
8828
8856
  */
8829
- adminStoresStoreIDConfigGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8857
+ adminStoresStoreIDPut: (storeID_1, store_1, ...args_1) => __awaiter(this, [storeID_1, store_1, ...args_1], void 0, function* (storeID, store, options = {}) {
8830
8858
  // verify required parameter 'storeID' is not null or undefined
8831
- (0, common_1.assertParamExists)('adminStoresStoreIDConfigGet', 'storeID', storeID);
8832
- const localVarPath = `/admin/Stores/{storeID}/config`
8859
+ (0, common_1.assertParamExists)('adminStoresStoreIDPut', 'storeID', storeID);
8860
+ // verify required parameter 'store' is not null or undefined
8861
+ (0, common_1.assertParamExists)('adminStoresStoreIDPut', 'store', store);
8862
+ const localVarPath = `/admin/Stores/{storeID}`
8833
8863
  .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8834
8864
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8835
8865
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8837,34 +8867,37 @@ const StoresApiAxiosParamCreator = function (configuration) {
8837
8867
  if (configuration) {
8838
8868
  baseOptions = configuration.baseOptions;
8839
8869
  }
8840
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8870
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8841
8871
  const localVarHeaderParameter = {};
8842
8872
  const localVarQueryParameter = {};
8843
8873
  // authentication BearerAuth required
8844
8874
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8875
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8845
8876
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8846
8877
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8847
8878
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8879
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(store, localVarRequestOptions, configuration);
8848
8880
  return {
8849
8881
  url: (0, common_1.toPathString)(localVarUrlObj),
8850
8882
  options: localVarRequestOptions,
8851
8883
  };
8852
8884
  }),
8853
8885
  /**
8854
- * Updates the store configuration
8855
- * @summary Update Store Config
8856
- * @param {number} storeID Store ID
8857
- * @param {DataTypesIndexConfig} body Store configuration
8886
+ * Updates StoreStatus information by ID.
8887
+ * @summary Update an existing StoreStatus
8888
+ * @param {number} id Store ID
8889
+ * @param {boolean} status status
8858
8890
  * @param {*} [options] Override http request option.
8859
8891
  * @throws {RequiredError}
8860
8892
  */
8861
- adminStoresStoreIDConfigPut: (storeID_1, body_1, ...args_1) => __awaiter(this, [storeID_1, body_1, ...args_1], void 0, function* (storeID, body, options = {}) {
8862
- // verify required parameter 'storeID' is not null or undefined
8863
- (0, common_1.assertParamExists)('adminStoresStoreIDConfigPut', 'storeID', storeID);
8864
- // verify required parameter 'body' is not null or undefined
8865
- (0, common_1.assertParamExists)('adminStoresStoreIDConfigPut', 'body', body);
8866
- const localVarPath = `/admin/Stores/{storeID}/config`
8867
- .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8893
+ adminStoresUpdateStatusIdStatusPut: (id_1, status_1, ...args_1) => __awaiter(this, [id_1, status_1, ...args_1], void 0, function* (id, status, options = {}) {
8894
+ // verify required parameter 'id' is not null or undefined
8895
+ (0, common_1.assertParamExists)('adminStoresUpdateStatusIdStatusPut', 'id', id);
8896
+ // verify required parameter 'status' is not null or undefined
8897
+ (0, common_1.assertParamExists)('adminStoresUpdateStatusIdStatusPut', 'status', status);
8898
+ const localVarPath = `/admin/Stores/UpdateStatus/{id}/{status}`
8899
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
8900
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
8868
8901
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8869
8902
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8870
8903
  let baseOptions;
@@ -8876,28 +8909,26 @@ const StoresApiAxiosParamCreator = function (configuration) {
8876
8909
  const localVarQueryParameter = {};
8877
8910
  // authentication BearerAuth required
8878
8911
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8879
- localVarHeaderParameter['Content-Type'] = 'application/json';
8880
8912
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8881
8913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8882
8914
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8883
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8884
8915
  return {
8885
8916
  url: (0, common_1.toPathString)(localVarUrlObj),
8886
8917
  options: localVarRequestOptions,
8887
8918
  };
8888
8919
  }),
8889
8920
  /**
8890
- * Get metadata about all configurable fields for store configuration
8891
- * @summary Get Store Config Schema
8892
- * @param {number} storeID Store ID to get field options from
8921
+ * Retrieves the store configuration using x-store ID
8922
+ * @summary Get Store Config
8923
+ * @param {string} xStoreID X-Store ID
8893
8924
  * @param {*} [options] Override http request option.
8894
8925
  * @throws {RequiredError}
8895
8926
  */
8896
- adminStoresStoreIDConfigSchemaGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8897
- // verify required parameter 'storeID' is not null or undefined
8898
- (0, common_1.assertParamExists)('adminStoresStoreIDConfigSchemaGet', 'storeID', storeID);
8899
- const localVarPath = `/admin/Stores/{storeID}/config-schema`
8900
- .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8927
+ adminStoresXStoreIDConfigGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
8928
+ // verify required parameter 'xStoreID' is not null or undefined
8929
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigGet', 'xStoreID', xStoreID);
8930
+ const localVarPath = `/admin/Stores/{xStoreID}/config`
8931
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8901
8932
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8902
8933
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8903
8934
  let baseOptions;
@@ -8918,95 +8949,91 @@ const StoresApiAxiosParamCreator = function (configuration) {
8918
8949
  };
8919
8950
  }),
8920
8951
  /**
8921
- * Get default configuration values computed from the store\'s index schema
8922
- * @summary Get Store Schema-Based Defaults
8923
- * @param {number} storeID Store ID
8952
+ * Updates the store configuration using x-store ID
8953
+ * @summary Update Store Config
8954
+ * @param {string} xStoreID X-Store ID
8955
+ * @param {DataTypesIndexConfig} body Store configuration
8924
8956
  * @param {*} [options] Override http request option.
8925
8957
  * @throws {RequiredError}
8926
8958
  */
8927
- adminStoresStoreIDDefaultsGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8928
- // verify required parameter 'storeID' is not null or undefined
8929
- (0, common_1.assertParamExists)('adminStoresStoreIDDefaultsGet', 'storeID', storeID);
8930
- const localVarPath = `/admin/Stores/{storeID}/defaults`
8931
- .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8959
+ adminStoresXStoreIDConfigPut: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
8960
+ // verify required parameter 'xStoreID' is not null or undefined
8961
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigPut', 'xStoreID', xStoreID);
8962
+ // verify required parameter 'body' is not null or undefined
8963
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigPut', 'body', body);
8964
+ const localVarPath = `/admin/Stores/{xStoreID}/config`
8965
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8932
8966
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8933
8967
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8934
8968
  let baseOptions;
8935
8969
  if (configuration) {
8936
8970
  baseOptions = configuration.baseOptions;
8937
8971
  }
8938
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8972
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8939
8973
  const localVarHeaderParameter = {};
8940
8974
  const localVarQueryParameter = {};
8941
8975
  // authentication BearerAuth required
8942
8976
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8977
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8943
8978
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8944
8979
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8945
8980
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8981
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8946
8982
  return {
8947
8983
  url: (0, common_1.toPathString)(localVarUrlObj),
8948
8984
  options: localVarRequestOptions,
8949
8985
  };
8950
8986
  }),
8951
8987
  /**
8952
- * Updates store information by ID.
8953
- * @summary Update an existing store
8954
- * @param {number} storeID store ID
8955
- * @param {DataTypesStoreRequestDto} store Store data to update
8988
+ * Get metadata about all configurable fields for store configuration using x-store ID
8989
+ * @summary Get Store Config Schema
8990
+ * @param {string} xStoreID X-Store ID to get field options from
8956
8991
  * @param {*} [options] Override http request option.
8957
8992
  * @throws {RequiredError}
8958
8993
  */
8959
- adminStoresStoreIDPut: (storeID_1, store_1, ...args_1) => __awaiter(this, [storeID_1, store_1, ...args_1], void 0, function* (storeID, store, options = {}) {
8960
- // verify required parameter 'storeID' is not null or undefined
8961
- (0, common_1.assertParamExists)('adminStoresStoreIDPut', 'storeID', storeID);
8962
- // verify required parameter 'store' is not null or undefined
8963
- (0, common_1.assertParamExists)('adminStoresStoreIDPut', 'store', store);
8964
- const localVarPath = `/admin/Stores/{storeID}`
8965
- .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8994
+ adminStoresXStoreIDConfigSchemaGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
8995
+ // verify required parameter 'xStoreID' is not null or undefined
8996
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID);
8997
+ const localVarPath = `/admin/Stores/{xStoreID}/config-schema`
8998
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8966
8999
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8967
9000
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8968
9001
  let baseOptions;
8969
9002
  if (configuration) {
8970
9003
  baseOptions = configuration.baseOptions;
8971
9004
  }
8972
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
9005
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8973
9006
  const localVarHeaderParameter = {};
8974
9007
  const localVarQueryParameter = {};
8975
9008
  // authentication BearerAuth required
8976
9009
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8977
- localVarHeaderParameter['Content-Type'] = 'application/json';
8978
9010
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8979
9011
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8980
9012
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8981
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(store, localVarRequestOptions, configuration);
8982
9013
  return {
8983
9014
  url: (0, common_1.toPathString)(localVarUrlObj),
8984
9015
  options: localVarRequestOptions,
8985
9016
  };
8986
9017
  }),
8987
9018
  /**
8988
- * Updates StoreStatus information by ID.
8989
- * @summary Update an existing StoreStatus
8990
- * @param {number} id Store ID
8991
- * @param {boolean} status status
9019
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9020
+ * @summary Get Store Schema-Based Defaults
9021
+ * @param {string} xStoreID X-Store ID
8992
9022
  * @param {*} [options] Override http request option.
8993
9023
  * @throws {RequiredError}
8994
9024
  */
8995
- adminStoresUpdateStatusIdStatusPut: (id_1, status_1, ...args_1) => __awaiter(this, [id_1, status_1, ...args_1], void 0, function* (id, status, options = {}) {
8996
- // verify required parameter 'id' is not null or undefined
8997
- (0, common_1.assertParamExists)('adminStoresUpdateStatusIdStatusPut', 'id', id);
8998
- // verify required parameter 'status' is not null or undefined
8999
- (0, common_1.assertParamExists)('adminStoresUpdateStatusIdStatusPut', 'status', status);
9000
- const localVarPath = `/admin/Stores/UpdateStatus/{id}/{status}`
9001
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
9002
- .replace(`{${"status"}}`, encodeURIComponent(String(status)));
9025
+ adminStoresXStoreIDDefaultsGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
9026
+ // verify required parameter 'xStoreID' is not null or undefined
9027
+ (0, common_1.assertParamExists)('adminStoresXStoreIDDefaultsGet', 'xStoreID', xStoreID);
9028
+ const localVarPath = `/admin/Stores/{xStoreID}/defaults`
9029
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
9003
9030
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9004
9031
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9005
9032
  let baseOptions;
9006
9033
  if (configuration) {
9007
9034
  baseOptions = configuration.baseOptions;
9008
9035
  }
9009
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
9036
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9010
9037
  const localVarHeaderParameter = {};
9011
9038
  const localVarQueryParameter = {};
9012
9039
  // authentication BearerAuth required
@@ -9029,6 +9056,21 @@ exports.StoresApiAxiosParamCreator = StoresApiAxiosParamCreator;
9029
9056
  const StoresApiFp = function (configuration) {
9030
9057
  const localVarAxiosParamCreator = (0, exports.StoresApiAxiosParamCreator)(configuration);
9031
9058
  return {
9059
+ /**
9060
+ * Fetches list of all stores for the authenticated user\'s organization
9061
+ * @summary Fetches list of all stores
9062
+ * @param {*} [options] Override http request option.
9063
+ * @throws {RequiredError}
9064
+ */
9065
+ adminStoresGet(options) {
9066
+ return __awaiter(this, void 0, void 0, function* () {
9067
+ var _a, _b, _c;
9068
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGet(options);
9069
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9070
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9071
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9072
+ });
9073
+ },
9032
9074
  /**
9033
9075
  * Fetches stores by id
9034
9076
  * @summary Fetches stores by id
@@ -9046,18 +9088,18 @@ const StoresApiFp = function (configuration) {
9046
9088
  });
9047
9089
  },
9048
9090
  /**
9049
- * Fetches list of all stores
9050
- * @summary Fetches list of all stores
9051
- * @param {number} orgId Org ID
9091
+ * Fetches stores by xStoreID
9092
+ * @summary Fetches stores by xStoreID
9093
+ * @param {string} xStoreID X-Store ID
9052
9094
  * @param {*} [options] Override http request option.
9053
9095
  * @throws {RequiredError}
9054
9096
  */
9055
- adminStoresOrgIdGet(orgId, options) {
9097
+ adminStoresGetStoreXStoreIDGet(xStoreID, options) {
9056
9098
  return __awaiter(this, void 0, void 0, function* () {
9057
9099
  var _a, _b, _c;
9058
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresOrgIdGet(orgId, options);
9100
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGetStoreXStoreIDGet(xStoreID, options);
9059
9101
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9060
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresOrgIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9102
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresGetStoreXStoreIDGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9061
9103
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9062
9104
  });
9063
9105
  },
@@ -9078,101 +9120,101 @@ const StoresApiFp = function (configuration) {
9078
9120
  });
9079
9121
  },
9080
9122
  /**
9081
- * Retrieves the store configuration
9082
- * @summary Get Store Config
9083
- * @param {number} storeID Store ID
9123
+ * Updates store information by ID.
9124
+ * @summary Update an existing store
9125
+ * @param {number} storeID store ID
9126
+ * @param {DataTypesStoreRequestDto} store Store data to update
9084
9127
  * @param {*} [options] Override http request option.
9085
9128
  * @throws {RequiredError}
9086
9129
  */
9087
- adminStoresStoreIDConfigGet(storeID, options) {
9130
+ adminStoresStoreIDPut(storeID, store, options) {
9088
9131
  return __awaiter(this, void 0, void 0, function* () {
9089
9132
  var _a, _b, _c;
9090
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigGet(storeID, options);
9133
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDPut(storeID, store, options);
9091
9134
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9092
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9135
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9093
9136
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9094
9137
  });
9095
9138
  },
9096
9139
  /**
9097
- * Updates the store configuration
9098
- * @summary Update Store Config
9099
- * @param {number} storeID Store ID
9100
- * @param {DataTypesIndexConfig} body Store configuration
9140
+ * Updates StoreStatus information by ID.
9141
+ * @summary Update an existing StoreStatus
9142
+ * @param {number} id Store ID
9143
+ * @param {boolean} status status
9101
9144
  * @param {*} [options] Override http request option.
9102
9145
  * @throws {RequiredError}
9103
9146
  */
9104
- adminStoresStoreIDConfigPut(storeID, body, options) {
9147
+ adminStoresUpdateStatusIdStatusPut(id, status, options) {
9105
9148
  return __awaiter(this, void 0, void 0, function* () {
9106
9149
  var _a, _b, _c;
9107
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigPut(storeID, body, options);
9150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresUpdateStatusIdStatusPut(id, status, options);
9108
9151
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9109
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9152
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresUpdateStatusIdStatusPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9110
9153
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9111
9154
  });
9112
9155
  },
9113
9156
  /**
9114
- * Get metadata about all configurable fields for store configuration
9115
- * @summary Get Store Config Schema
9116
- * @param {number} storeID Store ID to get field options from
9157
+ * Retrieves the store configuration using x-store ID
9158
+ * @summary Get Store Config
9159
+ * @param {string} xStoreID X-Store ID
9117
9160
  * @param {*} [options] Override http request option.
9118
9161
  * @throws {RequiredError}
9119
9162
  */
9120
- adminStoresStoreIDConfigSchemaGet(storeID, options) {
9163
+ adminStoresXStoreIDConfigGet(xStoreID, options) {
9121
9164
  return __awaiter(this, void 0, void 0, function* () {
9122
9165
  var _a, _b, _c;
9123
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigSchemaGet(storeID, options);
9166
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigGet(xStoreID, options);
9124
9167
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9125
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDConfigSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9168
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9126
9169
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9127
9170
  });
9128
9171
  },
9129
9172
  /**
9130
- * Get default configuration values computed from the store\'s index schema
9131
- * @summary Get Store Schema-Based Defaults
9132
- * @param {number} storeID Store ID
9173
+ * Updates the store configuration using x-store ID
9174
+ * @summary Update Store Config
9175
+ * @param {string} xStoreID X-Store ID
9176
+ * @param {DataTypesIndexConfig} body Store configuration
9133
9177
  * @param {*} [options] Override http request option.
9134
9178
  * @throws {RequiredError}
9135
9179
  */
9136
- adminStoresStoreIDDefaultsGet(storeID, options) {
9180
+ adminStoresXStoreIDConfigPut(xStoreID, body, options) {
9137
9181
  return __awaiter(this, void 0, void 0, function* () {
9138
9182
  var _a, _b, _c;
9139
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDDefaultsGet(storeID, options);
9183
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigPut(xStoreID, body, options);
9140
9184
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9141
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDDefaultsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9185
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9142
9186
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9143
9187
  });
9144
9188
  },
9145
9189
  /**
9146
- * Updates store information by ID.
9147
- * @summary Update an existing store
9148
- * @param {number} storeID store ID
9149
- * @param {DataTypesStoreRequestDto} store Store data to update
9190
+ * Get metadata about all configurable fields for store configuration using x-store ID
9191
+ * @summary Get Store Config Schema
9192
+ * @param {string} xStoreID X-Store ID to get field options from
9150
9193
  * @param {*} [options] Override http request option.
9151
9194
  * @throws {RequiredError}
9152
9195
  */
9153
- adminStoresStoreIDPut(storeID, store, options) {
9196
+ adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
9154
9197
  return __awaiter(this, void 0, void 0, function* () {
9155
9198
  var _a, _b, _c;
9156
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDPut(storeID, store, options);
9199
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigSchemaGet(xStoreID, options);
9157
9200
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9158
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9201
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDConfigSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9159
9202
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9160
9203
  });
9161
9204
  },
9162
9205
  /**
9163
- * Updates StoreStatus information by ID.
9164
- * @summary Update an existing StoreStatus
9165
- * @param {number} id Store ID
9166
- * @param {boolean} status status
9206
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9207
+ * @summary Get Store Schema-Based Defaults
9208
+ * @param {string} xStoreID X-Store ID
9167
9209
  * @param {*} [options] Override http request option.
9168
9210
  * @throws {RequiredError}
9169
9211
  */
9170
- adminStoresUpdateStatusIdStatusPut(id, status, options) {
9212
+ adminStoresXStoreIDDefaultsGet(xStoreID, options) {
9171
9213
  return __awaiter(this, void 0, void 0, function* () {
9172
9214
  var _a, _b, _c;
9173
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresUpdateStatusIdStatusPut(id, status, options);
9215
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDefaultsGet(xStoreID, options);
9174
9216
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9175
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresUpdateStatusIdStatusPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9217
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDDefaultsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9176
9218
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9177
9219
  });
9178
9220
  },
@@ -9186,6 +9228,15 @@ exports.StoresApiFp = StoresApiFp;
9186
9228
  const StoresApiFactory = function (configuration, basePath, axios) {
9187
9229
  const localVarFp = (0, exports.StoresApiFp)(configuration);
9188
9230
  return {
9231
+ /**
9232
+ * Fetches list of all stores for the authenticated user\'s organization
9233
+ * @summary Fetches list of all stores
9234
+ * @param {*} [options] Override http request option.
9235
+ * @throws {RequiredError}
9236
+ */
9237
+ adminStoresGet(options) {
9238
+ return localVarFp.adminStoresGet(options).then((request) => request(axios, basePath));
9239
+ },
9189
9240
  /**
9190
9241
  * Fetches stores by id
9191
9242
  * @summary Fetches stores by id
@@ -9197,14 +9248,14 @@ const StoresApiFactory = function (configuration, basePath, axios) {
9197
9248
  return localVarFp.adminStoresGetStoreStoreIDGet(storeID, options).then((request) => request(axios, basePath));
9198
9249
  },
9199
9250
  /**
9200
- * Fetches list of all stores
9201
- * @summary Fetches list of all stores
9202
- * @param {number} orgId Org ID
9251
+ * Fetches stores by xStoreID
9252
+ * @summary Fetches stores by xStoreID
9253
+ * @param {string} xStoreID X-Store ID
9203
9254
  * @param {*} [options] Override http request option.
9204
9255
  * @throws {RequiredError}
9205
9256
  */
9206
- adminStoresOrgIdGet(orgId, options) {
9207
- return localVarFp.adminStoresOrgIdGet(orgId, options).then((request) => request(axios, basePath));
9257
+ adminStoresGetStoreXStoreIDGet(xStoreID, options) {
9258
+ return localVarFp.adminStoresGetStoreXStoreIDGet(xStoreID, options).then((request) => request(axios, basePath));
9208
9259
  },
9209
9260
  /**
9210
9261
  * Adds a new store to the system
@@ -9217,67 +9268,67 @@ const StoresApiFactory = function (configuration, basePath, axios) {
9217
9268
  return localVarFp.adminStoresPost(store, options).then((request) => request(axios, basePath));
9218
9269
  },
9219
9270
  /**
9220
- * Retrieves the store configuration
9221
- * @summary Get Store Config
9222
- * @param {number} storeID Store ID
9271
+ * Updates store information by ID.
9272
+ * @summary Update an existing store
9273
+ * @param {number} storeID store ID
9274
+ * @param {DataTypesStoreRequestDto} store Store data to update
9223
9275
  * @param {*} [options] Override http request option.
9224
9276
  * @throws {RequiredError}
9225
9277
  */
9226
- adminStoresStoreIDConfigGet(storeID, options) {
9227
- return localVarFp.adminStoresStoreIDConfigGet(storeID, options).then((request) => request(axios, basePath));
9278
+ adminStoresStoreIDPut(storeID, store, options) {
9279
+ return localVarFp.adminStoresStoreIDPut(storeID, store, options).then((request) => request(axios, basePath));
9228
9280
  },
9229
9281
  /**
9230
- * Updates the store configuration
9231
- * @summary Update Store Config
9232
- * @param {number} storeID Store ID
9233
- * @param {DataTypesIndexConfig} body Store configuration
9282
+ * Updates StoreStatus information by ID.
9283
+ * @summary Update an existing StoreStatus
9284
+ * @param {number} id Store ID
9285
+ * @param {boolean} status status
9234
9286
  * @param {*} [options] Override http request option.
9235
9287
  * @throws {RequiredError}
9236
9288
  */
9237
- adminStoresStoreIDConfigPut(storeID, body, options) {
9238
- return localVarFp.adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(axios, basePath));
9289
+ adminStoresUpdateStatusIdStatusPut(id, status, options) {
9290
+ return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
9239
9291
  },
9240
9292
  /**
9241
- * Get metadata about all configurable fields for store configuration
9242
- * @summary Get Store Config Schema
9243
- * @param {number} storeID Store ID to get field options from
9293
+ * Retrieves the store configuration using x-store ID
9294
+ * @summary Get Store Config
9295
+ * @param {string} xStoreID X-Store ID
9244
9296
  * @param {*} [options] Override http request option.
9245
9297
  * @throws {RequiredError}
9246
9298
  */
9247
- adminStoresStoreIDConfigSchemaGet(storeID, options) {
9248
- return localVarFp.adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(axios, basePath));
9299
+ adminStoresXStoreIDConfigGet(xStoreID, options) {
9300
+ return localVarFp.adminStoresXStoreIDConfigGet(xStoreID, options).then((request) => request(axios, basePath));
9249
9301
  },
9250
9302
  /**
9251
- * Get default configuration values computed from the store\'s index schema
9252
- * @summary Get Store Schema-Based Defaults
9253
- * @param {number} storeID Store ID
9303
+ * Updates the store configuration using x-store ID
9304
+ * @summary Update Store Config
9305
+ * @param {string} xStoreID X-Store ID
9306
+ * @param {DataTypesIndexConfig} body Store configuration
9254
9307
  * @param {*} [options] Override http request option.
9255
9308
  * @throws {RequiredError}
9256
9309
  */
9257
- adminStoresStoreIDDefaultsGet(storeID, options) {
9258
- return localVarFp.adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(axios, basePath));
9310
+ adminStoresXStoreIDConfigPut(xStoreID, body, options) {
9311
+ return localVarFp.adminStoresXStoreIDConfigPut(xStoreID, body, options).then((request) => request(axios, basePath));
9259
9312
  },
9260
9313
  /**
9261
- * Updates store information by ID.
9262
- * @summary Update an existing store
9263
- * @param {number} storeID store ID
9264
- * @param {DataTypesStoreRequestDto} store Store data to update
9314
+ * Get metadata about all configurable fields for store configuration using x-store ID
9315
+ * @summary Get Store Config Schema
9316
+ * @param {string} xStoreID X-Store ID to get field options from
9265
9317
  * @param {*} [options] Override http request option.
9266
9318
  * @throws {RequiredError}
9267
9319
  */
9268
- adminStoresStoreIDPut(storeID, store, options) {
9269
- return localVarFp.adminStoresStoreIDPut(storeID, store, options).then((request) => request(axios, basePath));
9320
+ adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
9321
+ return localVarFp.adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(axios, basePath));
9270
9322
  },
9271
9323
  /**
9272
- * Updates StoreStatus information by ID.
9273
- * @summary Update an existing StoreStatus
9274
- * @param {number} id Store ID
9275
- * @param {boolean} status status
9324
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9325
+ * @summary Get Store Schema-Based Defaults
9326
+ * @param {string} xStoreID X-Store ID
9276
9327
  * @param {*} [options] Override http request option.
9277
9328
  * @throws {RequiredError}
9278
9329
  */
9279
- adminStoresUpdateStatusIdStatusPut(id, status, options) {
9280
- return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
9330
+ adminStoresXStoreIDDefaultsGet(xStoreID, options) {
9331
+ return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
9281
9332
  },
9282
9333
  };
9283
9334
  };
@@ -9289,6 +9340,16 @@ exports.StoresApiFactory = StoresApiFactory;
9289
9340
  * @extends {BaseAPI}
9290
9341
  */
9291
9342
  class StoresApi extends base_1.BaseAPI {
9343
+ /**
9344
+ * Fetches list of all stores for the authenticated user\'s organization
9345
+ * @summary Fetches list of all stores
9346
+ * @param {*} [options] Override http request option.
9347
+ * @throws {RequiredError}
9348
+ * @memberof StoresApi
9349
+ */
9350
+ adminStoresGet(options) {
9351
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresGet(options).then((request) => request(this.axios, this.basePath));
9352
+ }
9292
9353
  /**
9293
9354
  * Fetches stores by id
9294
9355
  * @summary Fetches stores by id
@@ -9301,15 +9362,15 @@ class StoresApi extends base_1.BaseAPI {
9301
9362
  return (0, exports.StoresApiFp)(this.configuration).adminStoresGetStoreStoreIDGet(storeID, options).then((request) => request(this.axios, this.basePath));
9302
9363
  }
9303
9364
  /**
9304
- * Fetches list of all stores
9305
- * @summary Fetches list of all stores
9306
- * @param {number} orgId Org ID
9365
+ * Fetches stores by xStoreID
9366
+ * @summary Fetches stores by xStoreID
9367
+ * @param {string} xStoreID X-Store ID
9307
9368
  * @param {*} [options] Override http request option.
9308
9369
  * @throws {RequiredError}
9309
9370
  * @memberof StoresApi
9310
9371
  */
9311
- adminStoresOrgIdGet(orgId, options) {
9312
- return (0, exports.StoresApiFp)(this.configuration).adminStoresOrgIdGet(orgId, options).then((request) => request(this.axios, this.basePath));
9372
+ adminStoresGetStoreXStoreIDGet(xStoreID, options) {
9373
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresGetStoreXStoreIDGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9313
9374
  }
9314
9375
  /**
9315
9376
  * Adds a new store to the system
@@ -9323,73 +9384,73 @@ class StoresApi extends base_1.BaseAPI {
9323
9384
  return (0, exports.StoresApiFp)(this.configuration).adminStoresPost(store, options).then((request) => request(this.axios, this.basePath));
9324
9385
  }
9325
9386
  /**
9326
- * Retrieves the store configuration
9327
- * @summary Get Store Config
9328
- * @param {number} storeID Store ID
9387
+ * Updates store information by ID.
9388
+ * @summary Update an existing store
9389
+ * @param {number} storeID store ID
9390
+ * @param {DataTypesStoreRequestDto} store Store data to update
9329
9391
  * @param {*} [options] Override http request option.
9330
9392
  * @throws {RequiredError}
9331
9393
  * @memberof StoresApi
9332
9394
  */
9333
- adminStoresStoreIDConfigGet(storeID, options) {
9334
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigGet(storeID, options).then((request) => request(this.axios, this.basePath));
9395
+ adminStoresStoreIDPut(storeID, store, options) {
9396
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDPut(storeID, store, options).then((request) => request(this.axios, this.basePath));
9335
9397
  }
9336
9398
  /**
9337
- * Updates the store configuration
9338
- * @summary Update Store Config
9339
- * @param {number} storeID Store ID
9340
- * @param {DataTypesIndexConfig} body Store configuration
9399
+ * Updates StoreStatus information by ID.
9400
+ * @summary Update an existing StoreStatus
9401
+ * @param {number} id Store ID
9402
+ * @param {boolean} status status
9341
9403
  * @param {*} [options] Override http request option.
9342
9404
  * @throws {RequiredError}
9343
9405
  * @memberof StoresApi
9344
9406
  */
9345
- adminStoresStoreIDConfigPut(storeID, body, options) {
9346
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(this.axios, this.basePath));
9407
+ adminStoresUpdateStatusIdStatusPut(id, status, options) {
9408
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
9347
9409
  }
9348
9410
  /**
9349
- * Get metadata about all configurable fields for store configuration
9350
- * @summary Get Store Config Schema
9351
- * @param {number} storeID Store ID to get field options from
9411
+ * Retrieves the store configuration using x-store ID
9412
+ * @summary Get Store Config
9413
+ * @param {string} xStoreID X-Store ID
9352
9414
  * @param {*} [options] Override http request option.
9353
9415
  * @throws {RequiredError}
9354
9416
  * @memberof StoresApi
9355
9417
  */
9356
- adminStoresStoreIDConfigSchemaGet(storeID, options) {
9357
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(this.axios, this.basePath));
9418
+ adminStoresXStoreIDConfigGet(xStoreID, options) {
9419
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9358
9420
  }
9359
9421
  /**
9360
- * Get default configuration values computed from the store\'s index schema
9361
- * @summary Get Store Schema-Based Defaults
9362
- * @param {number} storeID Store ID
9422
+ * Updates the store configuration using x-store ID
9423
+ * @summary Update Store Config
9424
+ * @param {string} xStoreID X-Store ID
9425
+ * @param {DataTypesIndexConfig} body Store configuration
9363
9426
  * @param {*} [options] Override http request option.
9364
9427
  * @throws {RequiredError}
9365
9428
  * @memberof StoresApi
9366
9429
  */
9367
- adminStoresStoreIDDefaultsGet(storeID, options) {
9368
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(this.axios, this.basePath));
9430
+ adminStoresXStoreIDConfigPut(xStoreID, body, options) {
9431
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigPut(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
9369
9432
  }
9370
9433
  /**
9371
- * Updates store information by ID.
9372
- * @summary Update an existing store
9373
- * @param {number} storeID store ID
9374
- * @param {DataTypesStoreRequestDto} store Store data to update
9434
+ * Get metadata about all configurable fields for store configuration using x-store ID
9435
+ * @summary Get Store Config Schema
9436
+ * @param {string} xStoreID X-Store ID to get field options from
9375
9437
  * @param {*} [options] Override http request option.
9376
9438
  * @throws {RequiredError}
9377
9439
  * @memberof StoresApi
9378
9440
  */
9379
- adminStoresStoreIDPut(storeID, store, options) {
9380
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDPut(storeID, store, options).then((request) => request(this.axios, this.basePath));
9441
+ adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
9442
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9381
9443
  }
9382
9444
  /**
9383
- * Updates StoreStatus information by ID.
9384
- * @summary Update an existing StoreStatus
9385
- * @param {number} id Store ID
9386
- * @param {boolean} status status
9445
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9446
+ * @summary Get Store Schema-Based Defaults
9447
+ * @param {string} xStoreID X-Store ID
9387
9448
  * @param {*} [options] Override http request option.
9388
9449
  * @throws {RequiredError}
9389
9450
  * @memberof StoresApi
9390
9451
  */
9391
- adminStoresUpdateStatusIdStatusPut(id, status, options) {
9392
- return (0, exports.StoresApiFp)(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
9452
+ adminStoresXStoreIDDefaultsGet(xStoreID, options) {
9453
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9393
9454
  }
9394
9455
  }
9395
9456
  exports.StoresApi = StoresApi;