@teemill/product-catalog 1.4.0 → 1.6.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 +7 -0
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +30 -2
- package/dist/apis/ProductsApi.js +131 -1
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +1 -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 +59 -0
- package/dist/models/CreateProductRequestVariantsInner.js +62 -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/CreateProductRequestVariantsInnerImagesInner.d.ts +31 -0
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +50 -0
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/ImportProducts200Response.d.ts +31 -0
- package/dist/models/ImportProducts200Response.js +50 -0
- 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 +7 -0
- package/dist/models/index.js +7 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +135 -1
- package/src/apis/VariantsApi.ts +1 -1
- 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 +122 -0
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +101 -0
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +73 -0
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +65 -0
- package/src/models/Image.ts +1 -1
- package/src/models/ImportProducts200Response.ts +65 -0
- 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 +7 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
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.6.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
|
+
import type { CreateProductRequestVariantsInnerApplicationsInner } from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
17
|
+
import {
|
|
18
|
+
CreateProductRequestVariantsInnerApplicationsInnerFromJSON,
|
|
19
|
+
CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped,
|
|
20
|
+
CreateProductRequestVariantsInnerApplicationsInnerToJSON,
|
|
21
|
+
} from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
22
|
+
import type { CreateProductRequestVariantsInnerAttributesInner } from './CreateProductRequestVariantsInnerAttributesInner';
|
|
23
|
+
import {
|
|
24
|
+
CreateProductRequestVariantsInnerAttributesInnerFromJSON,
|
|
25
|
+
CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped,
|
|
26
|
+
CreateProductRequestVariantsInnerAttributesInnerToJSON,
|
|
27
|
+
} from './CreateProductRequestVariantsInnerAttributesInner';
|
|
28
|
+
import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
|
|
29
|
+
import {
|
|
30
|
+
CreateProductRequestVariantsInnerImagesInnerFromJSON,
|
|
31
|
+
CreateProductRequestVariantsInnerImagesInnerFromJSONTyped,
|
|
32
|
+
CreateProductRequestVariantsInnerImagesInnerToJSON,
|
|
33
|
+
} from './CreateProductRequestVariantsInnerImagesInner';
|
|
34
|
+
import type { Price } from './Price';
|
|
35
|
+
import {
|
|
36
|
+
PriceFromJSON,
|
|
37
|
+
PriceFromJSONTyped,
|
|
38
|
+
PriceToJSON,
|
|
39
|
+
} from './Price';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface CreateProductRequestVariantsInner
|
|
45
|
+
*/
|
|
46
|
+
export interface CreateProductRequestVariantsInner {
|
|
47
|
+
/**
|
|
48
|
+
* Variant attributes
|
|
49
|
+
* @type {Array<CreateProductRequestVariantsInnerAttributesInner>}
|
|
50
|
+
* @memberof CreateProductRequestVariantsInner
|
|
51
|
+
*/
|
|
52
|
+
attributes?: Array<CreateProductRequestVariantsInnerAttributesInner>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Price}
|
|
56
|
+
* @memberof CreateProductRequestVariantsInner
|
|
57
|
+
*/
|
|
58
|
+
retailPrice?: Price;
|
|
59
|
+
/**
|
|
60
|
+
* A custom sku
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateProductRequestVariantsInner
|
|
63
|
+
*/
|
|
64
|
+
sku?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Design applications.
|
|
67
|
+
* @type {Array<CreateProductRequestVariantsInnerApplicationsInner>}
|
|
68
|
+
* @memberof CreateProductRequestVariantsInner
|
|
69
|
+
*/
|
|
70
|
+
applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
|
|
71
|
+
/**
|
|
72
|
+
* Existing images to use as this variant's flat images
|
|
73
|
+
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
74
|
+
* @memberof CreateProductRequestVariantsInner
|
|
75
|
+
*/
|
|
76
|
+
images?: Array<CreateProductRequestVariantsInnerImagesInner>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the CreateProductRequestVariantsInner interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfCreateProductRequestVariantsInner(value: object): boolean {
|
|
83
|
+
let isInstance = true;
|
|
84
|
+
|
|
85
|
+
return isInstance;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CreateProductRequestVariantsInnerFromJSON(json: any): CreateProductRequestVariantsInner {
|
|
89
|
+
return CreateProductRequestVariantsInnerFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInner {
|
|
93
|
+
if ((json === undefined) || (json === null)) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'attributes': !exists(json, 'attributes') ? undefined : ((json['attributes'] as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
|
|
99
|
+
'retailPrice': !exists(json, 'retailPrice') ? undefined : PriceFromJSON(json['retailPrice']),
|
|
100
|
+
'sku': !exists(json, 'sku') ? undefined : json['sku'],
|
|
101
|
+
'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
|
|
102
|
+
'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CreateProductRequestVariantsInnerToJSON(value?: CreateProductRequestVariantsInner | null): any {
|
|
107
|
+
if (value === undefined) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
if (value === null) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'attributes': value.attributes === undefined ? undefined : ((value.attributes as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerToJSON)),
|
|
116
|
+
'retailPrice': PriceToJSON(value.retailPrice),
|
|
117
|
+
'sku': value.sku,
|
|
118
|
+
'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
|
|
119
|
+
'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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.6.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 CreateProductRequestVariantsInnerApplicationsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateProductRequestVariantsInnerApplicationsInner {
|
|
22
|
+
/**
|
|
23
|
+
* Technology to use for the application
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
26
|
+
*/
|
|
27
|
+
technology?: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Placement of the application
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
32
|
+
*/
|
|
33
|
+
placement?: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Design file as either a url or base64 encoded string
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
38
|
+
*/
|
|
39
|
+
src?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
|
|
47
|
+
Dtg: 'dtg',
|
|
48
|
+
Embroidery: 'embroidery'
|
|
49
|
+
} as const;
|
|
50
|
+
export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
|
|
56
|
+
Front: 'front',
|
|
57
|
+
Back: 'back'
|
|
58
|
+
} as const;
|
|
59
|
+
export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean {
|
|
66
|
+
let isInstance = true;
|
|
67
|
+
|
|
68
|
+
return isInstance;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json: any): CreateProductRequestVariantsInnerApplicationsInner {
|
|
72
|
+
return CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerApplicationsInner {
|
|
76
|
+
if ((json === undefined) || (json === null)) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'technology': !exists(json, 'technology') ? undefined : json['technology'],
|
|
82
|
+
'placement': !exists(json, 'placement') ? undefined : json['placement'],
|
|
83
|
+
'src': !exists(json, 'src') ? undefined : json['src'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value?: CreateProductRequestVariantsInnerApplicationsInner | null): any {
|
|
88
|
+
if (value === undefined) {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
if (value === null) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'technology': value.technology,
|
|
97
|
+
'placement': value.placement,
|
|
98
|
+
'src': value.src,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -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.6.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
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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.6.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 CreateProductRequestVariantsInnerImagesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateProductRequestVariantsInnerImagesInner {
|
|
22
|
+
/**
|
|
23
|
+
* File url
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateProductRequestVariantsInnerImagesInner
|
|
26
|
+
*/
|
|
27
|
+
src?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateProductRequestVariantsInnerImagesInner(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function CreateProductRequestVariantsInnerImagesInnerFromJSON(json: any): CreateProductRequestVariantsInnerImagesInner {
|
|
40
|
+
return CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerImagesInner {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'src': !exists(json, 'src') ? undefined : json['src'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function CreateProductRequestVariantsInnerImagesInnerToJSON(value?: CreateProductRequestVariantsInnerImagesInner | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'src': value.src,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
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.6.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,65 @@
|
|
|
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.6.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 ImportProducts200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ImportProducts200Response {
|
|
22
|
+
/**
|
|
23
|
+
* Id of the product import
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ImportProducts200Response
|
|
26
|
+
*/
|
|
27
|
+
importId?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ImportProducts200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfImportProducts200Response(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response {
|
|
40
|
+
return ImportProducts200ResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'importId': !exists(json, 'importId') ? undefined : json['importId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'importId': value.importId,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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,16 @@
|
|
|
3
3
|
export * from './ApiError';
|
|
4
4
|
export * from './Attribute';
|
|
5
5
|
export * from './AttributeThumbnail';
|
|
6
|
+
export * from './CreateProductRequest';
|
|
7
|
+
export * from './CreateProductRequestVariantsInner';
|
|
8
|
+
export * from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
9
|
+
export * from './CreateProductRequestVariantsInnerAttributesInner';
|
|
10
|
+
export * from './CreateProductRequestVariantsInnerImagesInner';
|
|
6
11
|
export * from './Image';
|
|
12
|
+
export * from './ImportProducts200Response';
|
|
7
13
|
export * from './Price';
|
|
8
14
|
export * from './Product';
|
|
15
|
+
export * from './ProductAdditionalFilesInner';
|
|
9
16
|
export * from './ProductsResponse';
|
|
10
17
|
export * from './Stock';
|
|
11
18
|
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.6.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|