@faststore/core 2.2.78 → 3.0.1
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/.babelrc.js +12 -0
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +89 -89
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/images-manifest.json +1 -1
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -0
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +17 -17
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/119.js +1 -0
- package/.next/server/chunks/12.js +1 -0
- package/.next/server/chunks/187.js +1 -0
- package/.next/server/chunks/202.js +1 -0
- package/.next/server/chunks/24.js +1 -0
- package/.next/server/chunks/242.js +1 -0
- package/.next/server/chunks/247.js +1 -0
- package/.next/server/chunks/344.js +1 -0
- package/.next/server/chunks/404.js +1 -434
- package/.next/server/chunks/414.js +1 -0
- package/.next/server/chunks/484.js +1 -0
- package/.next/server/chunks/493.js +1 -0
- package/.next/server/chunks/498.js +1 -0
- package/.next/server/chunks/540.js +1 -0
- package/.next/server/chunks/57.js +1 -434
- package/.next/server/chunks/624.js +1 -0
- package/.next/server/chunks/640.js +6 -0
- package/.next/server/chunks/646.js +279 -0
- package/.next/server/chunks/659.js +9 -0
- package/.next/server/chunks/679.js +1 -0
- package/.next/server/chunks/693.js +1 -58
- package/.next/server/chunks/694.js +1 -0
- package/.next/server/chunks/779.js +1 -58
- package/.next/server/chunks/82.js +8 -0
- package/.next/server/chunks/857.js +1 -0
- package/.next/server/chunks/859.js +4 -957
- package/.next/server/chunks/881.js +1 -0
- package/.next/server/chunks/917.js +1 -0
- package/.next/server/chunks/936.js +1 -0
- package/.next/server/chunks/96.js +1 -0
- package/.next/server/chunks/997.js +1 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.js +1 -391
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +1 -395
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1071
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +1 -2315
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +1 -301
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +1 -363
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +1 -164
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/account.js +1 -370
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +1 -3085
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/health/live.js +1 -31
- package/.next/server/pages/api/health/live.js.nft.json +1 -1
- package/.next/server/pages/api/health/ready.js +1 -31
- package/.next/server/pages/api/health/ready.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js +1 -137
- package/.next/server/pages/api/preview.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -370
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +4 -4
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages/index.js +1 -439
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +1 -382
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +1 -554
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -18
- package/.next/server/webpack-api-runtime.js +1 -229
- package/.next/server/webpack-runtime.js +1 -229
- package/.next/static/Xf_-r26LvSZnfqjpm_a71/_buildManifest.js +1 -0
- package/.next/static/chunks/104-d42a7ff6c8b8dd89.js +1 -0
- package/.next/static/chunks/161-b39fe2f79ff7bc85.js +1 -0
- package/.next/static/chunks/202.c7d8a71173edecfb.js +1 -0
- package/.next/static/chunks/217.01bc0ad07edd6f1b.js +1 -0
- package/.next/static/chunks/247.52b3924429a474c6.js +1 -0
- package/.next/static/chunks/484.b82b73b1d8c37e02.js +1 -0
- package/.next/static/chunks/540.6c62d2536d42a1e0.js +1 -0
- package/.next/static/chunks/575-853fb8b1ba4ce8c4.js +14 -0
- package/.next/static/chunks/624.d3de62b4562a33f3.js +1 -0
- package/.next/static/chunks/629-b7b5ef6f15ecba9d.js +1 -0
- package/.next/static/chunks/65.da22595d53beae76.js +1 -0
- package/.next/static/chunks/758.b53ee01b506973e0.js +1 -0
- package/.next/static/chunks/857.d2299cfe995af21d.js +1 -0
- package/.next/static/chunks/framework-8e279965036b6169.js +33 -0
- package/.next/static/chunks/main-6f63f6746cc029db.js +1 -0
- package/.next/static/chunks/pages/404-1334d11ab8467b3d.js +1 -0
- package/.next/static/chunks/pages/500-449c5bd51f98423f.js +1 -0
- package/.next/static/chunks/pages/[...slug]-7c8ec664c28eca52.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-a4f7d7c00fdf4157.js +1 -0
- package/.next/static/chunks/pages/_app-6516d0c2c7e0e686.js +68 -0
- package/.next/static/chunks/pages/_error-fbf331a03642b495.js +1 -0
- package/.next/static/chunks/pages/account-dbc5c028225cd1ac.js +1 -0
- package/.next/static/chunks/pages/checkout-29ae2c37eaf172e1.js +1 -0
- package/.next/static/chunks/pages/index-00798cca3b47590d.js +1 -0
- package/.next/static/chunks/pages/login-c4d2c856008df5ac.js +1 -0
- package/.next/static/chunks/pages/s-dacaed02ad104d73.js +1 -0
- package/.next/static/chunks/webpack-1c08d77cfe1b8585.js +1 -0
- package/.next/static/css/{021de9c7b050d301.css → 0d45c82d8887a269.css} +1 -1
- package/.next/static/css/{e772e7786bb4dee9.css → 211c7542af66d8b4.css} +1 -1
- package/.next/static/css/{df588bb98c0b0ca6.css → 2980acad3f8e1028.css} +1 -1
- package/.next/static/css/{510895065f32ed2f.css → 4c4d90eb8cb1d2b7.css} +1 -1
- package/.next/static/css/{938781cdc945862e.css → 821a5219786be653.css} +1 -1
- package/.next/static/css/{def381bf7c69fa2e.css → 96e3fddf695d6aa9.css} +1 -1
- package/.next/static/css/{6a7fdc5a21fbead5.css → b9d9ba1b04f3160d.css} +1 -1
- package/.next/static/css/{9558da13053ac066.css → cff9aafa16fccc9c.css} +1 -1
- package/.next/static/css/{7e897ebb936fac09.css → d586715f4f707df4.css} +1 -1
- package/.next/static/css/{cb7d1fcea42fab9c.css → e32410b31c666cb2.css} +1 -1
- package/.next/trace +91 -82
- package/.turbo/turbo-build.log +37 -42
- package/.turbo/turbo-lint.log +0 -3
- package/.turbo/turbo-test.log +9 -9
- package/@generated/gql.ts +196 -0
- package/@generated/{graphql/index.ts → graphql.ts} +718 -252
- package/@generated/index.ts +1 -0
- package/@generated/persisted-documents.json +13 -0
- package/api/index.ts +1 -1
- package/cms/faststore/content-types.json +18 -0
- package/cms/faststore/sections.json +73 -0
- package/codegen.ts +61 -0
- package/index.ts +1 -0
- package/jest.config.js +9 -1
- package/next.config.js +2 -0
- package/package.json +14 -10
- package/src/components/product/ProductCard/ProductCard.tsx +4 -4
- package/src/components/search/Filter/Filter.tsx +4 -3
- package/src/components/sections/EmptyState/DefaultComponents.ts +5 -0
- package/src/components/sections/EmptyState/EmptyState.tsx +91 -8
- package/src/components/sections/EmptyState/OverriddenDefaultEmptyState.ts +15 -0
- package/src/components/sections/ProductDetails/ProductDetails.tsx +6 -6
- package/src/components/ui/Image/Image.tsx +1 -1
- package/src/customizations/src/fragments/ClientManyProducts.ts +3 -3
- package/src/customizations/src/fragments/ClientProduct.ts +3 -3
- package/src/customizations/src/fragments/ClientProductGallery.ts +3 -3
- package/src/customizations/src/fragments/ClientSearchSuggestions.ts +3 -3
- package/src/customizations/src/fragments/ClientShippingSimulation.ts +3 -3
- package/src/customizations/src/fragments/ClientTopSearchSuggestions.ts +3 -3
- package/src/customizations/src/fragments/ServerCollectionPage.ts +3 -3
- package/src/customizations/src/fragments/ServerProduct.ts +3 -3
- package/src/pages/404.tsx +32 -30
- package/src/pages/500.tsx +32 -34
- package/src/pages/[...slug].tsx +4 -4
- package/src/pages/[slug]/p.tsx +7 -7
- package/src/pages/api/graphql.ts +10 -4
- package/src/pages/login.tsx +31 -8
- package/src/sdk/cart/index.ts +3 -3
- package/src/sdk/graphql/prefetchQuery.ts +4 -3
- package/src/sdk/graphql/request.ts +67 -8
- package/src/sdk/graphql/useLazyQuery.ts +4 -3
- package/src/sdk/graphql/useQuery.ts +7 -3
- package/src/sdk/newsletter/useNewsletter.ts +4 -4
- package/src/sdk/product/usePageProductsQuery.ts +3 -3
- package/src/sdk/product/useProductGalleryQuery.ts +10 -8
- package/src/sdk/product/useProductQuery.ts +3 -3
- package/src/sdk/product/useProductsPrefetch.ts +5 -3
- package/src/sdk/product/useProductsQuery.ts +3 -4
- package/src/sdk/search/useSuggestions.ts +3 -3
- package/src/sdk/search/useTopSearch.ts +3 -4
- package/src/sdk/session/index.ts +4 -4
- package/src/sdk/shipping/index.ts +3 -3
- package/src/server/generator/schema.ts +1 -1
- package/src/server/index.ts +11 -6
- package/src/typings/overrides.ts +3 -2
- package/test/server/index.test.ts +6 -1
- package/.babelrc +0 -4
- package/.next/cache/next-server.js.nft.json +0 -1
- package/.next/server/chunks/117.js +0 -427
- package/.next/server/chunks/177.js +0 -125
- package/.next/server/chunks/183.js +0 -122
- package/.next/server/chunks/184.js +0 -61
- package/.next/server/chunks/289.js +0 -243
- package/.next/server/chunks/312.js +0 -676
- package/.next/server/chunks/350.js +0 -2898
- package/.next/server/chunks/386.js +0 -200
- package/.next/server/chunks/574.js +0 -145
- package/.next/server/chunks/576.js +0 -122
- package/.next/server/chunks/585.js +0 -639
- package/.next/server/chunks/632.js +0 -514
- package/.next/server/chunks/661.js +0 -1451
- package/.next/server/chunks/676.js +0 -32
- package/.next/server/chunks/719.js +0 -84
- package/.next/server/chunks/74.js +0 -4152
- package/.next/server/chunks/825.js +0 -4074
- package/.next/server/chunks/854.js +0 -72
- package/.next/server/chunks/863.js +0 -111
- package/.next/server/chunks/898.js +0 -711
- package/.next/server/chunks/903.js +0 -1926
- package/.next/server/chunks/98.js +0 -163
- package/.next/server/chunks/988.js +0 -211
- package/.next/static/JJRI44e-3F3WVhD-DxmO2/_buildManifest.js +0 -1
- package/.next/static/chunks/223-cb77217cce52d45c.js +0 -1
- package/.next/static/chunks/251.11f5198fc8bef3a4.js +0 -1
- package/.next/static/chunks/386.d01e0db26c523f0f.js +0 -1
- package/.next/static/chunks/397-0d3aada1012cd78b.js +0 -1
- package/.next/static/chunks/574.70612be06fd1365f.js +0 -1
- package/.next/static/chunks/585.6561778b7763b79e.js +0 -1
- package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
- package/.next/static/chunks/675-479a97aecebead97.js +0 -1
- package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
- package/.next/static/chunks/800.5d92de2974baf641.js +0 -1
- package/.next/static/chunks/881-57643fb90f59e576.js +0 -1
- package/.next/static/chunks/98.40c7e17d9de4eb8f.js +0 -1
- package/.next/static/chunks/988.afda042dd9ba11d1.js +0 -1
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
- package/.next/static/chunks/main-e4e873ee741162eb.js +0 -1
- package/.next/static/chunks/pages/404-e106cb9a78182f5f.js +0 -1
- package/.next/static/chunks/pages/500-d28aa4a8ce88bddd.js +0 -1
- package/.next/static/chunks/pages/[...slug]-c4abcc133f85d9d0.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-4a75b11857b82b5c.js +0 -1
- package/.next/static/chunks/pages/_app-30b9666307e4b3b1.js +0 -1
- package/.next/static/chunks/pages/_error-319451dea77827a6.js +0 -1
- package/.next/static/chunks/pages/account-bf9c88a9cac80d8a.js +0 -1
- package/.next/static/chunks/pages/checkout-6ca76c1e88a28ac4.js +0 -1
- package/.next/static/chunks/pages/index-629ba146ae5f0ecf.js +0 -1
- package/.next/static/chunks/pages/login-d2af0de13ea75848.js +0 -1
- package/.next/static/chunks/pages/s-d729254b91430d1c.js +0 -1
- package/.next/static/chunks/webpack-54ce04ec11860b0b.js +0 -1
- package/@generated/graphql/persisted.json +0 -13
- package/codegen.yml +0 -23
- package/src/components/sections/EmptyState/Overrides.tsx +0 -14
- package/.next/static/{JJRI44e-3F3WVhD-DxmO2 → Xf_-r26LvSZnfqjpm_a71}/_ssgManifest.js +0 -0
- package/@generated/{graphql/schema.graphql → schema.graphql} +508 -508
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
$ yarn partytown & yarn generate && next build
|
|
2
2
|
$ partytown copylib ./public/~partytown
|
|
3
|
-
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
4
3
|
$ faststore generate-graphql -c
|
|
4
|
+
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
5
5
|
success - GraphQL schema, types, and optimizations successfully generated 🎉
|
|
6
|
-
|
|
7
|
-
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
|
|
8
|
-
|
|
9
|
-
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
6
|
+
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
10
7
|
Attention: Next.js now collects completely anonymous telemetry regarding usage.
|
|
11
8
|
This information is used to shape Next.js' roadmap and prioritize features.
|
|
12
9
|
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
|
|
@@ -15,51 +12,49 @@ https://nextjs.org/telemetry
|
|
|
15
12
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
16
13
|
npx browserslist@latest --update-db
|
|
17
14
|
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
18
|
-
|
|
19
|
-
Browserslist: caniuse-lite is outdated. Please run:
|
|
20
|
-
npx browserslist@latest --update-db
|
|
21
|
-
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
22
|
-
info - Creating an optimized production build...
|
|
23
|
-
info - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
|
|
15
|
+
Linting and checking validity of types ...
|
|
24
16
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
25
17
|
npx browserslist@latest --update-db
|
|
26
18
|
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
27
|
-
|
|
19
|
+
Creating an optimized production build ...
|
|
20
|
+
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
|
|
21
|
+
Using external babel configuration from /home/runner/work/faststore/faststore/packages/core/.babelrc.js
|
|
28
22
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
29
23
|
npx update-browserslist-db@latest
|
|
30
24
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
info - Generating static pages (3/7)
|
|
36
|
-
info - Generating static pages (5/7)
|
|
37
|
-
info - Generating static pages (7/7)
|
|
38
|
-
info - Finalizing page optimization...
|
|
25
|
+
✓ Compiled successfully
|
|
26
|
+
Collecting page data ...
|
|
27
|
+
Generating static pages (0/7) ...
|
|
28
|
+
|
|
39
29
|
Generating static pages (1/7)
|
|
30
|
+
|
|
40
31
|
Generating static pages (3/7)
|
|
32
|
+
|
|
41
33
|
Generating static pages (5/7)
|
|
34
|
+
|
|
42
35
|
✓ Generating static pages (7/7)
|
|
36
|
+
Finalizing page optimization ...
|
|
37
|
+
Collecting build traces ...
|
|
43
38
|
|
|
44
39
|
Route (pages) Size First Load JS
|
|
45
|
-
┌ ● / 3.
|
|
46
|
-
├ └ css/
|
|
47
|
-
├ /_app 0 B
|
|
48
|
-
├ ● /[...slug] 4.
|
|
49
|
-
├ └ css/
|
|
50
|
-
├ ● /[slug]/p
|
|
51
|
-
├ └ css/
|
|
52
|
-
├ ○ /404 1.
|
|
53
|
-
├ ● /500 1.
|
|
54
|
-
├ ● /account
|
|
55
|
-
├ λ /api/graphql 0 B
|
|
56
|
-
├ λ /api/health/live 0 B
|
|
57
|
-
├ λ /api/health/ready 0 B
|
|
58
|
-
├ λ /api/preview 0 B
|
|
59
|
-
├ ● /checkout
|
|
60
|
-
├ ● /login 1.
|
|
61
|
-
└ ● /s 4.
|
|
62
|
-
+ First Load JS shared by all
|
|
63
|
-
├ chunks/framework-
|
|
64
|
-
├ chunks/main-
|
|
65
|
-
├ chunks/pages/_app-
|
|
66
|
-
├ chunks/webpack-
|
|
40
|
+
┌ ● / 3.36 kB 143 kB
|
|
41
|
+
├ └ css/d586715f4f707df4.css 6.56 kB
|
|
42
|
+
├ /_app 0 B 93.4 kB
|
|
43
|
+
├ ● /[...slug] 4.47 kB 155 kB
|
|
44
|
+
├ └ css/4c4d90eb8cb1d2b7.css 7 kB
|
|
45
|
+
├ ● /[slug]/p 11.1 kB 151 kB
|
|
46
|
+
├ └ css/96e3fddf695d6aa9.css 11.3 kB
|
|
47
|
+
├ ○ /404 1.47 kB 126 kB
|
|
48
|
+
├ ● /500 1.47 kB 126 kB
|
|
49
|
+
├ ● /account 676 B 126 kB
|
|
50
|
+
├ λ /api/graphql 0 B 93.4 kB
|
|
51
|
+
├ λ /api/health/live 0 B 93.4 kB
|
|
52
|
+
├ λ /api/health/ready 0 B 93.4 kB
|
|
53
|
+
├ λ /api/preview 0 B 93.4 kB
|
|
54
|
+
├ ● /checkout 662 B 126 kB
|
|
55
|
+
├ ● /login 1.58 kB 127 kB
|
|
56
|
+
└ ● /s 4.66 kB 141 kB
|
|
57
|
+
+ First Load JS shared by all 96.4 kB
|
|
58
|
+
├ chunks/framework-8e279965036b6169.js 45.4 kB
|
|
59
|
+
├ chunks/main-6f63f6746cc029db.js 33.1 kB
|
|
60
|
+
├ chunks/pages/_app-6516d0c2c7e0e686.js 12.5 kB
|
|
61
|
+
├ chunks/webpack-1c08d77cfe1b8585.js 2.45 kB
|
|
67
62
|
└ css/5d1f64b61ea581f4.css 3.05 kB
|
|
68
63
|
|
|
69
64
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
$ next lint
|
|
2
|
-
warn - You have enabled experimental features (scrollRestoration, outputFileTracingRoot) in next.config.js.
|
|
3
|
-
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
|
|
4
|
-
|
|
5
2
|
✔ No ESLint warnings or errors
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/server/index.test.ts (
|
|
2
|
+
PASS test/server/index.test.ts (20.985 s)
|
|
3
3
|
FastStore GraphQL Layer
|
|
4
4
|
@faststore/api
|
|
5
|
-
✓ should return a valid GraphQL schema (
|
|
6
|
-
✓ should return a valid GraphQL schema contain all expected types (
|
|
5
|
+
✓ should return a valid GraphQL schema (6 ms)
|
|
6
|
+
✓ should return a valid GraphQL schema contain all expected types (4 ms)
|
|
7
7
|
✓ should return a valid GraphQL schema contain all expected queries (1 ms)
|
|
8
8
|
✓ should return a valid GraphQL schema contain all expected mutations (1 ms)
|
|
9
9
|
VTEX API Extension
|
|
10
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
10
|
+
✓ getTypeDefsFromFolder function should return an Array (5 ms)
|
|
11
11
|
Third Party API Extension
|
|
12
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
12
|
+
✓ getTypeDefsFromFolder function should return an Array (4 ms)
|
|
13
13
|
Final Schema after merging
|
|
14
|
-
✓ should return a valid merged GraphQL schema (
|
|
14
|
+
✓ should return a valid merged GraphQL schema (24 ms)
|
|
15
15
|
Envelop
|
|
16
|
-
✓ should exist with its plugins (
|
|
17
|
-
✓ should handle options and execute (
|
|
16
|
+
✓ should exist with its plugins (36 ms)
|
|
17
|
+
✓ should handle options and execute (164 ms)
|
|
18
18
|
|
|
19
19
|
Test Suites: 1 passed, 1 total
|
|
20
20
|
Tests: 9 passed, 9 total
|
|
21
21
|
Snapshots: 0 total
|
|
22
|
-
Time: 21.
|
|
22
|
+
Time: 21.071 s
|
|
23
23
|
Ran all test suites.
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import * as types from './graphql'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Map of all GraphQL operations in the project.
|
|
6
|
+
*
|
|
7
|
+
* This map has several performance disadvantages:
|
|
8
|
+
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
9
|
+
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
10
|
+
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
11
|
+
*
|
|
12
|
+
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
13
|
+
*/
|
|
14
|
+
const documents = {
|
|
15
|
+
'\n fragment ProductSummary_product on StoreProduct {\n id: productID\n slug\n sku\n brand {\n brandName: name\n }\n name\n gtin\n\n isVariantOf {\n productGroupID\n name\n }\n\n image {\n url\n alternateName\n }\n\n brand {\n name\n }\n\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n':
|
|
16
|
+
types.ProductSummary_ProductFragmentDoc,
|
|
17
|
+
'\n fragment Filter_facets on StoreFacet {\n ... on StoreFacetRange {\n key\n label\n\n min {\n selected\n absolute\n }\n\n max {\n selected\n absolute\n }\n\n __typename\n }\n ... on StoreFacetBoolean {\n key\n label\n values {\n label\n value\n selected\n quantity\n }\n\n __typename\n }\n }\n':
|
|
18
|
+
types.Filter_FacetsFragmentDoc,
|
|
19
|
+
'\n fragment ProductDetailsFragment_product on StoreProduct {\n id: productID\n sku\n name\n gtin\n description\n\n isVariantOf {\n name\n productGroupID\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n\n image {\n url\n alternateName\n }\n\n brand {\n name\n }\n\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n seller {\n identifier\n }\n }\n }\n\n # Contains necessary info to add this item to cart\n ...CartProductItem\n }\n':
|
|
20
|
+
types.ProductDetailsFragment_ProductFragmentDoc,
|
|
21
|
+
'\n fragment ClientManyProducts on Query {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n }\n }\n':
|
|
22
|
+
types.ClientManyProductsFragmentDoc,
|
|
23
|
+
'\n fragment ClientProduct on Query {\n product(locator: $locator) {\n id: productID\n }\n }\n':
|
|
24
|
+
types.ClientProductFragmentDoc,
|
|
25
|
+
'\n fragment ClientProductGallery on Query {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n }\n }\n':
|
|
26
|
+
types.ClientProductGalleryFragmentDoc,
|
|
27
|
+
'\n fragment ClientSearchSuggestions on Query {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n':
|
|
28
|
+
types.ClientSearchSuggestionsFragmentDoc,
|
|
29
|
+
'\n fragment ClientShippingSimulation on Query {\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n address {\n city\n }\n }\n }\n':
|
|
30
|
+
types.ClientShippingSimulationFragmentDoc,
|
|
31
|
+
'\n fragment ClientTopSearchSuggestions on Query {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n':
|
|
32
|
+
types.ClientTopSearchSuggestionsFragmentDoc,
|
|
33
|
+
'\n fragment ServerCollectionPage on Query {\n collection(slug: $slug) {\n id\n }\n }\n':
|
|
34
|
+
types.ServerCollectionPageFragmentDoc,
|
|
35
|
+
'\n fragment ServerProduct on Query {\n product(locator: $locator) {\n id: productID\n }\n }\n':
|
|
36
|
+
types.ServerProductFragmentDoc,
|
|
37
|
+
'\n query ServerCollectionPageQuery($slug: String!) {\n ...ServerCollectionPage\n collection(slug: $slug) {\n seo {\n title\n description\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n meta {\n selectedFacets {\n key\n value\n }\n }\n }\n }\n':
|
|
38
|
+
types.ServerCollectionPageQueryDocument,
|
|
39
|
+
'\n query ServerProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ServerProduct\n product(locator: $locator) {\n id: productID\n\n seo {\n title\n description\n canonical\n }\n\n brand {\n name\n }\n\n sku\n gtin\n name\n description\n releaseDate\n\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n\n image {\n url\n alternateName\n }\n\n offers {\n lowPrice\n highPrice\n priceCurrency\n offers {\n availability\n price\n priceValidUntil\n priceCurrency\n itemCondition\n seller {\n identifier\n }\n }\n }\n\n isVariantOf {\n productGroupID\n }\n\n ...ProductDetailsFragment_product\n }\n }\n':
|
|
40
|
+
types.ServerProductQueryDocument,
|
|
41
|
+
'\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n listPrice\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n':
|
|
42
|
+
types.ValidateCartMutationDocument,
|
|
43
|
+
'\n mutation SubscribeToNewsletter($data: IPersonNewsletter!) {\n subscribeToNewsletter(data: $data) {\n id\n }\n }\n':
|
|
44
|
+
types.SubscribeToNewsletterDocument,
|
|
45
|
+
'\n query ClientManyProductsQuery(\n $first: Int!\n $after: String\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientManyProducts\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n ...ProductSummary_product\n }\n }\n }\n }\n }\n':
|
|
46
|
+
types.ClientManyProductsQueryDocument,
|
|
47
|
+
'\n query ClientProductGalleryQuery(\n $first: Int!\n $after: String!\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientProductGallery\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n facets {\n ...Filter_facets\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n\n fragment SearchEvent_metadata on SearchMetadata {\n isTermMisspelled\n logicalOperator\n }\n':
|
|
48
|
+
types.ClientProductGalleryQueryDocument,
|
|
49
|
+
'\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n':
|
|
50
|
+
types.ClientProductQueryDocument,
|
|
51
|
+
'\n query ClientSearchSuggestionsQuery(\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]\n ) {\n ...ClientSearchSuggestions\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n products {\n ...ProductSummary_product\n }\n }\n products {\n pageInfo {\n totalCount\n }\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n':
|
|
52
|
+
types.ClientSearchSuggestionsQueryDocument,
|
|
53
|
+
'\n query ClientTopSearchSuggestionsQuery(\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]\n ) {\n ...ClientTopSearchSuggestions\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n':
|
|
54
|
+
types.ClientTopSearchSuggestionsQueryDocument,
|
|
55
|
+
'\n mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n addressType\n postalCode\n deliveryMode {\n deliveryChannel\n deliveryMethod\n deliveryWindow {\n startDate\n endDate\n }\n }\n geoCoordinates {\n latitude\n longitude\n }\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n }\n':
|
|
56
|
+
types.ValidateSessionDocument,
|
|
57
|
+
'\n query ClientShippingSimulationQuery(\n $postalCode: String!\n $country: String!\n $items: [IShippingItem!]!\n ) {\n ...ClientShippingSimulation\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n logisticsInfo {\n slas {\n carrier\n price\n availableDeliveryWindows {\n startDateUtc\n endDateUtc\n price\n listPrice\n }\n shippingEstimate\n localizedEstimates\n }\n }\n address {\n city\n neighborhood\n state\n }\n }\n }\n':
|
|
58
|
+
types.ClientShippingSimulationQueryDocument,
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
63
|
+
*/
|
|
64
|
+
export function gql(
|
|
65
|
+
source: '\n fragment ProductSummary_product on StoreProduct {\n id: productID\n slug\n sku\n brand {\n brandName: name\n }\n name\n gtin\n\n isVariantOf {\n productGroupID\n name\n }\n\n image {\n url\n alternateName\n }\n\n brand {\n name\n }\n\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n'
|
|
66
|
+
): typeof import('./graphql').ProductSummary_ProductFragmentDoc
|
|
67
|
+
/**
|
|
68
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
69
|
+
*/
|
|
70
|
+
export function gql(
|
|
71
|
+
source: '\n fragment Filter_facets on StoreFacet {\n ... on StoreFacetRange {\n key\n label\n\n min {\n selected\n absolute\n }\n\n max {\n selected\n absolute\n }\n\n __typename\n }\n ... on StoreFacetBoolean {\n key\n label\n values {\n label\n value\n selected\n quantity\n }\n\n __typename\n }\n }\n'
|
|
72
|
+
): typeof import('./graphql').Filter_FacetsFragmentDoc
|
|
73
|
+
/**
|
|
74
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
75
|
+
*/
|
|
76
|
+
export function gql(
|
|
77
|
+
source: '\n fragment ProductDetailsFragment_product on StoreProduct {\n id: productID\n sku\n name\n gtin\n description\n\n isVariantOf {\n name\n productGroupID\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n\n image {\n url\n alternateName\n }\n\n brand {\n name\n }\n\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n seller {\n identifier\n }\n }\n }\n\n # Contains necessary info to add this item to cart\n ...CartProductItem\n }\n'
|
|
78
|
+
): typeof import('./graphql').ProductDetailsFragment_ProductFragmentDoc
|
|
79
|
+
/**
|
|
80
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
81
|
+
*/
|
|
82
|
+
export function gql(
|
|
83
|
+
source: '\n fragment ClientManyProducts on Query {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n }\n }\n'
|
|
84
|
+
): typeof import('./graphql').ClientManyProductsFragmentDoc
|
|
85
|
+
/**
|
|
86
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
87
|
+
*/
|
|
88
|
+
export function gql(
|
|
89
|
+
source: '\n fragment ClientProduct on Query {\n product(locator: $locator) {\n id: productID\n }\n }\n'
|
|
90
|
+
): typeof import('./graphql').ClientProductFragmentDoc
|
|
91
|
+
/**
|
|
92
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
93
|
+
*/
|
|
94
|
+
export function gql(
|
|
95
|
+
source: '\n fragment ClientProductGallery on Query {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n }\n }\n'
|
|
96
|
+
): typeof import('./graphql').ClientProductGalleryFragmentDoc
|
|
97
|
+
/**
|
|
98
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
99
|
+
*/
|
|
100
|
+
export function gql(
|
|
101
|
+
source: '\n fragment ClientSearchSuggestions on Query {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n'
|
|
102
|
+
): typeof import('./graphql').ClientSearchSuggestionsFragmentDoc
|
|
103
|
+
/**
|
|
104
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
105
|
+
*/
|
|
106
|
+
export function gql(
|
|
107
|
+
source: '\n fragment ClientShippingSimulation on Query {\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n address {\n city\n }\n }\n }\n'
|
|
108
|
+
): typeof import('./graphql').ClientShippingSimulationFragmentDoc
|
|
109
|
+
/**
|
|
110
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
111
|
+
*/
|
|
112
|
+
export function gql(
|
|
113
|
+
source: '\n fragment ClientTopSearchSuggestions on Query {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n'
|
|
114
|
+
): typeof import('./graphql').ClientTopSearchSuggestionsFragmentDoc
|
|
115
|
+
/**
|
|
116
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
117
|
+
*/
|
|
118
|
+
export function gql(
|
|
119
|
+
source: '\n fragment ServerCollectionPage on Query {\n collection(slug: $slug) {\n id\n }\n }\n'
|
|
120
|
+
): typeof import('./graphql').ServerCollectionPageFragmentDoc
|
|
121
|
+
/**
|
|
122
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
123
|
+
*/
|
|
124
|
+
export function gql(
|
|
125
|
+
source: '\n fragment ServerProduct on Query {\n product(locator: $locator) {\n id: productID\n }\n }\n'
|
|
126
|
+
): typeof import('./graphql').ServerProductFragmentDoc
|
|
127
|
+
/**
|
|
128
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
129
|
+
*/
|
|
130
|
+
export function gql(
|
|
131
|
+
source: '\n query ServerCollectionPageQuery($slug: String!) {\n ...ServerCollectionPage\n collection(slug: $slug) {\n seo {\n title\n description\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n meta {\n selectedFacets {\n key\n value\n }\n }\n }\n }\n'
|
|
132
|
+
): typeof import('./graphql').ServerCollectionPageQueryDocument
|
|
133
|
+
/**
|
|
134
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
135
|
+
*/
|
|
136
|
+
export function gql(
|
|
137
|
+
source: '\n query ServerProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ServerProduct\n product(locator: $locator) {\n id: productID\n\n seo {\n title\n description\n canonical\n }\n\n brand {\n name\n }\n\n sku\n gtin\n name\n description\n releaseDate\n\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n\n image {\n url\n alternateName\n }\n\n offers {\n lowPrice\n highPrice\n priceCurrency\n offers {\n availability\n price\n priceValidUntil\n priceCurrency\n itemCondition\n seller {\n identifier\n }\n }\n }\n\n isVariantOf {\n productGroupID\n }\n\n ...ProductDetailsFragment_product\n }\n }\n'
|
|
138
|
+
): typeof import('./graphql').ServerProductQueryDocument
|
|
139
|
+
/**
|
|
140
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
141
|
+
*/
|
|
142
|
+
export function gql(
|
|
143
|
+
source: '\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n listPrice\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n'
|
|
144
|
+
): typeof import('./graphql').ValidateCartMutationDocument
|
|
145
|
+
/**
|
|
146
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
147
|
+
*/
|
|
148
|
+
export function gql(
|
|
149
|
+
source: '\n mutation SubscribeToNewsletter($data: IPersonNewsletter!) {\n subscribeToNewsletter(data: $data) {\n id\n }\n }\n'
|
|
150
|
+
): typeof import('./graphql').SubscribeToNewsletterDocument
|
|
151
|
+
/**
|
|
152
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
153
|
+
*/
|
|
154
|
+
export function gql(
|
|
155
|
+
source: '\n query ClientManyProductsQuery(\n $first: Int!\n $after: String\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientManyProducts\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n ...ProductSummary_product\n }\n }\n }\n }\n }\n'
|
|
156
|
+
): typeof import('./graphql').ClientManyProductsQueryDocument
|
|
157
|
+
/**
|
|
158
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
159
|
+
*/
|
|
160
|
+
export function gql(
|
|
161
|
+
source: '\n query ClientProductGalleryQuery(\n $first: Int!\n $after: String!\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientProductGallery\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n facets {\n ...Filter_facets\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n\n fragment SearchEvent_metadata on SearchMetadata {\n isTermMisspelled\n logicalOperator\n }\n'
|
|
162
|
+
): typeof import('./graphql').ClientProductGalleryQueryDocument
|
|
163
|
+
/**
|
|
164
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
165
|
+
*/
|
|
166
|
+
export function gql(
|
|
167
|
+
source: '\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n'
|
|
168
|
+
): typeof import('./graphql').ClientProductQueryDocument
|
|
169
|
+
/**
|
|
170
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
171
|
+
*/
|
|
172
|
+
export function gql(
|
|
173
|
+
source: '\n query ClientSearchSuggestionsQuery(\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]\n ) {\n ...ClientSearchSuggestions\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n products {\n ...ProductSummary_product\n }\n }\n products {\n pageInfo {\n totalCount\n }\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n'
|
|
174
|
+
): typeof import('./graphql').ClientSearchSuggestionsQueryDocument
|
|
175
|
+
/**
|
|
176
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
177
|
+
*/
|
|
178
|
+
export function gql(
|
|
179
|
+
source: '\n query ClientTopSearchSuggestionsQuery(\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]\n ) {\n ...ClientTopSearchSuggestions\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n'
|
|
180
|
+
): typeof import('./graphql').ClientTopSearchSuggestionsQueryDocument
|
|
181
|
+
/**
|
|
182
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
183
|
+
*/
|
|
184
|
+
export function gql(
|
|
185
|
+
source: '\n mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n addressType\n postalCode\n deliveryMode {\n deliveryChannel\n deliveryMethod\n deliveryWindow {\n startDate\n endDate\n }\n }\n geoCoordinates {\n latitude\n longitude\n }\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n }\n'
|
|
186
|
+
): typeof import('./graphql').ValidateSessionDocument
|
|
187
|
+
/**
|
|
188
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
189
|
+
*/
|
|
190
|
+
export function gql(
|
|
191
|
+
source: '\n query ClientShippingSimulationQuery(\n $postalCode: String!\n $country: String!\n $items: [IShippingItem!]!\n ) {\n ...ClientShippingSimulation\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n logisticsInfo {\n slas {\n carrier\n price\n availableDeliveryWindows {\n startDateUtc\n endDateUtc\n price\n listPrice\n }\n shippingEstimate\n localizedEstimates\n }\n }\n address {\n city\n neighborhood\n state\n }\n }\n }\n'
|
|
192
|
+
): typeof import('./graphql').ClientShippingSimulationQueryDocument
|
|
193
|
+
|
|
194
|
+
export function gql(source: string) {
|
|
195
|
+
return (documents as any)[source] ?? {}
|
|
196
|
+
}
|