@jetshop/template-trend 5.14.2 → 5.14.3

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 (2) hide show
  1. package/package.json +5 -5
  2. package/schema.graphql +25 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/template-trend",
3
- "version": "5.14.2",
3
+ "version": "5.14.3",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "react-scripts build",
@@ -45,11 +45,11 @@
45
45
  ]
46
46
  },
47
47
  "dependencies": {
48
- "@jetshop/core": "^5.14.2",
48
+ "@jetshop/core": "^5.14.3",
49
49
  "@jetshop/flight-shortcodes": "^2.0.10",
50
- "@jetshop/intl": "^5.14.2",
51
- "@jetshop/react-scripts": "^5.14.2",
52
- "@jetshop/ui": "^5.14.2",
50
+ "@jetshop/intl": "^5.14.3",
51
+ "@jetshop/react-scripts": "^5.14.3",
52
+ "@jetshop/ui": "^5.14.3",
53
53
  "@react-google-maps/api": "~1.7.0",
54
54
  "prop-types": "^15.6.2",
55
55
  "react": "^16.9.0",
package/schema.graphql CHANGED
@@ -1540,7 +1540,10 @@ type Product implements Document {
1540
1540
  badges: [ProductBadge]
1541
1541
 
1542
1542
  """
1543
- The current price. Will be a Customer specific price, if that Customer has a separate price list.
1543
+ The current price.
1544
+ - Will be a Customer specific price if that Customer has a separate price list.
1545
+ - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
1546
+ - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
1544
1547
  """
1545
1548
  price: Price
1546
1549
  hidePrice: Boolean
@@ -1571,6 +1574,16 @@ type Product implements Document {
1571
1574
  """
1572
1575
  priceDateSpan: ProductPriceDateSpan
1573
1576
 
1577
+ """Indicates if this product and its variants has member prices."""
1578
+ hasMemberPrice: Boolean
1579
+
1580
+ """
1581
+ The price a Customer would get if member prices are active and the Customer is logged in.
1582
+ - Will be null if `Product.hasMemberPrice` is false.
1583
+ - Will be set if `Product.hasMemberPrice` is true.
1584
+ """
1585
+ memberPrice: Price
1586
+
1574
1587
  """
1575
1588
  Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
1576
1589
  If 'required' is true the Product should not be purchasable until the field is populated.
@@ -1816,7 +1829,10 @@ type ProductVariant {
1816
1829
  values: [String]!
1817
1830
 
1818
1831
  """
1819
- The current price. Will be a Customer specific price, if that Customer has a separate price list.
1832
+ The current price.
1833
+ - Will be a Customer specific price if that Customer has a separate price list.
1834
+ - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
1835
+ - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
1820
1836
  """
1821
1837
  price: Price
1822
1838
 
@@ -1843,6 +1859,13 @@ type ProductVariant {
1843
1859
  """The time interval of the discounted price."""
1844
1860
  priceDateSpan: ProductPriceDateSpan
1845
1861
 
1862
+ """
1863
+ The price a Customer would get if member prices are active and the Customer is logged in.
1864
+ - Will be null if `Product.hasMemberPrice` is false.
1865
+ - Will be set if `Product.hasMemberPrice` is true.
1866
+ """
1867
+ memberPrice: Price
1868
+
1846
1869
  """
1847
1870
  NB: Carries a performance cost, as asking for this will result in a separate API call in the backend.
1848
1871
  """