@teemill/product-catalog 1.6.7 → 1.8.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/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +2 -1
- package/dist/apis/ProductsApi.js +4 -1
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +1 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +1 -1
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +1 -1
- package/dist/models/CreateProductRequest.d.ts +14 -1
- package/dist/models/CreateProductRequest.js +6 -1
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +31 -0
- package/dist/models/CreateProductRequestSeoMetadata.js +50 -0
- package/dist/models/CreateProductRequestVariantsInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/ImportProducts200Response.d.ts +1 -1
- package/dist/models/ImportProducts200Response.js +1 -1
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +1 -1
- package/dist/models/Product.d.ts +8 -1
- package/dist/models/Product.js +4 -1
- package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
- package/dist/models/ProductAdditionalFilesInner.js +1 -1
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +1 -1
- package/dist/models/SeoMetadata.d.ts +31 -0
- package/dist/models/SeoMetadata.js +50 -0
- package/dist/models/Stock.d.ts +1 -1
- package/dist/models/Stock.js +1 -1
- package/dist/models/Variant.d.ts +1 -1
- package/dist/models/Variant.js +1 -1
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +1 -1
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +6 -1
- package/src/apis/VariantsApi.ts +1 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeThumbnail.ts +1 -1
- package/src/models/CreateProductRequest.ts +23 -1
- package/src/models/CreateProductRequestSeoMetadata.ts +65 -0
- package/src/models/CreateProductRequestVariantsInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +1 -1
- package/src/models/Image.ts +1 -1
- package/src/models/ImportProducts200Response.ts +1 -1
- package/src/models/Price.ts +1 -1
- package/src/models/Product.ts +15 -1
- package/src/models/ProductAdditionalFilesInner.ts +1 -1
- package/src/models/ProductsResponse.ts +1 -1
- package/src/models/SeoMetadata.ts +65 -0
- package/src/models/Stock.ts +1 -1
- package/src/models/Variant.ts +1 -1
- package/src/models/VariantProduct.ts +1 -1
- package/src/models/VariantsResponse.ts +1 -1
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ src/models/ApiError.ts
|
|
|
10
10
|
src/models/Attribute.ts
|
|
11
11
|
src/models/AttributeThumbnail.ts
|
|
12
12
|
src/models/CreateProductRequest.ts
|
|
13
|
+
src/models/CreateProductRequestSeoMetadata.ts
|
|
13
14
|
src/models/CreateProductRequestVariantsInner.ts
|
|
14
15
|
src/models/CreateProductRequestVariantsInnerApplicationsInner.ts
|
|
15
16
|
src/models/CreateProductRequestVariantsInnerAttributesInner.ts
|
|
@@ -21,6 +22,7 @@ src/models/Price.ts
|
|
|
21
22
|
src/models/Product.ts
|
|
22
23
|
src/models/ProductAdditionalFilesInner.ts
|
|
23
24
|
src/models/ProductsResponse.ts
|
|
25
|
+
src/models/SeoMetadata.ts
|
|
24
26
|
src/models/Stock.ts
|
|
25
27
|
src/models/Variant.ts
|
|
26
28
|
src/models/VariantProduct.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/product-catalog@1.
|
|
1
|
+
## @teemill/product-catalog@1.8.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/product-catalog@1.
|
|
39
|
+
npm install @teemill/product-catalog@1.8.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,6 +23,7 @@ export interface GetProductRequest {
|
|
|
23
23
|
export interface GetProductsRequest {
|
|
24
24
|
project: string;
|
|
25
25
|
pageToken?: number;
|
|
26
|
+
search?: string;
|
|
26
27
|
pageSize?: number;
|
|
27
28
|
fields?: string;
|
|
28
29
|
}
|
package/dist/apis/ProductsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -240,6 +240,9 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
240
240
|
if (requestParameters.pageToken !== undefined) {
|
|
241
241
|
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
242
242
|
}
|
|
243
|
+
if (requestParameters.search !== undefined) {
|
|
244
|
+
queryParameters['search'] = requestParameters.search;
|
|
245
|
+
}
|
|
243
246
|
if (requestParameters.pageSize !== undefined) {
|
|
244
247
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
245
248
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/VariantsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Attribute.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
|
|
12
13
|
import type { CreateProductRequestVariantsInner } from './CreateProductRequestVariantsInner';
|
|
13
14
|
import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface CreateProductRequest {
|
|
|
47
48
|
* @memberof CreateProductRequest
|
|
48
49
|
*/
|
|
49
50
|
slug?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {CreateProductRequestSeoMetadata}
|
|
54
|
+
* @memberof CreateProductRequest
|
|
55
|
+
*/
|
|
56
|
+
seoMetadata?: CreateProductRequestSeoMetadata;
|
|
50
57
|
/**
|
|
51
58
|
* Additional product tags used for searching and filtering.
|
|
52
59
|
* @type {Array<string>}
|
|
@@ -59,6 +66,12 @@ export interface CreateProductRequest {
|
|
|
59
66
|
* @memberof CreateProductRequest
|
|
60
67
|
*/
|
|
61
68
|
variants: Array<CreateProductRequestVariantsInner>;
|
|
69
|
+
/**
|
|
70
|
+
* Images to attach to the product. For example, photos of models using/wearing the product.
|
|
71
|
+
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
72
|
+
* @memberof CreateProductRequest
|
|
73
|
+
*/
|
|
74
|
+
images?: Array<CreateProductRequestVariantsInnerImagesInner>;
|
|
62
75
|
/**
|
|
63
76
|
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
64
77
|
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateProductRequestToJSON = exports.CreateProductRequestFromJSONTyped = exports.CreateProductRequestFromJSON = exports.instanceOfCreateProductRequest = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var CreateProductRequestSeoMetadata_1 = require("./CreateProductRequestSeoMetadata");
|
|
18
19
|
var CreateProductRequestVariantsInner_1 = require("./CreateProductRequestVariantsInner");
|
|
19
20
|
var CreateProductRequestVariantsInnerImagesInner_1 = require("./CreateProductRequestVariantsInnerImagesInner");
|
|
20
21
|
/**
|
|
@@ -41,8 +42,10 @@ function CreateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
42
43
|
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
|
43
44
|
'slug': !(0, runtime_1.exists)(json, 'slug') ? undefined : json['slug'],
|
|
45
|
+
'seoMetadata': !(0, runtime_1.exists)(json, 'seoMetadata') ? undefined : (0, CreateProductRequestSeoMetadata_1.CreateProductRequestSeoMetadataFromJSON)(json['seoMetadata']),
|
|
44
46
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
45
47
|
'variants': (json['variants'].map(CreateProductRequestVariantsInner_1.CreateProductRequestVariantsInnerFromJSON)),
|
|
48
|
+
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (json['images'].map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
46
49
|
'additionalFiles': !(0, runtime_1.exists)(json, 'additionalFiles') ? undefined : (json['additionalFiles'].map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
47
50
|
};
|
|
48
51
|
}
|
|
@@ -60,8 +63,10 @@ function CreateProductRequestToJSON(value) {
|
|
|
60
63
|
'description': value.description,
|
|
61
64
|
'enabled': value.enabled,
|
|
62
65
|
'slug': value.slug,
|
|
66
|
+
'seoMetadata': (0, CreateProductRequestSeoMetadata_1.CreateProductRequestSeoMetadataToJSON)(value.seoMetadata),
|
|
63
67
|
'tags': value.tags,
|
|
64
68
|
'variants': (value.variants.map(CreateProductRequestVariantsInner_1.CreateProductRequestVariantsInnerToJSON)),
|
|
69
|
+
'images': value.images === undefined ? undefined : (value.images.map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
65
70
|
'additionalFiles': value.additionalFiles === undefined ? undefined : (value.additionalFiles.map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
66
71
|
};
|
|
67
72
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.8.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateProductRequestSeoMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestSeoMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestSeoMetadata
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateProductRequestSeoMetadata interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateProductRequestSeoMetadata(value: object): boolean;
|
|
29
|
+
export declare function CreateProductRequestSeoMetadataFromJSON(json: any): CreateProductRequestSeoMetadata;
|
|
30
|
+
export declare function CreateProductRequestSeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestSeoMetadata;
|
|
31
|
+
export declare function CreateProductRequestSeoMetadataToJSON(value?: CreateProductRequestSeoMetadata | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage 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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.8.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateProductRequestSeoMetadataToJSON = exports.CreateProductRequestSeoMetadataFromJSONTyped = exports.CreateProductRequestSeoMetadataFromJSON = exports.instanceOfCreateProductRequestSeoMetadata = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateProductRequestSeoMetadata interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCreateProductRequestSeoMetadata(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateProductRequestSeoMetadata = instanceOfCreateProductRequestSeoMetadata;
|
|
26
|
+
function CreateProductRequestSeoMetadataFromJSON(json) {
|
|
27
|
+
return CreateProductRequestSeoMetadataFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateProductRequestSeoMetadataFromJSON = CreateProductRequestSeoMetadataFromJSON;
|
|
30
|
+
function CreateProductRequestSeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.CreateProductRequestSeoMetadataFromJSONTyped = CreateProductRequestSeoMetadataFromJSONTyped;
|
|
39
|
+
function CreateProductRequestSeoMetadataToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'title': value.title,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.CreateProductRequestSeoMetadataToJSON = CreateProductRequestSeoMetadataToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Image.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Image.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Product.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Image } from './Image';
|
|
13
13
|
import type { ProductAdditionalFilesInner } from './ProductAdditionalFilesInner';
|
|
14
|
+
import type { SeoMetadata } from './SeoMetadata';
|
|
14
15
|
import type { Variant } from './Variant';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -48,6 +49,12 @@ export interface Product {
|
|
|
48
49
|
* @memberof Product
|
|
49
50
|
*/
|
|
50
51
|
readonly slug?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {SeoMetadata}
|
|
55
|
+
* @memberof Product
|
|
56
|
+
*/
|
|
57
|
+
seoMetadata?: SeoMetadata;
|
|
51
58
|
/**
|
|
52
59
|
*
|
|
53
60
|
* @type {Array<string>}
|
package/dist/models/Product.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,6 +17,7 @@ exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON =
|
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var Image_1 = require("./Image");
|
|
19
19
|
var ProductAdditionalFilesInner_1 = require("./ProductAdditionalFilesInner");
|
|
20
|
+
var SeoMetadata_1 = require("./SeoMetadata");
|
|
20
21
|
var Variant_1 = require("./Variant");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Product interface.
|
|
@@ -42,6 +43,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'title': json['title'],
|
|
43
44
|
'description': json['description'],
|
|
44
45
|
'slug': !(0, runtime_1.exists)(json, 'slug') ? undefined : json['slug'],
|
|
46
|
+
'seoMetadata': !(0, runtime_1.exists)(json, 'seoMetadata') ? undefined : (0, SeoMetadata_1.SeoMetadataFromJSON)(json['seoMetadata']),
|
|
45
47
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
46
48
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
47
49
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -64,6 +66,7 @@ function ProductToJSON(value) {
|
|
|
64
66
|
'ref': value.ref,
|
|
65
67
|
'title': value.title,
|
|
66
68
|
'description': value.description,
|
|
69
|
+
'seoMetadata': (0, SeoMetadata_1.SeoMetadataToJSON)(value.seoMetadata),
|
|
67
70
|
'tags': value.tags,
|
|
68
71
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
69
72
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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.8.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage 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.8.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.8.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* SEO metadata for the product
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SeoMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface SeoMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SeoMetadata
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SeoMetadata interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSeoMetadata(value: object): boolean;
|
|
29
|
+
export declare function SeoMetadataFromJSON(json: any): SeoMetadata;
|
|
30
|
+
export declare function SeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeoMetadata;
|
|
31
|
+
export declare function SeoMetadataToJSON(value?: SeoMetadata | null): any;
|