@teemill/product-catalog 1.9.1 → 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 +15 -1
- package/dist/apis/ProductsApi.js +226 -355
- 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 +62 -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,44 @@
|
|
|
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 CreateProductVariantAttributesInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateProductVariantAttributesInner(value) {
|
|
18
|
+
if (!('name' in value))
|
|
19
|
+
return false;
|
|
20
|
+
if (!('value' in value))
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CreateProductVariantAttributesInnerFromJSON(json) {
|
|
25
|
+
return CreateProductVariantAttributesInnerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CreateProductVariantAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'value': json['value'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CreateProductVariantAttributesInnerToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
'value': value['value'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 CreateProductVariantRetailPrice interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateProductVariantRetailPrice(value) {
|
|
18
|
+
if (!('amount' in value))
|
|
19
|
+
return false;
|
|
20
|
+
if (!('currencyCode' in value))
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CreateProductVariantRetailPriceFromJSON(json) {
|
|
25
|
+
return CreateProductVariantRetailPriceFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CreateProductVariantRetailPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'amount': json['amount'],
|
|
33
|
+
'currencyCode': json['currencyCode'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CreateProductVariantRetailPriceToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'amount': value['amount'],
|
|
42
|
+
'currencyCode': value['currencyCode'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
* Image description
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Image
|
|
16
|
+
*/
|
|
17
|
+
export interface Image {
|
|
18
|
+
/**
|
|
19
|
+
* Unique object identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Image
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Image
|
|
28
|
+
*/
|
|
29
|
+
src?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Image
|
|
34
|
+
*/
|
|
35
|
+
alt?: string;
|
|
36
|
+
/**
|
|
37
|
+
* List of variant Ids
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof Image
|
|
40
|
+
*/
|
|
41
|
+
variantIds?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof Image
|
|
46
|
+
*/
|
|
47
|
+
sortOrder?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Image
|
|
52
|
+
*/
|
|
53
|
+
createdAt?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Image
|
|
58
|
+
*/
|
|
59
|
+
updatedAt?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the Image interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfImage(value: object): boolean;
|
|
65
|
+
export declare function ImageFromJSON(json: any): Image;
|
|
66
|
+
export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
|
|
67
|
+
export declare function ImageToJSON(value?: Image | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 Image interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfImage(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ImageFromJSON(json) {
|
|
21
|
+
return ImageFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'src': json['src'] == null ? undefined : json['src'],
|
|
30
|
+
'alt': json['alt'] == null ? undefined : json['alt'],
|
|
31
|
+
'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
|
|
32
|
+
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
33
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
34
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ImageToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': value['id'],
|
|
43
|
+
'src': value['src'],
|
|
44
|
+
'alt': value['alt'],
|
|
45
|
+
'variantIds': value['variantIds'],
|
|
46
|
+
'sortOrder': value['sortOrder'],
|
|
47
|
+
'createdAt': value['createdAt'],
|
|
48
|
+
'updatedAt': value['updatedAt'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 ImportProducts200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ImportProducts200Response {
|
|
18
|
+
/**
|
|
19
|
+
* Id of the product import
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImportProducts200Response
|
|
22
|
+
*/
|
|
23
|
+
importId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ImportProducts200Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfImportProducts200Response(value: object): boolean;
|
|
29
|
+
export declare function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response;
|
|
30
|
+
export declare function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response;
|
|
31
|
+
export declare function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | 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 ImportProducts200Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfImportProducts200Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ImportProducts200ResponseFromJSON(json) {
|
|
21
|
+
return ImportProducts200ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ImportProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'importId': json['importId'] == null ? undefined : json['importId'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ImportProducts200ResponseToJSON(value) {
|
|
32
|
+
if (value == null) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'importId': value['importId'],
|
|
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 ModelFile
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelFile {
|
|
18
|
+
/**
|
|
19
|
+
* Publicly available file URL.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelFile
|
|
22
|
+
*/
|
|
23
|
+
src?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ModelFile interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfModelFile(value: object): boolean;
|
|
29
|
+
export declare function ModelFileFromJSON(json: any): ModelFile;
|
|
30
|
+
export declare function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile;
|
|
31
|
+
export declare function ModelFileToJSON(value?: ModelFile | 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 ModelFile interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfModelFile(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ModelFileFromJSON(json) {
|
|
21
|
+
return ModelFileFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ModelFileFromJSONTyped(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 ModelFileToJSON(value) {
|
|
32
|
+
if (value == null) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'src': value['src'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* Standard price definition that defines the amount, tax rate and currency.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Price
|
|
16
|
+
*/
|
|
17
|
+
export interface Price {
|
|
18
|
+
/**
|
|
19
|
+
* Price including tax in the specified currency.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Price
|
|
22
|
+
*/
|
|
23
|
+
amount?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Currency code for the currency the price is valued in.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Price
|
|
28
|
+
*/
|
|
29
|
+
currencyCode?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Price interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPrice(value: object): boolean;
|
|
35
|
+
export declare function PriceFromJSON(json: any): Price;
|
|
36
|
+
export declare function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price;
|
|
37
|
+
export declare function PriceToJSON(value?: Price | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 Price interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPrice(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PriceFromJSON(json) {
|
|
21
|
+
return PriceFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
29
|
+
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function PriceToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'amount': value['amount'],
|
|
38
|
+
'currencyCode': value['currencyCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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 { Image } from './Image';
|
|
13
|
+
import type { ProductAdditionalFilesInner } from './ProductAdditionalFilesInner';
|
|
14
|
+
import type { SeoMetadata } from './SeoMetadata';
|
|
15
|
+
import type { Variant } from './Variant';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Product
|
|
20
|
+
*/
|
|
21
|
+
export interface Product {
|
|
22
|
+
/**
|
|
23
|
+
* Unique object identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Product
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A reference to the resource location
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Product
|
|
32
|
+
*/
|
|
33
|
+
ref?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Product
|
|
38
|
+
*/
|
|
39
|
+
title: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Product
|
|
44
|
+
*/
|
|
45
|
+
description: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Product
|
|
50
|
+
*/
|
|
51
|
+
readonly slug?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof Product
|
|
56
|
+
*/
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {SeoMetadata}
|
|
61
|
+
* @memberof Product
|
|
62
|
+
*/
|
|
63
|
+
seoMetadata?: SeoMetadata;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof Product
|
|
68
|
+
*/
|
|
69
|
+
tags?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof Product
|
|
74
|
+
*/
|
|
75
|
+
createdAt?: Date;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof Product
|
|
80
|
+
*/
|
|
81
|
+
updatedAt?: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof Product
|
|
86
|
+
*/
|
|
87
|
+
publishedAt?: Date;
|
|
88
|
+
/**
|
|
89
|
+
* Images
|
|
90
|
+
* @type {Array<Image>}
|
|
91
|
+
* @memberof Product
|
|
92
|
+
*/
|
|
93
|
+
images?: Array<Image>;
|
|
94
|
+
/**
|
|
95
|
+
* Variants
|
|
96
|
+
* @type {Array<Variant>}
|
|
97
|
+
* @memberof Product
|
|
98
|
+
*/
|
|
99
|
+
variants?: Array<Variant>;
|
|
100
|
+
/**
|
|
101
|
+
* Additional files attached to the product.
|
|
102
|
+
* @type {Array<ProductAdditionalFilesInner>}
|
|
103
|
+
* @memberof Product
|
|
104
|
+
*/
|
|
105
|
+
additionalFiles?: Array<ProductAdditionalFilesInner>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the Product interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfProduct(value: object): boolean;
|
|
111
|
+
export declare function ProductFromJSON(json: any): Product;
|
|
112
|
+
export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
|
|
113
|
+
export declare function ProductToJSON(value?: Omit<Product, 'slug'> | null): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { ImageFromJSON, ImageToJSON, } from './Image';
|
|
15
|
+
import { ProductAdditionalFilesInnerFromJSON, ProductAdditionalFilesInnerToJSON, } from './ProductAdditionalFilesInner';
|
|
16
|
+
import { SeoMetadataFromJSON, SeoMetadataToJSON, } from './SeoMetadata';
|
|
17
|
+
import { VariantFromJSON, VariantToJSON, } from './Variant';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Product interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfProduct(value) {
|
|
22
|
+
if (!('title' in value))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value))
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function ProductFromJSON(json) {
|
|
29
|
+
return ProductFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
38
|
+
'title': json['title'],
|
|
39
|
+
'description': json['description'],
|
|
40
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
41
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
42
|
+
'seoMetadata': json['seoMetadata'] == null ? undefined : SeoMetadataFromJSON(json['seoMetadata']),
|
|
43
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
44
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
45
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
46
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
47
|
+
'images': json['images'] == null ? undefined : (json['images'].map(ImageFromJSON)),
|
|
48
|
+
'variants': json['variants'] == null ? undefined : (json['variants'].map(VariantFromJSON)),
|
|
49
|
+
'additionalFiles': json['additionalFiles'] == null ? undefined : (json['additionalFiles'].map(ProductAdditionalFilesInnerFromJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ProductToJSON(value) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'ref': value['ref'],
|
|
59
|
+
'title': value['title'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'enabled': value['enabled'],
|
|
62
|
+
'seoMetadata': SeoMetadataToJSON(value['seoMetadata']),
|
|
63
|
+
'tags': value['tags'],
|
|
64
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
65
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
66
|
+
'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
|
|
67
|
+
'images': value['images'] == null ? undefined : (value['images'].map(ImageToJSON)),
|
|
68
|
+
'variants': value['variants'] == null ? undefined : (value['variants'].map(VariantToJSON)),
|
|
69
|
+
'additionalFiles': value['additionalFiles'] == null ? undefined : (value['additionalFiles'].map(ProductAdditionalFilesInnerToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|