@jetshop/core 5.8.3 → 5.11.0
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.
- package/ChannelHandler/ChannelHandler.d.ts +9 -13
- package/ChannelHandler/ChannelHandler.js +24 -66
- package/ChannelHandler/ChannelHandler.js.map +1 -1
- package/ChannelHandler/channelUtils.d.ts +13 -0
- package/ChannelHandler/channelUtils.js +26 -15
- package/ChannelHandler/channelUtils.js.map +1 -1
- package/ChannelHandler/redirectUtils.d.ts +3 -0
- package/ChannelHandler/redirectUtils.js +48 -0
- package/ChannelHandler/redirectUtils.js.map +1 -0
- package/ChannelHandler/redirectUtils.test.js +8 -0
- package/analytics/AnalyticsProvider.js +9 -2
- package/analytics/AnalyticsProvider.js.map +1 -1
- package/analytics/integrations/ga4.d.ts +2 -1
- package/analytics/integrations/ga4.js +15 -6
- 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/boot/SharedTree.js +1 -1
- package/boot/SharedTree.js.map +1 -1
- package/boot/apollo.d.ts +5 -4
- package/boot/apollo.js +18 -18
- package/boot/apollo.js.map +1 -1
- package/boot/client/startClient.js +7 -16
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +10 -9
- package/boot/server/createRenderer.js.map +1 -1
- package/boot/server/index.js +2 -2
- package/boot/server/index.js.map +1 -1
- package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +53 -39
- package/boot/server/persistedQueries/getPersistedQueriesForRequest.js +2 -2
- package/boot/server/persistedQueries/getPersistedQueriesForRequest.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/components/Auth/CustomerUpdateForm.js +7 -7
- 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/ChannelContext/ChannelProvider.d.ts +1 -3
- package/components/ChannelContext/ChannelProvider.js +6 -13
- package/components/ChannelContext/ChannelProvider.js.map +1 -1
- package/components/ChannelContext/ChannelProvider.test.js +110 -0
- 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/Mutation/cartMutationUtils.js +7 -6
- package/components/Mutation/cartMutationUtils.js.map +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 +32 -22
- package/components/Query/CartProvider.js.map +1 -1
- package/components/StructuredData/StructuredBreadcrumbData.js +4 -3
- package/components/StructuredData/StructuredBreadcrumbData.js.map +1 -1
- package/hooks/PackageProducts/packagePriceQuery.gql +1 -1
- package/hooks/ProductList/ProductListContext.js +37 -14
- package/hooks/ProductList/ProductListContext.js.map +1 -1
- package/hooks/ProductList/action-creators.d.ts +20 -7
- package/hooks/ProductList/action-creators.js +138 -44
- package/hooks/ProductList/action-creators.js.map +1 -1
- package/hooks/ProductList/index.d.ts +34 -8
- package/hooks/ProductList/index.js +19 -0
- package/hooks/ProductList/index.js.map +1 -1
- package/hooks/ProductList/list-transforms.d.ts +3 -2
- package/hooks/ProductList/list-transforms.js +22 -22
- package/hooks/ProductList/list-transforms.js.map +1 -1
- package/hooks/ProductList/list-transforms.test.js +103 -100
- package/hooks/ProductList/product-list-reducer.d.ts +37 -14
- package/hooks/ProductList/product-list-reducer.js +106 -43
- package/hooks/ProductList/product-list-reducer.js.map +1 -1
- package/hooks/ProductList/product-list-reducer.test.js +144 -82
- package/hooks/ProductList/useProductList.d.ts +2 -2
- package/hooks/ProductList/useProductList.js +12 -5
- package/hooks/ProductList/useProductList.js.map +1 -1
- package/hooks/ProductList/useProductListItems.d.ts +1 -1
- package/hooks/ProductList/useProductListItems.js +8 -6
- package/hooks/ProductList/useProductListItems.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/resolvers/index.d.ts +3 -0
- package/resolvers/index.js +3 -0
- package/resolvers/index.js.map +1 -1
- 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/time.d.ts +1 -0
- package/time.js +6 -0
- package/time.js.map +1 -0
- package/types.d.ts +31 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRoutePreload.js","sourceRoot":"","sources":["useRoutePreload.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,gBAAgB,MAAM,0C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O,EAAE,CAAC;AACrB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@graphql-tools/wrap": "^7.0.5",
|
|
40
40
|
"@loadable/component": "^5.11.0",
|
|
41
41
|
"@loadable/server": "^5.11.0",
|
|
42
|
-
"@sentry/browser": "^6.
|
|
43
|
-
"@sentry/core": "^6.
|
|
44
|
-
"@sentry/node": "^6.
|
|
42
|
+
"@sentry/browser": "^6.15.0",
|
|
43
|
+
"@sentry/core": "^6.15.0",
|
|
44
|
+
"@sentry/node": "^6.15.0",
|
|
45
45
|
"@tanem/react-nprogress": "^1.1.0",
|
|
46
46
|
"@types/accept-language-parser": "^1.5.1",
|
|
47
47
|
"@types/gtag.js": "^0.0.3",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"prop-types": "^15.6.2",
|
|
84
84
|
"qs": "^6.5.2",
|
|
85
85
|
"react-apollo": "^3.1.5",
|
|
86
|
-
"react-apollo-network-status": "^
|
|
86
|
+
"react-apollo-network-status": "^4.0.0",
|
|
87
87
|
"react-cookie": "^4.1.1",
|
|
88
88
|
"react-helmet-async": "^1.0.2",
|
|
89
89
|
"react-media": "^1.10.0",
|
package/resolvers/index.d.ts
CHANGED
package/resolvers/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { boolFilterValue, clearAllFilters, clearListFilter, clearMultiListFilter, clearMultiListFilterList, clearRangeFilter, isListFilterActive, isMultiFilterActive, isMultiFilterListActive, isRangeFilterActive, listFilterHasActiveItems, rangeFilterValue, setBoolFilter, setMultiListFilter, setRangeFilter, toggleListFilterItem, toggleMultiListFilterItem } from './filters';
|
|
2
2
|
export const resolvers = (searchParams) => ({
|
|
3
|
+
Cart: {
|
|
4
|
+
__optimistic: () => false
|
|
5
|
+
},
|
|
3
6
|
ListFilterItem: {
|
|
4
7
|
isActive: (parent) => isListFilterActive(parent)(searchParams)
|
|
5
8
|
},
|
package/resolvers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,YAAoB,EAAE,EAAE,CAAC,CAAC;IAClD,cAAc,EAAE;QACd,QAAQ,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KACpE;IACD,UAAU,EAAE;QACV,cAAc,EAAE,CAAC,MAAW,EAAE,EAAE,CAC9B,wBAAwB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KACjD;IACD,aAAa,EAAE;QACb,KAAK,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KAC9D;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;QACpE,KAAK,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KAC/D;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,mBAAmB,C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AAM,CAAC,CAAC,YAAY,CAAC;QACpE,KAAK,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KAC/D;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KACrE;IACD,mBAAmB,EAAE;QACnB,cAAc,EAAE,CAAC,MAAW,EAAE,EAAE,CAC9B,uBAAuB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;KAChD;IACD,QAAQ,EAAE;QACR,oBAAoB;QACpB,eAAe;QACf,eAAe;QACf,aAAa;QACb,cAAc;QACd,gBAAgB;QAChB,wBAAwB;QACxB,oBAAoB;QACpB,kBAAkB;QAClB,yBAAyB;KAC1B;CACF,CAAC,CAAC"}
|
package/sentry/client.js
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import * as Sentry from '@sentry/browser';
|
|
2
2
|
import { checkSentryDSN } from './utils';
|
|
3
|
+
import { ignoreErrors as commonIgnoreErrors } from './common';
|
|
3
4
|
export function init(dsn, ignoreErrors = []) {
|
|
4
5
|
if (checkSentryDSN(dsn)) {
|
|
5
6
|
Sentry.init({
|
|
7
|
+
release: process.env.CI_COMMIT_SHA || undefined,
|
|
6
8
|
dsn,
|
|
7
9
|
ignoreErrors: [
|
|
10
|
+
...commonIgnoreErrors,
|
|
8
11
|
'PersistedQueryNotFound',
|
|
9
|
-
/^(.*?(\bMissingRoute\b)[^$]*)/g,
|
|
10
12
|
'PERSISTED_QUERY_NOT_FOUND',
|
|
11
13
|
'NetworkError when attempting to fetch resource',
|
|
12
|
-
|
|
14
|
+
/Loading chunk \d+ failed/,
|
|
13
15
|
// Network errors
|
|
14
16
|
'TypeError: NetworkError when attempting to fetch resource.',
|
|
15
17
|
'TypeError: Nätverksanslutningen förlorades.',
|
|
16
18
|
'TypeError: Netværksforbindelsen gik tabt.',
|
|
17
|
-
'TypeError: Verkkoyhteys katkesi.'
|
|
19
|
+
'TypeError: Verkkoyhteys katkesi.',
|
|
20
|
+
'Failed to fetch',
|
|
21
|
+
'ResizeObserver loop',
|
|
22
|
+
'Unauthorized'
|
|
18
23
|
].concat(ignoreErrors)
|
|
19
24
|
});
|
|
20
|
-
Sentry.configureScope(scope => {
|
|
25
|
+
Sentry.configureScope((scope) => {
|
|
21
26
|
scope.setTag('BUILD_TARGET', 'client');
|
|
22
27
|
});
|
|
23
28
|
}
|
package/sentry/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9D,MAAM,UAAU,IAAI,CAClB,GAAY,EACZ,eAAoC,EAAE;IAEtC,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE;QACvB,MAAM,CAAC,IAAI,CAAC;YACV,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,SAAS;YAC/C,GAAG;YACH,YAAY,EAAE;gBACZ,GAAG,kBAAkB;gBACrB,wBAAwB;gBACxB,2BAA2B;gBAC3B,gDAAgD;gBAChD,0BAA0B;gBAC1B,iBAAiB;gBACjB,4DAA4D;gBAC5D,6CAA6C;gBAC7C,2CAA2C;gBAC3C,kCAAkC;gBAClC,iBAAiB;gBACjB,qBAAqB;gBACrB,cAAc;aACf,CAAC,MAAM,CAAC,YAAY,CAAC;SACvB,CAAC,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE;YAC9B,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ignoreErrors: string[];
|
package/sentry/common.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,cAAc;IACd,2CAA2C;CAC5C,CAAC"}
|
package/sentry/server.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import * as Sentry from '@sentry/node';
|
|
2
2
|
import { checkSentryDSN } from './utils';
|
|
3
|
+
import { ignoreErrors as commonIgnoreErrors } from './common';
|
|
3
4
|
export function init(dsn, ignoreErrors = []) {
|
|
4
5
|
if (checkSentryDSN(dsn)) {
|
|
5
|
-
Sentry.init({
|
|
6
|
-
|
|
6
|
+
Sentry.init({
|
|
7
|
+
release: process.env.CI_COMMIT_SHA || undefined,
|
|
8
|
+
dsn,
|
|
9
|
+
ignoreErrors: [
|
|
10
|
+
...commonIgnoreErrors,
|
|
11
|
+
'request to https://storeapi.jetshop.io/ failed',
|
|
12
|
+
...ignoreErrors
|
|
13
|
+
]
|
|
14
|
+
});
|
|
15
|
+
Sentry.configureScope((scope) => {
|
|
7
16
|
scope.setTag('BUILD_TARGET', 'server');
|
|
8
17
|
});
|
|
9
18
|
}
|
package/sentry/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9D,MAAM,UAAU,IAAI,CAClB,GAAW,EACX,eAAoC,EAAE;IAEtC,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE;QACvB,MAAM,CAAC,IAAI,CAAC;YACV,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,SAAS;YAC/C,GAAG;YACH,YAAY,EAAE;gBACZ,GAAG,kBAAkB;gBACrB,gDAAgD;gBAChD,GAAG,YAAY;aAChB;SACF,CAAC,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE;YAC9B,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC"}
|
package/time.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function measure(name: string): void;
|
package/time.js
ADDED
package/time.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.js","sourceRoot":"","sources":["time.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;AAE1B,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,MAAM,GAAG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;IACxB,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,GAAG,GAAG,KAAK,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC"}
|
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. */
|
|
@@ -2267,6 +2285,7 @@ export type SignUpInput = {
|
|
|
2267
2285
|
preferences?: Maybe<SignUpPreferencesInput>;
|
|
2268
2286
|
consents?: Maybe<Array<Maybe<SignUpConsentInput>>>;
|
|
2269
2287
|
dynamicContent?: Maybe<Scalars['String']>;
|
|
2288
|
+
priceListAccessCode?: Maybe<Scalars['String']>;
|
|
2270
2289
|
};
|
|
2271
2290
|
|
|
2272
2291
|
export type SignUpPreferencesCommunicationInput = {
|
|
@@ -2399,6 +2418,11 @@ export type UpdateCartMutation = {
|
|
|
2399
2418
|
cart?: Maybe<Cart>;
|
|
2400
2419
|
};
|
|
2401
2420
|
|
|
2421
|
+
export type UpdateCustomerPriceListResult = {
|
|
2422
|
+
__typename?: 'UpdateCustomerPriceListResult';
|
|
2423
|
+
success: Scalars['Boolean'];
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2402
2426
|
export type UpdateCustomerProductListInput = {
|
|
2403
2427
|
id: Scalars['ID'];
|
|
2404
2428
|
typeId: Scalars['ID'];
|