@teemill/product-catalog 1.7.0 → 1.9.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 (100) hide show
  1. package/.openapi-generator/FILES +7 -5
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProductsApi.d.ts +18 -2
  5. package/dist/apis/ProductsApi.js +72 -1
  6. package/dist/apis/VariantsApi.d.ts +1 -1
  7. package/dist/apis/VariantsApi.js +1 -1
  8. package/dist/models/ApiError.d.ts +1 -1
  9. package/dist/models/ApiError.js +10 -14
  10. package/dist/models/Attribute.d.ts +1 -1
  11. package/dist/models/Attribute.js +15 -18
  12. package/dist/models/AttributeThumbnail.d.ts +1 -1
  13. package/dist/models/AttributeThumbnail.js +9 -14
  14. package/dist/models/CreateProductRequest.d.ts +13 -7
  15. package/dist/models/CreateProductRequest.js +30 -31
  16. package/dist/models/CreateProductRequestImagesInner.d.ts +31 -0
  17. package/dist/models/CreateProductRequestImagesInner.js +45 -0
  18. package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
  19. package/dist/models/CreateProductRequestSeoMetadata.js +7 -12
  20. package/dist/models/CreateProductRequestVariantsInner.d.ts +1 -1
  21. package/dist/models/CreateProductRequestVariantsInner.js +1 -1
  22. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +1 -1
  23. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
  24. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +1 -1
  25. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
  26. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +1 -1
  27. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +1 -1
  28. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +1 -1
  29. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
  30. package/dist/models/CreateProductVariant.d.ts +59 -0
  31. package/dist/models/CreateProductVariant.js +61 -0
  32. package/dist/models/CreateProductVariantApplicationsInner.d.ts +63 -0
  33. package/dist/models/CreateProductVariantApplicationsInner.js +73 -0
  34. package/dist/models/CreateProductVariantAttributesInner.d.ts +37 -0
  35. package/dist/models/CreateProductVariantAttributesInner.js +51 -0
  36. package/dist/models/CreateProductVariantRetailPrice.d.ts +37 -0
  37. package/dist/models/CreateProductVariantRetailPrice.js +51 -0
  38. package/dist/models/Image.d.ts +1 -1
  39. package/dist/models/Image.js +19 -24
  40. package/dist/models/ImportProducts200Response.d.ts +1 -1
  41. package/dist/models/ImportProducts200Response.js +7 -12
  42. package/dist/models/ModelFile.d.ts +31 -0
  43. package/dist/models/ModelFile.js +45 -0
  44. package/dist/models/Price.d.ts +1 -1
  45. package/dist/models/Price.js +9 -14
  46. package/dist/models/Product.d.ts +1 -1
  47. package/dist/models/Product.js +32 -35
  48. package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
  49. package/dist/models/ProductAdditionalFilesInner.js +9 -14
  50. package/dist/models/ProductsResponse.d.ts +1 -1
  51. package/dist/models/ProductsResponse.js +9 -14
  52. package/dist/models/SeoMetadata.d.ts +1 -1
  53. package/dist/models/SeoMetadata.js +7 -12
  54. package/dist/models/Stock.d.ts +1 -1
  55. package/dist/models/Stock.js +7 -12
  56. package/dist/models/UpdateProductRequest.d.ts +87 -0
  57. package/dist/models/UpdateProductRequest.js +65 -0
  58. package/dist/models/Variant.d.ts +1 -1
  59. package/dist/models/Variant.js +33 -36
  60. package/dist/models/VariantProduct.d.ts +1 -1
  61. package/dist/models/VariantProduct.js +9 -14
  62. package/dist/models/VariantsResponse.d.ts +1 -1
  63. package/dist/models/VariantsResponse.js +9 -14
  64. package/dist/models/index.d.ts +7 -5
  65. package/dist/models/index.js +7 -5
  66. package/dist/runtime.d.ts +1 -1
  67. package/dist/runtime.js +1 -1
  68. package/package.json +1 -1
  69. package/src/apis/ProductsApi.ts +78 -1
  70. package/src/apis/VariantsApi.ts +1 -1
  71. package/src/models/ApiError.ts +10 -15
  72. package/src/models/Attribute.ts +14 -19
  73. package/src/models/AttributeThumbnail.ts +10 -15
  74. package/src/models/CreateProductRequest.ts +48 -45
  75. package/src/models/CreateProductRequestImagesInner.ts +60 -0
  76. package/src/models/CreateProductRequestSeoMetadata.ts +8 -13
  77. package/src/models/CreateProductRequestVariantsInner.ts +1 -1
  78. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
  79. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
  80. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +1 -1
  81. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +1 -1
  82. package/src/models/CreateProductVariant.ts +119 -0
  83. package/src/models/CreateProductVariantApplicationsInner.ts +103 -0
  84. package/src/models/CreateProductVariantAttributesInner.ts +70 -0
  85. package/src/models/CreateProductVariantRetailPrice.ts +70 -0
  86. package/src/models/Image.ts +20 -25
  87. package/src/models/ImportProducts200Response.ts +8 -13
  88. package/src/models/ModelFile.ts +60 -0
  89. package/src/models/Price.ts +10 -15
  90. package/src/models/Product.ts +31 -36
  91. package/src/models/ProductAdditionalFilesInner.ts +10 -15
  92. package/src/models/ProductsResponse.ts +10 -15
  93. package/src/models/SeoMetadata.ts +8 -13
  94. package/src/models/Stock.ts +8 -13
  95. package/src/models/UpdateProductRequest.ts +145 -0
  96. package/src/models/Variant.ts +32 -37
  97. package/src/models/VariantProduct.ts +10 -15
  98. package/src/models/VariantsResponse.ts +10 -15
  99. package/src/models/index.ts +7 -5
  100. package/src/runtime.ts +1 -1
@@ -0,0 +1,119 @@
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.9.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 { mapValues } from '../runtime';
16
+ import type { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
17
+ import {
18
+ CreateProductRequestImagesInnerFromJSON,
19
+ CreateProductRequestImagesInnerFromJSONTyped,
20
+ CreateProductRequestImagesInnerToJSON,
21
+ } from './CreateProductRequestImagesInner';
22
+ import type { CreateProductVariantApplicationsInner } from './CreateProductVariantApplicationsInner';
23
+ import {
24
+ CreateProductVariantApplicationsInnerFromJSON,
25
+ CreateProductVariantApplicationsInnerFromJSONTyped,
26
+ CreateProductVariantApplicationsInnerToJSON,
27
+ } from './CreateProductVariantApplicationsInner';
28
+ import type { CreateProductVariantAttributesInner } from './CreateProductVariantAttributesInner';
29
+ import {
30
+ CreateProductVariantAttributesInnerFromJSON,
31
+ CreateProductVariantAttributesInnerFromJSONTyped,
32
+ CreateProductVariantAttributesInnerToJSON,
33
+ } from './CreateProductVariantAttributesInner';
34
+ import type { CreateProductVariantRetailPrice } from './CreateProductVariantRetailPrice';
35
+ import {
36
+ CreateProductVariantRetailPriceFromJSON,
37
+ CreateProductVariantRetailPriceFromJSONTyped,
38
+ CreateProductVariantRetailPriceToJSON,
39
+ } from './CreateProductVariantRetailPrice';
40
+
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface CreateProductVariant
45
+ */
46
+ export interface CreateProductVariant {
47
+ /**
48
+ * Attributes associated to a variant such as Colour and Size.
49
+ * @type {Array<CreateProductVariantAttributesInner>}
50
+ * @memberof CreateProductVariant
51
+ */
52
+ attributes: Array<CreateProductVariantAttributesInner>;
53
+ /**
54
+ *
55
+ * @type {CreateProductVariantRetailPrice}
56
+ * @memberof CreateProductVariant
57
+ */
58
+ retailPrice: CreateProductVariantRetailPrice;
59
+ /**
60
+ * A custom stock keeping unit for the variant.
61
+ * @type {string}
62
+ * @memberof CreateProductVariant
63
+ */
64
+ sku?: string;
65
+ /**
66
+ * Design applications. If not provided, the product will be blank.
67
+ * @type {Array<CreateProductVariantApplicationsInner>}
68
+ * @memberof CreateProductVariant
69
+ */
70
+ applications?: Array<CreateProductVariantApplicationsInner>;
71
+ /**
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
+ * @type {Array<CreateProductRequestImagesInner>}
74
+ * @memberof CreateProductVariant
75
+ */
76
+ images?: Array<CreateProductRequestImagesInner>;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the CreateProductVariant interface.
81
+ */
82
+ export function instanceOfCreateProductVariant(value: object): boolean {
83
+ if (!('attributes' in value)) return false;
84
+ if (!('retailPrice' in value)) return false;
85
+ return true;
86
+ }
87
+
88
+ export function CreateProductVariantFromJSON(json: any): CreateProductVariant {
89
+ return CreateProductVariantFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function CreateProductVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariant {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'attributes': ((json['attributes'] as Array<any>).map(CreateProductVariantAttributesInnerFromJSON)),
99
+ 'retailPrice': CreateProductVariantRetailPriceFromJSON(json['retailPrice']),
100
+ 'sku': json['sku'] == null ? undefined : json['sku'],
101
+ 'applications': json['applications'] == null ? undefined : ((json['applications'] as Array<any>).map(CreateProductVariantApplicationsInnerFromJSON)),
102
+ 'images': json['images'] == null ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestImagesInnerFromJSON)),
103
+ };
104
+ }
105
+
106
+ export function CreateProductVariantToJSON(value?: CreateProductVariant | null): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+ return {
111
+
112
+ 'attributes': ((value['attributes'] as Array<any>).map(CreateProductVariantAttributesInnerToJSON)),
113
+ 'retailPrice': CreateProductVariantRetailPriceToJSON(value['retailPrice']),
114
+ 'sku': value['sku'],
115
+ 'applications': value['applications'] == null ? undefined : ((value['applications'] as Array<any>).map(CreateProductVariantApplicationsInnerToJSON)),
116
+ 'images': value['images'] == null ? undefined : ((value['images'] as Array<any>).map(CreateProductRequestImagesInnerToJSON)),
117
+ };
118
+ }
119
+
@@ -0,0 +1,103 @@
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.9.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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateProductVariantApplicationsInner
20
+ */
21
+ export interface CreateProductVariantApplicationsInner {
22
+ /**
23
+ * Technology to use for the application.
24
+ * @type {string}
25
+ * @memberof CreateProductVariantApplicationsInner
26
+ */
27
+ technology: CreateProductVariantApplicationsInnerTechnologyEnum;
28
+ /**
29
+ * Placement of the application. Available placements depend on the chosen product and technology.
30
+ * @type {string}
31
+ * @memberof CreateProductVariantApplicationsInner
32
+ */
33
+ placement: CreateProductVariantApplicationsInnerPlacementEnum;
34
+ /**
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
+ * @type {string}
37
+ * @memberof CreateProductVariantApplicationsInner
38
+ */
39
+ src: string;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const CreateProductVariantApplicationsInnerTechnologyEnum = {
47
+ Dtg: 'dtg',
48
+ Embroidery: 'embroidery',
49
+ Dtf: 'dtf'
50
+ } as const;
51
+ export type CreateProductVariantApplicationsInnerTechnologyEnum = typeof CreateProductVariantApplicationsInnerTechnologyEnum[keyof typeof CreateProductVariantApplicationsInnerTechnologyEnum];
52
+
53
+ /**
54
+ * @export
55
+ */
56
+ export const CreateProductVariantApplicationsInnerPlacementEnum = {
57
+ Front: 'front',
58
+ Back: 'back',
59
+ Left: 'left',
60
+ Right: 'right',
61
+ Neck: 'neck'
62
+ } as const;
63
+ export type CreateProductVariantApplicationsInnerPlacementEnum = typeof CreateProductVariantApplicationsInnerPlacementEnum[keyof typeof CreateProductVariantApplicationsInnerPlacementEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the CreateProductVariantApplicationsInner interface.
68
+ */
69
+ export function instanceOfCreateProductVariantApplicationsInner(value: object): boolean {
70
+ if (!('technology' in value)) return false;
71
+ if (!('placement' in value)) return false;
72
+ if (!('src' in value)) return false;
73
+ return true;
74
+ }
75
+
76
+ export function CreateProductVariantApplicationsInnerFromJSON(json: any): CreateProductVariantApplicationsInner {
77
+ return CreateProductVariantApplicationsInnerFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function CreateProductVariantApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantApplicationsInner {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'technology': json['technology'],
87
+ 'placement': json['placement'],
88
+ 'src': json['src'],
89
+ };
90
+ }
91
+
92
+ export function CreateProductVariantApplicationsInnerToJSON(value?: CreateProductVariantApplicationsInner | null): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+ return {
97
+
98
+ 'technology': value['technology'],
99
+ 'placement': value['placement'],
100
+ 'src': value['src'],
101
+ };
102
+ }
103
+
@@ -0,0 +1,70 @@
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.9.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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateProductVariantAttributesInner
20
+ */
21
+ export interface CreateProductVariantAttributesInner {
22
+ /**
23
+ * Attribute name
24
+ * @type {string}
25
+ * @memberof CreateProductVariantAttributesInner
26
+ */
27
+ name: string;
28
+ /**
29
+ * Attribute value
30
+ * @type {string}
31
+ * @memberof CreateProductVariantAttributesInner
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CreateProductVariantAttributesInner interface.
38
+ */
39
+ export function instanceOfCreateProductVariantAttributesInner(value: object): boolean {
40
+ if (!('name' in value)) return false;
41
+ if (!('value' in value)) return false;
42
+ return true;
43
+ }
44
+
45
+ export function CreateProductVariantAttributesInnerFromJSON(json: any): CreateProductVariantAttributesInner {
46
+ return CreateProductVariantAttributesInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CreateProductVariantAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantAttributesInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function CreateProductVariantAttributesInnerToJSON(value?: CreateProductVariantAttributesInner | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'name': value['name'],
67
+ 'value': value['value'],
68
+ };
69
+ }
70
+
@@ -0,0 +1,70 @@
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.9.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 { mapValues } from '../runtime';
16
+ /**
17
+ * Variant retail price including tax.
18
+ * @export
19
+ * @interface CreateProductVariantRetailPrice
20
+ */
21
+ export interface CreateProductVariantRetailPrice {
22
+ /**
23
+ * Price including tax in the specified currency.
24
+ * @type {number}
25
+ * @memberof CreateProductVariantRetailPrice
26
+ */
27
+ amount: number;
28
+ /**
29
+ * Currency code for the currency the price is valued in.
30
+ * @type {string}
31
+ * @memberof CreateProductVariantRetailPrice
32
+ */
33
+ currencyCode: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CreateProductVariantRetailPrice interface.
38
+ */
39
+ export function instanceOfCreateProductVariantRetailPrice(value: object): boolean {
40
+ if (!('amount' in value)) return false;
41
+ if (!('currencyCode' in value)) return false;
42
+ return true;
43
+ }
44
+
45
+ export function CreateProductVariantRetailPriceFromJSON(json: any): CreateProductVariantRetailPrice {
46
+ return CreateProductVariantRetailPriceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CreateProductVariantRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantRetailPrice {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'amount': json['amount'],
56
+ 'currencyCode': json['currencyCode'],
57
+ };
58
+ }
59
+
60
+ export function CreateProductVariantRetailPriceToJSON(value?: CreateProductVariantRetailPrice | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'amount': value['amount'],
67
+ 'currencyCode': value['currencyCode'],
68
+ };
69
+ }
70
+
@@ -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.7.0
7
+ * The version of the OpenAPI document: 1.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  * Image description
18
18
  * @export
@@ -67,9 +67,7 @@ export interface Image {
67
67
  * Check if a given object implements the Image interface.
68
68
  */
69
69
  export function instanceOfImage(value: object): boolean {
70
- let isInstance = true;
71
-
72
- return isInstance;
70
+ return true;
73
71
  }
74
72
 
75
73
  export function ImageFromJSON(json: any): Image {
@@ -77,37 +75,34 @@ export function ImageFromJSON(json: any): Image {
77
75
  }
78
76
 
79
77
  export function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image {
80
- if ((json === undefined) || (json === null)) {
78
+ if (json == null) {
81
79
  return json;
82
80
  }
83
81
  return {
84
82
 
85
- 'id': !exists(json, 'id') ? undefined : json['id'],
86
- 'src': !exists(json, 'src') ? undefined : json['src'],
87
- 'alt': !exists(json, 'alt') ? undefined : json['alt'],
88
- 'variantIds': !exists(json, 'variantIds') ? undefined : json['variantIds'],
89
- 'sortOrder': !exists(json, 'sortOrder') ? undefined : json['sortOrder'],
90
- 'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
91
- 'updatedAt': !exists(json, 'updatedAt') ? undefined : json['updatedAt'],
83
+ 'id': json['id'] == null ? undefined : json['id'],
84
+ 'src': json['src'] == null ? undefined : json['src'],
85
+ 'alt': json['alt'] == null ? undefined : json['alt'],
86
+ 'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
87
+ 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
88
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
89
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
92
90
  };
93
91
  }
94
92
 
95
93
  export function ImageToJSON(value?: Image | null): any {
96
- if (value === undefined) {
97
- return undefined;
98
- }
99
- if (value === null) {
100
- return null;
94
+ if (value == null) {
95
+ return value;
101
96
  }
102
97
  return {
103
98
 
104
- 'id': value.id,
105
- 'src': value.src,
106
- 'alt': value.alt,
107
- 'variantIds': value.variantIds,
108
- 'sortOrder': value.sortOrder,
109
- 'createdAt': value.createdAt,
110
- 'updatedAt': value.updatedAt,
99
+ 'id': value['id'],
100
+ 'src': value['src'],
101
+ 'alt': value['alt'],
102
+ 'variantIds': value['variantIds'],
103
+ 'sortOrder': value['sortOrder'],
104
+ 'createdAt': value['createdAt'],
105
+ 'updatedAt': value['updatedAt'],
111
106
  };
112
107
  }
113
108
 
@@ -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.7.0
7
+ * The version of the OpenAPI document: 1.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -31,9 +31,7 @@ export interface ImportProducts200Response {
31
31
  * Check if a given object implements the ImportProducts200Response interface.
32
32
  */
33
33
  export function instanceOfImportProducts200Response(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
34
+ return true;
37
35
  }
38
36
 
39
37
  export function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response {
@@ -41,25 +39,22 @@ export function ImportProducts200ResponseFromJSON(json: any): ImportProducts200R
41
39
  }
42
40
 
43
41
  export function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response {
44
- if ((json === undefined) || (json === null)) {
42
+ if (json == null) {
45
43
  return json;
46
44
  }
47
45
  return {
48
46
 
49
- 'importId': !exists(json, 'importId') ? undefined : json['importId'],
47
+ 'importId': json['importId'] == null ? undefined : json['importId'],
50
48
  };
51
49
  }
52
50
 
53
51
  export function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
52
+ if (value == null) {
53
+ return value;
59
54
  }
60
55
  return {
61
56
 
62
- 'importId': value.importId,
57
+ 'importId': value['importId'],
63
58
  };
64
59
  }
65
60
 
@@ -0,0 +1,60 @@
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.9.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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ModelFile
20
+ */
21
+ export interface ModelFile {
22
+ /**
23
+ * Publicly available file URL.
24
+ * @type {string}
25
+ * @memberof ModelFile
26
+ */
27
+ src?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ModelFile interface.
32
+ */
33
+ export function instanceOfModelFile(value: object): boolean {
34
+ return true;
35
+ }
36
+
37
+ export function ModelFileFromJSON(json: any): ModelFile {
38
+ return ModelFileFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'src': json['src'] == null ? undefined : json['src'],
48
+ };
49
+ }
50
+
51
+ export function ModelFileToJSON(value?: ModelFile | null): any {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+
57
+ 'src': value['src'],
58
+ };
59
+ }
60
+
@@ -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.7.0
7
+ * The version of the OpenAPI document: 1.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  * Standard price definition that defines the amount, tax rate and currency.
18
18
  * @export
@@ -37,9 +37,7 @@ export interface Price {
37
37
  * Check if a given object implements the Price interface.
38
38
  */
39
39
  export function instanceOfPrice(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
40
+ return true;
43
41
  }
44
42
 
45
43
  export function PriceFromJSON(json: any): Price {
@@ -47,27 +45,24 @@ export function PriceFromJSON(json: any): Price {
47
45
  }
48
46
 
49
47
  export function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price {
50
- if ((json === undefined) || (json === null)) {
48
+ if (json == null) {
51
49
  return json;
52
50
  }
53
51
  return {
54
52
 
55
- 'amount': !exists(json, 'amount') ? undefined : json['amount'],
56
- 'currencyCode': !exists(json, 'currencyCode') ? undefined : json['currencyCode'],
53
+ 'amount': json['amount'] == null ? undefined : json['amount'],
54
+ 'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
57
55
  };
58
56
  }
59
57
 
60
58
  export function PriceToJSON(value?: Price | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
59
+ if (value == null) {
60
+ return value;
66
61
  }
67
62
  return {
68
63
 
69
- 'amount': value.amount,
70
- 'currencyCode': value.currencyCode,
64
+ 'amount': value['amount'],
65
+ 'currencyCode': value['currencyCode'],
71
66
  };
72
67
  }
73
68