@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/esm/api.js CHANGED
@@ -4389,13 +4389,13 @@ export const OnboardingApiAxiosParamCreator = function (configuration) {
4389
4389
  /**
4390
4390
  * Upload source data
4391
4391
  * @summary Upload source data
4392
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4392
+ * @param {File} file File
4393
4393
  * @param {*} [options] Override http request option.
4394
4394
  * @throws {RequiredError}
4395
4395
  */
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);
4396
+ adminV1UsersOnboardingUploaddataPost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
4397
+ // verify required parameter 'file' is not null or undefined
4398
+ assertParamExists('adminV1UsersOnboardingUploaddataPost', 'file', file);
4399
4399
  const localVarPath = `/admin/v1/users/onboarding/uploaddata`;
4400
4400
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4401
4401
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4406,13 +4406,17 @@ export const OnboardingApiAxiosParamCreator = function (configuration) {
4406
4406
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4407
4407
  const localVarHeaderParameter = {};
4408
4408
  const localVarQueryParameter = {};
4409
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
4409
4410
  // authentication BearerAuth required
4410
4411
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
4411
- localVarHeaderParameter['Content-Type'] = 'application/json';
4412
+ if (file !== undefined) {
4413
+ localVarFormParams.append('File', file);
4414
+ }
4415
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
4412
4416
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4413
4417
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4414
4418
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4415
- localVarRequestOptions.data = serializeDataIfNeeded(adminV1UsersOnboardingUploaddataPostRequest, localVarRequestOptions, configuration);
4419
+ localVarRequestOptions.data = localVarFormParams;
4416
4420
  return {
4417
4421
  url: toPathString(localVarUrlObj),
4418
4422
  options: localVarRequestOptions,
@@ -4566,14 +4570,14 @@ export const OnboardingApiFp = function (configuration) {
4566
4570
  /**
4567
4571
  * Upload source data
4568
4572
  * @summary Upload source data
4569
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4573
+ * @param {File} file File
4570
4574
  * @param {*} [options] Override http request option.
4571
4575
  * @throws {RequiredError}
4572
4576
  */
4573
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4577
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4574
4578
  return __awaiter(this, void 0, void 0, function* () {
4575
4579
  var _a, _b, _c;
4576
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options);
4580
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(file, options);
4577
4581
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4578
4582
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OnboardingApi.adminV1UsersOnboardingUploaddataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4579
4583
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4673,12 +4677,12 @@ export const OnboardingApiFactory = function (configuration, basePath, axios) {
4673
4677
  /**
4674
4678
  * Upload source data
4675
4679
  * @summary Upload source data
4676
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4680
+ * @param {File} file File
4677
4681
  * @param {*} [options] Override http request option.
4678
4682
  * @throws {RequiredError}
4679
4683
  */
4680
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4681
- return localVarFp.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(axios, basePath));
4684
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4685
+ return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
4682
4686
  },
4683
4687
  /**
4684
4688
  * Get sample datasets
@@ -4775,13 +4779,13 @@ export class OnboardingApi extends BaseAPI {
4775
4779
  /**
4776
4780
  * Upload source data
4777
4781
  * @summary Upload source data
4778
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
4782
+ * @param {File} file File
4779
4783
  * @param {*} [options] Override http request option.
4780
4784
  * @throws {RequiredError}
4781
4785
  * @memberof OnboardingApi
4782
4786
  */
4783
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options) {
4784
- return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(this.axios, this.basePath));
4787
+ adminV1UsersOnboardingUploaddataPost(file, options) {
4788
+ return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
4785
4789
  }
4786
4790
  /**
4787
4791
  * Get sample datasets
@@ -7972,22 +7976,22 @@ export class RolesApi extends BaseAPI {
7972
7976
  export const SearchApiAxiosParamCreator = function (configuration) {
7973
7977
  return {
7974
7978
  /**
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
7979
+ * Search documents with optional configuration override and autocomplete suggestions
7980
+ * @summary Admin Search API
7981
+ * @param {string} xStoreID Store ID for the selected store
7982
+ * @param {string} xStoreSecret Store Secret for the selected store
7983
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
7980
7984
  * @param {*} [options] Override http request option.
7981
7985
  * @throws {RequiredError}
7982
7986
  */
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);
7987
+ 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 = {}) {
7988
+ // verify required parameter 'xStoreID' is not null or undefined
7989
+ assertParamExists('adminV1SearchPost', 'xStoreID', xStoreID);
7990
+ // verify required parameter 'xStoreSecret' is not null or undefined
7991
+ assertParamExists('adminV1SearchPost', 'xStoreSecret', xStoreSecret);
7988
7992
  // verify required parameter 'body' is not null or undefined
7989
- assertParamExists('v1IndexConfigPost', 'body', body);
7990
- const localVarPath = `/v1/index/config`;
7993
+ assertParamExists('adminV1SearchPost', 'body', body);
7994
+ const localVarPath = `/admin/v1/search`;
7991
7995
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7992
7996
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7993
7997
  let baseOptions;
@@ -7997,12 +8001,14 @@ export const SearchApiAxiosParamCreator = function (configuration) {
7997
8001
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7998
8002
  const localVarHeaderParameter = {};
7999
8003
  const localVarQueryParameter = {};
8004
+ // authentication BearerAuth required
8005
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8000
8006
  localVarHeaderParameter['Content-Type'] = 'application/json';
8001
- if (xStoreid != null) {
8002
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8007
+ if (xStoreID != null) {
8008
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8003
8009
  }
8004
- if (xStoresecret != null) {
8005
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8010
+ if (xStoreSecret != null) {
8011
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8006
8012
  }
8007
8013
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8008
8014
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8014,46 +8020,29 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8014
8020
  };
8015
8021
  }),
8016
8022
  /**
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
8023
+ * Get the current index configuration
8024
+ * @summary Get Index Config
8025
+ * @param {string} indexname Index Name
8023
8026
  * @param {*} [options] Override http request option.
8024
8027
  * @throws {RequiredError}
8025
8028
  */
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)));
8029
+ v1IndexIndexnameConfigGet: (indexname_1, ...args_1) => __awaiter(this, [indexname_1, ...args_1], void 0, function* (indexname, options = {}) {
8030
+ // verify required parameter 'indexname' is not null or undefined
8031
+ assertParamExists('v1IndexIndexnameConfigGet', 'indexname', indexname);
8032
+ const localVarPath = `/v1/index/{indexname}/config`
8033
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
8037
8034
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8038
8035
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8039
8036
  let baseOptions;
8040
8037
  if (configuration) {
8041
8038
  baseOptions = configuration.baseOptions;
8042
8039
  }
8043
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8040
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8044
8041
  const localVarHeaderParameter = {};
8045
8042
  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
8043
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8054
8044
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8055
8045
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8056
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
8057
8046
  return {
8058
8047
  url: toPathString(localVarUrlObj),
8059
8048
  options: localVarRequestOptions,
@@ -8062,18 +8051,12 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8062
8051
  /**
8063
8052
  * Configure the index for search
8064
8053
  * @summary Index Config
8065
- * @param {string} xStoreid Store ID
8066
- * @param {string} xStoresecret Store Secret
8067
8054
  * @param {string} indexname Index Name
8068
8055
  * @param {DataTypesIndexConfig} body Index configuration
8069
8056
  * @param {*} [options] Override http request option.
8070
8057
  * @throws {RequiredError}
8071
8058
  */
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);
8059
+ v1IndexIndexnameConfigPost: (indexname_1, body_1, ...args_1) => __awaiter(this, [indexname_1, body_1, ...args_1], void 0, function* (indexname, body, options = {}) {
8077
8060
  // verify required parameter 'indexname' is not null or undefined
8078
8061
  assertParamExists('v1IndexIndexnameConfigPost', 'indexname', indexname);
8079
8062
  // verify required parameter 'body' is not null or undefined
@@ -8090,12 +8073,6 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8090
8073
  const localVarHeaderParameter = {};
8091
8074
  const localVarQueryParameter = {};
8092
8075
  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
8076
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8100
8077
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8101
8078
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8108,19 +8085,13 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8108
8085
  /**
8109
8086
  * Update a single property of the index configuration
8110
8087
  * @summary Update Index Config Property
8111
- * @param {string} xStoreid Store ID
8112
- * @param {string} xStoresecret Store Secret
8113
8088
  * @param {string} indexname Index Name
8114
8089
  * @param {string} property Property name
8115
8090
  * @param {object} body Property value
8116
8091
  * @param {*} [options] Override http request option.
8117
8092
  * @throws {RequiredError}
8118
8093
  */
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);
8094
+ 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
8095
  // verify required parameter 'indexname' is not null or undefined
8125
8096
  assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname);
8126
8097
  // verify required parameter 'property' is not null or undefined
@@ -8140,11 +8111,47 @@ export const SearchApiAxiosParamCreator = function (configuration) {
8140
8111
  const localVarHeaderParameter = {};
8141
8112
  const localVarQueryParameter = {};
8142
8113
  localVarHeaderParameter['Content-Type'] = 'application/json';
8143
- if (xStoreid != null) {
8144
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
8114
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8115
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8116
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8117
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
8118
+ return {
8119
+ url: toPathString(localVarUrlObj),
8120
+ options: localVarRequestOptions,
8121
+ };
8122
+ }),
8123
+ /**
8124
+ * Search documents using store credentials with optional autocomplete suggestions
8125
+ * @summary Public Search API
8126
+ * @param {string} xStoreID Store ID
8127
+ * @param {string} xStoreSecret Store Secret
8128
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8129
+ * @param {*} [options] Override http request option.
8130
+ * @throws {RequiredError}
8131
+ */
8132
+ 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 = {}) {
8133
+ // verify required parameter 'xStoreID' is not null or undefined
8134
+ assertParamExists('v1SearchPost', 'xStoreID', xStoreID);
8135
+ // verify required parameter 'xStoreSecret' is not null or undefined
8136
+ assertParamExists('v1SearchPost', 'xStoreSecret', xStoreSecret);
8137
+ // verify required parameter 'body' is not null or undefined
8138
+ assertParamExists('v1SearchPost', 'body', body);
8139
+ const localVarPath = `/v1/search`;
8140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8142
+ let baseOptions;
8143
+ if (configuration) {
8144
+ baseOptions = configuration.baseOptions;
8145
+ }
8146
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8147
+ const localVarHeaderParameter = {};
8148
+ const localVarQueryParameter = {};
8149
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8150
+ if (xStoreID != null) {
8151
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8145
8152
  }
8146
- if (xStoresecret != null) {
8147
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8153
+ if (xStoreSecret != null) {
8154
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8148
8155
  }
8149
8156
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8150
8157
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8165,56 +8172,51 @@ export const SearchApiFp = function (configuration) {
8165
8172
  const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
8166
8173
  return {
8167
8174
  /**
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
8175
+ * Search documents with optional configuration override and autocomplete suggestions
8176
+ * @summary Admin Search API
8177
+ * @param {string} xStoreID Store ID for the selected store
8178
+ * @param {string} xStoreSecret Store Secret for the selected store
8179
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8173
8180
  * @param {*} [options] Override http request option.
8174
8181
  * @throws {RequiredError}
8175
8182
  */
8176
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8183
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8177
8184
  return __awaiter(this, void 0, void 0, function* () {
8178
8185
  var _a, _b, _c;
8179
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPost(xStoreid, xStoresecret, body, options);
8186
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
8180
8187
  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;
8188
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.adminV1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8182
8189
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8183
8190
  });
8184
8191
  },
8185
8192
  /**
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
8193
+ * Get the current index configuration
8194
+ * @summary Get Index Config
8195
+ * @param {string} indexname Index Name
8192
8196
  * @param {*} [options] Override http request option.
8193
8197
  * @throws {RequiredError}
8194
8198
  */
8195
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8199
+ v1IndexIndexnameConfigGet(indexname, options) {
8196
8200
  return __awaiter(this, void 0, void 0, function* () {
8197
8201
  var _a, _b, _c;
8198
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options);
8202
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
8199
8203
  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;
8204
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexIndexnameConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8201
8205
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8202
8206
  });
8203
8207
  },
8204
8208
  /**
8205
8209
  * Configure the index for search
8206
8210
  * @summary Index Config
8207
- * @param {string} xStoreid Store ID
8208
- * @param {string} xStoresecret Store Secret
8209
8211
  * @param {string} indexname Index Name
8210
8212
  * @param {DataTypesIndexConfig} body Index configuration
8211
8213
  * @param {*} [options] Override http request option.
8212
8214
  * @throws {RequiredError}
8213
8215
  */
8214
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8216
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8215
8217
  return __awaiter(this, void 0, void 0, function* () {
8216
8218
  var _a, _b, _c;
8217
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options);
8219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPost(indexname, body, options);
8218
8220
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8219
8221
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexIndexnameConfigPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8220
8222
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8223,23 +8225,39 @@ export const SearchApiFp = function (configuration) {
8223
8225
  /**
8224
8226
  * Update a single property of the index configuration
8225
8227
  * @summary Update Index Config Property
8226
- * @param {string} xStoreid Store ID
8227
- * @param {string} xStoresecret Store Secret
8228
8228
  * @param {string} indexname Index Name
8229
8229
  * @param {string} property Property name
8230
8230
  * @param {object} body Property value
8231
8231
  * @param {*} [options] Override http request option.
8232
8232
  * @throws {RequiredError}
8233
8233
  */
8234
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8234
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8235
8235
  return __awaiter(this, void 0, void 0, function* () {
8236
8236
  var _a, _b, _c;
8237
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options);
8237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options);
8238
8238
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8239
8239
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8240
8240
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8241
8241
  });
8242
8242
  },
8243
+ /**
8244
+ * Search documents using store credentials with optional autocomplete suggestions
8245
+ * @summary Public Search API
8246
+ * @param {string} xStoreID Store ID
8247
+ * @param {string} xStoreSecret Store Secret
8248
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8249
+ * @param {*} [options] Override http request option.
8250
+ * @throws {RequiredError}
8251
+ */
8252
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8253
+ return __awaiter(this, void 0, void 0, function* () {
8254
+ var _a, _b, _c;
8255
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
8256
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8257
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8258
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8259
+ });
8260
+ },
8243
8261
  };
8244
8262
  };
8245
8263
  /**
@@ -8250,56 +8268,61 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
8250
8268
  const localVarFp = SearchApiFp(configuration);
8251
8269
  return {
8252
8270
  /**
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
8271
+ * Search documents with optional configuration override and autocomplete suggestions
8272
+ * @summary Admin Search API
8273
+ * @param {string} xStoreID Store ID for the selected store
8274
+ * @param {string} xStoreSecret Store Secret for the selected store
8275
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8258
8276
  * @param {*} [options] Override http request option.
8259
8277
  * @throws {RequiredError}
8260
8278
  */
8261
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8262
- return localVarFp.v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
8279
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8280
+ return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8263
8281
  },
8264
8282
  /**
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
8283
+ * Get the current index configuration
8284
+ * @summary Get Index Config
8285
+ * @param {string} indexname Index Name
8271
8286
  * @param {*} [options] Override http request option.
8272
8287
  * @throws {RequiredError}
8273
8288
  */
8274
- v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options) {
8275
- return localVarFp.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(axios, basePath));
8289
+ v1IndexIndexnameConfigGet(indexname, options) {
8290
+ return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
8276
8291
  },
8277
8292
  /**
8278
8293
  * Configure the index for search
8279
8294
  * @summary Index Config
8280
- * @param {string} xStoreid Store ID
8281
- * @param {string} xStoresecret Store Secret
8282
8295
  * @param {string} indexname Index Name
8283
8296
  * @param {DataTypesIndexConfig} body Index configuration
8284
8297
  * @param {*} [options] Override http request option.
8285
8298
  * @throws {RequiredError}
8286
8299
  */
8287
- v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options) {
8288
- return localVarFp.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(axios, basePath));
8300
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8301
+ return localVarFp.v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(axios, basePath));
8289
8302
  },
8290
8303
  /**
8291
8304
  * Update a single property of the index configuration
8292
8305
  * @summary Update Index Config Property
8293
- * @param {string} xStoreid Store ID
8294
- * @param {string} xStoresecret Store Secret
8295
8306
  * @param {string} indexname Index Name
8296
8307
  * @param {string} property Property name
8297
8308
  * @param {object} body Property value
8298
8309
  * @param {*} [options] Override http request option.
8299
8310
  * @throws {RequiredError}
8300
8311
  */
8301
- v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options) {
8302
- return localVarFp.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(axios, basePath));
8312
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8313
+ return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
8314
+ },
8315
+ /**
8316
+ * Search documents using store credentials with optional autocomplete suggestions
8317
+ * @summary Public Search API
8318
+ * @param {string} xStoreID Store ID
8319
+ * @param {string} xStoreSecret Store Secret
8320
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8321
+ * @param {*} [options] Override http request option.
8322
+ * @throws {RequiredError}
8323
+ */
8324
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8325
+ return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8303
8326
  },
8304
8327
  };
8305
8328
  };
@@ -8311,51 +8334,44 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
8311
8334
  */
8312
8335
  export class SearchApi extends BaseAPI {
8313
8336
  /**
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
8337
+ * Search documents with optional configuration override and autocomplete suggestions
8338
+ * @summary Admin Search API
8339
+ * @param {string} xStoreID Store ID for the selected store
8340
+ * @param {string} xStoreSecret Store Secret for the selected store
8341
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8319
8342
  * @param {*} [options] Override http request option.
8320
8343
  * @throws {RequiredError}
8321
8344
  * @memberof SearchApi
8322
8345
  */
8323
- v1IndexConfigPost(xStoreid, xStoresecret, body, options) {
8324
- return SearchApiFp(this.configuration).v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
8346
+ adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8347
+ return SearchApiFp(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8325
8348
  }
8326
8349
  /**
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
8350
+ * Get the current index configuration
8351
+ * @summary Get Index Config
8352
+ * @param {string} indexname Index Name
8333
8353
  * @param {*} [options] Override http request option.
8334
8354
  * @throws {RequiredError}
8335
8355
  * @memberof SearchApi
8336
8356
  */
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));
8357
+ v1IndexIndexnameConfigGet(indexname, options) {
8358
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigGet(indexname, options).then((request) => request(this.axios, this.basePath));
8339
8359
  }
8340
8360
  /**
8341
8361
  * Configure the index for search
8342
8362
  * @summary Index Config
8343
- * @param {string} xStoreid Store ID
8344
- * @param {string} xStoresecret Store Secret
8345
8363
  * @param {string} indexname Index Name
8346
8364
  * @param {DataTypesIndexConfig} body Index configuration
8347
8365
  * @param {*} [options] Override http request option.
8348
8366
  * @throws {RequiredError}
8349
8367
  * @memberof SearchApi
8350
8368
  */
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));
8369
+ v1IndexIndexnameConfigPost(indexname, body, options) {
8370
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(this.axios, this.basePath));
8353
8371
  }
8354
8372
  /**
8355
8373
  * Update a single property of the index configuration
8356
8374
  * @summary Update Index Config Property
8357
- * @param {string} xStoreid Store ID
8358
- * @param {string} xStoresecret Store Secret
8359
8375
  * @param {string} indexname Index Name
8360
8376
  * @param {string} property Property name
8361
8377
  * @param {object} body Property value
@@ -8363,8 +8379,21 @@ export class SearchApi extends BaseAPI {
8363
8379
  * @throws {RequiredError}
8364
8380
  * @memberof SearchApi
8365
8381
  */
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));
8382
+ v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8383
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8384
+ }
8385
+ /**
8386
+ * Search documents using store credentials with optional autocomplete suggestions
8387
+ * @summary Public Search API
8388
+ * @param {string} xStoreID Store ID
8389
+ * @param {string} xStoreSecret Store Secret
8390
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8391
+ * @param {*} [options] Override http request option.
8392
+ * @throws {RequiredError}
8393
+ * @memberof SearchApi
8394
+ */
8395
+ v1SearchPost(xStoreID, xStoreSecret, body, options) {
8396
+ return SearchApiFp(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8368
8397
  }
8369
8398
  }
8370
8399
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file