@teemill/gfn-catalog 1.0.1 → 1.2.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 +1 -1
- package/dist/apis/VariantsApi.d.ts +17 -2
- package/dist/apis/VariantsApi.js +70 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +10 -14
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +15 -18
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +9 -14
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +19 -24
- package/dist/models/Product.d.ts +19 -1
- package/dist/models/Product.js +20 -18
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +9 -14
- 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 +15 -1
- package/dist/models/Variant.js +25 -22
- 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 +9 -14
- package/dist/models/VariantStock.d.ts +50 -0
- package/dist/models/VariantStock.js +52 -0
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +9 -14
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +1 -1
- package/src/apis/VariantsApi.ts +74 -1
- package/src/models/ApiError.ts +10 -15
- package/src/models/Attribute.ts +14 -19
- package/src/models/AttributeThumbnail.ts +10 -15
- package/src/models/Image.ts +20 -25
- package/src/models/Product.ts +38 -19
- package/src/models/ProductsResponse.ts +10 -15
- package/src/models/Stock.ts +60 -0
- package/src/models/StockResponse.ts +75 -0
- package/src/models/Variant.ts +46 -23
- package/src/models/VariantManufacturerOrigin.ts +68 -0
- package/src/models/VariantProduct.ts +10 -15
- package/src/models/VariantStock.ts +91 -0
- package/src/models/VariantsResponse.ts +10 -15
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* GFN Catalog API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,14 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductsResponseToJSON = exports.ProductsResponseFromJSONTyped = exports.ProductsResponseFromJSON = exports.instanceOfProductsResponse = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var Product_1 = require("./Product");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the ProductsResponse interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfProductsResponse(value) {
|
|
23
|
-
|
|
24
|
-
return isInstance;
|
|
22
|
+
return true;
|
|
25
23
|
}
|
|
26
24
|
exports.instanceOfProductsResponse = instanceOfProductsResponse;
|
|
27
25
|
function ProductsResponseFromJSON(json) {
|
|
@@ -29,25 +27,22 @@ function ProductsResponseFromJSON(json) {
|
|
|
29
27
|
}
|
|
30
28
|
exports.ProductsResponseFromJSON = ProductsResponseFromJSON;
|
|
31
29
|
function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
30
|
+
if (json == null) {
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'products':
|
|
37
|
-
'nextPageToken':
|
|
34
|
+
'products': json['products'] == null ? undefined : (json['products'].map(Product_1.ProductFromJSON)),
|
|
35
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
exports.ProductsResponseFromJSONTyped = ProductsResponseFromJSONTyped;
|
|
41
39
|
function ProductsResponseToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
|
-
'products': value
|
|
50
|
-
'nextPageToken': value
|
|
44
|
+
'products': value['products'] == null ? undefined : (value['products'].map(Product_1.ProductToJSON)),
|
|
45
|
+
'nextPageToken': value['nextPageToken'],
|
|
51
46
|
};
|
|
52
47
|
}
|
|
53
48
|
exports.ProductsResponseToJSON = ProductsResponseToJSON;
|
|
@@ -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.2.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,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GFN Catalog API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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;
|
|
@@ -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.2.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,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GFN Catalog API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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.StockResponseToJSON = exports.StockResponseFromJSONTyped = exports.StockResponseFromJSON = exports.instanceOfStockResponse = void 0;
|
|
17
|
+
var VariantStock_1 = require("./VariantStock");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the StockResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfStockResponse(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfStockResponse = instanceOfStockResponse;
|
|
25
|
+
function StockResponseFromJSON(json) {
|
|
26
|
+
return StockResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.StockResponseFromJSON = StockResponseFromJSON;
|
|
29
|
+
function StockResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'variants': json['variants'] == null ? undefined : (json['variants'].map(VariantStock_1.VariantStockFromJSON)),
|
|
35
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.StockResponseFromJSONTyped = StockResponseFromJSONTyped;
|
|
39
|
+
function StockResponseToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'variants': value['variants'] == null ? undefined : (value['variants'].map(VariantStock_1.VariantStockToJSON)),
|
|
45
|
+
'nextPageToken': value['nextPageToken'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.StockResponseToJSON = StockResponseToJSON;
|
package/dist/models/Variant.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GFN Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Attribute } from './Attribute';
|
|
13
13
|
import type { Image } from './Image';
|
|
14
|
+
import type { Stock } from './Stock';
|
|
15
|
+
import type { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
|
|
14
16
|
import type { VariantProduct } from './VariantProduct';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
@@ -48,6 +50,18 @@ export interface Variant {
|
|
|
48
50
|
* @memberof Variant
|
|
49
51
|
*/
|
|
50
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;
|
|
51
65
|
/**
|
|
52
66
|
* Images
|
|
53
67
|
* @type {Array<Image>}
|
package/dist/models/Variant.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* GFN Catalog API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,18 +14,20 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.VariantToJSON = exports.VariantFromJSONTyped = exports.VariantFromJSON = exports.instanceOfVariant = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var Attribute_1 = require("./Attribute");
|
|
19
18
|
var Image_1 = require("./Image");
|
|
19
|
+
var Stock_1 = require("./Stock");
|
|
20
|
+
var VariantManufacturerOrigin_1 = require("./VariantManufacturerOrigin");
|
|
20
21
|
var VariantProduct_1 = require("./VariantProduct");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Variant interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfVariant(value) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
if (!('sku' in value))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('attributes' in value))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
29
31
|
}
|
|
30
32
|
exports.instanceOfVariant = instanceOfVariant;
|
|
31
33
|
function VariantFromJSON(json) {
|
|
@@ -33,33 +35,34 @@ function VariantFromJSON(json) {
|
|
|
33
35
|
}
|
|
34
36
|
exports.VariantFromJSON = VariantFromJSON;
|
|
35
37
|
function VariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (
|
|
38
|
+
if (json == null) {
|
|
37
39
|
return json;
|
|
38
40
|
}
|
|
39
41
|
return {
|
|
40
|
-
'id':
|
|
41
|
-
'ref':
|
|
42
|
-
'product':
|
|
42
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
43
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
44
|
+
'product': json['product'] == null ? undefined : (0, VariantProduct_1.VariantProductFromJSON)(json['product']),
|
|
43
45
|
'sku': json['sku'],
|
|
44
46
|
'attributes': (json['attributes'].map(Attribute_1.AttributeFromJSON)),
|
|
45
|
-
'
|
|
47
|
+
'manufacturerOrigin': json['manufacturerOrigin'] == null ? undefined : (0, VariantManufacturerOrigin_1.VariantManufacturerOriginFromJSON)(json['manufacturerOrigin']),
|
|
48
|
+
'stock': json['stock'] == null ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
49
|
+
'images': json['images'] == null ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
exports.VariantFromJSONTyped = VariantFromJSONTyped;
|
|
49
53
|
function VariantToJSON(value) {
|
|
50
|
-
if (value
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
if (value === null) {
|
|
54
|
-
return null;
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
55
56
|
}
|
|
56
57
|
return {
|
|
57
|
-
'id': value
|
|
58
|
-
'ref': value
|
|
59
|
-
'product': (0, VariantProduct_1.VariantProductToJSON)(value
|
|
60
|
-
'sku': value
|
|
61
|
-
'attributes': (value
|
|
62
|
-
'
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'ref': value['ref'],
|
|
60
|
+
'product': (0, VariantProduct_1.VariantProductToJSON)(value['product']),
|
|
61
|
+
'sku': value['sku'],
|
|
62
|
+
'attributes': (value['attributes'].map(Attribute_1.AttributeToJSON)),
|
|
63
|
+
'manufacturerOrigin': (0, VariantManufacturerOrigin_1.VariantManufacturerOriginToJSON)(value['manufacturerOrigin']),
|
|
64
|
+
'stock': (0, Stock_1.StockToJSON)(value['stock']),
|
|
65
|
+
'images': value['images'] == null ? undefined : (value['images'].map(Image_1.ImageToJSON)),
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
exports.VariantToJSON = VariantToJSON;
|
|
@@ -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.2.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,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GFN Catalog API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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.VariantManufacturerOriginToJSON = exports.VariantManufacturerOriginFromJSONTyped = exports.VariantManufacturerOriginFromJSON = exports.instanceOfVariantManufacturerOrigin = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the VariantManufacturerOrigin interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfVariantManufacturerOrigin(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfVariantManufacturerOrigin = instanceOfVariantManufacturerOrigin;
|
|
24
|
+
function VariantManufacturerOriginFromJSON(json) {
|
|
25
|
+
return VariantManufacturerOriginFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.VariantManufacturerOriginFromJSON = VariantManufacturerOriginFromJSON;
|
|
28
|
+
function VariantManufacturerOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
34
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.VariantManufacturerOriginFromJSONTyped = VariantManufacturerOriginFromJSONTyped;
|
|
38
|
+
function VariantManufacturerOriginToJSON(value) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'country': value['country'],
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.VariantManufacturerOriginToJSON = VariantManufacturerOriginToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GFN Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* GFN Catalog API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.VariantProductToJSON = exports.VariantProductFromJSONTyped = exports.VariantProductFromJSON = exports.instanceOfVariantProduct = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the VariantProduct interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfVariantProduct(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfVariantProduct = instanceOfVariantProduct;
|
|
26
24
|
function VariantProductFromJSON(json) {
|
|
@@ -28,25 +26,22 @@ function VariantProductFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.VariantProductFromJSON = VariantProductFromJSON;
|
|
30
28
|
function VariantProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'id':
|
|
36
|
-
'ref':
|
|
33
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
34
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
37
35
|
};
|
|
38
36
|
}
|
|
39
37
|
exports.VariantProductFromJSONTyped = VariantProductFromJSONTyped;
|
|
40
38
|
function VariantProductToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
46
41
|
}
|
|
47
42
|
return {
|
|
48
|
-
'id': value
|
|
49
|
-
'ref': value
|
|
43
|
+
'id': value['id'],
|
|
44
|
+
'ref': value['ref'],
|
|
50
45
|
};
|
|
51
46
|
}
|
|
52
47
|
exports.VariantProductToJSON = VariantProductToJSON;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.2.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 { Stock } from './Stock';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VariantStock
|
|
17
|
+
*/
|
|
18
|
+
export interface VariantStock {
|
|
19
|
+
/**
|
|
20
|
+
* Unique object identifier
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof VariantStock
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A reference to the resource location
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VariantStock
|
|
29
|
+
*/
|
|
30
|
+
ref?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A reference to the resource location
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof VariantStock
|
|
35
|
+
*/
|
|
36
|
+
productRef?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Stock}
|
|
40
|
+
* @memberof VariantStock
|
|
41
|
+
*/
|
|
42
|
+
stock?: Stock;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the VariantStock interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfVariantStock(value: object): boolean;
|
|
48
|
+
export declare function VariantStockFromJSON(json: any): VariantStock;
|
|
49
|
+
export declare function VariantStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantStock;
|
|
50
|
+
export declare function VariantStockToJSON(value?: VariantStock | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GFN Catalog API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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.VariantStockToJSON = exports.VariantStockFromJSONTyped = exports.VariantStockFromJSON = exports.instanceOfVariantStock = void 0;
|
|
17
|
+
var Stock_1 = require("./Stock");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the VariantStock interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfVariantStock(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfVariantStock = instanceOfVariantStock;
|
|
25
|
+
function VariantStockFromJSON(json) {
|
|
26
|
+
return VariantStockFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.VariantStockFromJSON = VariantStockFromJSON;
|
|
29
|
+
function VariantStockFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
35
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
36
|
+
'productRef': json['productRef'] == null ? undefined : json['productRef'],
|
|
37
|
+
'stock': json['stock'] == null ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.VariantStockFromJSONTyped = VariantStockFromJSONTyped;
|
|
41
|
+
function VariantStockToJSON(value) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'ref': value['ref'],
|
|
48
|
+
'productRef': value['productRef'],
|
|
49
|
+
'stock': (0, Stock_1.StockToJSON)(value['stock']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.VariantStockToJSON = VariantStockToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GFN Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|