@jetshop/core 4.5.17-non-polyfill-2 → 4.5.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -146,7 +146,7 @@ const startClient = (tree, config) => {
146
146
  };
147
147
  const main = (tree, config) => {
148
148
  // If the polyFillsLoaded flag is set to true then we know that the polyFills have been loaded and we can start the client.
149
- if (window.isClientReady) {
149
+ if (window.polyFillsLoaded) {
150
150
  return startClient(tree, config);
151
151
  }
152
152
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"startClient.js","sourceRoot":"","sources":["startClient.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO;AACP,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAEL,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,SAAS;AACT,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,UAAU;AACV,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,UAAU;AACV,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,WAAW;AACX,qBAAqB;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CA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M,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"}
@@ -16,7 +16,7 @@ import React from 'react';
16
16
  import { renderToString } from 'react-dom/server';
17
17
  import { ChunkExtractor, ChunkExtractorManager } from '@loadable/server';
18
18
  import { StaticRouter } from 'react-router-dom';
19
- import { createPolyfillMock } from '../../polyfills';
19
+ import { createPolyfill } from '../../polyfills';
20
20
  import { getActiveFiltersFromSearch } from '../../resolvers/filters/filterParams';
21
21
  import { createClient } from '../apollo';
22
22
  import SharedTree from '../SharedTree';
@@ -33,7 +33,7 @@ import { getPreloadLinkHeaderString } from './getPreloadAssets';
33
33
  const injectDataIntoSlots = (template, data) => Object.keys(data).reduce((output, key) => key !== 'htmlAttributes'
34
34
  ? output.replace(`<slot name="${key}"/>`, data[key])
35
35
  : output.replace('<html lang="en">', `<html ${data[key]}>`), template);
36
- const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler, previewHandler, translator, config, extractor) => __awaiter(void 0, void 0, void 0, function* () {
36
+ const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler, previewHandler, translator, locale, config, extractor) => __awaiter(void 0, void 0, void 0, function* () {
37
37
  const modules = [];
38
38
  const routerContext = { url: null, statusCode: 200 };
39
39
  const helmetContext = { helmet: null };
@@ -82,7 +82,7 @@ const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler,
82
82
  statusCode: routerContext.statusCode,
83
83
  helmet: helmetContext.helmet,
84
84
  apolloState,
85
- polyfill: createPolyfillMock()
85
+ polyfill: createPolyfill(locale)
86
86
  };
87
87
  });
88
88
  const startResponse = ({ res, head, statusCode }) => {
@@ -163,7 +163,7 @@ const createRenderer = (template, tree, options) => (req, res) => __awaiter(void
163
163
  selectedChannel,
164
164
  options: intl.options
165
165
  });
166
- const { translator } = yield setupIntl({
166
+ const { translator, locale } = yield setupIntl({
167
167
  translations: intl.translations,
168
168
  locale: selectedChannel.language.culture,
169
169
  defaultLocale: intl.defaultLocale,
@@ -183,7 +183,7 @@ const createRenderer = (template, tree, options) => (req, res) => __awaiter(void
183
183
  statsFile: loadableStatsPath,
184
184
  entrypoints: ['client']
185
185
  });
186
- const { wrappedTree, routerUrl, statusCode, helmet: { htmlAttributes, title, meta, style, link }, apolloState, polyfill } = yield wrapTree(tree, req, options, client, channelHandler, authHandler, previewHandler, translator, {
186
+ const { wrappedTree, routerUrl, statusCode, helmet: { htmlAttributes, title, meta, style, link }, apolloState, polyfill } = yield wrapTree(tree, req, options, client, channelHandler, authHandler, previewHandler, translator, locale, {
187
187
  loginPath: options.loginPath,
188
188
  pathsWithNoAuthRequired: options.pathsWithNoAuthRequired
189
189
  }, chunkExtractor);
@@ -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;AAEhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,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,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW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YAAY,EAAE,CAAC;IACpD,MAAM,cAAc,GAAG,cAAc,CAAC,aAAa,EAAE,CAAC;IACtD,SAAS;IACT,MAAM,gBAAgB,GAAG,2CAA2C,GAAG,CAAC,UAAU,aAAa,CAAC;IAChG,MAAM,kBAAkB,GAAG,uCAAuC,YAAY,aAAa,CAAC;IAC5F,MAAM,uBAAuB,GAAG,4CAA4C,IAAI,CAAC,SAAS,CACxF,iBAAiB,CAClB,aAAa,CAAC;IAEf,MAAM,IAAI,GAAG;QACX,WAAW,EAAE,WAAW;QACxB,QAAQ;QACR,YAAY;QACZ,cAAc,EACZ,cAAc,GAAG,kBAAkB,GAAG,uBAAuB;QAC/D,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;QACvB,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE;QACvC,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,gBAAgB,GAAG,aAAa;QAC1D,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE;KAC1C,CAAC;IAEF,MAAM,IAAI,GAAG,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAEvD,aAAa,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IACzC,GAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC7D,WAAW,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7B,CAAC,CAAA,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -35,20 +35,16 @@ productQueryResult: ProductsQuery): {
35
35
  categories?: import("../../types").Category[];
36
36
  campaigns?: import("../../types").Category[];
37
37
  hasVariants: boolean;
38
- hasVariantsWithDifferingPrices: boolean;
39
38
  variants?: import("../../types").ProductVariants;
40
39
  images?: import("../../types").ProductImage[];
41
40
  relatedProducts?: Product[];
42
41
  badges?: import("../../types").ProductBadge[];
43
42
  price?: import("../../types").Price;
44
- hidePrice?: boolean;
45
43
  previousPrice?: import("../../types").Price;
46
44
  defaultPrice?: import("../../types").Price;
47
45
  defaultPreviousPrice?: import("../../types").Price;
48
46
  recommendedPrice?: import("../../types").Price;
49
47
  priceDateSpan?: import("../../types").ProductPriceDateSpan;
50
- hasMemberPrice?: boolean;
51
- memberPrice?: import("../../types").Price;
52
48
  customerComments?: import("../../types").ProductComment[];
53
49
  stockStatus?: import("../../types").StockStatus;
54
50
  customFields?: import("../../types").CustomField[];
@@ -58,7 +54,6 @@ productQueryResult: ProductsQuery): {
58
54
  barcode?: string;
59
55
  configurations?: import("../../types").ProductConfiguration[];
60
56
  hasConfigurations: boolean;
61
- hasFamilyMembers: boolean;
62
57
  configurationPrice?: import("../../types").ProductConfigurationPrice;
63
58
  quantitySuffix?: string;
64
59
  isPreOrder?: boolean;
@@ -69,7 +64,6 @@ productQueryResult: ProductsQuery): {
69
64
  inPackages?: Product[];
70
65
  hasUpsell?: boolean;
71
66
  familyMembers?: Product[];
72
- history?: import("../../types").ProductHistory;
73
67
  }[];
74
68
  export declare function getVariantFromProductDetails(variant: Product['articleNumber'], product: Product): import("../../types").ProductVariant;
75
69
  export declare function flattenList(list: NormalizedProductList): FlattenedProductListItem[];
@@ -3,6 +3,10 @@ export function usePreconnectLinks({ ga = false, gtm = false } = {}) {
3
3
  const { apolloConfig } = useShopConfig();
4
4
  // These links are used with every store
5
5
  const staticLinks = [
6
+ {
7
+ href: 'https://cdn.polyfill.io',
8
+ crossOrigin: null
9
+ },
6
10
  (apolloConfig === null || apolloConfig === void 0 ? void 0 : apolloConfig.graphQLURI) && {
7
11
  href: apolloConfig === null || apolloConfig === void 0 ? void 0 : apolloConfig.graphQLURI,
8
12
  crossOrigin: null
@@ -1 +1 @@
1
- {"version":3,"file":"usePreconnectLinks.js","sourceRoot":"","sources":["usePreconnectLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAYhD,MAAM,UAAU,kBAAkB,CAAC,EACjC,EAAE,GAAG,KAAK,EACV,GAAG,GAAG,KAAK,KACc,EAAE;IAC3B,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAAC;IAEzC,wCAAwC;IACxC,MAAM,WAAW,GAAG;QAClB,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,KAAI;YAC1B,IAAI,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU;YAC9B,WAAW,EAAE,IAAI;SAClB;KACF,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,+DAA+D;IAC/D,MAAM,OAAO,GAAG,EAAE;QAChB,CAAC,CAAC;YACE,kCAAkC;YAClC,wBAAwB;YACxB,iCAAiC;SAClC;QACH,CAAC,CAAC,EAAE,CAAC;IAEP,6CAA6C;IAC7C,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjE,OAAO;QACL,GAAG,WAAW;QACd,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;KACvE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"usePreconnectLinks.js","sourceRoot":"","sources":["usePreconnectLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAYhD,MAAM,UAAU,kBAAkB,CAAC,EACjC,EAAE,GAAG,KAAK,EACV,GAAG,GAAG,KAAK,KACc,EAAE;IAC3B,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAAC;IAEzC,wCAAwC;IACxC,MAAM,WAAW,GAAG;QAClB;YACE,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,IAAI;SAClB;QACD,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,KAAI;YAC1B,IAAI,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU;YAC9B,WAAW,EAAE,IAAI;SAClB;KACF,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,+DAA+D;IAC/D,MAAM,OAAO,GAAG,EAAE;QAChB,CAAC,CAAC;YACE,kCAAkC;YAClC,wBAAwB;YACxB,iCAAiC;SAClC;QACH,CAAC,CAAC,EAAE,CAAC;IAEP,6CAA6C;IAC7C,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjE,OAAO;QACL,GAAG,WAAW;QACd,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;KACvE,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/core",
3
- "version": "4.5.17-non-polyfill-2",
3
+ "version": "4.5.17",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
package/polyfills.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const createPolyfillMock: () => string;
1
+ export declare const createPolyfill: (locale: string) => string;
package/polyfills.js CHANGED
@@ -1,8 +1,38 @@
1
1
  import { enableES5 } from 'immer';
2
2
  enableES5();
3
- export const createPolyfillMock = () => `
4
- <script>
5
- window.isClientReady = true;
6
- </script>
7
- `;
3
+ const polyfills = (locale) => [
4
+ 'es6',
5
+ 'Object.values',
6
+ 'Object.entries',
7
+ 'Object.keys',
8
+ 'Object.assign',
9
+ 'Array.prototype.find',
10
+ 'Array.prototype.findIndex',
11
+ 'Array.prototype.flatMap',
12
+ 'Array.prototype.includes',
13
+ 'Array.prototype.keys',
14
+ 'Array.from',
15
+ 'Array.prototype.fill',
16
+ 'String.prototype.endsWith',
17
+ 'String.prototype.startsWith',
18
+ 'URL',
19
+ 'IntersectionObserver',
20
+ `Intl.~locale.${locale}`,
21
+ 'Promise',
22
+ 'fetch',
23
+ 'Symbol',
24
+ 'ResizeObserver'
25
+ ];
26
+ export const createPolyfill = (locale) => {
27
+ const features = polyfills(locale).join(',');
28
+ // Here we add two script tags to be run once the client is loaded. One sets a global variable 'polyFillsLoaded' to false and adds a function bootShop which, when called will set 'polyFillsLoaded' to true. The second script will load the polyfills and once they are loaded will call the bootShop function to let the client know that the polyfills have been loaded and that the shop can be started.
29
+ return `
30
+ <script>
31
+ window.polyFillsLoaded = false;
32
+ window.bootShop = function() {
33
+ window.polyFillsLoaded = true;
34
+ };
35
+ </script>
36
+ <script async defer src="https://cdn.polyfill.io/v3/polyfill${process.env.NODE_ENV === 'production' ? '.min' : ''}.js?version=3.89.4&callback=bootShop&features=${features}&flags=gated"></script>`;
37
+ };
8
38
  //# sourceMappingURL=polyfills.js.map
package/polyfills.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,SAAS,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC;;;;CAIvC,CAAC"}
1
+ {"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,SAAS,EAAE,CAAC;AAEZ,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC;IACpC,KAAK;IACL,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,sBAAsB;IACtB,2BAA2B;IAC3B,yBAAyB;IACzB,0BAA0B;IAC1B,sBAAsB;IACtB,YAAY;IACZ,sBAAsB;IACtB,2BAA2B;IAC3B,6BAA6B;IAC7B,KAAK;IACL,sBAAsB;IACtB,gBAAgB,MAAM,EAAE;IACxB,SAAS;IACT,OAAO;IACP,QAAQ;IACR,gBAAgB;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,EAAE;IAC/C,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7C,6YAA6Y;IAC7Y,OAAO;;;;;;;gEAQL,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACnD,iDAAiD,QAAQ,yBAAyB,CAAC;AACrF,CAAC,CAAC"}
package/types.d.ts CHANGED
@@ -13,7 +13,7 @@ export type Scalars = {
13
13
  * [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) standard.
14
14
  */
15
15
  DateTime: any;
16
- /** The `Paging` scalar type represents a numeric values between <1; 100> */
16
+ /** The `Paging` scalar type represents a numeric values between (0; 100> */
17
17
  Paging: any;
18
18
  };
19
19
 
@@ -198,7 +198,6 @@ export type Category = Document & {
198
198
  mainHeader?: Maybe<Scalars['String']>;
199
199
  content?: Maybe<Scalars['String']>;
200
200
  externalId?: Maybe<Scalars['String']>;
201
- externalDiscountId?: Maybe<Scalars['String']>;
202
201
  images?: Maybe<Array<Maybe<CategoryImage>>>;
203
202
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
204
203
  products?: Maybe<PagedResult>;
@@ -219,19 +218,8 @@ export type Category = Document & {
219
218
  * product.primaryRoute will have to be used.
220
219
  */
221
220
  isDynamic: Scalars['Boolean'];
222
- /** The category's dynamic filtersNB: Carries a performance cost, as asking for
223
- * this will result in a separate API call in the backend.
224
- */
225
- dynamicFiltering?: Maybe<Array<Maybe<CategoryDynamicFilter>>>;
226
- /** Get content data set via the Content Editor. NB: Carries a performance cost,
227
- * as asking for this will result in a separate API call in the backend.
228
- */
221
+ /** Get content data set via the Content Editor */
229
222
  data?: Maybe<Content>;
230
- /** When set to false, the category will be excluded from sitemap. The frontend
231
- * implementation should use this value to set meta tags to exclude the category
232
- * from being indexed by crawlers. Defaults to true.
233
- */
234
- allowWebIndexing?: Maybe<Scalars['Boolean']>;
235
223
  };
236
224
 
237
225
  export type CategoryProductsArgs = {
@@ -253,17 +241,6 @@ export type CategoryAutoCompleteResult = {
253
241
  result?: Maybe<Array<Maybe<Category>>>;
254
242
  };
255
243
 
256
- export type CategoryDynamicFilter = {
257
- __typename?: 'CategoryDynamicFilter';
258
- type?: Maybe<Scalars['String']>;
259
- value?: Maybe<CategoryDynamicFilterValue>;
260
- };
261
-
262
- export type CategoryDynamicFilterValue =
263
- | StringValue
264
- | ListStringValue
265
- | BoolValue;
266
-
267
244
  export type CategoryImage = {
268
245
  __typename?: 'CategoryImage';
269
246
  width?: Maybe<Scalars['Int']>;
@@ -326,15 +303,12 @@ export type Consent = {
326
303
 
327
304
  export type Content = {
328
305
  __typename?: 'Content';
329
- name?: Maybe<Scalars['String']>;
330
306
  id: Scalars['ID'];
331
307
  items?: Maybe<Array<Maybe<ContentItem>>>;
332
- tags?: Maybe<Array<Maybe<Scalars['String']>>>;
333
308
  };
334
309
 
335
310
  export type ContentItem = {
336
311
  __typename?: 'ContentItem';
337
- name?: Maybe<Scalars['String']>;
338
312
  type: Scalars['String'];
339
313
  properties?: Maybe<Array<Maybe<ContentItemProperty>>>;
340
314
  children?: Maybe<Array<Maybe<ContentItem>>>;
@@ -651,20 +625,13 @@ export type CustomerUpdateDeliveryAddressInput = {
651
625
  addressName?: Maybe<Scalars['String']>;
652
626
  };
653
627
 
654
- export type CustomerUpdateExternalAttribute = {
655
- name: Scalars['String'];
656
- value: Scalars['String'];
657
- };
658
-
659
628
  export type CustomerUpdateInput = {
660
629
  pid?: Maybe<Scalars['String']>;
661
- emailAddress?: Maybe<Scalars['String']>;
662
630
  organizationNumber?: Maybe<Scalars['String']>;
663
631
  billingAddress: CustomerUpdateBillingAddressInput;
664
632
  deliveryAddresses?: Maybe<Array<Maybe<CustomerUpdateDeliveryAddressInput>>>;
665
633
  preferences?: Maybe<CustomerUpdatePreferenceInput>;
666
634
  consents?: Maybe<Array<Maybe<CustomerUpdateConsentInput>>>;
667
- externalAttributes?: Maybe<Array<Maybe<CustomerUpdateExternalAttribute>>>;
668
635
  dynamicContent?: Maybe<Scalars['String']>;
669
636
  };
670
637
 
@@ -748,43 +715,12 @@ export type DeleteCustomerProductListResult = {
748
715
 
749
716
  export type Discount = {
750
717
  __typename?: 'Discount';
751
- externalId?: Maybe<Scalars['ID']>;
752
718
  name?: Maybe<Scalars['String']>;
753
719
  value?: Maybe<Price>;
754
- type?: Maybe<DiscountType>;
755
720
  description?: Maybe<Scalars['String']>;
756
721
  campaign?: Maybe<Category>;
757
722
  };
758
723
 
759
- export enum DiscountType {
760
- /** No discount defined */
761
- Undefined = 'UNDEFINED',
762
- /** Discount drops price of the order total by defined amount */
763
- FixedAmount = 'FIXED_AMOUNT',
764
- /** Discount drops price of the product by X % */
765
- Percent = 'PERCENT',
766
- /** Discount will get the amount of the cheapest product and use this as a discount */
767
- Items = 'ITEMS',
768
- /** Discount drops total price of the product if there is at least X of them in cart */
769
- ItemsPercentageLimit = 'ITEMS_PERCENTAGE_LIMIT',
770
- /** Only a collection of products */
771
- OnlyUseLandingPage = 'ONLY_USE_LANDING_PAGE',
772
- /** Discount drops price of the least expensive product in cart */
773
- PercentOnLeastExpensiveItem = 'PERCENT_ON_LEAST_EXPENSIVE_ITEM',
774
- /** Discount drops price of the most expensive product in cart */
775
- PercentOnMostExpensiveItem = 'PERCENT_ON_MOST_EXPENSIVE_ITEM',
776
- /** Discount allows to get a free gift when the product is added */
777
- FreeProduct = 'FREE_PRODUCT',
778
- /** Discount allows to get free shipping option for the product */
779
- FreeShipping = 'FREE_SHIPPING',
780
- /** Discount drops price for the package when all products in the package is added to cart */
781
- PackageDiscount = 'PACKAGE_DISCOUNT',
782
- /** Discount on the order total from a voucher */
783
- BonusVoucherDiscount = 'BONUS_VOUCHER_DISCOUNT',
784
- /** Discount allows to buy amount of X of the article, but pay only for amount of Y */
785
- BuyXArticlesPayYAmount = 'BUY_X_ARTICLES_PAY_Y_AMOUNT'
786
- }
787
-
788
724
  export type Document = {
789
725
  head?: Maybe<HtmlHead>;
790
726
  primaryRoute?: Maybe<Route>;
@@ -825,12 +761,6 @@ export type ExternalCustomerResult = {
825
761
  customer?: Maybe<ExternalCustomer>;
826
762
  };
827
763
 
828
- export type ExternalOrderData = {
829
- __typename?: 'ExternalOrderData';
830
- name: Scalars['String'];
831
- value: Scalars['String'];
832
- };
833
-
834
764
  export type FacebookConversionsApi = {
835
765
  __typename?: 'FacebookConversionsApi';
836
766
  accessToken?: Maybe<Scalars['String']>;
@@ -861,16 +791,9 @@ export type GoogleAnalytics = {
861
791
  useArticleNumberAsId?: Maybe<Scalars['Boolean']>;
862
792
  };
863
793
 
864
- export type GoogleAnalytics4 = {
865
- __typename?: 'GoogleAnalytics4';
866
- trackingId?: Maybe<Scalars['String']>;
867
- useArticleNumberAsId?: Maybe<Scalars['Boolean']>;
868
- };
869
-
870
794
  export type GoogleTagManager = {
871
795
  __typename?: 'GoogleTagManager';
872
796
  containerId?: Maybe<Scalars['String']>;
873
- useGa4Events?: Maybe<Scalars['Boolean']>;
874
797
  };
875
798
 
876
799
  export type HtmlHead = {
@@ -913,12 +836,6 @@ export type Language = {
913
836
  isDefault?: Maybe<Scalars['Boolean']>;
914
837
  };
915
838
 
916
- export type Link = {
917
- __typename?: 'Link';
918
- target?: Maybe<Scalars['String']>;
919
- link?: Maybe<Scalars['Uri']>;
920
- };
921
-
922
839
  export type ListFilter = Filter & {
923
840
  __typename?: 'ListFilter';
924
841
  hasActiveItems: Scalars['Boolean'];
@@ -941,11 +858,6 @@ export type ListFilterItem = {
941
858
  resultCount?: Maybe<Scalars['Int']>;
942
859
  };
943
860
 
944
- export type ListStringValue = {
945
- __typename?: 'ListStringValue';
946
- value?: Maybe<Array<Maybe<Scalars['String']>>>;
947
- };
948
-
949
861
  export type LoginExternalCustomerInput = {
950
862
  externalCustomerToken: Scalars['String'];
951
863
  };
@@ -959,7 +871,6 @@ export type LoginExternalCustomerResult = {
959
871
  export type LoginResponse = {
960
872
  __typename?: 'LoginResponse';
961
873
  token: Token;
962
- customerId?: Maybe<Scalars['Int']>;
963
874
  };
964
875
 
965
876
  export type MaskedProperty = {
@@ -989,12 +900,6 @@ export type MultiListFilterList = {
989
900
  items: Array<Maybe<ListFilterItem>>;
990
901
  };
991
902
 
992
- export type MultipleContent = {
993
- __typename?: 'MultipleContent';
994
- notFoundIds: Array<Maybe<Scalars['ID']>>;
995
- content: Array<Maybe<Content>>;
996
- };
997
-
998
903
  export type Mutation = {
999
904
  __typename?: 'Mutation';
1000
905
  toggleListFilterItem?: Maybe<ListFilter>;
@@ -1110,7 +1015,7 @@ export type Mutation = {
1110
1015
  deleteCustomer?: Maybe<Scalars['Boolean']>;
1111
1016
  loginExternalCustomer?: Maybe<LoginExternalCustomerResult>;
1112
1017
  /** LoginMutation will log a user in.
1113
- * One of email, pid, externalId, memberNumber or customerId is required, along with a password.
1018
+ * One of email, pid, externalId or memberNumber is required, along with a password.
1114
1019
  * Returns an authorization token if the login was successful.
1115
1020
  */
1116
1021
  login?: Maybe<LoginResponse>;
@@ -1123,30 +1028,10 @@ export type Mutation = {
1123
1028
  * If the sign up is successful the customer may be considered to be logged on and an authentication token will be returned
1124
1029
  */
1125
1030
  signUp?: Maybe<SignUpResponse>;
1126
- /** ## Description
1127
- * This mutation's purpose is to update a existing customer's group using an
1128
- * access code. An authorization token is needed in the request, in order to be
1129
- * able to update the customer.
1130
- * ## Error Codes
1131
- * ### Unauthorized
1132
- * Unauthorized
1133
- * ### UnableToUpdateCustomer
1134
- * Error in underlying API call, more info may be contained in the error message.
1135
- * ### CustomerAlreadyUpdated
1136
- * Customer already in the customer group
1137
- * ### CustomerNotFound
1138
- * No match on customer with access code
1139
- */
1140
- updateCustomerGroup?: Maybe<UpdateCustomerGroupResult>;
1141
- /** This mutation's purpose is to update an existing customer's information. An
1142
- * authorization token is needed in the request, in order to be able to update the customer.
1031
+ /** This mutation's purpose is to update a existing customer's information. An
1032
+ * authorization token is needed in the request, in order to be able to delete the customer.
1143
1033
  */
1144
1034
  updateCustomer?: Maybe<CustomerUpdateResponse>;
1145
- /** This mutation's purpose is to update a existing customer's price list using an
1146
- * access code. An authorization token is needed in the request, in order to be
1147
- * able to update the customer.
1148
- */
1149
- updateCustomerPriceList?: Maybe<UpdateCustomerPriceListResult>;
1150
1035
  /** The updatePassword mutation updates the customers password. Both the old password and a new password is a requirement. */
1151
1036
  updatePassword?: Maybe<UpdatePasswordResult>;
1152
1037
  /** Adds products to the cart where you can add comments to the products and
@@ -1269,15 +1154,11 @@ export type MutationLoginExternalCustomerArgs = {
1269
1154
  };
1270
1155
 
1271
1156
  export type MutationLoginArgs = {
1272
- password?: Maybe<Scalars['String']>;
1157
+ password: Scalars['String'];
1273
1158
  email?: Maybe<Scalars['String']>;
1274
1159
  pid?: Maybe<Scalars['String']>;
1275
1160
  externalId?: Maybe<Scalars['String']>;
1276
1161
  memberNumber?: Maybe<Scalars['String']>;
1277
- externalHashId?: Maybe<Scalars['String']>;
1278
- timeStamp?: Maybe<Scalars['String']>;
1279
- customerId?: Maybe<Scalars['Int']>;
1280
- cartId?: Maybe<Scalars['String']>;
1281
1162
  };
1282
1163
 
1283
1164
  export type MutationRequestPasswordResetArgs = {
@@ -1293,18 +1174,10 @@ export type MutationSignUpArgs = {
1293
1174
  input: SignUpInput;
1294
1175
  };
1295
1176
 
1296
- export type MutationUpdateCustomerGroupArgs = {
1297
- customerGroupAccessCode: Scalars['String'];
1298
- };
1299
-
1300
1177
  export type MutationUpdateCustomerArgs = {
1301
1178
  input: CustomerUpdateInput;
1302
1179
  };
1303
1180
 
1304
- export type MutationUpdateCustomerPriceListArgs = {
1305
- priceListAccessCode: Scalars['String'];
1306
- };
1307
-
1308
1181
  export type MutationUpdatePasswordArgs = {
1309
1182
  oldPassword: Scalars['String'];
1310
1183
  newPassword: Scalars['String'];
@@ -1374,7 +1247,6 @@ export type Order = {
1374
1247
  orderDate?: Maybe<Scalars['DateTime']>;
1375
1248
  currency?: Maybe<Currency>;
1376
1249
  attachments?: Maybe<Array<Maybe<OrderAttachment>>>;
1377
- orderPurchaseLocation?: Maybe<Scalars['String']>;
1378
1250
  };
1379
1251
 
1380
1252
  export type OrderItemsArgs = {
@@ -1471,8 +1343,6 @@ export type OrderItem = {
1471
1343
  */
1472
1344
  variantValue?: Maybe<Scalars['String']>;
1473
1345
  preOrderDate?: Maybe<Scalars['DateTime']>;
1474
- /** list of name, value fields from orders coming from external systems. */
1475
- externalOrderData?: Maybe<Array<Maybe<ExternalOrderData>>>;
1476
1346
  };
1477
1347
 
1478
1348
  export type OrderItemDiscount = {
@@ -1543,9 +1413,6 @@ export type Page = Document & {
1543
1413
  name: Scalars['String'];
1544
1414
  mainHeader?: Maybe<Scalars['String']>;
1545
1415
  content?: Maybe<Scalars['String']>;
1546
- hasExternalUrl?: Maybe<Scalars['Boolean']>;
1547
- /** External URL if page is set to URL, null if not. */
1548
- externalUrl?: Maybe<Link>;
1549
1416
  images?: Maybe<Array<Maybe<Image>>>;
1550
1417
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1551
1418
  head?: Maybe<HtmlHead>;
@@ -1554,30 +1421,18 @@ export type Page = Document & {
1554
1421
  */
1555
1422
  primaryRoute?: Maybe<Route>;
1556
1423
  breadcrumbText?: Maybe<Scalars['String']>;
1557
- /** Get content data set via the Content Editor. NB: Carries a performance cost,
1558
- * as asking for this will result in a separate API call in the backend.
1559
- */
1424
+ /** Get content data set via the Content Editor */
1560
1425
  data?: Maybe<Content>;
1561
- /** * If this page was fetched by ID using the `page(id)` query, `parent` will be returned even if it is hidden.
1562
- * * If this page was fetched using the `pages` query, `parent` will not be returned if it is hidden
1426
+ /** If this page was fetched by ID using the `page(id)` query, parent will be
1427
+ * returned even if it is hidden. If this page was fetched using the `pages`
1428
+ * query, parent will not be returned if it is hidden
1563
1429
  */
1564
1430
  parent?: Maybe<Page>;
1565
- /** * If this page was fetched by ID using the `page(id)` query, `subPages` will
1566
- * be returned even if they are hidden. This can be overridden with the
1567
- * `includeHidden` flag.
1568
- * * If this page was fetched using the `pages` query, `subPages` will not be
1569
- * returned if they are hidden. The `includeHidden` flag has no effect on this.
1431
+ /** If this page was fetched by ID using the page(id) query, subPages will be
1432
+ * returned even if they are hidden. If this page was fetched using the pages
1433
+ * query, subPages will not be returned if they are hidden
1570
1434
  */
1571
1435
  subPages?: Maybe<Array<Page>>;
1572
- /** When set to false, the page will be excluded from sitemap. The frontend
1573
- * implementation should use this value to set meta tags to exclude the page from
1574
- * being indexed by crawlers. Defaults to true.
1575
- */
1576
- allowWebIndexing?: Maybe<Scalars['Boolean']>;
1577
- };
1578
-
1579
- export type PageSubPagesArgs = {
1580
- includeHidden?: Maybe<Scalars['Boolean']>;
1581
1436
  };
1582
1437
 
1583
1438
  export type PagedResult = {
@@ -1627,12 +1482,6 @@ export type Price = {
1627
1482
  vat: Scalars['Decimal'];
1628
1483
  };
1629
1484
 
1630
- export type PriceHistory = {
1631
- __typename?: 'PriceHistory';
1632
- timestamp?: Maybe<Scalars['DateTime']>;
1633
- price?: Maybe<Price>;
1634
- };
1635
-
1636
1485
  export type PrivateCustomer = Customer & {
1637
1486
  __typename?: 'PrivateCustomer';
1638
1487
  pid?: Maybe<Scalars['String']>;
@@ -1681,20 +1530,14 @@ export type Product = Document & {
1681
1530
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1682
1531
  campaigns?: Maybe<Array<Maybe<Category>>>;
1683
1532
  hasVariants: Scalars['Boolean'];
1684
- hasVariantsWithDifferingPrices: Scalars['Boolean'];
1685
1533
  variants?: Maybe<ProductVariants>;
1686
1534
  images?: Maybe<Array<Maybe<ProductImage>>>;
1687
1535
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1688
1536
  relatedProducts?: Maybe<Array<Maybe<Product>>>;
1689
1537
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1690
1538
  badges?: Maybe<Array<Maybe<ProductBadge>>>;
1691
- /** The current price.
1692
- * - Will be a Customer specific price if that Customer has a separate price list.
1693
- * - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
1694
- * - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
1695
- */
1539
+ /** The current price. Will be a Customer specific price, if that Customer has a separate price list. */
1696
1540
  price?: Maybe<Price>;
1697
- hidePrice?: Maybe<Scalars['Boolean']>;
1698
1541
  /** The previous price (i.e. this will be higher than `price` if the product is
1699
1542
  * discounted). Will be a Customer specific previous price, if that Customer has
1700
1543
  * a separate price list.
@@ -1710,15 +1553,10 @@ export type Product = Document & {
1710
1553
  * time interval will be that of the variant which price is shown on the product.
1711
1554
  */
1712
1555
  priceDateSpan?: Maybe<ProductPriceDateSpan>;
1713
- /** Indicates if this product and its variants has member prices. */
1714
- hasMemberPrice?: Maybe<Scalars['Boolean']>;
1715
- /** The price a Customer would get if member prices are active and the Customer is logged in.
1716
- * - Will be null if `Product.hasMemberPrice` is false.
1717
- * - Will be set if `Product.hasMemberPrice` is true.
1718
- */
1719
- memberPrice?: Maybe<Price>;
1720
1556
  /** Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
1721
- * If 'required' is true the Product should not be purchasable until the field is populated.
1557
+ * If 'required' is true the Product should not be purchasable
1558
+ * until the field is populated.NB: Carries a performance cost, as asking for
1559
+ * this will result in a separate API call in the backend.
1722
1560
  */
1723
1561
  customerComments?: Maybe<Array<Maybe<ProductComment>>>;
1724
1562
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
@@ -1726,6 +1564,7 @@ export type Product = Document & {
1726
1564
  customFields?: Maybe<Array<Maybe<CustomField>>>;
1727
1565
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1728
1566
  warehouseStock?: Maybe<Array<Maybe<Warehouse>>>;
1567
+ /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1729
1568
  head?: Maybe<HtmlHead>;
1730
1569
  /** The primary route of this Product. NB: Carries a performance cost, as asking
1731
1570
  * for this will result in a separate API call in the backend.
@@ -1748,13 +1587,12 @@ export type Product = Document & {
1748
1587
  */
1749
1588
  configurations?: Maybe<Array<Maybe<ProductConfiguration>>>;
1750
1589
  hasConfigurations: Scalars['Boolean'];
1751
- hasFamilyMembers: Scalars['Boolean'];
1752
1590
  /** Calculates the price of the product based on the configuration choices that's
1753
1591
  * been made. NB: Carries a performance cost, as asking for this will result in a
1754
1592
  * separate API call in the backend.
1755
1593
  */
1756
1594
  configurationPrice?: Maybe<ProductConfigurationPrice>;
1757
- /** Quantity suffix e.g pcs, box, etc. */
1595
+ /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1758
1596
  quantitySuffix?: Maybe<Scalars['String']>;
1759
1597
  isPreOrder?: Maybe<Scalars['Boolean']>;
1760
1598
  preOrder?: Maybe<ProductPreOrder>;
@@ -1778,8 +1616,6 @@ export type Product = Document & {
1778
1616
  * performance cost, as asking for this will result in a separate API call in the backend.
1779
1617
  */
1780
1618
  familyMembers?: Maybe<Array<Product>>;
1781
- /** Get Product History within the set number of days */
1782
- history?: Maybe<ProductHistory>;
1783
1619
  };
1784
1620
 
1785
1621
  export type ProductCategoriesArgs = {
@@ -1803,10 +1639,6 @@ export type ProductPackageArgs = {
1803
1639
  articleNumbers?: Maybe<Array<Maybe<PackagePriceInput>>>;
1804
1640
  };
1805
1641
 
1806
- export type ProductHistoryArgs = {
1807
- days?: Maybe<Scalars['Int']>;
1808
- };
1809
-
1810
1642
  export type ProductAutoCompleteResult = {
1811
1643
  __typename?: 'ProductAutoCompleteResult';
1812
1644
  result: Array<Maybe<Product>>;
@@ -1896,11 +1728,6 @@ export enum ProductCustomFieldType {
1896
1728
  MultiLevelList = 'MULTI_LEVEL_LIST'
1897
1729
  }
1898
1730
 
1899
- export type ProductHistory = {
1900
- __typename?: 'ProductHistory';
1901
- previousPrice?: Maybe<Array<Maybe<PriceHistory>>>;
1902
- };
1903
-
1904
1731
  export type ProductImage = {
1905
1732
  __typename?: 'ProductImage';
1906
1733
  /** Alternate text for the image, commonly used for the alt attribute of img-tags. */
@@ -1962,11 +1789,7 @@ export type ProductVariant = {
1962
1789
  articleNumber: Scalars['String'];
1963
1790
  /** Variant values (combination of option values) */
1964
1791
  values: Array<Maybe<Scalars['String']>>;
1965
- /** The current price.
1966
- * - Will be a Customer specific price if that Customer has a separate price list.
1967
- * - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
1968
- * - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
1969
- */
1792
+ /** The current price. Will be a Customer specific price, if that Customer has a separate price list. */
1970
1793
  price?: Maybe<Price>;
1971
1794
  /** The previous price (i.e. this will be higher than `price` if the product is
1972
1795
  * discounted). Will be a Customer specific previous price, if that Customer has
@@ -1981,34 +1804,18 @@ export type ProductVariant = {
1981
1804
  recommendedPrice?: Maybe<Price>;
1982
1805
  /** The time interval of the discounted price. */
1983
1806
  priceDateSpan?: Maybe<ProductPriceDateSpan>;
1984
- /** The price a Customer would get if member prices are active and the Customer is logged in.
1985
- * - Will be null if `Product.hasMemberPrice` is false.
1986
- * - Will be set if `Product.hasMemberPrice` is true.
1987
- */
1988
- memberPrice?: Maybe<Price>;
1989
1807
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1990
1808
  stockStatus?: Maybe<StockStatus>;
1991
1809
  /** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
1992
1810
  warehouseStock?: Maybe<Array<Maybe<Warehouse>>>;
1993
1811
  images?: Maybe<Array<Maybe<ProductImage>>>;
1994
1812
  barcode?: Maybe<Scalars['String']>;
1995
- /** Get Product History within the set number of days */
1996
- history?: Maybe<ProductVariantHistory>;
1997
1813
  };
1998
1814
 
1999
1815
  export type ProductVariantWarehouseStockArgs = {
2000
1816
  includeInactive?: Maybe<Scalars['Boolean']>;
2001
1817
  };
2002
1818
 
2003
- export type ProductVariantHistoryArgs = {
2004
- days?: Maybe<Scalars['Int']>;
2005
- };
2006
-
2007
- export type ProductVariantHistory = {
2008
- __typename?: 'ProductVariantHistory';
2009
- previousPrice?: Maybe<Array<Maybe<PriceHistory>>>;
2010
- };
2011
-
2012
1819
  export type ProductVariantOption = {
2013
1820
  __typename?: 'ProductVariantOption';
2014
1821
  name?: Maybe<Scalars['String']>;
@@ -2047,8 +1854,6 @@ export type Query = {
2047
1854
  customerProductLists: Array<Maybe<CustomerProductList>>;
2048
1855
  /** Fetches customer-unique offers */
2049
1856
  customerLoyalty?: Maybe<CustomerLoyalty>;
2050
- /** Lookup a customer by a mobile phone number */
2051
- customerLookup?: Maybe<Customer>;
2052
1857
  customer?: Maybe<Customer>;
2053
1858
  /** Used in the sign up process when the shop has a third party customer repository, e.g. Voyado.
2054
1859
  *
@@ -2057,10 +1862,6 @@ export type Query = {
2057
1862
  externalCustomerLookup?: Maybe<ExternalCustomerResult>;
2058
1863
  /** Get information on person by Key(personal id number or phone number) */
2059
1864
  personLookup?: Maybe<PersonLookup>;
2060
- /** Returns content found, either by a list of content Ids, or filtered by tags.
2061
- * In the case of filtering by ids, not found content Ids are listed as well.
2062
- */
2063
- content?: Maybe<MultipleContent>;
2064
1865
  /** get channel by id, null gets default channel */
2065
1866
  channel?: Maybe<Channel>;
2066
1867
  /** get all channels */
@@ -2122,10 +1923,6 @@ export type QueryCustomerProductListArgs = {
2122
1923
  shareToken?: Maybe<Scalars['String']>;
2123
1924
  };
2124
1925
 
2125
- export type QueryCustomerLookupArgs = {
2126
- phoneNumber?: Maybe<Scalars['String']>;
2127
- };
2128
-
2129
1926
  export type QueryExternalCustomerLookupArgs = {
2130
1927
  key?: Maybe<Scalars['String']>;
2131
1928
  };
@@ -2134,11 +1931,6 @@ export type QueryPersonLookupArgs = {
2134
1931
  key: Scalars['String'];
2135
1932
  };
2136
1933
 
2137
- export type QueryContentArgs = {
2138
- ids?: Maybe<Array<Maybe<Scalars['String']>>>;
2139
- tags?: Maybe<Array<Maybe<Scalars['String']>>>;
2140
- };
2141
-
2142
1934
  export type QueryChannelArgs = {
2143
1935
  id?: Maybe<Scalars['String']>;
2144
1936
  };
@@ -2227,10 +2019,6 @@ export type Route = {
2227
2019
  * another language.NB: Carries no additional performance cost.
2228
2020
  */
2229
2021
  alternateRoutes?: Maybe<Array<Maybe<AlternateRoute>>>;
2230
- /** N.B. for troubleshooting routes only! */
2231
- debug?: Maybe<Scalars['String']>;
2232
- /** Breadcrumb texts; starting with the root parent, ending on this route. */
2233
- breadcrumbs?: Maybe<Array<Maybe<Scalars['String']>>>;
2234
2022
  };
2235
2023
 
2236
2024
  export type SearchAutoCompleteResult = {
@@ -2329,11 +2117,6 @@ export type SignUpDeliveryAddressInput = {
2329
2117
  addressName?: Maybe<Scalars['String']>;
2330
2118
  };
2331
2119
 
2332
- export type SignUpExternalAttribute = {
2333
- name: Scalars['String'];
2334
- value: Scalars['String'];
2335
- };
2336
-
2337
2120
  export type SignUpInput = {
2338
2121
  type: CustomerType;
2339
2122
  pid?: Maybe<Scalars['String']>;
@@ -2346,9 +2129,7 @@ export type SignUpInput = {
2346
2129
  deliveryAddresses?: Maybe<Array<Maybe<SignUpDeliveryAddressInput>>>;
2347
2130
  preferences?: Maybe<SignUpPreferencesInput>;
2348
2131
  consents?: Maybe<Array<Maybe<SignUpConsentInput>>>;
2349
- externalAttributes?: Maybe<Array<Maybe<SignUpExternalAttribute>>>;
2350
2132
  dynamicContent?: Maybe<Scalars['String']>;
2351
- priceListAccessCode?: Maybe<Scalars['String']>;
2352
2133
  };
2353
2134
 
2354
2135
  export type SignUpPreferencesCommunicationInput = {
@@ -2396,9 +2177,7 @@ export type StartPage = Document & {
2396
2177
  /** The primary route of this StartPage */
2397
2178
  primaryRoute?: Maybe<Route>;
2398
2179
  breadcrumbText?: Maybe<Scalars['String']>;
2399
- /** Get content data set via the Content Editor. NB: Carries a performance cost,
2400
- * as asking for this will result in a separate API call in the backend.
2401
- */
2180
+ /** Get content data set via the Content Editor */
2402
2181
  data?: Maybe<Content>;
2403
2182
  };
2404
2183
 
@@ -2428,7 +2207,6 @@ export type StockStatus = {
2428
2207
  export type Store = {
2429
2208
  __typename?: 'Store';
2430
2209
  id: Scalars['Int'];
2431
- externalId?: Maybe<Scalars['String']>;
2432
2210
  name?: Maybe<Scalars['String']>;
2433
2211
  city?: Maybe<Scalars['String']>;
2434
2212
  region?: Maybe<Scalars['String']>;
@@ -2460,15 +2238,8 @@ export type Token = {
2460
2238
  export type Tracking = {
2461
2239
  __typename?: 'Tracking';
2462
2240
  ga?: Maybe<GoogleAnalytics>;
2463
- ga4?: Maybe<GoogleAnalytics4>;
2464
2241
  gtm?: Maybe<GoogleTagManager>;
2465
2242
  fca?: Maybe<FacebookConversionsApi>;
2466
- trackingConsents?: Maybe<TrackingConsents>;
2467
- };
2468
-
2469
- export type TrackingConsents = {
2470
- __typename?: 'TrackingConsents';
2471
- useTrackingConsentApi?: Maybe<Scalars['Boolean']>;
2472
2243
  };
2473
2244
 
2474
2245
  export type UpdateCartInput = {
@@ -2488,16 +2259,6 @@ export type UpdateCartMutation = {
2488
2259
  cart?: Maybe<Cart>;
2489
2260
  };
2490
2261
 
2491
- export type UpdateCustomerGroupResult = {
2492
- __typename?: 'UpdateCustomerGroupResult';
2493
- success: Scalars['Boolean'];
2494
- };
2495
-
2496
- export type UpdateCustomerPriceListResult = {
2497
- __typename?: 'UpdateCustomerPriceListResult';
2498
- success: Scalars['Boolean'];
2499
- };
2500
-
2501
2262
  export type UpdateCustomerProductListInput = {
2502
2263
  id: Scalars['ID'];
2503
2264
  typeId: Scalars['ID'];