@teemill/product-catalog 1.10.0 → 1.11.1
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 +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +1 -1
- package/dist/apis/ProductsApi.js +216 -410
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +83 -187
- package/dist/esm/apis/ProductsApi.d.ts +107 -0
- package/dist/esm/apis/ProductsApi.js +300 -0
- package/dist/esm/apis/VariantsApi.d.ts +50 -0
- package/dist/esm/apis/VariantsApi.js +127 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiError.d.ts +37 -0
- package/dist/esm/models/ApiError.js +42 -0
- package/dist/esm/models/Attribute.d.ts +50 -0
- package/dist/esm/models/Attribute.js +49 -0
- package/dist/esm/models/AttributeThumbnail.d.ts +46 -0
- package/dist/esm/models/AttributeThumbnail.js +48 -0
- package/dist/esm/models/CreateProductRequest.d.ts +88 -0
- package/dist/esm/models/CreateProductRequest.js +63 -0
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +31 -0
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +43 -0
- package/dist/esm/models/CreateProductRequestImagesInner.d.ts +31 -0
- package/dist/esm/models/CreateProductRequestImagesInner.js +38 -0
- package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +31 -0
- package/dist/esm/models/CreateProductRequestSeoMetadata.js +38 -0
- package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +59 -0
- package/dist/esm/models/CreateProductRequestVariantsInner.js +57 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +63 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +67 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +37 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +46 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +31 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +43 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +37 -0
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +46 -0
- package/dist/esm/models/CreateProductVariant.d.ts +59 -0
- package/dist/esm/models/CreateProductVariant.js +54 -0
- package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +54 -0
- package/dist/esm/models/CreateProductVariantApplicationsInner.js +58 -0
- package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +37 -0
- package/dist/esm/models/CreateProductVariantAttributesInner.js +44 -0
- package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +37 -0
- package/dist/esm/models/CreateProductVariantRetailPrice.js +44 -0
- package/dist/esm/models/Image.d.ts +67 -0
- package/dist/esm/models/Image.js +50 -0
- package/dist/esm/models/ImportProducts200Response.d.ts +31 -0
- package/dist/esm/models/ImportProducts200Response.js +38 -0
- package/dist/esm/models/ModelFile.d.ts +31 -0
- package/dist/esm/models/ModelFile.js +38 -0
- package/dist/esm/models/Price.d.ts +37 -0
- package/dist/esm/models/Price.js +40 -0
- package/dist/esm/models/Product.d.ts +113 -0
- package/dist/esm/models/Product.js +71 -0
- package/dist/esm/models/ProductAdditionalFilesInner.d.ts +37 -0
- package/dist/esm/models/ProductAdditionalFilesInner.js +40 -0
- package/dist/esm/models/ProductsResponse.d.ts +38 -0
- package/dist/esm/models/ProductsResponse.js +41 -0
- package/dist/esm/models/SeoMetadata.d.ts +31 -0
- package/dist/esm/models/SeoMetadata.js +38 -0
- package/dist/esm/models/Stock.d.ts +31 -0
- package/dist/esm/models/Stock.js +38 -0
- package/dist/esm/models/UpdateProductRequest.d.ts +87 -0
- package/dist/esm/models/UpdateProductRequest.js +58 -0
- package/dist/esm/models/Variant.d.ts +114 -0
- package/dist/esm/models/Variant.js +71 -0
- package/dist/esm/models/VariantProduct.d.ts +37 -0
- package/dist/esm/models/VariantProduct.js +40 -0
- package/dist/esm/models/VariantsResponse.d.ts +38 -0
- package/dist/esm/models/VariantsResponse.js +41 -0
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/esm/runtime.d.ts +187 -0
- package/dist/esm/runtime.js +333 -0
- 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 +2 -2
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +1 -1
- package/dist/models/CreateProductRequest.d.ts +1 -1
- package/dist/models/CreateProductRequest.js +4 -4
- package/dist/models/CreateProductRequestAdditionalFilesInner.js +2 -2
- package/dist/models/CreateProductRequestImagesInner.d.ts +1 -1
- package/dist/models/CreateProductRequestImagesInner.js +1 -1
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
- package/dist/models/CreateProductRequestSeoMetadata.js +1 -1
- package/dist/models/CreateProductRequestVariantsInner.js +6 -6
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +2 -2
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
- package/dist/models/CreateProductVariant.d.ts +1 -1
- package/dist/models/CreateProductVariant.js +5 -5
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +2 -11
- package/dist/models/CreateProductVariantApplicationsInner.js +2 -10
- package/dist/models/CreateProductVariantAttributesInner.d.ts +1 -1
- package/dist/models/CreateProductVariantAttributesInner.js +1 -1
- package/dist/models/CreateProductVariantRetailPrice.d.ts +1 -1
- package/dist/models/CreateProductVariantRetailPrice.js +1 -1
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/ImportProducts200Response.d.ts +1 -1
- package/dist/models/ImportProducts200Response.js +1 -1
- package/dist/models/ModelFile.d.ts +1 -1
- package/dist/models/ModelFile.js +1 -1
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +1 -1
- package/dist/models/Product.d.ts +2 -2
- package/dist/models/Product.js +5 -5
- package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
- package/dist/models/ProductAdditionalFilesInner.js +1 -1
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +2 -2
- package/dist/models/SeoMetadata.d.ts +1 -1
- package/dist/models/SeoMetadata.js +1 -1
- package/dist/models/Stock.d.ts +1 -1
- package/dist/models/Stock.js +1 -1
- package/dist/models/UpdateProductRequest.d.ts +1 -1
- package/dist/models/UpdateProductRequest.js +3 -3
- package/dist/models/Variant.d.ts +2 -2
- package/dist/models/Variant.js +6 -6
- 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 +2 -2
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/ProductsApi.ts +1 -1
- package/src/apis/VariantsApi.ts +1 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeThumbnail.ts +1 -1
- package/src/models/CreateProductRequest.ts +1 -1
- package/src/models/CreateProductRequestImagesInner.ts +1 -1
- package/src/models/CreateProductRequestSeoMetadata.ts +1 -1
- package/src/models/CreateProductVariant.ts +1 -1
- package/src/models/CreateProductVariantApplicationsInner.ts +2 -12
- package/src/models/CreateProductVariantAttributesInner.ts +1 -1
- package/src/models/CreateProductVariantRetailPrice.ts +1 -1
- package/src/models/Image.ts +1 -1
- package/src/models/ImportProducts200Response.ts +1 -1
- package/src/models/ModelFile.ts +1 -1
- package/src/models/Price.ts +1 -1
- package/src/models/Product.ts +2 -2
- package/src/models/ProductAdditionalFilesInner.ts +1 -1
- package/src/models/ProductsResponse.ts +1 -1
- package/src/models/SeoMetadata.ts +1 -1
- package/src/models/Stock.ts +1 -1
- package/src/models/UpdateProductRequest.ts +1 -1
- package/src/models/Variant.ts +2 -2
- package/src/models/VariantProduct.ts +1 -1
- package/src/models/VariantsResponse.ts +1 -1
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
|
@@ -0,0 +1,49 @@
|
|
|
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 { AttributeThumbnailFromJSON, AttributeThumbnailToJSON, } from './AttributeThumbnail';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Attribute interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAttribute(value) {
|
|
19
|
+
if (!('name' in value))
|
|
20
|
+
return false;
|
|
21
|
+
if (!('value' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AttributeFromJSON(json) {
|
|
26
|
+
return AttributeFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AttributeFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'value': json['value'],
|
|
35
|
+
'thumbnail': json['thumbnail'] == null ? undefined : AttributeThumbnailFromJSON(json['thumbnail']),
|
|
36
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function AttributeToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'value': value['value'],
|
|
46
|
+
'thumbnail': AttributeThumbnailToJSON(value['thumbnail']),
|
|
47
|
+
'tags': value['tags'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AttributeThumbnail
|
|
16
|
+
*/
|
|
17
|
+
export interface AttributeThumbnail {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AttributeThumbnail
|
|
22
|
+
*/
|
|
23
|
+
type?: AttributeThumbnailTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AttributeThumbnail
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AttributeThumbnailTypeEnum: {
|
|
35
|
+
readonly Text: "text";
|
|
36
|
+
readonly Color: "color";
|
|
37
|
+
readonly Image: "image";
|
|
38
|
+
};
|
|
39
|
+
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AttributeThumbnail interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfAttributeThumbnail(value: object): boolean;
|
|
44
|
+
export declare function AttributeThumbnailFromJSON(json: any): AttributeThumbnail;
|
|
45
|
+
export declare function AttributeThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeThumbnail;
|
|
46
|
+
export declare function AttributeThumbnailToJSON(value?: AttributeThumbnail | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AttributeThumbnailTypeEnum = {
|
|
18
|
+
Text: 'text',
|
|
19
|
+
Color: 'color',
|
|
20
|
+
Image: 'image'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AttributeThumbnail interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfAttributeThumbnail(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function AttributeThumbnailFromJSON(json) {
|
|
29
|
+
return AttributeThumbnailFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function AttributeThumbnailFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
37
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function AttributeThumbnailToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': value['type'],
|
|
46
|
+
'value': value['value'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
|
|
14
|
+
import type { CreateProductVariant } from './CreateProductVariant';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CreateProductRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateProductRequest {
|
|
21
|
+
/**
|
|
22
|
+
* Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateProductRequest
|
|
25
|
+
*/
|
|
26
|
+
gfnProductRef: string;
|
|
27
|
+
/**
|
|
28
|
+
* Product title
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CreateProductRequest
|
|
31
|
+
*/
|
|
32
|
+
title?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Product description
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof CreateProductRequest
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the product is enabled upon creation.
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof CreateProductRequest
|
|
43
|
+
*/
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* A custom URL slug for the product. This must be unique for each product on the project.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof CreateProductRequest
|
|
49
|
+
*/
|
|
50
|
+
slug?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {CreateProductRequestSeoMetadata}
|
|
54
|
+
* @memberof CreateProductRequest
|
|
55
|
+
*/
|
|
56
|
+
seoMetadata?: CreateProductRequestSeoMetadata;
|
|
57
|
+
/**
|
|
58
|
+
* Additional product tags used for searching and filtering.
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof CreateProductRequest
|
|
61
|
+
*/
|
|
62
|
+
tags?: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Variants
|
|
65
|
+
* @type {Array<CreateProductVariant>}
|
|
66
|
+
* @memberof CreateProductRequest
|
|
67
|
+
*/
|
|
68
|
+
variants: Array<CreateProductVariant>;
|
|
69
|
+
/**
|
|
70
|
+
* Images to attach to the product. For example, photos of models using/wearing the product.
|
|
71
|
+
* @type {Array<CreateProductRequestImagesInner>}
|
|
72
|
+
* @memberof CreateProductRequest
|
|
73
|
+
*/
|
|
74
|
+
images?: Array<CreateProductRequestImagesInner>;
|
|
75
|
+
/**
|
|
76
|
+
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
77
|
+
* @type {Array<CreateProductRequestImagesInner>}
|
|
78
|
+
* @memberof CreateProductRequest
|
|
79
|
+
*/
|
|
80
|
+
additionalFiles?: Array<CreateProductRequestImagesInner>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the CreateProductRequest interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfCreateProductRequest(value: object): boolean;
|
|
86
|
+
export declare function CreateProductRequestFromJSON(json: any): CreateProductRequest;
|
|
87
|
+
export declare function CreateProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequest;
|
|
88
|
+
export declare function CreateProductRequestToJSON(value?: CreateProductRequest | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { CreateProductRequestSeoMetadataFromJSON, CreateProductRequestSeoMetadataToJSON, } from './CreateProductRequestSeoMetadata';
|
|
16
|
+
import { CreateProductVariantFromJSON, CreateProductVariantToJSON, } from './CreateProductVariant';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CreateProductRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfCreateProductRequest(value) {
|
|
21
|
+
if (!('gfnProductRef' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('variants' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function CreateProductRequestFromJSON(json) {
|
|
28
|
+
return CreateProductRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function CreateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'gfnProductRef': json['gfnProductRef'],
|
|
36
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
37
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
39
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
40
|
+
'seoMetadata': json['seoMetadata'] == null ? undefined : CreateProductRequestSeoMetadataFromJSON(json['seoMetadata']),
|
|
41
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
42
|
+
'variants': (json['variants'].map(CreateProductVariantFromJSON)),
|
|
43
|
+
'images': json['images'] == null ? undefined : (json['images'].map(CreateProductRequestImagesInnerFromJSON)),
|
|
44
|
+
'additionalFiles': json['additionalFiles'] == null ? undefined : (json['additionalFiles'].map(CreateProductRequestImagesInnerFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function CreateProductRequestToJSON(value) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'gfnProductRef': value['gfnProductRef'],
|
|
53
|
+
'title': value['title'],
|
|
54
|
+
'description': value['description'],
|
|
55
|
+
'enabled': value['enabled'],
|
|
56
|
+
'slug': value['slug'],
|
|
57
|
+
'seoMetadata': CreateProductRequestSeoMetadataToJSON(value['seoMetadata']),
|
|
58
|
+
'tags': value['tags'],
|
|
59
|
+
'variants': (value['variants'].map(CreateProductVariantToJSON)),
|
|
60
|
+
'images': value['images'] == null ? undefined : (value['images'].map(CreateProductRequestImagesInnerToJSON)),
|
|
61
|
+
'additionalFiles': value['additionalFiles'] == null ? undefined : (value['additionalFiles'].map(CreateProductRequestImagesInnerToJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CreateProductRequestAdditionalFilesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestAdditionalFilesInner {
|
|
18
|
+
/**
|
|
19
|
+
* File url
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestAdditionalFilesInner
|
|
22
|
+
*/
|
|
23
|
+
src?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateProductRequestAdditionalFilesInner interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateProductRequestAdditionalFilesInner(value: object): boolean;
|
|
29
|
+
export declare function CreateProductRequestAdditionalFilesInnerFromJSON(json: any): CreateProductRequestAdditionalFilesInner;
|
|
30
|
+
export declare function CreateProductRequestAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestAdditionalFilesInner;
|
|
31
|
+
export declare function CreateProductRequestAdditionalFilesInnerToJSON(value?: CreateProductRequestAdditionalFilesInner | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product Catalog API
|
|
5
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateProductRequestAdditionalFilesInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateProductRequestAdditionalFilesInner(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function CreateProductRequestAdditionalFilesInnerFromJSON(json) {
|
|
23
|
+
return CreateProductRequestAdditionalFilesInnerFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateProductRequestAdditionalFilesInnerFromJSONTyped(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 CreateProductRequestAdditionalFilesInnerToJSON(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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CreateProductRequestImagesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestImagesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Publicly available file URL.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestImagesInner
|
|
22
|
+
*/
|
|
23
|
+
src?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateProductRequestImagesInner interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateProductRequestImagesInner(value: object): boolean;
|
|
29
|
+
export declare function CreateProductRequestImagesInnerFromJSON(json: any): CreateProductRequestImagesInner;
|
|
30
|
+
export declare function CreateProductRequestImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestImagesInner;
|
|
31
|
+
export declare function CreateProductRequestImagesInnerToJSON(value?: CreateProductRequestImagesInner | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Check if a given object implements the CreateProductRequestImagesInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateProductRequestImagesInner(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CreateProductRequestImagesInnerFromJSON(json) {
|
|
21
|
+
return CreateProductRequestImagesInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CreateProductRequestImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'src': json['src'] == null ? undefined : json['src'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function CreateProductRequestImagesInnerToJSON(value) {
|
|
32
|
+
if (value == null) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'src': value['src'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CreateProductRequestSeoMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestSeoMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestSeoMetadata
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateProductRequestSeoMetadata interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateProductRequestSeoMetadata(value: object): boolean;
|
|
29
|
+
export declare function CreateProductRequestSeoMetadataFromJSON(json: any): CreateProductRequestSeoMetadata;
|
|
30
|
+
export declare function CreateProductRequestSeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestSeoMetadata;
|
|
31
|
+
export declare function CreateProductRequestSeoMetadataToJSON(value?: CreateProductRequestSeoMetadata | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Check if a given object implements the CreateProductRequestSeoMetadata interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateProductRequestSeoMetadata(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CreateProductRequestSeoMetadataFromJSON(json) {
|
|
21
|
+
return CreateProductRequestSeoMetadataFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CreateProductRequestSeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function CreateProductRequestSeoMetadataToJSON(value) {
|
|
32
|
+
if (value == null) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'title': value['title'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
import type { CreateProductRequestVariantsInnerApplicationsInner } from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
13
|
+
import type { CreateProductRequestVariantsInnerAttributesInner } from './CreateProductRequestVariantsInnerAttributesInner';
|
|
14
|
+
import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
|
|
15
|
+
import type { CreateProductRequestVariantsInnerRetailPrice } from './CreateProductRequestVariantsInnerRetailPrice';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateProductRequestVariantsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateProductRequestVariantsInner {
|
|
22
|
+
/**
|
|
23
|
+
* Attributes associated to a variant such as Colour and Size.
|
|
24
|
+
* @type {Array<CreateProductRequestVariantsInnerAttributesInner>}
|
|
25
|
+
* @memberof CreateProductRequestVariantsInner
|
|
26
|
+
*/
|
|
27
|
+
attributes: Array<CreateProductRequestVariantsInnerAttributesInner>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CreateProductRequestVariantsInnerRetailPrice}
|
|
31
|
+
* @memberof CreateProductRequestVariantsInner
|
|
32
|
+
*/
|
|
33
|
+
retailPrice: CreateProductRequestVariantsInnerRetailPrice;
|
|
34
|
+
/**
|
|
35
|
+
* A custom stock keeping unit for the variant.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateProductRequestVariantsInner
|
|
38
|
+
*/
|
|
39
|
+
sku?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Design applications. If not provided, the product will be blank.
|
|
42
|
+
* @type {Array<CreateProductRequestVariantsInnerApplicationsInner>}
|
|
43
|
+
* @memberof CreateProductRequestVariantsInner
|
|
44
|
+
*/
|
|
45
|
+
applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
|
|
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<CreateProductRequestVariantsInnerImagesInner>}
|
|
49
|
+
* @memberof CreateProductRequestVariantsInner
|
|
50
|
+
*/
|
|
51
|
+
images?: Array<CreateProductRequestVariantsInnerImagesInner>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CreateProductRequestVariantsInner interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfCreateProductRequestVariantsInner(value: object): boolean;
|
|
57
|
+
export declare function CreateProductRequestVariantsInnerFromJSON(json: any): CreateProductRequestVariantsInner;
|
|
58
|
+
export declare function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInner;
|
|
59
|
+
export declare function CreateProductRequestVariantsInnerToJSON(value?: CreateProductRequestVariantsInner | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}
|