@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.
- package/ChannelHandler/ChannelHandler.js +32 -27
- package/ChannelHandler/ChannelHandler.js.map +1 -1
- package/analytics/AnalyticsProvider.js +11 -3
- package/analytics/AnalyticsProvider.js.map +1 -1
- package/analytics/integrations/ga4.d.ts +2 -1
- package/analytics/integrations/ga4.js +16 -9
- package/analytics/integrations/ga4.js.map +1 -1
- package/analytics/integrations/gtag/gtag.d.ts +2 -1
- package/analytics/integrations/gtag/gtag.js +20 -10
- package/analytics/integrations/gtag/gtag.js.map +1 -1
- package/analytics/integrations/gtm/index.d.ts +10 -1
- package/analytics/integrations/gtm/index.js +175 -2
- package/analytics/integrations/gtm/index.js.map +1 -1
- package/analytics/trackerRegistry.d.ts +2 -1
- package/analytics/trackerRegistry.js +22 -50
- package/analytics/trackerRegistry.js.map +1 -1
- package/boot/apollo.d.ts +0 -1
- package/boot/apollo.js +9 -5
- package/boot/apollo.js.map +1 -1
- package/boot/client/startClient.js +2 -6
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +2 -2
- package/boot/server/createRenderer.js.map +1 -1
- package/cart/useAddToCart.d.ts +2 -2
- package/cart/useAddToCart.js +13 -12
- package/cart/useAddToCart.js.map +1 -1
- package/ci/.gitlab-ci.yml +1 -1
- package/components/Auth/CustomerUpdateForm.js +5 -2
- package/components/Auth/CustomerUpdateForm.js.map +1 -1
- package/components/Cart/CartIdContext.js +18 -18
- package/components/Cart/CartIdContext.js.map +1 -1
- package/components/ConfigProvider.d.ts +1 -0
- package/components/ConfigProvider.js.map +1 -1
- package/components/DynamicRoute/ContentRoute.d.ts +1 -1
- package/components/DynamicRoute/ProductRoute.d.ts +1 -0
- package/components/DynamicRoute/ProductRoute.js +4 -2
- package/components/DynamicRoute/ProductRoute.js.map +1 -1
- package/components/DynamicRoute/RouteResolver.js +4 -2
- package/components/DynamicRoute/RouteResolver.js.map +1 -1
- package/components/Mutation/AddToCart/addToCartUtils.js +3 -2
- package/components/Mutation/AddToCart/addToCartUtils.js.map +1 -1
- package/components/Mutation/RemoveFromCart.d.ts +1 -1
- package/components/OpenGraph/OpenGraph.test.js +32 -5
- package/components/OpenGraph/OpenGraphProductData.d.ts +6 -1
- package/components/OpenGraph/OpenGraphProductData.js +18 -12
- package/components/OpenGraph/OpenGraphProductData.js.map +1 -1
- package/components/Query/CartProvider.js +3 -3
- package/components/Query/CartProvider.js.map +1 -1
- package/hooks/PackageProducts/packagePriceQuery.gql +1 -1
- package/hooks/ProductList/action-creators.js +15 -15
- package/hooks/ProductList/action-creators.js.map +1 -1
- package/hooks/ProductList/list-transforms.d.ts +1 -0
- package/hooks/ProductList/useProductList.d.ts +3 -3
- package/hooks/ProductList/useProductList.js +10 -10
- package/hooks/ProductList/useProductList.js.map +1 -1
- package/hooks/useInfinitePagination.js +2 -2
- package/hooks/useInfinitePagination.js.map +1 -1
- package/hooks/useRoutePreload.js +2 -2
- package/hooks/useRoutePreload.js.map +1 -1
- package/package.json +5 -5
- package/sentry/client.js +9 -4
- package/sentry/client.js.map +1 -1
- package/sentry/common.d.ts +1 -0
- package/sentry/common.js +5 -0
- package/sentry/common.js.map +1 -0
- package/sentry/server.js +11 -2
- package/sentry/server.js.map +1 -1
- package/server/tracking/facebook.js +12 -5
- package/server/tracking/facebook.js.map +1 -1
- package/server/tracking/middleware.js +1 -1
- package/server/tracking/middleware.js.map +1 -1
- package/server/tracking/types.d.ts +1 -0
- 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
|
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
|
-
*
|
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
|
1515
|
-
* returned even if they are hidden.
|
1516
|
-
*
|
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
|
-
/**
|
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'];
|