@teemill/product-catalog 1.11.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -29
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1592 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1120 -0
- package/dist/api.js +819 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1120 -0
- package/dist/esm/api.js +808 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +15 -3
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -107
- package/dist/apis/ProductsApi.js +0 -304
- package/dist/apis/VariantsApi.d.ts +0 -50
- package/dist/apis/VariantsApi.js +0 -131
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- package/dist/esm/apis/ProductsApi.d.ts +0 -107
- package/dist/esm/apis/ProductsApi.js +0 -300
- package/dist/esm/apis/VariantsApi.d.ts +0 -50
- package/dist/esm/apis/VariantsApi.js +0 -127
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/Attribute.d.ts +0 -50
- package/dist/esm/models/Attribute.js +0 -49
- package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
- package/dist/esm/models/AttributeThumbnail.js +0 -48
- package/dist/esm/models/CreateProductRequest.d.ts +0 -88
- package/dist/esm/models/CreateProductRequest.js +0 -63
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestImagesInner.js +0 -38
- package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestSeoMetadata.js +0 -38
- package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/esm/models/CreateProductRequestVariantsInner.js +0 -57
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -67
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -46
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -46
- package/dist/esm/models/CreateProductVariant.d.ts +0 -59
- package/dist/esm/models/CreateProductVariant.js +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.js +0 -58
- package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantAttributesInner.js +0 -44
- package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantRetailPrice.js +0 -44
- package/dist/esm/models/Image.d.ts +0 -67
- package/dist/esm/models/Image.js +0 -50
- package/dist/esm/models/ImportProducts200Response.d.ts +0 -31
- package/dist/esm/models/ImportProducts200Response.js +0 -38
- package/dist/esm/models/ModelFile.d.ts +0 -31
- package/dist/esm/models/ModelFile.js +0 -38
- package/dist/esm/models/Price.d.ts +0 -37
- package/dist/esm/models/Price.js +0 -40
- package/dist/esm/models/Product.d.ts +0 -113
- package/dist/esm/models/Product.js +0 -71
- package/dist/esm/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/esm/models/ProductAdditionalFilesInner.js +0 -40
- package/dist/esm/models/ProductsResponse.d.ts +0 -38
- package/dist/esm/models/ProductsResponse.js +0 -41
- package/dist/esm/models/SeoMetadata.d.ts +0 -31
- package/dist/esm/models/SeoMetadata.js +0 -38
- package/dist/esm/models/Stock.d.ts +0 -31
- package/dist/esm/models/Stock.js +0 -38
- package/dist/esm/models/UpdateProductRequest.d.ts +0 -87
- package/dist/esm/models/UpdateProductRequest.js +0 -58
- package/dist/esm/models/Variant.d.ts +0 -114
- package/dist/esm/models/Variant.js +0 -71
- package/dist/esm/models/VariantProduct.d.ts +0 -37
- package/dist/esm/models/VariantProduct.js +0 -40
- package/dist/esm/models/VariantsResponse.d.ts +0 -38
- package/dist/esm/models/VariantsResponse.js +0 -41
- package/dist/esm/models/index.d.ts +0 -23
- package/dist/esm/models/index.js +0 -25
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/Attribute.d.ts +0 -50
- package/dist/models/Attribute.js +0 -56
- package/dist/models/AttributeThumbnail.d.ts +0 -46
- package/dist/models/AttributeThumbnail.js +0 -55
- package/dist/models/CreateProductRequest.d.ts +0 -88
- package/dist/models/CreateProductRequest.js +0 -70
- package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
- package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestImagesInner.js +0 -45
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
- package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/models/CreateProductRequestVariantsInner.js +0 -64
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
- package/dist/models/CreateProductVariant.d.ts +0 -59
- package/dist/models/CreateProductVariant.js +0 -61
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/models/CreateProductVariantApplicationsInner.js +0 -65
- package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductVariantAttributesInner.js +0 -51
- package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductVariantRetailPrice.js +0 -51
- package/dist/models/Image.d.ts +0 -67
- package/dist/models/Image.js +0 -57
- package/dist/models/ImportProducts200Response.d.ts +0 -31
- package/dist/models/ImportProducts200Response.js +0 -45
- package/dist/models/ModelFile.d.ts +0 -31
- package/dist/models/ModelFile.js +0 -45
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/Product.d.ts +0 -113
- package/dist/models/Product.js +0 -78
- package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/models/ProductAdditionalFilesInner.js +0 -47
- package/dist/models/ProductsResponse.d.ts +0 -38
- package/dist/models/ProductsResponse.js +0 -48
- package/dist/models/SeoMetadata.d.ts +0 -31
- package/dist/models/SeoMetadata.js +0 -45
- package/dist/models/Stock.d.ts +0 -31
- package/dist/models/Stock.js +0 -45
- package/dist/models/UpdateProductRequest.d.ts +0 -87
- package/dist/models/UpdateProductRequest.js +0 -65
- package/dist/models/Variant.d.ts +0 -114
- package/dist/models/Variant.js +0 -78
- package/dist/models/VariantProduct.d.ts +0 -37
- package/dist/models/VariantProduct.js +0 -47
- package/dist/models/VariantsResponse.d.ts +0 -38
- package/dist/models/VariantsResponse.js +0 -48
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -41
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProductsApi.ts +0 -453
- package/src/apis/VariantsApi.ts +0 -186
- package/src/apis/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/Attribute.ts +0 -93
- package/src/models/AttributeThumbnail.ts +0 -80
- package/src/models/CreateProductRequest.ts +0 -153
- package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
- package/src/models/CreateProductRequestImagesInner.ts +0 -60
- package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
- package/src/models/CreateProductRequestVariantsInner.ts +0 -124
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
- package/src/models/CreateProductVariant.ts +0 -119
- package/src/models/CreateProductVariantApplicationsInner.ts +0 -93
- package/src/models/CreateProductVariantAttributesInner.ts +0 -70
- package/src/models/CreateProductVariantRetailPrice.ts +0 -70
- package/src/models/Image.ts +0 -108
- package/src/models/ImportProducts200Response.ts +0 -60
- package/src/models/ModelFile.ts +0 -60
- package/src/models/Price.ts +0 -68
- package/src/models/Product.ts +0 -190
- package/src/models/ProductAdditionalFilesInner.ts +0 -68
- package/src/models/ProductsResponse.ts +0 -75
- package/src/models/SeoMetadata.ts +0 -60
- package/src/models/Stock.ts +0 -60
- package/src/models/UpdateProductRequest.ts +0 -145
- package/src/models/Variant.ts +0 -195
- package/src/models/VariantProduct.ts +0 -68
- package/src/models/VariantsResponse.ts +0 -75
- package/src/models/index.ts +0 -25
- package/src/runtime.ts +0 -441
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductAdditionalFilesInnerToJSON = exports.ProductAdditionalFilesInnerFromJSONTyped = exports.ProductAdditionalFilesInnerFromJSON = exports.instanceOfProductAdditionalFilesInner = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfProductAdditionalFilesInner(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfProductAdditionalFilesInner = instanceOfProductAdditionalFilesInner;
|
|
24
|
-
function ProductAdditionalFilesInnerFromJSON(json) {
|
|
25
|
-
return ProductAdditionalFilesInnerFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ProductAdditionalFilesInnerFromJSON = ProductAdditionalFilesInnerFromJSON;
|
|
28
|
-
function ProductAdditionalFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
34
|
-
'src': json['src'] == null ? undefined : json['src'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.ProductAdditionalFilesInnerFromJSONTyped = ProductAdditionalFilesInnerFromJSONTyped;
|
|
38
|
-
function ProductAdditionalFilesInnerToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': value['id'],
|
|
44
|
-
'src': value['src'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.ProductAdditionalFilesInnerToJSON = ProductAdditionalFilesInnerToJSON;
|
|
@@ -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,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductsResponseToJSON = exports.ProductsResponseFromJSONTyped = exports.ProductsResponseFromJSON = exports.instanceOfProductsResponse = void 0;
|
|
17
|
-
const Product_1 = require("./Product");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfProductsResponse(value) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
exports.instanceOfProductsResponse = instanceOfProductsResponse;
|
|
25
|
-
function ProductsResponseFromJSON(json) {
|
|
26
|
-
return ProductsResponseFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
exports.ProductsResponseFromJSON = ProductsResponseFromJSON;
|
|
29
|
-
function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'products': json['products'] == null ? undefined : (json['products'].map(Product_1.ProductFromJSON)),
|
|
35
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.ProductsResponseFromJSONTyped = ProductsResponseFromJSONTyped;
|
|
39
|
-
function ProductsResponseToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'products': value['products'] == null ? undefined : (value['products'].map(Product_1.ProductToJSON)),
|
|
45
|
-
'nextPageToken': value['nextPageToken'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.ProductsResponseToJSON = ProductsResponseToJSON;
|
|
@@ -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,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SeoMetadataToJSON = exports.SeoMetadataFromJSONTyped = exports.SeoMetadataFromJSON = exports.instanceOfSeoMetadata = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the SeoMetadata interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfSeoMetadata(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfSeoMetadata = instanceOfSeoMetadata;
|
|
24
|
-
function SeoMetadataFromJSON(json) {
|
|
25
|
-
return SeoMetadataFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.SeoMetadataFromJSON = SeoMetadataFromJSON;
|
|
28
|
-
function SeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.SeoMetadataFromJSONTyped = SeoMetadataFromJSONTyped;
|
|
37
|
-
function SeoMetadataToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'title': value['title'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.SeoMetadataToJSON = SeoMetadataToJSON;
|
package/dist/models/Stock.d.ts
DELETED
|
@@ -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/models/Stock.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StockToJSON = exports.StockFromJSONTyped = exports.StockFromJSON = exports.instanceOfStock = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Stock interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfStock(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfStock = instanceOfStock;
|
|
24
|
-
function StockFromJSON(json) {
|
|
25
|
-
return StockFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.StockFromJSON = StockFromJSON;
|
|
28
|
-
function StockFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'level': json['level'] == null ? undefined : json['level'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.StockFromJSONTyped = StockFromJSONTyped;
|
|
37
|
-
function StockToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'level': value['level'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.StockToJSON = StockToJSON;
|
|
@@ -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,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateProductRequestToJSON = exports.UpdateProductRequestFromJSONTyped = exports.UpdateProductRequestFromJSON = exports.instanceOfUpdateProductRequest = void 0;
|
|
17
|
-
const CreateProductRequestSeoMetadata_1 = require("./CreateProductRequestSeoMetadata");
|
|
18
|
-
const CreateProductVariant_1 = require("./CreateProductVariant");
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the UpdateProductRequest interface.
|
|
21
|
-
*/
|
|
22
|
-
function instanceOfUpdateProductRequest(value) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfUpdateProductRequest = instanceOfUpdateProductRequest;
|
|
26
|
-
function UpdateProductRequestFromJSON(json) {
|
|
27
|
-
return UpdateProductRequestFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.UpdateProductRequestFromJSON = UpdateProductRequestFromJSON;
|
|
30
|
-
function UpdateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'gfnProductRef': json['gfnProductRef'] == null ? undefined : 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 : (0, CreateProductRequestSeoMetadata_1.CreateProductRequestSeoMetadataFromJSON)(json['seoMetadata']),
|
|
41
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
42
|
-
'variants': json['variants'] == null ? undefined : (json['variants'].map(CreateProductVariant_1.CreateProductVariantFromJSON)),
|
|
43
|
-
'images': json['images'] == null ? undefined : json['images'],
|
|
44
|
-
'additionalFiles': json['additionalFiles'] == null ? undefined : json['additionalFiles'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.UpdateProductRequestFromJSONTyped = UpdateProductRequestFromJSONTyped;
|
|
48
|
-
function UpdateProductRequestToJSON(value) {
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'gfnProductRef': value['gfnProductRef'],
|
|
54
|
-
'title': value['title'],
|
|
55
|
-
'description': value['description'],
|
|
56
|
-
'enabled': value['enabled'],
|
|
57
|
-
'slug': value['slug'],
|
|
58
|
-
'seoMetadata': (0, CreateProductRequestSeoMetadata_1.CreateProductRequestSeoMetadataToJSON)(value['seoMetadata']),
|
|
59
|
-
'tags': value['tags'],
|
|
60
|
-
'variants': value['variants'] == null ? undefined : (value['variants'].map(CreateProductVariant_1.CreateProductVariantToJSON)),
|
|
61
|
-
'images': value['images'],
|
|
62
|
-
'additionalFiles': value['additionalFiles'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.UpdateProductRequestToJSON = UpdateProductRequestToJSON;
|
package/dist/models/Variant.d.ts
DELETED
|
@@ -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;
|
package/dist/models/Variant.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.11.1
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.VariantToJSON = exports.VariantFromJSONTyped = exports.VariantFromJSON = exports.instanceOfVariant = void 0;
|
|
17
|
-
const Attribute_1 = require("./Attribute");
|
|
18
|
-
const Image_1 = require("./Image");
|
|
19
|
-
const Price_1 = require("./Price");
|
|
20
|
-
const Stock_1 = require("./Stock");
|
|
21
|
-
const VariantProduct_1 = require("./VariantProduct");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the Variant interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfVariant(value) {
|
|
26
|
-
if (!('attributes' in value))
|
|
27
|
-
return false;
|
|
28
|
-
if (!('sku' in value))
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
exports.instanceOfVariant = instanceOfVariant;
|
|
33
|
-
function VariantFromJSON(json) {
|
|
34
|
-
return VariantFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
exports.VariantFromJSON = VariantFromJSON;
|
|
37
|
-
function VariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
43
|
-
'attributes': (json['attributes'].map(Attribute_1.AttributeFromJSON)),
|
|
44
|
-
'sku': json['sku'],
|
|
45
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
46
|
-
'product': json['product'] == null ? undefined : (0, VariantProduct_1.VariantProductFromJSON)(json['product']),
|
|
47
|
-
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
48
|
-
'retailPrice': json['retailPrice'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['retailPrice']),
|
|
49
|
-
'salePrice': json['salePrice'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['salePrice']),
|
|
50
|
-
'price': json['price'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['price']),
|
|
51
|
-
'stock': json['stock'] == null ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
52
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
53
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
54
|
-
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
55
|
-
'images': json['images'] == null ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
exports.VariantFromJSONTyped = VariantFromJSONTyped;
|
|
59
|
-
function VariantToJSON(value) {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
'id': value['id'],
|
|
65
|
-
'attributes': (value['attributes'].map(Attribute_1.AttributeToJSON)),
|
|
66
|
-
'sku': value['sku'],
|
|
67
|
-
'ref': value['ref'],
|
|
68
|
-
'product': (0, VariantProduct_1.VariantProductToJSON)(value['product']),
|
|
69
|
-
'retailPrice': (0, Price_1.PriceToJSON)(value['retailPrice']),
|
|
70
|
-
'salePrice': (0, Price_1.PriceToJSON)(value['salePrice']),
|
|
71
|
-
'stock': (0, Stock_1.StockToJSON)(value['stock']),
|
|
72
|
-
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
73
|
-
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
74
|
-
'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
|
|
75
|
-
'images': value['images'] == null ? undefined : (value['images'].map(Image_1.ImageToJSON)),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
exports.VariantToJSON = VariantToJSON;
|
|
@@ -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 VariantProduct
|
|
16
|
-
*/
|
|
17
|
-
export interface VariantProduct {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof VariantProduct
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
* A reference to the resource location
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof VariantProduct
|
|
28
|
-
*/
|
|
29
|
-
ref?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the VariantProduct interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfVariantProduct(value: object): boolean;
|
|
35
|
-
export declare function VariantProductFromJSON(json: any): VariantProduct;
|
|
36
|
-
export declare function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct;
|
|
37
|
-
export declare function VariantProductToJSON(value?: VariantProduct | null): any;
|