@shopify/hydrogen 2026.10.0-preview.3 → 2026.10.0-preview.4

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 (380) hide show
  1. package/README.md +2 -2
  2. package/dist/cli/index.mjs +131 -29
  3. package/dist/client/client.mjs +2 -2
  4. package/dist/client/errors.d.mts +19 -19
  5. package/dist/client/errors.mjs +19 -16
  6. package/dist/client/errors.mjs.map +1 -1
  7. package/dist/client/types.d.mts +91 -10
  8. package/dist/core/analytics/cart-tracker.d.mts +14 -0
  9. package/dist/core/analytics/cart-tracker.mjs +15 -1
  10. package/dist/core/analytics/cart-tracker.mjs.map +1 -1
  11. package/dist/core/analytics/custom-consent.mjs +12 -0
  12. package/dist/core/analytics/custom-consent.mjs.map +1 -0
  13. package/dist/core/analytics/events.d.mts +7 -0
  14. package/dist/core/analytics/events.mjs +7 -0
  15. package/dist/core/analytics/events.mjs.map +1 -1
  16. package/dist/core/analytics/index.d.mts +1 -1
  17. package/dist/core/analytics/types.d.mts +152 -16
  18. package/dist/core/cart/actions.d.mts +47 -3
  19. package/dist/core/cart/actions.mjs +27 -0
  20. package/dist/core/cart/actions.mjs.map +1 -1
  21. package/dist/core/cart/attach-quantity-input.d.mts +26 -0
  22. package/dist/core/cart/attach-quantity-input.mjs +26 -0
  23. package/dist/core/cart/attach-quantity-input.mjs.map +1 -1
  24. package/dist/core/cart/cart.d.mts +106 -6
  25. package/dist/core/cart/cart.mjs +41 -0
  26. package/dist/core/cart/cart.mjs.map +1 -1
  27. package/dist/core/cart/cookie.d.mts +15 -0
  28. package/dist/core/cart/cookie.mjs +15 -0
  29. package/dist/core/cart/cookie.mjs.map +1 -1
  30. package/dist/core/cart/form.d.mts +61 -0
  31. package/dist/core/cart/form.mjs +18 -0
  32. package/dist/core/cart/form.mjs.map +1 -1
  33. package/dist/core/cart/get-cart.d.mts +43 -2
  34. package/dist/core/cart/get-cart.mjs +33 -0
  35. package/dist/core/cart/get-cart.mjs.map +1 -1
  36. package/dist/core/cart/index.d.mts +1 -1
  37. package/dist/core/cart/quantity.d.mts +17 -0
  38. package/dist/core/cart/quantity.mjs +17 -0
  39. package/dist/core/cart/quantity.mjs.map +1 -1
  40. package/dist/core/cart/queries.d.mts +402 -369
  41. package/dist/core/cart/queries.mjs +2 -1
  42. package/dist/core/cart/queries.mjs.map +1 -1
  43. package/dist/core/cart/server-handlers.d.mts +69 -0
  44. package/dist/core/cart/server-handlers.mjs +2 -10
  45. package/dist/core/cart/server-handlers.mjs.map +1 -1
  46. package/dist/core/cart/state.d.mts +133 -0
  47. package/dist/core/cart/state.mjs +8 -0
  48. package/dist/core/cart/state.mjs.map +1 -1
  49. package/dist/core/collection/collection.d.mts +18 -2
  50. package/dist/core/collection/collection.mjs +11 -0
  51. package/dist/core/collection/collection.mjs.map +1 -1
  52. package/dist/core/collection/index.d.mts +1 -1
  53. package/dist/core/collection/reconciler.d.mts +13 -4
  54. package/dist/core/collection/reconciler.mjs.map +1 -1
  55. package/dist/core/collection/state.d.mts +7 -2
  56. package/dist/core/collection/state.mjs.map +1 -1
  57. package/dist/core/collection/url.d.mts +3 -0
  58. package/dist/core/collection/url.mjs.map +1 -1
  59. package/dist/core/constants.d.mts +1 -1
  60. package/dist/core/constants.mjs +2 -2
  61. package/dist/core/constants.mjs.map +1 -1
  62. package/dist/core/headers.mjs +2 -2
  63. package/dist/core/headers.mjs.map +1 -1
  64. package/dist/core/index.d.mts +5 -5
  65. package/dist/core/logging/logging.mjs.map +1 -1
  66. package/dist/core/money/format.mjs +6 -3
  67. package/dist/core/money/format.mjs.map +1 -1
  68. package/dist/core/observable.mjs +0 -3
  69. package/dist/core/observable.mjs.map +1 -1
  70. package/dist/core/predictive-search/form.d.mts +1 -0
  71. package/dist/core/predictive-search/form.mjs +1 -0
  72. package/dist/core/predictive-search/form.mjs.map +1 -1
  73. package/dist/core/predictive-search/index.d.mts +1 -1
  74. package/dist/core/predictive-search/queries.d.mts +40 -4
  75. package/dist/core/predictive-search/queries.mjs +7 -1
  76. package/dist/core/predictive-search/queries.mjs.map +1 -1
  77. package/dist/core/predictive-search/search.d.mts +43 -10
  78. package/dist/core/predictive-search/search.mjs +34 -0
  79. package/dist/core/predictive-search/search.mjs.map +1 -1
  80. package/dist/core/predictive-search/server-handlers.d.mts +31 -5
  81. package/dist/core/predictive-search/server-handlers.mjs +5 -3
  82. package/dist/core/predictive-search/server-handlers.mjs.map +1 -1
  83. package/dist/core/predictive-search/store.d.mts +3 -1
  84. package/dist/core/predictive-search/store.mjs.map +1 -1
  85. package/dist/core/predictive-search/url.d.mts +50 -8
  86. package/dist/core/predictive-search/url.mjs +9 -0
  87. package/dist/core/predictive-search/url.mjs.map +1 -1
  88. package/dist/core/product/options.d.mts +2 -2
  89. package/dist/core/product/options.mjs +2 -2
  90. package/dist/core/product/options.mjs.map +1 -1
  91. package/dist/core/product/product-form.d.mts +33 -1
  92. package/dist/core/product/product-form.mjs +30 -0
  93. package/dist/core/product/product-form.mjs.map +1 -1
  94. package/dist/core/product/state.d.mts +41 -0
  95. package/dist/core/product/url.d.mts +6 -0
  96. package/dist/core/product/url.mjs.map +1 -1
  97. package/dist/core/request-context.d.mts +2 -5
  98. package/dist/core/request-context.mjs +13 -39
  99. package/dist/core/request-context.mjs.map +1 -1
  100. package/dist/core/request-routing/handle-shopify-routes.mjs +2 -1
  101. package/dist/core/request-routing/handle-shopify-routes.mjs.map +1 -1
  102. package/dist/core/request-routing/interceptors/ajax-api.mjs +1 -1
  103. package/dist/core/request-routing/interceptors/api-proxy.mjs +1 -1
  104. package/dist/core/request-routing/interceptors/checkout.mjs +19 -6
  105. package/dist/core/request-routing/interceptors/checkout.mjs.map +1 -1
  106. package/dist/core/request-routing/interceptors/mcp-proxy.mjs +1 -1
  107. package/dist/core/request-routing/interceptors/proxy.mjs +20 -5
  108. package/dist/core/request-routing/interceptors/proxy.mjs.map +1 -1
  109. package/dist/core/request-routing/interceptors/query-param-redirect.mjs +5 -11
  110. package/dist/core/request-routing/interceptors/query-param-redirect.mjs.map +1 -1
  111. package/dist/core/request-routing/interceptors/sfapi-proxy.mjs +19 -1
  112. package/dist/core/request-routing/interceptors/sfapi-proxy.mjs.map +1 -1
  113. package/dist/core/request-routing/interceptors/ucp-mcp-proxy.mjs +1 -1
  114. package/dist/core/request-routing/interceptors/well-known.mjs +1 -1
  115. package/dist/core/shopify-scripts/analytics.mjs +2 -2
  116. package/dist/core/shopify-scripts/analytics.mjs.map +1 -1
  117. package/dist/core/shopify-scripts/constants.mjs +1 -1
  118. package/dist/core/shopify-scripts/constants.mjs.map +1 -1
  119. package/dist/core/shopify-scripts/global.mjs +5 -1
  120. package/dist/core/shopify-scripts/global.mjs.map +1 -1
  121. package/dist/core/shopify-scripts/initialize.d.mts +1 -0
  122. package/dist/core/shopify-scripts/initialize.mjs +10 -3
  123. package/dist/core/shopify-scripts/initialize.mjs.map +1 -1
  124. package/dist/core/shopify-scripts/types.d.mts +1 -0
  125. package/dist/core/url.mjs +20 -2
  126. package/dist/core/url.mjs.map +1 -1
  127. package/dist/customer-account/client.d.mts +128 -4
  128. package/dist/customer-account/client.mjs +27 -1
  129. package/dist/customer-account/client.mjs.map +1 -1
  130. package/dist/customer-account/errors.d.mts +46 -0
  131. package/dist/customer-account/errors.mjs +46 -0
  132. package/dist/customer-account/errors.mjs.map +1 -1
  133. package/dist/customer-account/graphql.d.mts +68 -0
  134. package/dist/customer-account/graphql.mjs +47 -0
  135. package/dist/customer-account/graphql.mjs.map +1 -1
  136. package/dist/customer-account/session.d.mts +114 -23
  137. package/dist/customer-account/session.mjs +27 -12
  138. package/dist/customer-account/session.mjs.map +1 -1
  139. package/dist/customer-account/type-resolver.d.mts +23 -0
  140. package/dist/customer-account-api-types.d.ts +570 -374
  141. package/dist/customer-account.schema.json +2981 -1527
  142. package/dist/development/client/client.mjs +2 -2
  143. package/dist/development/client/errors.d.mts +19 -19
  144. package/dist/development/client/errors.mjs +20 -20
  145. package/dist/development/client/errors.mjs.map +1 -1
  146. package/dist/development/client/types.d.mts +91 -10
  147. package/dist/development/core/analytics/cart-tracker.d.mts +14 -0
  148. package/dist/development/core/analytics/cart-tracker.mjs +15 -1
  149. package/dist/development/core/analytics/cart-tracker.mjs.map +1 -1
  150. package/dist/development/core/analytics/custom-consent.mjs +12 -0
  151. package/dist/development/core/analytics/custom-consent.mjs.map +1 -0
  152. package/dist/development/core/analytics/events.d.mts +7 -0
  153. package/dist/development/core/analytics/events.mjs +7 -0
  154. package/dist/development/core/analytics/events.mjs.map +1 -1
  155. package/dist/development/core/analytics/index.d.mts +1 -1
  156. package/dist/development/core/analytics/types.d.mts +152 -16
  157. package/dist/development/core/cart/actions.d.mts +47 -3
  158. package/dist/development/core/cart/actions.mjs +27 -0
  159. package/dist/development/core/cart/actions.mjs.map +1 -1
  160. package/dist/development/core/cart/attach-quantity-input.d.mts +26 -0
  161. package/dist/development/core/cart/attach-quantity-input.mjs +26 -0
  162. package/dist/development/core/cart/attach-quantity-input.mjs.map +1 -1
  163. package/dist/development/core/cart/cart.d.mts +106 -6
  164. package/dist/development/core/cart/cart.mjs +41 -0
  165. package/dist/development/core/cart/cart.mjs.map +1 -1
  166. package/dist/development/core/cart/cookie.d.mts +15 -0
  167. package/dist/development/core/cart/cookie.mjs +15 -0
  168. package/dist/development/core/cart/cookie.mjs.map +1 -1
  169. package/dist/development/core/cart/form.d.mts +61 -0
  170. package/dist/development/core/cart/form.mjs +18 -0
  171. package/dist/development/core/cart/form.mjs.map +1 -1
  172. package/dist/development/core/cart/get-cart.d.mts +43 -2
  173. package/dist/development/core/cart/get-cart.mjs +33 -0
  174. package/dist/development/core/cart/get-cart.mjs.map +1 -1
  175. package/dist/development/core/cart/index.d.mts +1 -1
  176. package/dist/development/core/cart/quantity.d.mts +17 -0
  177. package/dist/development/core/cart/quantity.mjs +17 -0
  178. package/dist/development/core/cart/quantity.mjs.map +1 -1
  179. package/dist/development/core/cart/queries.d.mts +402 -369
  180. package/dist/development/core/cart/queries.mjs +2 -1
  181. package/dist/development/core/cart/queries.mjs.map +1 -1
  182. package/dist/development/core/cart/server-handlers.d.mts +69 -0
  183. package/dist/development/core/cart/server-handlers.mjs +2 -10
  184. package/dist/development/core/cart/server-handlers.mjs.map +1 -1
  185. package/dist/development/core/cart/state.d.mts +133 -0
  186. package/dist/development/core/cart/state.mjs +8 -0
  187. package/dist/development/core/cart/state.mjs.map +1 -1
  188. package/dist/development/core/collection/collection.d.mts +18 -2
  189. package/dist/development/core/collection/collection.mjs +11 -0
  190. package/dist/development/core/collection/collection.mjs.map +1 -1
  191. package/dist/development/core/collection/index.d.mts +1 -1
  192. package/dist/development/core/collection/reconciler.d.mts +13 -4
  193. package/dist/development/core/collection/reconciler.mjs.map +1 -1
  194. package/dist/development/core/collection/state.d.mts +7 -2
  195. package/dist/development/core/collection/state.mjs.map +1 -1
  196. package/dist/development/core/collection/url.d.mts +3 -0
  197. package/dist/development/core/collection/url.mjs.map +1 -1
  198. package/dist/development/core/constants.mjs +1 -1
  199. package/dist/development/core/constants.mjs.map +1 -1
  200. package/dist/development/core/development.d.mts +5 -5
  201. package/dist/development/core/headers.mjs +2 -2
  202. package/dist/development/core/headers.mjs.map +1 -1
  203. package/dist/development/core/index.d.mts +4 -4
  204. package/dist/development/core/logging/logging.mjs.map +1 -1
  205. package/dist/development/core/money/format.mjs +6 -3
  206. package/dist/development/core/money/format.mjs.map +1 -1
  207. package/dist/development/core/observable.mjs +0 -3
  208. package/dist/development/core/observable.mjs.map +1 -1
  209. package/dist/development/core/predictive-search/form.d.mts +1 -0
  210. package/dist/development/core/predictive-search/form.mjs +1 -0
  211. package/dist/development/core/predictive-search/form.mjs.map +1 -1
  212. package/dist/development/core/predictive-search/index.d.mts +1 -1
  213. package/dist/development/core/predictive-search/queries.d.mts +40 -4
  214. package/dist/development/core/predictive-search/queries.mjs +7 -1
  215. package/dist/development/core/predictive-search/queries.mjs.map +1 -1
  216. package/dist/development/core/predictive-search/search.d.mts +43 -10
  217. package/dist/development/core/predictive-search/search.mjs +34 -0
  218. package/dist/development/core/predictive-search/search.mjs.map +1 -1
  219. package/dist/development/core/predictive-search/server-handlers.d.mts +31 -5
  220. package/dist/development/core/predictive-search/server-handlers.mjs +5 -3
  221. package/dist/development/core/predictive-search/server-handlers.mjs.map +1 -1
  222. package/dist/development/core/predictive-search/store.d.mts +3 -1
  223. package/dist/development/core/predictive-search/store.mjs.map +1 -1
  224. package/dist/development/core/predictive-search/url.d.mts +50 -8
  225. package/dist/development/core/predictive-search/url.mjs +9 -0
  226. package/dist/development/core/predictive-search/url.mjs.map +1 -1
  227. package/dist/development/core/product/options.d.mts +2 -2
  228. package/dist/development/core/product/options.mjs +2 -2
  229. package/dist/development/core/product/options.mjs.map +1 -1
  230. package/dist/development/core/product/product-form.d.mts +33 -1
  231. package/dist/development/core/product/product-form.mjs +30 -0
  232. package/dist/development/core/product/product-form.mjs.map +1 -1
  233. package/dist/development/core/product/state.d.mts +41 -0
  234. package/dist/development/core/product/url.d.mts +6 -0
  235. package/dist/development/core/product/url.mjs.map +1 -1
  236. package/dist/development/core/request-context.d.mts +2 -5
  237. package/dist/development/core/request-context.mjs +13 -39
  238. package/dist/development/core/request-context.mjs.map +1 -1
  239. package/dist/development/core/request-routing/handle-shopify-routes.mjs +2 -1
  240. package/dist/development/core/request-routing/handle-shopify-routes.mjs.map +1 -1
  241. package/dist/development/core/request-routing/interceptors/ajax-api.mjs +1 -1
  242. package/dist/development/core/request-routing/interceptors/api-proxy.mjs +1 -1
  243. package/dist/development/core/request-routing/interceptors/checkout.mjs +19 -6
  244. package/dist/development/core/request-routing/interceptors/checkout.mjs.map +1 -1
  245. package/dist/development/core/request-routing/interceptors/mcp-proxy.mjs +1 -1
  246. package/dist/development/core/request-routing/interceptors/proxy.mjs +20 -5
  247. package/dist/development/core/request-routing/interceptors/proxy.mjs.map +1 -1
  248. package/dist/development/core/request-routing/interceptors/query-param-redirect.mjs +5 -11
  249. package/dist/development/core/request-routing/interceptors/query-param-redirect.mjs.map +1 -1
  250. package/dist/development/core/request-routing/interceptors/sfapi-proxy.mjs +19 -1
  251. package/dist/development/core/request-routing/interceptors/sfapi-proxy.mjs.map +1 -1
  252. package/dist/development/core/request-routing/interceptors/ucp-mcp-proxy.mjs +1 -1
  253. package/dist/development/core/request-routing/interceptors/well-known.mjs +1 -1
  254. package/dist/development/core/shopify-scripts/analytics.mjs +2 -2
  255. package/dist/development/core/shopify-scripts/analytics.mjs.map +1 -1
  256. package/dist/development/core/shopify-scripts/constants.mjs +1 -1
  257. package/dist/development/core/shopify-scripts/constants.mjs.map +1 -1
  258. package/dist/development/core/shopify-scripts/global.mjs +5 -1
  259. package/dist/development/core/shopify-scripts/global.mjs.map +1 -1
  260. package/dist/development/core/shopify-scripts/initialize.d.mts +1 -0
  261. package/dist/development/core/shopify-scripts/initialize.mjs +10 -3
  262. package/dist/development/core/shopify-scripts/initialize.mjs.map +1 -1
  263. package/dist/development/core/shopify-scripts/types.d.mts +1 -0
  264. package/dist/development/core/url.mjs +20 -2
  265. package/dist/development/core/url.mjs.map +1 -1
  266. package/dist/development/customer-account/session.d.mts +69 -13
  267. package/dist/development/customer-account/session.mjs +4 -0
  268. package/dist/development/customer-account/session.mjs.map +1 -1
  269. package/dist/development/globals.d.mts +2 -4
  270. package/dist/development/graphql/generated/graphql-env.d.mts +459 -16
  271. package/dist/development/graphql/generated/storefront-api-types.d.mts +1 -1
  272. package/dist/development/graphql/graphql.d.mts +33 -0
  273. package/dist/development/graphql/graphql.mjs +30 -0
  274. package/dist/development/graphql/graphql.mjs.map +1 -1
  275. package/dist/development/graphql/type-resolver.d.mts +14 -0
  276. package/dist/development/react/cart.d.mts +85 -14
  277. package/dist/development/react/cart.mjs +123 -3
  278. package/dist/development/react/cart.mjs.map +1 -1
  279. package/dist/development/react/collection.d.mts +2 -4
  280. package/dist/development/react/collection.mjs.map +1 -1
  281. package/dist/development/react/index.d.mts +7 -5
  282. package/dist/development/react/index.mjs +2 -2
  283. package/dist/development/react/predictive-search.d.mts +68 -7
  284. package/dist/development/react/predictive-search.mjs +54 -12
  285. package/dist/development/react/predictive-search.mjs.map +1 -1
  286. package/dist/development/react/product.d.mts +1 -0
  287. package/dist/development/react/product.mjs +5 -2
  288. package/dist/development/react/product.mjs.map +1 -1
  289. package/dist/development/react/shopify-scripts.mjs +1 -0
  290. package/dist/development/react/shopify-scripts.mjs.map +1 -1
  291. package/dist/development/vue/cart.d.mts +85 -6
  292. package/dist/development/vue/cart.mjs +95 -0
  293. package/dist/development/vue/cart.mjs.map +1 -1
  294. package/dist/development/vue/collection.d.mts +83 -5
  295. package/dist/development/vue/collection.mjs +52 -0
  296. package/dist/development/vue/collection.mjs.map +1 -1
  297. package/dist/development/vue/index.d.mts +6 -4
  298. package/dist/development/vue/predictive-search.d.mts +53 -6
  299. package/dist/development/vue/predictive-search.mjs +33 -0
  300. package/dist/development/vue/predictive-search.mjs.map +1 -1
  301. package/dist/development/vue/product.d.mts +6 -2
  302. package/dist/development/vue/product.mjs.map +1 -1
  303. package/dist/development/vue/shopify-scripts.d.mts +21 -3
  304. package/dist/development/vue/shopify-scripts.mjs +1 -0
  305. package/dist/development/vue/shopify-scripts.mjs.map +1 -1
  306. package/dist/globals.d.mts +2 -4
  307. package/dist/graphql/generated/customer-account-graphql-env.d.mts +1717 -1090
  308. package/dist/graphql/generated/graphql-env.d.mts +459 -16
  309. package/dist/graphql/generated/storefront-api-types.d.mts +1 -1
  310. package/dist/graphql/graphql.d.mts +33 -0
  311. package/dist/graphql/graphql.mjs +30 -0
  312. package/dist/graphql/graphql.mjs.map +1 -1
  313. package/dist/graphql/type-resolver.d.mts +14 -0
  314. package/dist/react/cart.d.mts +85 -14
  315. package/dist/react/cart.mjs +123 -3
  316. package/dist/react/cart.mjs.map +1 -1
  317. package/dist/react/collection.d.mts +2 -4
  318. package/dist/react/collection.mjs.map +1 -1
  319. package/dist/react/index.d.mts +7 -5
  320. package/dist/react/index.mjs +2 -2
  321. package/dist/react/predictive-search.d.mts +68 -7
  322. package/dist/react/predictive-search.mjs +54 -12
  323. package/dist/react/predictive-search.mjs.map +1 -1
  324. package/dist/react/product.d.mts +1 -0
  325. package/dist/react/product.mjs +5 -2
  326. package/dist/react/product.mjs.map +1 -1
  327. package/dist/react/shopify-scripts.mjs +1 -0
  328. package/dist/react/shopify-scripts.mjs.map +1 -1
  329. package/dist/storefront-api-types.d.ts +165 -20
  330. package/dist/storefront.schema.json +782 -57
  331. package/dist/vite/customer-account.mjs +191 -0
  332. package/dist/vite/customer-account.mjs.map +1 -0
  333. package/dist/vite/local-https.mjs +13 -29
  334. package/dist/vite/local-https.mjs.map +1 -1
  335. package/dist/vite/mkcert.mjs +1 -1
  336. package/dist/vue/cart.d.mts +85 -6
  337. package/dist/vue/cart.mjs +95 -0
  338. package/dist/vue/cart.mjs.map +1 -1
  339. package/dist/vue/collection.d.mts +83 -5
  340. package/dist/vue/collection.mjs +52 -0
  341. package/dist/vue/collection.mjs.map +1 -1
  342. package/dist/vue/index.d.mts +6 -4
  343. package/dist/vue/predictive-search.d.mts +53 -6
  344. package/dist/vue/predictive-search.mjs +33 -0
  345. package/dist/vue/predictive-search.mjs.map +1 -1
  346. package/dist/vue/product.d.mts +6 -2
  347. package/dist/vue/product.mjs.map +1 -1
  348. package/dist/vue/shopify-scripts.d.mts +21 -3
  349. package/dist/vue/shopify-scripts.mjs +1 -0
  350. package/dist/vue/shopify-scripts.mjs.map +1 -1
  351. package/package.json +5 -2
  352. package/skills/hydrogen-analytics/SKILL.md +6 -5
  353. package/skills/hydrogen-analytics/references/custom-consent.md +52 -0
  354. package/skills/hydrogen-analytics/references/react.md +1 -1
  355. package/skills/hydrogen-customer-account/SKILL.md +3 -3
  356. package/skills/hydrogen-local-https/SKILL.md +22 -7
  357. package/skills/hydrogen-request-handlers/SKILL.md +5 -5
  358. package/skills/hydrogen-request-handlers/references/nuxt.md +0 -6
  359. package/skills/hydrogen-setup/references/analytics.md +24 -23
  360. package/skills/hydrogen-setup/steps/1-inspect-app.md +1 -1
  361. package/skills/hydrogen-setup/steps/2-scaffold.md +1 -1
  362. package/skills/hydrogen-smoke-test/SKILL.md +2 -2
  363. package/skills/hydrogen-storefront-client/SKILL.md +0 -2
  364. package/ts-plugin/package.json +5 -0
  365. package/dist/core/shopify-scripts/deprecated-cookies.mjs +0 -98
  366. package/dist/core/shopify-scripts/deprecated-cookies.mjs.map +0 -1
  367. package/dist/core/shopify-scripts/utils/cookie-domain.mjs +0 -43
  368. package/dist/core/shopify-scripts/utils/cookie-domain.mjs.map +0 -1
  369. package/dist/core/shopify-scripts/utils/tracking-values.mjs +0 -65
  370. package/dist/core/shopify-scripts/utils/tracking-values.mjs.map +0 -1
  371. package/dist/core/shopify-scripts/utils/uuid.mjs +0 -17
  372. package/dist/core/shopify-scripts/utils/uuid.mjs.map +0 -1
  373. package/dist/development/core/shopify-scripts/deprecated-cookies.mjs +0 -98
  374. package/dist/development/core/shopify-scripts/deprecated-cookies.mjs.map +0 -1
  375. package/dist/development/core/shopify-scripts/utils/cookie-domain.mjs +0 -43
  376. package/dist/development/core/shopify-scripts/utils/cookie-domain.mjs.map +0 -1
  377. package/dist/development/core/shopify-scripts/utils/tracking-values.mjs +0 -65
  378. package/dist/development/core/shopify-scripts/utils/tracking-values.mjs.map +0 -1
  379. package/dist/development/core/shopify-scripts/utils/uuid.mjs +0 -17
  380. package/dist/development/core/shopify-scripts/utils/uuid.mjs.map +0 -1
@@ -748,6 +748,73 @@ type introspection_types = {
748
748
  };
749
749
  };
750
750
  };
751
+ 'BaseCartDiscountApplication': {
752
+ kind: 'INTERFACE';
753
+ name: 'BaseCartDiscountApplication';
754
+ fields: {
755
+ 'allocationMethod': {
756
+ name: 'allocationMethod';
757
+ type: {
758
+ kind: 'NON_NULL';
759
+ name: never;
760
+ ofType: {
761
+ kind: 'ENUM';
762
+ name: 'DiscountApplicationAllocationMethod';
763
+ ofType: null;
764
+ };
765
+ };
766
+ };
767
+ 'targetSelection': {
768
+ name: 'targetSelection';
769
+ type: {
770
+ kind: 'NON_NULL';
771
+ name: never;
772
+ ofType: {
773
+ kind: 'ENUM';
774
+ name: 'DiscountApplicationTargetSelection';
775
+ ofType: null;
776
+ };
777
+ };
778
+ };
779
+ 'targetType': {
780
+ name: 'targetType';
781
+ type: {
782
+ kind: 'NON_NULL';
783
+ name: never;
784
+ ofType: {
785
+ kind: 'ENUM';
786
+ name: 'DiscountApplicationTargetType';
787
+ ofType: null;
788
+ };
789
+ };
790
+ };
791
+ 'totalAllocatedAmount': {
792
+ name: 'totalAllocatedAmount';
793
+ type: {
794
+ kind: 'NON_NULL';
795
+ name: never;
796
+ ofType: {
797
+ kind: 'OBJECT';
798
+ name: 'MoneyV2';
799
+ ofType: null;
800
+ };
801
+ };
802
+ };
803
+ 'value': {
804
+ name: 'value';
805
+ type: {
806
+ kind: 'NON_NULL';
807
+ name: never;
808
+ ofType: {
809
+ kind: 'UNION';
810
+ name: 'PricingValue';
811
+ ofType: null;
812
+ };
813
+ };
814
+ };
815
+ };
816
+ possibleTypes: 'CartAutomaticDiscountApplication' | 'CartCodeDiscountApplication' | 'CartCustomDiscountApplication';
817
+ };
751
818
  'BaseCartLine': {
752
819
  kind: 'INTERFACE';
753
820
  name: 'BaseCartLine';
@@ -868,6 +935,14 @@ type introspection_types = {
868
935
  ofType: null;
869
936
  };
870
937
  };
938
+ 'viewKey': {
939
+ name: 'viewKey';
940
+ type: {
941
+ kind: 'SCALAR';
942
+ name: 'String';
943
+ ofType: null;
944
+ };
945
+ };
871
946
  };
872
947
  possibleTypes: 'CartLine' | 'ComponentizableCartLine';
873
948
  };
@@ -1474,6 +1549,26 @@ type introspection_types = {
1474
1549
  };
1475
1550
  };
1476
1551
  };
1552
+ 'discountApplications': {
1553
+ name: 'discountApplications';
1554
+ type: {
1555
+ kind: 'NON_NULL';
1556
+ name: never;
1557
+ ofType: {
1558
+ kind: 'LIST';
1559
+ name: never;
1560
+ ofType: {
1561
+ kind: 'NON_NULL';
1562
+ name: never;
1563
+ ofType: {
1564
+ kind: 'INTERFACE';
1565
+ name: 'BaseCartDiscountApplication';
1566
+ ofType: null;
1567
+ };
1568
+ };
1569
+ };
1570
+ };
1571
+ };
1477
1572
  'discountCodes': {
1478
1573
  name: 'discountCodes';
1479
1574
  type: {
@@ -1698,6 +1793,18 @@ type introspection_types = {
1698
1793
  };
1699
1794
  };
1700
1795
  };
1796
+ 'sourceDiscountApplication': {
1797
+ name: 'sourceDiscountApplication';
1798
+ type: {
1799
+ kind: 'NON_NULL';
1800
+ name: never;
1801
+ ofType: {
1802
+ kind: 'INTERFACE';
1803
+ name: 'BaseCartDiscountApplication';
1804
+ ofType: null;
1805
+ };
1806
+ };
1807
+ };
1701
1808
  'targetType': {
1702
1809
  name: 'targetType';
1703
1810
  type: {
@@ -1724,6 +1831,84 @@ type introspection_types = {
1724
1831
  };
1725
1832
  };
1726
1833
  };
1834
+ 'CartAutomaticDiscountApplication': {
1835
+ kind: 'OBJECT';
1836
+ name: 'CartAutomaticDiscountApplication';
1837
+ fields: {
1838
+ 'allocationMethod': {
1839
+ name: 'allocationMethod';
1840
+ type: {
1841
+ kind: 'NON_NULL';
1842
+ name: never;
1843
+ ofType: {
1844
+ kind: 'ENUM';
1845
+ name: 'DiscountApplicationAllocationMethod';
1846
+ ofType: null;
1847
+ };
1848
+ };
1849
+ };
1850
+ 'targetSelection': {
1851
+ name: 'targetSelection';
1852
+ type: {
1853
+ kind: 'NON_NULL';
1854
+ name: never;
1855
+ ofType: {
1856
+ kind: 'ENUM';
1857
+ name: 'DiscountApplicationTargetSelection';
1858
+ ofType: null;
1859
+ };
1860
+ };
1861
+ };
1862
+ 'targetType': {
1863
+ name: 'targetType';
1864
+ type: {
1865
+ kind: 'NON_NULL';
1866
+ name: never;
1867
+ ofType: {
1868
+ kind: 'ENUM';
1869
+ name: 'DiscountApplicationTargetType';
1870
+ ofType: null;
1871
+ };
1872
+ };
1873
+ };
1874
+ 'title': {
1875
+ name: 'title';
1876
+ type: {
1877
+ kind: 'NON_NULL';
1878
+ name: never;
1879
+ ofType: {
1880
+ kind: 'SCALAR';
1881
+ name: 'String';
1882
+ ofType: null;
1883
+ };
1884
+ };
1885
+ };
1886
+ 'totalAllocatedAmount': {
1887
+ name: 'totalAllocatedAmount';
1888
+ type: {
1889
+ kind: 'NON_NULL';
1890
+ name: never;
1891
+ ofType: {
1892
+ kind: 'OBJECT';
1893
+ name: 'MoneyV2';
1894
+ ofType: null;
1895
+ };
1896
+ };
1897
+ };
1898
+ 'value': {
1899
+ name: 'value';
1900
+ type: {
1901
+ kind: 'NON_NULL';
1902
+ name: never;
1903
+ ofType: {
1904
+ kind: 'UNION';
1905
+ name: 'PricingValue';
1906
+ ofType: null;
1907
+ };
1908
+ };
1909
+ };
1910
+ };
1911
+ };
1727
1912
  'CartBillingAddressUpdatePayload': {
1728
1913
  kind: 'OBJECT';
1729
1914
  name: 'CartBillingAddressUpdatePayload';
@@ -2074,6 +2259,18 @@ type introspection_types = {
2074
2259
  };
2075
2260
  };
2076
2261
  };
2262
+ 'sourceDiscountApplication': {
2263
+ name: 'sourceDiscountApplication';
2264
+ type: {
2265
+ kind: 'NON_NULL';
2266
+ name: never;
2267
+ ofType: {
2268
+ kind: 'INTERFACE';
2269
+ name: 'BaseCartDiscountApplication';
2270
+ ofType: null;
2271
+ };
2272
+ };
2273
+ };
2077
2274
  'targetType': {
2078
2275
  name: 'targetType';
2079
2276
  type: {
@@ -2088,6 +2285,84 @@ type introspection_types = {
2088
2285
  };
2089
2286
  };
2090
2287
  };
2288
+ 'CartCodeDiscountApplication': {
2289
+ kind: 'OBJECT';
2290
+ name: 'CartCodeDiscountApplication';
2291
+ fields: {
2292
+ 'allocationMethod': {
2293
+ name: 'allocationMethod';
2294
+ type: {
2295
+ kind: 'NON_NULL';
2296
+ name: never;
2297
+ ofType: {
2298
+ kind: 'ENUM';
2299
+ name: 'DiscountApplicationAllocationMethod';
2300
+ ofType: null;
2301
+ };
2302
+ };
2303
+ };
2304
+ 'code': {
2305
+ name: 'code';
2306
+ type: {
2307
+ kind: 'NON_NULL';
2308
+ name: never;
2309
+ ofType: {
2310
+ kind: 'SCALAR';
2311
+ name: 'String';
2312
+ ofType: null;
2313
+ };
2314
+ };
2315
+ };
2316
+ 'targetSelection': {
2317
+ name: 'targetSelection';
2318
+ type: {
2319
+ kind: 'NON_NULL';
2320
+ name: never;
2321
+ ofType: {
2322
+ kind: 'ENUM';
2323
+ name: 'DiscountApplicationTargetSelection';
2324
+ ofType: null;
2325
+ };
2326
+ };
2327
+ };
2328
+ 'targetType': {
2329
+ name: 'targetType';
2330
+ type: {
2331
+ kind: 'NON_NULL';
2332
+ name: never;
2333
+ ofType: {
2334
+ kind: 'ENUM';
2335
+ name: 'DiscountApplicationTargetType';
2336
+ ofType: null;
2337
+ };
2338
+ };
2339
+ };
2340
+ 'totalAllocatedAmount': {
2341
+ name: 'totalAllocatedAmount';
2342
+ type: {
2343
+ kind: 'NON_NULL';
2344
+ name: never;
2345
+ ofType: {
2346
+ kind: 'OBJECT';
2347
+ name: 'MoneyV2';
2348
+ ofType: null;
2349
+ };
2350
+ };
2351
+ };
2352
+ 'value': {
2353
+ name: 'value';
2354
+ type: {
2355
+ kind: 'NON_NULL';
2356
+ name: never;
2357
+ ofType: {
2358
+ kind: 'UNION';
2359
+ name: 'PricingValue';
2360
+ ofType: null;
2361
+ };
2362
+ };
2363
+ };
2364
+ };
2365
+ };
2091
2366
  'CartCompletionAction': {
2092
2367
  kind: 'UNION';
2093
2368
  name: 'CartCompletionAction';
@@ -2432,6 +2707,72 @@ type introspection_types = {
2432
2707
  };
2433
2708
  };
2434
2709
  };
2710
+ 'sourceDiscountApplication': {
2711
+ name: 'sourceDiscountApplication';
2712
+ type: {
2713
+ kind: 'NON_NULL';
2714
+ name: never;
2715
+ ofType: {
2716
+ kind: 'INTERFACE';
2717
+ name: 'BaseCartDiscountApplication';
2718
+ ofType: null;
2719
+ };
2720
+ };
2721
+ };
2722
+ 'targetType': {
2723
+ name: 'targetType';
2724
+ type: {
2725
+ kind: 'NON_NULL';
2726
+ name: never;
2727
+ ofType: {
2728
+ kind: 'ENUM';
2729
+ name: 'DiscountApplicationTargetType';
2730
+ ofType: null;
2731
+ };
2732
+ };
2733
+ };
2734
+ 'title': {
2735
+ name: 'title';
2736
+ type: {
2737
+ kind: 'NON_NULL';
2738
+ name: never;
2739
+ ofType: {
2740
+ kind: 'SCALAR';
2741
+ name: 'String';
2742
+ ofType: null;
2743
+ };
2744
+ };
2745
+ };
2746
+ };
2747
+ };
2748
+ 'CartCustomDiscountApplication': {
2749
+ kind: 'OBJECT';
2750
+ name: 'CartCustomDiscountApplication';
2751
+ fields: {
2752
+ 'allocationMethod': {
2753
+ name: 'allocationMethod';
2754
+ type: {
2755
+ kind: 'NON_NULL';
2756
+ name: never;
2757
+ ofType: {
2758
+ kind: 'ENUM';
2759
+ name: 'DiscountApplicationAllocationMethod';
2760
+ ofType: null;
2761
+ };
2762
+ };
2763
+ };
2764
+ 'targetSelection': {
2765
+ name: 'targetSelection';
2766
+ type: {
2767
+ kind: 'NON_NULL';
2768
+ name: never;
2769
+ ofType: {
2770
+ kind: 'ENUM';
2771
+ name: 'DiscountApplicationTargetSelection';
2772
+ ofType: null;
2773
+ };
2774
+ };
2775
+ };
2435
2776
  'targetType': {
2436
2777
  name: 'targetType';
2437
2778
  type: {
@@ -2456,6 +2797,30 @@ type introspection_types = {
2456
2797
  };
2457
2798
  };
2458
2799
  };
2800
+ 'totalAllocatedAmount': {
2801
+ name: 'totalAllocatedAmount';
2802
+ type: {
2803
+ kind: 'NON_NULL';
2804
+ name: never;
2805
+ ofType: {
2806
+ kind: 'OBJECT';
2807
+ name: 'MoneyV2';
2808
+ ofType: null;
2809
+ };
2810
+ };
2811
+ };
2812
+ 'value': {
2813
+ name: 'value';
2814
+ type: {
2815
+ kind: 'NON_NULL';
2816
+ name: never;
2817
+ ofType: {
2818
+ kind: 'UNION';
2819
+ name: 'PricingValue';
2820
+ ofType: null;
2821
+ };
2822
+ };
2823
+ };
2459
2824
  };
2460
2825
  };
2461
2826
  'CartDelivery': {
@@ -3056,6 +3421,26 @@ type introspection_types = {
3056
3421
  };
3057
3422
  };
3058
3423
  };
3424
+ 'discountAllocations': {
3425
+ name: 'discountAllocations';
3426
+ type: {
3427
+ kind: 'NON_NULL';
3428
+ name: never;
3429
+ ofType: {
3430
+ kind: 'LIST';
3431
+ name: never;
3432
+ ofType: {
3433
+ kind: 'NON_NULL';
3434
+ name: never;
3435
+ ofType: {
3436
+ kind: 'INTERFACE';
3437
+ name: 'CartDiscountAllocation';
3438
+ ofType: null;
3439
+ };
3440
+ };
3441
+ };
3442
+ };
3443
+ };
3059
3444
  'groupType': {
3060
3445
  name: 'groupType';
3061
3446
  type: {
@@ -3444,6 +3829,18 @@ type introspection_types = {
3444
3829
  };
3445
3830
  };
3446
3831
  };
3832
+ 'sourceDiscountApplication': {
3833
+ name: 'sourceDiscountApplication';
3834
+ type: {
3835
+ kind: 'NON_NULL';
3836
+ name: never;
3837
+ ofType: {
3838
+ kind: 'INTERFACE';
3839
+ name: 'BaseCartDiscountApplication';
3840
+ ofType: null;
3841
+ };
3842
+ };
3843
+ };
3447
3844
  'targetType': {
3448
3845
  name: 'targetType';
3449
3846
  type: {
@@ -3947,6 +4344,14 @@ type introspection_types = {
3947
4344
  };
3948
4345
  };
3949
4346
  defaultValue: null;
4347
+ }, {
4348
+ name: 'sourceName';
4349
+ type: {
4350
+ kind: 'SCALAR';
4351
+ name: 'String';
4352
+ ofType: null;
4353
+ };
4354
+ defaultValue: null;
3950
4355
  }];
3951
4356
  };
3952
4357
  'CartInputMetafieldInput': {
@@ -4131,6 +4536,14 @@ type introspection_types = {
4131
4536
  ofType: null;
4132
4537
  };
4133
4538
  };
4539
+ 'viewKey': {
4540
+ name: 'viewKey';
4541
+ type: {
4542
+ kind: 'SCALAR';
4543
+ name: 'String';
4544
+ ofType: null;
4545
+ };
4546
+ };
4134
4547
  };
4135
4548
  };
4136
4549
  'CartLineCost': {
@@ -4368,13 +4781,17 @@ type introspection_types = {
4368
4781
  inputFields: [{
4369
4782
  name: 'id';
4370
4783
  type: {
4371
- kind: 'NON_NULL';
4372
- name: never;
4373
- ofType: {
4374
- kind: 'SCALAR';
4375
- name: 'ID';
4376
- ofType: null;
4377
- };
4784
+ kind: 'SCALAR';
4785
+ name: 'ID';
4786
+ ofType: null;
4787
+ };
4788
+ defaultValue: null;
4789
+ }, {
4790
+ name: 'viewKey';
4791
+ type: {
4792
+ kind: 'SCALAR';
4793
+ name: 'String';
4794
+ ofType: null;
4378
4795
  };
4379
4796
  defaultValue: null;
4380
4797
  }, {
@@ -5531,7 +5948,7 @@ type introspection_types = {
5531
5948
  };
5532
5949
  'CartWarningCode': {
5533
5950
  name: 'CartWarningCode';
5534
- enumValues: 'MERCHANDISE_NOT_ENOUGH_STOCK' | 'MERCHANDISE_OUT_OF_STOCK' | 'PAYMENTS_GIFT_CARDS_UNAVAILABLE' | 'DUPLICATE_DELIVERY_ADDRESS' | 'DISCOUNT_CODE_NOT_HONOURED' | 'DISCOUNT_NOT_FOUND' | 'DISCOUNT_CURRENTLY_INACTIVE' | 'DISCOUNT_USAGE_LIMIT_REACHED' | 'DISCOUNT_CUSTOMER_USAGE_LIMIT_REACHED' | 'DISCOUNT_CUSTOMER_NOT_ELIGIBLE' | 'DISCOUNT_ELIGIBLE_CUSTOMER_MISSING' | 'DISCOUNT_QUANTITY_NOT_IN_RANGE' | 'DISCOUNT_PURCHASE_NOT_IN_RANGE' | 'DISCOUNT_NO_ENTITLED_LINE_ITEMS' | 'DISCOUNT_NO_ENTITLED_SHIPPING_LINES' | 'DISCOUNT_INCOMPATIBLE_PURCHASE_TYPE' | 'MERCHANDISE_SELLING_PLAN_NOT_APPLICABLE_ON_COMPANY_LOCATION';
5951
+ enumValues: 'MERCHANDISE_NOT_ENOUGH_STOCK' | 'MERCHANDISE_OUT_OF_STOCK' | 'PAYMENTS_GIFT_CARDS_UNAVAILABLE' | 'DUPLICATE_DELIVERY_ADDRESS' | 'DISCOUNT_CODE_NOT_HONOURED' | 'DISCOUNT_NOT_FOUND' | 'DISCOUNT_CURRENTLY_INACTIVE' | 'DISCOUNT_USAGE_LIMIT_REACHED' | 'DISCOUNT_CUSTOMER_USAGE_LIMIT_REACHED' | 'DISCOUNT_CUSTOMER_NOT_ELIGIBLE' | 'DISCOUNT_ELIGIBLE_CUSTOMER_MISSING' | 'DISCOUNT_QUANTITY_NOT_IN_RANGE' | 'DISCOUNT_PURCHASE_NOT_IN_RANGE' | 'DISCOUNT_NO_ENTITLED_LINE_ITEMS' | 'DISCOUNT_NO_ENTITLED_SHIPPING_LINES' | 'DISCOUNT_INCOMPATIBLE_PURCHASE_TYPE' | 'MERCHANDISE_SELLING_PLAN_NOT_APPLICABLE_ON_COMPANY_LOCATION' | 'PRODUCT_UNAVAILABLE_IN_BUYER_LOCATION';
5535
5952
  };
5536
5953
  'CategoryFilter': {
5537
5954
  kind: 'INPUT_OBJECT';
@@ -6400,6 +6817,14 @@ type introspection_types = {
6400
6817
  ofType: null;
6401
6818
  };
6402
6819
  };
6820
+ 'viewKey': {
6821
+ name: 'viewKey';
6822
+ type: {
6823
+ kind: 'SCALAR';
6824
+ name: 'String';
6825
+ ofType: null;
6826
+ };
6827
+ };
6403
6828
  };
6404
6829
  };
6405
6830
  'Count': {
@@ -6582,7 +7007,7 @@ type introspection_types = {
6582
7007
  };
6583
7008
  'CurrencyCode': {
6584
7009
  name: 'CurrencyCode';
6585
- enumValues: 'USD' | 'EUR' | 'GBP' | 'CAD' | 'AFN' | 'ALL' | 'DZD' | 'AOA' | 'ARS' | 'AMD' | 'AWG' | 'AUD' | 'BBD' | 'AZN' | 'BDT' | 'BSD' | 'BHD' | 'BIF' | 'BZD' | 'BMD' | 'BTN' | 'BAM' | 'BRL' | 'BOB' | 'BWP' | 'BND' | 'BGN' | 'MMK' | 'KHR' | 'CVE' | 'KYD' | 'XAF' | 'CLP' | 'CNY' | 'COP' | 'KMF' | 'CDF' | 'CRC' | 'HRK' | 'CZK' | 'DKK' | 'DOP' | 'XCD' | 'EGP' | 'ERN' | 'ETB' | 'FKP' | 'XPF' | 'FJD' | 'GIP' | 'GMD' | 'GHS' | 'GTQ' | 'GYD' | 'GEL' | 'HTG' | 'HNL' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'IDR' | 'ILS' | 'IQD' | 'JMD' | 'JPY' | 'JEP' | 'JOD' | 'KZT' | 'KES' | 'KID' | 'KWD' | 'KGS' | 'LAK' | 'LVL' | 'LBP' | 'LSL' | 'LRD' | 'LTL' | 'MGA' | 'MKD' | 'MOP' | 'MWK' | 'MVR' | 'MRU' | 'MXN' | 'MYR' | 'MUR' | 'MDL' | 'MAD' | 'MNT' | 'MZN' | 'NAD' | 'NPR' | 'ANG' | 'NZD' | 'NIO' | 'NGN' | 'NOK' | 'OMR' | 'PAB' | 'PKR' | 'PGK' | 'PYG' | 'PEN' | 'PHP' | 'PLN' | 'QAR' | 'RON' | 'RUB' | 'RWF' | 'WST' | 'SHP' | 'SAR' | 'RSD' | 'SCR' | 'SGD' | 'SDG' | 'SOS' | 'SYP' | 'ZAR' | 'KRW' | 'SSP' | 'SBD' | 'LKR' | 'SRD' | 'SZL' | 'SEK' | 'CHF' | 'TWD' | 'THB' | 'TZS' | 'TTD' | 'TND' | 'TRY' | 'TMT' | 'UGX' | 'UAH' | 'AED' | 'UYU' | 'UZS' | 'VUV' | 'VES' | 'VND' | 'XOF' | 'YER' | 'ZMW' | 'BYN' | 'BYR' | 'DJF' | 'GNF' | 'IRR' | 'LYD' | 'SLL' | 'STD' | 'STN' | 'TJS' | 'TOP' | 'VED' | 'VEF' | 'XXX';
7010
+ enumValues: 'USD' | 'EUR' | 'GBP' | 'CAD' | 'AFN' | 'ALL' | 'DZD' | 'AOA' | 'ARS' | 'AMD' | 'AWG' | 'AUD' | 'BBD' | 'AZN' | 'BDT' | 'BSD' | 'BHD' | 'BIF' | 'BZD' | 'BMD' | 'BTN' | 'BAM' | 'BRL' | 'BOB' | 'BWP' | 'BND' | 'BGN' | 'MMK' | 'KHR' | 'CVE' | 'XCG' | 'KYD' | 'XAF' | 'CLP' | 'CNY' | 'COP' | 'KMF' | 'CDF' | 'CRC' | 'HRK' | 'CZK' | 'DKK' | 'DOP' | 'XCD' | 'EGP' | 'ERN' | 'ETB' | 'FKP' | 'XPF' | 'FJD' | 'GIP' | 'GMD' | 'GHS' | 'GTQ' | 'GYD' | 'GEL' | 'HTG' | 'HNL' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'IDR' | 'ILS' | 'IQD' | 'JMD' | 'JPY' | 'JEP' | 'JOD' | 'KZT' | 'KES' | 'KID' | 'KWD' | 'KGS' | 'LAK' | 'LVL' | 'LBP' | 'LSL' | 'LRD' | 'LTL' | 'MGA' | 'MKD' | 'MOP' | 'MWK' | 'MVR' | 'MRU' | 'MXN' | 'MYR' | 'MUR' | 'MDL' | 'MAD' | 'MNT' | 'MZN' | 'NAD' | 'NPR' | 'ANG' | 'NZD' | 'NIO' | 'NGN' | 'NOK' | 'OMR' | 'PAB' | 'PKR' | 'PGK' | 'PYG' | 'PEN' | 'PHP' | 'PLN' | 'QAR' | 'RON' | 'RUB' | 'RWF' | 'WST' | 'SHP' | 'SAR' | 'RSD' | 'SCR' | 'SGD' | 'SDG' | 'SOS' | 'SYP' | 'ZAR' | 'KRW' | 'SSP' | 'SBD' | 'LKR' | 'SRD' | 'SZL' | 'SEK' | 'CHF' | 'TWD' | 'THB' | 'TZS' | 'TTD' | 'TND' | 'TRY' | 'TMT' | 'UGX' | 'UAH' | 'AED' | 'UYU' | 'UZS' | 'VUV' | 'VES' | 'VND' | 'XOF' | 'YER' | 'ZMW' | 'BYN' | 'BYR' | 'DJF' | 'GNF' | 'IRR' | 'LYD' | 'SLL' | 'STD' | 'STN' | 'TJS' | 'TOP' | 'VED' | 'VEF' | 'XXX';
6586
7011
  };
6587
7012
  'Customer': {
6588
7013
  kind: 'OBJECT';
@@ -17594,6 +18019,14 @@ type introspection_types = {
17594
18019
  };
17595
18020
  };
17596
18021
  };
18022
+ 'shopUser': {
18023
+ name: 'shopUser';
18024
+ type: {
18025
+ kind: 'OBJECT';
18026
+ name: 'ShopPayPaymentRequestShopUser';
18027
+ ofType: null;
18028
+ };
18029
+ };
17597
18030
  'token': {
17598
18031
  name: 'token';
17599
18032
  type: {
@@ -17627,13 +18060,9 @@ type introspection_types = {
17627
18060
  'paymentRequest': {
17628
18061
  name: 'paymentRequest';
17629
18062
  type: {
17630
- kind: 'NON_NULL';
17631
- name: never;
17632
- ofType: {
17633
- kind: 'OBJECT';
17634
- name: 'ShopPayPaymentRequest';
17635
- ofType: null;
17636
- };
18063
+ kind: 'OBJECT';
18064
+ name: 'ShopPayPaymentRequest';
18065
+ ofType: null;
17637
18066
  };
17638
18067
  };
17639
18068
  'sourceIdentifier': {
@@ -17802,6 +18231,20 @@ type introspection_types = {
17802
18231
  defaultValue: null;
17803
18232
  }];
17804
18233
  };
18234
+ 'ShopPayPaymentRequestShopUser': {
18235
+ kind: 'OBJECT';
18236
+ name: 'ShopPayPaymentRequestShopUser';
18237
+ fields: {
18238
+ 'publicId': {
18239
+ name: 'publicId';
18240
+ type: {
18241
+ kind: 'SCALAR';
18242
+ name: 'String';
18243
+ ofType: null;
18244
+ };
18245
+ };
18246
+ };
18247
+ };
17805
18248
  'ShopPayPaymentRequestTotalShippingPrice': {
17806
18249
  kind: 'OBJECT';
17807
18250
  name: 'ShopPayPaymentRequestTotalShippingPrice';
@@ -5,7 +5,7 @@
5
5
  */
6
6
  type CartErrorCode = /** The specified address field contains emojis. */"ADDRESS_FIELD_CONTAINS_EMOJIS" /** The specified address field contains HTML tags. */ | "ADDRESS_FIELD_CONTAINS_HTML_TAGS" /** The specified address field contains a URL. */ | "ADDRESS_FIELD_CONTAINS_URL" /** The specified address field does not match the expected pattern. */ | "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN" /** The specified address field is required. */ | "ADDRESS_FIELD_IS_REQUIRED" /** The specified address field is too long. */ | "ADDRESS_FIELD_IS_TOO_LONG" /** Bundles and addons cannot be mixed. */ | "BUNDLES_AND_ADDONS_CANNOT_BE_MIXED" /** Buyer cannot purchase for company location. */ | "BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION" /** The cart is too large to save. */ | "CART_TOO_LARGE" /** The specified gift card recipient is invalid. */ | "GIFT_CARD_RECIPIENT_INVALID" /** The input value is invalid. */ | "INVALID" /** Company location not found or not allowed. */ | "INVALID_COMPANY_LOCATION" /** The delivery address was not found. */ | "INVALID_DELIVERY_ADDRESS_ID" /** Delivery group was not found in cart. */ | "INVALID_DELIVERY_GROUP" /** Delivery option was not valid. */ | "INVALID_DELIVERY_OPTION" /** The quantity must be a multiple of the specified increment. */ | "INVALID_INCREMENT" /** Merchandise line was not found in cart. */ | "INVALID_MERCHANDISE_LINE" /** The metafields were not valid. */ | "INVALID_METAFIELDS" /** The payment wasn't valid. */ | "INVALID_PAYMENT" /** The payment is invalid. Deferred payment is required. */ | "INVALID_PAYMENT_DEFERRED_PAYMENT_REQUIRED" /** Cannot update payment on an empty cart */ | "INVALID_PAYMENT_EMPTY_CART" /** The given zip code is invalid for the provided country. */ | "INVALID_ZIP_CODE_FOR_COUNTRY" /** The given zip code is invalid for the provided province. */ | "INVALID_ZIP_CODE_FOR_PROVINCE" /** The input value should be less than the maximum value allowed. */ | "LESS_THAN" /** The quantity must be below the specified maximum for the item. */ | "MAXIMUM_EXCEEDED" /** An error occurred while processing cart transformations. */ | "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR" /** Item cannot be purchased as configured. */ | "MERCHANDISE_NOT_APPLICABLE" /** The quantity must be above the specified minimum for the item. */ | "MINIMUM_NOT_MET" /** The customer access token is required when setting a company location. */ | "MISSING_CUSTOMER_ACCESS_TOKEN" /** Missing discount code. */ | "MISSING_DISCOUNT_CODE" /** Missing note. */ | "MISSING_NOTE" /** The note length must be below the specified maximum. */ | "NOTE_TOO_LONG" /** Only one delivery address can be selected. */ | "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED" /** Cannot reference existing parent lines by variant_id. */ | "PARENT_LINE_INVALID_REFERENCE" /** Parent line nesting is too deep or circular. */ | "PARENT_LINE_NESTING_TOO_DEEP" /** Parent line not found. */ | "PARENT_LINE_NOT_FOUND" /** Nested cartlines are blocked due to an incompatibility. */ | "PARENT_LINE_OPERATION_BLOCKED" /** Credit card has expired. */ | "PAYMENTS_CREDIT_CARD_BASE_EXPIRED" /** Credit card gateway is not supported. */ | "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED" /** Credit card error. */ | "PAYMENTS_CREDIT_CARD_GENERIC" /** Credit card month is invalid. */ | "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION" /** Credit card number is invalid. */ | "PAYMENTS_CREDIT_CARD_NUMBER_INVALID" /** Credit card number format is invalid. */ | "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT" /** Credit card verification value is blank. */ | "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK" /** Credit card verification value is invalid for card type. */ | "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE" /** Credit card has expired. */ | "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED" /** Credit card expiry year is invalid. */ | "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR" /** The payment method is not applicable. */ | "PAYMENT_METHOD_NOT_APPLICABLE" /** The payment method is not supported. */ | "PAYMENT_METHOD_NOT_SUPPORTED" /** The delivery group is in a pending state. */ | "PENDING_DELIVERY_GROUPS" /** The given province cannot be found. */ | "PROVINCE_NOT_FOUND" /** Selling plan is not applicable. */ | "SELLING_PLAN_NOT_APPLICABLE" /** An error occurred while saving the cart. */ | "SERVICE_UNAVAILABLE" /** Too many delivery addresses on Cart. */ | "TOO_MANY_DELIVERY_ADDRESSES" /** A general error occurred during address validation. */ | "UNSPECIFIED_ADDRESS_ERROR" /** Validation failed. */ | "VALIDATION_CUSTOM" /** Variant can only be purchased with a selling plan. */ | "VARIANT_REQUIRES_SELLING_PLAN" /** The given zip code is unsupported. */ | "ZIP_CODE_NOT_SUPPORTED";
7
7
  /** The code for the cart warning. */
8
- type CartWarningCode = /** The discount code cannot be honored. */"DISCOUNT_CODE_NOT_HONOURED" /** The discount is currently inactive. */ | "DISCOUNT_CURRENTLY_INACTIVE" /** The customer is not eligible for this discount. */ | "DISCOUNT_CUSTOMER_NOT_ELIGIBLE" /** The customer's discount usage limit has been reached. */ | "DISCOUNT_CUSTOMER_USAGE_LIMIT_REACHED" /** An eligible customer is missing for this discount. */ | "DISCOUNT_ELIGIBLE_CUSTOMER_MISSING" /** The purchase type is incompatible with this discount. */ | "DISCOUNT_INCOMPATIBLE_PURCHASE_TYPE" /** The discount was not found. */ | "DISCOUNT_NOT_FOUND" /** There are no entitled line items for this discount. */ | "DISCOUNT_NO_ENTITLED_LINE_ITEMS" /** There are no entitled shipping lines for this discount. */ | "DISCOUNT_NO_ENTITLED_SHIPPING_LINES" /** The purchase is not in range for this discount. */ | "DISCOUNT_PURCHASE_NOT_IN_RANGE" /** The quantity is not in range for this discount. */ | "DISCOUNT_QUANTITY_NOT_IN_RANGE" /** The discount usage limit has been reached. */ | "DISCOUNT_USAGE_LIMIT_REACHED" /** A delivery address with the same details already exists on this cart. */ | "DUPLICATE_DELIVERY_ADDRESS" /** The merchandise does not have enough stock. */ | "MERCHANDISE_NOT_ENOUGH_STOCK" /** The merchandise is out of stock. */ | "MERCHANDISE_OUT_OF_STOCK" /** Only one-time purchase is available for B2B orders. */ | "MERCHANDISE_SELLING_PLAN_NOT_APPLICABLE_ON_COMPANY_LOCATION" /** Gift cards are not available as a payment method. */ | "PAYMENTS_GIFT_CARDS_UNAVAILABLE";
8
+ type CartWarningCode = /** The discount code cannot be honored. */"DISCOUNT_CODE_NOT_HONOURED" /** The discount is currently inactive. */ | "DISCOUNT_CURRENTLY_INACTIVE" /** The customer is not eligible for this discount. */ | "DISCOUNT_CUSTOMER_NOT_ELIGIBLE" /** The customer's discount usage limit has been reached. */ | "DISCOUNT_CUSTOMER_USAGE_LIMIT_REACHED" /** An eligible customer is missing for this discount. */ | "DISCOUNT_ELIGIBLE_CUSTOMER_MISSING" /** The purchase type is incompatible with this discount. */ | "DISCOUNT_INCOMPATIBLE_PURCHASE_TYPE" /** The discount was not found. */ | "DISCOUNT_NOT_FOUND" /** There are no entitled line items for this discount. */ | "DISCOUNT_NO_ENTITLED_LINE_ITEMS" /** There are no entitled shipping lines for this discount. */ | "DISCOUNT_NO_ENTITLED_SHIPPING_LINES" /** The purchase is not in range for this discount. */ | "DISCOUNT_PURCHASE_NOT_IN_RANGE" /** The quantity is not in range for this discount. */ | "DISCOUNT_QUANTITY_NOT_IN_RANGE" /** The discount usage limit has been reached. */ | "DISCOUNT_USAGE_LIMIT_REACHED" /** A delivery address with the same details already exists on this cart. */ | "DUPLICATE_DELIVERY_ADDRESS" /** The merchandise does not have enough stock. */ | "MERCHANDISE_NOT_ENOUGH_STOCK" /** The merchandise is out of stock. */ | "MERCHANDISE_OUT_OF_STOCK" /** Only one-time purchase is available for B2B orders. */ | "MERCHANDISE_SELLING_PLAN_NOT_APPLICABLE_ON_COMPANY_LOCATION" /** Gift cards are not available as a payment method. */ | "PAYMENTS_GIFT_CARDS_UNAVAILABLE" /** The product is unavailable in the current buyer location. */ | "PRODUCT_UNAVAILABLE_IN_BUYER_LOCATION";
9
9
  /**
10
10
  * The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines.
11
11
  * If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision
@@ -23,17 +23,50 @@ type StorefrontQueryString<Result = any, Variables = any, Source extends string
23
23
  readonly __hydrogenQueryBrand: true;
24
24
  readonly __hydrogenQuerySource?: Source;
25
25
  };
26
+ /** Any `gql()`-branded string, regardless of inferred Result/Variables. Used in constraints that accept any Storefront document. */
26
27
  type AnyStorefrontQueryString = string & StorefrontQueryMetadata;
28
+ /** Extracts the literal source text from a `gql()`-branded document type. Resolves to `never` for unbranded strings. */
27
29
  type SourceOf<Doc> = Doc extends {
28
30
  readonly __hydrogenQuerySource?: infer Source extends string;
29
31
  } ? Source : never;
30
32
  type FragmentSources<Fragments extends readonly AnyStorefrontQueryString[]> = Fragments extends readonly [] ? "" : Fragments extends readonly [infer Only extends AnyStorefrontQueryString] ? SourceOf<Only> : Fragments extends readonly [infer First extends AnyStorefrontQueryString, ...infer Rest extends readonly AnyStorefrontQueryString[]] ? `${SourceOf<First>}\n${FragmentSources<Rest>}` : string;
33
+ /** Concatenates a query source with its fragment sources into a single literal type, enabling end-to-end type inference for composed documents. */
31
34
  type ComposedSource<Source extends string, Fragments extends readonly AnyStorefrontQueryString[]> = FragmentSources<Fragments> extends "" ? Source : `${Source}\n${FragmentSources<Fragments>}`;
32
35
  type StorefrontGql = {
33
36
  <const Document extends AnyStorefrontQueryString, const Fragments extends readonly AnyStorefrontQueryString[], const DocumentSource extends string = ComposedSource<SourceOf<Document>, Fragments>>(document: Document, fragments: Fragments): StorefrontQueryString<InferResult<DocumentSource>, InferVariables<DocumentSource>, DocumentSource>;
34
37
  <const Source extends string>(source: Source): StorefrontQueryString<InferResult<Source>, InferVariables<Source>, Source>;
35
38
  <const Source extends string, const Fragments extends readonly AnyStorefrontQueryString[], const DocumentSource extends string = ComposedSource<Source, Fragments>>(source: Source, fragments: Fragments): StorefrontQueryString<InferResult<DocumentSource>, InferVariables<DocumentSource>, DocumentSource>;
36
39
  } & StorefrontTadaGql;
40
+ /**
41
+ * Tags a Storefront API query string for type-safe inference.
42
+ *
43
+ * At runtime, returns the source string (concatenated with any fragments).
44
+ * At the type level, the return type carries phantom `Result` and `Variables`
45
+ * types inferred from the Storefront API schema via gql.tada.
46
+ *
47
+ * Pass an array of previously declared `gql()` fragments as the second
48
+ * argument to compose documents while preserving full type inference.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * import { gql } from "@shopify/hydrogen";
53
+ *
54
+ * const PRODUCT_QUERY = gql(`
55
+ * query Product($handle: String!) {
56
+ * product(handle: $handle) { title }
57
+ * }
58
+ * `);
59
+ *
60
+ * const result = await storefront.graphql(PRODUCT_QUERY, {
61
+ * variables: { handle: "snowboard" },
62
+ * });
63
+ *
64
+ * if (!result.errors) {
65
+ * // result.data.product is typed as `{ title: string } | null`
66
+ * console.log(result.data.product?.title);
67
+ * }
68
+ * ```
69
+ */
37
70
  declare const gql: StorefrontGql;
38
71
  //#endregion
39
72
  export { AnyStorefrontQueryString, ComposedSource, SourceOf, StorefrontQueryString, gql };