@shopify/cli-hydrogen 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/commands/hydrogen/build.js +16 -2
  2. package/dist/commands/hydrogen/codegen-unstable.js +13 -24
  3. package/dist/commands/hydrogen/dev.js +45 -39
  4. package/dist/commands/hydrogen/env/list.js +25 -24
  5. package/dist/commands/hydrogen/env/list.test.js +46 -43
  6. package/dist/commands/hydrogen/env/pull.js +53 -25
  7. package/dist/commands/hydrogen/env/pull.test.js +123 -42
  8. package/dist/commands/hydrogen/generate/route.js +31 -132
  9. package/dist/commands/hydrogen/generate/route.test.js +34 -126
  10. package/dist/commands/hydrogen/init.js +46 -127
  11. package/dist/commands/hydrogen/init.test.js +352 -100
  12. package/dist/commands/hydrogen/link.js +70 -69
  13. package/dist/commands/hydrogen/link.test.js +72 -107
  14. package/dist/commands/hydrogen/list.js +22 -12
  15. package/dist/commands/hydrogen/list.test.js +51 -48
  16. package/dist/commands/hydrogen/login.js +31 -0
  17. package/dist/commands/hydrogen/logout.js +21 -0
  18. package/dist/commands/hydrogen/setup/css.js +79 -0
  19. package/dist/commands/hydrogen/setup/markets.js +53 -0
  20. package/dist/commands/hydrogen/setup.js +133 -0
  21. package/dist/commands/hydrogen/shortcut.js +2 -45
  22. package/dist/commands/hydrogen/shortcut.test.js +10 -37
  23. package/dist/generator-templates/assets/css-modules/package.json +6 -0
  24. package/dist/generator-templates/assets/postcss/package.json +10 -0
  25. package/dist/generator-templates/assets/postcss/postcss.config.js +8 -0
  26. package/dist/generator-templates/assets/tailwind/package.json +13 -0
  27. package/dist/generator-templates/assets/tailwind/postcss.config.js +10 -0
  28. package/dist/generator-templates/assets/tailwind/tailwind.config.js +8 -0
  29. package/dist/generator-templates/assets/tailwind/tailwind.css +3 -0
  30. package/dist/generator-templates/assets/vanilla-extract/package.json +9 -0
  31. package/dist/generator-templates/starter/.eslintignore +5 -0
  32. package/dist/generator-templates/starter/.eslintrc.js +18 -0
  33. package/dist/generator-templates/starter/.graphqlrc.yml +1 -0
  34. package/dist/generator-templates/starter/README.md +40 -0
  35. package/dist/generator-templates/starter/app/components/Aside.tsx +47 -0
  36. package/dist/generator-templates/starter/app/components/Cart.tsx +340 -0
  37. package/dist/generator-templates/starter/app/components/Footer.tsx +99 -0
  38. package/dist/generator-templates/starter/app/components/Header.tsx +178 -0
  39. package/dist/generator-templates/starter/app/components/Layout.tsx +95 -0
  40. package/dist/generator-templates/starter/app/components/Search.tsx +480 -0
  41. package/dist/generator-templates/starter/app/entry.client.tsx +12 -0
  42. package/dist/generator-templates/starter/app/entry.server.tsx +33 -0
  43. package/dist/generator-templates/starter/app/root.tsx +270 -0
  44. package/dist/generator-templates/starter/app/routes/$.tsx +7 -0
  45. package/dist/generator-templates/{routes → starter/app/routes}/[robots.txt].tsx +47 -69
  46. package/dist/generator-templates/starter/app/routes/[sitemap.xml].tsx +174 -0
  47. package/dist/generator-templates/starter/app/routes/_index.tsx +145 -0
  48. package/dist/generator-templates/starter/app/routes/account.$.tsx +9 -0
  49. package/dist/generator-templates/starter/app/routes/account.addresses.tsx +563 -0
  50. package/dist/generator-templates/starter/app/routes/account.orders.$id.tsx +309 -0
  51. package/dist/generator-templates/starter/app/routes/account.orders._index.tsx +196 -0
  52. package/dist/generator-templates/starter/app/routes/account.profile.tsx +289 -0
  53. package/dist/generator-templates/starter/app/routes/account.tsx +203 -0
  54. package/dist/generator-templates/starter/app/routes/account_.activate.$id.$activationToken.tsx +157 -0
  55. package/dist/generator-templates/starter/app/routes/account_.login.tsx +143 -0
  56. package/dist/generator-templates/starter/app/routes/account_.logout.tsx +33 -0
  57. package/dist/generator-templates/starter/app/routes/account_.recover.tsx +124 -0
  58. package/dist/generator-templates/starter/app/routes/account_.register.tsx +207 -0
  59. package/dist/generator-templates/starter/app/routes/account_.reset.$id.$resetToken.tsx +136 -0
  60. package/dist/generator-templates/starter/app/routes/api.predictive-search.tsx +342 -0
  61. package/dist/generator-templates/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +88 -0
  62. package/dist/generator-templates/starter/app/routes/blogs.$blogHandle._index.tsx +162 -0
  63. package/dist/generator-templates/starter/app/routes/blogs._index.tsx +94 -0
  64. package/dist/generator-templates/starter/app/routes/cart.tsx +104 -0
  65. package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +184 -0
  66. package/dist/generator-templates/starter/app/routes/collections._index.tsx +120 -0
  67. package/dist/generator-templates/starter/app/routes/pages.$handle.tsx +57 -0
  68. package/dist/generator-templates/starter/app/routes/policies.$handle.tsx +94 -0
  69. package/dist/generator-templates/starter/app/routes/policies._index.tsx +63 -0
  70. package/dist/generator-templates/starter/app/routes/products.$handle.tsx +418 -0
  71. package/dist/generator-templates/starter/app/routes/search.tsx +168 -0
  72. package/dist/generator-templates/starter/app/styles/app.css +473 -0
  73. package/dist/generator-templates/starter/app/styles/reset.css +129 -0
  74. package/dist/generator-templates/starter/app/utils.ts +46 -0
  75. package/dist/generator-templates/starter/package.json +43 -0
  76. package/dist/generator-templates/starter/public/favicon.svg +28 -0
  77. package/dist/generator-templates/starter/remix.config.js +26 -0
  78. package/dist/generator-templates/starter/remix.env.d.ts +39 -0
  79. package/dist/generator-templates/starter/server.ts +253 -0
  80. package/dist/generator-templates/starter/storefrontapi.generated.d.ts +1906 -0
  81. package/dist/generator-templates/starter/tsconfig.json +22 -0
  82. package/dist/lib/auth.js +123 -0
  83. package/dist/lib/auth.test.js +157 -0
  84. package/dist/lib/build.js +51 -0
  85. package/dist/lib/check-version.js +3 -3
  86. package/dist/lib/check-version.test.js +24 -0
  87. package/dist/lib/codegen.js +26 -17
  88. package/dist/lib/environment-variables.js +68 -0
  89. package/dist/lib/environment-variables.test.js +147 -0
  90. package/dist/lib/file.js +41 -0
  91. package/dist/lib/file.test.js +69 -0
  92. package/dist/lib/flags.js +39 -2
  93. package/dist/lib/format-code.js +26 -0
  94. package/dist/lib/gid.js +12 -0
  95. package/dist/lib/{graphql.test.js → gid.test.js} +1 -1
  96. package/dist/lib/graphql/admin/client.js +27 -0
  97. package/dist/lib/graphql/admin/client.test.js +51 -0
  98. package/dist/lib/graphql/admin/create-storefront.js +13 -15
  99. package/dist/lib/graphql/admin/create-storefront.test.js +64 -0
  100. package/dist/lib/graphql/admin/fetch-job.js +6 -15
  101. package/dist/lib/graphql/admin/link-storefront.js +7 -11
  102. package/dist/lib/graphql/admin/link-storefront.test.js +38 -0
  103. package/dist/lib/graphql/admin/list-environments.js +2 -2
  104. package/dist/lib/graphql/admin/list-environments.test.js +44 -0
  105. package/dist/lib/graphql/admin/list-storefronts.js +7 -11
  106. package/dist/lib/graphql/admin/list-storefronts.test.js +44 -0
  107. package/dist/lib/graphql/admin/pull-variables.js +3 -3
  108. package/dist/lib/graphql/admin/pull-variables.test.js +37 -0
  109. package/dist/lib/graphql/business-platform/user-account.js +83 -0
  110. package/dist/lib/graphql/business-platform/user-account.test.js +80 -0
  111. package/dist/lib/log.js +185 -9
  112. package/dist/lib/log.test.js +92 -0
  113. package/dist/lib/mini-oxygen.js +19 -9
  114. package/dist/lib/missing-routes.js +0 -2
  115. package/dist/lib/onboarding/common.js +456 -0
  116. package/dist/lib/onboarding/index.js +2 -0
  117. package/dist/lib/onboarding/local.js +229 -0
  118. package/dist/lib/onboarding/remote.js +89 -0
  119. package/dist/lib/remix-version-interop.js +5 -5
  120. package/dist/lib/remix-version-interop.test.js +11 -1
  121. package/dist/lib/render-errors.js +13 -11
  122. package/dist/lib/setups/css/assets.js +89 -0
  123. package/dist/lib/setups/css/css-modules.js +22 -0
  124. package/dist/lib/setups/css/index.js +44 -0
  125. package/dist/lib/setups/css/postcss.js +34 -0
  126. package/dist/lib/setups/css/replacers.js +137 -0
  127. package/dist/lib/setups/css/tailwind.js +54 -0
  128. package/dist/lib/setups/css/vanilla-extract.js +22 -0
  129. package/dist/lib/setups/i18n/domains.test.js +25 -0
  130. package/dist/lib/setups/i18n/index.js +46 -0
  131. package/dist/lib/setups/i18n/replacers.js +227 -0
  132. package/dist/lib/setups/i18n/subdomains.test.js +25 -0
  133. package/dist/lib/setups/i18n/subfolders.test.js +25 -0
  134. package/dist/lib/setups/i18n/templates/domains.js +14 -0
  135. package/dist/lib/setups/i18n/templates/domains.ts +25 -0
  136. package/dist/lib/setups/i18n/templates/subdomains.js +14 -0
  137. package/dist/lib/setups/i18n/templates/subdomains.ts +24 -0
  138. package/dist/lib/setups/i18n/templates/subfolders.js +14 -0
  139. package/dist/lib/setups/i18n/templates/subfolders.ts +28 -0
  140. package/dist/lib/setups/routes/generate.js +244 -0
  141. package/dist/lib/setups/routes/generate.test.js +313 -0
  142. package/dist/lib/shell.js +52 -5
  143. package/dist/lib/shell.test.js +42 -16
  144. package/dist/lib/shopify-config.js +23 -18
  145. package/dist/lib/shopify-config.test.js +63 -73
  146. package/dist/lib/template-downloader.js +9 -7
  147. package/dist/lib/transpile-ts.js +9 -29
  148. package/dist/virtual-routes/routes/index.jsx +40 -19
  149. package/oclif.manifest.json +710 -1
  150. package/package.json +16 -16
  151. package/dist/commands/hydrogen/build.d.ts +0 -23
  152. package/dist/commands/hydrogen/check.d.ts +0 -15
  153. package/dist/commands/hydrogen/codegen-unstable.d.ts +0 -15
  154. package/dist/commands/hydrogen/dev.d.ts +0 -21
  155. package/dist/commands/hydrogen/env/list.d.ts +0 -18
  156. package/dist/commands/hydrogen/env/pull.d.ts +0 -22
  157. package/dist/commands/hydrogen/g.d.ts +0 -10
  158. package/dist/commands/hydrogen/generate/route.d.ts +0 -32
  159. package/dist/commands/hydrogen/generate/route.test.d.ts +0 -1
  160. package/dist/commands/hydrogen/generate/routes.d.ts +0 -16
  161. package/dist/commands/hydrogen/init.d.ts +0 -24
  162. package/dist/commands/hydrogen/init.test.d.ts +0 -1
  163. package/dist/commands/hydrogen/link.d.ts +0 -23
  164. package/dist/commands/hydrogen/link.test.d.ts +0 -1
  165. package/dist/commands/hydrogen/list.d.ts +0 -21
  166. package/dist/commands/hydrogen/list.test.d.ts +0 -1
  167. package/dist/commands/hydrogen/preview.d.ts +0 -17
  168. package/dist/commands/hydrogen/shortcut.d.ts +0 -9
  169. package/dist/commands/hydrogen/shortcut.test.d.ts +0 -1
  170. package/dist/commands/hydrogen/unlink.d.ts +0 -16
  171. package/dist/commands/hydrogen/unlink.test.d.ts +0 -1
  172. package/dist/create-app.d.ts +0 -1
  173. package/dist/generator-templates/routes/[sitemap.xml].tsx +0 -235
  174. package/dist/generator-templates/routes/account/login.tsx +0 -103
  175. package/dist/generator-templates/routes/account/register.tsx +0 -103
  176. package/dist/generator-templates/routes/cart.tsx +0 -81
  177. package/dist/generator-templates/routes/collections/$collectionHandle.tsx +0 -104
  178. package/dist/generator-templates/routes/collections/index.tsx +0 -102
  179. package/dist/generator-templates/routes/graphiql.tsx +0 -10
  180. package/dist/generator-templates/routes/index.tsx +0 -40
  181. package/dist/generator-templates/routes/pages/$pageHandle.tsx +0 -112
  182. package/dist/generator-templates/routes/policies/$policyHandle.tsx +0 -140
  183. package/dist/generator-templates/routes/policies/index.tsx +0 -117
  184. package/dist/generator-templates/routes/products/$productHandle.tsx +0 -92
  185. package/dist/hooks/init.d.ts +0 -5
  186. package/dist/lib/admin-session.d.ts +0 -6
  187. package/dist/lib/admin-session.js +0 -16
  188. package/dist/lib/admin-session.test.d.ts +0 -1
  189. package/dist/lib/admin-session.test.js +0 -27
  190. package/dist/lib/admin-urls.d.ts +0 -8
  191. package/dist/lib/check-lockfile.d.ts +0 -3
  192. package/dist/lib/check-lockfile.test.d.ts +0 -1
  193. package/dist/lib/check-version.d.ts +0 -16
  194. package/dist/lib/check-version.test.d.ts +0 -1
  195. package/dist/lib/codegen.d.ts +0 -26
  196. package/dist/lib/combined-environment-variables.d.ts +0 -8
  197. package/dist/lib/combined-environment-variables.js +0 -57
  198. package/dist/lib/combined-environment-variables.test.d.ts +0 -1
  199. package/dist/lib/combined-environment-variables.test.js +0 -111
  200. package/dist/lib/config.d.ts +0 -20
  201. package/dist/lib/flags.d.ts +0 -27
  202. package/dist/lib/flags.test.d.ts +0 -1
  203. package/dist/lib/graphql/admin/create-storefront.d.ts +0 -17
  204. package/dist/lib/graphql/admin/fetch-job.d.ts +0 -23
  205. package/dist/lib/graphql/admin/link-storefront.d.ts +0 -14
  206. package/dist/lib/graphql/admin/list-environments.d.ts +0 -21
  207. package/dist/lib/graphql/admin/list-storefronts.d.ts +0 -25
  208. package/dist/lib/graphql/admin/pull-variables.d.ts +0 -21
  209. package/dist/lib/graphql.d.ts +0 -21
  210. package/dist/lib/graphql.js +0 -18
  211. package/dist/lib/graphql.test.d.ts +0 -1
  212. package/dist/lib/log.d.ts +0 -6
  213. package/dist/lib/mini-oxygen.d.ts +0 -22
  214. package/dist/lib/missing-routes.d.ts +0 -8
  215. package/dist/lib/missing-routes.test.d.ts +0 -1
  216. package/dist/lib/missing-storefronts.d.ts +0 -5
  217. package/dist/lib/missing-storefronts.js +0 -18
  218. package/dist/lib/process.d.ts +0 -6
  219. package/dist/lib/pull-environment-variables.d.ts +0 -20
  220. package/dist/lib/pull-environment-variables.js +0 -57
  221. package/dist/lib/pull-environment-variables.test.d.ts +0 -1
  222. package/dist/lib/pull-environment-variables.test.js +0 -174
  223. package/dist/lib/remix-version-interop.d.ts +0 -11
  224. package/dist/lib/remix-version-interop.test.d.ts +0 -1
  225. package/dist/lib/render-errors.d.ts +0 -16
  226. package/dist/lib/shell.d.ts +0 -11
  227. package/dist/lib/shell.test.d.ts +0 -1
  228. package/dist/lib/shop.d.ts +0 -7
  229. package/dist/lib/shop.js +0 -32
  230. package/dist/lib/shop.test.d.ts +0 -1
  231. package/dist/lib/shop.test.js +0 -78
  232. package/dist/lib/shopify-config.d.ts +0 -35
  233. package/dist/lib/shopify-config.test.d.ts +0 -1
  234. package/dist/lib/string.d.ts +0 -3
  235. package/dist/lib/string.test.d.ts +0 -1
  236. package/dist/lib/template-downloader.d.ts +0 -6
  237. package/dist/lib/transpile-ts.d.ts +0 -16
  238. package/dist/lib/user-errors.d.ts +0 -9
  239. package/dist/lib/user-errors.js +0 -11
  240. package/dist/lib/virtual-routes.d.ts +0 -7
  241. package/dist/lib/virtual-routes.test.d.ts +0 -1
  242. /package/dist/{commands/hydrogen/env/list.test.d.ts → lib/setups/css/common.js} +0 -0
  243. /package/dist/{commands/hydrogen/env/pull.test.d.ts → lib/setups/i18n/mock-i18n-types.js} +0 -0
@@ -0,0 +1,1906 @@
1
+ /* eslint-disable eslint-comments/disable-enable-pair */
2
+ /* eslint-disable eslint-comments/no-unlimited-disable */
3
+ /* eslint-disable */
4
+ import * as StorefrontAPI from '@shopify/hydrogen/storefront-api-types';
5
+
6
+ export type MenuItemFragment = Pick<
7
+ StorefrontAPI.MenuItem,
8
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
9
+ >;
10
+
11
+ export type ChildMenuItemFragment = Pick<
12
+ StorefrontAPI.MenuItem,
13
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
14
+ >;
15
+
16
+ export type ParentMenuItemFragment = Pick<
17
+ StorefrontAPI.MenuItem,
18
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
19
+ > & {
20
+ items: Array<
21
+ Pick<
22
+ StorefrontAPI.MenuItem,
23
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
24
+ >
25
+ >;
26
+ };
27
+
28
+ export type MenuFragment = Pick<StorefrontAPI.Menu, 'id'> & {
29
+ items: Array<
30
+ Pick<
31
+ StorefrontAPI.MenuItem,
32
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
33
+ > & {
34
+ items: Array<
35
+ Pick<
36
+ StorefrontAPI.MenuItem,
37
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
38
+ >
39
+ >;
40
+ }
41
+ >;
42
+ };
43
+
44
+ export type ShopFragment = Pick<
45
+ StorefrontAPI.Shop,
46
+ 'id' | 'name' | 'description'
47
+ > & {
48
+ primaryDomain: Pick<StorefrontAPI.Domain, 'url'>;
49
+ brand?: StorefrontAPI.Maybe<{
50
+ logo?: StorefrontAPI.Maybe<{
51
+ image?: StorefrontAPI.Maybe<Pick<StorefrontAPI.Image, 'url'>>;
52
+ }>;
53
+ }>;
54
+ };
55
+
56
+ export type HeaderQueryVariables = StorefrontAPI.Exact<{
57
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
58
+ headerMenuHandle: StorefrontAPI.Scalars['String'];
59
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
60
+ }>;
61
+
62
+ export type HeaderQuery = {
63
+ shop: Pick<StorefrontAPI.Shop, 'id' | 'name' | 'description'> & {
64
+ primaryDomain: Pick<StorefrontAPI.Domain, 'url'>;
65
+ brand?: StorefrontAPI.Maybe<{
66
+ logo?: StorefrontAPI.Maybe<{
67
+ image?: StorefrontAPI.Maybe<Pick<StorefrontAPI.Image, 'url'>>;
68
+ }>;
69
+ }>;
70
+ };
71
+ menu?: StorefrontAPI.Maybe<
72
+ Pick<StorefrontAPI.Menu, 'id'> & {
73
+ items: Array<
74
+ Pick<
75
+ StorefrontAPI.MenuItem,
76
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
77
+ > & {
78
+ items: Array<
79
+ Pick<
80
+ StorefrontAPI.MenuItem,
81
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
82
+ >
83
+ >;
84
+ }
85
+ >;
86
+ }
87
+ >;
88
+ };
89
+
90
+ export type FooterQueryVariables = StorefrontAPI.Exact<{
91
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
92
+ footerMenuHandle: StorefrontAPI.Scalars['String'];
93
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
94
+ }>;
95
+
96
+ export type FooterQuery = {
97
+ menu?: StorefrontAPI.Maybe<
98
+ Pick<StorefrontAPI.Menu, 'id'> & {
99
+ items: Array<
100
+ Pick<
101
+ StorefrontAPI.MenuItem,
102
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
103
+ > & {
104
+ items: Array<
105
+ Pick<
106
+ StorefrontAPI.MenuItem,
107
+ 'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
108
+ >
109
+ >;
110
+ }
111
+ >;
112
+ }
113
+ >;
114
+ };
115
+
116
+ export type StoreRobotsQueryVariables = StorefrontAPI.Exact<{
117
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
118
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
119
+ }>;
120
+
121
+ export type StoreRobotsQuery = {shop: Pick<StorefrontAPI.Shop, 'id'>};
122
+
123
+ export type SitemapQueryVariables = StorefrontAPI.Exact<{
124
+ urlLimits?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
125
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
126
+ }>;
127
+
128
+ export type SitemapQuery = {
129
+ products: {
130
+ nodes: Array<
131
+ Pick<
132
+ StorefrontAPI.Product,
133
+ 'updatedAt' | 'handle' | 'onlineStoreUrl' | 'title'
134
+ > & {
135
+ featuredImage?: StorefrontAPI.Maybe<
136
+ Pick<StorefrontAPI.Image, 'url' | 'altText'>
137
+ >;
138
+ }
139
+ >;
140
+ };
141
+ collections: {
142
+ nodes: Array<
143
+ Pick<StorefrontAPI.Collection, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
144
+ >;
145
+ };
146
+ pages: {
147
+ nodes: Array<
148
+ Pick<StorefrontAPI.Page, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
149
+ >;
150
+ };
151
+ };
152
+
153
+ export type FeaturedCollectionFragment = Pick<
154
+ StorefrontAPI.Collection,
155
+ 'id' | 'title' | 'handle'
156
+ > & {
157
+ image?: StorefrontAPI.Maybe<
158
+ Pick<StorefrontAPI.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>
159
+ >;
160
+ };
161
+
162
+ export type FeaturedCollectionQueryVariables = StorefrontAPI.Exact<{
163
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
164
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
165
+ }>;
166
+
167
+ export type FeaturedCollectionQuery = {
168
+ collections: {
169
+ nodes: Array<
170
+ Pick<StorefrontAPI.Collection, 'id' | 'title' | 'handle'> & {
171
+ image?: StorefrontAPI.Maybe<
172
+ Pick<
173
+ StorefrontAPI.Image,
174
+ 'id' | 'url' | 'altText' | 'width' | 'height'
175
+ >
176
+ >;
177
+ }
178
+ >;
179
+ };
180
+ };
181
+
182
+ export type RecommendedProductFragment = Pick<
183
+ StorefrontAPI.Product,
184
+ 'id' | 'title' | 'handle'
185
+ > & {
186
+ priceRange: {
187
+ minVariantPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
188
+ };
189
+ images: {
190
+ nodes: Array<
191
+ Pick<StorefrontAPI.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>
192
+ >;
193
+ };
194
+ };
195
+
196
+ export type RecommendedProductsQueryVariables = StorefrontAPI.Exact<{
197
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
198
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
199
+ }>;
200
+
201
+ export type RecommendedProductsQuery = {
202
+ products: {
203
+ nodes: Array<
204
+ Pick<StorefrontAPI.Product, 'id' | 'title' | 'handle'> & {
205
+ priceRange: {
206
+ minVariantPrice: Pick<
207
+ StorefrontAPI.MoneyV2,
208
+ 'amount' | 'currencyCode'
209
+ >;
210
+ };
211
+ images: {
212
+ nodes: Array<
213
+ Pick<
214
+ StorefrontAPI.Image,
215
+ 'id' | 'url' | 'altText' | 'width' | 'height'
216
+ >
217
+ >;
218
+ };
219
+ }
220
+ >;
221
+ };
222
+ };
223
+
224
+ export type CustomerAddressUpdateMutationVariables = StorefrontAPI.Exact<{
225
+ address: StorefrontAPI.MailingAddressInput;
226
+ customerAccessToken: StorefrontAPI.Scalars['String'];
227
+ id: StorefrontAPI.Scalars['ID'];
228
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
229
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
230
+ }>;
231
+
232
+ export type CustomerAddressUpdateMutation = {
233
+ customerAddressUpdate?: StorefrontAPI.Maybe<{
234
+ customerAddress?: StorefrontAPI.Maybe<
235
+ Pick<StorefrontAPI.MailingAddress, 'id'>
236
+ >;
237
+ customerUserErrors: Array<
238
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
239
+ >;
240
+ }>;
241
+ };
242
+
243
+ export type CustomerAddressDeleteMutationVariables = StorefrontAPI.Exact<{
244
+ customerAccessToken: StorefrontAPI.Scalars['String'];
245
+ id: StorefrontAPI.Scalars['ID'];
246
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
247
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
248
+ }>;
249
+
250
+ export type CustomerAddressDeleteMutation = {
251
+ customerAddressDelete?: StorefrontAPI.Maybe<
252
+ Pick<
253
+ StorefrontAPI.CustomerAddressDeletePayload,
254
+ 'deletedCustomerAddressId'
255
+ > & {
256
+ customerUserErrors: Array<
257
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
258
+ >;
259
+ }
260
+ >;
261
+ };
262
+
263
+ export type CustomerDefaultAddressUpdateMutationVariables =
264
+ StorefrontAPI.Exact<{
265
+ addressId: StorefrontAPI.Scalars['ID'];
266
+ customerAccessToken: StorefrontAPI.Scalars['String'];
267
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
268
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
269
+ }>;
270
+
271
+ export type CustomerDefaultAddressUpdateMutation = {
272
+ customerDefaultAddressUpdate?: StorefrontAPI.Maybe<{
273
+ customer?: StorefrontAPI.Maybe<{
274
+ defaultAddress?: StorefrontAPI.Maybe<
275
+ Pick<StorefrontAPI.MailingAddress, 'id'>
276
+ >;
277
+ }>;
278
+ customerUserErrors: Array<
279
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
280
+ >;
281
+ }>;
282
+ };
283
+
284
+ export type CustomerAddressCreateMutationVariables = StorefrontAPI.Exact<{
285
+ address: StorefrontAPI.MailingAddressInput;
286
+ customerAccessToken: StorefrontAPI.Scalars['String'];
287
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
288
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
289
+ }>;
290
+
291
+ export type CustomerAddressCreateMutation = {
292
+ customerAddressCreate?: StorefrontAPI.Maybe<{
293
+ customerAddress?: StorefrontAPI.Maybe<
294
+ Pick<StorefrontAPI.MailingAddress, 'id'>
295
+ >;
296
+ customerUserErrors: Array<
297
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
298
+ >;
299
+ }>;
300
+ };
301
+
302
+ export type OrderMoneyFragment = Pick<
303
+ StorefrontAPI.MoneyV2,
304
+ 'amount' | 'currencyCode'
305
+ >;
306
+
307
+ export type AddressFullFragment = Pick<
308
+ StorefrontAPI.MailingAddress,
309
+ | 'address1'
310
+ | 'address2'
311
+ | 'city'
312
+ | 'company'
313
+ | 'country'
314
+ | 'countryCodeV2'
315
+ | 'firstName'
316
+ | 'formatted'
317
+ | 'id'
318
+ | 'lastName'
319
+ | 'name'
320
+ | 'phone'
321
+ | 'province'
322
+ | 'provinceCode'
323
+ | 'zip'
324
+ >;
325
+
326
+ export type DiscountApplicationFragment = {
327
+ value:
328
+ | ({__typename: 'MoneyV2'} & Pick<
329
+ StorefrontAPI.MoneyV2,
330
+ 'amount' | 'currencyCode'
331
+ >)
332
+ | ({__typename: 'PricingPercentageValue'} & Pick<
333
+ StorefrontAPI.PricingPercentageValue,
334
+ 'percentage'
335
+ >);
336
+ };
337
+
338
+ export type OrderLineProductVariantFragment = Pick<
339
+ StorefrontAPI.ProductVariant,
340
+ 'id' | 'sku' | 'title'
341
+ > & {
342
+ image?: StorefrontAPI.Maybe<
343
+ Pick<StorefrontAPI.Image, 'altText' | 'height' | 'url' | 'id' | 'width'>
344
+ >;
345
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
346
+ product: Pick<StorefrontAPI.Product, 'handle'>;
347
+ };
348
+
349
+ export type OrderLineItemFullFragment = Pick<
350
+ StorefrontAPI.OrderLineItem,
351
+ 'title' | 'quantity'
352
+ > & {
353
+ discountAllocations: Array<{
354
+ allocatedAmount: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
355
+ discountApplication: {
356
+ value:
357
+ | ({__typename: 'MoneyV2'} & Pick<
358
+ StorefrontAPI.MoneyV2,
359
+ 'amount' | 'currencyCode'
360
+ >)
361
+ | ({__typename: 'PricingPercentageValue'} & Pick<
362
+ StorefrontAPI.PricingPercentageValue,
363
+ 'percentage'
364
+ >);
365
+ };
366
+ }>;
367
+ originalTotalPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
368
+ discountedTotalPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
369
+ variant?: StorefrontAPI.Maybe<
370
+ Pick<StorefrontAPI.ProductVariant, 'id' | 'sku' | 'title'> & {
371
+ image?: StorefrontAPI.Maybe<
372
+ Pick<StorefrontAPI.Image, 'altText' | 'height' | 'url' | 'id' | 'width'>
373
+ >;
374
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
375
+ product: Pick<StorefrontAPI.Product, 'handle'>;
376
+ }
377
+ >;
378
+ };
379
+
380
+ export type OrderFragment = Pick<
381
+ StorefrontAPI.Order,
382
+ | 'id'
383
+ | 'name'
384
+ | 'orderNumber'
385
+ | 'statusUrl'
386
+ | 'processedAt'
387
+ | 'fulfillmentStatus'
388
+ > & {
389
+ totalTaxV2?: StorefrontAPI.Maybe<
390
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
391
+ >;
392
+ totalPriceV2: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
393
+ subtotalPriceV2?: StorefrontAPI.Maybe<
394
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
395
+ >;
396
+ shippingAddress?: StorefrontAPI.Maybe<
397
+ Pick<
398
+ StorefrontAPI.MailingAddress,
399
+ | 'address1'
400
+ | 'address2'
401
+ | 'city'
402
+ | 'company'
403
+ | 'country'
404
+ | 'countryCodeV2'
405
+ | 'firstName'
406
+ | 'formatted'
407
+ | 'id'
408
+ | 'lastName'
409
+ | 'name'
410
+ | 'phone'
411
+ | 'province'
412
+ | 'provinceCode'
413
+ | 'zip'
414
+ >
415
+ >;
416
+ discountApplications: {
417
+ nodes: Array<{
418
+ value:
419
+ | ({__typename: 'MoneyV2'} & Pick<
420
+ StorefrontAPI.MoneyV2,
421
+ 'amount' | 'currencyCode'
422
+ >)
423
+ | ({__typename: 'PricingPercentageValue'} & Pick<
424
+ StorefrontAPI.PricingPercentageValue,
425
+ 'percentage'
426
+ >);
427
+ }>;
428
+ };
429
+ lineItems: {
430
+ nodes: Array<
431
+ Pick<StorefrontAPI.OrderLineItem, 'title' | 'quantity'> & {
432
+ discountAllocations: Array<{
433
+ allocatedAmount: Pick<
434
+ StorefrontAPI.MoneyV2,
435
+ 'amount' | 'currencyCode'
436
+ >;
437
+ discountApplication: {
438
+ value:
439
+ | ({__typename: 'MoneyV2'} & Pick<
440
+ StorefrontAPI.MoneyV2,
441
+ 'amount' | 'currencyCode'
442
+ >)
443
+ | ({__typename: 'PricingPercentageValue'} & Pick<
444
+ StorefrontAPI.PricingPercentageValue,
445
+ 'percentage'
446
+ >);
447
+ };
448
+ }>;
449
+ originalTotalPrice: Pick<
450
+ StorefrontAPI.MoneyV2,
451
+ 'amount' | 'currencyCode'
452
+ >;
453
+ discountedTotalPrice: Pick<
454
+ StorefrontAPI.MoneyV2,
455
+ 'amount' | 'currencyCode'
456
+ >;
457
+ variant?: StorefrontAPI.Maybe<
458
+ Pick<StorefrontAPI.ProductVariant, 'id' | 'sku' | 'title'> & {
459
+ image?: StorefrontAPI.Maybe<
460
+ Pick<
461
+ StorefrontAPI.Image,
462
+ 'altText' | 'height' | 'url' | 'id' | 'width'
463
+ >
464
+ >;
465
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
466
+ product: Pick<StorefrontAPI.Product, 'handle'>;
467
+ }
468
+ >;
469
+ }
470
+ >;
471
+ };
472
+ };
473
+
474
+ export type OrderQueryVariables = StorefrontAPI.Exact<{
475
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
476
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
477
+ orderId: StorefrontAPI.Scalars['ID'];
478
+ }>;
479
+
480
+ export type OrderQuery = {
481
+ order?: StorefrontAPI.Maybe<
482
+ Pick<
483
+ StorefrontAPI.Order,
484
+ | 'id'
485
+ | 'name'
486
+ | 'orderNumber'
487
+ | 'statusUrl'
488
+ | 'processedAt'
489
+ | 'fulfillmentStatus'
490
+ > & {
491
+ totalTaxV2?: StorefrontAPI.Maybe<
492
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
493
+ >;
494
+ totalPriceV2: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
495
+ subtotalPriceV2?: StorefrontAPI.Maybe<
496
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
497
+ >;
498
+ shippingAddress?: StorefrontAPI.Maybe<
499
+ Pick<
500
+ StorefrontAPI.MailingAddress,
501
+ | 'address1'
502
+ | 'address2'
503
+ | 'city'
504
+ | 'company'
505
+ | 'country'
506
+ | 'countryCodeV2'
507
+ | 'firstName'
508
+ | 'formatted'
509
+ | 'id'
510
+ | 'lastName'
511
+ | 'name'
512
+ | 'phone'
513
+ | 'province'
514
+ | 'provinceCode'
515
+ | 'zip'
516
+ >
517
+ >;
518
+ discountApplications: {
519
+ nodes: Array<{
520
+ value:
521
+ | ({__typename: 'MoneyV2'} & Pick<
522
+ StorefrontAPI.MoneyV2,
523
+ 'amount' | 'currencyCode'
524
+ >)
525
+ | ({__typename: 'PricingPercentageValue'} & Pick<
526
+ StorefrontAPI.PricingPercentageValue,
527
+ 'percentage'
528
+ >);
529
+ }>;
530
+ };
531
+ lineItems: {
532
+ nodes: Array<
533
+ Pick<StorefrontAPI.OrderLineItem, 'title' | 'quantity'> & {
534
+ discountAllocations: Array<{
535
+ allocatedAmount: Pick<
536
+ StorefrontAPI.MoneyV2,
537
+ 'amount' | 'currencyCode'
538
+ >;
539
+ discountApplication: {
540
+ value:
541
+ | ({__typename: 'MoneyV2'} & Pick<
542
+ StorefrontAPI.MoneyV2,
543
+ 'amount' | 'currencyCode'
544
+ >)
545
+ | ({__typename: 'PricingPercentageValue'} & Pick<
546
+ StorefrontAPI.PricingPercentageValue,
547
+ 'percentage'
548
+ >);
549
+ };
550
+ }>;
551
+ originalTotalPrice: Pick<
552
+ StorefrontAPI.MoneyV2,
553
+ 'amount' | 'currencyCode'
554
+ >;
555
+ discountedTotalPrice: Pick<
556
+ StorefrontAPI.MoneyV2,
557
+ 'amount' | 'currencyCode'
558
+ >;
559
+ variant?: StorefrontAPI.Maybe<
560
+ Pick<StorefrontAPI.ProductVariant, 'id' | 'sku' | 'title'> & {
561
+ image?: StorefrontAPI.Maybe<
562
+ Pick<
563
+ StorefrontAPI.Image,
564
+ 'altText' | 'height' | 'url' | 'id' | 'width'
565
+ >
566
+ >;
567
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
568
+ product: Pick<StorefrontAPI.Product, 'handle'>;
569
+ }
570
+ >;
571
+ }
572
+ >;
573
+ };
574
+ }
575
+ >;
576
+ };
577
+
578
+ export type OrderItemFragment = Pick<
579
+ StorefrontAPI.Order,
580
+ | 'financialStatus'
581
+ | 'fulfillmentStatus'
582
+ | 'id'
583
+ | 'orderNumber'
584
+ | 'customerUrl'
585
+ | 'statusUrl'
586
+ | 'processedAt'
587
+ > & {
588
+ currentTotalPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
589
+ lineItems: {
590
+ nodes: Array<
591
+ Pick<StorefrontAPI.OrderLineItem, 'title'> & {
592
+ variant?: StorefrontAPI.Maybe<{
593
+ image?: StorefrontAPI.Maybe<
594
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'height' | 'width'>
595
+ >;
596
+ }>;
597
+ }
598
+ >;
599
+ };
600
+ };
601
+
602
+ export type CustomerOrdersFragment = Pick<
603
+ StorefrontAPI.Customer,
604
+ 'numberOfOrders'
605
+ > & {
606
+ orders: {
607
+ nodes: Array<
608
+ Pick<
609
+ StorefrontAPI.Order,
610
+ | 'financialStatus'
611
+ | 'fulfillmentStatus'
612
+ | 'id'
613
+ | 'orderNumber'
614
+ | 'customerUrl'
615
+ | 'statusUrl'
616
+ | 'processedAt'
617
+ > & {
618
+ currentTotalPrice: Pick<
619
+ StorefrontAPI.MoneyV2,
620
+ 'amount' | 'currencyCode'
621
+ >;
622
+ lineItems: {
623
+ nodes: Array<
624
+ Pick<StorefrontAPI.OrderLineItem, 'title'> & {
625
+ variant?: StorefrontAPI.Maybe<{
626
+ image?: StorefrontAPI.Maybe<
627
+ Pick<
628
+ StorefrontAPI.Image,
629
+ 'url' | 'altText' | 'height' | 'width'
630
+ >
631
+ >;
632
+ }>;
633
+ }
634
+ >;
635
+ };
636
+ }
637
+ >;
638
+ pageInfo: Pick<
639
+ StorefrontAPI.PageInfo,
640
+ 'hasPreviousPage' | 'hasNextPage' | 'endCursor'
641
+ >;
642
+ };
643
+ };
644
+
645
+ export type CustomerOrdersQueryVariables = StorefrontAPI.Exact<{
646
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
647
+ customerAccessToken: StorefrontAPI.Scalars['String'];
648
+ endCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
649
+ first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
650
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
651
+ last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
652
+ startCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
653
+ }>;
654
+
655
+ export type CustomerOrdersQuery = {
656
+ customer?: StorefrontAPI.Maybe<
657
+ Pick<StorefrontAPI.Customer, 'numberOfOrders'> & {
658
+ orders: {
659
+ nodes: Array<
660
+ Pick<
661
+ StorefrontAPI.Order,
662
+ | 'financialStatus'
663
+ | 'fulfillmentStatus'
664
+ | 'id'
665
+ | 'orderNumber'
666
+ | 'customerUrl'
667
+ | 'statusUrl'
668
+ | 'processedAt'
669
+ > & {
670
+ currentTotalPrice: Pick<
671
+ StorefrontAPI.MoneyV2,
672
+ 'amount' | 'currencyCode'
673
+ >;
674
+ lineItems: {
675
+ nodes: Array<
676
+ Pick<StorefrontAPI.OrderLineItem, 'title'> & {
677
+ variant?: StorefrontAPI.Maybe<{
678
+ image?: StorefrontAPI.Maybe<
679
+ Pick<
680
+ StorefrontAPI.Image,
681
+ 'url' | 'altText' | 'height' | 'width'
682
+ >
683
+ >;
684
+ }>;
685
+ }
686
+ >;
687
+ };
688
+ }
689
+ >;
690
+ pageInfo: Pick<
691
+ StorefrontAPI.PageInfo,
692
+ 'hasPreviousPage' | 'hasNextPage' | 'endCursor'
693
+ >;
694
+ };
695
+ }
696
+ >;
697
+ };
698
+
699
+ export type CustomerUpdateMutationVariables = StorefrontAPI.Exact<{
700
+ customerAccessToken: StorefrontAPI.Scalars['String'];
701
+ customer: StorefrontAPI.CustomerUpdateInput;
702
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
703
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
704
+ }>;
705
+
706
+ export type CustomerUpdateMutation = {
707
+ customerUpdate?: StorefrontAPI.Maybe<{
708
+ customer?: StorefrontAPI.Maybe<
709
+ Pick<
710
+ StorefrontAPI.Customer,
711
+ 'acceptsMarketing' | 'email' | 'firstName' | 'id' | 'lastName' | 'phone'
712
+ >
713
+ >;
714
+ customerAccessToken?: StorefrontAPI.Maybe<
715
+ Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
716
+ >;
717
+ customerUserErrors: Array<
718
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
719
+ >;
720
+ }>;
721
+ };
722
+
723
+ export type CustomerFragment = Pick<
724
+ StorefrontAPI.Customer,
725
+ | 'acceptsMarketing'
726
+ | 'email'
727
+ | 'firstName'
728
+ | 'lastName'
729
+ | 'numberOfOrders'
730
+ | 'phone'
731
+ > & {
732
+ addresses: {
733
+ nodes: Array<
734
+ Pick<
735
+ StorefrontAPI.MailingAddress,
736
+ | 'id'
737
+ | 'formatted'
738
+ | 'firstName'
739
+ | 'lastName'
740
+ | 'company'
741
+ | 'address1'
742
+ | 'address2'
743
+ | 'country'
744
+ | 'province'
745
+ | 'city'
746
+ | 'zip'
747
+ | 'phone'
748
+ >
749
+ >;
750
+ };
751
+ defaultAddress?: StorefrontAPI.Maybe<
752
+ Pick<
753
+ StorefrontAPI.MailingAddress,
754
+ | 'id'
755
+ | 'formatted'
756
+ | 'firstName'
757
+ | 'lastName'
758
+ | 'company'
759
+ | 'address1'
760
+ | 'address2'
761
+ | 'country'
762
+ | 'province'
763
+ | 'city'
764
+ | 'zip'
765
+ | 'phone'
766
+ >
767
+ >;
768
+ };
769
+
770
+ export type AddressFragment = Pick<
771
+ StorefrontAPI.MailingAddress,
772
+ | 'id'
773
+ | 'formatted'
774
+ | 'firstName'
775
+ | 'lastName'
776
+ | 'company'
777
+ | 'address1'
778
+ | 'address2'
779
+ | 'country'
780
+ | 'province'
781
+ | 'city'
782
+ | 'zip'
783
+ | 'phone'
784
+ >;
785
+
786
+ export type CustomerQueryVariables = StorefrontAPI.Exact<{
787
+ customerAccessToken: StorefrontAPI.Scalars['String'];
788
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
789
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
790
+ }>;
791
+
792
+ export type CustomerQuery = {
793
+ customer?: StorefrontAPI.Maybe<
794
+ Pick<
795
+ StorefrontAPI.Customer,
796
+ | 'acceptsMarketing'
797
+ | 'email'
798
+ | 'firstName'
799
+ | 'lastName'
800
+ | 'numberOfOrders'
801
+ | 'phone'
802
+ > & {
803
+ addresses: {
804
+ nodes: Array<
805
+ Pick<
806
+ StorefrontAPI.MailingAddress,
807
+ | 'id'
808
+ | 'formatted'
809
+ | 'firstName'
810
+ | 'lastName'
811
+ | 'company'
812
+ | 'address1'
813
+ | 'address2'
814
+ | 'country'
815
+ | 'province'
816
+ | 'city'
817
+ | 'zip'
818
+ | 'phone'
819
+ >
820
+ >;
821
+ };
822
+ defaultAddress?: StorefrontAPI.Maybe<
823
+ Pick<
824
+ StorefrontAPI.MailingAddress,
825
+ | 'id'
826
+ | 'formatted'
827
+ | 'firstName'
828
+ | 'lastName'
829
+ | 'company'
830
+ | 'address1'
831
+ | 'address2'
832
+ | 'country'
833
+ | 'province'
834
+ | 'city'
835
+ | 'zip'
836
+ | 'phone'
837
+ >
838
+ >;
839
+ }
840
+ >;
841
+ };
842
+
843
+ export type CustomerActivateMutationVariables = StorefrontAPI.Exact<{
844
+ id: StorefrontAPI.Scalars['ID'];
845
+ input: StorefrontAPI.CustomerActivateInput;
846
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
847
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
848
+ }>;
849
+
850
+ export type CustomerActivateMutation = {
851
+ customerActivate?: StorefrontAPI.Maybe<{
852
+ customerAccessToken?: StorefrontAPI.Maybe<
853
+ Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
854
+ >;
855
+ customerUserErrors: Array<
856
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
857
+ >;
858
+ }>;
859
+ };
860
+
861
+ export type LoginMutationVariables = StorefrontAPI.Exact<{
862
+ input: StorefrontAPI.CustomerAccessTokenCreateInput;
863
+ }>;
864
+
865
+ export type LoginMutation = {
866
+ customerAccessTokenCreate?: StorefrontAPI.Maybe<{
867
+ customerUserErrors: Array<
868
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
869
+ >;
870
+ customerAccessToken?: StorefrontAPI.Maybe<
871
+ Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
872
+ >;
873
+ }>;
874
+ };
875
+
876
+ export type CustomerRecoverMutationVariables = StorefrontAPI.Exact<{
877
+ email: StorefrontAPI.Scalars['String'];
878
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
879
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
880
+ }>;
881
+
882
+ export type CustomerRecoverMutation = {
883
+ customerRecover?: StorefrontAPI.Maybe<{
884
+ customerUserErrors: Array<
885
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
886
+ >;
887
+ }>;
888
+ };
889
+
890
+ export type CustomerCreateMutationVariables = StorefrontAPI.Exact<{
891
+ input: StorefrontAPI.CustomerCreateInput;
892
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
893
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
894
+ }>;
895
+
896
+ export type CustomerCreateMutation = {
897
+ customerCreate?: StorefrontAPI.Maybe<{
898
+ customer?: StorefrontAPI.Maybe<Pick<StorefrontAPI.Customer, 'id'>>;
899
+ customerUserErrors: Array<
900
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
901
+ >;
902
+ }>;
903
+ };
904
+
905
+ export type RegisterLoginMutationVariables = StorefrontAPI.Exact<{
906
+ input: StorefrontAPI.CustomerAccessTokenCreateInput;
907
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
908
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
909
+ }>;
910
+
911
+ export type RegisterLoginMutation = {
912
+ customerAccessTokenCreate?: StorefrontAPI.Maybe<{
913
+ customerUserErrors: Array<
914
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
915
+ >;
916
+ customerAccessToken?: StorefrontAPI.Maybe<
917
+ Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
918
+ >;
919
+ }>;
920
+ };
921
+
922
+ export type CustomerResetMutationVariables = StorefrontAPI.Exact<{
923
+ id: StorefrontAPI.Scalars['ID'];
924
+ input: StorefrontAPI.CustomerResetInput;
925
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
926
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
927
+ }>;
928
+
929
+ export type CustomerResetMutation = {
930
+ customerReset?: StorefrontAPI.Maybe<{
931
+ customerAccessToken?: StorefrontAPI.Maybe<
932
+ Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
933
+ >;
934
+ customerUserErrors: Array<
935
+ Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
936
+ >;
937
+ }>;
938
+ };
939
+
940
+ export type PredictiveArticleFragment = {__typename: 'Article'} & Pick<
941
+ StorefrontAPI.Article,
942
+ 'id' | 'title' | 'handle' | 'trackingParameters'
943
+ > & {
944
+ image?: StorefrontAPI.Maybe<
945
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'width' | 'height'>
946
+ >;
947
+ };
948
+
949
+ export type PredictiveCollectionFragment = {__typename: 'Collection'} & Pick<
950
+ StorefrontAPI.Collection,
951
+ 'id' | 'title' | 'handle' | 'trackingParameters'
952
+ > & {
953
+ image?: StorefrontAPI.Maybe<
954
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'width' | 'height'>
955
+ >;
956
+ };
957
+
958
+ export type PredictivePageFragment = {__typename: 'Page'} & Pick<
959
+ StorefrontAPI.Page,
960
+ 'id' | 'title' | 'handle' | 'trackingParameters'
961
+ >;
962
+
963
+ export type PredictiveProductFragment = {__typename: 'Product'} & Pick<
964
+ StorefrontAPI.Product,
965
+ 'id' | 'title' | 'handle' | 'trackingParameters'
966
+ > & {
967
+ variants: {
968
+ nodes: Array<
969
+ Pick<StorefrontAPI.ProductVariant, 'id'> & {
970
+ image?: StorefrontAPI.Maybe<
971
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'width' | 'height'>
972
+ >;
973
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
974
+ }
975
+ >;
976
+ };
977
+ };
978
+
979
+ export type PredictiveQueryFragment = {
980
+ __typename: 'SearchQuerySuggestion';
981
+ } & Pick<
982
+ StorefrontAPI.SearchQuerySuggestion,
983
+ 'text' | 'styledText' | 'trackingParameters'
984
+ >;
985
+
986
+ export type PredictiveSearchQueryVariables = StorefrontAPI.Exact<{
987
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
988
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
989
+ limit: StorefrontAPI.Scalars['Int'];
990
+ limitScope: StorefrontAPI.PredictiveSearchLimitScope;
991
+ searchTerm: StorefrontAPI.Scalars['String'];
992
+ types?: StorefrontAPI.InputMaybe<
993
+ | Array<StorefrontAPI.PredictiveSearchType>
994
+ | StorefrontAPI.PredictiveSearchType
995
+ >;
996
+ }>;
997
+
998
+ export type PredictiveSearchQuery = {
999
+ predictiveSearch?: StorefrontAPI.Maybe<{
1000
+ articles: Array<
1001
+ {__typename: 'Article'} & Pick<
1002
+ StorefrontAPI.Article,
1003
+ 'id' | 'title' | 'handle' | 'trackingParameters'
1004
+ > & {
1005
+ image?: StorefrontAPI.Maybe<
1006
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'width' | 'height'>
1007
+ >;
1008
+ }
1009
+ >;
1010
+ collections: Array<
1011
+ {__typename: 'Collection'} & Pick<
1012
+ StorefrontAPI.Collection,
1013
+ 'id' | 'title' | 'handle' | 'trackingParameters'
1014
+ > & {
1015
+ image?: StorefrontAPI.Maybe<
1016
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'width' | 'height'>
1017
+ >;
1018
+ }
1019
+ >;
1020
+ pages: Array<
1021
+ {__typename: 'Page'} & Pick<
1022
+ StorefrontAPI.Page,
1023
+ 'id' | 'title' | 'handle' | 'trackingParameters'
1024
+ >
1025
+ >;
1026
+ products: Array<
1027
+ {__typename: 'Product'} & Pick<
1028
+ StorefrontAPI.Product,
1029
+ 'id' | 'title' | 'handle' | 'trackingParameters'
1030
+ > & {
1031
+ variants: {
1032
+ nodes: Array<
1033
+ Pick<StorefrontAPI.ProductVariant, 'id'> & {
1034
+ image?: StorefrontAPI.Maybe<
1035
+ Pick<
1036
+ StorefrontAPI.Image,
1037
+ 'url' | 'altText' | 'width' | 'height'
1038
+ >
1039
+ >;
1040
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1041
+ }
1042
+ >;
1043
+ };
1044
+ }
1045
+ >;
1046
+ queries: Array<
1047
+ {__typename: 'SearchQuerySuggestion'} & Pick<
1048
+ StorefrontAPI.SearchQuerySuggestion,
1049
+ 'text' | 'styledText' | 'trackingParameters'
1050
+ >
1051
+ >;
1052
+ }>;
1053
+ };
1054
+
1055
+ export type ArticleQueryVariables = StorefrontAPI.Exact<{
1056
+ articleHandle: StorefrontAPI.Scalars['String'];
1057
+ blogHandle: StorefrontAPI.Scalars['String'];
1058
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1059
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1060
+ }>;
1061
+
1062
+ export type ArticleQuery = {
1063
+ blog?: StorefrontAPI.Maybe<{
1064
+ articleByHandle?: StorefrontAPI.Maybe<
1065
+ Pick<StorefrontAPI.Article, 'title' | 'contentHtml' | 'publishedAt'> & {
1066
+ author?: StorefrontAPI.Maybe<Pick<StorefrontAPI.ArticleAuthor, 'name'>>;
1067
+ image?: StorefrontAPI.Maybe<
1068
+ Pick<
1069
+ StorefrontAPI.Image,
1070
+ 'id' | 'altText' | 'url' | 'width' | 'height'
1071
+ >
1072
+ >;
1073
+ seo?: StorefrontAPI.Maybe<
1074
+ Pick<StorefrontAPI.Seo, 'description' | 'title'>
1075
+ >;
1076
+ }
1077
+ >;
1078
+ }>;
1079
+ };
1080
+
1081
+ export type BlogQueryVariables = StorefrontAPI.Exact<{
1082
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1083
+ blogHandle: StorefrontAPI.Scalars['String'];
1084
+ first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1085
+ last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1086
+ startCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1087
+ endCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1088
+ }>;
1089
+
1090
+ export type BlogQuery = {
1091
+ blog?: StorefrontAPI.Maybe<
1092
+ Pick<StorefrontAPI.Blog, 'title'> & {
1093
+ seo?: StorefrontAPI.Maybe<
1094
+ Pick<StorefrontAPI.Seo, 'title' | 'description'>
1095
+ >;
1096
+ articles: {
1097
+ nodes: Array<
1098
+ Pick<
1099
+ StorefrontAPI.Article,
1100
+ 'contentHtml' | 'handle' | 'id' | 'publishedAt' | 'title'
1101
+ > & {
1102
+ author?: StorefrontAPI.Maybe<
1103
+ Pick<StorefrontAPI.ArticleAuthor, 'name'>
1104
+ >;
1105
+ image?: StorefrontAPI.Maybe<
1106
+ Pick<
1107
+ StorefrontAPI.Image,
1108
+ 'id' | 'altText' | 'url' | 'width' | 'height'
1109
+ >
1110
+ >;
1111
+ blog: Pick<StorefrontAPI.Blog, 'handle'>;
1112
+ }
1113
+ >;
1114
+ pageInfo: Pick<
1115
+ StorefrontAPI.PageInfo,
1116
+ 'hasPreviousPage' | 'hasNextPage' | 'endCursor'
1117
+ >;
1118
+ };
1119
+ }
1120
+ >;
1121
+ };
1122
+
1123
+ export type ArticleItemFragment = Pick<
1124
+ StorefrontAPI.Article,
1125
+ 'contentHtml' | 'handle' | 'id' | 'publishedAt' | 'title'
1126
+ > & {
1127
+ author?: StorefrontAPI.Maybe<Pick<StorefrontAPI.ArticleAuthor, 'name'>>;
1128
+ image?: StorefrontAPI.Maybe<
1129
+ Pick<StorefrontAPI.Image, 'id' | 'altText' | 'url' | 'width' | 'height'>
1130
+ >;
1131
+ blog: Pick<StorefrontAPI.Blog, 'handle'>;
1132
+ };
1133
+
1134
+ export type BlogsQueryVariables = StorefrontAPI.Exact<{
1135
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1136
+ endCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1137
+ first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1138
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1139
+ last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1140
+ startCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1141
+ }>;
1142
+
1143
+ export type BlogsQuery = {
1144
+ blogs: {
1145
+ pageInfo: Pick<
1146
+ StorefrontAPI.PageInfo,
1147
+ 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'
1148
+ >;
1149
+ nodes: Array<
1150
+ Pick<StorefrontAPI.Blog, 'title' | 'handle'> & {
1151
+ seo?: StorefrontAPI.Maybe<
1152
+ Pick<StorefrontAPI.Seo, 'title' | 'description'>
1153
+ >;
1154
+ }
1155
+ >;
1156
+ };
1157
+ };
1158
+
1159
+ export type MoneyProductItemFragment = Pick<
1160
+ StorefrontAPI.MoneyV2,
1161
+ 'amount' | 'currencyCode'
1162
+ >;
1163
+
1164
+ export type ProductItemFragment = Pick<
1165
+ StorefrontAPI.Product,
1166
+ 'id' | 'handle' | 'title'
1167
+ > & {
1168
+ featuredImage?: StorefrontAPI.Maybe<
1169
+ Pick<StorefrontAPI.Image, 'id' | 'altText' | 'url' | 'width' | 'height'>
1170
+ >;
1171
+ priceRange: {
1172
+ minVariantPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1173
+ maxVariantPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1174
+ };
1175
+ variants: {
1176
+ nodes: Array<{
1177
+ selectedOptions: Array<
1178
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1179
+ >;
1180
+ }>;
1181
+ };
1182
+ };
1183
+
1184
+ export type CollectionQueryVariables = StorefrontAPI.Exact<{
1185
+ handle: StorefrontAPI.Scalars['String'];
1186
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1187
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1188
+ first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1189
+ last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1190
+ startCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1191
+ endCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1192
+ }>;
1193
+
1194
+ export type CollectionQuery = {
1195
+ collection?: StorefrontAPI.Maybe<
1196
+ Pick<
1197
+ StorefrontAPI.Collection,
1198
+ 'id' | 'handle' | 'title' | 'description'
1199
+ > & {
1200
+ products: {
1201
+ nodes: Array<
1202
+ Pick<StorefrontAPI.Product, 'id' | 'handle' | 'title'> & {
1203
+ featuredImage?: StorefrontAPI.Maybe<
1204
+ Pick<
1205
+ StorefrontAPI.Image,
1206
+ 'id' | 'altText' | 'url' | 'width' | 'height'
1207
+ >
1208
+ >;
1209
+ priceRange: {
1210
+ minVariantPrice: Pick<
1211
+ StorefrontAPI.MoneyV2,
1212
+ 'amount' | 'currencyCode'
1213
+ >;
1214
+ maxVariantPrice: Pick<
1215
+ StorefrontAPI.MoneyV2,
1216
+ 'amount' | 'currencyCode'
1217
+ >;
1218
+ };
1219
+ variants: {
1220
+ nodes: Array<{
1221
+ selectedOptions: Array<
1222
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1223
+ >;
1224
+ }>;
1225
+ };
1226
+ }
1227
+ >;
1228
+ pageInfo: Pick<
1229
+ StorefrontAPI.PageInfo,
1230
+ 'hasPreviousPage' | 'hasNextPage' | 'endCursor'
1231
+ >;
1232
+ };
1233
+ }
1234
+ >;
1235
+ };
1236
+
1237
+ export type CollectionFragment = Pick<
1238
+ StorefrontAPI.Collection,
1239
+ 'id' | 'title' | 'handle'
1240
+ > & {
1241
+ image?: StorefrontAPI.Maybe<
1242
+ Pick<StorefrontAPI.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>
1243
+ >;
1244
+ };
1245
+
1246
+ export type StoreCollectionsQueryVariables = StorefrontAPI.Exact<{
1247
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1248
+ endCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1249
+ first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1250
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1251
+ last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1252
+ startCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1253
+ }>;
1254
+
1255
+ export type StoreCollectionsQuery = {
1256
+ collections: {
1257
+ nodes: Array<
1258
+ Pick<StorefrontAPI.Collection, 'id' | 'title' | 'handle'> & {
1259
+ image?: StorefrontAPI.Maybe<
1260
+ Pick<
1261
+ StorefrontAPI.Image,
1262
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1263
+ >
1264
+ >;
1265
+ }
1266
+ >;
1267
+ pageInfo: Pick<
1268
+ StorefrontAPI.PageInfo,
1269
+ 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'
1270
+ >;
1271
+ };
1272
+ };
1273
+
1274
+ export type PageQueryVariables = StorefrontAPI.Exact<{
1275
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1276
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1277
+ handle: StorefrontAPI.Scalars['String'];
1278
+ }>;
1279
+
1280
+ export type PageQuery = {
1281
+ page?: StorefrontAPI.Maybe<
1282
+ Pick<StorefrontAPI.Page, 'id' | 'title' | 'body'> & {
1283
+ seo?: StorefrontAPI.Maybe<
1284
+ Pick<StorefrontAPI.Seo, 'description' | 'title'>
1285
+ >;
1286
+ }
1287
+ >;
1288
+ };
1289
+
1290
+ export type PolicyFragment = Pick<
1291
+ StorefrontAPI.ShopPolicy,
1292
+ 'body' | 'handle' | 'id' | 'title' | 'url'
1293
+ >;
1294
+
1295
+ export type PolicyQueryVariables = StorefrontAPI.Exact<{
1296
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1297
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1298
+ privacyPolicy: StorefrontAPI.Scalars['Boolean'];
1299
+ refundPolicy: StorefrontAPI.Scalars['Boolean'];
1300
+ shippingPolicy: StorefrontAPI.Scalars['Boolean'];
1301
+ termsOfService: StorefrontAPI.Scalars['Boolean'];
1302
+ }>;
1303
+
1304
+ export type PolicyQuery = {
1305
+ shop: {
1306
+ privacyPolicy?: StorefrontAPI.Maybe<
1307
+ Pick<StorefrontAPI.ShopPolicy, 'body' | 'handle' | 'id' | 'title' | 'url'>
1308
+ >;
1309
+ shippingPolicy?: StorefrontAPI.Maybe<
1310
+ Pick<StorefrontAPI.ShopPolicy, 'body' | 'handle' | 'id' | 'title' | 'url'>
1311
+ >;
1312
+ termsOfService?: StorefrontAPI.Maybe<
1313
+ Pick<StorefrontAPI.ShopPolicy, 'body' | 'handle' | 'id' | 'title' | 'url'>
1314
+ >;
1315
+ refundPolicy?: StorefrontAPI.Maybe<
1316
+ Pick<StorefrontAPI.ShopPolicy, 'body' | 'handle' | 'id' | 'title' | 'url'>
1317
+ >;
1318
+ };
1319
+ };
1320
+
1321
+ export type PolicyItemFragment = Pick<
1322
+ StorefrontAPI.ShopPolicy,
1323
+ 'id' | 'title' | 'handle'
1324
+ >;
1325
+
1326
+ export type PoliciesQueryVariables = StorefrontAPI.Exact<{
1327
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1328
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1329
+ }>;
1330
+
1331
+ export type PoliciesQuery = {
1332
+ shop: {
1333
+ privacyPolicy?: StorefrontAPI.Maybe<
1334
+ Pick<StorefrontAPI.ShopPolicy, 'id' | 'title' | 'handle'>
1335
+ >;
1336
+ shippingPolicy?: StorefrontAPI.Maybe<
1337
+ Pick<StorefrontAPI.ShopPolicy, 'id' | 'title' | 'handle'>
1338
+ >;
1339
+ termsOfService?: StorefrontAPI.Maybe<
1340
+ Pick<StorefrontAPI.ShopPolicy, 'id' | 'title' | 'handle'>
1341
+ >;
1342
+ refundPolicy?: StorefrontAPI.Maybe<
1343
+ Pick<StorefrontAPI.ShopPolicy, 'id' | 'title' | 'handle'>
1344
+ >;
1345
+ subscriptionPolicy?: StorefrontAPI.Maybe<
1346
+ Pick<StorefrontAPI.ShopPolicyWithDefault, 'id' | 'title' | 'handle'>
1347
+ >;
1348
+ };
1349
+ };
1350
+
1351
+ export type ProductVariantFragment = Pick<
1352
+ StorefrontAPI.ProductVariant,
1353
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1354
+ > & {
1355
+ compareAtPrice?: StorefrontAPI.Maybe<
1356
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1357
+ >;
1358
+ image?: StorefrontAPI.Maybe<
1359
+ {__typename: 'Image'} & Pick<
1360
+ StorefrontAPI.Image,
1361
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1362
+ >
1363
+ >;
1364
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1365
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1366
+ selectedOptions: Array<Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>>;
1367
+ unitPrice?: StorefrontAPI.Maybe<
1368
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1369
+ >;
1370
+ };
1371
+
1372
+ export type ProductFragment = Pick<
1373
+ StorefrontAPI.Product,
1374
+ 'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description'
1375
+ > & {
1376
+ options: Array<Pick<StorefrontAPI.ProductOption, 'name' | 'values'>>;
1377
+ selectedVariant?: StorefrontAPI.Maybe<
1378
+ Pick<
1379
+ StorefrontAPI.ProductVariant,
1380
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1381
+ > & {
1382
+ compareAtPrice?: StorefrontAPI.Maybe<
1383
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1384
+ >;
1385
+ image?: StorefrontAPI.Maybe<
1386
+ {__typename: 'Image'} & Pick<
1387
+ StorefrontAPI.Image,
1388
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1389
+ >
1390
+ >;
1391
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1392
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1393
+ selectedOptions: Array<
1394
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1395
+ >;
1396
+ unitPrice?: StorefrontAPI.Maybe<
1397
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1398
+ >;
1399
+ }
1400
+ >;
1401
+ variants: {
1402
+ nodes: Array<
1403
+ Pick<
1404
+ StorefrontAPI.ProductVariant,
1405
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1406
+ > & {
1407
+ compareAtPrice?: StorefrontAPI.Maybe<
1408
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1409
+ >;
1410
+ image?: StorefrontAPI.Maybe<
1411
+ {__typename: 'Image'} & Pick<
1412
+ StorefrontAPI.Image,
1413
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1414
+ >
1415
+ >;
1416
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1417
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1418
+ selectedOptions: Array<
1419
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1420
+ >;
1421
+ unitPrice?: StorefrontAPI.Maybe<
1422
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1423
+ >;
1424
+ }
1425
+ >;
1426
+ };
1427
+ seo: Pick<StorefrontAPI.Seo, 'description' | 'title'>;
1428
+ };
1429
+
1430
+ export type ProductQueryVariables = StorefrontAPI.Exact<{
1431
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1432
+ handle: StorefrontAPI.Scalars['String'];
1433
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1434
+ selectedOptions:
1435
+ | Array<StorefrontAPI.SelectedOptionInput>
1436
+ | StorefrontAPI.SelectedOptionInput;
1437
+ }>;
1438
+
1439
+ export type ProductQuery = {
1440
+ product?: StorefrontAPI.Maybe<
1441
+ Pick<
1442
+ StorefrontAPI.Product,
1443
+ 'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description'
1444
+ > & {
1445
+ options: Array<Pick<StorefrontAPI.ProductOption, 'name' | 'values'>>;
1446
+ selectedVariant?: StorefrontAPI.Maybe<
1447
+ Pick<
1448
+ StorefrontAPI.ProductVariant,
1449
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1450
+ > & {
1451
+ compareAtPrice?: StorefrontAPI.Maybe<
1452
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1453
+ >;
1454
+ image?: StorefrontAPI.Maybe<
1455
+ {__typename: 'Image'} & Pick<
1456
+ StorefrontAPI.Image,
1457
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1458
+ >
1459
+ >;
1460
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1461
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1462
+ selectedOptions: Array<
1463
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1464
+ >;
1465
+ unitPrice?: StorefrontAPI.Maybe<
1466
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1467
+ >;
1468
+ }
1469
+ >;
1470
+ variants: {
1471
+ nodes: Array<
1472
+ Pick<
1473
+ StorefrontAPI.ProductVariant,
1474
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1475
+ > & {
1476
+ compareAtPrice?: StorefrontAPI.Maybe<
1477
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1478
+ >;
1479
+ image?: StorefrontAPI.Maybe<
1480
+ {__typename: 'Image'} & Pick<
1481
+ StorefrontAPI.Image,
1482
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1483
+ >
1484
+ >;
1485
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1486
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1487
+ selectedOptions: Array<
1488
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1489
+ >;
1490
+ unitPrice?: StorefrontAPI.Maybe<
1491
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1492
+ >;
1493
+ }
1494
+ >;
1495
+ };
1496
+ seo: Pick<StorefrontAPI.Seo, 'description' | 'title'>;
1497
+ }
1498
+ >;
1499
+ };
1500
+
1501
+ export type ProductVariantsFragment = {
1502
+ variants: {
1503
+ nodes: Array<
1504
+ Pick<
1505
+ StorefrontAPI.ProductVariant,
1506
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1507
+ > & {
1508
+ compareAtPrice?: StorefrontAPI.Maybe<
1509
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1510
+ >;
1511
+ image?: StorefrontAPI.Maybe<
1512
+ {__typename: 'Image'} & Pick<
1513
+ StorefrontAPI.Image,
1514
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1515
+ >
1516
+ >;
1517
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1518
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1519
+ selectedOptions: Array<
1520
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1521
+ >;
1522
+ unitPrice?: StorefrontAPI.Maybe<
1523
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1524
+ >;
1525
+ }
1526
+ >;
1527
+ };
1528
+ };
1529
+
1530
+ export type ProductVariantsQueryVariables = StorefrontAPI.Exact<{
1531
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1532
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1533
+ handle: StorefrontAPI.Scalars['String'];
1534
+ }>;
1535
+
1536
+ export type ProductVariantsQuery = {
1537
+ product?: StorefrontAPI.Maybe<{
1538
+ variants: {
1539
+ nodes: Array<
1540
+ Pick<
1541
+ StorefrontAPI.ProductVariant,
1542
+ 'availableForSale' | 'id' | 'quantityAvailable' | 'sku' | 'title'
1543
+ > & {
1544
+ compareAtPrice?: StorefrontAPI.Maybe<
1545
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1546
+ >;
1547
+ image?: StorefrontAPI.Maybe<
1548
+ {__typename: 'Image'} & Pick<
1549
+ StorefrontAPI.Image,
1550
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1551
+ >
1552
+ >;
1553
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1554
+ product: Pick<StorefrontAPI.Product, 'title' | 'handle'>;
1555
+ selectedOptions: Array<
1556
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1557
+ >;
1558
+ unitPrice?: StorefrontAPI.Maybe<
1559
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1560
+ >;
1561
+ }
1562
+ >;
1563
+ };
1564
+ }>;
1565
+ };
1566
+
1567
+ export type SearchProductFragment = {__typename: 'Product'} & Pick<
1568
+ StorefrontAPI.Product,
1569
+ 'handle' | 'id' | 'publishedAt' | 'title' | 'trackingParameters' | 'vendor'
1570
+ > & {
1571
+ variants: {
1572
+ nodes: Array<
1573
+ Pick<StorefrontAPI.ProductVariant, 'id'> & {
1574
+ image?: StorefrontAPI.Maybe<
1575
+ Pick<StorefrontAPI.Image, 'url' | 'altText' | 'width' | 'height'>
1576
+ >;
1577
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1578
+ compareAtPrice?: StorefrontAPI.Maybe<
1579
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1580
+ >;
1581
+ selectedOptions: Array<
1582
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1583
+ >;
1584
+ product: Pick<StorefrontAPI.Product, 'handle' | 'title'>;
1585
+ }
1586
+ >;
1587
+ };
1588
+ };
1589
+
1590
+ export type SearchPageFragment = {__typename: 'Page'} & Pick<
1591
+ StorefrontAPI.Page,
1592
+ 'handle' | 'id' | 'title' | 'trackingParameters'
1593
+ >;
1594
+
1595
+ export type SearchArticleFragment = {__typename: 'Article'} & Pick<
1596
+ StorefrontAPI.Article,
1597
+ 'handle' | 'id' | 'title' | 'trackingParameters'
1598
+ >;
1599
+
1600
+ export type SearchQueryVariables = StorefrontAPI.Exact<{
1601
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
1602
+ endCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1603
+ first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1604
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
1605
+ last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']>;
1606
+ query: StorefrontAPI.Scalars['String'];
1607
+ startCursor?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['String']>;
1608
+ }>;
1609
+
1610
+ export type SearchQuery = {
1611
+ products: {
1612
+ nodes: Array<
1613
+ {__typename: 'Product'} & Pick<
1614
+ StorefrontAPI.Product,
1615
+ | 'handle'
1616
+ | 'id'
1617
+ | 'publishedAt'
1618
+ | 'title'
1619
+ | 'trackingParameters'
1620
+ | 'vendor'
1621
+ > & {
1622
+ variants: {
1623
+ nodes: Array<
1624
+ Pick<StorefrontAPI.ProductVariant, 'id'> & {
1625
+ image?: StorefrontAPI.Maybe<
1626
+ Pick<
1627
+ StorefrontAPI.Image,
1628
+ 'url' | 'altText' | 'width' | 'height'
1629
+ >
1630
+ >;
1631
+ price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
1632
+ compareAtPrice?: StorefrontAPI.Maybe<
1633
+ Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
1634
+ >;
1635
+ selectedOptions: Array<
1636
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1637
+ >;
1638
+ product: Pick<StorefrontAPI.Product, 'handle' | 'title'>;
1639
+ }
1640
+ >;
1641
+ };
1642
+ }
1643
+ >;
1644
+ pageInfo: Pick<
1645
+ StorefrontAPI.PageInfo,
1646
+ 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'
1647
+ >;
1648
+ };
1649
+ pages: {
1650
+ nodes: Array<
1651
+ {__typename: 'Page'} & Pick<
1652
+ StorefrontAPI.Page,
1653
+ 'handle' | 'id' | 'title' | 'trackingParameters'
1654
+ >
1655
+ >;
1656
+ };
1657
+ articles: {
1658
+ nodes: Array<
1659
+ {__typename: 'Article'} & Pick<
1660
+ StorefrontAPI.Article,
1661
+ 'handle' | 'id' | 'title' | 'trackingParameters'
1662
+ >
1663
+ >;
1664
+ };
1665
+ };
1666
+
1667
+ export type MoneyFragment = Pick<
1668
+ StorefrontAPI.MoneyV2,
1669
+ 'currencyCode' | 'amount'
1670
+ >;
1671
+
1672
+ export type CartLineFragment = Pick<
1673
+ StorefrontAPI.CartLine,
1674
+ 'id' | 'quantity'
1675
+ > & {
1676
+ attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
1677
+ cost: {
1678
+ totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1679
+ amountPerQuantity: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1680
+ compareAtAmountPerQuantity?: StorefrontAPI.Maybe<
1681
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1682
+ >;
1683
+ };
1684
+ merchandise: Pick<
1685
+ StorefrontAPI.ProductVariant,
1686
+ 'id' | 'availableForSale' | 'requiresShipping' | 'title'
1687
+ > & {
1688
+ compareAtPrice?: StorefrontAPI.Maybe<
1689
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1690
+ >;
1691
+ price: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1692
+ image?: StorefrontAPI.Maybe<
1693
+ Pick<StorefrontAPI.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>
1694
+ >;
1695
+ product: Pick<StorefrontAPI.Product, 'handle' | 'title' | 'id'>;
1696
+ selectedOptions: Array<
1697
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1698
+ >;
1699
+ };
1700
+ };
1701
+
1702
+ export type CartApiQueryFragment = Pick<
1703
+ StorefrontAPI.Cart,
1704
+ 'id' | 'checkoutUrl' | 'totalQuantity' | 'note'
1705
+ > & {
1706
+ buyerIdentity: Pick<
1707
+ StorefrontAPI.CartBuyerIdentity,
1708
+ 'countryCode' | 'email' | 'phone'
1709
+ > & {
1710
+ customer?: StorefrontAPI.Maybe<
1711
+ Pick<
1712
+ StorefrontAPI.Customer,
1713
+ 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'
1714
+ >
1715
+ >;
1716
+ };
1717
+ lines: {
1718
+ nodes: Array<
1719
+ Pick<StorefrontAPI.CartLine, 'id' | 'quantity'> & {
1720
+ attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
1721
+ cost: {
1722
+ totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1723
+ amountPerQuantity: Pick<
1724
+ StorefrontAPI.MoneyV2,
1725
+ 'currencyCode' | 'amount'
1726
+ >;
1727
+ compareAtAmountPerQuantity?: StorefrontAPI.Maybe<
1728
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1729
+ >;
1730
+ };
1731
+ merchandise: Pick<
1732
+ StorefrontAPI.ProductVariant,
1733
+ 'id' | 'availableForSale' | 'requiresShipping' | 'title'
1734
+ > & {
1735
+ compareAtPrice?: StorefrontAPI.Maybe<
1736
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1737
+ >;
1738
+ price: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1739
+ image?: StorefrontAPI.Maybe<
1740
+ Pick<
1741
+ StorefrontAPI.Image,
1742
+ 'id' | 'url' | 'altText' | 'width' | 'height'
1743
+ >
1744
+ >;
1745
+ product: Pick<StorefrontAPI.Product, 'handle' | 'title' | 'id'>;
1746
+ selectedOptions: Array<
1747
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1748
+ >;
1749
+ };
1750
+ }
1751
+ >;
1752
+ };
1753
+ cost: {
1754
+ subtotalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1755
+ totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1756
+ totalDutyAmount?: StorefrontAPI.Maybe<
1757
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1758
+ >;
1759
+ totalTaxAmount?: StorefrontAPI.Maybe<
1760
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1761
+ >;
1762
+ };
1763
+ attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
1764
+ discountCodes: Array<
1765
+ Pick<StorefrontAPI.CartDiscountCode, 'code' | 'applicable'>
1766
+ >;
1767
+ };
1768
+
1769
+ interface GeneratedQueryTypes {
1770
+ '#graphql\n fragment Shop on Shop {\n id\n name\n description\n primaryDomain {\n url\n }\n brand {\n logo {\n image {\n url\n }\n }\n }\n }\n query Header(\n $country: CountryCode\n $headerMenuHandle: String!\n $language: LanguageCode\n ) @inContext(language: $language, country: $country) {\n shop {\n ...Shop\n }\n menu(handle: $headerMenuHandle) {\n ...Menu\n }\n }\n #graphql\n fragment MenuItem on MenuItem {\n id\n resourceId\n tags\n title\n type\n url\n }\n fragment ChildMenuItem on MenuItem {\n ...MenuItem\n }\n fragment ParentMenuItem on MenuItem {\n ...MenuItem\n items {\n ...ChildMenuItem\n }\n }\n fragment Menu on Menu {\n id\n items {\n ...ParentMenuItem\n }\n }\n\n': {
1771
+ return: HeaderQuery;
1772
+ variables: HeaderQueryVariables;
1773
+ };
1774
+ '#graphql\n query Footer(\n $country: CountryCode\n $footerMenuHandle: String!\n $language: LanguageCode\n ) @inContext(language: $language, country: $country) {\n menu(handle: $footerMenuHandle) {\n ...Menu\n }\n }\n #graphql\n fragment MenuItem on MenuItem {\n id\n resourceId\n tags\n title\n type\n url\n }\n fragment ChildMenuItem on MenuItem {\n ...MenuItem\n }\n fragment ParentMenuItem on MenuItem {\n ...MenuItem\n items {\n ...ChildMenuItem\n }\n }\n fragment Menu on Menu {\n id\n items {\n ...ParentMenuItem\n }\n }\n\n': {
1775
+ return: FooterQuery;
1776
+ variables: FooterQueryVariables;
1777
+ };
1778
+ '#graphql\n query StoreRobots($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n shop {\n id\n }\n }\n': {
1779
+ return: StoreRobotsQuery;
1780
+ variables: StoreRobotsQueryVariables;
1781
+ };
1782
+ '#graphql\n query Sitemap($urlLimits: Int, $language: LanguageCode)\n @inContext(language: $language) {\n products(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n title\n featuredImage {\n url\n altText\n }\n }\n }\n collections(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n pages(first: $urlLimits, query: "published_status:\'published\'") {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n }\n': {
1783
+ return: SitemapQuery;
1784
+ variables: SitemapQueryVariables;
1785
+ };
1786
+ '#graphql\n fragment FeaturedCollection on Collection {\n id\n title\n image {\n id\n url\n altText\n width\n height\n }\n handle\n }\n query FeaturedCollection($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n collections(first: 1, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...FeaturedCollection\n }\n }\n }\n': {
1787
+ return: FeaturedCollectionQuery;
1788
+ variables: FeaturedCollectionQueryVariables;
1789
+ };
1790
+ '#graphql\n fragment RecommendedProduct on Product {\n id\n title\n handle\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n images(first: 1) {\n nodes {\n id\n url\n altText\n width\n height\n }\n }\n }\n query RecommendedProducts ($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n products(first: 4, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...RecommendedProduct\n }\n }\n }\n': {
1791
+ return: RecommendedProductsQuery;
1792
+ variables: RecommendedProductsQueryVariables;
1793
+ };
1794
+ '#graphql\n fragment OrderMoney on MoneyV2 {\n amount\n currencyCode\n }\n fragment AddressFull on MailingAddress {\n address1\n address2\n city\n company\n country\n countryCodeV2\n firstName\n formatted\n id\n lastName\n name\n phone\n province\n provinceCode\n zip\n }\n fragment DiscountApplication on DiscountApplication {\n value {\n __typename\n ... on MoneyV2 {\n ...OrderMoney\n }\n ... on PricingPercentageValue {\n percentage\n }\n }\n }\n fragment OrderLineProductVariant on ProductVariant {\n id\n image {\n altText\n height\n url\n id\n width\n }\n price {\n ...OrderMoney\n }\n product {\n handle\n }\n sku\n title\n }\n fragment OrderLineItemFull on OrderLineItem {\n title\n quantity\n discountAllocations {\n allocatedAmount {\n ...OrderMoney\n }\n discountApplication {\n ...DiscountApplication\n }\n }\n originalTotalPrice {\n ...OrderMoney\n }\n discountedTotalPrice {\n ...OrderMoney\n }\n variant {\n ...OrderLineProductVariant\n }\n }\n fragment Order on Order {\n id\n name\n orderNumber\n statusUrl\n processedAt\n fulfillmentStatus\n totalTaxV2 {\n ...OrderMoney\n }\n totalPriceV2 {\n ...OrderMoney\n }\n subtotalPriceV2 {\n ...OrderMoney\n }\n shippingAddress {\n ...AddressFull\n }\n discountApplications(first: 100) {\n nodes {\n ...DiscountApplication\n }\n }\n lineItems(first: 100) {\n nodes {\n ...OrderLineItemFull\n }\n }\n }\n query Order(\n $country: CountryCode\n $language: LanguageCode\n $orderId: ID!\n ) @inContext(country: $country, language: $language) {\n order: node(id: $orderId) {\n ... on Order {\n ...Order\n }\n }\n }\n': {
1795
+ return: OrderQuery;
1796
+ variables: OrderQueryVariables;
1797
+ };
1798
+ '#graphql\n #graphql\n fragment Customer on Customer {\n acceptsMarketing\n addresses(first: 6) {\n nodes {\n ...Address\n }\n }\n defaultAddress {\n ...Address\n }\n email\n firstName\n lastName\n numberOfOrders\n phone\n }\n fragment Address on MailingAddress {\n id\n formatted\n firstName\n lastName\n company\n address1\n address2\n country\n province\n city\n zip\n phone\n }\n\n query CustomerOrders(\n $country: CountryCode\n $customerAccessToken: String!\n $endCursor: String\n $first: Int\n $language: LanguageCode\n $last: Int\n $startCursor: String\n ) @inContext(country: $country, language: $language) {\n customer(customerAccessToken: $customerAccessToken) {\n ...CustomerOrders\n }\n }\n': {
1799
+ return: CustomerOrdersQuery;
1800
+ variables: CustomerOrdersQueryVariables;
1801
+ };
1802
+ '#graphql\n query Customer(\n $customerAccessToken: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customer(customerAccessToken: $customerAccessToken) {\n ...Customer\n }\n }\n #graphql\n fragment Customer on Customer {\n acceptsMarketing\n addresses(first: 6) {\n nodes {\n ...Address\n }\n }\n defaultAddress {\n ...Address\n }\n email\n firstName\n lastName\n numberOfOrders\n phone\n }\n fragment Address on MailingAddress {\n id\n formatted\n firstName\n lastName\n company\n address1\n address2\n country\n province\n city\n zip\n phone\n }\n\n': {
1803
+ return: CustomerQuery;
1804
+ variables: CustomerQueryVariables;
1805
+ };
1806
+ '#graphql\n fragment PredictiveArticle on Article {\n __typename\n id\n title\n handle\n image {\n url\n altText\n width\n height\n }\n trackingParameters\n }\n fragment PredictiveCollection on Collection {\n __typename\n id\n title\n handle\n image {\n url\n altText\n width\n height\n }\n trackingParameters\n }\n fragment PredictivePage on Page {\n __typename\n id\n title\n handle\n trackingParameters\n }\n fragment PredictiveProduct on Product {\n __typename\n id\n title\n handle\n trackingParameters\n variants(first: 1) {\n nodes {\n id\n image {\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n }\n }\n }\n fragment PredictiveQuery on SearchQuerySuggestion {\n __typename\n text\n styledText\n trackingParameters\n }\n query predictiveSearch(\n $country: CountryCode\n $language: LanguageCode\n $limit: Int!\n $limitScope: PredictiveSearchLimitScope!\n $searchTerm: String!\n $types: [PredictiveSearchType!]\n ) @inContext(country: $country, language: $language) {\n predictiveSearch(\n limit: $limit,\n limitScope: $limitScope,\n query: $searchTerm,\n types: $types,\n ) {\n articles {\n ...PredictiveArticle\n }\n collections {\n ...PredictiveCollection\n }\n pages {\n ...PredictivePage\n }\n products {\n ...PredictiveProduct\n }\n queries {\n ...PredictiveQuery\n }\n }\n }\n': {
1807
+ return: PredictiveSearchQuery;
1808
+ variables: PredictiveSearchQueryVariables;
1809
+ };
1810
+ '#graphql\n query Article(\n $articleHandle: String!\n $blogHandle: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(language: $language, country: $country) {\n blog(handle: $blogHandle) {\n articleByHandle(handle: $articleHandle) {\n title\n contentHtml\n publishedAt\n author: authorV2 {\n name\n }\n image {\n id\n altText\n url\n width\n height\n }\n seo {\n description\n title\n }\n }\n }\n }\n': {
1811
+ return: ArticleQuery;
1812
+ variables: ArticleQueryVariables;
1813
+ };
1814
+ '#graphql\n query Blog(\n $language: LanguageCode\n $blogHandle: String!\n $first: Int\n $last: Int\n $startCursor: String\n $endCursor: String\n ) @inContext(language: $language) {\n blog(handle: $blogHandle) {\n title\n seo {\n title\n description\n }\n articles(\n first: $first,\n last: $last,\n before: $startCursor,\n after: $endCursor\n ) {\n nodes {\n ...ArticleItem\n }\n pageInfo {\n hasPreviousPage\n hasNextPage\n hasNextPage\n endCursor\n }\n\n }\n }\n }\n fragment ArticleItem on Article {\n author: authorV2 {\n name\n }\n contentHtml\n handle\n id\n image {\n id\n altText\n url\n width\n height\n }\n publishedAt\n title\n blog {\n handle\n }\n }\n': {
1815
+ return: BlogQuery;
1816
+ variables: BlogQueryVariables;
1817
+ };
1818
+ '#graphql\n query Blogs(\n $country: CountryCode\n $endCursor: String\n $first: Int\n $language: LanguageCode\n $last: Int\n $startCursor: String\n ) @inContext(country: $country, language: $language) {\n blogs(\n first: $first,\n last: $last,\n before: $startCursor,\n after: $endCursor\n ) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n nodes {\n title\n handle\n seo {\n title\n description\n }\n }\n }\n }\n': {
1819
+ return: BlogsQuery;
1820
+ variables: BlogsQueryVariables;
1821
+ };
1822
+ '#graphql\n #graphql\n fragment MoneyProductItem on MoneyV2 {\n amount\n currencyCode\n }\n fragment ProductItem on Product {\n id\n handle\n title\n featuredImage {\n id\n altText\n url\n width\n height\n }\n priceRange {\n minVariantPrice {\n ...MoneyProductItem\n }\n maxVariantPrice {\n ...MoneyProductItem\n }\n }\n variants(first: 1) {\n nodes {\n selectedOptions {\n name\n value\n }\n }\n }\n }\n\n query Collection(\n $handle: String!\n $country: CountryCode\n $language: LanguageCode\n $first: Int\n $last: Int\n $startCursor: String\n $endCursor: String\n ) @inContext(country: $country, language: $language) {\n collection(handle: $handle) {\n id\n handle\n title\n description\n products(\n first: $first,\n last: $last,\n before: $startCursor,\n after: $endCursor\n ) {\n nodes {\n ...ProductItem\n }\n pageInfo {\n hasPreviousPage\n hasNextPage\n hasNextPage\n endCursor\n }\n }\n }\n }\n': {
1823
+ return: CollectionQuery;
1824
+ variables: CollectionQueryVariables;
1825
+ };
1826
+ '#graphql\n fragment Collection on Collection {\n id\n title\n handle\n image {\n id\n url\n altText\n width\n height\n }\n }\n query StoreCollections(\n $country: CountryCode\n $endCursor: String\n $first: Int\n $language: LanguageCode\n $last: Int\n $startCursor: String\n ) @inContext(country: $country, language: $language) {\n collections(\n first: $first,\n last: $last,\n before: $startCursor,\n after: $endCursor\n ) {\n nodes {\n ...Collection\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n': {
1827
+ return: StoreCollectionsQuery;
1828
+ variables: StoreCollectionsQueryVariables;
1829
+ };
1830
+ '#graphql\n query Page(\n $language: LanguageCode,\n $country: CountryCode,\n $handle: String!\n )\n @inContext(language: $language, country: $country) {\n page(handle: $handle) {\n id\n title\n body\n seo {\n description\n title\n }\n }\n }\n': {
1831
+ return: PageQuery;
1832
+ variables: PageQueryVariables;
1833
+ };
1834
+ '#graphql\n fragment Policy on ShopPolicy {\n body\n handle\n id\n title\n url\n }\n query Policy(\n $country: CountryCode\n $language: LanguageCode\n $privacyPolicy: Boolean!\n $refundPolicy: Boolean!\n $shippingPolicy: Boolean!\n $termsOfService: Boolean!\n ) @inContext(language: $language, country: $country) {\n shop {\n privacyPolicy @include(if: $privacyPolicy) {\n ...Policy\n }\n shippingPolicy @include(if: $shippingPolicy) {\n ...Policy\n }\n termsOfService @include(if: $termsOfService) {\n ...Policy\n }\n refundPolicy @include(if: $refundPolicy) {\n ...Policy\n }\n }\n }\n': {
1835
+ return: PolicyQuery;
1836
+ variables: PolicyQueryVariables;
1837
+ };
1838
+ '#graphql\n fragment PolicyItem on ShopPolicy {\n id\n title\n handle\n }\n query Policies ($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n shop {\n privacyPolicy {\n ...PolicyItem\n }\n shippingPolicy {\n ...PolicyItem\n }\n termsOfService {\n ...PolicyItem\n }\n refundPolicy {\n ...PolicyItem\n }\n subscriptionPolicy {\n id\n title\n handle\n }\n }\n }\n': {
1839
+ return: PoliciesQuery;
1840
+ variables: PoliciesQueryVariables;
1841
+ };
1842
+ '#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n values\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n quantityAvailable\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
1843
+ return: ProductQuery;
1844
+ variables: ProductQueryVariables;
1845
+ };
1846
+ '#graphql\n #graphql\n fragment ProductVariants on Product {\n variants(first: 250) {\n nodes {\n ...ProductVariant\n }\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n quantityAvailable\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n query ProductVariants(\n $country: CountryCode\n $language: LanguageCode\n $handle: String!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...ProductVariants\n }\n }\n': {
1847
+ return: ProductVariantsQuery;
1848
+ variables: ProductVariantsQueryVariables;
1849
+ };
1850
+ '#graphql\n fragment SearchProduct on Product {\n __typename\n handle\n id\n publishedAt\n title\n trackingParameters\n vendor\n variants(first: 1) {\n nodes {\n id\n image {\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n selectedOptions {\n name\n value\n }\n product {\n handle\n title\n }\n }\n }\n }\n fragment SearchPage on Page {\n __typename\n handle\n id\n title\n trackingParameters\n }\n fragment SearchArticle on Article {\n __typename\n handle\n id\n title\n trackingParameters\n }\n query search(\n $country: CountryCode\n $endCursor: String\n $first: Int\n $language: LanguageCode\n $last: Int\n $query: String!\n $startCursor: String\n ) @inContext(country: $country, language: $language) {\n products: search(\n query: $query,\n unavailableProducts: HIDE,\n types: [PRODUCT],\n first: $first,\n sortKey: RELEVANCE,\n last: $last,\n before: $startCursor,\n after: $endCursor\n ) {\n nodes {\n ...on Product {\n ...SearchProduct\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n pages: search(\n query: $query,\n types: [PAGE],\n first: 10\n ) {\n nodes {\n ...on Page {\n ...SearchPage\n }\n }\n }\n articles: search(\n query: $query,\n types: [ARTICLE],\n first: 10\n ) {\n nodes {\n ...on Article {\n ...SearchArticle\n }\n }\n }\n }\n': {
1851
+ return: SearchQuery;
1852
+ variables: SearchQueryVariables;
1853
+ };
1854
+ }
1855
+
1856
+ interface GeneratedMutationTypes {
1857
+ '#graphql\n mutation customerAddressUpdate(\n $address: MailingAddressInput!\n $customerAccessToken: String!\n $id: ID!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAddressUpdate(\n address: $address\n customerAccessToken: $customerAccessToken\n id: $id\n ) {\n customerAddress {\n id\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1858
+ return: CustomerAddressUpdateMutation;
1859
+ variables: CustomerAddressUpdateMutationVariables;
1860
+ };
1861
+ '#graphql\n mutation customerAddressDelete(\n $customerAccessToken: String!,\n $id: ID!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAddressDelete(customerAccessToken: $customerAccessToken, id: $id) {\n customerUserErrors {\n code\n field\n message\n }\n deletedCustomerAddressId\n }\n }\n': {
1862
+ return: CustomerAddressDeleteMutation;
1863
+ variables: CustomerAddressDeleteMutationVariables;
1864
+ };
1865
+ '#graphql\n mutation customerDefaultAddressUpdate(\n $addressId: ID!\n $customerAccessToken: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerDefaultAddressUpdate(\n addressId: $addressId\n customerAccessToken: $customerAccessToken\n ) {\n customer {\n defaultAddress {\n id\n }\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1866
+ return: CustomerDefaultAddressUpdateMutation;
1867
+ variables: CustomerDefaultAddressUpdateMutationVariables;
1868
+ };
1869
+ '#graphql\n mutation customerAddressCreate(\n $address: MailingAddressInput!\n $customerAccessToken: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAddressCreate(\n address: $address\n customerAccessToken: $customerAccessToken\n ) {\n customerAddress {\n id\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1870
+ return: CustomerAddressCreateMutation;
1871
+ variables: CustomerAddressCreateMutationVariables;
1872
+ };
1873
+ '#graphql\n # https://shopify.dev/docs/api/storefront/latest/mutations/customerUpdate\n mutation customerUpdate(\n $customerAccessToken: String!,\n $customer: CustomerUpdateInput!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(language: $language, country: $country) {\n customerUpdate(customerAccessToken: $customerAccessToken, customer: $customer) {\n customer {\n acceptsMarketing\n email\n firstName\n id\n lastName\n phone\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1874
+ return: CustomerUpdateMutation;
1875
+ variables: CustomerUpdateMutationVariables;
1876
+ };
1877
+ '#graphql\n mutation customerActivate(\n $id: ID!,\n $input: CustomerActivateInput!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerActivate(id: $id, input: $input) {\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1878
+ return: CustomerActivateMutation;
1879
+ variables: CustomerActivateMutationVariables;
1880
+ };
1881
+ '#graphql\n mutation login($input: CustomerAccessTokenCreateInput!) {\n customerAccessTokenCreate(input: $input) {\n customerUserErrors {\n code\n field\n message\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n }\n }\n': {
1882
+ return: LoginMutation;
1883
+ variables: LoginMutationVariables;
1884
+ };
1885
+ '#graphql\n mutation customerRecover(\n $email: String!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerRecover(email: $email) {\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1886
+ return: CustomerRecoverMutation;
1887
+ variables: CustomerRecoverMutationVariables;
1888
+ };
1889
+ '#graphql\n mutation customerCreate(\n $input: CustomerCreateInput!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerCreate(input: $input) {\n customer {\n id\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1890
+ return: CustomerCreateMutation;
1891
+ variables: CustomerCreateMutationVariables;
1892
+ };
1893
+ '#graphql\n mutation registerLogin(\n $input: CustomerAccessTokenCreateInput!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAccessTokenCreate(input: $input) {\n customerUserErrors {\n code\n field\n message\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n }\n }\n': {
1894
+ return: RegisterLoginMutation;
1895
+ variables: RegisterLoginMutationVariables;
1896
+ };
1897
+ '#graphql\n mutation customerReset(\n $id: ID!,\n $input: CustomerResetInput!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerReset(id: $id, input: $input) {\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1898
+ return: CustomerResetMutation;
1899
+ variables: CustomerResetMutationVariables;
1900
+ };
1901
+ }
1902
+
1903
+ declare module '@shopify/hydrogen' {
1904
+ interface StorefrontQueries extends GeneratedQueryTypes {}
1905
+ interface StorefrontMutations extends GeneratedMutationTypes {}
1906
+ }