@teemill/gfn-catalog 0.1.1 → 0.2.1

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 (38) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/ProductsApi.d.ts +5 -3
  3. package/dist/apis/ProductsApi.js +9 -3
  4. package/dist/apis/VariantsApi.d.ts +5 -3
  5. package/dist/apis/VariantsApi.js +9 -3
  6. package/dist/models/ApiError.d.ts +1 -1
  7. package/dist/models/ApiError.js +1 -1
  8. package/dist/models/Attribute.d.ts +1 -1
  9. package/dist/models/Attribute.js +1 -1
  10. package/dist/models/AttributeThumbnail.d.ts +1 -1
  11. package/dist/models/AttributeThumbnail.js +1 -1
  12. package/dist/models/Image.d.ts +1 -1
  13. package/dist/models/Image.js +1 -1
  14. package/dist/models/Product.d.ts +1 -1
  15. package/dist/models/Product.js +1 -1
  16. package/dist/models/ProductsResponse.d.ts +7 -1
  17. package/dist/models/ProductsResponse.js +3 -1
  18. package/dist/models/Variant.d.ts +1 -1
  19. package/dist/models/Variant.js +1 -1
  20. package/dist/models/VariantProduct.d.ts +1 -1
  21. package/dist/models/VariantProduct.js +1 -1
  22. package/dist/models/VariantsResponse.d.ts +7 -1
  23. package/dist/models/VariantsResponse.js +3 -1
  24. package/dist/runtime.d.ts +1 -1
  25. package/dist/runtime.js +1 -1
  26. package/package.json +1 -1
  27. package/src/apis/ProductsApi.ts +13 -3
  28. package/src/apis/VariantsApi.ts +13 -3
  29. package/src/models/ApiError.ts +1 -1
  30. package/src/models/Attribute.ts +1 -1
  31. package/src/models/AttributeThumbnail.ts +1 -1
  32. package/src/models/Image.ts +1 -1
  33. package/src/models/Product.ts +1 -1
  34. package/src/models/ProductsResponse.ts +9 -1
  35. package/src/models/Variant.ts +1 -1
  36. package/src/models/VariantProduct.ts +1 -1
  37. package/src/models/VariantsResponse.ts +9 -1
  38. package/src/runtime.ts +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/gfn-catalog@0.1.1
1
+ ## @teemill/gfn-catalog@0.2.1
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@0.1.1 --save
39
+ npm install @teemill/gfn-catalog@0.2.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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 SKU 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 SKU 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>;
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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 SKU 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 SKU using the search parameter.
141
147
  * List GFN products
142
148
  */
143
149
  ProductsApi.prototype.listProducts = function (project, optionalParameters, initOverrides) {
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  }
@@ -36,12 +38,12 @@ export declare class VariantsApi extends runtime.BaseAPI {
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>;
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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) {
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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.
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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;
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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.
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.1
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
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.1
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": "0.2.1",
4
4
  "description": "OpenAPI client for @teemill/gfn-catalog",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
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 SKU 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 SKU using the search parameter.
85
95
  * List GFN products
86
96
  */
87
97
  async listProducts(
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
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
  }
@@ -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(
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
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
 
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
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
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Manage GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).