@jetshop/core 5.15.0-alpha.184e18a2 → 5.15.0-alpha.6caa50c3
Sign up to get free protection for your applications and to get access to all the features.
- package/ChannelHandler/ChannelHandler.js +1 -0
- package/ChannelHandler/ChannelHandler.js.map +1 -1
- package/analytics/AnalyticsProvider.d.ts +5 -0
- package/analytics/AnalyticsProvider.js +31 -11
- package/analytics/AnalyticsProvider.js.map +1 -1
- package/analytics/integrations/ga4.js +62 -22
- package/analytics/integrations/ga4.js.map +1 -1
- package/analytics/integrations/gtag/gtag.js +35 -3
- package/analytics/integrations/gtag/gtag.js.map +1 -1
- package/analytics/integrations/gtm/gtm.d.ts +12 -0
- package/analytics/integrations/gtm/gtm.js +236 -0
- package/analytics/integrations/gtm/gtm.js.map +1 -0
- package/analytics/integrations/gtm/index.d.ts +1 -12
- package/analytics/integrations/gtm/index.js +1 -200
- package/analytics/integrations/gtm/index.js.map +1 -1
- package/analytics/trackerRegistry.d.ts +12 -0
- package/analytics/trackerRegistry.js +3 -1
- package/analytics/trackerRegistry.js.map +1 -1
- package/boot/SharedTree.js +1 -1
- package/boot/SharedTree.js.map +1 -1
- package/boot/apollo.js +2 -2
- package/boot/apollo.js.map +1 -1
- package/boot/client/startClient.js +2 -1
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +7 -3
- package/boot/server/createRenderer.js.map +1 -1
- package/components/ConfigProvider.d.ts +1 -0
- package/components/ConfigProvider.js.map +1 -1
- package/components/DynamicRoute/ProductRoute.js +9 -2
- package/components/DynamicRoute/ProductRoute.js.map +1 -1
- package/components/DynamicRoute/RouteResolver.d.ts +1 -1
- package/components/Head.js +6 -2
- package/components/Head.js.map +1 -1
- package/components/SortOrder/SortOrderContainer.js +7 -1
- package/components/SortOrder/SortOrderContainer.js.map +1 -1
- package/hooks/ProductList/list-transforms.d.ts +2 -0
- package/hooks/useCustomerOrders.test.js +5 -5
- package/package.json +2 -3
- package/types.d.ts +71 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startClient.js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,EACrB,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc;gBAE9B,oBAAC,cAAc,QAAE,IAAI,CAAkB,CAC5B,CACd,CAAC;YACF,OAAO,WAAW,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,IAAkB,EAAE,EAAE;QAC3B,OAAO,aAAa,CAAC,GAAG,EAAE;YACxB,MAAM,IAAI,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAC7C,WAAW,CACT,IAAI,EACJ,IAAI,EACJ,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAClD,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,CAAC,IAAkB,EAAE,MAAmB,EAAE,EAAE;IACvD,2HAA2H;IAC3H,IAAK,MAAc,CAAC,eAAe,EAAE;QACnC,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAClC;SAAM;QACL,2KAA2K;QAC1K,MAAc,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC5D;AACH,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -116,6 +116,7 @@ const createRenderer = (template, tree, options) => {
|
|
116
116
|
? req.headers['accept-language']
|
117
117
|
: '';
|
118
118
|
const channels = yield globalClient.getChannels();
|
119
|
+
console.log({ fullUrl });
|
119
120
|
const { selectedChannel, recommendedChannel, redirect } = getSelectedAndRecommendedChannel({
|
120
121
|
url: fullUrl,
|
121
122
|
singleDomainMode,
|
@@ -125,6 +126,8 @@ const createRenderer = (template, tree, options) => {
|
|
125
126
|
acceptedLanguages,
|
126
127
|
disableGeoRedirect
|
127
128
|
});
|
129
|
+
console.log({ selectedChannelLanguage: selectedChannel.language.culture });
|
130
|
+
console.log({ redirect });
|
128
131
|
const authHandler = new AuthHandler({
|
129
132
|
cookies
|
130
133
|
});
|
@@ -151,6 +154,7 @@ const createRenderer = (template, tree, options) => {
|
|
151
154
|
preserveRedirect: true,
|
152
155
|
routes: options.routes
|
153
156
|
});
|
157
|
+
console.log({ redirectUrl });
|
154
158
|
return res.redirect(302, redirectUrl);
|
155
159
|
}
|
156
160
|
const persistedQueries = yield ((_a = getPersistedQueriesForRequest(persistedQueryClients, createClientOpts)) === null || _a === void 0 ? void 0 : _a.extractCache());
|
@@ -216,10 +220,10 @@ const createRenderer = (template, tree, options) => {
|
|
216
220
|
apolloState: apolloState,
|
217
221
|
polyfill,
|
218
222
|
preloadLinks,
|
219
|
-
preloadScripts:
|
220
|
-
geoipCountryScript +
|
223
|
+
preloadScripts: geoipCountryScript +
|
221
224
|
acceptedLanguagesScript +
|
222
|
-
statusCodeScript
|
225
|
+
statusCodeScript +
|
226
|
+
preloadScripts,
|
223
227
|
title: title.toString(),
|
224
228
|
meta: meta.toString() + link.toString(),
|
225
229
|
style: style.toString() + breakpointScript + preloadStyles,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderer.js","sourceRoot":"","sources":["createRenderer.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAIhD,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,EAAE,cAAc,E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CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;QACvC,WAAW,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfigProvider.js","sourceRoot":"","sources":["ConfigProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"ConfigProvider.js","sourceRoot":"","sources":["ConfigProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAsG5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAC5C,SAAS,CACV,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,EAO9B;QAP8B,EAC7B,MAAM,EAAE,UAAU,EAClB,QAAQ,OAKT,EAJI,IAAI,cAHsB,sBAI9B,CADQ;IAKP,MAAM,MAAM,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC5C,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,kBAAC,KAAK,EAAE,MAAM,IAAM,IAAI,GAChD,QAAQ,CACkB,CAC9B,CAAC;AACJ,CAAC"}
|
@@ -20,7 +20,7 @@ import { OpenGraphProductData } from '../OpenGraph';
|
|
20
20
|
import { unSlugify } from '@jetshop/core/analytics/integrations/unslugify';
|
21
21
|
import { breadcrumbsWithoutProduct } from '@jetshop/core/analytics/utils/breadcrumbsWithoutProduct';
|
22
22
|
const ProductRoute = (props) => {
|
23
|
-
var _a, _b, _c;
|
23
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
24
24
|
const { component: ProductPage, partialProduct } = props, rest = __rest(props, ["component", "partialProduct"]);
|
25
25
|
const product = ((_b = (_a = props.result.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.object) || ((_c = props.result.data) === null || _c === void 0 ? void 0 : _c.product);
|
26
26
|
const { structuredData, openGraph } = useShopConfig();
|
@@ -46,7 +46,14 @@ const ProductRoute = (props) => {
|
|
46
46
|
category
|
47
47
|
}));
|
48
48
|
}
|
49
|
-
}, [
|
49
|
+
}, [
|
50
|
+
(_d = location.state) === null || _d === void 0 ? void 0 : _d.list,
|
51
|
+
product,
|
52
|
+
(_e = props.result.data) === null || _e === void 0 ? void 0 : _e.product,
|
53
|
+
(_g = (_f = props.result.data) === null || _f === void 0 ? void 0 : _f.route) === null || _g === void 0 ? void 0 : _g.breadcrumbs,
|
54
|
+
(_j = (_h = props.result.data) === null || _h === void 0 ? void 0 : _h.route) === null || _j === void 0 ? void 0 : _j.object,
|
55
|
+
track
|
56
|
+
]);
|
50
57
|
return (React.createElement(React.Fragment, null,
|
51
58
|
product && (React.createElement(React.Fragment, null,
|
52
59
|
!disableStructuredProductData && (React.createElement(StructuredProductData, { product: product })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProductRoute.js","sourceRoot":"","sources":["ProductRoute.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,4BAA4B,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC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K,CAAC,MAAM,CAAC,IAAI,0CAAE,KAAK,0CAAE,WAAW;QACrC,MAAA,MAAA,KAAK,CAAC,MAAM,CAAC,IAAI,0CAAE,KAAK,0CAAE,MAAM;QAChC,KAAK;KACN,CAAC,CAAC;IAEH,OAAO,CACL;QACG,OAAO,IAAI,CACV;YACG,CAAC,4BAA4B,IAAI,CAChC,oBAAC,qBAAqB,IAAC,OAAO,EAAE,OAAO,GAAI,CAC5C;YACA,CAAC,2BAA2B,IAAI,CAC/B,oBAAC,oBAAoB,IAAC,OAAO,EAAE,OAAO,GAAI,CAC3C,CACA,CACJ;QACD,oBAAC,4BAA4B,IAAC,OAAO,EAAE,OAAO;YAC5C,oBAAC,WAAW,oBACN,IAAI,IACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,IAC9B,CAC2B,CAC9B,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -4,7 +4,7 @@ import { CategoryProps } from './CategoryRoute';
|
|
4
4
|
import { ContentProps } from './ContentRoute';
|
5
5
|
import { QueryResult } from 'react-apollo';
|
6
6
|
import { Route } from '../../types';
|
7
|
-
declare const RouteResolver: ({ productPage, categoryPage, contentPage, notFoundPage
|
7
|
+
declare const RouteResolver: ({ productPage, categoryPage, contentPage, notFoundPage, ErrorPage, LoadingPage, result, pathname, state, search }: {
|
8
8
|
productPage: ComponentType<ProductProps>;
|
9
9
|
categoryPage: ComponentType<CategoryProps>;
|
10
10
|
contentPage: ComponentType<ContentProps>;
|
package/components/Head.js
CHANGED
@@ -27,7 +27,7 @@ function renderAlternateRoutes(alternateRoute, channelsById, selectedChannelGrou
|
|
27
27
|
}
|
28
28
|
const queryParamsWhitelist = ['page'];
|
29
29
|
const Head = ({ data, route }) => {
|
30
|
-
var _a;
|
30
|
+
var _a, _b;
|
31
31
|
const { search, pathname } = useLocation();
|
32
32
|
const queryStringObject = qs.parse(search, { ignoreQueryPrefix: true });
|
33
33
|
Object.keys(queryStringObject).forEach((key) => {
|
@@ -43,6 +43,9 @@ const Head = ({ data, route }) => {
|
|
43
43
|
if (!selectedChannel.language.isDefault) {
|
44
44
|
languageBasename = `/${getLanguageFromCulture(selectedChannel.language.culture)}`;
|
45
45
|
}
|
46
|
+
const hasIndexingOptions = (data.__typename === 'Category' || data.__typename === 'Page') &&
|
47
|
+
data.allowWebIndexing !== undefined;
|
48
|
+
const disallowWebIndexing = (_b = (hasIndexingOptions && !data.allowWebIndexing)) !== null && _b !== void 0 ? _b : false;
|
46
49
|
const fullPath = `${languageBasename}${(route === null || route === void 0 ? void 0 : route.canonicalPath) || ''}`;
|
47
50
|
const href = (route === null || route === void 0 ? void 0 : route.canonicalPath) &&
|
48
51
|
`${selectedChannel.url}${fullPath}${whiteListedSearch}`;
|
@@ -72,7 +75,8 @@ const Head = ({ data, route }) => {
|
|
72
75
|
route.alternateRoutes &&
|
73
76
|
route.alternateRoutes.map((alternateRoute) => renderAlternateRoutes(alternateRoute, channelsById, selectedChannelGroup &&
|
74
77
|
selectedChannelGroup.map((channel) => channel.id))),
|
75
|
-
href && React.createElement("link", { rel: "canonical", href: href })
|
78
|
+
href && React.createElement("link", { rel: "canonical", href: href }),
|
79
|
+
disallowWebIndexing && React.createElement("meta", { name: "robots", content: "noindex" })),
|
76
80
|
!disableOpenGraphGeneralData && (React.createElement(OpenGraphGeneralPageData, { route: route, data: data })),
|
77
81
|
(route === null || route === void 0 ? void 0 : route.canonicalPath) === '/' && React.createElement(SiteLinksSearchStructuredData, null)));
|
78
82
|
};
|
package/components/Head.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Head.js","sourceRoot":"","sources":["Head.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAWlE,OAAO,KAAK,EAAE,EAAM,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC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E,CAAC,OAAO,CAAC,EAAE,CAAC,CAC7D,CACF;YACF,IAAI,IAAI,8BAAM,GAAG,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,GAAI;YAC5C,mBAAmB,IAAI,8BAAM,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,GAAG,CACzD;QACR,CAAC,2BAA2B,IAAI,CAC/B,oBAAC,wBAAwB,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI,CACvD;QACA,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,MAAK,GAAG,IAAI,oBAAC,6BAA6B,OAAG,CACjE,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -11,7 +11,7 @@ export const sortTypes = {
|
|
11
11
|
PUBLISH_DATE: 'date',
|
12
12
|
PRICE: 'number',
|
13
13
|
SUB_HEADING: 'string',
|
14
|
-
BESTSELLER: '
|
14
|
+
BESTSELLER: 'bestseller',
|
15
15
|
CUSTOM: 'custom'
|
16
16
|
};
|
17
17
|
export const sortValues = {
|
@@ -41,6 +41,12 @@ export const sortValues = {
|
|
41
41
|
direction: 'DESCENDING'
|
42
42
|
}
|
43
43
|
],
|
44
|
+
bestseller: [
|
45
|
+
{
|
46
|
+
text: t(''),
|
47
|
+
direction: 'DESCENDING'
|
48
|
+
}
|
49
|
+
],
|
44
50
|
custom: [
|
45
51
|
{
|
46
52
|
text: t(''),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SortOrderContainer.js","sourceRoot":"","sources":["SortOrderContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAuB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,gBAGN,MAAM,qDAAqD,CAAC;AAC7D,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,O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iBf,aAAQ,GAAG,CAAC,KAAa,EAAE,SAAoB,EAAE,EAAE;YACjD,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACzC,sBAAsB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YAChE,IAAI,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;QArBA,IAAI,CAAC,KAAK,GAAG;YACX,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,YAAY;YACvB,eAAe,EAAE,IAAI,CAAC,QAAQ;SAC/B,CAAC;IACJ,CAAC;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC9B,MAAM,SAAS,GAAG,2BAA2B,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC1E,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;aAC1B;SACF;IACH,CAAC;IASM,MAAM;QACX,OAAO,CACL,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IACzC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CACN,CAC7B,CAAC;IACJ,CAAC;CACF;AAED,eAAe,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
|
@@ -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[];
|
@@ -82,7 +82,7 @@ describe('useCustomerOrders', () => {
|
|
82
82
|
const utils = render(
|
83
83
|
<ApolloProvider client={client}>
|
84
84
|
<TestHarness query={query}>
|
85
|
-
{resp => {
|
85
|
+
{(resp) => {
|
86
86
|
collect && collect(resp);
|
87
87
|
return null;
|
88
88
|
}}
|
@@ -97,7 +97,7 @@ describe('useCustomerOrders', () => {
|
|
97
97
|
let loading;
|
98
98
|
|
99
99
|
setup({
|
100
|
-
collect: resp => {
|
100
|
+
collect: (resp) => {
|
101
101
|
loading = resp.loading;
|
102
102
|
}
|
103
103
|
});
|
@@ -113,7 +113,7 @@ describe('useCustomerOrders', () => {
|
|
113
113
|
let orders;
|
114
114
|
|
115
115
|
setup({
|
116
|
-
collect: resp => {
|
116
|
+
collect: (resp) => {
|
117
117
|
orders = resp.orders;
|
118
118
|
}
|
119
119
|
});
|
@@ -131,7 +131,7 @@ describe('useCustomerOrders', () => {
|
|
131
131
|
let total;
|
132
132
|
|
133
133
|
setup({
|
134
|
-
collect: resp => {
|
134
|
+
collect: (resp) => {
|
135
135
|
total = resp.totalOrders;
|
136
136
|
}
|
137
137
|
});
|
@@ -147,7 +147,7 @@ describe('useCustomerOrders', () => {
|
|
147
147
|
let response;
|
148
148
|
|
149
149
|
setup({
|
150
|
-
collect: resp => {
|
150
|
+
collect: (resp) => {
|
151
151
|
response = resp.result;
|
152
152
|
}
|
153
153
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetshop/core",
|
3
|
-
"version": "5.15.0-alpha.
|
3
|
+
"version": "5.15.0-alpha.6caa50c3",
|
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
|
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
|
|
@@ -759,10 +765,40 @@ export type Discount = {
|
|
759
765
|
externalId?: Maybe<Scalars['ID']>;
|
760
766
|
name?: Maybe<Scalars['String']>;
|
761
767
|
value?: Maybe<Price>;
|
768
|
+
type?: Maybe<DiscountType>;
|
762
769
|
description?: Maybe<Scalars['String']>;
|
763
770
|
campaign?: Maybe<Category>;
|
764
771
|
};
|
765
772
|
|
773
|
+
export enum DiscountType {
|
774
|
+
/** No discount defined */
|
775
|
+
Undefined = 'UNDEFINED',
|
776
|
+
/** Discount drops price of the order total by defined amount */
|
777
|
+
FixedAmount = 'FIXED_AMOUNT',
|
778
|
+
/** Discount drops price of the product by X % */
|
779
|
+
Percent = 'PERCENT',
|
780
|
+
/** Discount will get the amount of the cheapest product and use this as a discount */
|
781
|
+
Items = 'ITEMS',
|
782
|
+
/** Discount drops total price of the product if there is at least X of them in cart */
|
783
|
+
ItemsPercentageLimit = 'ITEMS_PERCENTAGE_LIMIT',
|
784
|
+
/** Only a collection of products */
|
785
|
+
OnlyUseLandingPage = 'ONLY_USE_LANDING_PAGE',
|
786
|
+
/** Discount drops price of the least expensive product in cart */
|
787
|
+
PercentOnLeastExpensiveItem = 'PERCENT_ON_LEAST_EXPENSIVE_ITEM',
|
788
|
+
/** Discount drops price of the most expensive product in cart */
|
789
|
+
PercentOnMostExpensiveItem = 'PERCENT_ON_MOST_EXPENSIVE_ITEM',
|
790
|
+
/** Discount allows to get a free gift when the product is added */
|
791
|
+
FreeProduct = 'FREE_PRODUCT',
|
792
|
+
/** Discount allows to get free shipping option for the product */
|
793
|
+
FreeShipping = 'FREE_SHIPPING',
|
794
|
+
/** Discount drops price for the package when all products in the package is added to cart */
|
795
|
+
PackageDiscount = 'PACKAGE_DISCOUNT',
|
796
|
+
/** Discount on the order total from a voucher */
|
797
|
+
BonusVoucherDiscount = 'BONUS_VOUCHER_DISCOUNT',
|
798
|
+
/** Discount allows to buy amount of X of the article, but pay only for amount of Y */
|
799
|
+
BuyXArticlesPayYAmount = 'BUY_X_ARTICLES_PAY_Y_AMOUNT'
|
800
|
+
}
|
801
|
+
|
766
802
|
export type Document = {
|
767
803
|
head?: Maybe<HtmlHead>;
|
768
804
|
primaryRoute?: Maybe<Route>;
|
@@ -1219,11 +1255,13 @@ export type MutationLoginExternalCustomerArgs = {
|
|
1219
1255
|
|
1220
1256
|
|
1221
1257
|
export type MutationLoginArgs = {
|
1222
|
-
password
|
1258
|
+
password?: Maybe<Scalars['String']>;
|
1223
1259
|
email?: Maybe<Scalars['String']>;
|
1224
1260
|
pid?: Maybe<Scalars['String']>;
|
1225
1261
|
externalId?: Maybe<Scalars['String']>;
|
1226
1262
|
memberNumber?: Maybe<Scalars['String']>;
|
1263
|
+
externalHashId?: Maybe<Scalars['String']>;
|
1264
|
+
timeStamp?: Maybe<Scalars['String']>;
|
1227
1265
|
};
|
1228
1266
|
|
1229
1267
|
|
@@ -1585,6 +1623,12 @@ export type Page = Document & {
|
|
1585
1623
|
* returned if they are hidden. The `includeHidden` flag has no effect on this.
|
1586
1624
|
*/
|
1587
1625
|
subPages?: Maybe<Array<Page>>;
|
1626
|
+
/**
|
1627
|
+
* When set to false, the page will be excluded from sitemap. The frontend
|
1628
|
+
* implementation should use this value to set meta tags to exclude the page from
|
1629
|
+
* being indexed by crawlers. Defaults to true.
|
1630
|
+
*/
|
1631
|
+
allowWebIndexing?: Maybe<Scalars['Boolean']>;
|
1588
1632
|
};
|
1589
1633
|
|
1590
1634
|
|
@@ -1705,7 +1749,12 @@ export type Product = Document & {
|
|
1705
1749
|
relatedProducts?: Maybe<Array<Maybe<Product>>>;
|
1706
1750
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|
1707
1751
|
badges?: Maybe<Array<Maybe<ProductBadge>>>;
|
1708
|
-
/**
|
1752
|
+
/**
|
1753
|
+
* The current price.
|
1754
|
+
* - Will be a Customer specific price if that Customer has a separate price list.
|
1755
|
+
* - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
|
1756
|
+
* - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
|
1757
|
+
*/
|
1709
1758
|
price?: Maybe<Price>;
|
1710
1759
|
hidePrice?: Maybe<Scalars['Boolean']>;
|
1711
1760
|
/**
|
@@ -1725,6 +1774,14 @@ export type Product = Document & {
|
|
1725
1774
|
* time interval will be that of the variant which price is shown on the product.
|
1726
1775
|
*/
|
1727
1776
|
priceDateSpan?: Maybe<ProductPriceDateSpan>;
|
1777
|
+
/** Indicates if this product and its variants has member prices. */
|
1778
|
+
hasMemberPrice?: Maybe<Scalars['Boolean']>;
|
1779
|
+
/**
|
1780
|
+
* The price a Customer would get if member prices are active and the Customer is logged in.
|
1781
|
+
* - Will be null if `Product.hasMemberPrice` is false.
|
1782
|
+
* - Will be set if `Product.hasMemberPrice` is true.
|
1783
|
+
*/
|
1784
|
+
memberPrice?: Maybe<Price>;
|
1728
1785
|
/**
|
1729
1786
|
* Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
|
1730
1787
|
* If 'required' is true the Product should not be purchasable until the field is populated.
|
@@ -1986,7 +2043,12 @@ export type ProductVariant = {
|
|
1986
2043
|
articleNumber: Scalars['String'];
|
1987
2044
|
/** Variant values (combination of option values) */
|
1988
2045
|
values: Array<Maybe<Scalars['String']>>;
|
1989
|
-
/**
|
2046
|
+
/**
|
2047
|
+
* The current price.
|
2048
|
+
* - Will be a Customer specific price if that Customer has a separate price list.
|
2049
|
+
* - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
|
2050
|
+
* - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
|
2051
|
+
*/
|
1990
2052
|
price?: Maybe<Price>;
|
1991
2053
|
/**
|
1992
2054
|
* The previous price (i.e. this will be higher than `price` if the product is
|
@@ -2002,6 +2064,12 @@ export type ProductVariant = {
|
|
2002
2064
|
recommendedPrice?: Maybe<Price>;
|
2003
2065
|
/** The time interval of the discounted price. */
|
2004
2066
|
priceDateSpan?: Maybe<ProductPriceDateSpan>;
|
2067
|
+
/**
|
2068
|
+
* The price a Customer would get if member prices are active and the Customer is logged in.
|
2069
|
+
* - Will be null if `Product.hasMemberPrice` is false.
|
2070
|
+
* - Will be set if `Product.hasMemberPrice` is true.
|
2071
|
+
*/
|
2072
|
+
memberPrice?: Maybe<Price>;
|
2005
2073
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|
2006
2074
|
stockStatus?: Maybe<StockStatus>;
|
2007
2075
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|