@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,57 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.8.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
|
-
import { exists } from '../runtime';
|
|
15
|
-
import { CreateProductRequestVariantsInnerApplicationsInnerFromJSON, CreateProductRequestVariantsInnerApplicationsInnerToJSON, } from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
16
|
-
import { CreateProductRequestVariantsInnerAttributesInnerFromJSON, CreateProductRequestVariantsInnerAttributesInnerToJSON, } from './CreateProductRequestVariantsInnerAttributesInner';
|
|
17
|
-
import { CreateProductRequestVariantsInnerImagesInnerFromJSON, CreateProductRequestVariantsInnerImagesInnerToJSON, } from './CreateProductRequestVariantsInnerImagesInner';
|
|
18
|
-
import { CreateProductRequestVariantsInnerRetailPriceFromJSON, CreateProductRequestVariantsInnerRetailPriceToJSON, } from './CreateProductRequestVariantsInnerRetailPrice';
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the CreateProductRequestVariantsInner interface.
|
|
21
|
-
*/
|
|
22
|
-
export function instanceOfCreateProductRequestVariantsInner(value) {
|
|
23
|
-
let isInstance = true;
|
|
24
|
-
isInstance = isInstance && "attributes" in value;
|
|
25
|
-
isInstance = isInstance && "retailPrice" in value;
|
|
26
|
-
return isInstance;
|
|
27
|
-
}
|
|
28
|
-
export function CreateProductRequestVariantsInnerFromJSON(json) {
|
|
29
|
-
return CreateProductRequestVariantsInnerFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
export function CreateProductRequestVariantsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'attributes': (json['attributes'].map(CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
|
|
37
|
-
'retailPrice': CreateProductRequestVariantsInnerRetailPriceFromJSON(json['retailPrice']),
|
|
38
|
-
'sku': !exists(json, 'sku') ? undefined : json['sku'],
|
|
39
|
-
'applications': !exists(json, 'applications') ? undefined : (json['applications'].map(CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
|
|
40
|
-
'images': !exists(json, 'images') ? undefined : (json['images'].map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export function CreateProductRequestVariantsInnerToJSON(value) {
|
|
44
|
-
if (value === undefined) {
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'attributes': (value.attributes.map(CreateProductRequestVariantsInnerAttributesInnerToJSON)),
|
|
52
|
-
'retailPrice': CreateProductRequestVariantsInnerRetailPriceToJSON(value.retailPrice),
|
|
53
|
-
'sku': value.sku,
|
|
54
|
-
'applications': value.applications === undefined ? undefined : (value.applications.map(CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
|
|
55
|
-
'images': value.images === undefined ? undefined : (value.images.map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,63 +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 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. Available placements depend on the chosen product and technology.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
28
|
-
*/
|
|
29
|
-
placement: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
|
|
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 CreateProductRequestVariantsInnerApplicationsInner
|
|
34
|
-
*/
|
|
35
|
-
src: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum: {
|
|
41
|
-
readonly Dtg: "dtg";
|
|
42
|
-
readonly Embroidery: "embroidery";
|
|
43
|
-
readonly Dtf: "dtf";
|
|
44
|
-
};
|
|
45
|
-
export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
|
|
46
|
-
/**
|
|
47
|
-
* @export
|
|
48
|
-
*/
|
|
49
|
-
export declare const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum: {
|
|
50
|
-
readonly Front: "front";
|
|
51
|
-
readonly Back: "back";
|
|
52
|
-
readonly Left: "left";
|
|
53
|
-
readonly Right: "right";
|
|
54
|
-
readonly Neck: "neck";
|
|
55
|
-
};
|
|
56
|
-
export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
|
|
57
|
-
/**
|
|
58
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
|
|
59
|
-
*/
|
|
60
|
-
export declare function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean;
|
|
61
|
-
export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json: any): CreateProductRequestVariantsInnerApplicationsInner;
|
|
62
|
-
export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerApplicationsInner;
|
|
63
|
-
export declare function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value?: CreateProductRequestVariantsInnerApplicationsInner | null): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.8.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
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
|
|
18
|
-
Dtg: 'dtg',
|
|
19
|
-
Embroidery: 'embroidery',
|
|
20
|
-
Dtf: 'dtf'
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
|
|
26
|
-
Front: 'front',
|
|
27
|
-
Back: 'back',
|
|
28
|
-
Left: 'left',
|
|
29
|
-
Right: 'right',
|
|
30
|
-
Neck: 'neck'
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
|
|
34
|
-
*/
|
|
35
|
-
export function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value) {
|
|
36
|
-
let isInstance = true;
|
|
37
|
-
isInstance = isInstance && "technology" in value;
|
|
38
|
-
isInstance = isInstance && "placement" in value;
|
|
39
|
-
isInstance = isInstance && "src" in value;
|
|
40
|
-
return isInstance;
|
|
41
|
-
}
|
|
42
|
-
export function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json) {
|
|
43
|
-
return CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
export function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
-
if ((json === undefined) || (json === null)) {
|
|
47
|
-
return json;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'technology': json['technology'],
|
|
51
|
-
'placement': json['placement'],
|
|
52
|
-
'src': json['src'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export 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
|
-
}
|
|
@@ -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,46 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.8.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
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfCreateProductRequestVariantsInnerAttributesInner(value) {
|
|
18
|
-
let isInstance = true;
|
|
19
|
-
isInstance = isInstance && "name" in value;
|
|
20
|
-
isInstance = isInstance && "value" in value;
|
|
21
|
-
return isInstance;
|
|
22
|
-
}
|
|
23
|
-
export function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json) {
|
|
24
|
-
return CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if ((json === undefined) || (json === null)) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'name': json['name'],
|
|
32
|
-
'value': json['value'],
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function CreateProductRequestVariantsInnerAttributesInnerToJSON(value) {
|
|
36
|
-
if (value === undefined) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if (value === null) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'name': value.name,
|
|
44
|
-
'value': value.value,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -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,43 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.8.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
|
-
import { exists } from '../runtime';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfCreateProductRequestVariantsInnerImagesInner(value) {
|
|
19
|
-
let isInstance = true;
|
|
20
|
-
return isInstance;
|
|
21
|
-
}
|
|
22
|
-
export function CreateProductRequestVariantsInnerImagesInnerFromJSON(json) {
|
|
23
|
-
return CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if ((json === undefined) || (json === null)) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'src': !exists(json, 'src') ? undefined : json['src'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function CreateProductRequestVariantsInnerImagesInnerToJSON(value) {
|
|
34
|
-
if (value === undefined) {
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
if (value === null) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'src': value.src,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -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,46 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.8.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
|
-
* Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfCreateProductRequestVariantsInnerRetailPrice(value) {
|
|
18
|
-
let isInstance = true;
|
|
19
|
-
isInstance = isInstance && "amount" in value;
|
|
20
|
-
isInstance = isInstance && "currencyCode" in value;
|
|
21
|
-
return isInstance;
|
|
22
|
-
}
|
|
23
|
-
export function CreateProductRequestVariantsInnerRetailPriceFromJSON(json) {
|
|
24
|
-
return CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if ((json === undefined) || (json === null)) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'amount': json['amount'],
|
|
32
|
-
'currencyCode': json['currencyCode'],
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function CreateProductRequestVariantsInnerRetailPriceToJSON(value) {
|
|
36
|
-
if (value === undefined) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if (value === null) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'amount': value.amount,
|
|
44
|
-
'currencyCode': value.currencyCode,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -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,54 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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
|
-
import { CreateProductRequestImagesInnerFromJSON, CreateProductRequestImagesInnerToJSON, } from './CreateProductRequestImagesInner';
|
|
15
|
-
import { CreateProductVariantApplicationsInnerFromJSON, CreateProductVariantApplicationsInnerToJSON, } from './CreateProductVariantApplicationsInner';
|
|
16
|
-
import { CreateProductVariantAttributesInnerFromJSON, CreateProductVariantAttributesInnerToJSON, } from './CreateProductVariantAttributesInner';
|
|
17
|
-
import { CreateProductVariantRetailPriceFromJSON, CreateProductVariantRetailPriceToJSON, } from './CreateProductVariantRetailPrice';
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CreateProductVariant interface.
|
|
20
|
-
*/
|
|
21
|
-
export function instanceOfCreateProductVariant(value) {
|
|
22
|
-
if (!('attributes' in value))
|
|
23
|
-
return false;
|
|
24
|
-
if (!('retailPrice' in value))
|
|
25
|
-
return false;
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
export function CreateProductVariantFromJSON(json) {
|
|
29
|
-
return CreateProductVariantFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
export function CreateProductVariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'attributes': (json['attributes'].map(CreateProductVariantAttributesInnerFromJSON)),
|
|
37
|
-
'retailPrice': CreateProductVariantRetailPriceFromJSON(json['retailPrice']),
|
|
38
|
-
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
39
|
-
'applications': json['applications'] == null ? undefined : (json['applications'].map(CreateProductVariantApplicationsInnerFromJSON)),
|
|
40
|
-
'images': json['images'] == null ? undefined : (json['images'].map(CreateProductRequestImagesInnerFromJSON)),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export function CreateProductVariantToJSON(value) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'attributes': (value['attributes'].map(CreateProductVariantAttributesInnerToJSON)),
|
|
49
|
-
'retailPrice': CreateProductVariantRetailPriceToJSON(value['retailPrice']),
|
|
50
|
-
'sku': value['sku'],
|
|
51
|
-
'applications': value['applications'] == null ? undefined : (value['applications'].map(CreateProductVariantApplicationsInnerToJSON)),
|
|
52
|
-
'images': value['images'] == null ? undefined : (value['images'].map(CreateProductRequestImagesInnerToJSON)),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -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,58 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Product Catalog API
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.11.1
|
|
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
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const CreateProductVariantApplicationsInnerPlacementEnum = {
|
|
18
|
-
Front: 'front',
|
|
19
|
-
Back: 'back',
|
|
20
|
-
Left: 'left',
|
|
21
|
-
Right: 'right',
|
|
22
|
-
Neck: 'neck'
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Check if a given object implements the CreateProductVariantApplicationsInner interface.
|
|
26
|
-
*/
|
|
27
|
-
export function instanceOfCreateProductVariantApplicationsInner(value) {
|
|
28
|
-
if (!('technology' in value))
|
|
29
|
-
return false;
|
|
30
|
-
if (!('placement' in value))
|
|
31
|
-
return false;
|
|
32
|
-
if (!('src' in value))
|
|
33
|
-
return false;
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
export function CreateProductVariantApplicationsInnerFromJSON(json) {
|
|
37
|
-
return CreateProductVariantApplicationsInnerFromJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
export function CreateProductVariantApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
-
if (json == null) {
|
|
41
|
-
return json;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'technology': json['technology'],
|
|
45
|
-
'placement': json['placement'],
|
|
46
|
-
'src': json['src'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export function CreateProductVariantApplicationsInnerToJSON(value) {
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'technology': value['technology'],
|
|
55
|
-
'placement': value['placement'],
|
|
56
|
-
'src': value['src'],
|
|
57
|
-
};
|
|
58
|
-
}
|