@teemill/gfn-catalog 1.1.0 → 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 +3 -0
- 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 +1 -1
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +1 -1
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +1 -1
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/Product.d.ts +1 -1
- package/dist/models/Product.js +1 -1
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +1 -1
- package/dist/models/Stock.d.ts +31 -0
- package/dist/models/Stock.js +45 -0
- package/dist/models/StockResponse.d.ts +38 -0
- package/dist/models/StockResponse.js +48 -0
- package/dist/models/Variant.d.ts +11 -4
- package/dist/models/Variant.js +7 -4
- package/dist/models/VariantManufacturerOrigin.d.ts +37 -0
- package/dist/models/VariantManufacturerOrigin.js +47 -0
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +1 -1
- package/dist/models/VariantStock.d.ts +23 -4
- package/dist/models/VariantStock.js +10 -3
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +1 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +1 -1
- package/src/apis/VariantsApi.ts +74 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeThumbnail.ts +1 -1
- package/src/models/Image.ts +1 -1
- package/src/models/Product.ts +1 -1
- package/src/models/ProductsResponse.ts +1 -1
- package/src/models/Stock.ts +60 -0
- package/src/models/StockResponse.ts +75 -0
- package/src/models/Variant.ts +25 -11
- package/src/models/VariantManufacturerOrigin.ts +68 -0
- package/src/models/VariantProduct.ts +1 -1
- package/src/models/VariantStock.ts +37 -6
- package/src/models/VariantsResponse.ts +1 -1
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,7 +12,10 @@ src/models/AttributeThumbnail.ts
|
|
|
12
12
|
src/models/Image.ts
|
|
13
13
|
src/models/Product.ts
|
|
14
14
|
src/models/ProductsResponse.ts
|
|
15
|
+
src/models/Stock.ts
|
|
16
|
+
src/models/StockResponse.ts
|
|
15
17
|
src/models/Variant.ts
|
|
18
|
+
src/models/VariantManufacturerOrigin.ts
|
|
16
19
|
src/models/VariantProduct.ts
|
|
17
20
|
src/models/VariantStock.ts
|
|
18
21
|
src/models/VariantsResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/gfn-catalog@1.
|
|
1
|
+
## @teemill/gfn-catalog@1.2.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.2.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.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).
|
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.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).
|
|
@@ -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.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).
|
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Variant, VariantsResponse } from '../models/index';
|
|
13
|
+
import type { StockResponse, Variant, VariantsResponse } from '../models/index';
|
|
14
14
|
export interface GetVariantRequest {
|
|
15
15
|
project: string;
|
|
16
16
|
variantId: string;
|
|
17
17
|
fields?: string;
|
|
18
18
|
}
|
|
19
|
+
export interface ListStockRequest {
|
|
20
|
+
project: string;
|
|
21
|
+
pageToken?: number;
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
}
|
|
19
24
|
export interface ListVariantsRequest {
|
|
20
25
|
project: string;
|
|
21
26
|
pageToken?: number;
|
|
@@ -37,6 +42,16 @@ export declare class VariantsApi extends runtime.BaseAPI {
|
|
|
37
42
|
* Get a GFN variant
|
|
38
43
|
*/
|
|
39
44
|
getVariant(project: string, variantId: string, optionalParameters?: runtime.OptionalOnly<GetVariantRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Variant>;
|
|
45
|
+
/**
|
|
46
|
+
* Lists the stock levels for all GFN variants available to the project.
|
|
47
|
+
* List GFN variant stock
|
|
48
|
+
*/
|
|
49
|
+
listStockRaw(requestParameters: ListStockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StockResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* Lists the stock levels for all GFN variants available to the project.
|
|
52
|
+
* List GFN variant stock
|
|
53
|
+
*/
|
|
54
|
+
listStock(project: string, optionalParameters?: runtime.OptionalOnly<ListStockRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StockResponse>;
|
|
40
55
|
/**
|
|
41
56
|
* Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
|
|
42
57
|
* List GFN variants
|
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.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).
|
|
@@ -155,6 +155,75 @@ var VariantsApi = /** @class */ (function (_super) {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
|
+
/**
|
|
159
|
+
* Lists the stock levels for all GFN variants available to the project.
|
|
160
|
+
* List GFN variant stock
|
|
161
|
+
*/
|
|
162
|
+
VariantsApi.prototype.listStockRaw = function (requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
165
|
+
return __generator(this, function (_c) {
|
|
166
|
+
switch (_c.label) {
|
|
167
|
+
case 0:
|
|
168
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
169
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listStock.');
|
|
170
|
+
}
|
|
171
|
+
queryParameters = {};
|
|
172
|
+
if (requestParameters.project !== undefined) {
|
|
173
|
+
queryParameters['project'] = requestParameters.project;
|
|
174
|
+
}
|
|
175
|
+
if (requestParameters.pageToken !== undefined) {
|
|
176
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
177
|
+
}
|
|
178
|
+
if (requestParameters.pageSize !== undefined) {
|
|
179
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
180
|
+
}
|
|
181
|
+
headerParameters = {};
|
|
182
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
183
|
+
// oauth required
|
|
184
|
+
_a = headerParameters;
|
|
185
|
+
_b = "Authorization";
|
|
186
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
187
|
+
case 1:
|
|
188
|
+
// oauth required
|
|
189
|
+
_a[_b] = _c.sent();
|
|
190
|
+
_c.label = 2;
|
|
191
|
+
case 2:
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
194
|
+
}
|
|
195
|
+
return [4 /*yield*/, this.request({
|
|
196
|
+
path: "/v1/gfn/catalog/stock",
|
|
197
|
+
method: 'GET',
|
|
198
|
+
headers: headerParameters,
|
|
199
|
+
query: queryParameters,
|
|
200
|
+
}, initOverrides)];
|
|
201
|
+
case 3:
|
|
202
|
+
response = _c.sent();
|
|
203
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.StockResponseFromJSON)(jsonValue); })];
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Lists the stock levels for all GFN variants available to the project.
|
|
210
|
+
* List GFN variant stock
|
|
211
|
+
*/
|
|
212
|
+
VariantsApi.prototype.listStock = function (project, optionalParameters, initOverrides) {
|
|
213
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
215
|
+
var response;
|
|
216
|
+
return __generator(this, function (_a) {
|
|
217
|
+
switch (_a.label) {
|
|
218
|
+
case 0: return [4 /*yield*/, this.listStockRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
219
|
+
case 1:
|
|
220
|
+
response = _a.sent();
|
|
221
|
+
return [4 /*yield*/, response.value()];
|
|
222
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
158
227
|
/**
|
|
159
228
|
* Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
|
|
160
229
|
* List GFN variants
|
|
@@ -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.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).
|
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.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).
|
|
@@ -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.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).
|
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.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).
|
|
@@ -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.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.
|
|
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).
|
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.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).
|
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.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).
|
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.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).
|
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.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).
|
|
@@ -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.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.
|
|
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).
|
|
@@ -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.
|
|
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,8 +11,9 @@
|
|
|
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
|
-
import type { VariantStock } from './VariantStock';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -51,10 +52,16 @@ export interface Variant {
|
|
|
51
52
|
attributes: Array<Attribute>;
|
|
52
53
|
/**
|
|
53
54
|
*
|
|
54
|
-
* @type {
|
|
55
|
+
* @type {VariantManufacturerOrigin}
|
|
55
56
|
* @memberof Variant
|
|
56
57
|
*/
|
|
57
|
-
|
|
58
|
+
manufacturerOrigin?: VariantManufacturerOrigin;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Stock}
|
|
62
|
+
* @memberof Variant
|
|
63
|
+
*/
|
|
64
|
+
stock?: Stock;
|
|
58
65
|
/**
|
|
59
66
|
* Images
|
|
60
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.
|
|
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).
|
|
@@ -16,8 +16,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.VariantToJSON = exports.VariantFromJSONTyped = exports.VariantFromJSON = exports.instanceOfVariant = void 0;
|
|
17
17
|
var Attribute_1 = require("./Attribute");
|
|
18
18
|
var Image_1 = require("./Image");
|
|
19
|
+
var Stock_1 = require("./Stock");
|
|
20
|
+
var VariantManufacturerOrigin_1 = require("./VariantManufacturerOrigin");
|
|
19
21
|
var VariantProduct_1 = require("./VariantProduct");
|
|
20
|
-
var VariantStock_1 = require("./VariantStock");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Variant interface.
|
|
23
24
|
*/
|
|
@@ -43,7 +44,8 @@ function VariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
'product': json['product'] == null ? undefined : (0, VariantProduct_1.VariantProductFromJSON)(json['product']),
|
|
44
45
|
'sku': json['sku'],
|
|
45
46
|
'attributes': (json['attributes'].map(Attribute_1.AttributeFromJSON)),
|
|
46
|
-
'
|
|
47
|
+
'manufacturerOrigin': json['manufacturerOrigin'] == null ? undefined : (0, VariantManufacturerOrigin_1.VariantManufacturerOriginFromJSON)(json['manufacturerOrigin']),
|
|
48
|
+
'stock': json['stock'] == null ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
47
49
|
'images': json['images'] == null ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -58,7 +60,8 @@ function VariantToJSON(value) {
|
|
|
58
60
|
'product': (0, VariantProduct_1.VariantProductToJSON)(value['product']),
|
|
59
61
|
'sku': value['sku'],
|
|
60
62
|
'attributes': (value['attributes'].map(Attribute_1.AttributeToJSON)),
|
|
61
|
-
'
|
|
63
|
+
'manufacturerOrigin': (0, VariantManufacturerOrigin_1.VariantManufacturerOriginToJSON)(value['manufacturerOrigin']),
|
|
64
|
+
'stock': (0, Stock_1.StockToJSON)(value['stock']),
|
|
62
65
|
'images': value['images'] == null ? undefined : (value['images'].map(Image_1.ImageToJSON)),
|
|
63
66
|
};
|
|
64
67
|
}
|
|
@@ -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;
|