@teemill/gfn-catalog 1.1.0 → 1.3.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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +1 -1
- package/dist/apis/ProductsApi.js +47 -128
- package/dist/apis/VariantsApi.d.ts +34 -2
- package/dist/apis/VariantsApi.js +180 -186
- package/dist/esm/apis/ProductsApi.d.ts +35 -0
- package/dist/esm/apis/ProductsApi.js +81 -0
- package/dist/esm/apis/VariantsApi.d.ts +82 -0
- package/dist/esm/apis/VariantsApi.js +225 -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/Image.d.ts +67 -0
- package/dist/esm/models/Image.js +50 -0
- package/dist/esm/models/Product.d.ts +67 -0
- package/dist/esm/models/Product.js +52 -0
- package/dist/esm/models/ProductsResponse.d.ts +38 -0
- package/dist/esm/models/ProductsResponse.js +41 -0
- package/dist/esm/models/Stock.d.ts +31 -0
- package/dist/esm/models/Stock.js +38 -0
- package/dist/esm/models/StockResponse.d.ts +38 -0
- package/dist/esm/models/StockResponse.js +41 -0
- package/dist/esm/models/Variant.d.ts +78 -0
- package/dist/esm/models/Variant.js +61 -0
- package/dist/esm/models/VariantManufacturerOrigin.d.ts +37 -0
- package/dist/esm/models/VariantManufacturerOrigin.js +40 -0
- package/dist/esm/models/VariantProduct.d.ts +37 -0
- package/dist/esm/models/VariantProduct.js +40 -0
- package/dist/esm/models/VariantStock.d.ts +50 -0
- package/dist/esm/models/VariantStock.js +45 -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 +13 -0
- package/dist/esm/models/index.js +15 -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/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/Product.d.ts +1 -1
- package/dist/models/Product.js +1 -1
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +2 -2
- package/dist/models/Stock.d.ts +31 -0
- package/dist/models/Stock.js +45 -0
- package/dist/models/StockResponse.d.ts +38 -0
- package/dist/models/StockResponse.js +48 -0
- package/dist/models/Variant.d.ts +11 -4
- package/dist/models/Variant.js +10 -7
- package/dist/models/VariantManufacturerOrigin.d.ts +37 -0
- package/dist/models/VariantManufacturerOrigin.js +47 -0
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +1 -1
- package/dist/models/VariantStock.d.ts +23 -4
- package/dist/models/VariantStock.js +10 -3
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +2 -2
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/ProductsApi.ts +1 -1
- package/src/apis/VariantsApi.ts +157 -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/Image.ts +1 -1
- package/src/models/Product.ts +1 -1
- package/src/models/ProductsResponse.ts +1 -1
- package/src/models/Stock.ts +60 -0
- package/src/models/StockResponse.ts +75 -0
- package/src/models/Variant.ts +25 -11
- package/src/models/VariantManufacturerOrigin.ts +68 -0
- package/src/models/VariantProduct.ts +1 -1
- package/src/models/VariantStock.ts +37 -6
- package/src/models/VariantsResponse.ts +1 -1
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Product
|
|
16
|
+
*/
|
|
17
|
+
export interface Product {
|
|
18
|
+
/**
|
|
19
|
+
* Unique object identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Product
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A reference to the resource location
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Product
|
|
28
|
+
*/
|
|
29
|
+
ref?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Product
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Product
|
|
40
|
+
*/
|
|
41
|
+
styleCode?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Product
|
|
46
|
+
*/
|
|
47
|
+
material?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Product
|
|
52
|
+
*/
|
|
53
|
+
description?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Product
|
|
58
|
+
*/
|
|
59
|
+
specifications?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the Product interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfProduct(value: object): boolean;
|
|
65
|
+
export declare function ProductFromJSON(json: any): Product;
|
|
66
|
+
export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
|
|
67
|
+
export declare function ProductToJSON(value?: Product | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the Product interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfProduct(value) {
|
|
18
|
+
if (!('title' in value))
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ProductFromJSON(json) {
|
|
23
|
+
return ProductFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
31
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
32
|
+
'title': json['title'],
|
|
33
|
+
'styleCode': json['styleCode'] == null ? undefined : json['styleCode'],
|
|
34
|
+
'material': json['material'] == null ? undefined : json['material'],
|
|
35
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
36
|
+
'specifications': json['specifications'] == null ? undefined : json['specifications'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ProductToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value['id'],
|
|
45
|
+
'ref': value['ref'],
|
|
46
|
+
'title': value['title'],
|
|
47
|
+
'styleCode': value['styleCode'],
|
|
48
|
+
'material': value['material'],
|
|
49
|
+
'description': value['description'],
|
|
50
|
+
'specifications': value['specifications'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { 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;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { 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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Stock
|
|
16
|
+
*/
|
|
17
|
+
export interface Stock {
|
|
18
|
+
/**
|
|
19
|
+
* Current stock level
|
|
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;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the 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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { VariantStock } from './VariantStock';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StockResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StockResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<VariantStock>}
|
|
22
|
+
* @memberof StockResponse
|
|
23
|
+
*/
|
|
24
|
+
variants?: Array<VariantStock>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof StockResponse
|
|
29
|
+
*/
|
|
30
|
+
nextPageToken?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the StockResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfStockResponse(value: object): boolean;
|
|
36
|
+
export declare function StockResponseFromJSON(json: any): StockResponse;
|
|
37
|
+
export declare function StockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockResponse;
|
|
38
|
+
export declare function StockResponseToJSON(value?: StockResponse | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { VariantStockFromJSON, VariantStockToJSON, } from './VariantStock';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the StockResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfStockResponse(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function StockResponseFromJSON(json) {
|
|
22
|
+
return StockResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function StockResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'variants': json['variants'] == null ? undefined : (json['variants'].map(VariantStockFromJSON)),
|
|
30
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function StockResponseToJSON(value) {
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'variants': value['variants'] == null ? undefined : (value['variants'].map(VariantStockToJSON)),
|
|
39
|
+
'nextPageToken': value['nextPageToken'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Attribute } from './Attribute';
|
|
13
|
+
import type { Image } from './Image';
|
|
14
|
+
import type { Stock } from './Stock';
|
|
15
|
+
import type { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
|
|
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
|
+
* A reference to the resource location
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Variant
|
|
33
|
+
*/
|
|
34
|
+
ref?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {VariantProduct}
|
|
38
|
+
* @memberof Variant
|
|
39
|
+
*/
|
|
40
|
+
product?: VariantProduct;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Variant
|
|
45
|
+
*/
|
|
46
|
+
sku: string;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
* @type {Array<Attribute>}
|
|
50
|
+
* @memberof Variant
|
|
51
|
+
*/
|
|
52
|
+
attributes: Array<Attribute>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {VariantManufacturerOrigin}
|
|
56
|
+
* @memberof Variant
|
|
57
|
+
*/
|
|
58
|
+
manufacturerOrigin?: VariantManufacturerOrigin;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Stock}
|
|
62
|
+
* @memberof Variant
|
|
63
|
+
*/
|
|
64
|
+
stock?: Stock;
|
|
65
|
+
/**
|
|
66
|
+
* Images
|
|
67
|
+
* @type {Array<Image>}
|
|
68
|
+
* @memberof Variant
|
|
69
|
+
*/
|
|
70
|
+
images?: Array<Image>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the Variant interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfVariant(value: object): boolean;
|
|
76
|
+
export declare function VariantFromJSON(json: any): Variant;
|
|
77
|
+
export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
|
|
78
|
+
export declare function VariantToJSON(value?: Variant | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AttributeFromJSON, AttributeToJSON, } from './Attribute';
|
|
15
|
+
import { ImageFromJSON, ImageToJSON, } from './Image';
|
|
16
|
+
import { StockFromJSON, StockToJSON, } from './Stock';
|
|
17
|
+
import { VariantManufacturerOriginFromJSON, VariantManufacturerOriginToJSON, } from './VariantManufacturerOrigin';
|
|
18
|
+
import { VariantProductFromJSON, VariantProductToJSON, } from './VariantProduct';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the Variant interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfVariant(value) {
|
|
23
|
+
if (!('sku' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('attributes' in value))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function VariantFromJSON(json) {
|
|
30
|
+
return VariantFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function VariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
39
|
+
'product': json['product'] == null ? undefined : VariantProductFromJSON(json['product']),
|
|
40
|
+
'sku': json['sku'],
|
|
41
|
+
'attributes': (json['attributes'].map(AttributeFromJSON)),
|
|
42
|
+
'manufacturerOrigin': json['manufacturerOrigin'] == null ? undefined : VariantManufacturerOriginFromJSON(json['manufacturerOrigin']),
|
|
43
|
+
'stock': json['stock'] == null ? undefined : StockFromJSON(json['stock']),
|
|
44
|
+
'images': json['images'] == null ? undefined : (json['images'].map(ImageFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function VariantToJSON(value) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'ref': value['ref'],
|
|
54
|
+
'product': VariantProductToJSON(value['product']),
|
|
55
|
+
'sku': value['sku'],
|
|
56
|
+
'attributes': (value['attributes'].map(AttributeToJSON)),
|
|
57
|
+
'manufacturerOrigin': VariantManufacturerOriginToJSON(value['manufacturerOrigin']),
|
|
58
|
+
'stock': StockToJSON(value['stock']),
|
|
59
|
+
'images': value['images'] == null ? undefined : (value['images'].map(ImageToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Where the product was originally produced or manufactured
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VariantManufacturerOrigin
|
|
16
|
+
*/
|
|
17
|
+
export interface VariantManufacturerOrigin {
|
|
18
|
+
/**
|
|
19
|
+
* Country of origin (ISO 3166-1 alpha-2).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VariantManufacturerOrigin
|
|
22
|
+
*/
|
|
23
|
+
country?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the country of origin
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VariantManufacturerOrigin
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the VariantManufacturerOrigin interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfVariantManufacturerOrigin(value: object): boolean;
|
|
35
|
+
export declare function VariantManufacturerOriginFromJSON(json: any): VariantManufacturerOrigin;
|
|
36
|
+
export declare function VariantManufacturerOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantManufacturerOrigin;
|
|
37
|
+
export declare function VariantManufacturerOriginToJSON(value?: VariantManufacturerOrigin | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VariantManufacturerOrigin interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVariantManufacturerOrigin(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VariantManufacturerOriginFromJSON(json) {
|
|
21
|
+
return VariantManufacturerOriginFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VariantManufacturerOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function VariantManufacturerOriginToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'country': value['country'],
|
|
38
|
+
'name': value['name'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFN Catalog API
|
|
3
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface 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;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GFN Catalog API
|
|
5
|
+
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.3.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VariantProduct interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVariantProduct(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VariantProductFromJSON(json) {
|
|
21
|
+
return VariantProductFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VariantProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function VariantProductToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': value['id'],
|
|
38
|
+
'ref': value['ref'],
|
|
39
|
+
};
|
|
40
|
+
}
|