@teemill/product-catalog 1.4.0 → 1.5.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 (66) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProductsApi.d.ts +30 -2
  4. package/dist/apis/ProductsApi.js +129 -1
  5. package/dist/apis/VariantsApi.d.ts +1 -1
  6. package/dist/apis/VariantsApi.js +1 -1
  7. package/dist/models/ApiError.d.ts +1 -1
  8. package/dist/models/ApiError.js +1 -1
  9. package/dist/models/Attribute.d.ts +1 -1
  10. package/dist/models/Attribute.js +1 -1
  11. package/dist/models/AttributeThumbnail.d.ts +1 -1
  12. package/dist/models/AttributeThumbnail.js +1 -1
  13. package/dist/models/CreateProductRequest.d.ts +75 -0
  14. package/dist/models/CreateProductRequest.js +68 -0
  15. package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +31 -0
  16. package/dist/models/CreateProductRequestAdditionalFilesInner.js +50 -0
  17. package/dist/models/CreateProductRequestVariantsInner.d.ts +52 -0
  18. package/dist/models/CreateProductRequestVariantsInner.js +59 -0
  19. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +59 -0
  20. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +68 -0
  21. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +37 -0
  22. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +52 -0
  23. package/dist/models/Image.d.ts +1 -1
  24. package/dist/models/Image.js +1 -1
  25. package/dist/models/Price.d.ts +1 -1
  26. package/dist/models/Price.js +1 -1
  27. package/dist/models/Product.d.ts +8 -1
  28. package/dist/models/Product.js +4 -1
  29. package/dist/models/ProductAdditionalFilesInner.d.ts +37 -0
  30. package/dist/models/ProductAdditionalFilesInner.js +52 -0
  31. package/dist/models/ProductsResponse.d.ts +1 -1
  32. package/dist/models/ProductsResponse.js +1 -1
  33. package/dist/models/Stock.d.ts +1 -1
  34. package/dist/models/Stock.js +1 -1
  35. package/dist/models/Variant.d.ts +1 -1
  36. package/dist/models/Variant.js +1 -1
  37. package/dist/models/VariantProduct.d.ts +1 -1
  38. package/dist/models/VariantProduct.js +1 -1
  39. package/dist/models/VariantsResponse.d.ts +1 -1
  40. package/dist/models/VariantsResponse.js +1 -1
  41. package/dist/models/index.d.ts +6 -0
  42. package/dist/models/index.js +6 -0
  43. package/dist/runtime.d.ts +1 -1
  44. package/dist/runtime.js +1 -1
  45. package/package.json +1 -1
  46. package/src/apis/ProductsApi.ts +130 -1
  47. package/src/apis/VariantsApi.ts +1 -1
  48. package/src/models/ApiError.ts +1 -1
  49. package/src/models/Attribute.ts +1 -1
  50. package/src/models/AttributeThumbnail.ts +1 -1
  51. package/src/models/CreateProductRequest.ts +136 -0
  52. package/src/models/CreateProductRequestAdditionalFilesInner.ts +65 -0
  53. package/src/models/CreateProductRequestVariantsInner.ts +108 -0
  54. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +101 -0
  55. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +73 -0
  56. package/src/models/Image.ts +1 -1
  57. package/src/models/Price.ts +1 -1
  58. package/src/models/Product.ts +15 -1
  59. package/src/models/ProductAdditionalFilesInner.ts +73 -0
  60. package/src/models/ProductsResponse.ts +1 -1
  61. package/src/models/Stock.ts +1 -1
  62. package/src/models/Variant.ts +1 -1
  63. package/src/models/VariantProduct.ts +1 -1
  64. package/src/models/VariantsResponse.ts +1 -1
  65. package/src/models/index.ts +6 -0
  66. package/src/runtime.ts +1 -1
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateProductRequestVariantsInnerAttributesInner
20
+ */
21
+ export interface CreateProductRequestVariantsInnerAttributesInner {
22
+ /**
23
+ * Attribute name
24
+ * @type {string}
25
+ * @memberof CreateProductRequestVariantsInnerAttributesInner
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Attribute value
30
+ * @type {string}
31
+ * @memberof CreateProductRequestVariantsInnerAttributesInner
32
+ */
33
+ value?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
38
+ */
39
+ export function instanceOfCreateProductRequestVariantsInnerAttributesInner(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json: any): CreateProductRequestVariantsInnerAttributesInner {
46
+ return CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerAttributesInner {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': !exists(json, 'name') ? undefined : json['name'],
56
+ 'value': !exists(json, 'value') ? undefined : json['value'],
57
+ };
58
+ }
59
+
60
+ export function CreateProductRequestVariantsInnerAttributesInnerToJSON(value?: CreateProductRequestVariantsInnerAttributesInner | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'name': value.name,
70
+ 'value': value.value,
71
+ };
72
+ }
73
+
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,6 +19,12 @@ import {
19
19
  ImageFromJSONTyped,
20
20
  ImageToJSON,
21
21
  } from './Image';
22
+ import type { ProductAdditionalFilesInner } from './ProductAdditionalFilesInner';
23
+ import {
24
+ ProductAdditionalFilesInnerFromJSON,
25
+ ProductAdditionalFilesInnerFromJSONTyped,
26
+ ProductAdditionalFilesInnerToJSON,
27
+ } from './ProductAdditionalFilesInner';
22
28
  import type { Variant } from './Variant';
23
29
  import {
24
30
  VariantFromJSON,
@@ -98,6 +104,12 @@ export interface Product {
98
104
  * @memberof Product
99
105
  */
100
106
  variants?: Array<Variant>;
107
+ /**
108
+ * Additional files
109
+ * @type {Array<ProductAdditionalFilesInner>}
110
+ * @memberof Product
111
+ */
112
+ additionalFiles?: Array<ProductAdditionalFilesInner>;
101
113
  }
102
114
 
103
115
  /**
@@ -132,6 +144,7 @@ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
132
144
  'publishedAt': !exists(json, 'publishedAt') ? undefined : (new Date(json['publishedAt'])),
133
145
  'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(ImageFromJSON)),
134
146
  'variants': !exists(json, 'variants') ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
147
+ 'additionalFiles': !exists(json, 'additionalFiles') ? undefined : ((json['additionalFiles'] as Array<any>).map(ProductAdditionalFilesInnerFromJSON)),
135
148
  };
136
149
  }
137
150
 
@@ -154,6 +167,7 @@ export function ProductToJSON(value?: Product | null): any {
154
167
  'publishedAt': value.publishedAt === undefined ? undefined : (value.publishedAt.toISOString()),
155
168
  'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(ImageToJSON)),
156
169
  'variants': value.variants === undefined ? undefined : ((value.variants as Array<any>).map(VariantToJSON)),
170
+ 'additionalFiles': value.additionalFiles === undefined ? undefined : ((value.additionalFiles as Array<any>).map(ProductAdditionalFilesInnerToJSON)),
157
171
  };
158
172
  }
159
173
 
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductAdditionalFilesInner
20
+ */
21
+ export interface ProductAdditionalFilesInner {
22
+ /**
23
+ * Unique object identifier
24
+ * @type {string}
25
+ * @memberof ProductAdditionalFilesInner
26
+ */
27
+ id?: string;
28
+ /**
29
+ * File url
30
+ * @type {string}
31
+ * @memberof ProductAdditionalFilesInner
32
+ */
33
+ src?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ProductAdditionalFilesInner interface.
38
+ */
39
+ export function instanceOfProductAdditionalFilesInner(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function ProductAdditionalFilesInnerFromJSON(json: any): ProductAdditionalFilesInner {
46
+ return ProductAdditionalFilesInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAdditionalFilesInner {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': !exists(json, 'id') ? undefined : json['id'],
56
+ 'src': !exists(json, 'src') ? undefined : json['src'],
57
+ };
58
+ }
59
+
60
+ export function ProductAdditionalFilesInnerToJSON(value?: ProductAdditionalFilesInner | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'id': value.id,
70
+ 'src': value.src,
71
+ };
72
+ }
73
+
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,15 @@
3
3
  export * from './ApiError';
4
4
  export * from './Attribute';
5
5
  export * from './AttributeThumbnail';
6
+ export * from './CreateProductRequest';
7
+ export * from './CreateProductRequestAdditionalFilesInner';
8
+ export * from './CreateProductRequestVariantsInner';
9
+ export * from './CreateProductRequestVariantsInnerApplicationsInner';
10
+ export * from './CreateProductRequestVariantsInnerAttributesInner';
6
11
  export * from './Image';
7
12
  export * from './Price';
8
13
  export * from './Product';
14
+ export * from './ProductAdditionalFilesInner';
9
15
  export * from './ProductsResponse';
10
16
  export * from './Stock';
11
17
  export * from './Variant';
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.4.0
7
+ * The version of the OpenAPI document: 1.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).