@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,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateProductRequestVariantsInnerToJSON = exports.CreateProductRequestVariantsInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInner = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var CreateProductRequestVariantsInnerApplicationsInner_1 = require("./CreateProductRequestVariantsInnerApplicationsInner");
|
|
19
|
+
var CreateProductRequestVariantsInnerAttributesInner_1 = require("./CreateProductRequestVariantsInnerAttributesInner");
|
|
20
|
+
var Price_1 = require("./Price");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateProductRequestVariantsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateProductRequestVariantsInner(value) {
|
|
25
|
+
var isInstance = true;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfCreateProductRequestVariantsInner = instanceOfCreateProductRequestVariantsInner;
|
|
29
|
+
function CreateProductRequestVariantsInnerFromJSON(json) {
|
|
30
|
+
return CreateProductRequestVariantsInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.CreateProductRequestVariantsInnerFromJSON = CreateProductRequestVariantsInnerFromJSON;
|
|
33
|
+
function CreateProductRequestVariantsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : (json['attributes'].map(CreateProductRequestVariantsInnerAttributesInner_1.CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
|
|
39
|
+
'retailPrice': !(0, runtime_1.exists)(json, 'retailPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['retailPrice']),
|
|
40
|
+
'sku': !(0, runtime_1.exists)(json, 'sku') ? undefined : json['sku'],
|
|
41
|
+
'applications': !(0, runtime_1.exists)(json, 'applications') ? undefined : (json['applications'].map(CreateProductRequestVariantsInnerApplicationsInner_1.CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.CreateProductRequestVariantsInnerFromJSONTyped = CreateProductRequestVariantsInnerFromJSONTyped;
|
|
45
|
+
function CreateProductRequestVariantsInnerToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'attributes': value.attributes === undefined ? undefined : (value.attributes.map(CreateProductRequestVariantsInnerAttributesInner_1.CreateProductRequestVariantsInnerAttributesInnerToJSON)),
|
|
54
|
+
'retailPrice': (0, Price_1.PriceToJSON)(value.retailPrice),
|
|
55
|
+
'sku': value.sku,
|
|
56
|
+
'applications': value.applications === undefined ? undefined : (value.applications.map(CreateProductRequestVariantsInnerApplicationsInner_1.CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.CreateProductRequestVariantsInnerToJSON = CreateProductRequestVariantsInnerToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateProductRequestVariantsInnerApplicationsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestVariantsInnerApplicationsInner {
|
|
18
|
+
/**
|
|
19
|
+
* Technology to use for the application
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
22
|
+
*/
|
|
23
|
+
technology?: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Placement of the application
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
28
|
+
*/
|
|
29
|
+
placement?: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Design file as either a url or base64 encoded string
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
34
|
+
*/
|
|
35
|
+
src?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum: {
|
|
41
|
+
readonly Dtg: "dtg";
|
|
42
|
+
readonly Embroidery: "embroidery";
|
|
43
|
+
};
|
|
44
|
+
export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum: {
|
|
49
|
+
readonly Front: "front";
|
|
50
|
+
readonly Back: "back";
|
|
51
|
+
};
|
|
52
|
+
export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean;
|
|
57
|
+
export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json: any): CreateProductRequestVariantsInnerApplicationsInner;
|
|
58
|
+
export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerApplicationsInner;
|
|
59
|
+
export declare function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value?: CreateProductRequestVariantsInnerApplicationsInner | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateProductRequestVariantsInnerApplicationsInnerToJSON = exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInnerApplicationsInner = exports.CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = exports.CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
|
|
22
|
+
Dtg: 'dtg',
|
|
23
|
+
Embroidery: 'embroidery'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
|
|
29
|
+
Front: 'front',
|
|
30
|
+
Back: 'back'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value) {
|
|
36
|
+
var isInstance = true;
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfCreateProductRequestVariantsInnerApplicationsInner = instanceOfCreateProductRequestVariantsInnerApplicationsInner;
|
|
40
|
+
function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json) {
|
|
41
|
+
return CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSON = CreateProductRequestVariantsInnerApplicationsInnerFromJSON;
|
|
44
|
+
function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'technology': !(0, runtime_1.exists)(json, 'technology') ? undefined : json['technology'],
|
|
50
|
+
'placement': !(0, runtime_1.exists)(json, 'placement') ? undefined : json['placement'],
|
|
51
|
+
'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped = CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped;
|
|
55
|
+
function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'technology': value.technology,
|
|
64
|
+
'placement': value.placement,
|
|
65
|
+
'src': value.src,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.CreateProductRequestVariantsInnerApplicationsInnerToJSON = CreateProductRequestVariantsInnerApplicationsInnerToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateProductRequestVariantsInnerAttributesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestVariantsInnerAttributesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Attribute name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestVariantsInnerAttributesInner
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Attribute value
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProductRequestVariantsInnerAttributesInner
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateProductRequestVariantsInnerAttributesInner(value: object): boolean;
|
|
35
|
+
export declare function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json: any): CreateProductRequestVariantsInnerAttributesInner;
|
|
36
|
+
export declare function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerAttributesInner;
|
|
37
|
+
export declare function CreateProductRequestVariantsInnerAttributesInnerToJSON(value?: CreateProductRequestVariantsInnerAttributesInner | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateProductRequestVariantsInnerAttributesInnerToJSON = exports.CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerAttributesInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInnerAttributesInner = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCreateProductRequestVariantsInnerAttributesInner(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateProductRequestVariantsInnerAttributesInner = instanceOfCreateProductRequestVariantsInnerAttributesInner;
|
|
26
|
+
function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json) {
|
|
27
|
+
return CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateProductRequestVariantsInnerAttributesInnerFromJSON = CreateProductRequestVariantsInnerAttributesInnerFromJSON;
|
|
30
|
+
function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
36
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped = CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped;
|
|
40
|
+
function CreateProductRequestVariantsInnerAttributesInnerToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value.name,
|
|
49
|
+
'value': value.value,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.CreateProductRequestVariantsInnerAttributesInnerToJSON = CreateProductRequestVariantsInnerAttributesInnerToJSON;
|
package/dist/models/Image.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Image.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Product.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Image } from './Image';
|
|
13
|
+
import type { ProductAdditionalFilesInner } from './ProductAdditionalFilesInner';
|
|
13
14
|
import type { Variant } from './Variant';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -83,6 +84,12 @@ export interface Product {
|
|
|
83
84
|
* @memberof Product
|
|
84
85
|
*/
|
|
85
86
|
variants?: Array<Variant>;
|
|
87
|
+
/**
|
|
88
|
+
* Additional files
|
|
89
|
+
* @type {Array<ProductAdditionalFilesInner>}
|
|
90
|
+
* @memberof Product
|
|
91
|
+
*/
|
|
92
|
+
additionalFiles?: Array<ProductAdditionalFilesInner>;
|
|
86
93
|
}
|
|
87
94
|
/**
|
|
88
95
|
* Check if a given object implements the Product interface.
|
package/dist/models/Product.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var Image_1 = require("./Image");
|
|
19
|
+
var ProductAdditionalFilesInner_1 = require("./ProductAdditionalFilesInner");
|
|
19
20
|
var Variant_1 = require("./Variant");
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the Product interface.
|
|
@@ -47,6 +48,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'publishedAt': !(0, runtime_1.exists)(json, 'publishedAt') ? undefined : (new Date(json['publishedAt'])),
|
|
48
49
|
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
|
|
49
50
|
'variants': !(0, runtime_1.exists)(json, 'variants') ? undefined : (json['variants'].map(Variant_1.VariantFromJSON)),
|
|
51
|
+
'additionalFiles': !(0, runtime_1.exists)(json, 'additionalFiles') ? undefined : (json['additionalFiles'].map(ProductAdditionalFilesInner_1.ProductAdditionalFilesInnerFromJSON)),
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
@@ -68,6 +70,7 @@ function ProductToJSON(value) {
|
|
|
68
70
|
'publishedAt': value.publishedAt === undefined ? undefined : (value.publishedAt.toISOString()),
|
|
69
71
|
'images': value.images === undefined ? undefined : (value.images.map(Image_1.ImageToJSON)),
|
|
70
72
|
'variants': value.variants === undefined ? undefined : (value.variants.map(Variant_1.VariantToJSON)),
|
|
73
|
+
'additionalFiles': value.additionalFiles === undefined ? undefined : (value.additionalFiles.map(ProductAdditionalFilesInner_1.ProductAdditionalFilesInnerToJSON)),
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
exports.ProductToJSON = ProductToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductAdditionalFilesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductAdditionalFilesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Unique object identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProductAdditionalFilesInner
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* File url
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductAdditionalFilesInner
|
|
28
|
+
*/
|
|
29
|
+
src?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProductAdditionalFilesInner(value: object): boolean;
|
|
35
|
+
export declare function ProductAdditionalFilesInnerFromJSON(json: any): ProductAdditionalFilesInner;
|
|
36
|
+
export declare function ProductAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAdditionalFilesInner;
|
|
37
|
+
export declare function ProductAdditionalFilesInnerToJSON(value?: ProductAdditionalFilesInner | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductAdditionalFilesInnerToJSON = exports.ProductAdditionalFilesInnerFromJSONTyped = exports.ProductAdditionalFilesInnerFromJSON = exports.instanceOfProductAdditionalFilesInner = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfProductAdditionalFilesInner(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfProductAdditionalFilesInner = instanceOfProductAdditionalFilesInner;
|
|
26
|
+
function ProductAdditionalFilesInnerFromJSON(json) {
|
|
27
|
+
return ProductAdditionalFilesInnerFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ProductAdditionalFilesInnerFromJSON = ProductAdditionalFilesInnerFromJSON;
|
|
30
|
+
function ProductAdditionalFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
36
|
+
'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.ProductAdditionalFilesInnerFromJSONTyped = ProductAdditionalFilesInnerFromJSONTyped;
|
|
40
|
+
function ProductAdditionalFilesInnerToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value.id,
|
|
49
|
+
'src': value.src,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.ProductAdditionalFilesInnerToJSON = ProductAdditionalFilesInnerToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Stock.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Stock.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Variant.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Variant.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export * from './ApiError';
|
|
2
2
|
export * from './Attribute';
|
|
3
3
|
export * from './AttributeThumbnail';
|
|
4
|
+
export * from './CreateProductRequest';
|
|
5
|
+
export * from './CreateProductRequestAdditionalFilesInner';
|
|
6
|
+
export * from './CreateProductRequestVariantsInner';
|
|
7
|
+
export * from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
8
|
+
export * from './CreateProductRequestVariantsInnerAttributesInner';
|
|
4
9
|
export * from './Image';
|
|
5
10
|
export * from './Price';
|
|
6
11
|
export * from './Product';
|
|
12
|
+
export * from './ProductAdditionalFilesInner';
|
|
7
13
|
export * from './ProductsResponse';
|
|
8
14
|
export * from './Stock';
|
|
9
15
|
export * from './Variant';
|
package/dist/models/index.js
CHANGED
|
@@ -19,9 +19,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./ApiError"), exports);
|
|
20
20
|
__exportStar(require("./Attribute"), exports);
|
|
21
21
|
__exportStar(require("./AttributeThumbnail"), exports);
|
|
22
|
+
__exportStar(require("./CreateProductRequest"), exports);
|
|
23
|
+
__exportStar(require("./CreateProductRequestAdditionalFilesInner"), exports);
|
|
24
|
+
__exportStar(require("./CreateProductRequestVariantsInner"), exports);
|
|
25
|
+
__exportStar(require("./CreateProductRequestVariantsInnerApplicationsInner"), exports);
|
|
26
|
+
__exportStar(require("./CreateProductRequestVariantsInnerAttributesInner"), exports);
|
|
22
27
|
__exportStar(require("./Image"), exports);
|
|
23
28
|
__exportStar(require("./Price"), exports);
|
|
24
29
|
__exportStar(require("./Product"), exports);
|
|
30
|
+
__exportStar(require("./ProductAdditionalFilesInner"), exports);
|
|
25
31
|
__exportStar(require("./ProductsResponse"), exports);
|
|
26
32
|
__exportStar(require("./Stock"), exports);
|
|
27
33
|
__exportStar(require("./Variant"), exports);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
};
|
|
77
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
78
|
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
79
|
-
exports.BASE_PATH = "
|
|
79
|
+
exports.BASE_PATH = "https://api.teemill.com".replace(/\/+$/, "");
|
|
80
80
|
var Configuration = /** @class */ (function () {
|
|
81
81
|
function Configuration(configuration) {
|
|
82
82
|
if (configuration === void 0) { configuration = {}; }
|