@seekora-ai/admin-api 1.0.17 → 1.0.19

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
@@ -8726,17 +8726,13 @@ exports.SearchApi = SearchApi;
8726
8726
  const StoresApiAxiosParamCreator = function (configuration) {
8727
8727
  return {
8728
8728
  /**
8729
- * Fetches stores by id
8730
- * @summary Fetches stores by id
8731
- * @param {number} storeID Stores ID
8729
+ * Fetches list of all stores for the authenticated user\'s organization
8730
+ * @summary Fetches list of all stores
8732
8731
  * @param {*} [options] Override http request option.
8733
8732
  * @throws {RequiredError}
8734
8733
  */
8735
- adminStoresGetStoreStoreIDGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8736
- // verify required parameter 'storeID' is not null or undefined
8737
- (0, common_1.assertParamExists)('adminStoresGetStoreStoreIDGet', 'storeID', storeID);
8738
- const localVarPath = `/admin/Stores/GetStore/{storeID}`
8739
- .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8734
+ adminStoresGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8735
+ const localVarPath = `/admin/Stores`;
8740
8736
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8741
8737
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8742
8738
  let baseOptions;
@@ -8757,17 +8753,17 @@ const StoresApiAxiosParamCreator = function (configuration) {
8757
8753
  };
8758
8754
  }),
8759
8755
  /**
8760
- * Fetches list of all stores
8761
- * @summary Fetches list of all stores
8762
- * @param {number} orgId Org ID
8756
+ * Fetches stores by xStoreID
8757
+ * @summary Fetches stores by xStoreID
8758
+ * @param {string} xStoreID X-Store ID
8763
8759
  * @param {*} [options] Override http request option.
8764
8760
  * @throws {RequiredError}
8765
8761
  */
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)));
8762
+ adminStoresGetStoreXStoreIDGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
8763
+ // verify required parameter 'xStoreID' is not null or undefined
8764
+ (0, common_1.assertParamExists)('adminStoresGetStoreXStoreIDGet', 'xStoreID', xStoreID);
8765
+ const localVarPath = `/admin/Stores/GetStore/{xStoreID}`
8766
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8771
8767
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8772
8768
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8773
8769
  let baseOptions;
@@ -8820,16 +8816,19 @@ const StoresApiAxiosParamCreator = function (configuration) {
8820
8816
  };
8821
8817
  }),
8822
8818
  /**
8823
- * Retrieves the store configuration
8824
- * @summary Get Store Config
8825
- * @param {number} storeID Store ID
8819
+ * Updates store information by ID.
8820
+ * @summary Update an existing store
8821
+ * @param {number} storeID store ID
8822
+ * @param {DataTypesStoreRequestDto} store Store data to update
8826
8823
  * @param {*} [options] Override http request option.
8827
8824
  * @throws {RequiredError}
8828
8825
  */
8829
- adminStoresStoreIDConfigGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8826
+ adminStoresStoreIDPut: (storeID_1, store_1, ...args_1) => __awaiter(this, [storeID_1, store_1, ...args_1], void 0, function* (storeID, store, options = {}) {
8830
8827
  // verify required parameter 'storeID' is not null or undefined
8831
- (0, common_1.assertParamExists)('adminStoresStoreIDConfigGet', 'storeID', storeID);
8832
- const localVarPath = `/admin/Stores/{storeID}/config`
8828
+ (0, common_1.assertParamExists)('adminStoresStoreIDPut', 'storeID', storeID);
8829
+ // verify required parameter 'store' is not null or undefined
8830
+ (0, common_1.assertParamExists)('adminStoresStoreIDPut', 'store', store);
8831
+ const localVarPath = `/admin/Stores/{storeID}`
8833
8832
  .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8834
8833
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8835
8834
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8837,34 +8836,37 @@ const StoresApiAxiosParamCreator = function (configuration) {
8837
8836
  if (configuration) {
8838
8837
  baseOptions = configuration.baseOptions;
8839
8838
  }
8840
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8839
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8841
8840
  const localVarHeaderParameter = {};
8842
8841
  const localVarQueryParameter = {};
8843
8842
  // authentication BearerAuth required
8844
8843
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8844
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8845
8845
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8846
8846
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8847
8847
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8848
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(store, localVarRequestOptions, configuration);
8848
8849
  return {
8849
8850
  url: (0, common_1.toPathString)(localVarUrlObj),
8850
8851
  options: localVarRequestOptions,
8851
8852
  };
8852
8853
  }),
8853
8854
  /**
8854
- * Updates the store configuration
8855
- * @summary Update Store Config
8856
- * @param {number} storeID Store ID
8857
- * @param {DataTypesIndexConfig} body Store configuration
8855
+ * Updates StoreStatus information by ID.
8856
+ * @summary Update an existing StoreStatus
8857
+ * @param {number} id Store ID
8858
+ * @param {boolean} status status
8858
8859
  * @param {*} [options] Override http request option.
8859
8860
  * @throws {RequiredError}
8860
8861
  */
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)));
8862
+ adminStoresUpdateStatusIdStatusPut: (id_1, status_1, ...args_1) => __awaiter(this, [id_1, status_1, ...args_1], void 0, function* (id, status, options = {}) {
8863
+ // verify required parameter 'id' is not null or undefined
8864
+ (0, common_1.assertParamExists)('adminStoresUpdateStatusIdStatusPut', 'id', id);
8865
+ // verify required parameter 'status' is not null or undefined
8866
+ (0, common_1.assertParamExists)('adminStoresUpdateStatusIdStatusPut', 'status', status);
8867
+ const localVarPath = `/admin/Stores/UpdateStatus/{id}/{status}`
8868
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
8869
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
8868
8870
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8869
8871
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8870
8872
  let baseOptions;
@@ -8876,28 +8878,26 @@ const StoresApiAxiosParamCreator = function (configuration) {
8876
8878
  const localVarQueryParameter = {};
8877
8879
  // authentication BearerAuth required
8878
8880
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8879
- localVarHeaderParameter['Content-Type'] = 'application/json';
8880
8881
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8881
8882
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8882
8883
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8883
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8884
8884
  return {
8885
8885
  url: (0, common_1.toPathString)(localVarUrlObj),
8886
8886
  options: localVarRequestOptions,
8887
8887
  };
8888
8888
  }),
8889
8889
  /**
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
8890
+ * Retrieves the store configuration using x-store ID
8891
+ * @summary Get Store Config
8892
+ * @param {string} xStoreID X-Store ID
8893
8893
  * @param {*} [options] Override http request option.
8894
8894
  * @throws {RequiredError}
8895
8895
  */
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)));
8896
+ adminStoresXStoreIDConfigGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
8897
+ // verify required parameter 'xStoreID' is not null or undefined
8898
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigGet', 'xStoreID', xStoreID);
8899
+ const localVarPath = `/admin/Stores/{xStoreID}/config`
8900
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8901
8901
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8902
8902
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8903
8903
  let baseOptions;
@@ -8918,95 +8918,91 @@ const StoresApiAxiosParamCreator = function (configuration) {
8918
8918
  };
8919
8919
  }),
8920
8920
  /**
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
8921
+ * Updates the store configuration using x-store ID
8922
+ * @summary Update Store Config
8923
+ * @param {string} xStoreID X-Store ID
8924
+ * @param {DataTypesIndexConfig} body Store configuration
8924
8925
  * @param {*} [options] Override http request option.
8925
8926
  * @throws {RequiredError}
8926
8927
  */
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)));
8928
+ adminStoresXStoreIDConfigPut: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
8929
+ // verify required parameter 'xStoreID' is not null or undefined
8930
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigPut', 'xStoreID', xStoreID);
8931
+ // verify required parameter 'body' is not null or undefined
8932
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigPut', 'body', body);
8933
+ const localVarPath = `/admin/Stores/{xStoreID}/config`
8934
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8932
8935
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8933
8936
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8934
8937
  let baseOptions;
8935
8938
  if (configuration) {
8936
8939
  baseOptions = configuration.baseOptions;
8937
8940
  }
8938
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8941
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8939
8942
  const localVarHeaderParameter = {};
8940
8943
  const localVarQueryParameter = {};
8941
8944
  // authentication BearerAuth required
8942
8945
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8946
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8943
8947
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8944
8948
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8945
8949
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8950
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8946
8951
  return {
8947
8952
  url: (0, common_1.toPathString)(localVarUrlObj),
8948
8953
  options: localVarRequestOptions,
8949
8954
  };
8950
8955
  }),
8951
8956
  /**
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
8957
+ * Get metadata about all configurable fields for store configuration using x-store ID
8958
+ * @summary Get Store Config Schema
8959
+ * @param {string} xStoreID X-Store ID to get field options from
8956
8960
  * @param {*} [options] Override http request option.
8957
8961
  * @throws {RequiredError}
8958
8962
  */
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)));
8963
+ adminStoresXStoreIDConfigSchemaGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
8964
+ // verify required parameter 'xStoreID' is not null or undefined
8965
+ (0, common_1.assertParamExists)('adminStoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID);
8966
+ const localVarPath = `/admin/Stores/{xStoreID}/config-schema`
8967
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
8966
8968
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8967
8969
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8968
8970
  let baseOptions;
8969
8971
  if (configuration) {
8970
8972
  baseOptions = configuration.baseOptions;
8971
8973
  }
8972
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8974
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8973
8975
  const localVarHeaderParameter = {};
8974
8976
  const localVarQueryParameter = {};
8975
8977
  // authentication BearerAuth required
8976
8978
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8977
- localVarHeaderParameter['Content-Type'] = 'application/json';
8978
8979
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8979
8980
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8980
8981
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8981
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(store, localVarRequestOptions, configuration);
8982
8982
  return {
8983
8983
  url: (0, common_1.toPathString)(localVarUrlObj),
8984
8984
  options: localVarRequestOptions,
8985
8985
  };
8986
8986
  }),
8987
8987
  /**
8988
- * Updates StoreStatus information by ID.
8989
- * @summary Update an existing StoreStatus
8990
- * @param {number} id Store ID
8991
- * @param {boolean} status status
8988
+ * Get default configuration values computed from the store\'s index schema using x-store ID
8989
+ * @summary Get Store Schema-Based Defaults
8990
+ * @param {string} xStoreID X-Store ID
8992
8991
  * @param {*} [options] Override http request option.
8993
8992
  * @throws {RequiredError}
8994
8993
  */
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)));
8994
+ adminStoresXStoreIDDefaultsGet: (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)('adminStoresXStoreIDDefaultsGet', 'xStoreID', xStoreID);
8997
+ const localVarPath = `/admin/Stores/{xStoreID}/defaults`
8998
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
9003
8999
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9004
9000
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9005
9001
  let baseOptions;
9006
9002
  if (configuration) {
9007
9003
  baseOptions = configuration.baseOptions;
9008
9004
  }
9009
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
9005
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9010
9006
  const localVarHeaderParameter = {};
9011
9007
  const localVarQueryParameter = {};
9012
9008
  // authentication BearerAuth required
@@ -9030,34 +9026,33 @@ const StoresApiFp = function (configuration) {
9030
9026
  const localVarAxiosParamCreator = (0, exports.StoresApiAxiosParamCreator)(configuration);
9031
9027
  return {
9032
9028
  /**
9033
- * Fetches stores by id
9034
- * @summary Fetches stores by id
9035
- * @param {number} storeID Stores ID
9029
+ * Fetches list of all stores for the authenticated user\'s organization
9030
+ * @summary Fetches list of all stores
9036
9031
  * @param {*} [options] Override http request option.
9037
9032
  * @throws {RequiredError}
9038
9033
  */
9039
- adminStoresGetStoreStoreIDGet(storeID, options) {
9034
+ adminStoresGet(options) {
9040
9035
  return __awaiter(this, void 0, void 0, function* () {
9041
9036
  var _a, _b, _c;
9042
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGetStoreStoreIDGet(storeID, options);
9037
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGet(options);
9043
9038
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9044
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresGetStoreStoreIDGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9039
+ 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;
9045
9040
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9046
9041
  });
9047
9042
  },
9048
9043
  /**
9049
- * Fetches list of all stores
9050
- * @summary Fetches list of all stores
9051
- * @param {number} orgId Org ID
9044
+ * Fetches stores by xStoreID
9045
+ * @summary Fetches stores by xStoreID
9046
+ * @param {string} xStoreID X-Store ID
9052
9047
  * @param {*} [options] Override http request option.
9053
9048
  * @throws {RequiredError}
9054
9049
  */
9055
- adminStoresOrgIdGet(orgId, options) {
9050
+ adminStoresGetStoreXStoreIDGet(xStoreID, options) {
9056
9051
  return __awaiter(this, void 0, void 0, function* () {
9057
9052
  var _a, _b, _c;
9058
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresOrgIdGet(orgId, options);
9053
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGetStoreXStoreIDGet(xStoreID, options);
9059
9054
  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;
9055
+ 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
9056
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9062
9057
  });
9063
9058
  },
@@ -9078,101 +9073,101 @@ const StoresApiFp = function (configuration) {
9078
9073
  });
9079
9074
  },
9080
9075
  /**
9081
- * Retrieves the store configuration
9082
- * @summary Get Store Config
9083
- * @param {number} storeID Store ID
9076
+ * Updates store information by ID.
9077
+ * @summary Update an existing store
9078
+ * @param {number} storeID store ID
9079
+ * @param {DataTypesStoreRequestDto} store Store data to update
9084
9080
  * @param {*} [options] Override http request option.
9085
9081
  * @throws {RequiredError}
9086
9082
  */
9087
- adminStoresStoreIDConfigGet(storeID, options) {
9083
+ adminStoresStoreIDPut(storeID, store, options) {
9088
9084
  return __awaiter(this, void 0, void 0, function* () {
9089
9085
  var _a, _b, _c;
9090
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigGet(storeID, options);
9086
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDPut(storeID, store, options);
9091
9087
  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;
9088
+ 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
9089
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9094
9090
  });
9095
9091
  },
9096
9092
  /**
9097
- * Updates the store configuration
9098
- * @summary Update Store Config
9099
- * @param {number} storeID Store ID
9100
- * @param {DataTypesIndexConfig} body Store configuration
9093
+ * Updates StoreStatus information by ID.
9094
+ * @summary Update an existing StoreStatus
9095
+ * @param {number} id Store ID
9096
+ * @param {boolean} status status
9101
9097
  * @param {*} [options] Override http request option.
9102
9098
  * @throws {RequiredError}
9103
9099
  */
9104
- adminStoresStoreIDConfigPut(storeID, body, options) {
9100
+ adminStoresUpdateStatusIdStatusPut(id, status, options) {
9105
9101
  return __awaiter(this, void 0, void 0, function* () {
9106
9102
  var _a, _b, _c;
9107
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigPut(storeID, body, options);
9103
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresUpdateStatusIdStatusPut(id, status, options);
9108
9104
  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;
9105
+ 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
9106
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9111
9107
  });
9112
9108
  },
9113
9109
  /**
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
9110
+ * Retrieves the store configuration using x-store ID
9111
+ * @summary Get Store Config
9112
+ * @param {string} xStoreID X-Store ID
9117
9113
  * @param {*} [options] Override http request option.
9118
9114
  * @throws {RequiredError}
9119
9115
  */
9120
- adminStoresStoreIDConfigSchemaGet(storeID, options) {
9116
+ adminStoresXStoreIDConfigGet(xStoreID, options) {
9121
9117
  return __awaiter(this, void 0, void 0, function* () {
9122
9118
  var _a, _b, _c;
9123
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigSchemaGet(storeID, options);
9119
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigGet(xStoreID, options);
9124
9120
  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;
9121
+ 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
9122
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9127
9123
  });
9128
9124
  },
9129
9125
  /**
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
9126
+ * Updates the store configuration using x-store ID
9127
+ * @summary Update Store Config
9128
+ * @param {string} xStoreID X-Store ID
9129
+ * @param {DataTypesIndexConfig} body Store configuration
9133
9130
  * @param {*} [options] Override http request option.
9134
9131
  * @throws {RequiredError}
9135
9132
  */
9136
- adminStoresStoreIDDefaultsGet(storeID, options) {
9133
+ adminStoresXStoreIDConfigPut(xStoreID, body, options) {
9137
9134
  return __awaiter(this, void 0, void 0, function* () {
9138
9135
  var _a, _b, _c;
9139
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDDefaultsGet(storeID, options);
9136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigPut(xStoreID, body, options);
9140
9137
  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;
9138
+ 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
9139
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9143
9140
  });
9144
9141
  },
9145
9142
  /**
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
9143
+ * Get metadata about all configurable fields for store configuration using x-store ID
9144
+ * @summary Get Store Config Schema
9145
+ * @param {string} xStoreID X-Store ID to get field options from
9150
9146
  * @param {*} [options] Override http request option.
9151
9147
  * @throws {RequiredError}
9152
9148
  */
9153
- adminStoresStoreIDPut(storeID, store, options) {
9149
+ adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
9154
9150
  return __awaiter(this, void 0, void 0, function* () {
9155
9151
  var _a, _b, _c;
9156
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDPut(storeID, store, options);
9152
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigSchemaGet(xStoreID, options);
9157
9153
  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;
9154
+ 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
9155
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9160
9156
  });
9161
9157
  },
9162
9158
  /**
9163
- * Updates StoreStatus information by ID.
9164
- * @summary Update an existing StoreStatus
9165
- * @param {number} id Store ID
9166
- * @param {boolean} status status
9159
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9160
+ * @summary Get Store Schema-Based Defaults
9161
+ * @param {string} xStoreID X-Store ID
9167
9162
  * @param {*} [options] Override http request option.
9168
9163
  * @throws {RequiredError}
9169
9164
  */
9170
- adminStoresUpdateStatusIdStatusPut(id, status, options) {
9165
+ adminStoresXStoreIDDefaultsGet(xStoreID, options) {
9171
9166
  return __awaiter(this, void 0, void 0, function* () {
9172
9167
  var _a, _b, _c;
9173
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresUpdateStatusIdStatusPut(id, status, options);
9168
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDefaultsGet(xStoreID, options);
9174
9169
  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;
9170
+ 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
9171
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9177
9172
  });
9178
9173
  },
@@ -9187,24 +9182,23 @@ const StoresApiFactory = function (configuration, basePath, axios) {
9187
9182
  const localVarFp = (0, exports.StoresApiFp)(configuration);
9188
9183
  return {
9189
9184
  /**
9190
- * Fetches stores by id
9191
- * @summary Fetches stores by id
9192
- * @param {number} storeID Stores ID
9185
+ * Fetches list of all stores for the authenticated user\'s organization
9186
+ * @summary Fetches list of all stores
9193
9187
  * @param {*} [options] Override http request option.
9194
9188
  * @throws {RequiredError}
9195
9189
  */
9196
- adminStoresGetStoreStoreIDGet(storeID, options) {
9197
- return localVarFp.adminStoresGetStoreStoreIDGet(storeID, options).then((request) => request(axios, basePath));
9190
+ adminStoresGet(options) {
9191
+ return localVarFp.adminStoresGet(options).then((request) => request(axios, basePath));
9198
9192
  },
9199
9193
  /**
9200
- * Fetches list of all stores
9201
- * @summary Fetches list of all stores
9202
- * @param {number} orgId Org ID
9194
+ * Fetches stores by xStoreID
9195
+ * @summary Fetches stores by xStoreID
9196
+ * @param {string} xStoreID X-Store ID
9203
9197
  * @param {*} [options] Override http request option.
9204
9198
  * @throws {RequiredError}
9205
9199
  */
9206
- adminStoresOrgIdGet(orgId, options) {
9207
- return localVarFp.adminStoresOrgIdGet(orgId, options).then((request) => request(axios, basePath));
9200
+ adminStoresGetStoreXStoreIDGet(xStoreID, options) {
9201
+ return localVarFp.adminStoresGetStoreXStoreIDGet(xStoreID, options).then((request) => request(axios, basePath));
9208
9202
  },
9209
9203
  /**
9210
9204
  * Adds a new store to the system
@@ -9217,67 +9211,67 @@ const StoresApiFactory = function (configuration, basePath, axios) {
9217
9211
  return localVarFp.adminStoresPost(store, options).then((request) => request(axios, basePath));
9218
9212
  },
9219
9213
  /**
9220
- * Retrieves the store configuration
9221
- * @summary Get Store Config
9222
- * @param {number} storeID Store ID
9214
+ * Updates store information by ID.
9215
+ * @summary Update an existing store
9216
+ * @param {number} storeID store ID
9217
+ * @param {DataTypesStoreRequestDto} store Store data to update
9223
9218
  * @param {*} [options] Override http request option.
9224
9219
  * @throws {RequiredError}
9225
9220
  */
9226
- adminStoresStoreIDConfigGet(storeID, options) {
9227
- return localVarFp.adminStoresStoreIDConfigGet(storeID, options).then((request) => request(axios, basePath));
9221
+ adminStoresStoreIDPut(storeID, store, options) {
9222
+ return localVarFp.adminStoresStoreIDPut(storeID, store, options).then((request) => request(axios, basePath));
9228
9223
  },
9229
9224
  /**
9230
- * Updates the store configuration
9231
- * @summary Update Store Config
9232
- * @param {number} storeID Store ID
9233
- * @param {DataTypesIndexConfig} body Store configuration
9225
+ * Updates StoreStatus information by ID.
9226
+ * @summary Update an existing StoreStatus
9227
+ * @param {number} id Store ID
9228
+ * @param {boolean} status status
9234
9229
  * @param {*} [options] Override http request option.
9235
9230
  * @throws {RequiredError}
9236
9231
  */
9237
- adminStoresStoreIDConfigPut(storeID, body, options) {
9238
- return localVarFp.adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(axios, basePath));
9232
+ adminStoresUpdateStatusIdStatusPut(id, status, options) {
9233
+ return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
9239
9234
  },
9240
9235
  /**
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
9236
+ * Retrieves the store configuration using x-store ID
9237
+ * @summary Get Store Config
9238
+ * @param {string} xStoreID X-Store ID
9244
9239
  * @param {*} [options] Override http request option.
9245
9240
  * @throws {RequiredError}
9246
9241
  */
9247
- adminStoresStoreIDConfigSchemaGet(storeID, options) {
9248
- return localVarFp.adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(axios, basePath));
9242
+ adminStoresXStoreIDConfigGet(xStoreID, options) {
9243
+ return localVarFp.adminStoresXStoreIDConfigGet(xStoreID, options).then((request) => request(axios, basePath));
9249
9244
  },
9250
9245
  /**
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
9246
+ * Updates the store configuration using x-store ID
9247
+ * @summary Update Store Config
9248
+ * @param {string} xStoreID X-Store ID
9249
+ * @param {DataTypesIndexConfig} body Store configuration
9254
9250
  * @param {*} [options] Override http request option.
9255
9251
  * @throws {RequiredError}
9256
9252
  */
9257
- adminStoresStoreIDDefaultsGet(storeID, options) {
9258
- return localVarFp.adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(axios, basePath));
9253
+ adminStoresXStoreIDConfigPut(xStoreID, body, options) {
9254
+ return localVarFp.adminStoresXStoreIDConfigPut(xStoreID, body, options).then((request) => request(axios, basePath));
9259
9255
  },
9260
9256
  /**
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
9257
+ * Get metadata about all configurable fields for store configuration using x-store ID
9258
+ * @summary Get Store Config Schema
9259
+ * @param {string} xStoreID X-Store ID to get field options from
9265
9260
  * @param {*} [options] Override http request option.
9266
9261
  * @throws {RequiredError}
9267
9262
  */
9268
- adminStoresStoreIDPut(storeID, store, options) {
9269
- return localVarFp.adminStoresStoreIDPut(storeID, store, options).then((request) => request(axios, basePath));
9263
+ adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
9264
+ return localVarFp.adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(axios, basePath));
9270
9265
  },
9271
9266
  /**
9272
- * Updates StoreStatus information by ID.
9273
- * @summary Update an existing StoreStatus
9274
- * @param {number} id Store ID
9275
- * @param {boolean} status status
9267
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9268
+ * @summary Get Store Schema-Based Defaults
9269
+ * @param {string} xStoreID X-Store ID
9276
9270
  * @param {*} [options] Override http request option.
9277
9271
  * @throws {RequiredError}
9278
9272
  */
9279
- adminStoresUpdateStatusIdStatusPut(id, status, options) {
9280
- return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
9273
+ adminStoresXStoreIDDefaultsGet(xStoreID, options) {
9274
+ return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
9281
9275
  },
9282
9276
  };
9283
9277
  };
@@ -9290,26 +9284,25 @@ exports.StoresApiFactory = StoresApiFactory;
9290
9284
  */
9291
9285
  class StoresApi extends base_1.BaseAPI {
9292
9286
  /**
9293
- * Fetches stores by id
9294
- * @summary Fetches stores by id
9295
- * @param {number} storeID Stores ID
9287
+ * Fetches list of all stores for the authenticated user\'s organization
9288
+ * @summary Fetches list of all stores
9296
9289
  * @param {*} [options] Override http request option.
9297
9290
  * @throws {RequiredError}
9298
9291
  * @memberof StoresApi
9299
9292
  */
9300
- adminStoresGetStoreStoreIDGet(storeID, options) {
9301
- return (0, exports.StoresApiFp)(this.configuration).adminStoresGetStoreStoreIDGet(storeID, options).then((request) => request(this.axios, this.basePath));
9293
+ adminStoresGet(options) {
9294
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresGet(options).then((request) => request(this.axios, this.basePath));
9302
9295
  }
9303
9296
  /**
9304
- * Fetches list of all stores
9305
- * @summary Fetches list of all stores
9306
- * @param {number} orgId Org ID
9297
+ * Fetches stores by xStoreID
9298
+ * @summary Fetches stores by xStoreID
9299
+ * @param {string} xStoreID X-Store ID
9307
9300
  * @param {*} [options] Override http request option.
9308
9301
  * @throws {RequiredError}
9309
9302
  * @memberof StoresApi
9310
9303
  */
9311
- adminStoresOrgIdGet(orgId, options) {
9312
- return (0, exports.StoresApiFp)(this.configuration).adminStoresOrgIdGet(orgId, options).then((request) => request(this.axios, this.basePath));
9304
+ adminStoresGetStoreXStoreIDGet(xStoreID, options) {
9305
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresGetStoreXStoreIDGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9313
9306
  }
9314
9307
  /**
9315
9308
  * Adds a new store to the system
@@ -9323,73 +9316,73 @@ class StoresApi extends base_1.BaseAPI {
9323
9316
  return (0, exports.StoresApiFp)(this.configuration).adminStoresPost(store, options).then((request) => request(this.axios, this.basePath));
9324
9317
  }
9325
9318
  /**
9326
- * Retrieves the store configuration
9327
- * @summary Get Store Config
9328
- * @param {number} storeID Store ID
9319
+ * Updates store information by ID.
9320
+ * @summary Update an existing store
9321
+ * @param {number} storeID store ID
9322
+ * @param {DataTypesStoreRequestDto} store Store data to update
9329
9323
  * @param {*} [options] Override http request option.
9330
9324
  * @throws {RequiredError}
9331
9325
  * @memberof StoresApi
9332
9326
  */
9333
- adminStoresStoreIDConfigGet(storeID, options) {
9334
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigGet(storeID, options).then((request) => request(this.axios, this.basePath));
9327
+ adminStoresStoreIDPut(storeID, store, options) {
9328
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDPut(storeID, store, options).then((request) => request(this.axios, this.basePath));
9335
9329
  }
9336
9330
  /**
9337
- * Updates the store configuration
9338
- * @summary Update Store Config
9339
- * @param {number} storeID Store ID
9340
- * @param {DataTypesIndexConfig} body Store configuration
9331
+ * Updates StoreStatus information by ID.
9332
+ * @summary Update an existing StoreStatus
9333
+ * @param {number} id Store ID
9334
+ * @param {boolean} status status
9341
9335
  * @param {*} [options] Override http request option.
9342
9336
  * @throws {RequiredError}
9343
9337
  * @memberof StoresApi
9344
9338
  */
9345
- adminStoresStoreIDConfigPut(storeID, body, options) {
9346
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(this.axios, this.basePath));
9339
+ adminStoresUpdateStatusIdStatusPut(id, status, options) {
9340
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
9347
9341
  }
9348
9342
  /**
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
9343
+ * Retrieves the store configuration using x-store ID
9344
+ * @summary Get Store Config
9345
+ * @param {string} xStoreID X-Store ID
9352
9346
  * @param {*} [options] Override http request option.
9353
9347
  * @throws {RequiredError}
9354
9348
  * @memberof StoresApi
9355
9349
  */
9356
- adminStoresStoreIDConfigSchemaGet(storeID, options) {
9357
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(this.axios, this.basePath));
9350
+ adminStoresXStoreIDConfigGet(xStoreID, options) {
9351
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9358
9352
  }
9359
9353
  /**
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
9354
+ * Updates the store configuration using x-store ID
9355
+ * @summary Update Store Config
9356
+ * @param {string} xStoreID X-Store ID
9357
+ * @param {DataTypesIndexConfig} body Store configuration
9363
9358
  * @param {*} [options] Override http request option.
9364
9359
  * @throws {RequiredError}
9365
9360
  * @memberof StoresApi
9366
9361
  */
9367
- adminStoresStoreIDDefaultsGet(storeID, options) {
9368
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(this.axios, this.basePath));
9362
+ adminStoresXStoreIDConfigPut(xStoreID, body, options) {
9363
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigPut(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
9369
9364
  }
9370
9365
  /**
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
9366
+ * Get metadata about all configurable fields for store configuration using x-store ID
9367
+ * @summary Get Store Config Schema
9368
+ * @param {string} xStoreID X-Store ID to get field options from
9375
9369
  * @param {*} [options] Override http request option.
9376
9370
  * @throws {RequiredError}
9377
9371
  * @memberof StoresApi
9378
9372
  */
9379
- adminStoresStoreIDPut(storeID, store, options) {
9380
- return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDPut(storeID, store, options).then((request) => request(this.axios, this.basePath));
9373
+ adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
9374
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9381
9375
  }
9382
9376
  /**
9383
- * Updates StoreStatus information by ID.
9384
- * @summary Update an existing StoreStatus
9385
- * @param {number} id Store ID
9386
- * @param {boolean} status status
9377
+ * Get default configuration values computed from the store\'s index schema using x-store ID
9378
+ * @summary Get Store Schema-Based Defaults
9379
+ * @param {string} xStoreID X-Store ID
9387
9380
  * @param {*} [options] Override http request option.
9388
9381
  * @throws {RequiredError}
9389
9382
  * @memberof StoresApi
9390
9383
  */
9391
- adminStoresUpdateStatusIdStatusPut(id, status, options) {
9392
- return (0, exports.StoresApiFp)(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
9384
+ adminStoresXStoreIDDefaultsGet(xStoreID, options) {
9385
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
9393
9386
  }
9394
9387
  }
9395
9388
  exports.StoresApi = StoresApi;