@teemill/product-catalog 1.6.2 → 1.6.4

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 (73) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/ProductsApi.d.ts +11 -25
  5. package/dist/apis/ProductsApi.js +10 -75
  6. package/dist/apis/VariantsApi.d.ts +6 -6
  7. package/dist/apis/VariantsApi.js +6 -6
  8. package/dist/models/ApiError.d.ts +2 -2
  9. package/dist/models/ApiError.js +2 -2
  10. package/dist/models/Attribute.d.ts +2 -2
  11. package/dist/models/Attribute.js +2 -2
  12. package/dist/models/AttributeThumbnail.d.ts +3 -3
  13. package/dist/models/AttributeThumbnail.js +2 -2
  14. package/dist/models/CreateProductRequest.d.ts +7 -7
  15. package/dist/models/CreateProductRequest.js +2 -2
  16. package/dist/models/CreateProductRequestVariantsInner.d.ts +10 -10
  17. package/dist/models/CreateProductRequestVariantsInner.js +9 -7
  18. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +12 -8
  19. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +14 -8
  20. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +4 -4
  21. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +6 -5
  22. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +3 -3
  23. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +2 -2
  24. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +37 -0
  25. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +53 -0
  26. package/dist/models/Image.d.ts +2 -2
  27. package/dist/models/Image.js +2 -2
  28. package/dist/models/ImportProducts200Response.d.ts +2 -2
  29. package/dist/models/ImportProducts200Response.js +2 -2
  30. package/dist/models/Price.d.ts +2 -2
  31. package/dist/models/Price.js +2 -2
  32. package/dist/models/Product.d.ts +3 -3
  33. package/dist/models/Product.js +2 -2
  34. package/dist/models/ProductAdditionalFilesInner.d.ts +3 -3
  35. package/dist/models/ProductAdditionalFilesInner.js +2 -2
  36. package/dist/models/ProductsResponse.d.ts +2 -2
  37. package/dist/models/ProductsResponse.js +2 -2
  38. package/dist/models/Stock.d.ts +2 -2
  39. package/dist/models/Stock.js +2 -2
  40. package/dist/models/Variant.d.ts +2 -2
  41. package/dist/models/Variant.js +2 -2
  42. package/dist/models/VariantProduct.d.ts +2 -2
  43. package/dist/models/VariantProduct.js +2 -2
  44. package/dist/models/VariantsResponse.d.ts +2 -2
  45. package/dist/models/VariantsResponse.js +2 -2
  46. package/dist/models/index.d.ts +1 -0
  47. package/dist/models/index.js +1 -0
  48. package/dist/runtime.d.ts +2 -2
  49. package/dist/runtime.js +2 -2
  50. package/package.json +1 -1
  51. package/src/apis/ProductsApi.ts +10 -77
  52. package/src/apis/VariantsApi.ts +6 -6
  53. package/src/models/ApiError.ts +2 -2
  54. package/src/models/Attribute.ts +2 -2
  55. package/src/models/AttributeThumbnail.ts +3 -3
  56. package/src/models/CreateProductRequest.ts +7 -7
  57. package/src/models/CreateProductRequestVariantsInner.ts +20 -18
  58. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +20 -13
  59. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +8 -6
  60. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +3 -3
  61. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +75 -0
  62. package/src/models/Image.ts +2 -2
  63. package/src/models/ImportProducts200Response.ts +2 -2
  64. package/src/models/Price.ts +2 -2
  65. package/src/models/Product.ts +3 -3
  66. package/src/models/ProductAdditionalFilesInner.ts +3 -3
  67. package/src/models/ProductsResponse.ts +2 -2
  68. package/src/models/Stock.ts +2 -2
  69. package/src/models/Variant.ts +2 -2
  70. package/src/models/VariantProduct.ts +2 -2
  71. package/src/models/VariantsResponse.ts +2 -2
  72. package/src/models/index.ts +1 -0
  73. package/src/runtime.ts +2 -2
package/dist/runtime.js CHANGED
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Product Catalog API
6
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
8
+ * The version of the OpenAPI document: 1.6.4
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.2",
3
+ "version": "1.6.4",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
19
  CreateProductRequest,
20
- ImportProducts200Response,
21
20
  Product,
22
21
  ProductsResponse,
23
22
  } from '../models/index';
@@ -26,8 +25,6 @@ import {
26
25
  ApiErrorToJSON,
27
26
  CreateProductRequestFromJSON,
28
27
  CreateProductRequestToJSON,
29
- ImportProducts200ResponseFromJSON,
30
- ImportProducts200ResponseToJSON,
31
28
  ProductFromJSON,
32
29
  ProductToJSON,
33
30
  ProductsResponseFromJSON,
@@ -52,19 +49,14 @@ export interface GetProductsRequest {
52
49
  fields?: string;
53
50
  }
54
51
 
55
- export interface ImportProductsRequest {
56
- project: string;
57
- body?: string;
58
- }
59
-
60
52
  /**
61
53
  *
62
54
  */
63
55
  export class ProductsApi extends runtime.BaseAPI {
64
56
 
65
57
  /**
66
- * Creates a catalog product
67
- * Create catalog product
58
+ * Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
59
+ * Create product
68
60
  */
69
61
  async createProductRaw(requestParameters: CreateProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Product>> {
70
62
  if (requestParameters.project === null || requestParameters.project === undefined) {
@@ -102,8 +94,8 @@ export class ProductsApi extends runtime.BaseAPI {
102
94
  }
103
95
 
104
96
  /**
105
- * Creates a catalog product
106
- * Create catalog product
97
+ * Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
98
+ * Create product
107
99
  */
108
100
  async createProduct(
109
101
  project: string,
@@ -122,7 +114,7 @@ export class ProductsApi extends runtime.BaseAPI {
122
114
  }
123
115
 
124
116
  /**
125
- * Gets a product by the given id
117
+ * Gets a product by a given ID.
126
118
  * Get product
127
119
  */
128
120
  async getProductRaw(requestParameters: GetProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Product>> {
@@ -166,7 +158,7 @@ export class ProductsApi extends runtime.BaseAPI {
166
158
  }
167
159
 
168
160
  /**
169
- * Gets a product by the given id
161
+ * Gets a product by a given ID.
170
162
  * Get product
171
163
  */
172
164
  async getProduct(
@@ -186,7 +178,7 @@ export class ProductsApi extends runtime.BaseAPI {
186
178
  }
187
179
 
188
180
  /**
189
- * Lists all products
181
+ * Lists all enabled store listing products attached to the given project.
190
182
  * List products
191
183
  */
192
184
  async getProductsRaw(requestParameters: GetProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductsResponse>> {
@@ -234,7 +226,7 @@ export class ProductsApi extends runtime.BaseAPI {
234
226
  }
235
227
 
236
228
  /**
237
- * Lists all products
229
+ * Lists all enabled store listing products attached to the given project.
238
230
  * List products
239
231
  */
240
232
  async getProducts(
@@ -253,63 +245,4 @@ export class ProductsApi extends runtime.BaseAPI {
253
245
  return await response.value();
254
246
  }
255
247
 
256
- /**
257
- * Import products
258
- * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
259
- */
260
- async importProductsRaw(requestParameters: ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportProducts200Response>> {
261
- if (requestParameters.project === null || requestParameters.project === undefined) {
262
- throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling importProducts.');
263
- }
264
-
265
- const queryParameters: any = {};
266
-
267
- if (requestParameters.project !== undefined) {
268
- queryParameters['project'] = requestParameters.project;
269
- }
270
-
271
- const headerParameters: runtime.HTTPHeaders = {};
272
-
273
- headerParameters['Content-Type'] = 'text/csv';
274
-
275
- if (this.configuration && this.configuration.accessToken) {
276
- // oauth required
277
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
278
- }
279
-
280
- if (this.configuration && this.configuration.apiKey) {
281
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
282
- }
283
-
284
- const response = await this.request({
285
- path: `/v1/catalog/products/import`,
286
- method: 'POST',
287
- headers: headerParameters,
288
- query: queryParameters,
289
- body: requestParameters.body as any,
290
- }, initOverrides);
291
-
292
- return new runtime.JSONApiResponse(response, (jsonValue) => ImportProducts200ResponseFromJSON(jsonValue));
293
- }
294
-
295
- /**
296
- * Import products
297
- * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
298
- */
299
- async importProducts(
300
- project: string,
301
- optionalParameters: runtime.OptionalOnly<ImportProductsRequest> = {},
302
- initOverrides?: RequestInit | runtime.InitOverrideFunction
303
- ): Promise<ImportProducts200Response> {
304
- const response = await this.importProductsRaw(
305
- {
306
- project: project,
307
- ...optionalParameters,
308
- },
309
- initOverrides
310
- );
311
-
312
- return await response.value();
313
- }
314
-
315
248
  }
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,7 +48,7 @@ export interface ListVariantsRequest {
48
48
  export class VariantsApi extends runtime.BaseAPI {
49
49
 
50
50
  /**
51
- * Gets a variant by the given id
51
+ * Gets a variant by a given ID.
52
52
  * Get variant
53
53
  */
54
54
  async getVariantRaw(requestParameters: GetVariantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Variant>> {
@@ -92,7 +92,7 @@ export class VariantsApi extends runtime.BaseAPI {
92
92
  }
93
93
 
94
94
  /**
95
- * Gets a variant by the given id
95
+ * Gets a variant by a given ID.
96
96
  * Get variant
97
97
  */
98
98
  async getVariant(
@@ -112,7 +112,7 @@ export class VariantsApi extends runtime.BaseAPI {
112
112
  }
113
113
 
114
114
  /**
115
- * Lists all variants
115
+ * Lists all variants that belong to enabled products attached to the given project.
116
116
  * List variants
117
117
  */
118
118
  async listVariantsRaw(requestParameters: ListVariantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariantsResponse>> {
@@ -164,7 +164,7 @@ export class VariantsApi extends runtime.BaseAPI {
164
164
  }
165
165
 
166
166
  /**
167
- * Lists all variants
167
+ * Lists all variants that belong to enabled products attached to the given project.
168
168
  * List variants
169
169
  */
170
170
  async listVariants(
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  /**
17
- * Attribute thumbnail, intended for interfaces like storefront colour selector
17
+ * Attribute thumbnail, intended for interfaces like storefront colour selector.
18
18
  * @export
19
19
  * @interface AttributeThumbnail
20
20
  */
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,7 +33,7 @@ import {
33
33
  */
34
34
  export interface CreateProductRequest {
35
35
  /**
36
- * GFN product ref
36
+ * 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.
37
37
  * @type {string}
38
38
  * @memberof CreateProductRequest
39
39
  */
@@ -51,19 +51,19 @@ export interface CreateProductRequest {
51
51
  */
52
52
  description?: string;
53
53
  /**
54
- * Whether the product is enabled
54
+ * Whether the product is enabled upon creation.
55
55
  * @type {boolean}
56
56
  * @memberof CreateProductRequest
57
57
  */
58
58
  enabled?: boolean;
59
59
  /**
60
- * A custom url slug for the product
60
+ * A custom URL slug for the product. This must be unique for each product on the project.
61
61
  * @type {string}
62
62
  * @memberof CreateProductRequest
63
63
  */
64
64
  slug?: string;
65
65
  /**
66
- * Product tags
66
+ * Additional product tags used for searching and filtering.
67
67
  * @type {Array<string>}
68
68
  * @memberof CreateProductRequest
69
69
  */
@@ -75,7 +75,7 @@ export interface CreateProductRequest {
75
75
  */
76
76
  variants: Array<CreateProductRequestVariantsInner>;
77
77
  /**
78
- * Additional files
78
+ * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
79
79
  * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
80
80
  * @memberof CreateProductRequest
81
81
  */
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,12 +31,12 @@ import {
31
31
  CreateProductRequestVariantsInnerImagesInnerFromJSONTyped,
32
32
  CreateProductRequestVariantsInnerImagesInnerToJSON,
33
33
  } from './CreateProductRequestVariantsInnerImagesInner';
34
- import type { Price } from './Price';
34
+ import type { CreateProductRequestVariantsInnerRetailPrice } from './CreateProductRequestVariantsInnerRetailPrice';
35
35
  import {
36
- PriceFromJSON,
37
- PriceFromJSONTyped,
38
- PriceToJSON,
39
- } from './Price';
36
+ CreateProductRequestVariantsInnerRetailPriceFromJSON,
37
+ CreateProductRequestVariantsInnerRetailPriceFromJSONTyped,
38
+ CreateProductRequestVariantsInnerRetailPriceToJSON,
39
+ } from './CreateProductRequestVariantsInnerRetailPrice';
40
40
 
41
41
  /**
42
42
  *
@@ -45,31 +45,31 @@ import {
45
45
  */
46
46
  export interface CreateProductRequestVariantsInner {
47
47
  /**
48
- * Variant attributes
48
+ * Attributes associated to a variant such as Colour and Size.
49
49
  * @type {Array<CreateProductRequestVariantsInnerAttributesInner>}
50
50
  * @memberof CreateProductRequestVariantsInner
51
51
  */
52
- attributes?: Array<CreateProductRequestVariantsInnerAttributesInner>;
52
+ attributes: Array<CreateProductRequestVariantsInnerAttributesInner>;
53
53
  /**
54
54
  *
55
- * @type {Price}
55
+ * @type {CreateProductRequestVariantsInnerRetailPrice}
56
56
  * @memberof CreateProductRequestVariantsInner
57
57
  */
58
- retailPrice?: Price;
58
+ retailPrice: CreateProductRequestVariantsInnerRetailPrice;
59
59
  /**
60
- * A custom sku
60
+ * A custom stock keeping unit for the variant.
61
61
  * @type {string}
62
62
  * @memberof CreateProductRequestVariantsInner
63
63
  */
64
64
  sku?: string;
65
65
  /**
66
- * Design applications.
66
+ * Design applications. If not provided, the product will be blank.
67
67
  * @type {Array<CreateProductRequestVariantsInnerApplicationsInner>}
68
68
  * @memberof CreateProductRequestVariantsInner
69
69
  */
70
70
  applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
71
71
  /**
72
- * Existing images to use as this variant's flat images
72
+ * Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the warehouse product provided. Accepts PNG and JPEG files.
73
73
  * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
74
74
  * @memberof CreateProductRequestVariantsInner
75
75
  */
@@ -81,6 +81,8 @@ export interface CreateProductRequestVariantsInner {
81
81
  */
82
82
  export function instanceOfCreateProductRequestVariantsInner(value: object): boolean {
83
83
  let isInstance = true;
84
+ isInstance = isInstance && "attributes" in value;
85
+ isInstance = isInstance && "retailPrice" in value;
84
86
 
85
87
  return isInstance;
86
88
  }
@@ -95,8 +97,8 @@ export function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignore
95
97
  }
96
98
  return {
97
99
 
98
- 'attributes': !exists(json, 'attributes') ? undefined : ((json['attributes'] as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
99
- 'retailPrice': !exists(json, 'retailPrice') ? undefined : PriceFromJSON(json['retailPrice']),
100
+ 'attributes': ((json['attributes'] as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
101
+ 'retailPrice': CreateProductRequestVariantsInnerRetailPriceFromJSON(json['retailPrice']),
100
102
  'sku': !exists(json, 'sku') ? undefined : json['sku'],
101
103
  'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
102
104
  'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
@@ -112,8 +114,8 @@ export function CreateProductRequestVariantsInnerToJSON(value?: CreateProductReq
112
114
  }
113
115
  return {
114
116
 
115
- 'attributes': value.attributes === undefined ? undefined : ((value.attributes as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerToJSON)),
116
- 'retailPrice': PriceToJSON(value.retailPrice),
117
+ 'attributes': ((value.attributes as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerToJSON)),
118
+ 'retailPrice': CreateProductRequestVariantsInnerRetailPriceToJSON(value.retailPrice),
117
119
  'sku': value.sku,
118
120
  'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
119
121
  'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,23 +20,23 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface CreateProductRequestVariantsInnerApplicationsInner {
22
22
  /**
23
- * Technology to use for the application
23
+ * Technology to use for the application.
24
24
  * @type {string}
25
25
  * @memberof CreateProductRequestVariantsInnerApplicationsInner
26
26
  */
27
- technology?: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
27
+ technology: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
28
28
  /**
29
- * Placement of the application
29
+ * Placement of the application. Available placements depend on the chosen product and technology.
30
30
  * @type {string}
31
31
  * @memberof CreateProductRequestVariantsInnerApplicationsInner
32
32
  */
33
- placement?: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
33
+ placement: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
34
34
  /**
35
- * Design file as either a url or base64 encoded string
35
+ * Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
36
36
  * @type {string}
37
37
  * @memberof CreateProductRequestVariantsInnerApplicationsInner
38
38
  */
39
- src?: string;
39
+ src: string;
40
40
  }
41
41
 
42
42
 
@@ -45,7 +45,8 @@ export interface CreateProductRequestVariantsInnerApplicationsInner {
45
45
  */
46
46
  export const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
47
47
  Dtg: 'dtg',
48
- Embroidery: 'embroidery'
48
+ Embroidery: 'embroidery',
49
+ Dtf: 'dtf'
49
50
  } as const;
50
51
  export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
51
52
 
@@ -54,7 +55,10 @@ export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = t
54
55
  */
55
56
  export const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
56
57
  Front: 'front',
57
- Back: 'back'
58
+ Back: 'back',
59
+ Left: 'left',
60
+ Right: 'right',
61
+ Neck: 'neck'
58
62
  } as const;
59
63
  export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
60
64
 
@@ -64,6 +68,9 @@ export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = ty
64
68
  */
65
69
  export function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean {
66
70
  let isInstance = true;
71
+ isInstance = isInstance && "technology" in value;
72
+ isInstance = isInstance && "placement" in value;
73
+ isInstance = isInstance && "src" in value;
67
74
 
68
75
  return isInstance;
69
76
  }
@@ -78,9 +85,9 @@ export function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(
78
85
  }
79
86
  return {
80
87
 
81
- 'technology': !exists(json, 'technology') ? undefined : json['technology'],
82
- 'placement': !exists(json, 'placement') ? undefined : json['placement'],
83
- 'src': !exists(json, 'src') ? undefined : json['src'],
88
+ 'technology': json['technology'],
89
+ 'placement': json['placement'],
90
+ 'src': json['src'],
84
91
  };
85
92
  }
86
93
 
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,13 +24,13 @@ export interface CreateProductRequestVariantsInnerAttributesInner {
24
24
  * @type {string}
25
25
  * @memberof CreateProductRequestVariantsInnerAttributesInner
26
26
  */
27
- name?: string;
27
+ name: string;
28
28
  /**
29
29
  * Attribute value
30
30
  * @type {string}
31
31
  * @memberof CreateProductRequestVariantsInnerAttributesInner
32
32
  */
33
- value?: string;
33
+ value: string;
34
34
  }
35
35
 
36
36
  /**
@@ -38,6 +38,8 @@ export interface CreateProductRequestVariantsInnerAttributesInner {
38
38
  */
39
39
  export function instanceOfCreateProductRequestVariantsInnerAttributesInner(value: object): boolean {
40
40
  let isInstance = true;
41
+ isInstance = isInstance && "name" in value;
42
+ isInstance = isInstance && "value" in value;
41
43
 
42
44
  return isInstance;
43
45
  }
@@ -52,8 +54,8 @@ export function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(js
52
54
  }
53
55
  return {
54
56
 
55
- 'name': !exists(json, 'name') ? undefined : json['name'],
56
- 'value': !exists(json, 'value') ? undefined : json['value'],
57
+ 'name': json['name'],
58
+ 'value': json['value'],
57
59
  };
58
60
  }
59
61
 
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Product Catalog API
5
- * Manage Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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.2
7
+ * The version of the OpenAPI document: 1.6.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,7 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface CreateProductRequestVariantsInnerImagesInner {
22
22
  /**
23
- * File url
23
+ * Publicly available file URL.
24
24
  * @type {string}
25
25
  * @memberof CreateProductRequestVariantsInnerImagesInner
26
26
  */
@@ -0,0 +1,75 @@
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.6.4
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
+ * Variant retail price including tax.
18
+ * @export
19
+ * @interface CreateProductRequestVariantsInnerRetailPrice
20
+ */
21
+ export interface CreateProductRequestVariantsInnerRetailPrice {
22
+ /**
23
+ * Price including tax in the specified currency.
24
+ * @type {number}
25
+ * @memberof CreateProductRequestVariantsInnerRetailPrice
26
+ */
27
+ amount: number;
28
+ /**
29
+ * Currency code for the currency the price is valued in.
30
+ * @type {string}
31
+ * @memberof CreateProductRequestVariantsInnerRetailPrice
32
+ */
33
+ currencyCode: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
38
+ */
39
+ export function instanceOfCreateProductRequestVariantsInnerRetailPrice(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "amount" in value;
42
+ isInstance = isInstance && "currencyCode" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function CreateProductRequestVariantsInnerRetailPriceFromJSON(json: any): CreateProductRequestVariantsInnerRetailPrice {
48
+ return CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerRetailPrice {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'amount': json['amount'],
58
+ 'currencyCode': json['currencyCode'],
59
+ };
60
+ }
61
+
62
+ export function CreateProductRequestVariantsInnerRetailPriceToJSON(value?: CreateProductRequestVariantsInnerRetailPrice | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'amount': value.amount,
72
+ 'currencyCode': value.currencyCode,
73
+ };
74
+ }
75
+