@seekora-ai/admin-api 1.1.52 → 1.1.53

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
@@ -14938,6 +14938,293 @@ export class DocumentsApi extends BaseAPI {
14938
14938
  return DocumentsApiFp(this.configuration).adminStoresXStoreIDUploadPost(xStoreID, file, options).then((request) => request(this.axios, this.basePath));
14939
14939
  }
14940
14940
  }
14941
+ /**
14942
+ * DropdownRecommendationsApi - axios parameter creator
14943
+ * @export
14944
+ */
14945
+ export const DropdownRecommendationsApiAxiosParamCreator = function (configuration) {
14946
+ return {
14947
+ /**
14948
+ * Retrieve configuration settings for dropdown recommendations
14949
+ * @summary Get Dropdown Recommendations Configuration
14950
+ * @param {string} xStoreid Store ID
14951
+ * @param {string} xStoresecret Store Secret
14952
+ * @param {*} [options] Override http request option.
14953
+ * @throws {RequiredError}
14954
+ */
14955
+ v1DropdownRecommendationsConfigGet: (xStoreid_1, xStoresecret_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, ...args_1], void 0, function* (xStoreid, xStoresecret, options = {}) {
14956
+ // verify required parameter 'xStoreid' is not null or undefined
14957
+ assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoreid', xStoreid);
14958
+ // verify required parameter 'xStoresecret' is not null or undefined
14959
+ assertParamExists('v1DropdownRecommendationsConfigGet', 'xStoresecret', xStoresecret);
14960
+ const localVarPath = `/v1/dropdown-recommendations/config`;
14961
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14962
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14963
+ let baseOptions;
14964
+ if (configuration) {
14965
+ baseOptions = configuration.baseOptions;
14966
+ }
14967
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14968
+ const localVarHeaderParameter = {};
14969
+ const localVarQueryParameter = {};
14970
+ if (xStoreid != null) {
14971
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
14972
+ }
14973
+ if (xStoresecret != null) {
14974
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
14975
+ }
14976
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14977
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14978
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14979
+ return {
14980
+ url: toPathString(localVarUrlObj),
14981
+ options: localVarRequestOptions,
14982
+ };
14983
+ }),
14984
+ /**
14985
+ * Update configuration settings for dropdown recommendations
14986
+ * @summary Update Dropdown Recommendations Configuration
14987
+ * @param {string} xStoreid Store ID
14988
+ * @param {string} xStoresecret Store Secret
14989
+ * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
14990
+ * @param {*} [options] Override http request option.
14991
+ * @throws {RequiredError}
14992
+ */
14993
+ v1DropdownRecommendationsConfigPut: (xStoreid_1, xStoresecret_1, dropdownRecommendationsServiceUpdateDropdownConfigRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dropdownRecommendationsServiceUpdateDropdownConfigRequest_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options = {}) {
14994
+ // verify required parameter 'xStoreid' is not null or undefined
14995
+ assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoreid', xStoreid);
14996
+ // verify required parameter 'xStoresecret' is not null or undefined
14997
+ assertParamExists('v1DropdownRecommendationsConfigPut', 'xStoresecret', xStoresecret);
14998
+ // verify required parameter 'dropdownRecommendationsServiceUpdateDropdownConfigRequest' is not null or undefined
14999
+ assertParamExists('v1DropdownRecommendationsConfigPut', 'dropdownRecommendationsServiceUpdateDropdownConfigRequest', dropdownRecommendationsServiceUpdateDropdownConfigRequest);
15000
+ const localVarPath = `/v1/dropdown-recommendations/config`;
15001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15003
+ let baseOptions;
15004
+ if (configuration) {
15005
+ baseOptions = configuration.baseOptions;
15006
+ }
15007
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
15008
+ const localVarHeaderParameter = {};
15009
+ const localVarQueryParameter = {};
15010
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15011
+ if (xStoreid != null) {
15012
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
15013
+ }
15014
+ if (xStoresecret != null) {
15015
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
15016
+ }
15017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15019
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15020
+ localVarRequestOptions.data = serializeDataIfNeeded(dropdownRecommendationsServiceUpdateDropdownConfigRequest, localVarRequestOptions, configuration);
15021
+ return {
15022
+ url: toPathString(localVarUrlObj),
15023
+ options: localVarRequestOptions,
15024
+ };
15025
+ }),
15026
+ /**
15027
+ * Retrieve trending search categories, trending products, and popular brands for the dropdown
15028
+ * @summary Get Dropdown Recommendations
15029
+ * @param {string} xStoreid Store ID
15030
+ * @param {string} xStoresecret Store Secret
15031
+ * @param {string} [xUserId] User ID for personalization
15032
+ * @param {string} [xAnonId] Anonymous ID for personalization
15033
+ * @param {*} [options] Override http request option.
15034
+ * @throws {RequiredError}
15035
+ */
15036
+ v1DropdownRecommendationsGet: (xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xUserId, xAnonId, options = {}) {
15037
+ // verify required parameter 'xStoreid' is not null or undefined
15038
+ assertParamExists('v1DropdownRecommendationsGet', 'xStoreid', xStoreid);
15039
+ // verify required parameter 'xStoresecret' is not null or undefined
15040
+ assertParamExists('v1DropdownRecommendationsGet', 'xStoresecret', xStoresecret);
15041
+ const localVarPath = `/v1/dropdown-recommendations`;
15042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15043
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15044
+ let baseOptions;
15045
+ if (configuration) {
15046
+ baseOptions = configuration.baseOptions;
15047
+ }
15048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15049
+ const localVarHeaderParameter = {};
15050
+ const localVarQueryParameter = {};
15051
+ if (xStoreid != null) {
15052
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
15053
+ }
15054
+ if (xStoresecret != null) {
15055
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
15056
+ }
15057
+ if (xUserId != null) {
15058
+ localVarHeaderParameter['x-user-id'] = String(xUserId);
15059
+ }
15060
+ if (xAnonId != null) {
15061
+ localVarHeaderParameter['x-anon-id'] = String(xAnonId);
15062
+ }
15063
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15064
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15065
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15066
+ return {
15067
+ url: toPathString(localVarUrlObj),
15068
+ options: localVarRequestOptions,
15069
+ };
15070
+ }),
15071
+ };
15072
+ };
15073
+ /**
15074
+ * DropdownRecommendationsApi - functional programming interface
15075
+ * @export
15076
+ */
15077
+ export const DropdownRecommendationsApiFp = function (configuration) {
15078
+ const localVarAxiosParamCreator = DropdownRecommendationsApiAxiosParamCreator(configuration);
15079
+ return {
15080
+ /**
15081
+ * Retrieve configuration settings for dropdown recommendations
15082
+ * @summary Get Dropdown Recommendations Configuration
15083
+ * @param {string} xStoreid Store ID
15084
+ * @param {string} xStoresecret Store Secret
15085
+ * @param {*} [options] Override http request option.
15086
+ * @throws {RequiredError}
15087
+ */
15088
+ v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options) {
15089
+ return __awaiter(this, void 0, void 0, function* () {
15090
+ var _a, _b, _c;
15091
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options);
15092
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15093
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15094
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15095
+ });
15096
+ },
15097
+ /**
15098
+ * Update configuration settings for dropdown recommendations
15099
+ * @summary Update Dropdown Recommendations Configuration
15100
+ * @param {string} xStoreid Store ID
15101
+ * @param {string} xStoresecret Store Secret
15102
+ * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
15103
+ * @param {*} [options] Override http request option.
15104
+ * @throws {RequiredError}
15105
+ */
15106
+ v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options) {
15107
+ return __awaiter(this, void 0, void 0, function* () {
15108
+ var _a, _b, _c;
15109
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options);
15110
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15111
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15112
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15113
+ });
15114
+ },
15115
+ /**
15116
+ * Retrieve trending search categories, trending products, and popular brands for the dropdown
15117
+ * @summary Get Dropdown Recommendations
15118
+ * @param {string} xStoreid Store ID
15119
+ * @param {string} xStoresecret Store Secret
15120
+ * @param {string} [xUserId] User ID for personalization
15121
+ * @param {string} [xAnonId] Anonymous ID for personalization
15122
+ * @param {*} [options] Override http request option.
15123
+ * @throws {RequiredError}
15124
+ */
15125
+ v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options) {
15126
+ return __awaiter(this, void 0, void 0, function* () {
15127
+ var _a, _b, _c;
15128
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options);
15129
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15130
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DropdownRecommendationsApi.v1DropdownRecommendationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15131
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15132
+ });
15133
+ },
15134
+ };
15135
+ };
15136
+ /**
15137
+ * DropdownRecommendationsApi - factory interface
15138
+ * @export
15139
+ */
15140
+ export const DropdownRecommendationsApiFactory = function (configuration, basePath, axios) {
15141
+ const localVarFp = DropdownRecommendationsApiFp(configuration);
15142
+ return {
15143
+ /**
15144
+ * Retrieve configuration settings for dropdown recommendations
15145
+ * @summary Get Dropdown Recommendations Configuration
15146
+ * @param {string} xStoreid Store ID
15147
+ * @param {string} xStoresecret Store Secret
15148
+ * @param {*} [options] Override http request option.
15149
+ * @throws {RequiredError}
15150
+ */
15151
+ v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options) {
15152
+ return localVarFp.v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
15153
+ },
15154
+ /**
15155
+ * Update configuration settings for dropdown recommendations
15156
+ * @summary Update Dropdown Recommendations Configuration
15157
+ * @param {string} xStoreid Store ID
15158
+ * @param {string} xStoresecret Store Secret
15159
+ * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
15160
+ * @param {*} [options] Override http request option.
15161
+ * @throws {RequiredError}
15162
+ */
15163
+ v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options) {
15164
+ return localVarFp.v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(axios, basePath));
15165
+ },
15166
+ /**
15167
+ * Retrieve trending search categories, trending products, and popular brands for the dropdown
15168
+ * @summary Get Dropdown Recommendations
15169
+ * @param {string} xStoreid Store ID
15170
+ * @param {string} xStoresecret Store Secret
15171
+ * @param {string} [xUserId] User ID for personalization
15172
+ * @param {string} [xAnonId] Anonymous ID for personalization
15173
+ * @param {*} [options] Override http request option.
15174
+ * @throws {RequiredError}
15175
+ */
15176
+ v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options) {
15177
+ return localVarFp.v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options).then((request) => request(axios, basePath));
15178
+ },
15179
+ };
15180
+ };
15181
+ /**
15182
+ * DropdownRecommendationsApi - object-oriented interface
15183
+ * @export
15184
+ * @class DropdownRecommendationsApi
15185
+ * @extends {BaseAPI}
15186
+ */
15187
+ export class DropdownRecommendationsApi extends BaseAPI {
15188
+ /**
15189
+ * Retrieve configuration settings for dropdown recommendations
15190
+ * @summary Get Dropdown Recommendations Configuration
15191
+ * @param {string} xStoreid Store ID
15192
+ * @param {string} xStoresecret Store Secret
15193
+ * @param {*} [options] Override http request option.
15194
+ * @throws {RequiredError}
15195
+ * @memberof DropdownRecommendationsApi
15196
+ */
15197
+ v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options) {
15198
+ return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
15199
+ }
15200
+ /**
15201
+ * Update configuration settings for dropdown recommendations
15202
+ * @summary Update Dropdown Recommendations Configuration
15203
+ * @param {string} xStoreid Store ID
15204
+ * @param {string} xStoresecret Store Secret
15205
+ * @param {DropdownRecommendationsServiceUpdateDropdownConfigRequest} dropdownRecommendationsServiceUpdateDropdownConfigRequest Configuration to update
15206
+ * @param {*} [options] Override http request option.
15207
+ * @throws {RequiredError}
15208
+ * @memberof DropdownRecommendationsApi
15209
+ */
15210
+ v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options) {
15211
+ return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsConfigPut(xStoreid, xStoresecret, dropdownRecommendationsServiceUpdateDropdownConfigRequest, options).then((request) => request(this.axios, this.basePath));
15212
+ }
15213
+ /**
15214
+ * Retrieve trending search categories, trending products, and popular brands for the dropdown
15215
+ * @summary Get Dropdown Recommendations
15216
+ * @param {string} xStoreid Store ID
15217
+ * @param {string} xStoresecret Store Secret
15218
+ * @param {string} [xUserId] User ID for personalization
15219
+ * @param {string} [xAnonId] Anonymous ID for personalization
15220
+ * @param {*} [options] Override http request option.
15221
+ * @throws {RequiredError}
15222
+ * @memberof DropdownRecommendationsApi
15223
+ */
15224
+ v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options) {
15225
+ return DropdownRecommendationsApiFp(this.configuration).v1DropdownRecommendationsGet(xStoreid, xStoresecret, xUserId, xAnonId, options).then((request) => request(this.axios, this.basePath));
15226
+ }
15227
+ }
14941
15228
  /**
14942
15229
  * ExternalAPINotificationsApi - axios parameter creator
14943
15230
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.52",
3
+ "version": "1.1.53",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file