@jetshop/core 5.15.0-alpha.705c3635 → 5.15.0-alpha.c587c420

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/core",
3
- "version": "5.15.0-alpha.705c3635",
3
+ "version": "5.15.0-alpha.c587c420",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -13,7 +13,6 @@
13
13
  "scripts"
14
14
  ],
15
15
  "main": "index.js",
16
- "type": "module",
17
16
  "scripts": {
18
17
  "build": "yarn gen-types && tsc --noEmit false",
19
18
  "build-dev": "rm -rf build && tsc --noEmit false --outDir build --module commonjs --target es2017",
@@ -95,7 +94,7 @@
95
94
  "svg-react-loader": "^0.4.5",
96
95
  "ts-node": "^7.0.1",
97
96
  "typed-emitter": "^0.1.0",
98
- "typescript": "^4.3.2",
97
+ "typescript": "^4.8.3",
99
98
  "universal-cookie-express": "^4.0.3",
100
99
  "uuid": "^8.3.2",
101
100
  "web-vitals": "^0.2.3",
package/types.d.ts CHANGED
@@ -241,6 +241,12 @@ export type Category = Document & {
241
241
  * asking for this will result in a separate API call in the backend.
242
242
  */
243
243
  data?: Maybe<Content>;
244
+ /**
245
+ * When set to false, the category will be excluded from sitemap. The frontend
246
+ * implementation should use this value to set meta tags to exclude the category
247
+ * from being indexed by crawlers. Defaults to true.
248
+ */
249
+ allowWebIndexing?: Maybe<Scalars['Boolean']>;
244
250
  };
245
251
 
246
252
 
@@ -1219,11 +1225,13 @@ export type MutationLoginExternalCustomerArgs = {
1219
1225
 
1220
1226
 
1221
1227
  export type MutationLoginArgs = {
1222
- password: Scalars['String'];
1228
+ password?: Maybe<Scalars['String']>;
1223
1229
  email?: Maybe<Scalars['String']>;
1224
1230
  pid?: Maybe<Scalars['String']>;
1225
1231
  externalId?: Maybe<Scalars['String']>;
1226
1232
  memberNumber?: Maybe<Scalars['String']>;
1233
+ externalHashId?: Maybe<Scalars['String']>;
1234
+ timeStamp?: Maybe<Scalars['String']>;
1227
1235
  };
1228
1236
 
1229
1237
 
@@ -1585,6 +1593,12 @@ export type Page = Document & {
1585
1593
  * returned if they are hidden. The `includeHidden` flag has no effect on this.
1586
1594
  */
1587
1595
  subPages?: Maybe<Array<Page>>;
1596
+ /**
1597
+ * When set to false, the page will be excluded from sitemap. The frontend
1598
+ * implementation should use this value to set meta tags to exclude the page from
1599
+ * being indexed by crawlers. Defaults to true.
1600
+ */
1601
+ allowWebIndexing?: Maybe<Scalars['Boolean']>;
1588
1602
  };
1589
1603
 
1590
1604
 
@@ -1705,7 +1719,12 @@ export type Product = Document & {
1705
1719
  relatedProducts?: Maybe<Array<Maybe<Product>>>;
1706
1720
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1707
1721
  badges?: Maybe<Array<Maybe<ProductBadge>>>;
1708
- /** The current price. Will be a Customer specific price, if that Customer has a separate price list. */
1722
+ /**
1723
+ * The current price.
1724
+ * - Will be a Customer specific price if that Customer has a separate price list.
1725
+ * - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
1726
+ * - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
1727
+ */
1709
1728
  price?: Maybe<Price>;
1710
1729
  hidePrice?: Maybe<Scalars['Boolean']>;
1711
1730
  /**
@@ -1725,6 +1744,14 @@ export type Product = Document & {
1725
1744
  * time interval will be that of the variant which price is shown on the product.
1726
1745
  */
1727
1746
  priceDateSpan?: Maybe<ProductPriceDateSpan>;
1747
+ /** Indicates if this product and its variants has member prices. */
1748
+ hasMemberPrice?: Maybe<Scalars['Boolean']>;
1749
+ /**
1750
+ * The price a Customer would get if member prices are active and the Customer is logged in.
1751
+ * - Will be null if `Product.hasMemberPrice` is false.
1752
+ * - Will be set if `Product.hasMemberPrice` is true.
1753
+ */
1754
+ memberPrice?: Maybe<Price>;
1728
1755
  /**
1729
1756
  * Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
1730
1757
  * If 'required' is true the Product should not be purchasable until the field is populated.
@@ -1986,7 +2013,12 @@ export type ProductVariant = {
1986
2013
  articleNumber: Scalars['String'];
1987
2014
  /** Variant values (combination of option values) */
1988
2015
  values: Array<Maybe<Scalars['String']>>;
1989
- /** The current price. Will be a Customer specific price, if that Customer has a separate price list. */
2016
+ /**
2017
+ * The current price.
2018
+ * - Will be a Customer specific price if that Customer has a separate price list.
2019
+ * - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
2020
+ * - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
2021
+ */
1990
2022
  price?: Maybe<Price>;
1991
2023
  /**
1992
2024
  * The previous price (i.e. this will be higher than `price` if the product is
@@ -2002,6 +2034,12 @@ export type ProductVariant = {
2002
2034
  recommendedPrice?: Maybe<Price>;
2003
2035
  /** The time interval of the discounted price. */
2004
2036
  priceDateSpan?: Maybe<ProductPriceDateSpan>;
2037
+ /**
2038
+ * The price a Customer would get if member prices are active and the Customer is logged in.
2039
+ * - Will be null if `Product.hasMemberPrice` is false.
2040
+ * - Will be set if `Product.hasMemberPrice` is true.
2041
+ */
2042
+ memberPrice?: Maybe<Price>;
2005
2043
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
2006
2044
  stockStatus?: Maybe<StockStatus>;
2007
2045
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */