@teemill/product-catalog 1.9.1 → 1.11.1

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 (160) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProductsApi.d.ts +15 -1
  5. package/dist/apis/ProductsApi.js +226 -355
  6. package/dist/apis/VariantsApi.d.ts +1 -1
  7. package/dist/apis/VariantsApi.js +83 -187
  8. package/dist/esm/apis/ProductsApi.d.ts +107 -0
  9. package/dist/esm/apis/ProductsApi.js +300 -0
  10. package/dist/esm/apis/VariantsApi.d.ts +50 -0
  11. package/dist/esm/apis/VariantsApi.js +127 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +4 -0
  14. package/dist/esm/index.d.ts +3 -0
  15. package/dist/esm/index.js +5 -0
  16. package/dist/esm/models/ApiError.d.ts +37 -0
  17. package/dist/esm/models/ApiError.js +42 -0
  18. package/dist/esm/models/Attribute.d.ts +50 -0
  19. package/dist/esm/models/Attribute.js +49 -0
  20. package/dist/esm/models/AttributeThumbnail.d.ts +46 -0
  21. package/dist/esm/models/AttributeThumbnail.js +48 -0
  22. package/dist/esm/models/CreateProductRequest.d.ts +88 -0
  23. package/dist/esm/models/CreateProductRequest.js +63 -0
  24. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +31 -0
  25. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +43 -0
  26. package/dist/esm/models/CreateProductRequestImagesInner.d.ts +31 -0
  27. package/dist/esm/models/CreateProductRequestImagesInner.js +38 -0
  28. package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +31 -0
  29. package/dist/esm/models/CreateProductRequestSeoMetadata.js +38 -0
  30. package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +59 -0
  31. package/dist/esm/models/CreateProductRequestVariantsInner.js +57 -0
  32. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +63 -0
  33. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +67 -0
  34. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +37 -0
  35. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +46 -0
  36. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +31 -0
  37. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +43 -0
  38. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +37 -0
  39. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +46 -0
  40. package/dist/esm/models/CreateProductVariant.d.ts +59 -0
  41. package/dist/esm/models/CreateProductVariant.js +54 -0
  42. package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +54 -0
  43. package/dist/esm/models/CreateProductVariantApplicationsInner.js +58 -0
  44. package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +37 -0
  45. package/dist/esm/models/CreateProductVariantAttributesInner.js +44 -0
  46. package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +37 -0
  47. package/dist/esm/models/CreateProductVariantRetailPrice.js +44 -0
  48. package/dist/esm/models/Image.d.ts +67 -0
  49. package/dist/esm/models/Image.js +50 -0
  50. package/dist/esm/models/ImportProducts200Response.d.ts +31 -0
  51. package/dist/esm/models/ImportProducts200Response.js +38 -0
  52. package/dist/esm/models/ModelFile.d.ts +31 -0
  53. package/dist/esm/models/ModelFile.js +38 -0
  54. package/dist/esm/models/Price.d.ts +37 -0
  55. package/dist/esm/models/Price.js +40 -0
  56. package/dist/esm/models/Product.d.ts +113 -0
  57. package/dist/esm/models/Product.js +71 -0
  58. package/dist/esm/models/ProductAdditionalFilesInner.d.ts +37 -0
  59. package/dist/esm/models/ProductAdditionalFilesInner.js +40 -0
  60. package/dist/esm/models/ProductsResponse.d.ts +38 -0
  61. package/dist/esm/models/ProductsResponse.js +41 -0
  62. package/dist/esm/models/SeoMetadata.d.ts +31 -0
  63. package/dist/esm/models/SeoMetadata.js +38 -0
  64. package/dist/esm/models/Stock.d.ts +31 -0
  65. package/dist/esm/models/Stock.js +38 -0
  66. package/dist/esm/models/UpdateProductRequest.d.ts +87 -0
  67. package/dist/esm/models/UpdateProductRequest.js +58 -0
  68. package/dist/esm/models/Variant.d.ts +114 -0
  69. package/dist/esm/models/Variant.js +71 -0
  70. package/dist/esm/models/VariantProduct.d.ts +37 -0
  71. package/dist/esm/models/VariantProduct.js +40 -0
  72. package/dist/esm/models/VariantsResponse.d.ts +38 -0
  73. package/dist/esm/models/VariantsResponse.js +41 -0
  74. package/dist/esm/models/index.d.ts +23 -0
  75. package/dist/esm/models/index.js +25 -0
  76. package/dist/esm/runtime.d.ts +187 -0
  77. package/dist/esm/runtime.js +333 -0
  78. package/dist/models/ApiError.d.ts +1 -1
  79. package/dist/models/ApiError.js +1 -1
  80. package/dist/models/Attribute.d.ts +1 -1
  81. package/dist/models/Attribute.js +2 -2
  82. package/dist/models/AttributeThumbnail.d.ts +1 -1
  83. package/dist/models/AttributeThumbnail.js +1 -1
  84. package/dist/models/CreateProductRequest.d.ts +1 -1
  85. package/dist/models/CreateProductRequest.js +4 -4
  86. package/dist/models/CreateProductRequestAdditionalFilesInner.js +2 -2
  87. package/dist/models/CreateProductRequestImagesInner.d.ts +1 -1
  88. package/dist/models/CreateProductRequestImagesInner.js +1 -1
  89. package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
  90. package/dist/models/CreateProductRequestSeoMetadata.js +1 -1
  91. package/dist/models/CreateProductRequestVariantsInner.js +6 -6
  92. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
  93. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
  94. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +2 -2
  95. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
  96. package/dist/models/CreateProductVariant.d.ts +1 -1
  97. package/dist/models/CreateProductVariant.js +5 -5
  98. package/dist/models/CreateProductVariantApplicationsInner.d.ts +2 -11
  99. package/dist/models/CreateProductVariantApplicationsInner.js +2 -10
  100. package/dist/models/CreateProductVariantAttributesInner.d.ts +1 -1
  101. package/dist/models/CreateProductVariantAttributesInner.js +1 -1
  102. package/dist/models/CreateProductVariantRetailPrice.d.ts +1 -1
  103. package/dist/models/CreateProductVariantRetailPrice.js +1 -1
  104. package/dist/models/Image.d.ts +1 -1
  105. package/dist/models/Image.js +1 -1
  106. package/dist/models/ImportProducts200Response.d.ts +1 -1
  107. package/dist/models/ImportProducts200Response.js +1 -1
  108. package/dist/models/ModelFile.d.ts +1 -1
  109. package/dist/models/ModelFile.js +1 -1
  110. package/dist/models/Price.d.ts +1 -1
  111. package/dist/models/Price.js +1 -1
  112. package/dist/models/Product.d.ts +2 -2
  113. package/dist/models/Product.js +5 -5
  114. package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
  115. package/dist/models/ProductAdditionalFilesInner.js +1 -1
  116. package/dist/models/ProductsResponse.d.ts +1 -1
  117. package/dist/models/ProductsResponse.js +2 -2
  118. package/dist/models/SeoMetadata.d.ts +1 -1
  119. package/dist/models/SeoMetadata.js +1 -1
  120. package/dist/models/Stock.d.ts +1 -1
  121. package/dist/models/Stock.js +1 -1
  122. package/dist/models/UpdateProductRequest.d.ts +1 -1
  123. package/dist/models/UpdateProductRequest.js +3 -3
  124. package/dist/models/Variant.d.ts +2 -2
  125. package/dist/models/Variant.js +6 -6
  126. package/dist/models/VariantProduct.d.ts +1 -1
  127. package/dist/models/VariantProduct.js +1 -1
  128. package/dist/models/VariantsResponse.d.ts +1 -1
  129. package/dist/models/VariantsResponse.js +2 -2
  130. package/dist/runtime.d.ts +1 -1
  131. package/dist/runtime.js +223 -439
  132. package/package.json +4 -2
  133. package/src/apis/ProductsApi.ts +62 -1
  134. package/src/apis/VariantsApi.ts +1 -1
  135. package/src/models/ApiError.ts +1 -1
  136. package/src/models/Attribute.ts +1 -1
  137. package/src/models/AttributeThumbnail.ts +1 -1
  138. package/src/models/CreateProductRequest.ts +1 -1
  139. package/src/models/CreateProductRequestImagesInner.ts +1 -1
  140. package/src/models/CreateProductRequestSeoMetadata.ts +1 -1
  141. package/src/models/CreateProductVariant.ts +1 -1
  142. package/src/models/CreateProductVariantApplicationsInner.ts +2 -12
  143. package/src/models/CreateProductVariantAttributesInner.ts +1 -1
  144. package/src/models/CreateProductVariantRetailPrice.ts +1 -1
  145. package/src/models/Image.ts +1 -1
  146. package/src/models/ImportProducts200Response.ts +1 -1
  147. package/src/models/ModelFile.ts +1 -1
  148. package/src/models/Price.ts +1 -1
  149. package/src/models/Product.ts +2 -2
  150. package/src/models/ProductAdditionalFilesInner.ts +1 -1
  151. package/src/models/ProductsResponse.ts +1 -1
  152. package/src/models/SeoMetadata.ts +1 -1
  153. package/src/models/Stock.ts +1 -1
  154. package/src/models/UpdateProductRequest.ts +1 -1
  155. package/src/models/Variant.ts +2 -2
  156. package/src/models/VariantProduct.ts +1 -1
  157. package/src/models/VariantsResponse.ts +1 -1
  158. package/src/runtime.ts +1 -1
  159. package/tsconfig.esm.json +7 -0
  160. package/tsconfig.json +2 -2
@@ -0,0 +1,37 @@
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.11.1
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 ProductAdditionalFilesInner
16
+ */
17
+ export interface ProductAdditionalFilesInner {
18
+ /**
19
+ * Unique object identifier
20
+ * @type {string}
21
+ * @memberof ProductAdditionalFilesInner
22
+ */
23
+ id?: string;
24
+ /**
25
+ * File URL
26
+ * @type {string}
27
+ * @memberof ProductAdditionalFilesInner
28
+ */
29
+ src?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ProductAdditionalFilesInner interface.
33
+ */
34
+ export declare function instanceOfProductAdditionalFilesInner(value: object): boolean;
35
+ export declare function ProductAdditionalFilesInnerFromJSON(json: any): ProductAdditionalFilesInner;
36
+ export declare function ProductAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAdditionalFilesInner;
37
+ export declare function ProductAdditionalFilesInnerToJSON(value?: ProductAdditionalFilesInner | null): any;
@@ -0,0 +1,40 @@
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.11.1
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
+ * Check if a given object implements the ProductAdditionalFilesInner interface.
16
+ */
17
+ export function instanceOfProductAdditionalFilesInner(value) {
18
+ return true;
19
+ }
20
+ export function ProductAdditionalFilesInnerFromJSON(json) {
21
+ return ProductAdditionalFilesInnerFromJSONTyped(json, false);
22
+ }
23
+ export function ProductAdditionalFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'src': json['src'] == null ? undefined : json['src'],
30
+ };
31
+ }
32
+ export function ProductAdditionalFilesInnerToJSON(value) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {
37
+ 'id': value['id'],
38
+ 'src': value['src'],
39
+ };
40
+ }
@@ -0,0 +1,38 @@
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.11.1
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
+ import type { Product } from './Product';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductsResponse
17
+ */
18
+ export interface ProductsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Product>}
22
+ * @memberof ProductsResponse
23
+ */
24
+ products?: Array<Product>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ProductsResponse
29
+ */
30
+ nextPageToken?: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ProductsResponse interface.
34
+ */
35
+ export declare function instanceOfProductsResponse(value: object): boolean;
36
+ export declare function ProductsResponseFromJSON(json: any): ProductsResponse;
37
+ export declare function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse;
38
+ export declare function ProductsResponseToJSON(value?: ProductsResponse | null): any;
@@ -0,0 +1,41 @@
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.11.1
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
+ import { ProductFromJSON, ProductToJSON, } from './Product';
15
+ /**
16
+ * Check if a given object implements the ProductsResponse interface.
17
+ */
18
+ export function instanceOfProductsResponse(value) {
19
+ return true;
20
+ }
21
+ export function ProductsResponseFromJSON(json) {
22
+ return ProductsResponseFromJSONTyped(json, false);
23
+ }
24
+ export function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'products': json['products'] == null ? undefined : (json['products'].map(ProductFromJSON)),
30
+ 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
31
+ };
32
+ }
33
+ export function ProductsResponseToJSON(value) {
34
+ if (value == null) {
35
+ return value;
36
+ }
37
+ return {
38
+ 'products': value['products'] == null ? undefined : (value['products'].map(ProductToJSON)),
39
+ 'nextPageToken': value['nextPageToken'],
40
+ };
41
+ }
@@ -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.11.1
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;
@@ -0,0 +1,38 @@
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.11.1
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
+ * Check if a given object implements the SeoMetadata interface.
16
+ */
17
+ export function instanceOfSeoMetadata(value) {
18
+ return true;
19
+ }
20
+ export function SeoMetadataFromJSON(json) {
21
+ return SeoMetadataFromJSONTyped(json, false);
22
+ }
23
+ export function SeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'title': json['title'] == null ? undefined : json['title'],
29
+ };
30
+ }
31
+ export function SeoMetadataToJSON(value) {
32
+ if (value == null) {
33
+ return value;
34
+ }
35
+ return {
36
+ 'title': value['title'],
37
+ };
38
+ }
@@ -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.11.1
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 Stock
16
+ */
17
+ export interface Stock {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof Stock
22
+ */
23
+ level?: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the Stock interface.
27
+ */
28
+ export declare function instanceOfStock(value: object): boolean;
29
+ export declare function StockFromJSON(json: any): Stock;
30
+ export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
31
+ export declare function StockToJSON(value?: Stock | null): any;
@@ -0,0 +1,38 @@
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.11.1
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
+ * Check if a given object implements the Stock interface.
16
+ */
17
+ export function instanceOfStock(value) {
18
+ return true;
19
+ }
20
+ export function StockFromJSON(json) {
21
+ return StockFromJSONTyped(json, false);
22
+ }
23
+ export function StockFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'level': json['level'] == null ? undefined : json['level'],
29
+ };
30
+ }
31
+ export function StockToJSON(value) {
32
+ if (value == null) {
33
+ return value;
34
+ }
35
+ return {
36
+ 'level': value['level'],
37
+ };
38
+ }
@@ -0,0 +1,87 @@
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.11.1
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
+ import type { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
13
+ import type { CreateProductVariant } from './CreateProductVariant';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UpdateProductRequest
18
+ */
19
+ export interface UpdateProductRequest {
20
+ /**
21
+ * Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API.
22
+ * @type {string}
23
+ * @memberof UpdateProductRequest
24
+ */
25
+ gfnProductRef?: string;
26
+ /**
27
+ * Product title
28
+ * @type {string}
29
+ * @memberof UpdateProductRequest
30
+ */
31
+ title?: string;
32
+ /**
33
+ * Product description
34
+ * @type {string}
35
+ * @memberof UpdateProductRequest
36
+ */
37
+ description?: string;
38
+ /**
39
+ * Whether the product is enabled upon creation.
40
+ * @type {boolean}
41
+ * @memberof UpdateProductRequest
42
+ */
43
+ enabled?: boolean;
44
+ /**
45
+ * A custom URL slug for the product. This must be unique for each product on the project.
46
+ * @type {string}
47
+ * @memberof UpdateProductRequest
48
+ */
49
+ slug?: string;
50
+ /**
51
+ *
52
+ * @type {CreateProductRequestSeoMetadata}
53
+ * @memberof UpdateProductRequest
54
+ */
55
+ seoMetadata?: CreateProductRequestSeoMetadata;
56
+ /**
57
+ * Additional product tags used for searching and filtering.
58
+ * @type {Array<string>}
59
+ * @memberof UpdateProductRequest
60
+ */
61
+ tags?: Array<string>;
62
+ /**
63
+ * Variants
64
+ * @type {Array<CreateProductVariant>}
65
+ * @memberof UpdateProductRequest
66
+ */
67
+ variants?: Array<CreateProductVariant>;
68
+ /**
69
+ * Images to attach to the product. For example, photos of models using/wearing the product.
70
+ * @type {Array<any>}
71
+ * @memberof UpdateProductRequest
72
+ */
73
+ images?: Array<any>;
74
+ /**
75
+ * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
76
+ * @type {Array<any>}
77
+ * @memberof UpdateProductRequest
78
+ */
79
+ additionalFiles?: Array<any>;
80
+ }
81
+ /**
82
+ * Check if a given object implements the UpdateProductRequest interface.
83
+ */
84
+ export declare function instanceOfUpdateProductRequest(value: object): boolean;
85
+ export declare function UpdateProductRequestFromJSON(json: any): UpdateProductRequest;
86
+ export declare function UpdateProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRequest;
87
+ export declare function UpdateProductRequestToJSON(value?: UpdateProductRequest | null): any;
@@ -0,0 +1,58 @@
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.11.1
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
+ import { CreateProductRequestSeoMetadataFromJSON, CreateProductRequestSeoMetadataToJSON, } from './CreateProductRequestSeoMetadata';
15
+ import { CreateProductVariantFromJSON, CreateProductVariantToJSON, } from './CreateProductVariant';
16
+ /**
17
+ * Check if a given object implements the UpdateProductRequest interface.
18
+ */
19
+ export function instanceOfUpdateProductRequest(value) {
20
+ return true;
21
+ }
22
+ export function UpdateProductRequestFromJSON(json) {
23
+ return UpdateProductRequestFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'gfnProductRef': json['gfnProductRef'] == null ? undefined : json['gfnProductRef'],
31
+ 'title': json['title'] == null ? undefined : json['title'],
32
+ 'description': json['description'] == null ? undefined : json['description'],
33
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
34
+ 'slug': json['slug'] == null ? undefined : json['slug'],
35
+ 'seoMetadata': json['seoMetadata'] == null ? undefined : CreateProductRequestSeoMetadataFromJSON(json['seoMetadata']),
36
+ 'tags': json['tags'] == null ? undefined : json['tags'],
37
+ 'variants': json['variants'] == null ? undefined : (json['variants'].map(CreateProductVariantFromJSON)),
38
+ 'images': json['images'] == null ? undefined : json['images'],
39
+ 'additionalFiles': json['additionalFiles'] == null ? undefined : json['additionalFiles'],
40
+ };
41
+ }
42
+ export function UpdateProductRequestToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'gfnProductRef': value['gfnProductRef'],
48
+ 'title': value['title'],
49
+ 'description': value['description'],
50
+ 'enabled': value['enabled'],
51
+ 'slug': value['slug'],
52
+ 'seoMetadata': CreateProductRequestSeoMetadataToJSON(value['seoMetadata']),
53
+ 'tags': value['tags'],
54
+ 'variants': value['variants'] == null ? undefined : (value['variants'].map(CreateProductVariantToJSON)),
55
+ 'images': value['images'],
56
+ 'additionalFiles': value['additionalFiles'],
57
+ };
58
+ }
@@ -0,0 +1,114 @@
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.11.1
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
+ import type { Attribute } from './Attribute';
13
+ import type { Image } from './Image';
14
+ import type { Price } from './Price';
15
+ import type { Stock } from './Stock';
16
+ import type { VariantProduct } from './VariantProduct';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface Variant
21
+ */
22
+ export interface Variant {
23
+ /**
24
+ * Unique object identifier
25
+ * @type {string}
26
+ * @memberof Variant
27
+ */
28
+ id?: string;
29
+ /**
30
+ * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
31
+ * @type {Array<Attribute>}
32
+ * @memberof Variant
33
+ */
34
+ attributes: Array<Attribute>;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Variant
39
+ */
40
+ sku: string;
41
+ /**
42
+ * A reference to the resource location
43
+ * @type {string}
44
+ * @memberof Variant
45
+ */
46
+ ref?: string;
47
+ /**
48
+ *
49
+ * @type {VariantProduct}
50
+ * @memberof Variant
51
+ */
52
+ product?: VariantProduct;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof Variant
57
+ */
58
+ readonly sortOrder?: number;
59
+ /**
60
+ *
61
+ * @type {Price}
62
+ * @memberof Variant
63
+ */
64
+ retailPrice?: Price;
65
+ /**
66
+ *
67
+ * @type {Price}
68
+ * @memberof Variant
69
+ */
70
+ salePrice?: Price;
71
+ /**
72
+ *
73
+ * @type {Price}
74
+ * @memberof Variant
75
+ */
76
+ readonly price?: Price;
77
+ /**
78
+ *
79
+ * @type {Stock}
80
+ * @memberof Variant
81
+ */
82
+ stock?: Stock;
83
+ /**
84
+ *
85
+ * @type {Date}
86
+ * @memberof Variant
87
+ */
88
+ createdAt?: Date;
89
+ /**
90
+ *
91
+ * @type {Date}
92
+ * @memberof Variant
93
+ */
94
+ updatedAt?: Date;
95
+ /**
96
+ *
97
+ * @type {Date}
98
+ * @memberof Variant
99
+ */
100
+ publishedAt?: Date;
101
+ /**
102
+ * Images
103
+ * @type {Array<Image>}
104
+ * @memberof Variant
105
+ */
106
+ images?: Array<Image>;
107
+ }
108
+ /**
109
+ * Check if a given object implements the Variant interface.
110
+ */
111
+ export declare function instanceOfVariant(value: object): boolean;
112
+ export declare function VariantFromJSON(json: any): Variant;
113
+ export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
114
+ export declare function VariantToJSON(value?: Omit<Variant, 'sortOrder' | 'price'> | null): any;
@@ -0,0 +1,71 @@
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.11.1
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
+ import { AttributeFromJSON, AttributeToJSON, } from './Attribute';
15
+ import { ImageFromJSON, ImageToJSON, } from './Image';
16
+ import { PriceFromJSON, PriceToJSON, } from './Price';
17
+ import { StockFromJSON, StockToJSON, } from './Stock';
18
+ import { VariantProductFromJSON, VariantProductToJSON, } from './VariantProduct';
19
+ /**
20
+ * Check if a given object implements the Variant interface.
21
+ */
22
+ export function instanceOfVariant(value) {
23
+ if (!('attributes' in value))
24
+ return false;
25
+ if (!('sku' in value))
26
+ return false;
27
+ return true;
28
+ }
29
+ export function VariantFromJSON(json) {
30
+ return VariantFromJSONTyped(json, false);
31
+ }
32
+ export function VariantFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['id'] == null ? undefined : json['id'],
38
+ 'attributes': (json['attributes'].map(AttributeFromJSON)),
39
+ 'sku': json['sku'],
40
+ 'ref': json['ref'] == null ? undefined : json['ref'],
41
+ 'product': json['product'] == null ? undefined : VariantProductFromJSON(json['product']),
42
+ 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
43
+ 'retailPrice': json['retailPrice'] == null ? undefined : PriceFromJSON(json['retailPrice']),
44
+ 'salePrice': json['salePrice'] == null ? undefined : PriceFromJSON(json['salePrice']),
45
+ 'price': json['price'] == null ? undefined : PriceFromJSON(json['price']),
46
+ 'stock': json['stock'] == null ? undefined : StockFromJSON(json['stock']),
47
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
48
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
49
+ 'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
50
+ 'images': json['images'] == null ? undefined : (json['images'].map(ImageFromJSON)),
51
+ };
52
+ }
53
+ export function VariantToJSON(value) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'attributes': (value['attributes'].map(AttributeToJSON)),
60
+ 'sku': value['sku'],
61
+ 'ref': value['ref'],
62
+ 'product': VariantProductToJSON(value['product']),
63
+ 'retailPrice': PriceToJSON(value['retailPrice']),
64
+ 'salePrice': PriceToJSON(value['salePrice']),
65
+ 'stock': StockToJSON(value['stock']),
66
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
67
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
68
+ 'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
69
+ 'images': value['images'] == null ? undefined : (value['images'].map(ImageToJSON)),
70
+ };
71
+ }
@@ -0,0 +1,37 @@
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.11.1
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 VariantProduct
16
+ */
17
+ export interface VariantProduct {
18
+ /**
19
+ * Unique object identifier
20
+ * @type {string}
21
+ * @memberof VariantProduct
22
+ */
23
+ id?: string;
24
+ /**
25
+ * A reference to the resource location
26
+ * @type {string}
27
+ * @memberof VariantProduct
28
+ */
29
+ ref?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the VariantProduct interface.
33
+ */
34
+ export declare function instanceOfVariantProduct(value: object): boolean;
35
+ export declare function VariantProductFromJSON(json: any): VariantProduct;
36
+ export declare function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct;
37
+ export declare function VariantProductToJSON(value?: VariantProduct | null): any;