@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/README.md +2 -2
- package/api.ts +343 -79
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -3
- package/dist/api.d.ts +291 -79
- package/dist/api.js +78 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +291 -79
- package/dist/esm/api.js +78 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.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.
|
|
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).
|
|
@@ -748,6 +748,45 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
748
748
|
options: localVarRequestOptions,
|
|
749
749
|
};
|
|
750
750
|
}),
|
|
751
|
+
/**
|
|
752
|
+
* AI SEO optimises products by a set of given IDs.
|
|
753
|
+
* @summary AI SEO optimise products.
|
|
754
|
+
* @param {string} project What project it is
|
|
755
|
+
* @param {SeoOptimiseProductsRequest} [seoOptimiseProductsRequest] A set of product IDs to AI SEO optimise.
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
*/
|
|
759
|
+
seoOptimiseProducts: (project_1, seoOptimiseProductsRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimiseProductsRequest_1, ...args_1], void 0, function* (project, seoOptimiseProductsRequest, options = {}) {
|
|
760
|
+
// verify required parameter 'project' is not null or undefined
|
|
761
|
+
(0, common_1.assertParamExists)('seoOptimiseProducts', 'project', project);
|
|
762
|
+
const localVarPath = `/v1/catalog/products/ai-seo-optimise`;
|
|
763
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
764
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
765
|
+
let baseOptions;
|
|
766
|
+
if (configuration) {
|
|
767
|
+
baseOptions = configuration.baseOptions;
|
|
768
|
+
}
|
|
769
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
770
|
+
const localVarHeaderParameter = {};
|
|
771
|
+
const localVarQueryParameter = {};
|
|
772
|
+
// authentication session-oauth required
|
|
773
|
+
// oauth required
|
|
774
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
775
|
+
// authentication api-key required
|
|
776
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
777
|
+
if (project !== undefined) {
|
|
778
|
+
localVarQueryParameter['project'] = project;
|
|
779
|
+
}
|
|
780
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
781
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
782
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
783
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
784
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seoOptimiseProductsRequest, localVarRequestOptions, configuration);
|
|
785
|
+
return {
|
|
786
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
787
|
+
options: localVarRequestOptions,
|
|
788
|
+
};
|
|
789
|
+
}),
|
|
751
790
|
/**
|
|
752
791
|
* Updates a product by a given ID.
|
|
753
792
|
* @summary Update product
|
|
@@ -932,6 +971,23 @@ const ProductsApiFp = function (configuration) {
|
|
|
932
971
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
933
972
|
});
|
|
934
973
|
},
|
|
974
|
+
/**
|
|
975
|
+
* AI SEO optimises products by a set of given IDs.
|
|
976
|
+
* @summary AI SEO optimise products.
|
|
977
|
+
* @param {string} project What project it is
|
|
978
|
+
* @param {SeoOptimiseProductsRequest} [seoOptimiseProductsRequest] A set of product IDs to AI SEO optimise.
|
|
979
|
+
* @param {*} [options] Override http request option.
|
|
980
|
+
* @throws {RequiredError}
|
|
981
|
+
*/
|
|
982
|
+
seoOptimiseProducts(project, seoOptimiseProductsRequest, options) {
|
|
983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
984
|
+
var _a, _b, _c;
|
|
985
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimiseProducts(project, seoOptimiseProductsRequest, options);
|
|
986
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
987
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.seoOptimiseProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
988
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
989
|
+
});
|
|
990
|
+
},
|
|
935
991
|
/**
|
|
936
992
|
* Updates a product by a given ID.
|
|
937
993
|
* @summary Update product
|
|
@@ -1027,6 +1083,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1027
1083
|
listProducts(requestParameters, options) {
|
|
1028
1084
|
return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1029
1085
|
},
|
|
1086
|
+
/**
|
|
1087
|
+
* AI SEO optimises products by a set of given IDs.
|
|
1088
|
+
* @summary AI SEO optimise products.
|
|
1089
|
+
* @param {ProductsApiSeoOptimiseProductsRequest} requestParameters Request parameters.
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
*/
|
|
1093
|
+
seoOptimiseProducts(requestParameters, options) {
|
|
1094
|
+
return localVarFp.seoOptimiseProducts(requestParameters.project, requestParameters.seoOptimiseProductsRequest, options).then((request) => request(axios, basePath));
|
|
1095
|
+
},
|
|
1030
1096
|
/**
|
|
1031
1097
|
* Updates a product by a given ID.
|
|
1032
1098
|
* @summary Update product
|
|
@@ -1112,6 +1178,17 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
1112
1178
|
listProducts(requestParameters, options) {
|
|
1113
1179
|
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1114
1180
|
}
|
|
1181
|
+
/**
|
|
1182
|
+
* AI SEO optimises products by a set of given IDs.
|
|
1183
|
+
* @summary AI SEO optimise products.
|
|
1184
|
+
* @param {ProductsApiSeoOptimiseProductsRequest} requestParameters Request parameters.
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
* @memberof ProductsApi
|
|
1188
|
+
*/
|
|
1189
|
+
seoOptimiseProducts(requestParameters, options) {
|
|
1190
|
+
return (0, exports.ProductsApiFp)(this.configuration).seoOptimiseProducts(requestParameters.project, requestParameters.seoOptimiseProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1191
|
+
}
|
|
1115
1192
|
/**
|
|
1116
1193
|
* Updates a product by a given ID.
|
|
1117
1194
|
* @summary Update product
|
package/dist/base.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.
|
|
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/base.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.
|
|
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/dist/common.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.
|
|
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
|
|
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>;
|
package/dist/common.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.
|
|
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/dist/configuration.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.
|
|
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/configuration.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.
|
|
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).
|
|
@@ -23,7 +23,7 @@ class Configuration {
|
|
|
23
23
|
this.accessToken = param.accessToken;
|
|
24
24
|
this.basePath = param.basePath;
|
|
25
25
|
this.serverIndex = param.serverIndex;
|
|
26
|
-
this.baseOptions = Object.assign({ headers: Object.assign(
|
|
26
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
27
27
|
this.formDataCtor = param.formDataCtor;
|
|
28
28
|
}
|
|
29
29
|
/**
|