@teemill/gfn-catalog 1.0.0 → 1.1.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 +1 -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 +1 -1
- package/dist/apis/VariantsApi.js +1 -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/Variant.d.ts +8 -1
- package/dist/models/Variant.js +22 -22
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +9 -14
- package/dist/models/VariantStock.d.ts +31 -0
- package/dist/models/VariantStock.js +45 -0
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +9 -14
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -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 +1 -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/Variant.ts +32 -23
- package/src/models/VariantProduct.ts +10 -15
- package/src/models/VariantStock.ts +60 -0
- package/src/models/VariantsResponse.ts +10 -15
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.4.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/gfn-catalog@1.
|
|
1
|
+
## @teemill/gfn-catalog@1.1.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/gfn-catalog@1.
|
|
39
|
+
npm install @teemill/gfn-catalog@1.1.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/ProductsApi.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/VariantsApi.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ApiError interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfApiError(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
21
|
+
if (!('message' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
25
24
|
}
|
|
26
25
|
exports.instanceOfApiError = instanceOfApiError;
|
|
27
26
|
function ApiErrorFromJSON(json) {
|
|
@@ -29,25 +28,22 @@ function ApiErrorFromJSON(json) {
|
|
|
29
28
|
}
|
|
30
29
|
exports.ApiErrorFromJSON = ApiErrorFromJSON;
|
|
31
30
|
function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
33
32
|
return json;
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
|
-
'code':
|
|
35
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
37
36
|
'message': json['message'],
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
|
|
41
40
|
function ApiErrorToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
47
43
|
}
|
|
48
44
|
return {
|
|
49
|
-
'code': value
|
|
50
|
-
'message': value
|
|
45
|
+
'code': value['code'],
|
|
46
|
+
'message': value['message'],
|
|
51
47
|
};
|
|
52
48
|
}
|
|
53
49
|
exports.ApiErrorToJSON = ApiErrorToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Attribute.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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,16 +14,16 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AttributeToJSON = exports.AttributeFromJSONTyped = exports.AttributeFromJSON = exports.instanceOfAttribute = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var AttributeThumbnail_1 = require("./AttributeThumbnail");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the Attribute interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfAttribute(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
if (!('name' in value))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('value' in value))
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
27
|
}
|
|
28
28
|
exports.instanceOfAttribute = instanceOfAttribute;
|
|
29
29
|
function AttributeFromJSON(json) {
|
|
@@ -31,29 +31,26 @@ function AttributeFromJSON(json) {
|
|
|
31
31
|
}
|
|
32
32
|
exports.AttributeFromJSON = AttributeFromJSON;
|
|
33
33
|
function AttributeFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'name': json['name'],
|
|
39
39
|
'value': json['value'],
|
|
40
|
-
'thumbnail':
|
|
41
|
-
'tags':
|
|
40
|
+
'thumbnail': json['thumbnail'] == null ? undefined : (0, AttributeThumbnail_1.AttributeThumbnailFromJSON)(json['thumbnail']),
|
|
41
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
exports.AttributeFromJSONTyped = AttributeFromJSONTyped;
|
|
45
45
|
function AttributeToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
51
48
|
}
|
|
52
49
|
return {
|
|
53
|
-
'name': value
|
|
54
|
-
'value': value
|
|
55
|
-
'thumbnail': (0, AttributeThumbnail_1.AttributeThumbnailToJSON)(value
|
|
56
|
-
'tags': value
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'value': value['value'],
|
|
52
|
+
'thumbnail': (0, AttributeThumbnail_1.AttributeThumbnailToJSON)(value['thumbnail']),
|
|
53
|
+
'tags': value['tags'],
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
56
|
exports.AttributeToJSON = AttributeToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AttributeThumbnailToJSON = exports.AttributeThumbnailFromJSONTyped = exports.AttributeThumbnailFromJSON = exports.instanceOfAttributeThumbnail = exports.AttributeThumbnailTypeEnum = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* @export
|
|
20
19
|
*/
|
|
@@ -27,8 +26,7 @@ exports.AttributeThumbnailTypeEnum = {
|
|
|
27
26
|
* Check if a given object implements the AttributeThumbnail interface.
|
|
28
27
|
*/
|
|
29
28
|
function instanceOfAttributeThumbnail(value) {
|
|
30
|
-
|
|
31
|
-
return isInstance;
|
|
29
|
+
return true;
|
|
32
30
|
}
|
|
33
31
|
exports.instanceOfAttributeThumbnail = instanceOfAttributeThumbnail;
|
|
34
32
|
function AttributeThumbnailFromJSON(json) {
|
|
@@ -36,25 +34,22 @@ function AttributeThumbnailFromJSON(json) {
|
|
|
36
34
|
}
|
|
37
35
|
exports.AttributeThumbnailFromJSON = AttributeThumbnailFromJSON;
|
|
38
36
|
function AttributeThumbnailFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (
|
|
37
|
+
if (json == null) {
|
|
40
38
|
return json;
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
|
-
'type':
|
|
44
|
-
'value':
|
|
41
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
42
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
45
43
|
};
|
|
46
44
|
}
|
|
47
45
|
exports.AttributeThumbnailFromJSONTyped = AttributeThumbnailFromJSONTyped;
|
|
48
46
|
function AttributeThumbnailToJSON(value) {
|
|
49
|
-
if (value
|
|
50
|
-
return
|
|
51
|
-
}
|
|
52
|
-
if (value === null) {
|
|
53
|
-
return null;
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
54
49
|
}
|
|
55
50
|
return {
|
|
56
|
-
'type': value
|
|
57
|
-
'value': value
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
'value': value['value'],
|
|
58
53
|
};
|
|
59
54
|
}
|
|
60
55
|
exports.AttributeThumbnailToJSON = AttributeThumbnailToJSON;
|
package/dist/models/Image.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Image.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = exports.instanceOfImage = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the Image interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfImage(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfImage = instanceOfImage;
|
|
26
24
|
function ImageFromJSON(json) {
|
|
@@ -28,35 +26,32 @@ function ImageFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.ImageFromJSON = ImageFromJSON;
|
|
30
28
|
function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'id':
|
|
36
|
-
'src':
|
|
37
|
-
'alt':
|
|
38
|
-
'variantIds':
|
|
39
|
-
'sortOrder':
|
|
40
|
-
'createdAt':
|
|
41
|
-
'updatedAt':
|
|
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'],
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
45
43
|
function ImageToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
51
46
|
}
|
|
52
47
|
return {
|
|
53
|
-
'id': value
|
|
54
|
-
'src': value
|
|
55
|
-
'alt': value
|
|
56
|
-
'variantIds': value
|
|
57
|
-
'sortOrder': value
|
|
58
|
-
'createdAt': value
|
|
59
|
-
'updatedAt': value
|
|
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'],
|
|
60
55
|
};
|
|
61
56
|
}
|
|
62
57
|
exports.ImageToJSON = ImageToJSON;
|
package/dist/models/Product.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -39,6 +39,24 @@ export interface Product {
|
|
|
39
39
|
* @memberof Product
|
|
40
40
|
*/
|
|
41
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;
|
|
42
60
|
}
|
|
43
61
|
/**
|
|
44
62
|
* Check if a given object implements the Product interface.
|
package/dist/models/Product.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the Product interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfProduct(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
21
|
+
if (!('title' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
25
24
|
}
|
|
26
25
|
exports.instanceOfProduct = instanceOfProduct;
|
|
27
26
|
function ProductFromJSON(json) {
|
|
@@ -29,29 +28,32 @@ function ProductFromJSON(json) {
|
|
|
29
28
|
}
|
|
30
29
|
exports.ProductFromJSON = ProductFromJSON;
|
|
31
30
|
function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
33
32
|
return json;
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
|
-
'id':
|
|
37
|
-
'ref':
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
38
37
|
'title': json['title'],
|
|
39
|
-
'styleCode':
|
|
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'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
43
45
|
function ProductToJSON(value) {
|
|
44
|
-
if (value
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
49
48
|
}
|
|
50
49
|
return {
|
|
51
|
-
'id': value
|
|
52
|
-
'ref': value
|
|
53
|
-
'title': value
|
|
54
|
-
'styleCode': value
|
|
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'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
exports.ProductToJSON = ProductToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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;
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Attribute } from './Attribute';
|
|
13
13
|
import type { Image } from './Image';
|
|
14
14
|
import type { VariantProduct } from './VariantProduct';
|
|
15
|
+
import type { VariantStock } from './VariantStock';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -48,6 +49,12 @@ export interface Variant {
|
|
|
48
49
|
* @memberof Variant
|
|
49
50
|
*/
|
|
50
51
|
attributes: Array<Attribute>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {VariantStock}
|
|
55
|
+
* @memberof Variant
|
|
56
|
+
*/
|
|
57
|
+
stock?: VariantStock;
|
|
51
58
|
/**
|
|
52
59
|
* Images
|
|
53
60
|
* @type {Array<Image>}
|