@teemill/gfn-catalog 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProductsApi.d.ts +1 -1
  4. package/dist/apis/ProductsApi.js +1 -1
  5. package/dist/apis/VariantsApi.d.ts +17 -2
  6. package/dist/apis/VariantsApi.js +70 -1
  7. package/dist/models/ApiError.d.ts +1 -1
  8. package/dist/models/ApiError.js +1 -1
  9. package/dist/models/Attribute.d.ts +1 -1
  10. package/dist/models/Attribute.js +1 -1
  11. package/dist/models/AttributeThumbnail.d.ts +1 -1
  12. package/dist/models/AttributeThumbnail.js +1 -1
  13. package/dist/models/Image.d.ts +1 -1
  14. package/dist/models/Image.js +1 -1
  15. package/dist/models/Product.d.ts +1 -1
  16. package/dist/models/Product.js +1 -1
  17. package/dist/models/ProductsResponse.d.ts +1 -1
  18. package/dist/models/ProductsResponse.js +1 -1
  19. package/dist/models/Stock.d.ts +31 -0
  20. package/dist/models/Stock.js +45 -0
  21. package/dist/models/StockResponse.d.ts +38 -0
  22. package/dist/models/StockResponse.js +48 -0
  23. package/dist/models/Variant.d.ts +11 -4
  24. package/dist/models/Variant.js +7 -4
  25. package/dist/models/VariantManufacturerOrigin.d.ts +37 -0
  26. package/dist/models/VariantManufacturerOrigin.js +47 -0
  27. package/dist/models/VariantProduct.d.ts +1 -1
  28. package/dist/models/VariantProduct.js +1 -1
  29. package/dist/models/VariantStock.d.ts +23 -4
  30. package/dist/models/VariantStock.js +10 -3
  31. package/dist/models/VariantsResponse.d.ts +1 -1
  32. package/dist/models/VariantsResponse.js +1 -1
  33. package/dist/models/index.d.ts +3 -0
  34. package/dist/models/index.js +3 -0
  35. package/dist/runtime.d.ts +1 -1
  36. package/dist/runtime.js +1 -1
  37. package/package.json +1 -1
  38. package/src/apis/ProductsApi.ts +1 -1
  39. package/src/apis/VariantsApi.ts +74 -1
  40. package/src/models/ApiError.ts +1 -1
  41. package/src/models/Attribute.ts +1 -1
  42. package/src/models/AttributeThumbnail.ts +1 -1
  43. package/src/models/Image.ts +1 -1
  44. package/src/models/Product.ts +1 -1
  45. package/src/models/ProductsResponse.ts +1 -1
  46. package/src/models/Stock.ts +60 -0
  47. package/src/models/StockResponse.ts +75 -0
  48. package/src/models/Variant.ts +25 -11
  49. package/src/models/VariantManufacturerOrigin.ts +68 -0
  50. package/src/models/VariantProduct.ts +1 -1
  51. package/src/models/VariantStock.ts +37 -6
  52. package/src/models/VariantsResponse.ts +1 -1
  53. package/src/models/index.ts +3 -0
  54. package/src/runtime.ts +1 -1
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
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: 1.1.0
7
+ * The version of the OpenAPI document: 1.2.0
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
  * 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: 1.1.0
7
+ * The version of the OpenAPI document: 1.2.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,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { Stock } from './Stock';
17
+ import {
18
+ StockFromJSON,
19
+ StockFromJSONTyped,
20
+ StockToJSON,
21
+ } from './Stock';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -20,11 +27,29 @@ import { mapValues } from '../runtime';
20
27
  */
21
28
  export interface VariantStock {
22
29
  /**
23
- * Current stock level
24
- * @type {number}
30
+ * Unique object identifier
31
+ * @type {string}
32
+ * @memberof VariantStock
33
+ */
34
+ id?: string;
35
+ /**
36
+ * A reference to the resource location
37
+ * @type {string}
38
+ * @memberof VariantStock
39
+ */
40
+ ref?: string;
41
+ /**
42
+ * A reference to the resource location
43
+ * @type {string}
44
+ * @memberof VariantStock
45
+ */
46
+ productRef?: string;
47
+ /**
48
+ *
49
+ * @type {Stock}
25
50
  * @memberof VariantStock
26
51
  */
27
- level?: number;
52
+ stock?: Stock;
28
53
  }
29
54
 
30
55
  /**
@@ -44,7 +69,10 @@ export function VariantStockFromJSONTyped(json: any, ignoreDiscriminator: boolea
44
69
  }
45
70
  return {
46
71
 
47
- 'level': json['level'] == null ? undefined : json['level'],
72
+ 'id': json['id'] == null ? undefined : json['id'],
73
+ 'ref': json['ref'] == null ? undefined : json['ref'],
74
+ 'productRef': json['productRef'] == null ? undefined : json['productRef'],
75
+ 'stock': json['stock'] == null ? undefined : StockFromJSON(json['stock']),
48
76
  };
49
77
  }
50
78
 
@@ -54,7 +82,10 @@ export function VariantStockToJSON(value?: VariantStock | null): any {
54
82
  }
55
83
  return {
56
84
 
57
- 'level': value['level'],
85
+ 'id': value['id'],
86
+ 'ref': value['ref'],
87
+ 'productRef': value['productRef'],
88
+ 'stock': StockToJSON(value['stock']),
58
89
  };
59
90
  }
60
91
 
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
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: 1.1.0
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6,7 +6,10 @@ export * from './AttributeThumbnail';
6
6
  export * from './Image';
7
7
  export * from './Product';
8
8
  export * from './ProductsResponse';
9
+ export * from './Stock';
10
+ export * from './StockResponse';
9
11
  export * from './Variant';
12
+ export * from './VariantManufacturerOrigin';
10
13
  export * from './VariantProduct';
11
14
  export * from './VariantStock';
12
15
  export * from './VariantsResponse';
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
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: 1.1.0
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).