@teemill/product-catalog 1.3.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.
- package/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +30 -2
- package/dist/apis/ProductsApi.js +129 -1
- package/dist/apis/VariantsApi.d.ts +2 -1
- package/dist/apis/VariantsApi.js +4 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +1 -1
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +1 -1
- package/dist/models/CreateProductRequest.d.ts +75 -0
- package/dist/models/CreateProductRequest.js +68 -0
- package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +31 -0
- package/dist/models/CreateProductRequestAdditionalFilesInner.js +50 -0
- package/dist/models/CreateProductRequestVariantsInner.d.ts +52 -0
- package/dist/models/CreateProductRequestVariantsInner.js +59 -0
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +59 -0
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +68 -0
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +37 -0
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +52 -0
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +1 -1
- package/dist/models/Product.d.ts +8 -1
- package/dist/models/Product.js +4 -1
- package/dist/models/ProductAdditionalFilesInner.d.ts +37 -0
- package/dist/models/ProductAdditionalFilesInner.js +52 -0
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +1 -1
- package/dist/models/Stock.d.ts +1 -1
- package/dist/models/Stock.js +1 -1
- package/dist/models/Variant.d.ts +1 -1
- package/dist/models/Variant.js +1 -1
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +1 -1
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +131 -3
- package/src/apis/VariantsApi.ts +7 -3
- package/src/models/ApiError.ts +1 -1
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeThumbnail.ts +1 -1
- package/src/models/CreateProductRequest.ts +136 -0
- package/src/models/CreateProductRequestAdditionalFilesInner.ts +65 -0
- package/src/models/CreateProductRequestVariantsInner.ts +108 -0
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +101 -0
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +73 -0
- package/src/models/Image.ts +1 -1
- package/src/models/Price.ts +1 -1
- package/src/models/Product.ts +15 -1
- package/src/models/ProductAdditionalFilesInner.ts +73 -0
- package/src/models/ProductsResponse.ts +1 -1
- package/src/models/Stock.ts +1 -1
- package/src/models/Variant.ts +1 -1
- package/src/models/VariantProduct.ts +1 -1
- package/src/models/VariantsResponse.ts +1 -1
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +2 -2
|
@@ -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
|
+
|
package/src/models/Image.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.
|
|
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).
|
package/src/models/Price.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.
|
|
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).
|
package/src/models/Product.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.
|
|
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.
|
|
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).
|
package/src/models/Stock.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.
|
|
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).
|
package/src/models/Variant.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.
|
|
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.
|
|
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.
|
|
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).
|
package/src/models/index.ts
CHANGED
|
@@ -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.
|
|
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,7 +19,7 @@ export type OptionalProperties<T> = {
|
|
|
19
19
|
|
|
20
20
|
export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
|
|
21
21
|
|
|
22
|
-
export const BASE_PATH = "
|
|
22
|
+
export const BASE_PATH = "https://api.teemill.com".replace(/\/+$/, "");
|
|
23
23
|
|
|
24
24
|
export interface ConfigurationParameters {
|
|
25
25
|
basePath?: string; // override base path
|