@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/README.md +9 -11
- package/api.ts +247 -286
- package/dist/api.d.ts +162 -198
- package/dist/api.js +227 -234
- package/dist/esm/api.d.ts +162 -198
- package/dist/esm/api.js +227 -234
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.19.tgz +0 -0
- package/seekora-ai-admin-api-1.0.17.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -8100,18 +8100,18 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
8100
8100
|
/**
|
|
8101
8101
|
* Search documents with optional configuration override and autocomplete suggestions
|
|
8102
8102
|
* @summary Admin Search API
|
|
8103
|
-
* @param {
|
|
8103
|
+
* @param {string} xStoreID X-Store ID
|
|
8104
8104
|
* @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
|
|
8105
8105
|
* @param {*} [options] Override http request option.
|
|
8106
8106
|
* @throws {RequiredError}
|
|
8107
8107
|
*/
|
|
8108
|
-
|
|
8109
|
-
// verify required parameter '
|
|
8110
|
-
assertParamExists('
|
|
8108
|
+
adminV1SearchXStoreIDPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
|
|
8109
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
8110
|
+
assertParamExists('adminV1SearchXStoreIDPost', 'xStoreID', xStoreID);
|
|
8111
8111
|
// verify required parameter 'body' is not null or undefined
|
|
8112
|
-
assertParamExists('
|
|
8113
|
-
const localVarPath = `/admin/v1/search/{
|
|
8114
|
-
.replace(`{${"
|
|
8112
|
+
assertParamExists('adminV1SearchXStoreIDPost', 'body', body);
|
|
8113
|
+
const localVarPath = `/admin/v1/search/{xStoreID}`
|
|
8114
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
8115
8115
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8116
8116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8117
8117
|
let baseOptions;
|
|
@@ -8346,17 +8346,17 @@ export const SearchApiFp = function (configuration) {
|
|
|
8346
8346
|
/**
|
|
8347
8347
|
* Search documents with optional configuration override and autocomplete suggestions
|
|
8348
8348
|
* @summary Admin Search API
|
|
8349
|
-
* @param {
|
|
8349
|
+
* @param {string} xStoreID X-Store ID
|
|
8350
8350
|
* @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
|
|
8351
8351
|
* @param {*} [options] Override http request option.
|
|
8352
8352
|
* @throws {RequiredError}
|
|
8353
8353
|
*/
|
|
8354
|
-
|
|
8354
|
+
adminV1SearchXStoreIDPost(xStoreID, body, options) {
|
|
8355
8355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8356
8356
|
var _a, _b, _c;
|
|
8357
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8357
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchXStoreIDPost(xStoreID, body, options);
|
|
8358
8358
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8359
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.
|
|
8359
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.adminV1SearchXStoreIDPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8360
8360
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8361
8361
|
});
|
|
8362
8362
|
},
|
|
@@ -8473,13 +8473,13 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
8473
8473
|
/**
|
|
8474
8474
|
* Search documents with optional configuration override and autocomplete suggestions
|
|
8475
8475
|
* @summary Admin Search API
|
|
8476
|
-
* @param {
|
|
8476
|
+
* @param {string} xStoreID X-Store ID
|
|
8477
8477
|
* @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
|
|
8478
8478
|
* @param {*} [options] Override http request option.
|
|
8479
8479
|
* @throws {RequiredError}
|
|
8480
8480
|
*/
|
|
8481
|
-
|
|
8482
|
-
return localVarFp.
|
|
8481
|
+
adminV1SearchXStoreIDPost(xStoreID, body, options) {
|
|
8482
|
+
return localVarFp.adminV1SearchXStoreIDPost(xStoreID, body, options).then((request) => request(axios, basePath));
|
|
8483
8483
|
},
|
|
8484
8484
|
/**
|
|
8485
8485
|
* Get metadata about all configurable fields for dynamic form generation
|
|
@@ -8558,14 +8558,14 @@ export class SearchApi extends BaseAPI {
|
|
|
8558
8558
|
/**
|
|
8559
8559
|
* Search documents with optional configuration override and autocomplete suggestions
|
|
8560
8560
|
* @summary Admin Search API
|
|
8561
|
-
* @param {
|
|
8561
|
+
* @param {string} xStoreID X-Store ID
|
|
8562
8562
|
* @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
|
|
8563
8563
|
* @param {*} [options] Override http request option.
|
|
8564
8564
|
* @throws {RequiredError}
|
|
8565
8565
|
* @memberof SearchApi
|
|
8566
8566
|
*/
|
|
8567
|
-
|
|
8568
|
-
return SearchApiFp(this.configuration).
|
|
8567
|
+
adminV1SearchXStoreIDPost(xStoreID, body, options) {
|
|
8568
|
+
return SearchApiFp(this.configuration).adminV1SearchXStoreIDPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
|
|
8569
8569
|
}
|
|
8570
8570
|
/**
|
|
8571
8571
|
* Get metadata about all configurable fields for dynamic form generation
|
|
@@ -8646,17 +8646,13 @@ export class SearchApi extends BaseAPI {
|
|
|
8646
8646
|
export const StoresApiAxiosParamCreator = function (configuration) {
|
|
8647
8647
|
return {
|
|
8648
8648
|
/**
|
|
8649
|
-
* Fetches stores
|
|
8650
|
-
* @summary Fetches
|
|
8651
|
-
* @param {number} storeID Stores ID
|
|
8649
|
+
* Fetches list of all stores for the authenticated user\'s organization
|
|
8650
|
+
* @summary Fetches list of all stores
|
|
8652
8651
|
* @param {*} [options] Override http request option.
|
|
8653
8652
|
* @throws {RequiredError}
|
|
8654
8653
|
*/
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
assertParamExists('adminStoresGetStoreStoreIDGet', 'storeID', storeID);
|
|
8658
|
-
const localVarPath = `/admin/Stores/GetStore/{storeID}`
|
|
8659
|
-
.replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
|
|
8654
|
+
adminStoresGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8655
|
+
const localVarPath = `/admin/Stores`;
|
|
8660
8656
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8661
8657
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8662
8658
|
let baseOptions;
|
|
@@ -8677,17 +8673,17 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
8677
8673
|
};
|
|
8678
8674
|
}),
|
|
8679
8675
|
/**
|
|
8680
|
-
* Fetches
|
|
8681
|
-
* @summary Fetches
|
|
8682
|
-
* @param {
|
|
8676
|
+
* Fetches stores by xStoreID
|
|
8677
|
+
* @summary Fetches stores by xStoreID
|
|
8678
|
+
* @param {string} xStoreID X-Store ID
|
|
8683
8679
|
* @param {*} [options] Override http request option.
|
|
8684
8680
|
* @throws {RequiredError}
|
|
8685
8681
|
*/
|
|
8686
|
-
|
|
8687
|
-
// verify required parameter '
|
|
8688
|
-
assertParamExists('
|
|
8689
|
-
const localVarPath = `/admin/Stores/{
|
|
8690
|
-
.replace(`{${"
|
|
8682
|
+
adminStoresGetStoreXStoreIDGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
8683
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
8684
|
+
assertParamExists('adminStoresGetStoreXStoreIDGet', 'xStoreID', xStoreID);
|
|
8685
|
+
const localVarPath = `/admin/Stores/GetStore/{xStoreID}`
|
|
8686
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
8691
8687
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8692
8688
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8693
8689
|
let baseOptions;
|
|
@@ -8740,16 +8736,19 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
8740
8736
|
};
|
|
8741
8737
|
}),
|
|
8742
8738
|
/**
|
|
8743
|
-
*
|
|
8744
|
-
* @summary
|
|
8745
|
-
* @param {number} storeID
|
|
8739
|
+
* Updates store information by ID.
|
|
8740
|
+
* @summary Update an existing store
|
|
8741
|
+
* @param {number} storeID store ID
|
|
8742
|
+
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
8746
8743
|
* @param {*} [options] Override http request option.
|
|
8747
8744
|
* @throws {RequiredError}
|
|
8748
8745
|
*/
|
|
8749
|
-
|
|
8746
|
+
adminStoresStoreIDPut: (storeID_1, store_1, ...args_1) => __awaiter(this, [storeID_1, store_1, ...args_1], void 0, function* (storeID, store, options = {}) {
|
|
8750
8747
|
// verify required parameter 'storeID' is not null or undefined
|
|
8751
|
-
assertParamExists('
|
|
8752
|
-
|
|
8748
|
+
assertParamExists('adminStoresStoreIDPut', 'storeID', storeID);
|
|
8749
|
+
// verify required parameter 'store' is not null or undefined
|
|
8750
|
+
assertParamExists('adminStoresStoreIDPut', 'store', store);
|
|
8751
|
+
const localVarPath = `/admin/Stores/{storeID}`
|
|
8753
8752
|
.replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
|
|
8754
8753
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8755
8754
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8757,34 +8756,37 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
8757
8756
|
if (configuration) {
|
|
8758
8757
|
baseOptions = configuration.baseOptions;
|
|
8759
8758
|
}
|
|
8760
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8759
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8761
8760
|
const localVarHeaderParameter = {};
|
|
8762
8761
|
const localVarQueryParameter = {};
|
|
8763
8762
|
// authentication BearerAuth required
|
|
8764
8763
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
8764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8765
8765
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8766
8766
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8767
8767
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8768
|
+
localVarRequestOptions.data = serializeDataIfNeeded(store, localVarRequestOptions, configuration);
|
|
8768
8769
|
return {
|
|
8769
8770
|
url: toPathString(localVarUrlObj),
|
|
8770
8771
|
options: localVarRequestOptions,
|
|
8771
8772
|
};
|
|
8772
8773
|
}),
|
|
8773
8774
|
/**
|
|
8774
|
-
* Updates
|
|
8775
|
-
* @summary Update
|
|
8776
|
-
* @param {number}
|
|
8777
|
-
* @param {
|
|
8775
|
+
* Updates StoreStatus information by ID.
|
|
8776
|
+
* @summary Update an existing StoreStatus
|
|
8777
|
+
* @param {number} id Store ID
|
|
8778
|
+
* @param {boolean} status status
|
|
8778
8779
|
* @param {*} [options] Override http request option.
|
|
8779
8780
|
* @throws {RequiredError}
|
|
8780
8781
|
*/
|
|
8781
|
-
|
|
8782
|
-
// verify required parameter '
|
|
8783
|
-
assertParamExists('
|
|
8784
|
-
// verify required parameter '
|
|
8785
|
-
assertParamExists('
|
|
8786
|
-
const localVarPath = `/admin/Stores/{
|
|
8787
|
-
.replace(`{${"
|
|
8782
|
+
adminStoresUpdateStatusIdStatusPut: (id_1, status_1, ...args_1) => __awaiter(this, [id_1, status_1, ...args_1], void 0, function* (id, status, options = {}) {
|
|
8783
|
+
// verify required parameter 'id' is not null or undefined
|
|
8784
|
+
assertParamExists('adminStoresUpdateStatusIdStatusPut', 'id', id);
|
|
8785
|
+
// verify required parameter 'status' is not null or undefined
|
|
8786
|
+
assertParamExists('adminStoresUpdateStatusIdStatusPut', 'status', status);
|
|
8787
|
+
const localVarPath = `/admin/Stores/UpdateStatus/{id}/{status}`
|
|
8788
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
8789
|
+
.replace(`{${"status"}}`, encodeURIComponent(String(status)));
|
|
8788
8790
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8789
8791
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8790
8792
|
let baseOptions;
|
|
@@ -8796,28 +8798,26 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
8796
8798
|
const localVarQueryParameter = {};
|
|
8797
8799
|
// authentication BearerAuth required
|
|
8798
8800
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
8799
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8800
8801
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8801
8802
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8802
8803
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8803
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
8804
8804
|
return {
|
|
8805
8805
|
url: toPathString(localVarUrlObj),
|
|
8806
8806
|
options: localVarRequestOptions,
|
|
8807
8807
|
};
|
|
8808
8808
|
}),
|
|
8809
8809
|
/**
|
|
8810
|
-
*
|
|
8811
|
-
* @summary Get Store Config
|
|
8812
|
-
* @param {
|
|
8810
|
+
* Retrieves the store configuration using x-store ID
|
|
8811
|
+
* @summary Get Store Config
|
|
8812
|
+
* @param {string} xStoreID X-Store ID
|
|
8813
8813
|
* @param {*} [options] Override http request option.
|
|
8814
8814
|
* @throws {RequiredError}
|
|
8815
8815
|
*/
|
|
8816
|
-
|
|
8817
|
-
// verify required parameter '
|
|
8818
|
-
assertParamExists('
|
|
8819
|
-
const localVarPath = `/admin/Stores/{
|
|
8820
|
-
.replace(`{${"
|
|
8816
|
+
adminStoresXStoreIDConfigGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
8817
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
8818
|
+
assertParamExists('adminStoresXStoreIDConfigGet', 'xStoreID', xStoreID);
|
|
8819
|
+
const localVarPath = `/admin/Stores/{xStoreID}/config`
|
|
8820
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
8821
8821
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8822
8822
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8823
8823
|
let baseOptions;
|
|
@@ -8838,95 +8838,91 @@ export const StoresApiAxiosParamCreator = function (configuration) {
|
|
|
8838
8838
|
};
|
|
8839
8839
|
}),
|
|
8840
8840
|
/**
|
|
8841
|
-
*
|
|
8842
|
-
* @summary
|
|
8843
|
-
* @param {
|
|
8841
|
+
* Updates the store configuration using x-store ID
|
|
8842
|
+
* @summary Update Store Config
|
|
8843
|
+
* @param {string} xStoreID X-Store ID
|
|
8844
|
+
* @param {DataTypesIndexConfig} body Store configuration
|
|
8844
8845
|
* @param {*} [options] Override http request option.
|
|
8845
8846
|
* @throws {RequiredError}
|
|
8846
8847
|
*/
|
|
8847
|
-
|
|
8848
|
-
// verify required parameter '
|
|
8849
|
-
assertParamExists('
|
|
8850
|
-
|
|
8851
|
-
|
|
8848
|
+
adminStoresXStoreIDConfigPut: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
|
|
8849
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
8850
|
+
assertParamExists('adminStoresXStoreIDConfigPut', 'xStoreID', xStoreID);
|
|
8851
|
+
// verify required parameter 'body' is not null or undefined
|
|
8852
|
+
assertParamExists('adminStoresXStoreIDConfigPut', 'body', body);
|
|
8853
|
+
const localVarPath = `/admin/Stores/{xStoreID}/config`
|
|
8854
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
8852
8855
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8853
8856
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8854
8857
|
let baseOptions;
|
|
8855
8858
|
if (configuration) {
|
|
8856
8859
|
baseOptions = configuration.baseOptions;
|
|
8857
8860
|
}
|
|
8858
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8861
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8859
8862
|
const localVarHeaderParameter = {};
|
|
8860
8863
|
const localVarQueryParameter = {};
|
|
8861
8864
|
// authentication BearerAuth required
|
|
8862
8865
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
8866
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8863
8867
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8864
8868
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8865
8869
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8870
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
8866
8871
|
return {
|
|
8867
8872
|
url: toPathString(localVarUrlObj),
|
|
8868
8873
|
options: localVarRequestOptions,
|
|
8869
8874
|
};
|
|
8870
8875
|
}),
|
|
8871
8876
|
/**
|
|
8872
|
-
*
|
|
8873
|
-
* @summary
|
|
8874
|
-
* @param {
|
|
8875
|
-
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
8877
|
+
* Get metadata about all configurable fields for store configuration using x-store ID
|
|
8878
|
+
* @summary Get Store Config Schema
|
|
8879
|
+
* @param {string} xStoreID X-Store ID to get field options from
|
|
8876
8880
|
* @param {*} [options] Override http request option.
|
|
8877
8881
|
* @throws {RequiredError}
|
|
8878
8882
|
*/
|
|
8879
|
-
|
|
8880
|
-
// verify required parameter '
|
|
8881
|
-
assertParamExists('
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
const localVarPath = `/admin/Stores/{storeID}`
|
|
8885
|
-
.replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
|
|
8883
|
+
adminStoresXStoreIDConfigSchemaGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
8884
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
8885
|
+
assertParamExists('adminStoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID);
|
|
8886
|
+
const localVarPath = `/admin/Stores/{xStoreID}/config-schema`
|
|
8887
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
8886
8888
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8887
8889
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8888
8890
|
let baseOptions;
|
|
8889
8891
|
if (configuration) {
|
|
8890
8892
|
baseOptions = configuration.baseOptions;
|
|
8891
8893
|
}
|
|
8892
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8894
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8893
8895
|
const localVarHeaderParameter = {};
|
|
8894
8896
|
const localVarQueryParameter = {};
|
|
8895
8897
|
// authentication BearerAuth required
|
|
8896
8898
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
8897
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8898
8899
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8899
8900
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8900
8901
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8901
|
-
localVarRequestOptions.data = serializeDataIfNeeded(store, localVarRequestOptions, configuration);
|
|
8902
8902
|
return {
|
|
8903
8903
|
url: toPathString(localVarUrlObj),
|
|
8904
8904
|
options: localVarRequestOptions,
|
|
8905
8905
|
};
|
|
8906
8906
|
}),
|
|
8907
8907
|
/**
|
|
8908
|
-
*
|
|
8909
|
-
* @summary
|
|
8910
|
-
* @param {
|
|
8911
|
-
* @param {boolean} status status
|
|
8908
|
+
* Get default configuration values computed from the store\'s index schema using x-store ID
|
|
8909
|
+
* @summary Get Store Schema-Based Defaults
|
|
8910
|
+
* @param {string} xStoreID X-Store ID
|
|
8912
8911
|
* @param {*} [options] Override http request option.
|
|
8913
8912
|
* @throws {RequiredError}
|
|
8914
8913
|
*/
|
|
8915
|
-
|
|
8916
|
-
// verify required parameter '
|
|
8917
|
-
assertParamExists('
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
const localVarPath = `/admin/Stores/UpdateStatus/{id}/{status}`
|
|
8921
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
8922
|
-
.replace(`{${"status"}}`, encodeURIComponent(String(status)));
|
|
8914
|
+
adminStoresXStoreIDDefaultsGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
8915
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
8916
|
+
assertParamExists('adminStoresXStoreIDDefaultsGet', 'xStoreID', xStoreID);
|
|
8917
|
+
const localVarPath = `/admin/Stores/{xStoreID}/defaults`
|
|
8918
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
8923
8919
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8924
8920
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8925
8921
|
let baseOptions;
|
|
8926
8922
|
if (configuration) {
|
|
8927
8923
|
baseOptions = configuration.baseOptions;
|
|
8928
8924
|
}
|
|
8929
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8925
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8930
8926
|
const localVarHeaderParameter = {};
|
|
8931
8927
|
const localVarQueryParameter = {};
|
|
8932
8928
|
// authentication BearerAuth required
|
|
@@ -8949,34 +8945,33 @@ export const StoresApiFp = function (configuration) {
|
|
|
8949
8945
|
const localVarAxiosParamCreator = StoresApiAxiosParamCreator(configuration);
|
|
8950
8946
|
return {
|
|
8951
8947
|
/**
|
|
8952
|
-
* Fetches stores
|
|
8953
|
-
* @summary Fetches
|
|
8954
|
-
* @param {number} storeID Stores ID
|
|
8948
|
+
* Fetches list of all stores for the authenticated user\'s organization
|
|
8949
|
+
* @summary Fetches list of all stores
|
|
8955
8950
|
* @param {*} [options] Override http request option.
|
|
8956
8951
|
* @throws {RequiredError}
|
|
8957
8952
|
*/
|
|
8958
|
-
|
|
8953
|
+
adminStoresGet(options) {
|
|
8959
8954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8960
8955
|
var _a, _b, _c;
|
|
8961
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGet(options);
|
|
8962
8957
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8963
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
8958
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8964
8959
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8965
8960
|
});
|
|
8966
8961
|
},
|
|
8967
8962
|
/**
|
|
8968
|
-
* Fetches
|
|
8969
|
-
* @summary Fetches
|
|
8970
|
-
* @param {
|
|
8963
|
+
* Fetches stores by xStoreID
|
|
8964
|
+
* @summary Fetches stores by xStoreID
|
|
8965
|
+
* @param {string} xStoreID X-Store ID
|
|
8971
8966
|
* @param {*} [options] Override http request option.
|
|
8972
8967
|
* @throws {RequiredError}
|
|
8973
8968
|
*/
|
|
8974
|
-
|
|
8969
|
+
adminStoresGetStoreXStoreIDGet(xStoreID, options) {
|
|
8975
8970
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8976
8971
|
var _a, _b, _c;
|
|
8977
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresGetStoreXStoreIDGet(xStoreID, options);
|
|
8978
8973
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8979
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
8974
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresGetStoreXStoreIDGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8980
8975
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8981
8976
|
});
|
|
8982
8977
|
},
|
|
@@ -8997,101 +8992,101 @@ export const StoresApiFp = function (configuration) {
|
|
|
8997
8992
|
});
|
|
8998
8993
|
},
|
|
8999
8994
|
/**
|
|
9000
|
-
*
|
|
9001
|
-
* @summary
|
|
9002
|
-
* @param {number} storeID
|
|
8995
|
+
* Updates store information by ID.
|
|
8996
|
+
* @summary Update an existing store
|
|
8997
|
+
* @param {number} storeID store ID
|
|
8998
|
+
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
9003
8999
|
* @param {*} [options] Override http request option.
|
|
9004
9000
|
* @throws {RequiredError}
|
|
9005
9001
|
*/
|
|
9006
|
-
|
|
9002
|
+
adminStoresStoreIDPut(storeID, store, options) {
|
|
9007
9003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9008
9004
|
var _a, _b, _c;
|
|
9009
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDPut(storeID, store, options);
|
|
9010
9006
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9011
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
9007
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresStoreIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9012
9008
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9013
9009
|
});
|
|
9014
9010
|
},
|
|
9015
9011
|
/**
|
|
9016
|
-
* Updates
|
|
9017
|
-
* @summary Update
|
|
9018
|
-
* @param {number}
|
|
9019
|
-
* @param {
|
|
9012
|
+
* Updates StoreStatus information by ID.
|
|
9013
|
+
* @summary Update an existing StoreStatus
|
|
9014
|
+
* @param {number} id Store ID
|
|
9015
|
+
* @param {boolean} status status
|
|
9020
9016
|
* @param {*} [options] Override http request option.
|
|
9021
9017
|
* @throws {RequiredError}
|
|
9022
9018
|
*/
|
|
9023
|
-
|
|
9019
|
+
adminStoresUpdateStatusIdStatusPut(id, status, options) {
|
|
9024
9020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9025
9021
|
var _a, _b, _c;
|
|
9026
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9022
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresUpdateStatusIdStatusPut(id, status, options);
|
|
9027
9023
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9028
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
9024
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresUpdateStatusIdStatusPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9029
9025
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9030
9026
|
});
|
|
9031
9027
|
},
|
|
9032
9028
|
/**
|
|
9033
|
-
*
|
|
9034
|
-
* @summary Get Store Config
|
|
9035
|
-
* @param {
|
|
9029
|
+
* Retrieves the store configuration using x-store ID
|
|
9030
|
+
* @summary Get Store Config
|
|
9031
|
+
* @param {string} xStoreID X-Store ID
|
|
9036
9032
|
* @param {*} [options] Override http request option.
|
|
9037
9033
|
* @throws {RequiredError}
|
|
9038
9034
|
*/
|
|
9039
|
-
|
|
9035
|
+
adminStoresXStoreIDConfigGet(xStoreID, options) {
|
|
9040
9036
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9041
9037
|
var _a, _b, _c;
|
|
9042
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9038
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigGet(xStoreID, options);
|
|
9043
9039
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9044
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
9040
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9045
9041
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9046
9042
|
});
|
|
9047
9043
|
},
|
|
9048
9044
|
/**
|
|
9049
|
-
*
|
|
9050
|
-
* @summary
|
|
9051
|
-
* @param {
|
|
9045
|
+
* Updates the store configuration using x-store ID
|
|
9046
|
+
* @summary Update Store Config
|
|
9047
|
+
* @param {string} xStoreID X-Store ID
|
|
9048
|
+
* @param {DataTypesIndexConfig} body Store configuration
|
|
9052
9049
|
* @param {*} [options] Override http request option.
|
|
9053
9050
|
* @throws {RequiredError}
|
|
9054
9051
|
*/
|
|
9055
|
-
|
|
9052
|
+
adminStoresXStoreIDConfigPut(xStoreID, body, options) {
|
|
9056
9053
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9057
9054
|
var _a, _b, _c;
|
|
9058
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9055
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigPut(xStoreID, body, options);
|
|
9059
9056
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9060
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
9057
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9061
9058
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9062
9059
|
});
|
|
9063
9060
|
},
|
|
9064
9061
|
/**
|
|
9065
|
-
*
|
|
9066
|
-
* @summary
|
|
9067
|
-
* @param {
|
|
9068
|
-
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
9062
|
+
* Get metadata about all configurable fields for store configuration using x-store ID
|
|
9063
|
+
* @summary Get Store Config Schema
|
|
9064
|
+
* @param {string} xStoreID X-Store ID to get field options from
|
|
9069
9065
|
* @param {*} [options] Override http request option.
|
|
9070
9066
|
* @throws {RequiredError}
|
|
9071
9067
|
*/
|
|
9072
|
-
|
|
9068
|
+
adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
|
|
9073
9069
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9074
9070
|
var _a, _b, _c;
|
|
9075
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9071
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDConfigSchemaGet(xStoreID, options);
|
|
9076
9072
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9077
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
9073
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDConfigSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9078
9074
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9079
9075
|
});
|
|
9080
9076
|
},
|
|
9081
9077
|
/**
|
|
9082
|
-
*
|
|
9083
|
-
* @summary
|
|
9084
|
-
* @param {
|
|
9085
|
-
* @param {boolean} status status
|
|
9078
|
+
* Get default configuration values computed from the store\'s index schema using x-store ID
|
|
9079
|
+
* @summary Get Store Schema-Based Defaults
|
|
9080
|
+
* @param {string} xStoreID X-Store ID
|
|
9086
9081
|
* @param {*} [options] Override http request option.
|
|
9087
9082
|
* @throws {RequiredError}
|
|
9088
9083
|
*/
|
|
9089
|
-
|
|
9084
|
+
adminStoresXStoreIDDefaultsGet(xStoreID, options) {
|
|
9090
9085
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9091
9086
|
var _a, _b, _c;
|
|
9092
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9087
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDefaultsGet(xStoreID, options);
|
|
9093
9088
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9094
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.
|
|
9089
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDDefaultsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9095
9090
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9096
9091
|
});
|
|
9097
9092
|
},
|
|
@@ -9105,24 +9100,23 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
|
|
|
9105
9100
|
const localVarFp = StoresApiFp(configuration);
|
|
9106
9101
|
return {
|
|
9107
9102
|
/**
|
|
9108
|
-
* Fetches stores
|
|
9109
|
-
* @summary Fetches
|
|
9110
|
-
* @param {number} storeID Stores ID
|
|
9103
|
+
* Fetches list of all stores for the authenticated user\'s organization
|
|
9104
|
+
* @summary Fetches list of all stores
|
|
9111
9105
|
* @param {*} [options] Override http request option.
|
|
9112
9106
|
* @throws {RequiredError}
|
|
9113
9107
|
*/
|
|
9114
|
-
|
|
9115
|
-
return localVarFp.
|
|
9108
|
+
adminStoresGet(options) {
|
|
9109
|
+
return localVarFp.adminStoresGet(options).then((request) => request(axios, basePath));
|
|
9116
9110
|
},
|
|
9117
9111
|
/**
|
|
9118
|
-
* Fetches
|
|
9119
|
-
* @summary Fetches
|
|
9120
|
-
* @param {
|
|
9112
|
+
* Fetches stores by xStoreID
|
|
9113
|
+
* @summary Fetches stores by xStoreID
|
|
9114
|
+
* @param {string} xStoreID X-Store ID
|
|
9121
9115
|
* @param {*} [options] Override http request option.
|
|
9122
9116
|
* @throws {RequiredError}
|
|
9123
9117
|
*/
|
|
9124
|
-
|
|
9125
|
-
return localVarFp.
|
|
9118
|
+
adminStoresGetStoreXStoreIDGet(xStoreID, options) {
|
|
9119
|
+
return localVarFp.adminStoresGetStoreXStoreIDGet(xStoreID, options).then((request) => request(axios, basePath));
|
|
9126
9120
|
},
|
|
9127
9121
|
/**
|
|
9128
9122
|
* Adds a new store to the system
|
|
@@ -9135,67 +9129,67 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
|
|
|
9135
9129
|
return localVarFp.adminStoresPost(store, options).then((request) => request(axios, basePath));
|
|
9136
9130
|
},
|
|
9137
9131
|
/**
|
|
9138
|
-
*
|
|
9139
|
-
* @summary
|
|
9140
|
-
* @param {number} storeID
|
|
9132
|
+
* Updates store information by ID.
|
|
9133
|
+
* @summary Update an existing store
|
|
9134
|
+
* @param {number} storeID store ID
|
|
9135
|
+
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
9141
9136
|
* @param {*} [options] Override http request option.
|
|
9142
9137
|
* @throws {RequiredError}
|
|
9143
9138
|
*/
|
|
9144
|
-
|
|
9145
|
-
return localVarFp.
|
|
9139
|
+
adminStoresStoreIDPut(storeID, store, options) {
|
|
9140
|
+
return localVarFp.adminStoresStoreIDPut(storeID, store, options).then((request) => request(axios, basePath));
|
|
9146
9141
|
},
|
|
9147
9142
|
/**
|
|
9148
|
-
* Updates
|
|
9149
|
-
* @summary Update
|
|
9150
|
-
* @param {number}
|
|
9151
|
-
* @param {
|
|
9143
|
+
* Updates StoreStatus information by ID.
|
|
9144
|
+
* @summary Update an existing StoreStatus
|
|
9145
|
+
* @param {number} id Store ID
|
|
9146
|
+
* @param {boolean} status status
|
|
9152
9147
|
* @param {*} [options] Override http request option.
|
|
9153
9148
|
* @throws {RequiredError}
|
|
9154
9149
|
*/
|
|
9155
|
-
|
|
9156
|
-
return localVarFp.
|
|
9150
|
+
adminStoresUpdateStatusIdStatusPut(id, status, options) {
|
|
9151
|
+
return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
|
|
9157
9152
|
},
|
|
9158
9153
|
/**
|
|
9159
|
-
*
|
|
9160
|
-
* @summary Get Store Config
|
|
9161
|
-
* @param {
|
|
9154
|
+
* Retrieves the store configuration using x-store ID
|
|
9155
|
+
* @summary Get Store Config
|
|
9156
|
+
* @param {string} xStoreID X-Store ID
|
|
9162
9157
|
* @param {*} [options] Override http request option.
|
|
9163
9158
|
* @throws {RequiredError}
|
|
9164
9159
|
*/
|
|
9165
|
-
|
|
9166
|
-
return localVarFp.
|
|
9160
|
+
adminStoresXStoreIDConfigGet(xStoreID, options) {
|
|
9161
|
+
return localVarFp.adminStoresXStoreIDConfigGet(xStoreID, options).then((request) => request(axios, basePath));
|
|
9167
9162
|
},
|
|
9168
9163
|
/**
|
|
9169
|
-
*
|
|
9170
|
-
* @summary
|
|
9171
|
-
* @param {
|
|
9164
|
+
* Updates the store configuration using x-store ID
|
|
9165
|
+
* @summary Update Store Config
|
|
9166
|
+
* @param {string} xStoreID X-Store ID
|
|
9167
|
+
* @param {DataTypesIndexConfig} body Store configuration
|
|
9172
9168
|
* @param {*} [options] Override http request option.
|
|
9173
9169
|
* @throws {RequiredError}
|
|
9174
9170
|
*/
|
|
9175
|
-
|
|
9176
|
-
return localVarFp.
|
|
9171
|
+
adminStoresXStoreIDConfigPut(xStoreID, body, options) {
|
|
9172
|
+
return localVarFp.adminStoresXStoreIDConfigPut(xStoreID, body, options).then((request) => request(axios, basePath));
|
|
9177
9173
|
},
|
|
9178
9174
|
/**
|
|
9179
|
-
*
|
|
9180
|
-
* @summary
|
|
9181
|
-
* @param {
|
|
9182
|
-
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
9175
|
+
* Get metadata about all configurable fields for store configuration using x-store ID
|
|
9176
|
+
* @summary Get Store Config Schema
|
|
9177
|
+
* @param {string} xStoreID X-Store ID to get field options from
|
|
9183
9178
|
* @param {*} [options] Override http request option.
|
|
9184
9179
|
* @throws {RequiredError}
|
|
9185
9180
|
*/
|
|
9186
|
-
|
|
9187
|
-
return localVarFp.
|
|
9181
|
+
adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
|
|
9182
|
+
return localVarFp.adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(axios, basePath));
|
|
9188
9183
|
},
|
|
9189
9184
|
/**
|
|
9190
|
-
*
|
|
9191
|
-
* @summary
|
|
9192
|
-
* @param {
|
|
9193
|
-
* @param {boolean} status status
|
|
9185
|
+
* Get default configuration values computed from the store\'s index schema using x-store ID
|
|
9186
|
+
* @summary Get Store Schema-Based Defaults
|
|
9187
|
+
* @param {string} xStoreID X-Store ID
|
|
9194
9188
|
* @param {*} [options] Override http request option.
|
|
9195
9189
|
* @throws {RequiredError}
|
|
9196
9190
|
*/
|
|
9197
|
-
|
|
9198
|
-
return localVarFp.
|
|
9191
|
+
adminStoresXStoreIDDefaultsGet(xStoreID, options) {
|
|
9192
|
+
return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
|
|
9199
9193
|
},
|
|
9200
9194
|
};
|
|
9201
9195
|
};
|
|
@@ -9207,26 +9201,25 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
|
|
|
9207
9201
|
*/
|
|
9208
9202
|
export class StoresApi extends BaseAPI {
|
|
9209
9203
|
/**
|
|
9210
|
-
* Fetches stores
|
|
9211
|
-
* @summary Fetches
|
|
9212
|
-
* @param {number} storeID Stores ID
|
|
9204
|
+
* Fetches list of all stores for the authenticated user\'s organization
|
|
9205
|
+
* @summary Fetches list of all stores
|
|
9213
9206
|
* @param {*} [options] Override http request option.
|
|
9214
9207
|
* @throws {RequiredError}
|
|
9215
9208
|
* @memberof StoresApi
|
|
9216
9209
|
*/
|
|
9217
|
-
|
|
9218
|
-
return StoresApiFp(this.configuration).
|
|
9210
|
+
adminStoresGet(options) {
|
|
9211
|
+
return StoresApiFp(this.configuration).adminStoresGet(options).then((request) => request(this.axios, this.basePath));
|
|
9219
9212
|
}
|
|
9220
9213
|
/**
|
|
9221
|
-
* Fetches
|
|
9222
|
-
* @summary Fetches
|
|
9223
|
-
* @param {
|
|
9214
|
+
* Fetches stores by xStoreID
|
|
9215
|
+
* @summary Fetches stores by xStoreID
|
|
9216
|
+
* @param {string} xStoreID X-Store ID
|
|
9224
9217
|
* @param {*} [options] Override http request option.
|
|
9225
9218
|
* @throws {RequiredError}
|
|
9226
9219
|
* @memberof StoresApi
|
|
9227
9220
|
*/
|
|
9228
|
-
|
|
9229
|
-
return StoresApiFp(this.configuration).
|
|
9221
|
+
adminStoresGetStoreXStoreIDGet(xStoreID, options) {
|
|
9222
|
+
return StoresApiFp(this.configuration).adminStoresGetStoreXStoreIDGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
9230
9223
|
}
|
|
9231
9224
|
/**
|
|
9232
9225
|
* Adds a new store to the system
|
|
@@ -9240,73 +9233,73 @@ export class StoresApi extends BaseAPI {
|
|
|
9240
9233
|
return StoresApiFp(this.configuration).adminStoresPost(store, options).then((request) => request(this.axios, this.basePath));
|
|
9241
9234
|
}
|
|
9242
9235
|
/**
|
|
9243
|
-
*
|
|
9244
|
-
* @summary
|
|
9245
|
-
* @param {number} storeID
|
|
9236
|
+
* Updates store information by ID.
|
|
9237
|
+
* @summary Update an existing store
|
|
9238
|
+
* @param {number} storeID store ID
|
|
9239
|
+
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
9246
9240
|
* @param {*} [options] Override http request option.
|
|
9247
9241
|
* @throws {RequiredError}
|
|
9248
9242
|
* @memberof StoresApi
|
|
9249
9243
|
*/
|
|
9250
|
-
|
|
9251
|
-
return StoresApiFp(this.configuration).
|
|
9244
|
+
adminStoresStoreIDPut(storeID, store, options) {
|
|
9245
|
+
return StoresApiFp(this.configuration).adminStoresStoreIDPut(storeID, store, options).then((request) => request(this.axios, this.basePath));
|
|
9252
9246
|
}
|
|
9253
9247
|
/**
|
|
9254
|
-
* Updates
|
|
9255
|
-
* @summary Update
|
|
9256
|
-
* @param {number}
|
|
9257
|
-
* @param {
|
|
9248
|
+
* Updates StoreStatus information by ID.
|
|
9249
|
+
* @summary Update an existing StoreStatus
|
|
9250
|
+
* @param {number} id Store ID
|
|
9251
|
+
* @param {boolean} status status
|
|
9258
9252
|
* @param {*} [options] Override http request option.
|
|
9259
9253
|
* @throws {RequiredError}
|
|
9260
9254
|
* @memberof StoresApi
|
|
9261
9255
|
*/
|
|
9262
|
-
|
|
9263
|
-
return StoresApiFp(this.configuration).
|
|
9256
|
+
adminStoresUpdateStatusIdStatusPut(id, status, options) {
|
|
9257
|
+
return StoresApiFp(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
|
|
9264
9258
|
}
|
|
9265
9259
|
/**
|
|
9266
|
-
*
|
|
9267
|
-
* @summary Get Store Config
|
|
9268
|
-
* @param {
|
|
9260
|
+
* Retrieves the store configuration using x-store ID
|
|
9261
|
+
* @summary Get Store Config
|
|
9262
|
+
* @param {string} xStoreID X-Store ID
|
|
9269
9263
|
* @param {*} [options] Override http request option.
|
|
9270
9264
|
* @throws {RequiredError}
|
|
9271
9265
|
* @memberof StoresApi
|
|
9272
9266
|
*/
|
|
9273
|
-
|
|
9274
|
-
return StoresApiFp(this.configuration).
|
|
9267
|
+
adminStoresXStoreIDConfigGet(xStoreID, options) {
|
|
9268
|
+
return StoresApiFp(this.configuration).adminStoresXStoreIDConfigGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
9275
9269
|
}
|
|
9276
9270
|
/**
|
|
9277
|
-
*
|
|
9278
|
-
* @summary
|
|
9279
|
-
* @param {
|
|
9271
|
+
* Updates the store configuration using x-store ID
|
|
9272
|
+
* @summary Update Store Config
|
|
9273
|
+
* @param {string} xStoreID X-Store ID
|
|
9274
|
+
* @param {DataTypesIndexConfig} body Store configuration
|
|
9280
9275
|
* @param {*} [options] Override http request option.
|
|
9281
9276
|
* @throws {RequiredError}
|
|
9282
9277
|
* @memberof StoresApi
|
|
9283
9278
|
*/
|
|
9284
|
-
|
|
9285
|
-
return StoresApiFp(this.configuration).
|
|
9279
|
+
adminStoresXStoreIDConfigPut(xStoreID, body, options) {
|
|
9280
|
+
return StoresApiFp(this.configuration).adminStoresXStoreIDConfigPut(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
|
|
9286
9281
|
}
|
|
9287
9282
|
/**
|
|
9288
|
-
*
|
|
9289
|
-
* @summary
|
|
9290
|
-
* @param {
|
|
9291
|
-
* @param {DataTypesStoreRequestDto} store Store data to update
|
|
9283
|
+
* Get metadata about all configurable fields for store configuration using x-store ID
|
|
9284
|
+
* @summary Get Store Config Schema
|
|
9285
|
+
* @param {string} xStoreID X-Store ID to get field options from
|
|
9292
9286
|
* @param {*} [options] Override http request option.
|
|
9293
9287
|
* @throws {RequiredError}
|
|
9294
9288
|
* @memberof StoresApi
|
|
9295
9289
|
*/
|
|
9296
|
-
|
|
9297
|
-
return StoresApiFp(this.configuration).
|
|
9290
|
+
adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
|
|
9291
|
+
return StoresApiFp(this.configuration).adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
9298
9292
|
}
|
|
9299
9293
|
/**
|
|
9300
|
-
*
|
|
9301
|
-
* @summary
|
|
9302
|
-
* @param {
|
|
9303
|
-
* @param {boolean} status status
|
|
9294
|
+
* Get default configuration values computed from the store\'s index schema using x-store ID
|
|
9295
|
+
* @summary Get Store Schema-Based Defaults
|
|
9296
|
+
* @param {string} xStoreID X-Store ID
|
|
9304
9297
|
* @param {*} [options] Override http request option.
|
|
9305
9298
|
* @throws {RequiredError}
|
|
9306
9299
|
* @memberof StoresApi
|
|
9307
9300
|
*/
|
|
9308
|
-
|
|
9309
|
-
return StoresApiFp(this.configuration).
|
|
9301
|
+
adminStoresXStoreIDDefaultsGet(xStoreID, options) {
|
|
9302
|
+
return StoresApiFp(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
9310
9303
|
}
|
|
9311
9304
|
}
|
|
9312
9305
|
/**
|