@jetshop/core 5.8.2 → 5.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/ChannelHandler/ChannelHandler.js +32 -27
  2. package/ChannelHandler/ChannelHandler.js.map +1 -1
  3. package/analytics/AnalyticsProvider.js +11 -3
  4. package/analytics/AnalyticsProvider.js.map +1 -1
  5. package/analytics/integrations/ga4.d.ts +2 -1
  6. package/analytics/integrations/ga4.js +16 -9
  7. package/analytics/integrations/ga4.js.map +1 -1
  8. package/analytics/integrations/gtag/gtag.d.ts +2 -1
  9. package/analytics/integrations/gtag/gtag.js +20 -10
  10. package/analytics/integrations/gtag/gtag.js.map +1 -1
  11. package/analytics/integrations/gtm/index.d.ts +10 -1
  12. package/analytics/integrations/gtm/index.js +175 -2
  13. package/analytics/integrations/gtm/index.js.map +1 -1
  14. package/analytics/trackerRegistry.d.ts +2 -1
  15. package/analytics/trackerRegistry.js +22 -50
  16. package/analytics/trackerRegistry.js.map +1 -1
  17. package/boot/apollo.d.ts +0 -1
  18. package/boot/apollo.js +9 -5
  19. package/boot/apollo.js.map +1 -1
  20. package/boot/client/startClient.js +2 -6
  21. package/boot/client/startClient.js.map +1 -1
  22. package/boot/server/createRenderer.js +2 -2
  23. package/boot/server/createRenderer.js.map +1 -1
  24. package/cart/useAddToCart.d.ts +2 -2
  25. package/cart/useAddToCart.js +13 -12
  26. package/cart/useAddToCart.js.map +1 -1
  27. package/ci/.gitlab-ci.yml +1 -1
  28. package/components/Auth/CustomerUpdateForm.js +5 -2
  29. package/components/Auth/CustomerUpdateForm.js.map +1 -1
  30. package/components/Cart/CartIdContext.js +18 -18
  31. package/components/Cart/CartIdContext.js.map +1 -1
  32. package/components/ConfigProvider.d.ts +1 -0
  33. package/components/ConfigProvider.js.map +1 -1
  34. package/components/DynamicRoute/ContentRoute.d.ts +1 -1
  35. package/components/DynamicRoute/ProductRoute.d.ts +1 -0
  36. package/components/DynamicRoute/ProductRoute.js +4 -2
  37. package/components/DynamicRoute/ProductRoute.js.map +1 -1
  38. package/components/DynamicRoute/RouteResolver.js +4 -2
  39. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  40. package/components/Mutation/AddToCart/addToCartUtils.js +3 -2
  41. package/components/Mutation/AddToCart/addToCartUtils.js.map +1 -1
  42. package/components/Mutation/RemoveFromCart.d.ts +1 -1
  43. package/components/OpenGraph/OpenGraph.test.js +32 -5
  44. package/components/OpenGraph/OpenGraphProductData.d.ts +6 -1
  45. package/components/OpenGraph/OpenGraphProductData.js +18 -12
  46. package/components/OpenGraph/OpenGraphProductData.js.map +1 -1
  47. package/components/Query/CartProvider.js +3 -3
  48. package/components/Query/CartProvider.js.map +1 -1
  49. package/hooks/PackageProducts/packagePriceQuery.gql +1 -1
  50. package/hooks/ProductList/action-creators.js +15 -15
  51. package/hooks/ProductList/action-creators.js.map +1 -1
  52. package/hooks/ProductList/list-transforms.d.ts +1 -0
  53. package/hooks/ProductList/useProductList.d.ts +3 -3
  54. package/hooks/ProductList/useProductList.js +10 -10
  55. package/hooks/ProductList/useProductList.js.map +1 -1
  56. package/hooks/useInfinitePagination.js +2 -2
  57. package/hooks/useInfinitePagination.js.map +1 -1
  58. package/hooks/useRoutePreload.js +2 -2
  59. package/hooks/useRoutePreload.js.map +1 -1
  60. package/package.json +5 -5
  61. package/sentry/client.js +9 -4
  62. package/sentry/client.js.map +1 -1
  63. package/sentry/common.d.ts +1 -0
  64. package/sentry/common.js +5 -0
  65. package/sentry/common.js.map +1 -0
  66. package/sentry/server.js +11 -2
  67. package/sentry/server.js.map +1 -1
  68. package/server/tracking/facebook.js +12 -5
  69. package/server/tracking/facebook.js.map +1 -1
  70. package/server/tracking/middleware.js +1 -1
  71. package/server/tracking/middleware.js.map +1 -1
  72. package/server/tracking/types.d.ts +1 -0
  73. package/types.d.ts +37 -12
package/types.d.ts CHANGED
@@ -1055,9 +1055,15 @@ export type Mutation = {
1055
1055
  signUp?: Maybe<SignUpResponse>;
1056
1056
  /**
1057
1057
  * This mutation's purpose is to update a existing customer's information. An
1058
- * authorization token is needed in the request, in order to be able to delete the customer.
1058
+ * authorization token is needed in the request, in order to be able to update the customer.
1059
1059
  */
1060
1060
  updateCustomer?: Maybe<CustomerUpdateResponse>;
1061
+ /**
1062
+ * This mutation's purpose is to update a existing customer's price list using an
1063
+ * access code. An authorization token is needed in the request, in order to be
1064
+ * able to update the customer.
1065
+ */
1066
+ updateCustomerPriceList?: Maybe<UpdateCustomerPriceListResult>;
1061
1067
  /** The updatePassword mutation updates the customers password. Both the old password and a new password is a requirement. */
1062
1068
  updatePassword?: Maybe<UpdatePasswordResult>;
1063
1069
  /**
@@ -1191,6 +1197,11 @@ export type MutationUpdateCustomerArgs = {
1191
1197
  };
1192
1198
 
1193
1199
 
1200
+ export type MutationUpdateCustomerPriceListArgs = {
1201
+ priceListAccessCode: Scalars['String'];
1202
+ };
1203
+
1204
+
1194
1205
  export type MutationUpdatePasswordArgs = {
1195
1206
  oldPassword: Scalars['String'];
1196
1207
  newPassword: Scalars['String'];
@@ -1505,19 +1516,25 @@ export type Page = Document & {
1505
1516
  /** Get content data set via the Content Editor */
1506
1517
  data?: Maybe<Content>;
1507
1518
  /**
1508
- * If this page was fetched by ID using the `page(id)` query, parent will be
1509
- * returned even if it is hidden. If this page was fetched using the `pages`
1510
- * query, parent will not be returned if it is hidden
1519
+ * * If this page was fetched by ID using the `page(id)` query, `parent` will be returned even if it is hidden.
1520
+ * * If this page was fetched using the `pages` query, `parent` will not be returned if it is hidden
1511
1521
  */
1512
1522
  parent?: Maybe<Page>;
1513
1523
  /**
1514
- * If this page was fetched by ID using the page(id) query, subPages will be
1515
- * returned even if they are hidden. If this page was fetched using the pages
1516
- * query, subPages will not be returned if they are hidden
1524
+ * * If this page was fetched by ID using the `page(id)` query, `subPages` will
1525
+ * be returned even if they are hidden. This can be overridden with the
1526
+ * `includeHidden` flag.
1527
+ * * If this page was fetched using the `pages` query, `subPages` will not be
1528
+ * returned if they are hidden. The `includeHidden` flag has no effect on this.
1517
1529
  */
1518
1530
  subPages?: Maybe<Array<Page>>;
1519
1531
  };
1520
1532
 
1533
+
1534
+ export type PageSubPagesArgs = {
1535
+ includeHidden?: Maybe<Scalars['Boolean']>;
1536
+ };
1537
+
1521
1538
  export type PagedResult = {
1522
1539
  __typename?: 'PagedResult';
1523
1540
  totalResults?: Maybe<Scalars['Int']>;
@@ -1618,6 +1635,7 @@ export type Product = Document & {
1618
1635
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1619
1636
  campaigns?: Maybe<Array<Maybe<Category>>>;
1620
1637
  hasVariants: Scalars['Boolean'];
1638
+ hasVariantsWithDifferingPrices: Scalars['Boolean'];
1621
1639
  variants?: Maybe<ProductVariants>;
1622
1640
  images?: Maybe<Array<Maybe<ProductImage>>>;
1623
1641
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
@@ -1646,9 +1664,7 @@ export type Product = Document & {
1646
1664
  priceDateSpan?: Maybe<ProductPriceDateSpan>;
1647
1665
  /**
1648
1666
  * Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
1649
- * If 'required' is true the Product should not be purchasable
1650
- * until the field is populated.NB: Carries a performance cost, as asking for
1651
- * this will result in a separate API call in the backend.
1667
+ * If 'required' is true the Product should not be purchasable until the field is populated.
1652
1668
  */
1653
1669
  customerComments?: Maybe<Array<Maybe<ProductComment>>>;
1654
1670
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
@@ -1656,7 +1672,6 @@ export type Product = Document & {
1656
1672
  customFields?: Maybe<Array<Maybe<CustomField>>>;
1657
1673
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1658
1674
  warehouseStock?: Maybe<Array<Maybe<Warehouse>>>;
1659
- /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1660
1675
  head?: Maybe<HtmlHead>;
1661
1676
  /**
1662
1677
  * The primary route of this Product. NB: Carries a performance cost, as asking
@@ -1688,7 +1703,7 @@ export type Product = Document & {
1688
1703
  * separate API call in the backend.
1689
1704
  */
1690
1705
  configurationPrice?: Maybe<ProductConfigurationPrice>;
1691
- /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1706
+ /** Quantity suffix e.g pcs, box, etc. */
1692
1707
  quantitySuffix?: Maybe<Scalars['String']>;
1693
1708
  isPreOrder?: Maybe<Scalars['Boolean']>;
1694
1709
  preOrder?: Maybe<ProductPreOrder>;
@@ -2151,6 +2166,10 @@ export type Route = {
2151
2166
  * another language.NB: Carries no additional performance cost.
2152
2167
  */
2153
2168
  alternateRoutes?: Maybe<Array<Maybe<AlternateRoute>>>;
2169
+ /** N.B. for troubleshooting routes only! */
2170
+ debug?: Maybe<Scalars['String']>;
2171
+ /** Breadcrumb texts; starting with the root parent, ending on this route. */
2172
+ breadcrumbs?: Maybe<Array<Maybe<Scalars['String']>>>;
2154
2173
  };
2155
2174
 
2156
2175
  export type SearchAutoCompleteResult = {
@@ -2266,6 +2285,7 @@ export type SignUpInput = {
2266
2285
  preferences?: Maybe<SignUpPreferencesInput>;
2267
2286
  consents?: Maybe<Array<Maybe<SignUpConsentInput>>>;
2268
2287
  dynamicContent?: Maybe<Scalars['String']>;
2288
+ priceListAccessCode?: Maybe<Scalars['String']>;
2269
2289
  };
2270
2290
 
2271
2291
  export type SignUpPreferencesCommunicationInput = {
@@ -2398,6 +2418,11 @@ export type UpdateCartMutation = {
2398
2418
  cart?: Maybe<Cart>;
2399
2419
  };
2400
2420
 
2421
+ export type UpdateCustomerPriceListResult = {
2422
+ __typename?: 'UpdateCustomerPriceListResult';
2423
+ success: Scalars['Boolean'];
2424
+ };
2425
+
2401
2426
  export type UpdateCustomerProductListInput = {
2402
2427
  id: Scalars['ID'];
2403
2428
  typeId: Scalars['ID'];