@teemill/product-catalog 1.11.1 → 1.12.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 -29
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1592 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1120 -0
- package/dist/api.js +819 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1120 -0
- package/dist/esm/api.js +808 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +15 -3
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -107
- package/dist/apis/ProductsApi.js +0 -304
- package/dist/apis/VariantsApi.d.ts +0 -50
- package/dist/apis/VariantsApi.js +0 -131
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- package/dist/esm/apis/ProductsApi.d.ts +0 -107
- package/dist/esm/apis/ProductsApi.js +0 -300
- package/dist/esm/apis/VariantsApi.d.ts +0 -50
- package/dist/esm/apis/VariantsApi.js +0 -127
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/Attribute.d.ts +0 -50
- package/dist/esm/models/Attribute.js +0 -49
- package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
- package/dist/esm/models/AttributeThumbnail.js +0 -48
- package/dist/esm/models/CreateProductRequest.d.ts +0 -88
- package/dist/esm/models/CreateProductRequest.js +0 -63
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestImagesInner.js +0 -38
- package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestSeoMetadata.js +0 -38
- package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/esm/models/CreateProductRequestVariantsInner.js +0 -57
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -67
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -46
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -46
- package/dist/esm/models/CreateProductVariant.d.ts +0 -59
- package/dist/esm/models/CreateProductVariant.js +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.js +0 -58
- package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantAttributesInner.js +0 -44
- package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantRetailPrice.js +0 -44
- package/dist/esm/models/Image.d.ts +0 -67
- package/dist/esm/models/Image.js +0 -50
- package/dist/esm/models/ImportProducts200Response.d.ts +0 -31
- package/dist/esm/models/ImportProducts200Response.js +0 -38
- package/dist/esm/models/ModelFile.d.ts +0 -31
- package/dist/esm/models/ModelFile.js +0 -38
- package/dist/esm/models/Price.d.ts +0 -37
- package/dist/esm/models/Price.js +0 -40
- package/dist/esm/models/Product.d.ts +0 -113
- package/dist/esm/models/Product.js +0 -71
- package/dist/esm/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/esm/models/ProductAdditionalFilesInner.js +0 -40
- package/dist/esm/models/ProductsResponse.d.ts +0 -38
- package/dist/esm/models/ProductsResponse.js +0 -41
- package/dist/esm/models/SeoMetadata.d.ts +0 -31
- package/dist/esm/models/SeoMetadata.js +0 -38
- package/dist/esm/models/Stock.d.ts +0 -31
- package/dist/esm/models/Stock.js +0 -38
- package/dist/esm/models/UpdateProductRequest.d.ts +0 -87
- package/dist/esm/models/UpdateProductRequest.js +0 -58
- package/dist/esm/models/Variant.d.ts +0 -114
- package/dist/esm/models/Variant.js +0 -71
- package/dist/esm/models/VariantProduct.d.ts +0 -37
- package/dist/esm/models/VariantProduct.js +0 -40
- package/dist/esm/models/VariantsResponse.d.ts +0 -38
- package/dist/esm/models/VariantsResponse.js +0 -41
- package/dist/esm/models/index.d.ts +0 -23
- package/dist/esm/models/index.js +0 -25
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/Attribute.d.ts +0 -50
- package/dist/models/Attribute.js +0 -56
- package/dist/models/AttributeThumbnail.d.ts +0 -46
- package/dist/models/AttributeThumbnail.js +0 -55
- package/dist/models/CreateProductRequest.d.ts +0 -88
- package/dist/models/CreateProductRequest.js +0 -70
- package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
- package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestImagesInner.js +0 -45
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
- package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/models/CreateProductRequestVariantsInner.js +0 -64
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
- package/dist/models/CreateProductVariant.d.ts +0 -59
- package/dist/models/CreateProductVariant.js +0 -61
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/models/CreateProductVariantApplicationsInner.js +0 -65
- package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductVariantAttributesInner.js +0 -51
- package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductVariantRetailPrice.js +0 -51
- package/dist/models/Image.d.ts +0 -67
- package/dist/models/Image.js +0 -57
- package/dist/models/ImportProducts200Response.d.ts +0 -31
- package/dist/models/ImportProducts200Response.js +0 -45
- package/dist/models/ModelFile.d.ts +0 -31
- package/dist/models/ModelFile.js +0 -45
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/Product.d.ts +0 -113
- package/dist/models/Product.js +0 -78
- package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/models/ProductAdditionalFilesInner.js +0 -47
- package/dist/models/ProductsResponse.d.ts +0 -38
- package/dist/models/ProductsResponse.js +0 -48
- package/dist/models/SeoMetadata.d.ts +0 -31
- package/dist/models/SeoMetadata.js +0 -45
- package/dist/models/Stock.d.ts +0 -31
- package/dist/models/Stock.js +0 -45
- package/dist/models/UpdateProductRequest.d.ts +0 -87
- package/dist/models/UpdateProductRequest.js +0 -65
- package/dist/models/Variant.d.ts +0 -114
- package/dist/models/Variant.js +0 -78
- package/dist/models/VariantProduct.d.ts +0 -37
- package/dist/models/VariantProduct.js +0 -47
- package/dist/models/VariantsResponse.d.ts +0 -38
- package/dist/models/VariantsResponse.js +0 -48
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -41
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProductsApi.ts +0 -453
- package/src/apis/VariantsApi.ts +0 -186
- package/src/apis/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/Attribute.ts +0 -93
- package/src/models/AttributeThumbnail.ts +0 -80
- package/src/models/CreateProductRequest.ts +0 -153
- package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
- package/src/models/CreateProductRequestImagesInner.ts +0 -60
- package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
- package/src/models/CreateProductRequestVariantsInner.ts +0 -124
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
- package/src/models/CreateProductVariant.ts +0 -119
- package/src/models/CreateProductVariantApplicationsInner.ts +0 -93
- package/src/models/CreateProductVariantAttributesInner.ts +0 -70
- package/src/models/CreateProductVariantRetailPrice.ts +0 -70
- package/src/models/Image.ts +0 -108
- package/src/models/ImportProducts200Response.ts +0 -60
- package/src/models/ModelFile.ts +0 -60
- package/src/models/Price.ts +0 -68
- package/src/models/Product.ts +0 -190
- package/src/models/ProductAdditionalFilesInner.ts +0 -68
- package/src/models/ProductsResponse.ts +0 -75
- package/src/models/SeoMetadata.ts +0 -60
- package/src/models/Stock.ts +0 -60
- package/src/models/UpdateProductRequest.ts +0 -145
- package/src/models/Variant.ts +0 -195
- package/src/models/VariantProduct.ts +0 -68
- package/src/models/VariantsResponse.ts +0 -75
- package/src/models/index.ts +0 -25
- package/src/runtime.ts +0 -441
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.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;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.8.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
|
-
/**
|
|
18
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCreateProductRequestVariantsInnerAttributesInner(value) {
|
|
21
|
-
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "name" in value;
|
|
23
|
-
isInstance = isInstance && "value" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfCreateProductRequestVariantsInnerAttributesInner = instanceOfCreateProductRequestVariantsInnerAttributesInner;
|
|
27
|
-
function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json) {
|
|
28
|
-
return CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.CreateProductRequestVariantsInnerAttributesInnerFromJSON = CreateProductRequestVariantsInnerAttributesInnerFromJSON;
|
|
31
|
-
function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'name': json['name'],
|
|
37
|
-
'value': json['value'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped = CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped;
|
|
41
|
-
function CreateProductRequestVariantsInnerAttributesInnerToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'name': value.name,
|
|
50
|
-
'value': value.value,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
exports.CreateProductRequestVariantsInnerAttributesInnerToJSON = CreateProductRequestVariantsInnerAttributesInnerToJSON;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.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 CreateProductRequestVariantsInnerImagesInner
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateProductRequestVariantsInnerImagesInner {
|
|
18
|
-
/**
|
|
19
|
-
* Publicly available file URL.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateProductRequestVariantsInnerImagesInner
|
|
22
|
-
*/
|
|
23
|
-
src?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfCreateProductRequestVariantsInnerImagesInner(value: object): boolean;
|
|
29
|
-
export declare function CreateProductRequestVariantsInnerImagesInnerFromJSON(json: any): CreateProductRequestVariantsInnerImagesInner;
|
|
30
|
-
export declare function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerImagesInner;
|
|
31
|
-
export declare function CreateProductRequestVariantsInnerImagesInnerToJSON(value?: CreateProductRequestVariantsInnerImagesInner | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.8.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.CreateProductRequestVariantsInnerImagesInnerToJSON = exports.CreateProductRequestVariantsInnerImagesInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerImagesInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInnerImagesInner = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfCreateProductRequestVariantsInnerImagesInner(value) {
|
|
22
|
-
let isInstance = true;
|
|
23
|
-
return isInstance;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfCreateProductRequestVariantsInnerImagesInner = instanceOfCreateProductRequestVariantsInnerImagesInner;
|
|
26
|
-
function CreateProductRequestVariantsInnerImagesInnerFromJSON(json) {
|
|
27
|
-
return CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.CreateProductRequestVariantsInnerImagesInnerFromJSON = CreateProductRequestVariantsInnerImagesInnerFromJSON;
|
|
30
|
-
function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if ((json === undefined) || (json === null)) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.CreateProductRequestVariantsInnerImagesInnerFromJSONTyped = CreateProductRequestVariantsInnerImagesInnerFromJSONTyped;
|
|
39
|
-
function CreateProductRequestVariantsInnerImagesInnerToJSON(value) {
|
|
40
|
-
if (value === undefined) {
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'src': value.src,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.CreateProductRequestVariantsInnerImagesInnerToJSON = CreateProductRequestVariantsInnerImagesInnerToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.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
|
-
* Variant retail price including tax.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateProductRequestVariantsInnerRetailPrice
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateProductRequestVariantsInnerRetailPrice {
|
|
18
|
-
/**
|
|
19
|
-
* Price including tax in the specified currency.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CreateProductRequestVariantsInnerRetailPrice
|
|
22
|
-
*/
|
|
23
|
-
amount: number;
|
|
24
|
-
/**
|
|
25
|
-
* Currency code for the currency the price is valued in.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateProductRequestVariantsInnerRetailPrice
|
|
28
|
-
*/
|
|
29
|
-
currencyCode: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCreateProductRequestVariantsInnerRetailPrice(value: object): boolean;
|
|
35
|
-
export declare function CreateProductRequestVariantsInnerRetailPriceFromJSON(json: any): CreateProductRequestVariantsInnerRetailPrice;
|
|
36
|
-
export declare function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerRetailPrice;
|
|
37
|
-
export declare function CreateProductRequestVariantsInnerRetailPriceToJSON(value?: CreateProductRequestVariantsInnerRetailPrice | null): any;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.8.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.CreateProductRequestVariantsInnerRetailPriceToJSON = exports.CreateProductRequestVariantsInnerRetailPriceFromJSONTyped = exports.CreateProductRequestVariantsInnerRetailPriceFromJSON = exports.instanceOfCreateProductRequestVariantsInnerRetailPrice = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCreateProductRequestVariantsInnerRetailPrice(value) {
|
|
21
|
-
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "amount" in value;
|
|
23
|
-
isInstance = isInstance && "currencyCode" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfCreateProductRequestVariantsInnerRetailPrice = instanceOfCreateProductRequestVariantsInnerRetailPrice;
|
|
27
|
-
function CreateProductRequestVariantsInnerRetailPriceFromJSON(json) {
|
|
28
|
-
return CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.CreateProductRequestVariantsInnerRetailPriceFromJSON = CreateProductRequestVariantsInnerRetailPriceFromJSON;
|
|
31
|
-
function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'amount': json['amount'],
|
|
37
|
-
'currencyCode': json['currencyCode'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.CreateProductRequestVariantsInnerRetailPriceFromJSONTyped = CreateProductRequestVariantsInnerRetailPriceFromJSONTyped;
|
|
41
|
-
function CreateProductRequestVariantsInnerRetailPriceToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'amount': value.amount,
|
|
50
|
-
'currencyCode': value.currencyCode,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
exports.CreateProductRequestVariantsInnerRetailPriceToJSON = CreateProductRequestVariantsInnerRetailPriceToJSON;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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
|
-
import type { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
|
|
13
|
-
import type { CreateProductVariantApplicationsInner } from './CreateProductVariantApplicationsInner';
|
|
14
|
-
import type { CreateProductVariantAttributesInner } from './CreateProductVariantAttributesInner';
|
|
15
|
-
import type { CreateProductVariantRetailPrice } from './CreateProductVariantRetailPrice';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface CreateProductVariant
|
|
20
|
-
*/
|
|
21
|
-
export interface CreateProductVariant {
|
|
22
|
-
/**
|
|
23
|
-
* Attributes associated to a variant such as Colour and Size.
|
|
24
|
-
* @type {Array<CreateProductVariantAttributesInner>}
|
|
25
|
-
* @memberof CreateProductVariant
|
|
26
|
-
*/
|
|
27
|
-
attributes: Array<CreateProductVariantAttributesInner>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {CreateProductVariantRetailPrice}
|
|
31
|
-
* @memberof CreateProductVariant
|
|
32
|
-
*/
|
|
33
|
-
retailPrice: CreateProductVariantRetailPrice;
|
|
34
|
-
/**
|
|
35
|
-
* A custom stock keeping unit for the variant.
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreateProductVariant
|
|
38
|
-
*/
|
|
39
|
-
sku?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Design applications. If not provided, the product will be blank.
|
|
42
|
-
* @type {Array<CreateProductVariantApplicationsInner>}
|
|
43
|
-
* @memberof CreateProductVariant
|
|
44
|
-
*/
|
|
45
|
-
applications?: Array<CreateProductVariantApplicationsInner>;
|
|
46
|
-
/**
|
|
47
|
-
* Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the warehouse product provided. Accepts PNG and JPEG files.
|
|
48
|
-
* @type {Array<CreateProductRequestImagesInner>}
|
|
49
|
-
* @memberof CreateProductVariant
|
|
50
|
-
*/
|
|
51
|
-
images?: Array<CreateProductRequestImagesInner>;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Check if a given object implements the CreateProductVariant interface.
|
|
55
|
-
*/
|
|
56
|
-
export declare function instanceOfCreateProductVariant(value: object): boolean;
|
|
57
|
-
export declare function CreateProductVariantFromJSON(json: any): CreateProductVariant;
|
|
58
|
-
export declare function CreateProductVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariant;
|
|
59
|
-
export declare function CreateProductVariantToJSON(value?: CreateProductVariant | null): any;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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.CreateProductVariantToJSON = exports.CreateProductVariantFromJSONTyped = exports.CreateProductVariantFromJSON = exports.instanceOfCreateProductVariant = void 0;
|
|
17
|
-
const CreateProductRequestImagesInner_1 = require("./CreateProductRequestImagesInner");
|
|
18
|
-
const CreateProductVariantApplicationsInner_1 = require("./CreateProductVariantApplicationsInner");
|
|
19
|
-
const CreateProductVariantAttributesInner_1 = require("./CreateProductVariantAttributesInner");
|
|
20
|
-
const CreateProductVariantRetailPrice_1 = require("./CreateProductVariantRetailPrice");
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the CreateProductVariant interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfCreateProductVariant(value) {
|
|
25
|
-
if (!('attributes' in value))
|
|
26
|
-
return false;
|
|
27
|
-
if (!('retailPrice' in value))
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
exports.instanceOfCreateProductVariant = instanceOfCreateProductVariant;
|
|
32
|
-
function CreateProductVariantFromJSON(json) {
|
|
33
|
-
return CreateProductVariantFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
exports.CreateProductVariantFromJSON = CreateProductVariantFromJSON;
|
|
36
|
-
function CreateProductVariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'attributes': (json['attributes'].map(CreateProductVariantAttributesInner_1.CreateProductVariantAttributesInnerFromJSON)),
|
|
42
|
-
'retailPrice': (0, CreateProductVariantRetailPrice_1.CreateProductVariantRetailPriceFromJSON)(json['retailPrice']),
|
|
43
|
-
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
44
|
-
'applications': json['applications'] == null ? undefined : (json['applications'].map(CreateProductVariantApplicationsInner_1.CreateProductVariantApplicationsInnerFromJSON)),
|
|
45
|
-
'images': json['images'] == null ? undefined : (json['images'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerFromJSON)),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.CreateProductVariantFromJSONTyped = CreateProductVariantFromJSONTyped;
|
|
49
|
-
function CreateProductVariantToJSON(value) {
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'attributes': (value['attributes'].map(CreateProductVariantAttributesInner_1.CreateProductVariantAttributesInnerToJSON)),
|
|
55
|
-
'retailPrice': (0, CreateProductVariantRetailPrice_1.CreateProductVariantRetailPriceToJSON)(value['retailPrice']),
|
|
56
|
-
'sku': value['sku'],
|
|
57
|
-
'applications': value['applications'] == null ? undefined : (value['applications'].map(CreateProductVariantApplicationsInner_1.CreateProductVariantApplicationsInnerToJSON)),
|
|
58
|
-
'images': value['images'] == null ? undefined : (value['images'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerToJSON)),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
exports.CreateProductVariantToJSON = CreateProductVariantToJSON;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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 CreateProductVariantApplicationsInner
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateProductVariantApplicationsInner {
|
|
18
|
-
/**
|
|
19
|
-
* Technology to use for the application.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateProductVariantApplicationsInner
|
|
22
|
-
*/
|
|
23
|
-
technology: string;
|
|
24
|
-
/**
|
|
25
|
-
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateProductVariantApplicationsInner
|
|
28
|
-
*/
|
|
29
|
-
placement: CreateProductVariantApplicationsInnerPlacementEnum;
|
|
30
|
-
/**
|
|
31
|
-
* Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateProductVariantApplicationsInner
|
|
34
|
-
*/
|
|
35
|
-
src: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const CreateProductVariantApplicationsInnerPlacementEnum: {
|
|
41
|
-
readonly Front: "front";
|
|
42
|
-
readonly Back: "back";
|
|
43
|
-
readonly Left: "left";
|
|
44
|
-
readonly Right: "right";
|
|
45
|
-
readonly Neck: "neck";
|
|
46
|
-
};
|
|
47
|
-
export type CreateProductVariantApplicationsInnerPlacementEnum = typeof CreateProductVariantApplicationsInnerPlacementEnum[keyof typeof CreateProductVariantApplicationsInnerPlacementEnum];
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the CreateProductVariantApplicationsInner interface.
|
|
50
|
-
*/
|
|
51
|
-
export declare function instanceOfCreateProductVariantApplicationsInner(value: object): boolean;
|
|
52
|
-
export declare function CreateProductVariantApplicationsInnerFromJSON(json: any): CreateProductVariantApplicationsInner;
|
|
53
|
-
export declare function CreateProductVariantApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantApplicationsInner;
|
|
54
|
-
export declare function CreateProductVariantApplicationsInnerToJSON(value?: CreateProductVariantApplicationsInner | null): any;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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.CreateProductVariantApplicationsInnerToJSON = exports.CreateProductVariantApplicationsInnerFromJSONTyped = exports.CreateProductVariantApplicationsInnerFromJSON = exports.instanceOfCreateProductVariantApplicationsInner = exports.CreateProductVariantApplicationsInnerPlacementEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
exports.CreateProductVariantApplicationsInnerPlacementEnum = {
|
|
21
|
-
Front: 'front',
|
|
22
|
-
Back: 'back',
|
|
23
|
-
Left: 'left',
|
|
24
|
-
Right: 'right',
|
|
25
|
-
Neck: 'neck'
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Check if a given object implements the CreateProductVariantApplicationsInner interface.
|
|
29
|
-
*/
|
|
30
|
-
function instanceOfCreateProductVariantApplicationsInner(value) {
|
|
31
|
-
if (!('technology' in value))
|
|
32
|
-
return false;
|
|
33
|
-
if (!('placement' in value))
|
|
34
|
-
return false;
|
|
35
|
-
if (!('src' in value))
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
exports.instanceOfCreateProductVariantApplicationsInner = instanceOfCreateProductVariantApplicationsInner;
|
|
40
|
-
function CreateProductVariantApplicationsInnerFromJSON(json) {
|
|
41
|
-
return CreateProductVariantApplicationsInnerFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
exports.CreateProductVariantApplicationsInnerFromJSON = CreateProductVariantApplicationsInnerFromJSON;
|
|
44
|
-
function CreateProductVariantApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
if (json == null) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'technology': json['technology'],
|
|
50
|
-
'placement': json['placement'],
|
|
51
|
-
'src': json['src'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
exports.CreateProductVariantApplicationsInnerFromJSONTyped = CreateProductVariantApplicationsInnerFromJSONTyped;
|
|
55
|
-
function CreateProductVariantApplicationsInnerToJSON(value) {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'technology': value['technology'],
|
|
61
|
-
'placement': value['placement'],
|
|
62
|
-
'src': value['src'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.CreateProductVariantApplicationsInnerToJSON = CreateProductVariantApplicationsInnerToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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 CreateProductVariantAttributesInner
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateProductVariantAttributesInner {
|
|
18
|
-
/**
|
|
19
|
-
* Attribute name
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateProductVariantAttributesInner
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* Attribute value
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateProductVariantAttributesInner
|
|
28
|
-
*/
|
|
29
|
-
value: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CreateProductVariantAttributesInner interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCreateProductVariantAttributesInner(value: object): boolean;
|
|
35
|
-
export declare function CreateProductVariantAttributesInnerFromJSON(json: any): CreateProductVariantAttributesInner;
|
|
36
|
-
export declare function CreateProductVariantAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantAttributesInner;
|
|
37
|
-
export declare function CreateProductVariantAttributesInnerToJSON(value?: CreateProductVariantAttributesInner | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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.CreateProductVariantAttributesInnerToJSON = exports.CreateProductVariantAttributesInnerFromJSONTyped = exports.CreateProductVariantAttributesInnerFromJSON = exports.instanceOfCreateProductVariantAttributesInner = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CreateProductVariantAttributesInner interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCreateProductVariantAttributesInner(value) {
|
|
21
|
-
if (!('name' in value))
|
|
22
|
-
return false;
|
|
23
|
-
if (!('value' in value))
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfCreateProductVariantAttributesInner = instanceOfCreateProductVariantAttributesInner;
|
|
28
|
-
function CreateProductVariantAttributesInnerFromJSON(json) {
|
|
29
|
-
return CreateProductVariantAttributesInnerFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.CreateProductVariantAttributesInnerFromJSON = CreateProductVariantAttributesInnerFromJSON;
|
|
32
|
-
function CreateProductVariantAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'name': json['name'],
|
|
38
|
-
'value': json['value'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.CreateProductVariantAttributesInnerFromJSONTyped = CreateProductVariantAttributesInnerFromJSONTyped;
|
|
42
|
-
function CreateProductVariantAttributesInnerToJSON(value) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'name': value['name'],
|
|
48
|
-
'value': value['value'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.CreateProductVariantAttributesInnerToJSON = CreateProductVariantAttributesInnerToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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
|
-
* Variant retail price including tax.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateProductVariantRetailPrice
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateProductVariantRetailPrice {
|
|
18
|
-
/**
|
|
19
|
-
* Price including tax in the specified currency.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CreateProductVariantRetailPrice
|
|
22
|
-
*/
|
|
23
|
-
amount: number;
|
|
24
|
-
/**
|
|
25
|
-
* Currency code for the currency the price is valued in.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateProductVariantRetailPrice
|
|
28
|
-
*/
|
|
29
|
-
currencyCode: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CreateProductVariantRetailPrice interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCreateProductVariantRetailPrice(value: object): boolean;
|
|
35
|
-
export declare function CreateProductVariantRetailPriceFromJSON(json: any): CreateProductVariantRetailPrice;
|
|
36
|
-
export declare function CreateProductVariantRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantRetailPrice;
|
|
37
|
-
export declare function CreateProductVariantRetailPriceToJSON(value?: CreateProductVariantRetailPrice | null): any;
|