@teemill/gfn-catalog 1.3.0 → 2.0.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 -19
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1646 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1074 -0
- package/dist/api.js +1014 -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 +1074 -0
- package/dist/esm/api.js +995 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/{models/AttributeThumbnail.js → base.js} +38 -26
- 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/{dist/models/Stock.d.ts → index.ts} +8 -21
- package/package.json +15 -3
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -35
- package/dist/apis/ProductsApi.js +0 -85
- package/dist/apis/VariantsApi.d.ts +0 -82
- package/dist/apis/VariantsApi.js +0 -229
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- package/dist/esm/apis/ProductsApi.d.ts +0 -35
- package/dist/esm/apis/ProductsApi.js +0 -81
- package/dist/esm/apis/VariantsApi.d.ts +0 -82
- package/dist/esm/apis/VariantsApi.js +0 -225
- 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/Image.d.ts +0 -67
- package/dist/esm/models/Image.js +0 -50
- package/dist/esm/models/Product.d.ts +0 -67
- package/dist/esm/models/Product.js +0 -52
- package/dist/esm/models/ProductsResponse.d.ts +0 -38
- package/dist/esm/models/ProductsResponse.js +0 -41
- package/dist/esm/models/Stock.d.ts +0 -31
- package/dist/esm/models/Stock.js +0 -38
- package/dist/esm/models/StockResponse.d.ts +0 -38
- package/dist/esm/models/StockResponse.js +0 -41
- package/dist/esm/models/Variant.d.ts +0 -78
- package/dist/esm/models/Variant.js +0 -61
- package/dist/esm/models/VariantManufacturerOrigin.d.ts +0 -37
- package/dist/esm/models/VariantManufacturerOrigin.js +0 -40
- package/dist/esm/models/VariantProduct.d.ts +0 -37
- package/dist/esm/models/VariantProduct.js +0 -40
- package/dist/esm/models/VariantStock.d.ts +0 -50
- package/dist/esm/models/VariantStock.js +0 -45
- 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 -13
- package/dist/esm/models/index.js +0 -15
- 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/Image.d.ts +0 -67
- package/dist/models/Image.js +0 -57
- package/dist/models/Product.d.ts +0 -67
- package/dist/models/Product.js +0 -59
- package/dist/models/ProductsResponse.d.ts +0 -38
- package/dist/models/ProductsResponse.js +0 -48
- package/dist/models/Stock.js +0 -45
- package/dist/models/StockResponse.d.ts +0 -38
- package/dist/models/StockResponse.js +0 -48
- package/dist/models/Variant.d.ts +0 -78
- package/dist/models/Variant.js +0 -68
- package/dist/models/VariantManufacturerOrigin.d.ts +0 -37
- package/dist/models/VariantManufacturerOrigin.js +0 -47
- package/dist/models/VariantProduct.d.ts +0 -37
- package/dist/models/VariantProduct.js +0 -47
- package/dist/models/VariantStock.d.ts +0 -50
- package/dist/models/VariantStock.js +0 -52
- package/dist/models/VariantsResponse.d.ts +0 -38
- package/dist/models/VariantsResponse.js +0 -48
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -31
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProductsApi.ts +0 -113
- package/src/apis/VariantsApi.ts +0 -342
- 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/Image.ts +0 -108
- package/src/models/Product.ts +0 -109
- package/src/models/ProductsResponse.ts +0 -75
- package/src/models/Stock.ts +0 -60
- package/src/models/StockResponse.ts +0 -75
- package/src/models/Variant.ts +0 -149
- package/src/models/VariantManufacturerOrigin.ts +0 -68
- package/src/models/VariantProduct.ts +0 -68
- package/src/models/VariantStock.ts +0 -91
- package/src/models/VariantsResponse.ts +0 -75
- package/src/models/index.ts +0 -15
- package/src/runtime.ts +0 -441
package/dist/models/Image.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
* Image description
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Image
|
|
16
|
-
*/
|
|
17
|
-
export interface Image {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Image
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Image
|
|
28
|
-
*/
|
|
29
|
-
src?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Image
|
|
34
|
-
*/
|
|
35
|
-
alt?: string;
|
|
36
|
-
/**
|
|
37
|
-
* List of variant Ids
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof Image
|
|
40
|
-
*/
|
|
41
|
-
variantIds?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof Image
|
|
46
|
-
*/
|
|
47
|
-
sortOrder?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Image
|
|
52
|
-
*/
|
|
53
|
-
createdAt?: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Image
|
|
58
|
-
*/
|
|
59
|
-
updatedAt?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given object implements the Image interface.
|
|
63
|
-
*/
|
|
64
|
-
export declare function instanceOfImage(value: object): boolean;
|
|
65
|
-
export declare function ImageFromJSON(json: any): Image;
|
|
66
|
-
export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
|
|
67
|
-
export declare function ImageToJSON(value?: Image | null): any;
|
package/dist/models/Image.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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.3.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.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = exports.instanceOfImage = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Image interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfImage(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfImage = instanceOfImage;
|
|
24
|
-
function ImageFromJSON(json) {
|
|
25
|
-
return ImageFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ImageFromJSON = ImageFromJSON;
|
|
28
|
-
function ImageFromJSONTyped(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
|
-
'alt': json['alt'] == null ? undefined : json['alt'],
|
|
36
|
-
'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
|
|
37
|
-
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
38
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
39
|
-
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
43
|
-
function ImageToJSON(value) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'id': value['id'],
|
|
49
|
-
'src': value['src'],
|
|
50
|
-
'alt': value['alt'],
|
|
51
|
-
'variantIds': value['variantIds'],
|
|
52
|
-
'sortOrder': value['sortOrder'],
|
|
53
|
-
'createdAt': value['createdAt'],
|
|
54
|
-
'updatedAt': value['updatedAt'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.ImageToJSON = ImageToJSON;
|
package/dist/models/Product.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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;
|
package/dist/models/Product.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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.3.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.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Product interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfProduct(value) {
|
|
21
|
-
if (!('title' in value))
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfProduct = instanceOfProduct;
|
|
26
|
-
function ProductFromJSON(json) {
|
|
27
|
-
return ProductFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ProductFromJSON = ProductFromJSON;
|
|
30
|
-
function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
37
|
-
'title': json['title'],
|
|
38
|
-
'styleCode': json['styleCode'] == null ? undefined : json['styleCode'],
|
|
39
|
-
'material': json['material'] == null ? undefined : json['material'],
|
|
40
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
41
|
-
'specifications': json['specifications'] == null ? undefined : json['specifications'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
45
|
-
function ProductToJSON(value) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'id': value['id'],
|
|
51
|
-
'ref': value['ref'],
|
|
52
|
-
'title': value['title'],
|
|
53
|
-
'styleCode': value['styleCode'],
|
|
54
|
-
'material': value['material'],
|
|
55
|
-
'description': value['description'],
|
|
56
|
-
'specifications': value['specifications'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
exports.ProductToJSON = ProductToJSON;
|
|
@@ -1,38 +0,0 @@
|
|
|
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;
|
|
@@ -1,48 +0,0 @@
|
|
|
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.3.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.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;
|
package/dist/models/Stock.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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.3.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;
|
|
@@ -1,38 +0,0 @@
|
|
|
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;
|
|
@@ -1,48 +0,0 @@
|
|
|
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.3.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
|
-
const 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
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
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;
|
package/dist/models/Variant.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
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.3.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.VariantToJSON = exports.VariantFromJSONTyped = exports.VariantFromJSON = exports.instanceOfVariant = void 0;
|
|
17
|
-
const Attribute_1 = require("./Attribute");
|
|
18
|
-
const Image_1 = require("./Image");
|
|
19
|
-
const Stock_1 = require("./Stock");
|
|
20
|
-
const VariantManufacturerOrigin_1 = require("./VariantManufacturerOrigin");
|
|
21
|
-
const VariantProduct_1 = require("./VariantProduct");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the Variant interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfVariant(value) {
|
|
26
|
-
if (!('sku' in value))
|
|
27
|
-
return false;
|
|
28
|
-
if (!('attributes' 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
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
44
|
-
'product': json['product'] == null ? undefined : (0, VariantProduct_1.VariantProductFromJSON)(json['product']),
|
|
45
|
-
'sku': json['sku'],
|
|
46
|
-
'attributes': (json['attributes'].map(Attribute_1.AttributeFromJSON)),
|
|
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)),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
exports.VariantFromJSONTyped = VariantFromJSONTyped;
|
|
53
|
-
function VariantToJSON(value) {
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
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)),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
exports.VariantToJSON = VariantToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
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;
|