@teemill/gfn-catalog 0.1.1 → 1.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.
Files changed (39) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +5 -4
  3. package/dist/apis/ProductsApi.d.ts +6 -4
  4. package/dist/apis/ProductsApi.js +10 -4
  5. package/dist/apis/VariantsApi.d.ts +8 -6
  6. package/dist/apis/VariantsApi.js +12 -6
  7. package/dist/models/ApiError.d.ts +2 -2
  8. package/dist/models/ApiError.js +2 -2
  9. package/dist/models/Attribute.d.ts +2 -2
  10. package/dist/models/Attribute.js +2 -2
  11. package/dist/models/AttributeThumbnail.d.ts +2 -2
  12. package/dist/models/AttributeThumbnail.js +2 -2
  13. package/dist/models/Image.d.ts +2 -2
  14. package/dist/models/Image.js +2 -2
  15. package/dist/models/Product.d.ts +3 -10
  16. package/dist/models/Product.js +4 -7
  17. package/dist/models/ProductsResponse.d.ts +8 -2
  18. package/dist/models/ProductsResponse.js +4 -2
  19. package/dist/models/Variant.d.ts +2 -2
  20. package/dist/models/Variant.js +2 -2
  21. package/dist/models/VariantProduct.d.ts +2 -2
  22. package/dist/models/VariantProduct.js +2 -2
  23. package/dist/models/VariantsResponse.d.ts +8 -2
  24. package/dist/models/VariantsResponse.js +4 -2
  25. package/dist/runtime.d.ts +2 -2
  26. package/dist/runtime.js +2 -2
  27. package/package.json +1 -1
  28. package/src/apis/ProductsApi.ts +14 -4
  29. package/src/apis/VariantsApi.ts +16 -6
  30. package/src/models/ApiError.ts +2 -2
  31. package/src/models/Attribute.ts +2 -2
  32. package/src/models/AttributeThumbnail.ts +2 -2
  33. package/src/models/Image.ts +2 -2
  34. package/src/models/Product.ts +5 -20
  35. package/src/models/ProductsResponse.ts +10 -2
  36. package/src/models/Variant.ts +2 -2
  37. package/src/models/VariantProduct.ts +2 -2
  38. package/src/models/VariantsResponse.ts +10 -2
  39. package/src/runtime.ts +2 -2
@@ -1 +1 @@
1
- 7.3.0-SNAPSHOT
1
+ 7.3.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/gfn-catalog@0.1.1
1
+ ## @teemill/gfn-catalog@1.0.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
 
@@ -15,7 +15,7 @@ Module system
15
15
  * CommonJS
16
16
  * ES6 module system
17
17
 
18
- It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
19
 
20
20
  ### Building
21
21
 
@@ -27,7 +27,7 @@ npm run build
27
27
 
28
28
  ### Publishing
29
29
 
30
- First build the package then run ```npm publish```
30
+ First build the package then run `npm publish`
31
31
 
32
32
  ### Consuming
33
33
 
@@ -36,10 +36,11 @@ 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@0.1.1 --save
39
+ npm install @teemill/gfn-catalog@1.0.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
43
43
 
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
13
13
  import type { ProductsResponse } from '../models/index';
14
14
  export interface ListProductsRequest {
15
15
  project: string;
16
+ pageToken?: number;
17
+ pageSize?: number;
16
18
  fields?: string;
17
19
  search?: string;
18
20
  }
@@ -21,12 +23,12 @@ export interface ListProductsRequest {
21
23
  */
22
24
  export declare class ProductsApi extends runtime.BaseAPI {
23
25
  /**
24
- * Lists GFN products
26
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
25
27
  * List GFN products
26
28
  */
27
29
  listProductsRaw(requestParameters: ListProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductsResponse>>;
28
30
  /**
29
- * Lists GFN products
31
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
30
32
  * List GFN products
31
33
  */
32
34
  listProducts(project: string, optionalParameters?: runtime.OptionalOnly<ListProductsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductsResponse>;
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -87,7 +87,7 @@ var ProductsApi = /** @class */ (function (_super) {
87
87
  return _super !== null && _super.apply(this, arguments) || this;
88
88
  }
89
89
  /**
90
- * Lists GFN products
90
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
91
91
  * List GFN products
92
92
  */
93
93
  ProductsApi.prototype.listProductsRaw = function (requestParameters, initOverrides) {
@@ -103,6 +103,12 @@ var ProductsApi = /** @class */ (function (_super) {
103
103
  if (requestParameters.project !== undefined) {
104
104
  queryParameters['project'] = requestParameters.project;
105
105
  }
106
+ if (requestParameters.pageToken !== undefined) {
107
+ queryParameters['pageToken'] = requestParameters.pageToken;
108
+ }
109
+ if (requestParameters.pageSize !== undefined) {
110
+ queryParameters['pageSize'] = requestParameters.pageSize;
111
+ }
106
112
  if (requestParameters.fields !== undefined) {
107
113
  queryParameters['fields'] = requestParameters.fields;
108
114
  }
@@ -137,7 +143,7 @@ var ProductsApi = /** @class */ (function (_super) {
137
143
  });
138
144
  };
139
145
  /**
140
- * Lists GFN products
146
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
141
147
  * List GFN products
142
148
  */
143
149
  ProductsApi.prototype.listProducts = function (project, optionalParameters, initOverrides) {
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,8 @@ export interface GetVariantRequest {
18
18
  }
19
19
  export interface ListVariantsRequest {
20
20
  project: string;
21
+ pageToken?: number;
22
+ pageSize?: number;
21
23
  fields?: string;
22
24
  search?: string;
23
25
  }
@@ -26,22 +28,22 @@ export interface ListVariantsRequest {
26
28
  */
27
29
  export declare class VariantsApi extends runtime.BaseAPI {
28
30
  /**
29
- * Gets a GFN variant by the given id
31
+ * Gets a GFN variant by the given ID.
30
32
  * Get a GFN variant
31
33
  */
32
34
  getVariantRaw(requestParameters: GetVariantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Variant>>;
33
35
  /**
34
- * Gets a GFN variant by the given id
36
+ * Gets a GFN variant by the given ID.
35
37
  * Get a GFN variant
36
38
  */
37
39
  getVariant(project: string, variantId: string, optionalParameters?: runtime.OptionalOnly<GetVariantRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Variant>;
38
40
  /**
39
- * Lists GFN variants
41
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
40
42
  * List GFN variants
41
43
  */
42
44
  listVariantsRaw(requestParameters: ListVariantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariantsResponse>>;
43
45
  /**
44
- * Lists GFN variants
46
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
45
47
  * List GFN variants
46
48
  */
47
49
  listVariants(project: string, optionalParameters?: runtime.OptionalOnly<ListVariantsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VariantsResponse>;
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -87,7 +87,7 @@ var VariantsApi = /** @class */ (function (_super) {
87
87
  return _super !== null && _super.apply(this, arguments) || this;
88
88
  }
89
89
  /**
90
- * Gets a GFN variant by the given id
90
+ * Gets a GFN variant by the given ID.
91
91
  * Get a GFN variant
92
92
  */
93
93
  VariantsApi.prototype.getVariantRaw = function (requestParameters, initOverrides) {
@@ -137,7 +137,7 @@ var VariantsApi = /** @class */ (function (_super) {
137
137
  });
138
138
  };
139
139
  /**
140
- * Gets a GFN variant by the given id
140
+ * Gets a GFN variant by the given ID.
141
141
  * Get a GFN variant
142
142
  */
143
143
  VariantsApi.prototype.getVariant = function (project, variantId, optionalParameters, initOverrides) {
@@ -156,7 +156,7 @@ var VariantsApi = /** @class */ (function (_super) {
156
156
  });
157
157
  };
158
158
  /**
159
- * Lists GFN variants
159
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
160
160
  * List GFN variants
161
161
  */
162
162
  VariantsApi.prototype.listVariantsRaw = function (requestParameters, initOverrides) {
@@ -172,6 +172,12 @@ var VariantsApi = /** @class */ (function (_super) {
172
172
  if (requestParameters.project !== undefined) {
173
173
  queryParameters['project'] = requestParameters.project;
174
174
  }
175
+ if (requestParameters.pageToken !== undefined) {
176
+ queryParameters['pageToken'] = requestParameters.pageToken;
177
+ }
178
+ if (requestParameters.pageSize !== undefined) {
179
+ queryParameters['pageSize'] = requestParameters.pageSize;
180
+ }
175
181
  if (requestParameters.fields !== undefined) {
176
182
  queryParameters['fields'] = requestParameters.fields;
177
183
  }
@@ -206,7 +212,7 @@ var VariantsApi = /** @class */ (function (_super) {
206
212
  });
207
213
  };
208
214
  /**
209
- * Lists GFN variants
215
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
210
216
  * List GFN variants
211
217
  */
212
218
  VariantsApi.prototype.listVariants = function (project, optionalParameters, initOverrides) {
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,15 +1,14 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Image } from './Image';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -39,13 +38,7 @@ export interface Product {
39
38
  * @type {string}
40
39
  * @memberof Product
41
40
  */
42
- sku?: string;
43
- /**
44
- * Images
45
- * @type {Array<Image>}
46
- * @memberof Product
47
- */
48
- images?: Array<Image>;
41
+ styleCode?: string;
49
42
  }
50
43
  /**
51
44
  * Check if a given object implements the Product interface.
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
17
17
  var runtime_1 = require("../runtime");
18
- var Image_1 = require("./Image");
19
18
  /**
20
19
  * Check if a given object implements the Product interface.
21
20
  */
@@ -37,8 +36,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
37
36
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
37
  'ref': !(0, runtime_1.exists)(json, 'ref') ? undefined : json['ref'],
39
38
  'title': json['title'],
40
- 'sku': !(0, runtime_1.exists)(json, 'sku') ? undefined : json['sku'],
41
- 'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
39
+ 'styleCode': !(0, runtime_1.exists)(json, 'styleCode') ? undefined : json['styleCode'],
42
40
  };
43
41
  }
44
42
  exports.ProductFromJSONTyped = ProductFromJSONTyped;
@@ -53,8 +51,7 @@ function ProductToJSON(value) {
53
51
  'id': value.id,
54
52
  'ref': value.ref,
55
53
  'title': value.title,
56
- 'sku': value.sku,
57
- 'images': value.images === undefined ? undefined : (value.images.map(Image_1.ImageToJSON)),
54
+ 'styleCode': value.styleCode,
58
55
  };
59
56
  }
60
57
  exports.ProductToJSON = ProductToJSON;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,6 +22,12 @@ export interface ProductsResponse {
22
22
  * @memberof ProductsResponse
23
23
  */
24
24
  products?: Array<Product>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ProductsResponse
29
+ */
30
+ nextPageToken?: number;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the ProductsResponse interface.
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,6 +34,7 @@ function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'products': !(0, runtime_1.exists)(json, 'products') ? undefined : (json['products'].map(Product_1.ProductFromJSON)),
37
+ 'nextPageToken': !(0, runtime_1.exists)(json, 'nextPageToken') ? undefined : json['nextPageToken'],
37
38
  };
38
39
  }
39
40
  exports.ProductsResponseFromJSONTyped = ProductsResponseFromJSONTyped;
@@ -46,6 +47,7 @@ function ProductsResponseToJSON(value) {
46
47
  }
47
48
  return {
48
49
  'products': value.products === undefined ? undefined : (value.products.map(Product_1.ProductToJSON)),
50
+ 'nextPageToken': value.nextPageToken,
49
51
  };
50
52
  }
51
53
  exports.ProductsResponseToJSON = ProductsResponseToJSON;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,6 +22,12 @@ export interface VariantsResponse {
22
22
  * @memberof VariantsResponse
23
23
  */
24
24
  variants?: Array<Variant>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof VariantsResponse
29
+ */
30
+ nextPageToken?: number;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the VariantsResponse interface.
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,6 +34,7 @@ function VariantsResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'variants': !(0, runtime_1.exists)(json, 'variants') ? undefined : (json['variants'].map(Variant_1.VariantFromJSON)),
37
+ 'nextPageToken': !(0, runtime_1.exists)(json, 'nextPageToken') ? undefined : json['nextPageToken'],
37
38
  };
38
39
  }
39
40
  exports.VariantsResponseFromJSONTyped = VariantsResponseFromJSONTyped;
@@ -46,6 +47,7 @@ function VariantsResponseToJSON(value) {
46
47
  }
47
48
  return {
48
49
  'variants': value.variants === undefined ? undefined : (value.variants.map(Variant_1.VariantToJSON)),
50
+ 'nextPageToken': value.nextPageToken,
49
51
  };
50
52
  }
51
53
  exports.VariantsResponseToJSON = VariantsResponseToJSON;
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GFN Catalog API
3
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
5
+ * The version of the OpenAPI document: 1.0.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/runtime.js CHANGED
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * GFN Catalog API
6
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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: 0.1.1
8
+ * The version of the OpenAPI document: 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/gfn-catalog",
3
- "version": "0.1.1",
3
+ "version": "1.0.0",
4
4
  "description": "OpenAPI client for @teemill/gfn-catalog",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,8 @@ import {
27
27
 
28
28
  export interface ListProductsRequest {
29
29
  project: string;
30
+ pageToken?: number;
31
+ pageSize?: number;
30
32
  fields?: string;
31
33
  search?: string;
32
34
  }
@@ -37,7 +39,7 @@ export interface ListProductsRequest {
37
39
  export class ProductsApi extends runtime.BaseAPI {
38
40
 
39
41
  /**
40
- * Lists GFN products
42
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
41
43
  * List GFN products
42
44
  */
43
45
  async listProductsRaw(requestParameters: ListProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductsResponse>> {
@@ -51,6 +53,14 @@ export class ProductsApi extends runtime.BaseAPI {
51
53
  queryParameters['project'] = requestParameters.project;
52
54
  }
53
55
 
56
+ if (requestParameters.pageToken !== undefined) {
57
+ queryParameters['pageToken'] = requestParameters.pageToken;
58
+ }
59
+
60
+ if (requestParameters.pageSize !== undefined) {
61
+ queryParameters['pageSize'] = requestParameters.pageSize;
62
+ }
63
+
54
64
  if (requestParameters.fields !== undefined) {
55
65
  queryParameters['fields'] = requestParameters.fields;
56
66
  }
@@ -81,7 +91,7 @@ export class ProductsApi extends runtime.BaseAPI {
81
91
  }
82
92
 
83
93
  /**
84
- * Lists GFN products
94
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
85
95
  * List GFN products
86
96
  */
87
97
  async listProducts(
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,6 +36,8 @@ export interface GetVariantRequest {
36
36
 
37
37
  export interface ListVariantsRequest {
38
38
  project: string;
39
+ pageToken?: number;
40
+ pageSize?: number;
39
41
  fields?: string;
40
42
  search?: string;
41
43
  }
@@ -46,7 +48,7 @@ export interface ListVariantsRequest {
46
48
  export class VariantsApi extends runtime.BaseAPI {
47
49
 
48
50
  /**
49
- * Gets a GFN variant by the given id
51
+ * Gets a GFN variant by the given ID.
50
52
  * Get a GFN variant
51
53
  */
52
54
  async getVariantRaw(requestParameters: GetVariantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Variant>> {
@@ -90,7 +92,7 @@ export class VariantsApi extends runtime.BaseAPI {
90
92
  }
91
93
 
92
94
  /**
93
- * Gets a GFN variant by the given id
95
+ * Gets a GFN variant by the given ID.
94
96
  * Get a GFN variant
95
97
  */
96
98
  async getVariant(
@@ -110,7 +112,7 @@ export class VariantsApi extends runtime.BaseAPI {
110
112
  }
111
113
 
112
114
  /**
113
- * Lists GFN variants
115
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
114
116
  * List GFN variants
115
117
  */
116
118
  async listVariantsRaw(requestParameters: ListVariantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariantsResponse>> {
@@ -124,6 +126,14 @@ export class VariantsApi extends runtime.BaseAPI {
124
126
  queryParameters['project'] = requestParameters.project;
125
127
  }
126
128
 
129
+ if (requestParameters.pageToken !== undefined) {
130
+ queryParameters['pageToken'] = requestParameters.pageToken;
131
+ }
132
+
133
+ if (requestParameters.pageSize !== undefined) {
134
+ queryParameters['pageSize'] = requestParameters.pageSize;
135
+ }
136
+
127
137
  if (requestParameters.fields !== undefined) {
128
138
  queryParameters['fields'] = requestParameters.fields;
129
139
  }
@@ -154,7 +164,7 @@ export class VariantsApi extends runtime.BaseAPI {
154
164
  }
155
165
 
156
166
  /**
157
- * Lists GFN variants
167
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
158
168
  * List GFN variants
159
169
  */
160
170
  async listVariants(
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { Image } from './Image';
17
- import {
18
- ImageFromJSON,
19
- ImageFromJSONTyped,
20
- ImageToJSON,
21
- } from './Image';
22
-
23
16
  /**
24
17
  *
25
18
  * @export
@@ -49,13 +42,7 @@ export interface Product {
49
42
  * @type {string}
50
43
  * @memberof Product
51
44
  */
52
- sku?: string;
53
- /**
54
- * Images
55
- * @type {Array<Image>}
56
- * @memberof Product
57
- */
58
- images?: Array<Image>;
45
+ styleCode?: string;
59
46
  }
60
47
 
61
48
  /**
@@ -81,8 +68,7 @@ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
81
68
  'id': !exists(json, 'id') ? undefined : json['id'],
82
69
  'ref': !exists(json, 'ref') ? undefined : json['ref'],
83
70
  'title': json['title'],
84
- 'sku': !exists(json, 'sku') ? undefined : json['sku'],
85
- 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(ImageFromJSON)),
71
+ 'styleCode': !exists(json, 'styleCode') ? undefined : json['styleCode'],
86
72
  };
87
73
  }
88
74
 
@@ -98,8 +84,7 @@ export function ProductToJSON(value?: Product | null): any {
98
84
  'id': value.id,
99
85
  'ref': value.ref,
100
86
  'title': value.title,
101
- 'sku': value.sku,
102
- 'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(ImageToJSON)),
87
+ 'styleCode': value.styleCode,
103
88
  };
104
89
  }
105
90
 
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,6 +32,12 @@ export interface ProductsResponse {
32
32
  * @memberof ProductsResponse
33
33
  */
34
34
  products?: Array<Product>;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof ProductsResponse
39
+ */
40
+ nextPageToken?: number;
35
41
  }
36
42
 
37
43
  /**
@@ -54,6 +60,7 @@ export function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
54
60
  return {
55
61
 
56
62
  'products': !exists(json, 'products') ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
63
+ 'nextPageToken': !exists(json, 'nextPageToken') ? undefined : json['nextPageToken'],
57
64
  };
58
65
  }
59
66
 
@@ -67,6 +74,7 @@ export function ProductsResponseToJSON(value?: ProductsResponse | null): any {
67
74
  return {
68
75
 
69
76
  'products': value.products === undefined ? undefined : ((value.products as Array<any>).map(ProductToJSON)),
77
+ 'nextPageToken': value.nextPageToken,
70
78
  };
71
79
  }
72
80
 
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,6 +32,12 @@ export interface VariantsResponse {
32
32
  * @memberof VariantsResponse
33
33
  */
34
34
  variants?: Array<Variant>;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof VariantsResponse
39
+ */
40
+ nextPageToken?: number;
35
41
  }
36
42
 
37
43
  /**
@@ -54,6 +60,7 @@ export function VariantsResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
54
60
  return {
55
61
 
56
62
  'variants': !exists(json, 'variants') ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
63
+ 'nextPageToken': !exists(json, 'nextPageToken') ? undefined : json['nextPageToken'],
57
64
  };
58
65
  }
59
66
 
@@ -67,6 +74,7 @@ export function VariantsResponseToJSON(value?: VariantsResponse | null): any {
67
74
  return {
68
75
 
69
76
  'variants': value.variants === undefined ? undefined : ((value.variants as Array<any>).map(VariantToJSON)),
77
+ 'nextPageToken': value.nextPageToken,
70
78
  };
71
79
  }
72
80
 
package/src/runtime.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * GFN Catalog API
5
- * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).