@teemill/product-catalog 1.11.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -29
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1598 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1126 -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 +1126 -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,71 +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 { 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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.11.1
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ProductAdditionalFilesInner
|
|
16
|
-
*/
|
|
17
|
-
export interface ProductAdditionalFilesInner {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ProductAdditionalFilesInner
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
* File URL
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductAdditionalFilesInner
|
|
28
|
-
*/
|
|
29
|
-
src?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfProductAdditionalFilesInner(value: object): boolean;
|
|
35
|
-
export declare function ProductAdditionalFilesInnerFromJSON(json: any): ProductAdditionalFilesInner;
|
|
36
|
-
export declare function ProductAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAdditionalFilesInner;
|
|
37
|
-
export declare function ProductAdditionalFilesInnerToJSON(value?: ProductAdditionalFilesInner | null): any;
|
|
@@ -1,40 +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
|
-
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfProductAdditionalFilesInner(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function ProductAdditionalFilesInnerFromJSON(json) {
|
|
21
|
-
return ProductAdditionalFilesInnerFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function ProductAdditionalFilesInnerFromJSONTyped(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
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export function ProductAdditionalFilesInnerToJSON(value) {
|
|
33
|
-
if (value == null) {
|
|
34
|
-
return value;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': value['id'],
|
|
38
|
-
'src': value['src'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,38 +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 { Product } from './Product';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductsResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductsResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<Product>}
|
|
22
|
-
* @memberof ProductsResponse
|
|
23
|
-
*/
|
|
24
|
-
products?: Array<Product>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ProductsResponse
|
|
29
|
-
*/
|
|
30
|
-
nextPageToken?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfProductsResponse(value: object): boolean;
|
|
36
|
-
export declare function ProductsResponseFromJSON(json: any): ProductsResponse;
|
|
37
|
-
export declare function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse;
|
|
38
|
-
export declare function ProductsResponseToJSON(value?: ProductsResponse | null): any;
|
|
@@ -1,41 +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 { ProductFromJSON, ProductToJSON, } from './Product';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfProductsResponse(value) {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
export function ProductsResponseFromJSON(json) {
|
|
22
|
-
return ProductsResponseFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
export function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
-
if (json == null) {
|
|
26
|
-
return json;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
'products': json['products'] == null ? undefined : (json['products'].map(ProductFromJSON)),
|
|
30
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function ProductsResponseToJSON(value) {
|
|
34
|
-
if (value == null) {
|
|
35
|
-
return value;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'products': value['products'] == null ? undefined : (value['products'].map(ProductToJSON)),
|
|
39
|
-
'nextPageToken': value['nextPageToken'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -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.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
|
-
* SEO metadata for the product
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SeoMetadata
|
|
16
|
-
*/
|
|
17
|
-
export interface SeoMetadata {
|
|
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 SeoMetadata
|
|
22
|
-
*/
|
|
23
|
-
title?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the SeoMetadata interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfSeoMetadata(value: object): boolean;
|
|
29
|
-
export declare function SeoMetadataFromJSON(json: any): SeoMetadata;
|
|
30
|
-
export declare function SeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeoMetadata;
|
|
31
|
-
export declare function SeoMetadataToJSON(value?: SeoMetadata | null): any;
|
|
@@ -1,38 +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
|
-
* Check if a given object implements the SeoMetadata interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfSeoMetadata(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function SeoMetadataFromJSON(json) {
|
|
21
|
-
return SeoMetadataFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function SeoMetadataFromJSONTyped(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 SeoMetadataToJSON(value) {
|
|
32
|
-
if (value == null) {
|
|
33
|
-
return value;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'title': value['title'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
@@ -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.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 Stock
|
|
16
|
-
*/
|
|
17
|
-
export interface Stock {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof Stock
|
|
22
|
-
*/
|
|
23
|
-
level?: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the Stock interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfStock(value: object): boolean;
|
|
29
|
-
export declare function StockFromJSON(json: any): Stock;
|
|
30
|
-
export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
|
|
31
|
-
export declare function StockToJSON(value?: Stock | null): any;
|
package/dist/esm/models/Stock.js
DELETED
|
@@ -1,38 +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
|
-
* Check if a given object implements the Stock interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfStock(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function StockFromJSON(json) {
|
|
21
|
-
return StockFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function StockFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'level': json['level'] == null ? undefined : json['level'],
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function StockToJSON(value) {
|
|
32
|
-
if (value == null) {
|
|
33
|
-
return value;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'level': value['level'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
@@ -1,87 +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 { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
|
|
13
|
-
import type { CreateProductVariant } from './CreateProductVariant';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdateProductRequest
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdateProductRequest {
|
|
20
|
-
/**
|
|
21
|
-
* 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.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof UpdateProductRequest
|
|
24
|
-
*/
|
|
25
|
-
gfnProductRef?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Product title
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof UpdateProductRequest
|
|
30
|
-
*/
|
|
31
|
-
title?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Product description
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof UpdateProductRequest
|
|
36
|
-
*/
|
|
37
|
-
description?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Whether the product is enabled upon creation.
|
|
40
|
-
* @type {boolean}
|
|
41
|
-
* @memberof UpdateProductRequest
|
|
42
|
-
*/
|
|
43
|
-
enabled?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* A custom URL slug for the product. This must be unique for each product on the project.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof UpdateProductRequest
|
|
48
|
-
*/
|
|
49
|
-
slug?: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {CreateProductRequestSeoMetadata}
|
|
53
|
-
* @memberof UpdateProductRequest
|
|
54
|
-
*/
|
|
55
|
-
seoMetadata?: CreateProductRequestSeoMetadata;
|
|
56
|
-
/**
|
|
57
|
-
* Additional product tags used for searching and filtering.
|
|
58
|
-
* @type {Array<string>}
|
|
59
|
-
* @memberof UpdateProductRequest
|
|
60
|
-
*/
|
|
61
|
-
tags?: Array<string>;
|
|
62
|
-
/**
|
|
63
|
-
* Variants
|
|
64
|
-
* @type {Array<CreateProductVariant>}
|
|
65
|
-
* @memberof UpdateProductRequest
|
|
66
|
-
*/
|
|
67
|
-
variants?: Array<CreateProductVariant>;
|
|
68
|
-
/**
|
|
69
|
-
* Images to attach to the product. For example, photos of models using/wearing the product.
|
|
70
|
-
* @type {Array<any>}
|
|
71
|
-
* @memberof UpdateProductRequest
|
|
72
|
-
*/
|
|
73
|
-
images?: Array<any>;
|
|
74
|
-
/**
|
|
75
|
-
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
76
|
-
* @type {Array<any>}
|
|
77
|
-
* @memberof UpdateProductRequest
|
|
78
|
-
*/
|
|
79
|
-
additionalFiles?: Array<any>;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Check if a given object implements the UpdateProductRequest interface.
|
|
83
|
-
*/
|
|
84
|
-
export declare function instanceOfUpdateProductRequest(value: object): boolean;
|
|
85
|
-
export declare function UpdateProductRequestFromJSON(json: any): UpdateProductRequest;
|
|
86
|
-
export declare function UpdateProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRequest;
|
|
87
|
-
export declare function UpdateProductRequestToJSON(value?: UpdateProductRequest | 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
|
-
import { CreateProductRequestSeoMetadataFromJSON, CreateProductRequestSeoMetadataToJSON, } from './CreateProductRequestSeoMetadata';
|
|
15
|
-
import { CreateProductVariantFromJSON, CreateProductVariantToJSON, } from './CreateProductVariant';
|
|
16
|
-
/**
|
|
17
|
-
* Check if a given object implements the UpdateProductRequest interface.
|
|
18
|
-
*/
|
|
19
|
-
export function instanceOfUpdateProductRequest(value) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function UpdateProductRequestFromJSON(json) {
|
|
23
|
-
return UpdateProductRequestFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function UpdateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'gfnProductRef': json['gfnProductRef'] == null ? undefined : json['gfnProductRef'],
|
|
31
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
32
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
-
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
34
|
-
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
35
|
-
'seoMetadata': json['seoMetadata'] == null ? undefined : CreateProductRequestSeoMetadataFromJSON(json['seoMetadata']),
|
|
36
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
37
|
-
'variants': json['variants'] == null ? undefined : (json['variants'].map(CreateProductVariantFromJSON)),
|
|
38
|
-
'images': json['images'] == null ? undefined : json['images'],
|
|
39
|
-
'additionalFiles': json['additionalFiles'] == null ? undefined : json['additionalFiles'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export function UpdateProductRequestToJSON(value) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'gfnProductRef': value['gfnProductRef'],
|
|
48
|
-
'title': value['title'],
|
|
49
|
-
'description': value['description'],
|
|
50
|
-
'enabled': value['enabled'],
|
|
51
|
-
'slug': value['slug'],
|
|
52
|
-
'seoMetadata': CreateProductRequestSeoMetadataToJSON(value['seoMetadata']),
|
|
53
|
-
'tags': value['tags'],
|
|
54
|
-
'variants': value['variants'] == null ? undefined : (value['variants'].map(CreateProductVariantToJSON)),
|
|
55
|
-
'images': value['images'],
|
|
56
|
-
'additionalFiles': value['additionalFiles'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,114 +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 { Attribute } from './Attribute';
|
|
13
|
-
import type { Image } from './Image';
|
|
14
|
-
import type { Price } from './Price';
|
|
15
|
-
import type { Stock } from './Stock';
|
|
16
|
-
import type { VariantProduct } from './VariantProduct';
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface Variant
|
|
21
|
-
*/
|
|
22
|
-
export interface Variant {
|
|
23
|
-
/**
|
|
24
|
-
* Unique object identifier
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof Variant
|
|
27
|
-
*/
|
|
28
|
-
id?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
|
|
31
|
-
* @type {Array<Attribute>}
|
|
32
|
-
* @memberof Variant
|
|
33
|
-
*/
|
|
34
|
-
attributes: Array<Attribute>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof Variant
|
|
39
|
-
*/
|
|
40
|
-
sku: string;
|
|
41
|
-
/**
|
|
42
|
-
* A reference to the resource location
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof Variant
|
|
45
|
-
*/
|
|
46
|
-
ref?: string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {VariantProduct}
|
|
50
|
-
* @memberof Variant
|
|
51
|
-
*/
|
|
52
|
-
product?: VariantProduct;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof Variant
|
|
57
|
-
*/
|
|
58
|
-
readonly sortOrder?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {Price}
|
|
62
|
-
* @memberof Variant
|
|
63
|
-
*/
|
|
64
|
-
retailPrice?: Price;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {Price}
|
|
68
|
-
* @memberof Variant
|
|
69
|
-
*/
|
|
70
|
-
salePrice?: Price;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {Price}
|
|
74
|
-
* @memberof Variant
|
|
75
|
-
*/
|
|
76
|
-
readonly price?: Price;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {Stock}
|
|
80
|
-
* @memberof Variant
|
|
81
|
-
*/
|
|
82
|
-
stock?: Stock;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {Date}
|
|
86
|
-
* @memberof Variant
|
|
87
|
-
*/
|
|
88
|
-
createdAt?: Date;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {Date}
|
|
92
|
-
* @memberof Variant
|
|
93
|
-
*/
|
|
94
|
-
updatedAt?: Date;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {Date}
|
|
98
|
-
* @memberof Variant
|
|
99
|
-
*/
|
|
100
|
-
publishedAt?: Date;
|
|
101
|
-
/**
|
|
102
|
-
* Images
|
|
103
|
-
* @type {Array<Image>}
|
|
104
|
-
* @memberof Variant
|
|
105
|
-
*/
|
|
106
|
-
images?: Array<Image>;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Check if a given object implements the Variant interface.
|
|
110
|
-
*/
|
|
111
|
-
export declare function instanceOfVariant(value: object): boolean;
|
|
112
|
-
export declare function VariantFromJSON(json: any): Variant;
|
|
113
|
-
export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
|
|
114
|
-
export declare function VariantToJSON(value?: Omit<Variant, 'sortOrder' | 'price'> | null): any;
|