@teemill/product-catalog 1.38.1 → 1.40.0

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
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.38.1
7
+ * The version of the OpenAPI document: 1.40.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -741,6 +741,45 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
741
741
  options: localVarRequestOptions,
742
742
  };
743
743
  }),
744
+ /**
745
+ * AI SEO optimises products by a set of given IDs.
746
+ * @summary AI SEO optimise products.
747
+ * @param {string} project What project it is
748
+ * @param {SeoOptimiseProductsRequest} [seoOptimiseProductsRequest] A set of product IDs to AI SEO optimise.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ seoOptimiseProducts: (project_1, seoOptimiseProductsRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimiseProductsRequest_1, ...args_1], void 0, function* (project, seoOptimiseProductsRequest, options = {}) {
753
+ // verify required parameter 'project' is not null or undefined
754
+ assertParamExists('seoOptimiseProducts', 'project', project);
755
+ const localVarPath = `/v1/catalog/products/ai-seo-optimise`;
756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
757
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
758
+ let baseOptions;
759
+ if (configuration) {
760
+ baseOptions = configuration.baseOptions;
761
+ }
762
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
763
+ const localVarHeaderParameter = {};
764
+ const localVarQueryParameter = {};
765
+ // authentication session-oauth required
766
+ // oauth required
767
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
768
+ // authentication api-key required
769
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
770
+ if (project !== undefined) {
771
+ localVarQueryParameter['project'] = project;
772
+ }
773
+ localVarHeaderParameter['Content-Type'] = 'application/json';
774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
776
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
777
+ localVarRequestOptions.data = serializeDataIfNeeded(seoOptimiseProductsRequest, localVarRequestOptions, configuration);
778
+ return {
779
+ url: toPathString(localVarUrlObj),
780
+ options: localVarRequestOptions,
781
+ };
782
+ }),
744
783
  /**
745
784
  * Updates a product by a given ID.
746
785
  * @summary Update product
@@ -924,6 +963,23 @@ export const ProductsApiFp = function (configuration) {
924
963
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
925
964
  });
926
965
  },
966
+ /**
967
+ * AI SEO optimises products by a set of given IDs.
968
+ * @summary AI SEO optimise products.
969
+ * @param {string} project What project it is
970
+ * @param {SeoOptimiseProductsRequest} [seoOptimiseProductsRequest] A set of product IDs to AI SEO optimise.
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ */
974
+ seoOptimiseProducts(project, seoOptimiseProductsRequest, options) {
975
+ return __awaiter(this, void 0, void 0, function* () {
976
+ var _a, _b, _c;
977
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimiseProducts(project, seoOptimiseProductsRequest, options);
978
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
979
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.seoOptimiseProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
980
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
981
+ });
982
+ },
927
983
  /**
928
984
  * Updates a product by a given ID.
929
985
  * @summary Update product
@@ -1018,6 +1074,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1018
1074
  listProducts(requestParameters, options) {
1019
1075
  return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
1020
1076
  },
1077
+ /**
1078
+ * AI SEO optimises products by a set of given IDs.
1079
+ * @summary AI SEO optimise products.
1080
+ * @param {ProductsApiSeoOptimiseProductsRequest} requestParameters Request parameters.
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ */
1084
+ seoOptimiseProducts(requestParameters, options) {
1085
+ return localVarFp.seoOptimiseProducts(requestParameters.project, requestParameters.seoOptimiseProductsRequest, options).then((request) => request(axios, basePath));
1086
+ },
1021
1087
  /**
1022
1088
  * Updates a product by a given ID.
1023
1089
  * @summary Update product
@@ -1102,6 +1168,17 @@ export class ProductsApi extends BaseAPI {
1102
1168
  listProducts(requestParameters, options) {
1103
1169
  return ProductsApiFp(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1104
1170
  }
1171
+ /**
1172
+ * AI SEO optimises products by a set of given IDs.
1173
+ * @summary AI SEO optimise products.
1174
+ * @param {ProductsApiSeoOptimiseProductsRequest} requestParameters Request parameters.
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ * @memberof ProductsApi
1178
+ */
1179
+ seoOptimiseProducts(requestParameters, options) {
1180
+ return ProductsApiFp(this.configuration).seoOptimiseProducts(requestParameters.project, requestParameters.seoOptimiseProductsRequest, options).then((request) => request(this.axios, this.basePath));
1181
+ }
1105
1182
  /**
1106
1183
  * Updates a product by a given ID.
1107
1184
  * @summary Update product
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.38.1
5
+ * The version of the OpenAPI document: 1.40.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.38.1
7
+ * The version of the OpenAPI document: 1.40.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.38.1
5
+ * The version of the OpenAPI document: 1.40.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.38.1
7
+ * The version of the OpenAPI document: 1.40.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.38.1
5
+ * The version of the OpenAPI document: 1.40.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.38.1
7
+ * The version of the OpenAPI document: 1.40.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,7 @@ export class Configuration {
20
20
  this.accessToken = param.accessToken;
21
21
  this.basePath = param.basePath;
22
22
  this.serverIndex = param.serverIndex;
23
- this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/1.38.1/typescript-axios" }) }, param.baseOptions);
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
24
24
  this.formDataCtor = param.formDataCtor;
25
25
  }
26
26
  /**
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.38.1
5
+ * The version of the OpenAPI document: 1.40.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.38.1
7
+ * The version of the OpenAPI document: 1.40.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.38.1
5
+ * The version of the OpenAPI document: 1.40.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.38.1
8
+ * The version of the OpenAPI document: 1.40.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.38.1
7
+ * The version of the OpenAPI document: 1.40.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.38.1",
3
+ "version": "1.40.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {