@jetshop/core 5.14.2 → 5.14.3
Sign up to get free protection for your applications and to get access to all the features.
- package/ci/.gitlab-ci.yml +3 -0
- package/hooks/ProductList/list-transforms.d.ts +2 -0
- package/package.json +1 -1
- package/types.d.ts +26 -2
@@ -47,6 +47,8 @@ productQueryResult: ProductsQuery): {
|
|
47
47
|
defaultPreviousPrice?: import("../../types").Price;
|
48
48
|
recommendedPrice?: import("../../types").Price;
|
49
49
|
priceDateSpan?: import("../../types").ProductPriceDateSpan;
|
50
|
+
hasMemberPrice?: boolean;
|
51
|
+
memberPrice?: import("../../types").Price;
|
50
52
|
customerComments?: import("../../types").ProductComment[];
|
51
53
|
stockStatus?: import("../../types").StockStatus;
|
52
54
|
customFields?: import("../../types").CustomField[];
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -1707,7 +1707,12 @@ export type Product = Document & {
|
|
1707
1707
|
relatedProducts?: Maybe<Array<Maybe<Product>>>;
|
1708
1708
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|
1709
1709
|
badges?: Maybe<Array<Maybe<ProductBadge>>>;
|
1710
|
-
/**
|
1710
|
+
/**
|
1711
|
+
* The current price.
|
1712
|
+
* - Will be a Customer specific price if that Customer has a separate price list.
|
1713
|
+
* - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
|
1714
|
+
* - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
|
1715
|
+
*/
|
1711
1716
|
price?: Maybe<Price>;
|
1712
1717
|
hidePrice?: Maybe<Scalars['Boolean']>;
|
1713
1718
|
/**
|
@@ -1727,6 +1732,14 @@ export type Product = Document & {
|
|
1727
1732
|
* time interval will be that of the variant which price is shown on the product.
|
1728
1733
|
*/
|
1729
1734
|
priceDateSpan?: Maybe<ProductPriceDateSpan>;
|
1735
|
+
/** Indicates if this product and its variants has member prices. */
|
1736
|
+
hasMemberPrice?: Maybe<Scalars['Boolean']>;
|
1737
|
+
/**
|
1738
|
+
* The price a Customer would get if member prices are active and the Customer is logged in.
|
1739
|
+
* - Will be null if `Product.hasMemberPrice` is false.
|
1740
|
+
* - Will be set if `Product.hasMemberPrice` is true.
|
1741
|
+
*/
|
1742
|
+
memberPrice?: Maybe<Price>;
|
1730
1743
|
/**
|
1731
1744
|
* Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
|
1732
1745
|
* If 'required' is true the Product should not be purchasable until the field is populated.
|
@@ -1988,7 +2001,12 @@ export type ProductVariant = {
|
|
1988
2001
|
articleNumber: Scalars['String'];
|
1989
2002
|
/** Variant values (combination of option values) */
|
1990
2003
|
values: Array<Maybe<Scalars['String']>>;
|
1991
|
-
/**
|
2004
|
+
/**
|
2005
|
+
* The current price.
|
2006
|
+
* - Will be a Customer specific price if that Customer has a separate price list.
|
2007
|
+
* - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
|
2008
|
+
* - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
|
2009
|
+
*/
|
1992
2010
|
price?: Maybe<Price>;
|
1993
2011
|
/**
|
1994
2012
|
* The previous price (i.e. this will be higher than `price` if the product is
|
@@ -2004,6 +2022,12 @@ export type ProductVariant = {
|
|
2004
2022
|
recommendedPrice?: Maybe<Price>;
|
2005
2023
|
/** The time interval of the discounted price. */
|
2006
2024
|
priceDateSpan?: Maybe<ProductPriceDateSpan>;
|
2025
|
+
/**
|
2026
|
+
* The price a Customer would get if member prices are active and the Customer is logged in.
|
2027
|
+
* - Will be null if `Product.hasMemberPrice` is false.
|
2028
|
+
* - Will be set if `Product.hasMemberPrice` is true.
|
2029
|
+
*/
|
2030
|
+
memberPrice?: Maybe<Price>;
|
2007
2031
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|
2008
2032
|
stockStatus?: Maybe<StockStatus>;
|
2009
2033
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|