@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/api.js CHANGED
@@ -2462,6 +2462,33 @@ const MenusApiAxiosParamCreator = function (configuration) {
2462
2462
  options: localVarRequestOptions,
2463
2463
  };
2464
2464
  }),
2465
+ /**
2466
+ * Fetches hierarchical menu access for the currently logged-in user
2467
+ * @summary Fetches hierarchical menu access for logged-in user
2468
+ * @param {*} [options] Override http request option.
2469
+ * @throws {RequiredError}
2470
+ */
2471
+ miscMenusUserAccessGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2472
+ const localVarPath = `/misc/menus/user-access`;
2473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2474
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2475
+ let baseOptions;
2476
+ if (configuration) {
2477
+ baseOptions = configuration.baseOptions;
2478
+ }
2479
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2480
+ const localVarHeaderParameter = {};
2481
+ const localVarQueryParameter = {};
2482
+ // authentication BearerAuth required
2483
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2484
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2487
+ return {
2488
+ url: (0, common_1.toPathString)(localVarUrlObj),
2489
+ options: localVarRequestOptions,
2490
+ };
2491
+ }),
2465
2492
  };
2466
2493
  };
2467
2494
  exports.MenusApiAxiosParamCreator = MenusApiAxiosParamCreator;
@@ -2688,6 +2715,21 @@ const MenusApiFp = function (configuration) {
2688
2715
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2689
2716
  });
2690
2717
  },
2718
+ /**
2719
+ * Fetches hierarchical menu access for the currently logged-in user
2720
+ * @summary Fetches hierarchical menu access for logged-in user
2721
+ * @param {*} [options] Override http request option.
2722
+ * @throws {RequiredError}
2723
+ */
2724
+ miscMenusUserAccessGet(options) {
2725
+ return __awaiter(this, void 0, void 0, function* () {
2726
+ var _a, _b, _c;
2727
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.miscMenusUserAccessGet(options);
2728
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2729
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MenusApi.miscMenusUserAccessGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2730
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2731
+ });
2732
+ },
2691
2733
  };
2692
2734
  };
2693
2735
  exports.MenusApiFp = MenusApiFp;
@@ -2836,6 +2878,15 @@ const MenusApiFactory = function (configuration, basePath, axios) {
2836
2878
  miscMenusStoreStoreIdPost(storeId, menu, options) {
2837
2879
  return localVarFp.miscMenusStoreStoreIdPost(storeId, menu, options).then((request) => request(axios, basePath));
2838
2880
  },
2881
+ /**
2882
+ * Fetches hierarchical menu access for the currently logged-in user
2883
+ * @summary Fetches hierarchical menu access for logged-in user
2884
+ * @param {*} [options] Override http request option.
2885
+ * @throws {RequiredError}
2886
+ */
2887
+ miscMenusUserAccessGet(options) {
2888
+ return localVarFp.miscMenusUserAccessGet(options).then((request) => request(axios, basePath));
2889
+ },
2839
2890
  };
2840
2891
  };
2841
2892
  exports.MenusApiFactory = MenusApiFactory;
@@ -2997,6 +3048,16 @@ class MenusApi extends base_1.BaseAPI {
2997
3048
  miscMenusStoreStoreIdPost(storeId, menu, options) {
2998
3049
  return (0, exports.MenusApiFp)(this.configuration).miscMenusStoreStoreIdPost(storeId, menu, options).then((request) => request(this.axios, this.basePath));
2999
3050
  }
3051
+ /**
3052
+ * Fetches hierarchical menu access for the currently logged-in user
3053
+ * @summary Fetches hierarchical menu access for logged-in user
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ * @memberof MenusApi
3057
+ */
3058
+ miscMenusUserAccessGet(options) {
3059
+ return (0, exports.MenusApiFp)(this.configuration).miscMenusUserAccessGet(options).then((request) => request(this.axios, this.basePath));
3060
+ }
3000
3061
  }
3001
3062
  exports.MenusApi = MenusApi;
3002
3063
  /**
@@ -4429,13 +4490,13 @@ const OnboardingApiAxiosParamCreator = function (configuration) {
4429
4490
  /**
4430
4491
  * Upload source data
4431
4492
  * @summary Upload source data
4432
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4493
+ * @param {File} file File
4433
4494
  * @param {*} [options] Override http request option.
4434
4495
  * @throws {RequiredError}
4435
4496
  */
4436
- adminV1UsersOnboardingUploaddataPost: (adminV1UsersOnboardingUploaddataPostRequest_1, ...args_1) => __awaiter(this, [adminV1UsersOnboardingUploaddataPostRequest_1, ...args_1], void 0, function* (adminV1UsersOnboardingUploaddataPostRequest, options = {}) {
4437
- // verify required parameter 'adminV1UsersOnboardingUploaddataPostRequest' is not null or undefined
4438
- (0, common_1.assertParamExists)('adminV1UsersOnboardingUploaddataPost', 'adminV1UsersOnboardingUploaddataPostRequest', adminV1UsersOnboardingUploaddataPostRequest);
4497
+ adminV1UsersOnboardingUploaddataPost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
4498
+ // verify required parameter 'file' is not null or undefined
4499
+ (0, common_1.assertParamExists)('adminV1UsersOnboardingUploaddataPost', 'file', file);
4439
4500
  const localVarPath = `/admin/v1/users/onboarding/uploaddata`;
4440
4501
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4441
4502
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4446,13 +4507,17 @@ const OnboardingApiAxiosParamCreator = function (configuration) {
4446
4507
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4447
4508
  const localVarHeaderParameter = {};
4448
4509
  const localVarQueryParameter = {};
4510
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
4449
4511
  // authentication BearerAuth required
4450
4512
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4451
- localVarHeaderParameter['Content-Type'] = 'application/json';
4513
+ if (file !== undefined) {
4514
+ localVarFormParams.append('File', file);
4515
+ }
4516
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
4452
4517
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4453
4518
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4454
4519
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4455
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminV1UsersOnboardingUploaddataPostRequest, localVarRequestOptions, configuration);
4520
+ localVarRequestOptions.data = localVarFormParams;
4456
4521
  return {
4457
4522
  url: (0, common_1.toPathString)(localVarUrlObj),
4458
4523
  options: localVarRequestOptions,
@@ -4607,14 +4672,14 @@ const OnboardingApiFp = function (configuration) {
4607
4672
  /**
4608
4673
  * Upload source data
4609
4674
  * @summary Upload source data
4610
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4675
+ * @param {File} file File
4611
4676
  * @param {*} [options] Override http request option.
4612
4677
  * @throws {RequiredError}
4613
4678
  */
4614
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4679
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4615
4680
  return __awaiter(this, void 0, void 0, function* () {
4616
4681
  var _a, _b, _c;
4617
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options);
4682
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(file, options);
4618
4683
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4619
4684
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OnboardingApi.adminV1UsersOnboardingUploaddataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4620
4685
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4715,12 +4780,12 @@ const OnboardingApiFactory = function (configuration, basePath, axios) {
4715
4780
  /**
4716
4781
  * Upload source data
4717
4782
  * @summary Upload source data
4718
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4783
+ * @param {File} file File
4719
4784
  * @param {*} [options] Override http request option.
4720
4785
  * @throws {RequiredError}
4721
4786
  */
4722
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4723
- return localVarFp.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(axios, basePath));
4787
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4788
+ return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
4724
4789
  },
4725
4790
  /**
4726
4791
  * Get sample datasets
@@ -4818,13 +4883,13 @@ class OnboardingApi extends base_1.BaseAPI {
4818
4883
  /**
4819
4884
  * Upload source data
4820
4885
  * @summary Upload source data
4821
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4886
+ * @param {File} file File
4822
4887
  * @param {*} [options] Override http request option.
4823
4888
  * @throws {RequiredError}
4824
4889
  * @memberof OnboardingApi
4825
4890
  */
4826
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4827
- return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(this.axios, this.basePath));
4891
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4892
+ return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
4828
4893
  }
4829
4894
  /**
4830
4895
  * Get sample datasets
@@ -8048,22 +8113,22 @@ exports.RolesApi = RolesApi;
8048
8113
  const SearchApiAxiosParamCreator = function (configuration) {
8049
8114
  return {
8050
8115
  /**
8051
- * Configure the index for search
8052
- * @summary Index Config
8053
- * @param {string} xStoreid Store ID
8054
- * @param {string} xStoresecret Store Secret
8055
- * @param {DataTypesIndexConfig} body Index configuration
8116
+ * Search documents with optional configuration override and autocomplete suggestions
8117
+ * @summary Admin Search API
8118
+ * @param {string} xStoreID Store ID for the selected store
8119
+ * @param {string} xStoreSecret Store Secret for the selected store
8120
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8056
8121
  * @param {*} [options] Override http request option.
8057
8122
  * @throws {RequiredError}
8058
8123
  */
8059
- 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 = {}) {
8060
- // verify required parameter 'xStoreid' is not null or undefined
8061
- (0, common_1.assertParamExists)('v1IndexConfigPost', 'xStoreid', xStoreid);
8062
- // verify required parameter 'xStoresecret' is not null or undefined
8063
- (0, common_1.assertParamExists)('v1IndexConfigPost', 'xStoresecret', xStoresecret);
8124
+ 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 = {}) {
8125
+ // verify required parameter 'xStoreID' is not null or undefined
8126
+ (0, common_1.assertParamExists)('adminV1SearchPost', 'xStoreID', xStoreID);
8127
+ // verify required parameter 'xStoreSecret' is not null or undefined
8128
+ (0, common_1.assertParamExists)('adminV1SearchPost', 'xStoreSecret', xStoreSecret);
8064
8129
  // verify required parameter 'body' is not null or undefined
8065
- (0, common_1.assertParamExists)('v1IndexConfigPost', 'body', body);
8066
- const localVarPath = `/v1/index/config`;
8130
+ (0, common_1.assertParamExists)('adminV1SearchPost', 'body', body);
8131
+ const localVarPath = `/admin/v1/search`;
8067
8132
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8068
8133
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8069
8134
  let baseOptions;
@@ -8073,12 +8138,14 @@ const SearchApiAxiosParamCreator = function (configuration) {
8073
8138
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8074
8139
  const localVarHeaderParameter = {};
8075
8140
  const localVarQueryParameter = {};
8141
+ // authentication BearerAuth required
8142
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8076
8143
  localVarHeaderParameter['Content-Type'] = 'application/json';
8077
- if (xStoreid != null) {
8078
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8144
+ if (xStoreID != null) {
8145
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8079
8146
  }
8080
- if (xStoresecret != null) {
8081
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8147
+ if (xStoreSecret != null) {
8148
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8082
8149
  }
8083
8150
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8084
8151
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8090,46 +8157,29 @@ const SearchApiAxiosParamCreator = function (configuration) {
8090
8157
  };
8091
8158
  }),
8092
8159
  /**
8093
- * Update a single property of the index configuration
8094
- * @summary Update Index Config Property
8095
- * @param {string} xStoreid Store ID
8096
- * @param {string} xStoresecret Store Secret
8097
- * @param {string} property Property name
8098
- * @param {object} body Property value
8160
+ * Get the current index configuration
8161
+ * @summary Get Index Config
8162
+ * @param {string} indexname Index Name
8099
8163
  * @param {*} [options] Override http request option.
8100
8164
  * @throws {RequiredError}
8101
8165
  */
8102
- 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 = {}) {
8103
- // verify required parameter 'xStoreid' is not null or undefined
8104
- (0, common_1.assertParamExists)('v1IndexConfigPropertyPatch', 'xStoreid', xStoreid);
8105
- // verify required parameter 'xStoresecret' is not null or undefined
8106
- (0, common_1.assertParamExists)('v1IndexConfigPropertyPatch', 'xStoresecret', xStoresecret);
8107
- // verify required parameter 'property' is not null or undefined
8108
- (0, common_1.assertParamExists)('v1IndexConfigPropertyPatch', 'property', property);
8109
- // verify required parameter 'body' is not null or undefined
8110
- (0, common_1.assertParamExists)('v1IndexConfigPropertyPatch', 'body', body);
8111
- const localVarPath = `/v1/index/config/{property}`
8112
- .replace(`{${"property"}}`, encodeURIComponent(String(property)));
8166
+ v1IndexIndexnameConfigGet: (indexname_1, ...args_1) => __awaiter(this, [indexname_1, ...args_1], void 0, function* (indexname, options = {}) {
8167
+ // verify required parameter 'indexname' is not null or undefined
8168
+ (0, common_1.assertParamExists)('v1IndexIndexnameConfigGet', 'indexname', indexname);
8169
+ const localVarPath = `/v1/index/{indexname}/config`
8170
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
8113
8171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8114
8172
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8115
8173
  let baseOptions;
8116
8174
  if (configuration) {
8117
8175
  baseOptions = configuration.baseOptions;
8118
8176
  }
8119
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8120
8178
  const localVarHeaderParameter = {};
8121
8179
  const localVarQueryParameter = {};
8122
- localVarHeaderParameter['Content-Type'] = 'application/json';
8123
- if (xStoreid != null) {
8124
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8125
- }
8126
- if (xStoresecret != null) {
8127
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8128
- }
8129
8180
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8130
8181
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8131
8182
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8132
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8133
8183
  return {
8134
8184
  url: (0, common_1.toPathString)(localVarUrlObj),
8135
8185
  options: localVarRequestOptions,
@@ -8138,18 +8188,12 @@ const SearchApiAxiosParamCreator = function (configuration) {
8138
8188
  /**
8139
8189
  * Configure the index for search
8140
8190
  * @summary Index Config
8141
- * @param {string} xStoreid Store ID
8142
- * @param {string} xStoresecret Store Secret
8143
8191
  * @param {string} indexname Index Name
8144
8192
  * @param {DataTypesIndexConfig} body Index configuration
8145
8193
  * @param {*} [options] Override http request option.
8146
8194
  * @throws {RequiredError}
8147
8195
  */
8148
- 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 = {}) {
8149
- // verify required parameter 'xStoreid' is not null or undefined
8150
- (0, common_1.assertParamExists)('v1IndexIndexnameConfigPost', 'xStoreid', xStoreid);
8151
- // verify required parameter 'xStoresecret' is not null or undefined
8152
- (0, common_1.assertParamExists)('v1IndexIndexnameConfigPost', 'xStoresecret', xStoresecret);
8196
+ v1IndexIndexnameConfigPost: (indexname_1, body_1, ...args_1) => __awaiter(this, [indexname_1, body_1, ...args_1], void 0, function* (indexname, body, options = {}) {
8153
8197
  // verify required parameter 'indexname' is not null or undefined
8154
8198
  (0, common_1.assertParamExists)('v1IndexIndexnameConfigPost', 'indexname', indexname);
8155
8199
  // verify required parameter 'body' is not null or undefined
@@ -8166,12 +8210,6 @@ const SearchApiAxiosParamCreator = function (configuration) {
8166
8210
  const localVarHeaderParameter = {};
8167
8211
  const localVarQueryParameter = {};
8168
8212
  localVarHeaderParameter['Content-Type'] = 'application/json';
8169
- if (xStoreid != null) {
8170
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8171
- }
8172
- if (xStoresecret != null) {
8173
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8174
- }
8175
8213
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8176
8214
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8177
8215
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8184,19 +8222,13 @@ const SearchApiAxiosParamCreator = function (configuration) {
8184
8222
  /**
8185
8223
  * Update a single property of the index configuration
8186
8224
  * @summary Update Index Config Property
8187
- * @param {string} xStoreid Store ID
8188
- * @param {string} xStoresecret Store Secret
8189
8225
  * @param {string} indexname Index Name
8190
8226
  * @param {string} property Property name
8191
8227
  * @param {object} body Property value
8192
8228
  * @param {*} [options] Override http request option.
8193
8229
  * @throws {RequiredError}
8194
8230
  */
8195
- 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 = {}) {
8196
- // verify required parameter 'xStoreid' is not null or undefined
8197
- (0, common_1.assertParamExists)('v1IndexIndexnameConfigPropertyPatch', 'xStoreid', xStoreid);
8198
- // verify required parameter 'xStoresecret' is not null or undefined
8199
- (0, common_1.assertParamExists)('v1IndexIndexnameConfigPropertyPatch', 'xStoresecret', xStoresecret);
8231
+ 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 = {}) {
8200
8232
  // verify required parameter 'indexname' is not null or undefined
8201
8233
  (0, common_1.assertParamExists)('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname);
8202
8234
  // verify required parameter 'property' is not null or undefined
@@ -8216,11 +8248,47 @@ const SearchApiAxiosParamCreator = function (configuration) {
8216
8248
  const localVarHeaderParameter = {};
8217
8249
  const localVarQueryParameter = {};
8218
8250
  localVarHeaderParameter['Content-Type'] = 'application/json';
8219
- if (xStoreid != null) {
8220
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8254
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8255
+ return {
8256
+ url: (0, common_1.toPathString)(localVarUrlObj),
8257
+ options: localVarRequestOptions,
8258
+ };
8259
+ }),
8260
+ /**
8261
+ * Search documents using store credentials with optional autocomplete suggestions
8262
+ * @summary Public Search API
8263
+ * @param {string} xStoreID Store ID
8264
+ * @param {string} xStoreSecret Store Secret
8265
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8266
+ * @param {*} [options] Override http request option.
8267
+ * @throws {RequiredError}
8268
+ */
8269
+ 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 = {}) {
8270
+ // verify required parameter 'xStoreID' is not null or undefined
8271
+ (0, common_1.assertParamExists)('v1SearchPost', 'xStoreID', xStoreID);
8272
+ // verify required parameter 'xStoreSecret' is not null or undefined
8273
+ (0, common_1.assertParamExists)('v1SearchPost', 'xStoreSecret', xStoreSecret);
8274
+ // verify required parameter 'body' is not null or undefined
8275
+ (0, common_1.assertParamExists)('v1SearchPost', 'body', body);
8276
+ const localVarPath = `/v1/search`;
8277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8278
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8279
+ let baseOptions;
8280
+ if (configuration) {
8281
+ baseOptions = configuration.baseOptions;
8282
+ }
8283
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8284
+ const localVarHeaderParameter = {};
8285
+ const localVarQueryParameter = {};
8286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8287
+ if (xStoreID != null) {
8288
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8221
8289
  }
8222
- if (xStoresecret != null) {
8223
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8290
+ if (xStoreSecret != null) {
8291
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8224
8292
  }
8225
8293
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8226
8294
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8242,56 +8310,51 @@ const SearchApiFp = function (configuration) {
8242
8310
  const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
8243
8311
  return {
8244
8312
  /**
8245
- * Configure the index for search
8246
- * @summary Index Config
8247
- * @param {string} xStoreid Store ID
8248
- * @param {string} xStoresecret Store Secret
8249
- * @param {DataTypesIndexConfig} body Index configuration
8313
+ * Search documents with optional configuration override and autocomplete suggestions
8314
+ * @summary Admin Search API
8315
+ * @param {string} xStoreID Store ID for the selected store
8316
+ * @param {string} xStoreSecret Store Secret for the selected store
8317
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8250
8318
  * @param {*} [options] Override http request option.
8251
8319
  * @throws {RequiredError}
8252
8320
  */
8253
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8321
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8254
8322
  return __awaiter(this, void 0, void 0, function* () {
8255
8323
  var _a, _b, _c;
8256
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPost(xStoreid, xStoresecret, body, options);
8324
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
8257
8325
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8258
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexConfigPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8326
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.adminV1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8259
8327
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8260
8328
  });
8261
8329
  },
8262
8330
  /**
8263
- * Update a single property of the index configuration
8264
- * @summary Update Index Config Property
8265
- * @param {string} xStoreid Store ID
8266
- * @param {string} xStoresecret Store Secret
8267
- * @param {string} property Property name
8268
- * @param {object} body Property value
8331
+ * Get the current index configuration
8332
+ * @summary Get Index Config
8333
+ * @param {string} indexname Index Name
8269
8334
  * @param {*} [options] Override http request option.
8270
8335
  * @throws {RequiredError}
8271
8336
  */
8272
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8337
+ v1IndexIndexnameConfigGet(indexname, options) {
8273
8338
  return __awaiter(this, void 0, void 0, function* () {
8274
8339
  var _a, _b, _c;
8275
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options);
8340
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
8276
8341
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8277
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexConfigPropertyPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8342
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexIndexnameConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8278
8343
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8279
8344
  });
8280
8345
  },
8281
8346
  /**
8282
8347
  * Configure the index for search
8283
8348
  * @summary Index Config
8284
- * @param {string} xStoreid Store ID
8285
- * @param {string} xStoresecret Store Secret
8286
8349
  * @param {string} indexname Index Name
8287
8350
  * @param {DataTypesIndexConfig} body Index configuration
8288
8351
  * @param {*} [options] Override http request option.
8289
8352
  * @throws {RequiredError}
8290
8353
  */
8291
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8354
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8292
8355
  return __awaiter(this, void 0, void 0, function* () {
8293
8356
  var _a, _b, _c;
8294
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options);
8357
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(indexname, body, options);
8295
8358
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8296
8359
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexIndexnameConfigPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8297
8360
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8300,23 +8363,39 @@ const SearchApiFp = function (configuration) {
8300
8363
  /**
8301
8364
  * Update a single property of the index configuration
8302
8365
  * @summary Update Index Config Property
8303
- * @param {string} xStoreid Store ID
8304
- * @param {string} xStoresecret Store Secret
8305
8366
  * @param {string} indexname Index Name
8306
8367
  * @param {string} property Property name
8307
8368
  * @param {object} body Property value
8308
8369
  * @param {*} [options] Override http request option.
8309
8370
  * @throws {RequiredError}
8310
8371
  */
8311
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8372
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8312
8373
  return __awaiter(this, void 0, void 0, function* () {
8313
8374
  var _a, _b, _c;
8314
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options);
8375
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options);
8315
8376
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8316
8377
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8317
8378
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8318
8379
  });
8319
8380
  },
8381
+ /**
8382
+ * Search documents using store credentials with optional autocomplete suggestions
8383
+ * @summary Public Search API
8384
+ * @param {string} xStoreID Store ID
8385
+ * @param {string} xStoreSecret Store Secret
8386
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8387
+ * @param {*} [options] Override http request option.
8388
+ * @throws {RequiredError}
8389
+ */
8390
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8391
+ return __awaiter(this, void 0, void 0, function* () {
8392
+ var _a, _b, _c;
8393
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
8394
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8395
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8396
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8397
+ });
8398
+ },
8320
8399
  };
8321
8400
  };
8322
8401
  exports.SearchApiFp = SearchApiFp;
@@ -8328,56 +8407,61 @@ const SearchApiFactory = function (configuration, basePath, axios) {
8328
8407
  const localVarFp = (0, exports.SearchApiFp)(configuration);
8329
8408
  return {
8330
8409
  /**
8331
- * Configure the index for search
8332
- * @summary Index Config
8333
- * @param {string} xStoreid Store ID
8334
- * @param {string} xStoresecret Store Secret
8335
- * @param {DataTypesIndexConfig} body Index configuration
8410
+ * Search documents with optional configuration override and autocomplete suggestions
8411
+ * @summary Admin Search API
8412
+ * @param {string} xStoreID Store ID for the selected store
8413
+ * @param {string} xStoreSecret Store Secret for the selected store
8414
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8336
8415
  * @param {*} [options] Override http request option.
8337
8416
  * @throws {RequiredError}
8338
8417
  */
8339
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8340
- return localVarFp.v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
8418
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8419
+ return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8341
8420
  },
8342
8421
  /**
8343
- * Update a single property of the index configuration
8344
- * @summary Update Index Config Property
8345
- * @param {string} xStoreid Store ID
8346
- * @param {string} xStoresecret Store Secret
8347
- * @param {string} property Property name
8348
- * @param {object} body Property value
8422
+ * Get the current index configuration
8423
+ * @summary Get Index Config
8424
+ * @param {string} indexname Index Name
8349
8425
  * @param {*} [options] Override http request option.
8350
8426
  * @throws {RequiredError}
8351
8427
  */
8352
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8353
- return localVarFp.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(axios, basePath));
8428
+ v1IndexIndexnameConfigGet(indexname, options) {
8429
+ return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
8354
8430
  },
8355
8431
  /**
8356
8432
  * Configure the index for search
8357
8433
  * @summary Index Config
8358
- * @param {string} xStoreid Store ID
8359
- * @param {string} xStoresecret Store Secret
8360
8434
  * @param {string} indexname Index Name
8361
8435
  * @param {DataTypesIndexConfig} body Index configuration
8362
8436
  * @param {*} [options] Override http request option.
8363
8437
  * @throws {RequiredError}
8364
8438
  */
8365
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8366
- return localVarFp.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(axios, basePath));
8439
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8440
+ return localVarFp.v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(axios, basePath));
8367
8441
  },
8368
8442
  /**
8369
8443
  * Update a single property of the index configuration
8370
8444
  * @summary Update Index Config Property
8371
- * @param {string} xStoreid Store ID
8372
- * @param {string} xStoresecret Store Secret
8373
8445
  * @param {string} indexname Index Name
8374
8446
  * @param {string} property Property name
8375
8447
  * @param {object} body Property value
8376
8448
  * @param {*} [options] Override http request option.
8377
8449
  * @throws {RequiredError}
8378
8450
  */
8379
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8380
- return localVarFp.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(axios, basePath));
8451
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8452
+ return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
8453
+ },
8454
+ /**
8455
+ * Search documents using store credentials with optional autocomplete suggestions
8456
+ * @summary Public Search API
8457
+ * @param {string} xStoreID Store ID
8458
+ * @param {string} xStoreSecret Store Secret
8459
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8460
+ * @param {*} [options] Override http request option.
8461
+ * @throws {RequiredError}
8462
+ */
8463
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8464
+ return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8381
8465
  },
8382
8466
  };
8383
8467
  };
@@ -8390,51 +8474,44 @@ exports.SearchApiFactory = SearchApiFactory;
8390
8474
  */
8391
8475
  class SearchApi extends base_1.BaseAPI {
8392
8476
  /**
8393
- * Configure the index for search
8394
- * @summary Index Config
8395
- * @param {string} xStoreid Store ID
8396
- * @param {string} xStoresecret Store Secret
8397
- * @param {DataTypesIndexConfig} body Index configuration
8477
+ * Search documents with optional configuration override and autocomplete suggestions
8478
+ * @summary Admin Search API
8479
+ * @param {string} xStoreID Store ID for the selected store
8480
+ * @param {string} xStoreSecret Store Secret for the selected store
8481
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8398
8482
  * @param {*} [options] Override http request option.
8399
8483
  * @throws {RequiredError}
8400
8484
  * @memberof SearchApi
8401
8485
  */
8402
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8403
- return (0, exports.SearchApiFp)(this.configuration).v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
8486
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8487
+ return (0, exports.SearchApiFp)(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8404
8488
  }
8405
8489
  /**
8406
- * Update a single property of the index configuration
8407
- * @summary Update Index Config Property
8408
- * @param {string} xStoreid Store ID
8409
- * @param {string} xStoresecret Store Secret
8410
- * @param {string} property Property name
8411
- * @param {object} body Property value
8490
+ * Get the current index configuration
8491
+ * @summary Get Index Config
8492
+ * @param {string} indexname Index Name
8412
8493
  * @param {*} [options] Override http request option.
8413
8494
  * @throws {RequiredError}
8414
8495
  * @memberof SearchApi
8415
8496
  */
8416
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8417
- return (0, exports.SearchApiFp)(this.configuration).v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(this.axios, this.basePath));
8497
+ v1IndexIndexnameConfigGet(indexname, options) {
8498
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigGet(indexname, options).then((request) => request(this.axios, this.basePath));
8418
8499
  }
8419
8500
  /**
8420
8501
  * Configure the index for search
8421
8502
  * @summary Index Config
8422
- * @param {string} xStoreid Store ID
8423
- * @param {string} xStoresecret Store Secret
8424
8503
  * @param {string} indexname Index Name
8425
8504
  * @param {DataTypesIndexConfig} body Index configuration
8426
8505
  * @param {*} [options] Override http request option.
8427
8506
  * @throws {RequiredError}
8428
8507
  * @memberof SearchApi
8429
8508
  */
8430
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8431
- return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(this.axios, this.basePath));
8509
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8510
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(this.axios, this.basePath));
8432
8511
  }
8433
8512
  /**
8434
8513
  * Update a single property of the index configuration
8435
8514
  * @summary Update Index Config Property
8436
- * @param {string} xStoreid Store ID
8437
- * @param {string} xStoresecret Store Secret
8438
8515
  * @param {string} indexname Index Name
8439
8516
  * @param {string} property Property name
8440
8517
  * @param {object} body Property value
@@ -8442,8 +8519,21 @@ class SearchApi extends base_1.BaseAPI {
8442
8519
  * @throws {RequiredError}
8443
8520
  * @memberof SearchApi
8444
8521
  */
8445
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8446
- return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8522
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8523
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8524
+ }
8525
+ /**
8526
+ * Search documents using store credentials with optional autocomplete suggestions
8527
+ * @summary Public Search API
8528
+ * @param {string} xStoreID Store ID
8529
+ * @param {string} xStoreSecret Store Secret
8530
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8531
+ * @param {*} [options] Override http request option.
8532
+ * @throws {RequiredError}
8533
+ * @memberof SearchApi
8534
+ */
8535
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8536
+ return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8447
8537
  }
8448
8538
  }
8449
8539
  exports.SearchApi = SearchApi;