@seekora-ai/admin-api 1.0.13 → 1.0.14

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
@@ -4429,13 +4429,13 @@ const OnboardingApiAxiosParamCreator = function (configuration) {
4429
4429
  /**
4430
4430
  * Upload source data
4431
4431
  * @summary Upload source data
4432
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4432
+ * @param {File} file File
4433
4433
  * @param {*} [options] Override http request option.
4434
4434
  * @throws {RequiredError}
4435
4435
  */
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);
4436
+ adminV1UsersOnboardingUploaddataPost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
4437
+ // verify required parameter 'file' is not null or undefined
4438
+ (0, common_1.assertParamExists)('adminV1UsersOnboardingUploaddataPost', 'file', file);
4439
4439
  const localVarPath = `/admin/v1/users/onboarding/uploaddata`;
4440
4440
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4441
4441
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4446,13 +4446,17 @@ const OnboardingApiAxiosParamCreator = function (configuration) {
4446
4446
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4447
4447
  const localVarHeaderParameter = {};
4448
4448
  const localVarQueryParameter = {};
4449
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
4449
4450
  // authentication BearerAuth required
4450
4451
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4451
- localVarHeaderParameter['Content-Type'] = 'application/json';
4452
+ if (file !== undefined) {
4453
+ localVarFormParams.append('File', file);
4454
+ }
4455
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
4452
4456
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4453
4457
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4454
4458
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4455
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminV1UsersOnboardingUploaddataPostRequest, localVarRequestOptions, configuration);
4459
+ localVarRequestOptions.data = localVarFormParams;
4456
4460
  return {
4457
4461
  url: (0, common_1.toPathString)(localVarUrlObj),
4458
4462
  options: localVarRequestOptions,
@@ -4607,14 +4611,14 @@ const OnboardingApiFp = function (configuration) {
4607
4611
  /**
4608
4612
  * Upload source data
4609
4613
  * @summary Upload source data
4610
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4614
+ * @param {File} file File
4611
4615
  * @param {*} [options] Override http request option.
4612
4616
  * @throws {RequiredError}
4613
4617
  */
4614
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4618
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4615
4619
  return __awaiter(this, void 0, void 0, function* () {
4616
4620
  var _a, _b, _c;
4617
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options);
4621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(file, options);
4618
4622
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4619
4623
  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
4624
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4715,12 +4719,12 @@ const OnboardingApiFactory = function (configuration, basePath, axios) {
4715
4719
  /**
4716
4720
  * Upload source data
4717
4721
  * @summary Upload source data
4718
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4722
+ * @param {File} file File
4719
4723
  * @param {*} [options] Override http request option.
4720
4724
  * @throws {RequiredError}
4721
4725
  */
4722
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4723
- return localVarFp.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(axios, basePath));
4726
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4727
+ return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
4724
4728
  },
4725
4729
  /**
4726
4730
  * Get sample datasets
@@ -4818,13 +4822,13 @@ class OnboardingApi extends base_1.BaseAPI {
4818
4822
  /**
4819
4823
  * Upload source data
4820
4824
  * @summary Upload source data
4821
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4825
+ * @param {File} file File
4822
4826
  * @param {*} [options] Override http request option.
4823
4827
  * @throws {RequiredError}
4824
4828
  * @memberof OnboardingApi
4825
4829
  */
4826
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4827
- return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(this.axios, this.basePath));
4830
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4831
+ return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
4828
4832
  }
4829
4833
  /**
4830
4834
  * Get sample datasets
@@ -8048,22 +8052,22 @@ exports.RolesApi = RolesApi;
8048
8052
  const SearchApiAxiosParamCreator = function (configuration) {
8049
8053
  return {
8050
8054
  /**
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
8055
+ * Search documents with optional configuration override and autocomplete suggestions
8056
+ * @summary Admin Search API
8057
+ * @param {string} xStoreID Store ID for the selected store
8058
+ * @param {string} xStoreSecret Store Secret for the selected store
8059
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8056
8060
  * @param {*} [options] Override http request option.
8057
8061
  * @throws {RequiredError}
8058
8062
  */
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);
8063
+ 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 = {}) {
8064
+ // verify required parameter 'xStoreID' is not null or undefined
8065
+ (0, common_1.assertParamExists)('adminV1SearchPost', 'xStoreID', xStoreID);
8066
+ // verify required parameter 'xStoreSecret' is not null or undefined
8067
+ (0, common_1.assertParamExists)('adminV1SearchPost', 'xStoreSecret', xStoreSecret);
8064
8068
  // verify required parameter 'body' is not null or undefined
8065
- (0, common_1.assertParamExists)('v1IndexConfigPost', 'body', body);
8066
- const localVarPath = `/v1/index/config`;
8069
+ (0, common_1.assertParamExists)('adminV1SearchPost', 'body', body);
8070
+ const localVarPath = `/admin/v1/search`;
8067
8071
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8068
8072
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8069
8073
  let baseOptions;
@@ -8073,12 +8077,14 @@ const SearchApiAxiosParamCreator = function (configuration) {
8073
8077
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8074
8078
  const localVarHeaderParameter = {};
8075
8079
  const localVarQueryParameter = {};
8080
+ // authentication BearerAuth required
8081
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8076
8082
  localVarHeaderParameter['Content-Type'] = 'application/json';
8077
- if (xStoreid != null) {
8078
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8083
+ if (xStoreID != null) {
8084
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8079
8085
  }
8080
- if (xStoresecret != null) {
8081
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8086
+ if (xStoreSecret != null) {
8087
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8082
8088
  }
8083
8089
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8084
8090
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8090,46 +8096,29 @@ const SearchApiAxiosParamCreator = function (configuration) {
8090
8096
  };
8091
8097
  }),
8092
8098
  /**
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
8099
+ * Get the current index configuration
8100
+ * @summary Get Index Config
8101
+ * @param {string} indexname Index Name
8099
8102
  * @param {*} [options] Override http request option.
8100
8103
  * @throws {RequiredError}
8101
8104
  */
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)));
8105
+ v1IndexIndexnameConfigGet: (indexname_1, ...args_1) => __awaiter(this, [indexname_1, ...args_1], void 0, function* (indexname, options = {}) {
8106
+ // verify required parameter 'indexname' is not null or undefined
8107
+ (0, common_1.assertParamExists)('v1IndexIndexnameConfigGet', 'indexname', indexname);
8108
+ const localVarPath = `/v1/index/{indexname}/config`
8109
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
8113
8110
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8114
8111
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8115
8112
  let baseOptions;
8116
8113
  if (configuration) {
8117
8114
  baseOptions = configuration.baseOptions;
8118
8115
  }
8119
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8116
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8120
8117
  const localVarHeaderParameter = {};
8121
8118
  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
8119
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8130
8120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8131
8121
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8132
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8133
8122
  return {
8134
8123
  url: (0, common_1.toPathString)(localVarUrlObj),
8135
8124
  options: localVarRequestOptions,
@@ -8138,18 +8127,12 @@ const SearchApiAxiosParamCreator = function (configuration) {
8138
8127
  /**
8139
8128
  * Configure the index for search
8140
8129
  * @summary Index Config
8141
- * @param {string} xStoreid Store ID
8142
- * @param {string} xStoresecret Store Secret
8143
8130
  * @param {string} indexname Index Name
8144
8131
  * @param {DataTypesIndexConfig} body Index configuration
8145
8132
  * @param {*} [options] Override http request option.
8146
8133
  * @throws {RequiredError}
8147
8134
  */
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);
8135
+ v1IndexIndexnameConfigPost: (indexname_1, body_1, ...args_1) => __awaiter(this, [indexname_1, body_1, ...args_1], void 0, function* (indexname, body, options = {}) {
8153
8136
  // verify required parameter 'indexname' is not null or undefined
8154
8137
  (0, common_1.assertParamExists)('v1IndexIndexnameConfigPost', 'indexname', indexname);
8155
8138
  // verify required parameter 'body' is not null or undefined
@@ -8166,12 +8149,6 @@ const SearchApiAxiosParamCreator = function (configuration) {
8166
8149
  const localVarHeaderParameter = {};
8167
8150
  const localVarQueryParameter = {};
8168
8151
  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
8152
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8176
8153
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8177
8154
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8184,19 +8161,13 @@ const SearchApiAxiosParamCreator = function (configuration) {
8184
8161
  /**
8185
8162
  * Update a single property of the index configuration
8186
8163
  * @summary Update Index Config Property
8187
- * @param {string} xStoreid Store ID
8188
- * @param {string} xStoresecret Store Secret
8189
8164
  * @param {string} indexname Index Name
8190
8165
  * @param {string} property Property name
8191
8166
  * @param {object} body Property value
8192
8167
  * @param {*} [options] Override http request option.
8193
8168
  * @throws {RequiredError}
8194
8169
  */
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);
8170
+ 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
8171
  // verify required parameter 'indexname' is not null or undefined
8201
8172
  (0, common_1.assertParamExists)('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname);
8202
8173
  // verify required parameter 'property' is not null or undefined
@@ -8216,11 +8187,47 @@ const SearchApiAxiosParamCreator = function (configuration) {
8216
8187
  const localVarHeaderParameter = {};
8217
8188
  const localVarQueryParameter = {};
8218
8189
  localVarHeaderParameter['Content-Type'] = 'application/json';
8219
- if (xStoreid != null) {
8220
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8192
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8193
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8194
+ return {
8195
+ url: (0, common_1.toPathString)(localVarUrlObj),
8196
+ options: localVarRequestOptions,
8197
+ };
8198
+ }),
8199
+ /**
8200
+ * Search documents using store credentials with optional autocomplete suggestions
8201
+ * @summary Public Search API
8202
+ * @param {string} xStoreID Store ID
8203
+ * @param {string} xStoreSecret Store Secret
8204
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8205
+ * @param {*} [options] Override http request option.
8206
+ * @throws {RequiredError}
8207
+ */
8208
+ 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 = {}) {
8209
+ // verify required parameter 'xStoreID' is not null or undefined
8210
+ (0, common_1.assertParamExists)('v1SearchPost', 'xStoreID', xStoreID);
8211
+ // verify required parameter 'xStoreSecret' is not null or undefined
8212
+ (0, common_1.assertParamExists)('v1SearchPost', 'xStoreSecret', xStoreSecret);
8213
+ // verify required parameter 'body' is not null or undefined
8214
+ (0, common_1.assertParamExists)('v1SearchPost', 'body', body);
8215
+ const localVarPath = `/v1/search`;
8216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8217
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8218
+ let baseOptions;
8219
+ if (configuration) {
8220
+ baseOptions = configuration.baseOptions;
8221
+ }
8222
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8223
+ const localVarHeaderParameter = {};
8224
+ const localVarQueryParameter = {};
8225
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8226
+ if (xStoreID != null) {
8227
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8221
8228
  }
8222
- if (xStoresecret != null) {
8223
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8229
+ if (xStoreSecret != null) {
8230
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8224
8231
  }
8225
8232
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8226
8233
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8242,56 +8249,51 @@ const SearchApiFp = function (configuration) {
8242
8249
  const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
8243
8250
  return {
8244
8251
  /**
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
8252
+ * Search documents with optional configuration override and autocomplete suggestions
8253
+ * @summary Admin Search API
8254
+ * @param {string} xStoreID Store ID for the selected store
8255
+ * @param {string} xStoreSecret Store Secret for the selected store
8256
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8250
8257
  * @param {*} [options] Override http request option.
8251
8258
  * @throws {RequiredError}
8252
8259
  */
8253
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8260
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8254
8261
  return __awaiter(this, void 0, void 0, function* () {
8255
8262
  var _a, _b, _c;
8256
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPost(xStoreid, xStoresecret, body, options);
8263
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
8257
8264
  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;
8265
+ 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
8266
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8260
8267
  });
8261
8268
  },
8262
8269
  /**
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
8270
+ * Get the current index configuration
8271
+ * @summary Get Index Config
8272
+ * @param {string} indexname Index Name
8269
8273
  * @param {*} [options] Override http request option.
8270
8274
  * @throws {RequiredError}
8271
8275
  */
8272
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8276
+ v1IndexIndexnameConfigGet(indexname, options) {
8273
8277
  return __awaiter(this, void 0, void 0, function* () {
8274
8278
  var _a, _b, _c;
8275
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options);
8279
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
8276
8280
  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;
8281
+ 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
8282
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8279
8283
  });
8280
8284
  },
8281
8285
  /**
8282
8286
  * Configure the index for search
8283
8287
  * @summary Index Config
8284
- * @param {string} xStoreid Store ID
8285
- * @param {string} xStoresecret Store Secret
8286
8288
  * @param {string} indexname Index Name
8287
8289
  * @param {DataTypesIndexConfig} body Index configuration
8288
8290
  * @param {*} [options] Override http request option.
8289
8291
  * @throws {RequiredError}
8290
8292
  */
8291
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8293
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8292
8294
  return __awaiter(this, void 0, void 0, function* () {
8293
8295
  var _a, _b, _c;
8294
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options);
8296
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(indexname, body, options);
8295
8297
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8296
8298
  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
8299
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8300,23 +8302,39 @@ const SearchApiFp = function (configuration) {
8300
8302
  /**
8301
8303
  * Update a single property of the index configuration
8302
8304
  * @summary Update Index Config Property
8303
- * @param {string} xStoreid Store ID
8304
- * @param {string} xStoresecret Store Secret
8305
8305
  * @param {string} indexname Index Name
8306
8306
  * @param {string} property Property name
8307
8307
  * @param {object} body Property value
8308
8308
  * @param {*} [options] Override http request option.
8309
8309
  * @throws {RequiredError}
8310
8310
  */
8311
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8311
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8312
8312
  return __awaiter(this, void 0, void 0, function* () {
8313
8313
  var _a, _b, _c;
8314
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options);
8314
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options);
8315
8315
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8316
8316
  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
8317
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8318
8318
  });
8319
8319
  },
8320
+ /**
8321
+ * Search documents using store credentials with optional autocomplete suggestions
8322
+ * @summary Public Search API
8323
+ * @param {string} xStoreID Store ID
8324
+ * @param {string} xStoreSecret Store Secret
8325
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8326
+ * @param {*} [options] Override http request option.
8327
+ * @throws {RequiredError}
8328
+ */
8329
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8330
+ return __awaiter(this, void 0, void 0, function* () {
8331
+ var _a, _b, _c;
8332
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
8333
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8334
+ 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;
8335
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8336
+ });
8337
+ },
8320
8338
  };
8321
8339
  };
8322
8340
  exports.SearchApiFp = SearchApiFp;
@@ -8328,56 +8346,61 @@ const SearchApiFactory = function (configuration, basePath, axios) {
8328
8346
  const localVarFp = (0, exports.SearchApiFp)(configuration);
8329
8347
  return {
8330
8348
  /**
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
8349
+ * Search documents with optional configuration override and autocomplete suggestions
8350
+ * @summary Admin Search API
8351
+ * @param {string} xStoreID Store ID for the selected store
8352
+ * @param {string} xStoreSecret Store Secret for the selected store
8353
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8336
8354
  * @param {*} [options] Override http request option.
8337
8355
  * @throws {RequiredError}
8338
8356
  */
8339
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8340
- return localVarFp.v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
8357
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8358
+ return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8341
8359
  },
8342
8360
  /**
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
8361
+ * Get the current index configuration
8362
+ * @summary Get Index Config
8363
+ * @param {string} indexname Index Name
8349
8364
  * @param {*} [options] Override http request option.
8350
8365
  * @throws {RequiredError}
8351
8366
  */
8352
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8353
- return localVarFp.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(axios, basePath));
8367
+ v1IndexIndexnameConfigGet(indexname, options) {
8368
+ return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
8354
8369
  },
8355
8370
  /**
8356
8371
  * Configure the index for search
8357
8372
  * @summary Index Config
8358
- * @param {string} xStoreid Store ID
8359
- * @param {string} xStoresecret Store Secret
8360
8373
  * @param {string} indexname Index Name
8361
8374
  * @param {DataTypesIndexConfig} body Index configuration
8362
8375
  * @param {*} [options] Override http request option.
8363
8376
  * @throws {RequiredError}
8364
8377
  */
8365
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8366
- return localVarFp.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(axios, basePath));
8378
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8379
+ return localVarFp.v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(axios, basePath));
8367
8380
  },
8368
8381
  /**
8369
8382
  * Update a single property of the index configuration
8370
8383
  * @summary Update Index Config Property
8371
- * @param {string} xStoreid Store ID
8372
- * @param {string} xStoresecret Store Secret
8373
8384
  * @param {string} indexname Index Name
8374
8385
  * @param {string} property Property name
8375
8386
  * @param {object} body Property value
8376
8387
  * @param {*} [options] Override http request option.
8377
8388
  * @throws {RequiredError}
8378
8389
  */
8379
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8380
- return localVarFp.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(axios, basePath));
8390
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8391
+ return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
8392
+ },
8393
+ /**
8394
+ * Search documents using store credentials with optional autocomplete suggestions
8395
+ * @summary Public Search API
8396
+ * @param {string} xStoreID Store ID
8397
+ * @param {string} xStoreSecret Store Secret
8398
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8399
+ * @param {*} [options] Override http request option.
8400
+ * @throws {RequiredError}
8401
+ */
8402
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8403
+ return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8381
8404
  },
8382
8405
  };
8383
8406
  };
@@ -8390,51 +8413,44 @@ exports.SearchApiFactory = SearchApiFactory;
8390
8413
  */
8391
8414
  class SearchApi extends base_1.BaseAPI {
8392
8415
  /**
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
8416
+ * Search documents with optional configuration override and autocomplete suggestions
8417
+ * @summary Admin Search API
8418
+ * @param {string} xStoreID Store ID for the selected store
8419
+ * @param {string} xStoreSecret Store Secret for the selected store
8420
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8398
8421
  * @param {*} [options] Override http request option.
8399
8422
  * @throws {RequiredError}
8400
8423
  * @memberof SearchApi
8401
8424
  */
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));
8425
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8426
+ return (0, exports.SearchApiFp)(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8404
8427
  }
8405
8428
  /**
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
8429
+ * Get the current index configuration
8430
+ * @summary Get Index Config
8431
+ * @param {string} indexname Index Name
8412
8432
  * @param {*} [options] Override http request option.
8413
8433
  * @throws {RequiredError}
8414
8434
  * @memberof SearchApi
8415
8435
  */
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));
8436
+ v1IndexIndexnameConfigGet(indexname, options) {
8437
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigGet(indexname, options).then((request) => request(this.axios, this.basePath));
8418
8438
  }
8419
8439
  /**
8420
8440
  * Configure the index for search
8421
8441
  * @summary Index Config
8422
- * @param {string} xStoreid Store ID
8423
- * @param {string} xStoresecret Store Secret
8424
8442
  * @param {string} indexname Index Name
8425
8443
  * @param {DataTypesIndexConfig} body Index configuration
8426
8444
  * @param {*} [options] Override http request option.
8427
8445
  * @throws {RequiredError}
8428
8446
  * @memberof SearchApi
8429
8447
  */
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));
8448
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8449
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(this.axios, this.basePath));
8432
8450
  }
8433
8451
  /**
8434
8452
  * Update a single property of the index configuration
8435
8453
  * @summary Update Index Config Property
8436
- * @param {string} xStoreid Store ID
8437
- * @param {string} xStoresecret Store Secret
8438
8454
  * @param {string} indexname Index Name
8439
8455
  * @param {string} property Property name
8440
8456
  * @param {object} body Property value
@@ -8442,8 +8458,21 @@ class SearchApi extends base_1.BaseAPI {
8442
8458
  * @throws {RequiredError}
8443
8459
  * @memberof SearchApi
8444
8460
  */
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));
8461
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8462
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8463
+ }
8464
+ /**
8465
+ * Search documents using store credentials with optional autocomplete suggestions
8466
+ * @summary Public Search API
8467
+ * @param {string} xStoreID Store ID
8468
+ * @param {string} xStoreSecret Store Secret
8469
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8470
+ * @param {*} [options] Override http request option.
8471
+ * @throws {RequiredError}
8472
+ * @memberof SearchApi
8473
+ */
8474
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8475
+ return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8447
8476
  }
8448
8477
  }
8449
8478
  exports.SearchApi = SearchApi;