@seekora-ai/admin-api 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -2438,6 +2438,33 @@ export const MenusApiAxiosParamCreator = function (configuration) {
2438
2438
  options: localVarRequestOptions,
2439
2439
  };
2440
2440
  }),
2441
+ /**
2442
+ * Fetches hierarchical menu access for the currently logged-in user
2443
+ * @summary Fetches hierarchical menu access for logged-in user
2444
+ * @param {*} [options] Override http request option.
2445
+ * @throws {RequiredError}
2446
+ */
2447
+ miscMenusUserAccessGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2448
+ const localVarPath = `/misc/menus/user-access`;
2449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2451
+ let baseOptions;
2452
+ if (configuration) {
2453
+ baseOptions = configuration.baseOptions;
2454
+ }
2455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2456
+ const localVarHeaderParameter = {};
2457
+ const localVarQueryParameter = {};
2458
+ // authentication BearerAuth required
2459
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2460
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2461
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2462
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2463
+ return {
2464
+ url: toPathString(localVarUrlObj),
2465
+ options: localVarRequestOptions,
2466
+ };
2467
+ }),
2441
2468
  };
2442
2469
  };
2443
2470
  /**
@@ -2663,6 +2690,21 @@ export const MenusApiFp = function (configuration) {
2663
2690
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2664
2691
  });
2665
2692
  },
2693
+ /**
2694
+ * Fetches hierarchical menu access for the currently logged-in user
2695
+ * @summary Fetches hierarchical menu access for logged-in user
2696
+ * @param {*} [options] Override http request option.
2697
+ * @throws {RequiredError}
2698
+ */
2699
+ miscMenusUserAccessGet(options) {
2700
+ return __awaiter(this, void 0, void 0, function* () {
2701
+ var _a, _b, _c;
2702
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.miscMenusUserAccessGet(options);
2703
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2704
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenusApi.miscMenusUserAccessGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2705
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2706
+ });
2707
+ },
2666
2708
  };
2667
2709
  };
2668
2710
  /**
@@ -2810,6 +2852,15 @@ export const MenusApiFactory = function (configuration, basePath, axios) {
2810
2852
  miscMenusStoreStoreIdPost(storeId, menu, options) {
2811
2853
  return localVarFp.miscMenusStoreStoreIdPost(storeId, menu, options).then((request) => request(axios, basePath));
2812
2854
  },
2855
+ /**
2856
+ * Fetches hierarchical menu access for the currently logged-in user
2857
+ * @summary Fetches hierarchical menu access for logged-in user
2858
+ * @param {*} [options] Override http request option.
2859
+ * @throws {RequiredError}
2860
+ */
2861
+ miscMenusUserAccessGet(options) {
2862
+ return localVarFp.miscMenusUserAccessGet(options).then((request) => request(axios, basePath));
2863
+ },
2813
2864
  };
2814
2865
  };
2815
2866
  /**
@@ -2970,6 +3021,16 @@ export class MenusApi extends BaseAPI {
2970
3021
  miscMenusStoreStoreIdPost(storeId, menu, options) {
2971
3022
  return MenusApiFp(this.configuration).miscMenusStoreStoreIdPost(storeId, menu, options).then((request) => request(this.axios, this.basePath));
2972
3023
  }
3024
+ /**
3025
+ * Fetches hierarchical menu access for the currently logged-in user
3026
+ * @summary Fetches hierarchical menu access for logged-in user
3027
+ * @param {*} [options] Override http request option.
3028
+ * @throws {RequiredError}
3029
+ * @memberof MenusApi
3030
+ */
3031
+ miscMenusUserAccessGet(options) {
3032
+ return MenusApiFp(this.configuration).miscMenusUserAccessGet(options).then((request) => request(this.axios, this.basePath));
3033
+ }
2973
3034
  }
2974
3035
  /**
2975
3036
  * ModulesApi - axios parameter creator
@@ -4389,13 +4450,13 @@ export const OnboardingApiAxiosParamCreator = function (configuration) {
4389
4450
  /**
4390
4451
  * Upload source data
4391
4452
  * @summary Upload source data
4392
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4453
+ * @param {File} file File
4393
4454
  * @param {*} [options] Override http request option.
4394
4455
  * @throws {RequiredError}
4395
4456
  */
4396
- adminV1UsersOnboardingUploaddataPost: (adminV1UsersOnboardingUploaddataPostRequest_1, ...args_1) => __awaiter(this, [adminV1UsersOnboardingUploaddataPostRequest_1, ...args_1], void 0, function* (adminV1UsersOnboardingUploaddataPostRequest, options = {}) {
4397
- // verify required parameter 'adminV1UsersOnboardingUploaddataPostRequest' is not null or undefined
4398
- assertParamExists('adminV1UsersOnboardingUploaddataPost', 'adminV1UsersOnboardingUploaddataPostRequest', adminV1UsersOnboardingUploaddataPostRequest);
4457
+ adminV1UsersOnboardingUploaddataPost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
4458
+ // verify required parameter 'file' is not null or undefined
4459
+ assertParamExists('adminV1UsersOnboardingUploaddataPost', 'file', file);
4399
4460
  const localVarPath = `/admin/v1/users/onboarding/uploaddata`;
4400
4461
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4401
4462
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4406,13 +4467,17 @@ export const OnboardingApiAxiosParamCreator = function (configuration) {
4406
4467
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4407
4468
  const localVarHeaderParameter = {};
4408
4469
  const localVarQueryParameter = {};
4470
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
4409
4471
  // authentication BearerAuth required
4410
4472
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
4411
- localVarHeaderParameter['Content-Type'] = 'application/json';
4473
+ if (file !== undefined) {
4474
+ localVarFormParams.append('File', file);
4475
+ }
4476
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
4412
4477
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4413
4478
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4414
4479
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4415
- localVarRequestOptions.data = serializeDataIfNeeded(adminV1UsersOnboardingUploaddataPostRequest, localVarRequestOptions, configuration);
4480
+ localVarRequestOptions.data = localVarFormParams;
4416
4481
  return {
4417
4482
  url: toPathString(localVarUrlObj),
4418
4483
  options: localVarRequestOptions,
@@ -4566,14 +4631,14 @@ export const OnboardingApiFp = function (configuration) {
4566
4631
  /**
4567
4632
  * Upload source data
4568
4633
  * @summary Upload source data
4569
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4634
+ * @param {File} file File
4570
4635
  * @param {*} [options] Override http request option.
4571
4636
  * @throws {RequiredError}
4572
4637
  */
4573
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4638
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4574
4639
  return __awaiter(this, void 0, void 0, function* () {
4575
4640
  var _a, _b, _c;
4576
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options);
4641
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(file, options);
4577
4642
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4578
4643
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OnboardingApi.adminV1UsersOnboardingUploaddataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4579
4644
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4673,12 +4738,12 @@ export const OnboardingApiFactory = function (configuration, basePath, axios) {
4673
4738
  /**
4674
4739
  * Upload source data
4675
4740
  * @summary Upload source data
4676
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4741
+ * @param {File} file File
4677
4742
  * @param {*} [options] Override http request option.
4678
4743
  * @throws {RequiredError}
4679
4744
  */
4680
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4681
- return localVarFp.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(axios, basePath));
4745
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4746
+ return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
4682
4747
  },
4683
4748
  /**
4684
4749
  * Get sample datasets
@@ -4775,13 +4840,13 @@ export class OnboardingApi extends BaseAPI {
4775
4840
  /**
4776
4841
  * Upload source data
4777
4842
  * @summary Upload source data
4778
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4843
+ * @param {File} file File
4779
4844
  * @param {*} [options] Override http request option.
4780
4845
  * @throws {RequiredError}
4781
4846
  * @memberof OnboardingApi
4782
4847
  */
4783
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4784
- return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(this.axios, this.basePath));
4848
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4849
+ return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
4785
4850
  }
4786
4851
  /**
4787
4852
  * Get sample datasets
@@ -7972,22 +8037,22 @@ export class RolesApi extends BaseAPI {
7972
8037
  export const SearchApiAxiosParamCreator = function (configuration) {
7973
8038
  return {
7974
8039
  /**
7975
- * Configure the index for search
7976
- * @summary Index Config
7977
- * @param {string} xStoreid Store ID
7978
- * @param {string} xStoresecret Store Secret
7979
- * @param {DataTypesIndexConfig} body Index configuration
8040
+ * Search documents with optional configuration override and autocomplete suggestions
8041
+ * @summary Admin Search API
8042
+ * @param {string} xStoreID Store ID for the selected store
8043
+ * @param {string} xStoreSecret Store Secret for the selected store
8044
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
7980
8045
  * @param {*} [options] Override http request option.
7981
8046
  * @throws {RequiredError}
7982
8047
  */
7983
- v1IndexConfigPost: (xStoreid_1, xStoresecret_1, body_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, body_1, ...args_1], void 0, function* (xStoreid, xStoresecret, body, options = {}) {
7984
- // verify required parameter 'xStoreid' is not null or undefined
7985
- assertParamExists('v1IndexConfigPost', 'xStoreid', xStoreid);
7986
- // verify required parameter 'xStoresecret' is not null or undefined
7987
- assertParamExists('v1IndexConfigPost', 'xStoresecret', xStoresecret);
8048
+ adminV1SearchPost: (xStoreID_1, xStoreSecret_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, xStoreSecret_1, body_1, ...args_1], void 0, function* (xStoreID, xStoreSecret, body, options = {}) {
8049
+ // verify required parameter 'xStoreID' is not null or undefined
8050
+ assertParamExists('adminV1SearchPost', 'xStoreID', xStoreID);
8051
+ // verify required parameter 'xStoreSecret' is not null or undefined
8052
+ assertParamExists('adminV1SearchPost', 'xStoreSecret', xStoreSecret);
7988
8053
  // verify required parameter 'body' is not null or undefined
7989
- assertParamExists('v1IndexConfigPost', 'body', body);
7990
- const localVarPath = `/v1/index/config`;
8054
+ assertParamExists('adminV1SearchPost', 'body', body);
8055
+ const localVarPath = `/admin/v1/search`;
7991
8056
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7992
8057
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7993
8058
  let baseOptions;
@@ -7997,12 +8062,14 @@ export const SearchApiAxiosParamCreator = function (configuration) {
7997
8062
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7998
8063
  const localVarHeaderParameter = {};
7999
8064
  const localVarQueryParameter = {};
8065
+ // authentication BearerAuth required
8066
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8000
8067
  localVarHeaderParameter['Content-Type'] = 'application/json';
8001
- if (xStoreid != null) {
8002
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8068
+ if (xStoreID != null) {
8069
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8003
8070
  }
8004
- if (xStoresecret != null) {
8005
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8071
+ if (xStoreSecret != null) {
8072
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8006
8073
  }
8007
8074
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8008
8075
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8014,46 +8081,29 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8014
8081
  };
8015
8082
  }),
8016
8083
  /**
8017
- * Update a single property of the index configuration
8018
- * @summary Update Index Config Property
8019
- * @param {string} xStoreid Store ID
8020
- * @param {string} xStoresecret Store Secret
8021
- * @param {string} property Property name
8022
- * @param {object} body Property value
8084
+ * Get the current index configuration
8085
+ * @summary Get Index Config
8086
+ * @param {string} indexname Index Name
8023
8087
  * @param {*} [options] Override http request option.
8024
8088
  * @throws {RequiredError}
8025
8089
  */
8026
- v1IndexConfigPropertyPatch: (xStoreid_1, xStoresecret_1, property_1, body_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, property_1, body_1, ...args_1], void 0, function* (xStoreid, xStoresecret, property, body, options = {}) {
8027
- // verify required parameter 'xStoreid' is not null or undefined
8028
- assertParamExists('v1IndexConfigPropertyPatch', 'xStoreid', xStoreid);
8029
- // verify required parameter 'xStoresecret' is not null or undefined
8030
- assertParamExists('v1IndexConfigPropertyPatch', 'xStoresecret', xStoresecret);
8031
- // verify required parameter 'property' is not null or undefined
8032
- assertParamExists('v1IndexConfigPropertyPatch', 'property', property);
8033
- // verify required parameter 'body' is not null or undefined
8034
- assertParamExists('v1IndexConfigPropertyPatch', 'body', body);
8035
- const localVarPath = `/v1/index/config/{property}`
8036
- .replace(`{${"property"}}`, encodeURIComponent(String(property)));
8090
+ v1IndexIndexnameConfigGet: (indexname_1, ...args_1) => __awaiter(this, [indexname_1, ...args_1], void 0, function* (indexname, options = {}) {
8091
+ // verify required parameter 'indexname' is not null or undefined
8092
+ assertParamExists('v1IndexIndexnameConfigGet', 'indexname', indexname);
8093
+ const localVarPath = `/v1/index/{indexname}/config`
8094
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
8037
8095
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8038
8096
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8039
8097
  let baseOptions;
8040
8098
  if (configuration) {
8041
8099
  baseOptions = configuration.baseOptions;
8042
8100
  }
8043
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8101
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8044
8102
  const localVarHeaderParameter = {};
8045
8103
  const localVarQueryParameter = {};
8046
- localVarHeaderParameter['Content-Type'] = 'application/json';
8047
- if (xStoreid != null) {
8048
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8049
- }
8050
- if (xStoresecret != null) {
8051
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8052
- }
8053
8104
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8054
8105
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8055
8106
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8056
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
8057
8107
  return {
8058
8108
  url: toPathString(localVarUrlObj),
8059
8109
  options: localVarRequestOptions,
@@ -8062,18 +8112,12 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8062
8112
  /**
8063
8113
  * Configure the index for search
8064
8114
  * @summary Index Config
8065
- * @param {string} xStoreid Store ID
8066
- * @param {string} xStoresecret Store Secret
8067
8115
  * @param {string} indexname Index Name
8068
8116
  * @param {DataTypesIndexConfig} body Index configuration
8069
8117
  * @param {*} [options] Override http request option.
8070
8118
  * @throws {RequiredError}
8071
8119
  */
8072
- v1IndexIndexnameConfigPost: (xStoreid_1, xStoresecret_1, indexname_1, body_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, indexname_1, body_1, ...args_1], void 0, function* (xStoreid, xStoresecret, indexname, body, options = {}) {
8073
- // verify required parameter 'xStoreid' is not null or undefined
8074
- assertParamExists('v1IndexIndexnameConfigPost', 'xStoreid', xStoreid);
8075
- // verify required parameter 'xStoresecret' is not null or undefined
8076
- assertParamExists('v1IndexIndexnameConfigPost', 'xStoresecret', xStoresecret);
8120
+ v1IndexIndexnameConfigPost: (indexname_1, body_1, ...args_1) => __awaiter(this, [indexname_1, body_1, ...args_1], void 0, function* (indexname, body, options = {}) {
8077
8121
  // verify required parameter 'indexname' is not null or undefined
8078
8122
  assertParamExists('v1IndexIndexnameConfigPost', 'indexname', indexname);
8079
8123
  // verify required parameter 'body' is not null or undefined
@@ -8090,12 +8134,6 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8090
8134
  const localVarHeaderParameter = {};
8091
8135
  const localVarQueryParameter = {};
8092
8136
  localVarHeaderParameter['Content-Type'] = 'application/json';
8093
- if (xStoreid != null) {
8094
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8095
- }
8096
- if (xStoresecret != null) {
8097
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8098
- }
8099
8137
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8100
8138
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8101
8139
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8108,19 +8146,13 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8108
8146
  /**
8109
8147
  * Update a single property of the index configuration
8110
8148
  * @summary Update Index Config Property
8111
- * @param {string} xStoreid Store ID
8112
- * @param {string} xStoresecret Store Secret
8113
8149
  * @param {string} indexname Index Name
8114
8150
  * @param {string} property Property name
8115
8151
  * @param {object} body Property value
8116
8152
  * @param {*} [options] Override http request option.
8117
8153
  * @throws {RequiredError}
8118
8154
  */
8119
- v1IndexIndexnameConfigPropertyPatch: (xStoreid_1, xStoresecret_1, indexname_1, property_1, body_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, indexname_1, property_1, body_1, ...args_1], void 0, function* (xStoreid, xStoresecret, indexname, property, body, options = {}) {
8120
- // verify required parameter 'xStoreid' is not null or undefined
8121
- assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'xStoreid', xStoreid);
8122
- // verify required parameter 'xStoresecret' is not null or undefined
8123
- assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'xStoresecret', xStoresecret);
8155
+ v1IndexIndexnameConfigPropertyPatch: (indexname_1, property_1, body_1, ...args_1) => __awaiter(this, [indexname_1, property_1, body_1, ...args_1], void 0, function* (indexname, property, body, options = {}) {
8124
8156
  // verify required parameter 'indexname' is not null or undefined
8125
8157
  assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname);
8126
8158
  // verify required parameter 'property' is not null or undefined
@@ -8140,11 +8172,47 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8140
8172
  const localVarHeaderParameter = {};
8141
8173
  const localVarQueryParameter = {};
8142
8174
  localVarHeaderParameter['Content-Type'] = 'application/json';
8143
- if (xStoreid != null) {
8144
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8175
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8177
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8178
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
8179
+ return {
8180
+ url: toPathString(localVarUrlObj),
8181
+ options: localVarRequestOptions,
8182
+ };
8183
+ }),
8184
+ /**
8185
+ * Search documents using store credentials with optional autocomplete suggestions
8186
+ * @summary Public Search API
8187
+ * @param {string} xStoreID Store ID
8188
+ * @param {string} xStoreSecret Store Secret
8189
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8190
+ * @param {*} [options] Override http request option.
8191
+ * @throws {RequiredError}
8192
+ */
8193
+ v1SearchPost: (xStoreID_1, xStoreSecret_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, xStoreSecret_1, body_1, ...args_1], void 0, function* (xStoreID, xStoreSecret, body, options = {}) {
8194
+ // verify required parameter 'xStoreID' is not null or undefined
8195
+ assertParamExists('v1SearchPost', 'xStoreID', xStoreID);
8196
+ // verify required parameter 'xStoreSecret' is not null or undefined
8197
+ assertParamExists('v1SearchPost', 'xStoreSecret', xStoreSecret);
8198
+ // verify required parameter 'body' is not null or undefined
8199
+ assertParamExists('v1SearchPost', 'body', body);
8200
+ const localVarPath = `/v1/search`;
8201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8202
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8203
+ let baseOptions;
8204
+ if (configuration) {
8205
+ baseOptions = configuration.baseOptions;
8206
+ }
8207
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8208
+ const localVarHeaderParameter = {};
8209
+ const localVarQueryParameter = {};
8210
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8211
+ if (xStoreID != null) {
8212
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8145
8213
  }
8146
- if (xStoresecret != null) {
8147
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8214
+ if (xStoreSecret != null) {
8215
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8148
8216
  }
8149
8217
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8150
8218
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8165,56 +8233,51 @@ export const SearchApiFp = function (configuration) {
8165
8233
  const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
8166
8234
  return {
8167
8235
  /**
8168
- * Configure the index for search
8169
- * @summary Index Config
8170
- * @param {string} xStoreid Store ID
8171
- * @param {string} xStoresecret Store Secret
8172
- * @param {DataTypesIndexConfig} body Index configuration
8236
+ * Search documents with optional configuration override and autocomplete suggestions
8237
+ * @summary Admin Search API
8238
+ * @param {string} xStoreID Store ID for the selected store
8239
+ * @param {string} xStoreSecret Store Secret for the selected store
8240
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8173
8241
  * @param {*} [options] Override http request option.
8174
8242
  * @throws {RequiredError}
8175
8243
  */
8176
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8244
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8177
8245
  return __awaiter(this, void 0, void 0, function* () {
8178
8246
  var _a, _b, _c;
8179
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPost(xStoreid, xStoresecret, body, options);
8247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
8180
8248
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8181
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexConfigPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8249
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.adminV1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8182
8250
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8183
8251
  });
8184
8252
  },
8185
8253
  /**
8186
- * Update a single property of the index configuration
8187
- * @summary Update Index Config Property
8188
- * @param {string} xStoreid Store ID
8189
- * @param {string} xStoresecret Store Secret
8190
- * @param {string} property Property name
8191
- * @param {object} body Property value
8254
+ * Get the current index configuration
8255
+ * @summary Get Index Config
8256
+ * @param {string} indexname Index Name
8192
8257
  * @param {*} [options] Override http request option.
8193
8258
  * @throws {RequiredError}
8194
8259
  */
8195
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8260
+ v1IndexIndexnameConfigGet(indexname, options) {
8196
8261
  return __awaiter(this, void 0, void 0, function* () {
8197
8262
  var _a, _b, _c;
8198
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options);
8263
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
8199
8264
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8200
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexConfigPropertyPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8265
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexIndexnameConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8201
8266
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8202
8267
  });
8203
8268
  },
8204
8269
  /**
8205
8270
  * Configure the index for search
8206
8271
  * @summary Index Config
8207
- * @param {string} xStoreid Store ID
8208
- * @param {string} xStoresecret Store Secret
8209
8272
  * @param {string} indexname Index Name
8210
8273
  * @param {DataTypesIndexConfig} body Index configuration
8211
8274
  * @param {*} [options] Override http request option.
8212
8275
  * @throws {RequiredError}
8213
8276
  */
8214
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8277
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8215
8278
  return __awaiter(this, void 0, void 0, function* () {
8216
8279
  var _a, _b, _c;
8217
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options);
8280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(indexname, body, options);
8218
8281
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8219
8282
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexIndexnameConfigPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8220
8283
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8223,23 +8286,39 @@ export const SearchApiFp = function (configuration) {
8223
8286
  /**
8224
8287
  * Update a single property of the index configuration
8225
8288
  * @summary Update Index Config Property
8226
- * @param {string} xStoreid Store ID
8227
- * @param {string} xStoresecret Store Secret
8228
8289
  * @param {string} indexname Index Name
8229
8290
  * @param {string} property Property name
8230
8291
  * @param {object} body Property value
8231
8292
  * @param {*} [options] Override http request option.
8232
8293
  * @throws {RequiredError}
8233
8294
  */
8234
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8295
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8235
8296
  return __awaiter(this, void 0, void 0, function* () {
8236
8297
  var _a, _b, _c;
8237
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options);
8298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options);
8238
8299
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8239
8300
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8240
8301
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8241
8302
  });
8242
8303
  },
8304
+ /**
8305
+ * Search documents using store credentials with optional autocomplete suggestions
8306
+ * @summary Public Search API
8307
+ * @param {string} xStoreID Store ID
8308
+ * @param {string} xStoreSecret Store Secret
8309
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8310
+ * @param {*} [options] Override http request option.
8311
+ * @throws {RequiredError}
8312
+ */
8313
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8314
+ return __awaiter(this, void 0, void 0, function* () {
8315
+ var _a, _b, _c;
8316
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
8317
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8318
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8319
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8320
+ });
8321
+ },
8243
8322
  };
8244
8323
  };
8245
8324
  /**
@@ -8250,56 +8329,61 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
8250
8329
  const localVarFp = SearchApiFp(configuration);
8251
8330
  return {
8252
8331
  /**
8253
- * Configure the index for search
8254
- * @summary Index Config
8255
- * @param {string} xStoreid Store ID
8256
- * @param {string} xStoresecret Store Secret
8257
- * @param {DataTypesIndexConfig} body Index configuration
8332
+ * Search documents with optional configuration override and autocomplete suggestions
8333
+ * @summary Admin Search API
8334
+ * @param {string} xStoreID Store ID for the selected store
8335
+ * @param {string} xStoreSecret Store Secret for the selected store
8336
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8258
8337
  * @param {*} [options] Override http request option.
8259
8338
  * @throws {RequiredError}
8260
8339
  */
8261
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8262
- return localVarFp.v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
8340
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8341
+ return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8263
8342
  },
8264
8343
  /**
8265
- * Update a single property of the index configuration
8266
- * @summary Update Index Config Property
8267
- * @param {string} xStoreid Store ID
8268
- * @param {string} xStoresecret Store Secret
8269
- * @param {string} property Property name
8270
- * @param {object} body Property value
8344
+ * Get the current index configuration
8345
+ * @summary Get Index Config
8346
+ * @param {string} indexname Index Name
8271
8347
  * @param {*} [options] Override http request option.
8272
8348
  * @throws {RequiredError}
8273
8349
  */
8274
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8275
- return localVarFp.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(axios, basePath));
8350
+ v1IndexIndexnameConfigGet(indexname, options) {
8351
+ return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
8276
8352
  },
8277
8353
  /**
8278
8354
  * Configure the index for search
8279
8355
  * @summary Index Config
8280
- * @param {string} xStoreid Store ID
8281
- * @param {string} xStoresecret Store Secret
8282
8356
  * @param {string} indexname Index Name
8283
8357
  * @param {DataTypesIndexConfig} body Index configuration
8284
8358
  * @param {*} [options] Override http request option.
8285
8359
  * @throws {RequiredError}
8286
8360
  */
8287
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8288
- return localVarFp.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(axios, basePath));
8361
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8362
+ return localVarFp.v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(axios, basePath));
8289
8363
  },
8290
8364
  /**
8291
8365
  * Update a single property of the index configuration
8292
8366
  * @summary Update Index Config Property
8293
- * @param {string} xStoreid Store ID
8294
- * @param {string} xStoresecret Store Secret
8295
8367
  * @param {string} indexname Index Name
8296
8368
  * @param {string} property Property name
8297
8369
  * @param {object} body Property value
8298
8370
  * @param {*} [options] Override http request option.
8299
8371
  * @throws {RequiredError}
8300
8372
  */
8301
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8302
- return localVarFp.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(axios, basePath));
8373
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8374
+ return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
8375
+ },
8376
+ /**
8377
+ * Search documents using store credentials with optional autocomplete suggestions
8378
+ * @summary Public Search API
8379
+ * @param {string} xStoreID Store ID
8380
+ * @param {string} xStoreSecret Store Secret
8381
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8382
+ * @param {*} [options] Override http request option.
8383
+ * @throws {RequiredError}
8384
+ */
8385
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8386
+ return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8303
8387
  },
8304
8388
  };
8305
8389
  };
@@ -8311,51 +8395,44 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
8311
8395
  */
8312
8396
  export class SearchApi extends BaseAPI {
8313
8397
  /**
8314
- * Configure the index for search
8315
- * @summary Index Config
8316
- * @param {string} xStoreid Store ID
8317
- * @param {string} xStoresecret Store Secret
8318
- * @param {DataTypesIndexConfig} body Index configuration
8398
+ * Search documents with optional configuration override and autocomplete suggestions
8399
+ * @summary Admin Search API
8400
+ * @param {string} xStoreID Store ID for the selected store
8401
+ * @param {string} xStoreSecret Store Secret for the selected store
8402
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8319
8403
  * @param {*} [options] Override http request option.
8320
8404
  * @throws {RequiredError}
8321
8405
  * @memberof SearchApi
8322
8406
  */
8323
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8324
- return SearchApiFp(this.configuration).v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
8407
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8408
+ return SearchApiFp(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8325
8409
  }
8326
8410
  /**
8327
- * Update a single property of the index configuration
8328
- * @summary Update Index Config Property
8329
- * @param {string} xStoreid Store ID
8330
- * @param {string} xStoresecret Store Secret
8331
- * @param {string} property Property name
8332
- * @param {object} body Property value
8411
+ * Get the current index configuration
8412
+ * @summary Get Index Config
8413
+ * @param {string} indexname Index Name
8333
8414
  * @param {*} [options] Override http request option.
8334
8415
  * @throws {RequiredError}
8335
8416
  * @memberof SearchApi
8336
8417
  */
8337
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8338
- return SearchApiFp(this.configuration).v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(this.axios, this.basePath));
8418
+ v1IndexIndexnameConfigGet(indexname, options) {
8419
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigGet(indexname, options).then((request) => request(this.axios, this.basePath));
8339
8420
  }
8340
8421
  /**
8341
8422
  * Configure the index for search
8342
8423
  * @summary Index Config
8343
- * @param {string} xStoreid Store ID
8344
- * @param {string} xStoresecret Store Secret
8345
8424
  * @param {string} indexname Index Name
8346
8425
  * @param {DataTypesIndexConfig} body Index configuration
8347
8426
  * @param {*} [options] Override http request option.
8348
8427
  * @throws {RequiredError}
8349
8428
  * @memberof SearchApi
8350
8429
  */
8351
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8352
- return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(this.axios, this.basePath));
8430
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8431
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(this.axios, this.basePath));
8353
8432
  }
8354
8433
  /**
8355
8434
  * Update a single property of the index configuration
8356
8435
  * @summary Update Index Config Property
8357
- * @param {string} xStoreid Store ID
8358
- * @param {string} xStoresecret Store Secret
8359
8436
  * @param {string} indexname Index Name
8360
8437
  * @param {string} property Property name
8361
8438
  * @param {object} body Property value
@@ -8363,8 +8440,21 @@ export class SearchApi extends BaseAPI {
8363
8440
  * @throws {RequiredError}
8364
8441
  * @memberof SearchApi
8365
8442
  */
8366
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8367
- return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8443
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8444
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8445
+ }
8446
+ /**
8447
+ * Search documents using store credentials with optional autocomplete suggestions
8448
+ * @summary Public Search API
8449
+ * @param {string} xStoreID Store ID
8450
+ * @param {string} xStoreSecret Store Secret
8451
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8452
+ * @param {*} [options] Override http request option.
8453
+ * @throws {RequiredError}
8454
+ * @memberof SearchApi
8455
+ */
8456
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8457
+ return SearchApiFp(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8368
8458
  }
8369
8459
  }
8370
8460
  /**