@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.
Files changed (78) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProductsApi.d.ts +2 -1
  4. package/dist/apis/ProductsApi.js +4 -1
  5. package/dist/apis/VariantsApi.d.ts +1 -1
  6. package/dist/apis/VariantsApi.js +1 -1
  7. package/dist/models/ApiError.d.ts +1 -1
  8. package/dist/models/ApiError.js +1 -1
  9. package/dist/models/Attribute.d.ts +1 -1
  10. package/dist/models/Attribute.js +1 -1
  11. package/dist/models/AttributeThumbnail.d.ts +1 -1
  12. package/dist/models/AttributeThumbnail.js +1 -1
  13. package/dist/models/CreateProductRequest.d.ts +14 -1
  14. package/dist/models/CreateProductRequest.js +6 -1
  15. package/dist/models/CreateProductRequestSeoMetadata.d.ts +31 -0
  16. package/dist/models/CreateProductRequestSeoMetadata.js +50 -0
  17. package/dist/models/CreateProductRequestVariantsInner.d.ts +1 -1
  18. package/dist/models/CreateProductRequestVariantsInner.js +1 -1
  19. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +1 -1
  20. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
  21. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +1 -1
  22. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
  23. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +1 -1
  24. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +1 -1
  25. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +1 -1
  26. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
  27. package/dist/models/Image.d.ts +1 -1
  28. package/dist/models/Image.js +1 -1
  29. package/dist/models/ImportProducts200Response.d.ts +1 -1
  30. package/dist/models/ImportProducts200Response.js +1 -1
  31. package/dist/models/Price.d.ts +1 -1
  32. package/dist/models/Price.js +1 -1
  33. package/dist/models/Product.d.ts +8 -1
  34. package/dist/models/Product.js +4 -1
  35. package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
  36. package/dist/models/ProductAdditionalFilesInner.js +1 -1
  37. package/dist/models/ProductsResponse.d.ts +1 -1
  38. package/dist/models/ProductsResponse.js +1 -1
  39. package/dist/models/SeoMetadata.d.ts +31 -0
  40. package/dist/models/SeoMetadata.js +50 -0
  41. package/dist/models/Stock.d.ts +1 -1
  42. package/dist/models/Stock.js +1 -1
  43. package/dist/models/Variant.d.ts +1 -1
  44. package/dist/models/Variant.js +1 -1
  45. package/dist/models/VariantProduct.d.ts +1 -1
  46. package/dist/models/VariantProduct.js +1 -1
  47. package/dist/models/VariantsResponse.d.ts +1 -1
  48. package/dist/models/VariantsResponse.js +1 -1
  49. package/dist/models/index.d.ts +2 -0
  50. package/dist/models/index.js +2 -0
  51. package/dist/runtime.d.ts +1 -1
  52. package/dist/runtime.js +1 -1
  53. package/package.json +1 -1
  54. package/src/apis/ProductsApi.ts +6 -1
  55. package/src/apis/VariantsApi.ts +1 -1
  56. package/src/models/ApiError.ts +1 -1
  57. package/src/models/Attribute.ts +1 -1
  58. package/src/models/AttributeThumbnail.ts +1 -1
  59. package/src/models/CreateProductRequest.ts +23 -1
  60. package/src/models/CreateProductRequestSeoMetadata.ts +65 -0
  61. package/src/models/CreateProductRequestVariantsInner.ts +1 -1
  62. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
  63. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
  64. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +1 -1
  65. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +1 -1
  66. package/src/models/Image.ts +1 -1
  67. package/src/models/ImportProducts200Response.ts +1 -1
  68. package/src/models/Price.ts +1 -1
  69. package/src/models/Product.ts +15 -1
  70. package/src/models/ProductAdditionalFilesInner.ts +1 -1
  71. package/src/models/ProductsResponse.ts +1 -1
  72. package/src/models/SeoMetadata.ts +65 -0
  73. package/src/models/Stock.ts +1 -1
  74. package/src/models/Variant.ts +1 -1
  75. package/src/models/VariantProduct.ts +1 -1
  76. package/src/models/VariantsResponse.ts +1 -1
  77. package/src/models/index.ts +2 -0
  78. package/src/runtime.ts +1 -1
@@ -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.SeoMetadataToJSON = exports.SeoMetadataFromJSONTyped = exports.SeoMetadataFromJSON = exports.instanceOfSeoMetadata = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SeoMetadata interface.
20
+ */
21
+ function instanceOfSeoMetadata(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSeoMetadata = instanceOfSeoMetadata;
26
+ function SeoMetadataFromJSON(json) {
27
+ return SeoMetadataFromJSONTyped(json, false);
28
+ }
29
+ exports.SeoMetadataFromJSON = SeoMetadataFromJSON;
30
+ function SeoMetadataFromJSONTyped(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.SeoMetadataFromJSONTyped = SeoMetadataFromJSONTyped;
39
+ function SeoMetadataToJSON(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.SeoMetadataToJSON = SeoMetadataToJSON;
@@ -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.6.7
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.6.7
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.6.7
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.6.7
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.6.7
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.6.7
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.6.7
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.6.7
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,6 +2,7 @@ export * from './ApiError';
2
2
  export * from './Attribute';
3
3
  export * from './AttributeThumbnail';
4
4
  export * from './CreateProductRequest';
5
+ export * from './CreateProductRequestSeoMetadata';
5
6
  export * from './CreateProductRequestVariantsInner';
6
7
  export * from './CreateProductRequestVariantsInnerApplicationsInner';
7
8
  export * from './CreateProductRequestVariantsInnerAttributesInner';
@@ -13,6 +14,7 @@ export * from './Price';
13
14
  export * from './Product';
14
15
  export * from './ProductAdditionalFilesInner';
15
16
  export * from './ProductsResponse';
17
+ export * from './SeoMetadata';
16
18
  export * from './Stock';
17
19
  export * from './Variant';
18
20
  export * from './VariantProduct';
@@ -20,6 +20,7 @@ __exportStar(require("./ApiError"), exports);
20
20
  __exportStar(require("./Attribute"), exports);
21
21
  __exportStar(require("./AttributeThumbnail"), exports);
22
22
  __exportStar(require("./CreateProductRequest"), exports);
23
+ __exportStar(require("./CreateProductRequestSeoMetadata"), exports);
23
24
  __exportStar(require("./CreateProductRequestVariantsInner"), exports);
24
25
  __exportStar(require("./CreateProductRequestVariantsInnerApplicationsInner"), exports);
25
26
  __exportStar(require("./CreateProductRequestVariantsInnerAttributesInner"), exports);
@@ -31,6 +32,7 @@ __exportStar(require("./Price"), exports);
31
32
  __exportStar(require("./Product"), exports);
32
33
  __exportStar(require("./ProductAdditionalFilesInner"), exports);
33
34
  __exportStar(require("./ProductsResponse"), exports);
35
+ __exportStar(require("./SeoMetadata"), exports);
34
36
  __exportStar(require("./Stock"), exports);
35
37
  __exportStar(require("./Variant"), exports);
36
38
  __exportStar(require("./VariantProduct"), exports);
package/dist/runtime.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.6.7
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/runtime.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.6.7
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.6.7",
3
+ "version": "1.8.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,6 +48,7 @@ export interface GetProductRequest {
48
48
  export interface GetProductsRequest {
49
49
  project: string;
50
50
  pageToken?: number;
51
+ search?: string;
51
52
  pageSize?: number;
52
53
  fields?: string;
53
54
  }
@@ -204,6 +205,10 @@ export class ProductsApi extends runtime.BaseAPI {
204
205
  queryParameters['pageToken'] = requestParameters.pageToken;
205
206
  }
206
207
 
208
+ if (requestParameters.search !== undefined) {
209
+ queryParameters['search'] = requestParameters.search;
210
+ }
211
+
207
212
  if (requestParameters.pageSize !== undefined) {
208
213
  queryParameters['pageSize'] = requestParameters.pageSize;
209
214
  }
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
17
+ import {
18
+ CreateProductRequestSeoMetadataFromJSON,
19
+ CreateProductRequestSeoMetadataFromJSONTyped,
20
+ CreateProductRequestSeoMetadataToJSON,
21
+ } from './CreateProductRequestSeoMetadata';
16
22
  import type { CreateProductRequestVariantsInner } from './CreateProductRequestVariantsInner';
17
23
  import {
18
24
  CreateProductRequestVariantsInnerFromJSON,
@@ -62,6 +68,12 @@ export interface CreateProductRequest {
62
68
  * @memberof CreateProductRequest
63
69
  */
64
70
  slug?: string;
71
+ /**
72
+ *
73
+ * @type {CreateProductRequestSeoMetadata}
74
+ * @memberof CreateProductRequest
75
+ */
76
+ seoMetadata?: CreateProductRequestSeoMetadata;
65
77
  /**
66
78
  * Additional product tags used for searching and filtering.
67
79
  * @type {Array<string>}
@@ -74,6 +86,12 @@ export interface CreateProductRequest {
74
86
  * @memberof CreateProductRequest
75
87
  */
76
88
  variants: Array<CreateProductRequestVariantsInner>;
89
+ /**
90
+ * Images to attach to the product. For example, photos of models using/wearing the product.
91
+ * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
92
+ * @memberof CreateProductRequest
93
+ */
94
+ images?: Array<CreateProductRequestVariantsInnerImagesInner>;
77
95
  /**
78
96
  * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
79
97
  * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
@@ -108,8 +126,10 @@ export function CreateProductRequestFromJSONTyped(json: any, ignoreDiscriminator
108
126
  'description': !exists(json, 'description') ? undefined : json['description'],
109
127
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
110
128
  'slug': !exists(json, 'slug') ? undefined : json['slug'],
129
+ 'seoMetadata': !exists(json, 'seoMetadata') ? undefined : CreateProductRequestSeoMetadataFromJSON(json['seoMetadata']),
111
130
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
112
131
  'variants': ((json['variants'] as Array<any>).map(CreateProductRequestVariantsInnerFromJSON)),
132
+ 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
113
133
  'additionalFiles': !exists(json, 'additionalFiles') ? undefined : ((json['additionalFiles'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
114
134
  };
115
135
  }
@@ -128,8 +148,10 @@ export function CreateProductRequestToJSON(value?: CreateProductRequest | null):
128
148
  'description': value.description,
129
149
  'enabled': value.enabled,
130
150
  'slug': value.slug,
151
+ 'seoMetadata': CreateProductRequestSeoMetadataToJSON(value.seoMetadata),
131
152
  'tags': value.tags,
132
153
  'variants': ((value.variants as Array<any>).map(CreateProductRequestVariantsInnerToJSON)),
154
+ 'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
133
155
  'additionalFiles': value.additionalFiles === undefined ? undefined : ((value.additionalFiles as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
134
156
  };
135
157
  }
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.8.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateProductRequestSeoMetadata
20
+ */
21
+ export interface CreateProductRequestSeoMetadata {
22
+ /**
23
+ * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
24
+ * @type {string}
25
+ * @memberof CreateProductRequestSeoMetadata
26
+ */
27
+ title?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateProductRequestSeoMetadata interface.
32
+ */
33
+ export function instanceOfCreateProductRequestSeoMetadata(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function CreateProductRequestSeoMetadataFromJSON(json: any): CreateProductRequestSeoMetadata {
40
+ return CreateProductRequestSeoMetadataFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function CreateProductRequestSeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestSeoMetadata {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'title': !exists(json, 'title') ? undefined : json['title'],
50
+ };
51
+ }
52
+
53
+ export function CreateProductRequestSeoMetadataToJSON(value?: CreateProductRequestSeoMetadata | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'title': value.title,
63
+ };
64
+ }
65
+
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,6 +25,12 @@ import {
25
25
  ProductAdditionalFilesInnerFromJSONTyped,
26
26
  ProductAdditionalFilesInnerToJSON,
27
27
  } from './ProductAdditionalFilesInner';
28
+ import type { SeoMetadata } from './SeoMetadata';
29
+ import {
30
+ SeoMetadataFromJSON,
31
+ SeoMetadataFromJSONTyped,
32
+ SeoMetadataToJSON,
33
+ } from './SeoMetadata';
28
34
  import type { Variant } from './Variant';
29
35
  import {
30
36
  VariantFromJSON,
@@ -68,6 +74,12 @@ export interface Product {
68
74
  * @memberof Product
69
75
  */
70
76
  readonly slug?: string;
77
+ /**
78
+ *
79
+ * @type {SeoMetadata}
80
+ * @memberof Product
81
+ */
82
+ seoMetadata?: SeoMetadata;
71
83
  /**
72
84
  *
73
85
  * @type {Array<string>}
@@ -138,6 +150,7 @@ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
138
150
  'title': json['title'],
139
151
  'description': json['description'],
140
152
  'slug': !exists(json, 'slug') ? undefined : json['slug'],
153
+ 'seoMetadata': !exists(json, 'seoMetadata') ? undefined : SeoMetadataFromJSON(json['seoMetadata']),
141
154
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
142
155
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
143
156
  'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
@@ -161,6 +174,7 @@ export function ProductToJSON(value?: Product | null): any {
161
174
  'ref': value.ref,
162
175
  'title': value.title,
163
176
  'description': value.description,
177
+ 'seoMetadata': SeoMetadataToJSON(value.seoMetadata),
164
178
  'tags': value.tags,
165
179
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
166
180
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.8.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * SEO metadata for the product
18
+ * @export
19
+ * @interface SeoMetadata
20
+ */
21
+ export interface SeoMetadata {
22
+ /**
23
+ * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
24
+ * @type {string}
25
+ * @memberof SeoMetadata
26
+ */
27
+ title?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SeoMetadata interface.
32
+ */
33
+ export function instanceOfSeoMetadata(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function SeoMetadataFromJSON(json: any): SeoMetadata {
40
+ return SeoMetadataFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function SeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeoMetadata {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'title': !exists(json, 'title') ? undefined : json['title'],
50
+ };
51
+ }
52
+
53
+ export function SeoMetadataToJSON(value?: SeoMetadata | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'title': value.title,
63
+ };
64
+ }
65
+
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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 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.6.7
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).