shopify 4.3.0 → 4.4.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 (336) hide show
  1. package/dist/analytics-DWUYMFHO.js +1 -0
  2. package/dist/analytics-SOXP4UBD.js +1 -0
  3. package/dist/assets/hydrogen/routes/locale-check.ts +3 -3
  4. package/dist/assets/hydrogen/starter/CHANGELOG.md +106 -0
  5. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +4 -2
  6. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +8 -5
  7. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +117 -23
  8. package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
  9. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +24 -4
  10. package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +1 -1
  11. package/dist/assets/hydrogen/starter/app/lib/context.ts +5 -0
  12. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +14 -53
  13. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +11 -4
  14. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
  15. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +2 -2
  16. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
  17. package/dist/assets/hydrogen/starter/package.json +9 -10
  18. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +0 -11
  19. package/dist/assets/hydrogen/starter/vite.config.ts +10 -4
  20. package/dist/assets/hydrogen/vite/package.json +1 -2
  21. package/dist/assets/hydrogen/vite/vite.config.js +4 -3
  22. package/dist/bootstrap.js +1 -1
  23. package/dist/chunk-2EROVVCL.js +1 -0
  24. package/dist/{chunk-MEIEEENL.js → chunk-2MMGFZDP.js} +1 -1
  25. package/dist/{chunk-3YDYZ232.js → chunk-2NWWMNU5.js} +8 -8
  26. package/dist/{chunk-WHNWE7P2.js → chunk-3CYHS4W2.js} +1 -1
  27. package/dist/{chunk-DNXYKGV2.js → chunk-3FBSBMSQ.js} +1 -1
  28. package/dist/chunk-3OZ6ZZ4T.js +5 -0
  29. package/dist/{chunk-UTO4Z6P6.js → chunk-442S5SDM.js} +1 -1
  30. package/dist/{chunk-2RBIR3NM.js → chunk-45MEVWH5.js} +1 -1
  31. package/dist/{chunk-N5LVGFDS.js → chunk-47MGPVED.js} +1 -1
  32. package/dist/{chunk-UYSF234H.js → chunk-4N6YTHFD.js} +1 -1
  33. package/dist/chunk-4TST2MNC.js +1 -0
  34. package/dist/{chunk-NILXAUUT.js → chunk-5GVXMNC4.js} +1 -1
  35. package/dist/{chunk-PMS4MNHB.js → chunk-5JNEWYD5.js} +1 -1
  36. package/dist/{chunk-ATSMK66C.js → chunk-5QQN3SKH.js} +1 -1
  37. package/dist/{chunk-DCLUZFT7.js → chunk-5QWYIBE6.js} +1 -1
  38. package/dist/chunk-5W443CKL.js +836 -0
  39. package/dist/{chunk-JUYJZUYU.js → chunk-67KMRBSZ.js} +1 -1
  40. package/dist/{chunk-UC7KMA6W.js → chunk-6DIHOMCB.js} +1 -1
  41. package/dist/{chunk-NTRAWIEJ.js → chunk-6EZ7JWBK.js} +6 -6
  42. package/dist/{chunk-25HJX3L2.js → chunk-6RL7FUPD.js} +1 -1
  43. package/dist/chunk-6YPEONHB.js +46 -0
  44. package/dist/{chunk-JEZ3PGVC.js → chunk-733R5OKQ.js} +1 -1
  45. package/dist/chunk-73W5BGAZ.js +1 -0
  46. package/dist/{chunk-Q7C44DX5.js → chunk-75LJTY7F.js} +1 -1
  47. package/dist/{chunk-JCIN73BE.js → chunk-7EJ4UVYI.js} +1 -1
  48. package/dist/{chunk-BL46CZ2M.js → chunk-7LATYPLU.js} +1 -1
  49. package/dist/{chunk-TP7E54WN.js → chunk-7SVMAJTR.js} +1 -1
  50. package/dist/{chunk-7572RLUP.js → chunk-7UOPCYMV.js} +1 -1
  51. package/dist/chunk-APN3VWN4.js +3 -0
  52. package/dist/{chunk-FOFJBRSL.js → chunk-AT2GDXN7.js} +1 -1
  53. package/dist/{chunk-4QTEPWEJ.js → chunk-ATXODH6C.js} +4 -4
  54. package/dist/chunk-AY4GIVME.js +4 -0
  55. package/dist/{chunk-TY6BZTG3.js → chunk-B7BUEEBR.js} +1 -1
  56. package/dist/{chunk-G2LVUM7N.js → chunk-B7S23DLF.js} +1 -1
  57. package/dist/chunk-BCD4KTLJ.js +1 -0
  58. package/dist/{chunk-CEHXOWA6.js → chunk-BIMOHK2P.js} +1 -1
  59. package/dist/{chunk-UB26DGTR.js → chunk-C3CVLSLS.js} +1 -1
  60. package/dist/{chunk-G3RWLAOG.js → chunk-CD5O2BIT.js} +1 -1
  61. package/dist/chunk-CPE7XCC6.js +593 -0
  62. package/dist/{chunk-TRYWVIVJ.js → chunk-CZXGQ53M.js} +1 -1
  63. package/dist/chunk-D6YDSGR4.js +3 -0
  64. package/dist/{chunk-33OHQUHZ.js → chunk-DHBYYHBT.js} +1 -1
  65. package/dist/{chunk-OU4SKQTC.js → chunk-DLNBTHKL.js} +2 -2
  66. package/dist/chunk-DO2SHYFU.js +1 -0
  67. package/dist/{chunk-7FQFEB33.js → chunk-DONEJHDG.js} +33 -33
  68. package/dist/{chunk-JAWKLBOB.js → chunk-DQ4HA72R.js} +1 -1
  69. package/dist/{chunk-CV5EQGES.js → chunk-DZLA2RJP.js} +1 -1
  70. package/dist/{chunk-GJXINXSU.js → chunk-EKHWL542.js} +46 -46
  71. package/dist/{chunk-USLYL5AC.js → chunk-F5QG42MA.js} +1 -1
  72. package/dist/{chunk-2XZBQZ5R.js → chunk-FA4K3JRN.js} +1 -1
  73. package/dist/{chunk-3SPDFV5D.js → chunk-FPLUMESQ.js} +1 -1
  74. package/dist/chunk-FU232KQ7.js +1 -0
  75. package/dist/{chunk-S22NCNAJ.js → chunk-FZKKKGUJ.js} +1 -1
  76. package/dist/chunk-G24L7MB3.js +1 -0
  77. package/dist/{chunk-RKDZGK5K.js → chunk-G2I2ZUBV.js} +1 -1
  78. package/dist/{chunk-4FFPTEKD.js → chunk-G2S346IS.js} +1 -1
  79. package/dist/{chunk-HCTZN7L4.js → chunk-GBZL4TTY.js} +1 -1
  80. package/dist/{chunk-AO3RFGNV.js → chunk-GFCLUGAG.js} +1 -1
  81. package/dist/{chunk-MRS6LAY7.js → chunk-GKRCTMWY.js} +1 -1
  82. package/dist/{chunk-JJ6RM54S.js → chunk-GTUKM3ZW.js} +1 -1
  83. package/dist/{chunk-YL3TYQGT.js → chunk-GUO7S4NW.js} +1 -1
  84. package/dist/{chunk-ANBOLDON.js → chunk-GW3VY3FZ.js} +1 -1
  85. package/dist/{chunk-OXJBYKMX.js → chunk-H5C3QTOO.js} +1 -1
  86. package/dist/{chunk-T3ERXB7F.js → chunk-H6WN7GP4.js} +1 -1
  87. package/dist/{chunk-NWXDOCL5.js → chunk-HA6NISOZ.js} +1 -1
  88. package/dist/{chunk-L2PC4MUV.js → chunk-HCN6HXA5.js} +1 -1
  89. package/dist/chunk-HM5H7WBE.js +1 -0
  90. package/dist/chunk-HZMP62GK.js +21 -0
  91. package/dist/{chunk-57PPQKJT.js → chunk-HZSAUZBX.js} +1 -1
  92. package/dist/{chunk-ZGJ3DFTQ.js → chunk-HZYRCG4R.js} +1 -1
  93. package/dist/{chunk-6JKGUQRD.js → chunk-I73E3BD5.js} +1 -1
  94. package/dist/{chunk-Q73GEVSJ.js → chunk-IG6LPVS4.js} +1 -1
  95. package/dist/{chunk-T4NS63K4.js → chunk-IIOIDMG3.js} +1 -1
  96. package/dist/{chunk-FQ5ZZX2G.js → chunk-IPQH2RHD.js} +1 -1
  97. package/dist/chunk-IX4KP6E3.js +2 -0
  98. package/dist/{chunk-A5HKAMAC.js → chunk-J2WCMQZZ.js} +1 -1
  99. package/dist/chunk-J3HXFQ2L.js +1 -0
  100. package/dist/{chunk-QDVJJKLB.js → chunk-J5TNYNR5.js} +1 -1
  101. package/dist/{chunk-SSCYLDSX.js → chunk-J7UQBC45.js} +1 -1
  102. package/dist/{chunk-Q77MM2N2.js → chunk-JAW32T6G.js} +1 -1
  103. package/dist/{chunk-OZBY45KT.js → chunk-JOZXRV5K.js} +1 -1
  104. package/dist/{chunk-S5IFJ737.js → chunk-KKUDXLK2.js} +1 -1
  105. package/dist/{chunk-HDC5V7RY.js → chunk-KN3FTJDU.js} +1 -1
  106. package/dist/{chunk-AERKD4TO.js → chunk-KSZ5K6LJ.js} +1 -1
  107. package/dist/{chunk-G3JJLXPH.js → chunk-LCPD2BYX.js} +1 -1
  108. package/dist/chunk-LKZ7ARYS.js +18 -0
  109. package/dist/{chunk-ZUKLGZOU.js → chunk-LOHUNOQ7.js} +1 -1
  110. package/dist/{chunk-ZM75DSIW.js → chunk-LOQIRLTD.js} +1 -1
  111. package/dist/{chunk-FIYAECXH.js → chunk-MFLQRQQT.js} +1 -1
  112. package/dist/chunk-MQICT2LR.js +1 -0
  113. package/dist/{chunk-RSRYC5ZF.js → chunk-MZMYBFZQ.js} +1 -1
  114. package/dist/{chunk-2EHBJWC6.js → chunk-NADNFSKS.js} +1 -1
  115. package/dist/{chunk-N3YTDGFY.js → chunk-NWDP5IZ2.js} +1 -1
  116. package/dist/{chunk-WVRGCNBZ.js → chunk-NY5OGHM5.js} +1 -1
  117. package/dist/chunk-O6KTFMCD.js +1 -0
  118. package/dist/{chunk-YSIBRY6C.js → chunk-OAI7VSLW.js} +1 -1
  119. package/dist/{chunk-GWHV62YT.js → chunk-OORCODNK.js} +1 -1
  120. package/dist/{chunk-W7DDV2EY.js → chunk-OQORDQLH.js} +1 -1
  121. package/dist/{chunk-JAWOP4HJ.js → chunk-PETINPMX.js} +1 -1
  122. package/dist/{chunk-5XDQ76DQ.js → chunk-PJYNAUQB.js} +1 -1
  123. package/dist/{chunk-5H3VTG77.js → chunk-PMXCJIBP.js} +1 -1
  124. package/dist/{chunk-OU3M32A2.js → chunk-POAICASX.js} +1 -1
  125. package/dist/{chunk-6KETAPWL.js → chunk-PUAMSBXS.js} +1 -1
  126. package/dist/{chunk-M2YINBHF.js → chunk-PZYP3MCL.js} +1 -1
  127. package/dist/chunk-Q7BOSHWX.js +7 -0
  128. package/dist/{chunk-HIQHYPLU.js → chunk-QJ7TI6CK.js} +1 -1
  129. package/dist/{chunk-VJ6KDRZI.js → chunk-QMXKGSFH.js} +1 -1
  130. package/dist/{chunk-3AOQKI4B.js → chunk-QPN2M26G.js} +1 -1
  131. package/dist/{chunk-5FVB7JHP.js → chunk-QS3FMN67.js} +1 -1
  132. package/dist/{chunk-VRJTLVG3.js → chunk-RF6NUGCU.js} +1 -1
  133. package/dist/{chunk-PXHY753L.js → chunk-RYGZCBO4.js} +1 -1
  134. package/dist/{chunk-MMIHHCMW.js → chunk-SKLUHLS2.js} +1 -1
  135. package/dist/{chunk-2GU7OY3H.js → chunk-SP2WUATO.js} +1 -1
  136. package/dist/chunk-SWI3LCPE.js +7 -0
  137. package/dist/{chunk-J3HX6ZGD.js → chunk-SXTDVUT3.js} +1 -1
  138. package/dist/{chunk-4J32OHLY.js → chunk-T5GSCWN5.js} +1 -1
  139. package/dist/{chunk-J5BRKYGE.js → chunk-TC3JOEMA.js} +1 -1
  140. package/dist/{chunk-5FFHQTRC.js → chunk-TJGUNVRI.js} +1 -1
  141. package/dist/{chunk-EVZA2TCI.js → chunk-TKG42KLM.js} +1 -1
  142. package/dist/{chunk-DYNH5SKT.js → chunk-TQUSREKP.js} +1 -1
  143. package/dist/{chunk-PCCK4YTE.js → chunk-U73TPLFE.js} +1 -1
  144. package/dist/{chunk-HOSFU6UP.js → chunk-UKK5P74A.js} +3 -3
  145. package/dist/chunk-UMT7DWR4.js +1 -0
  146. package/dist/chunk-UUC5YKAS.js +2 -0
  147. package/dist/chunk-UYK6CXAU.js +1 -0
  148. package/dist/{chunk-JSOGPMWB.js → chunk-V3RZ3DTW.js} +1 -1
  149. package/dist/{chunk-5O43334U.js → chunk-V6ZSIUO3.js} +1 -1
  150. package/dist/{chunk-YPBCSDFQ.js → chunk-VFWWZMOQ.js} +1 -1
  151. package/dist/{chunk-MIDYZPO4.js → chunk-VOJWKGCW.js} +1 -1
  152. package/dist/{chunk-AU5EZQW7.js → chunk-VQW35HIQ.js} +1 -1
  153. package/dist/{chunk-PFGYC53K.js → chunk-WAGAC3YI.js} +1 -1
  154. package/dist/{chunk-TPCG6DCA.js → chunk-WKBVT5WG.js} +1 -1
  155. package/dist/{chunk-KRQGLK2Q.js → chunk-WLO5H255.js} +1 -1
  156. package/dist/{chunk-M7YFD4EV.js → chunk-WNWQSHEC.js} +5 -5
  157. package/dist/{chunk-VI34CKV6.js → chunk-WRRUFK4Y.js} +1 -1
  158. package/dist/{chunk-LCZDC6EE.js → chunk-WVHB2HCQ.js} +1 -1
  159. package/dist/{chunk-YIRFEW5M.js → chunk-WZVQHMGI.js} +1 -1
  160. package/dist/{chunk-G2OHWAY2.js → chunk-X4DIJTIK.js} +1 -1
  161. package/dist/{chunk-S6B2ADVR.js → chunk-XH6ZP7M5.js} +1 -1
  162. package/dist/{chunk-7D45IAMQ.js → chunk-XV3I45NA.js} +1 -1
  163. package/dist/{chunk-2K7FGAT6.js → chunk-Y3WIZSRU.js} +1 -1
  164. package/dist/{chunk-2GAFKG64.js → chunk-Y66GQ6V2.js} +1 -1
  165. package/dist/{chunk-N3CNWCC2.js → chunk-YGKQCEVG.js} +1 -1
  166. package/dist/{chunk-2TMQG2UT.js → chunk-YLGSM42I.js} +1 -1
  167. package/dist/{chunk-JK3NIHTX.js → chunk-YQH2JHFA.js} +1 -1
  168. package/dist/{chunk-E7DHELFH.js → chunk-YYL356OX.js} +1 -1
  169. package/dist/chunk-Z4LC3WE5.js +7 -0
  170. package/dist/{chunk-PNP5OKNZ.js → chunk-Z74QYLNC.js} +1 -1
  171. package/dist/{chunk-5BKCIDMS.js → chunk-ZAMDXIVC.js} +1 -1
  172. package/dist/{chunk-WA3YC5W4.js → chunk-ZEENHLSC.js} +2 -2
  173. package/dist/{chunk-6LWOWDF4.js → chunk-ZIREP3EZ.js} +1 -1
  174. package/dist/chunk-ZIXWWU2N.js +275 -0
  175. package/dist/{chunk-N3NE4MVN.js → chunk-ZQ5JVD5X.js} +1 -1
  176. package/dist/{chunk-YVQXEPHY.js → chunk-ZULTG2D2.js} +1 -1
  177. package/dist/{chunk-UU5P2IYU.js → chunk-ZZFZBFVM.js} +1 -1
  178. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  179. package/dist/cli/commands/app/build.js +1 -1
  180. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  181. package/dist/cli/commands/app/bulk/execute.js +1 -1
  182. package/dist/cli/commands/app/bulk/status.js +1 -1
  183. package/dist/cli/commands/app/config/link.js +1 -1
  184. package/dist/cli/commands/app/config/pull.js +1 -1
  185. package/dist/cli/commands/app/config/use.js +1 -1
  186. package/dist/cli/commands/app/config/validate.js +1 -1
  187. package/dist/cli/commands/app/demo/watcher.js +1 -1
  188. package/dist/cli/commands/app/deploy.js +1 -1
  189. package/dist/cli/commands/app/dev/clean.js +1 -1
  190. package/dist/cli/commands/app/dev.js +1 -1
  191. package/dist/cli/commands/app/env/pull.js +1 -1
  192. package/dist/cli/commands/app/env/show.js +1 -1
  193. package/dist/cli/commands/app/execute.js +1 -1
  194. package/dist/cli/commands/app/function/build.js +1 -1
  195. package/dist/cli/commands/app/function/info.js +1 -1
  196. package/dist/cli/commands/app/function/replay.js +1 -1
  197. package/dist/cli/commands/app/function/run.js +1 -1
  198. package/dist/cli/commands/app/function/schema.js +1 -1
  199. package/dist/cli/commands/app/function/typegen.js +1 -1
  200. package/dist/cli/commands/app/generate/extension.js +1 -1
  201. package/dist/cli/commands/app/graphiql.js +1 -0
  202. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  203. package/dist/cli/commands/app/import-extensions.js +1 -1
  204. package/dist/cli/commands/app/info.js +1 -1
  205. package/dist/cli/commands/app/init.js +1 -1
  206. package/dist/cli/commands/app/logs.js +1 -1
  207. package/dist/cli/commands/app/release.js +1 -1
  208. package/dist/cli/commands/app/versions/list.js +1 -1
  209. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  210. package/dist/cli/commands/auth/login.js +1 -1
  211. package/dist/cli/commands/auth/logout.js +1 -1
  212. package/dist/cli/commands/cache/clear.js +1 -1
  213. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  214. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  215. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  216. package/dist/cli/commands/debug/command-flags.js +1 -1
  217. package/dist/cli/commands/doc/fetch.js +1 -1
  218. package/dist/cli/commands/doc/search.js +1 -1
  219. package/dist/cli/commands/docs/generate.js +1 -1
  220. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  221. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  222. package/dist/cli/commands/help.js +1 -1
  223. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  224. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  225. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  226. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  227. package/dist/cli/commands/notifications/generate.js +1 -1
  228. package/dist/cli/commands/notifications/list.js +1 -1
  229. package/dist/cli/commands/organization/list.js +1 -1
  230. package/dist/cli/commands/search.js +1 -1
  231. package/dist/cli/commands/theme/check.js +1 -1
  232. package/dist/cli/commands/theme/console.js +1 -1
  233. package/dist/cli/commands/theme/delete.js +1 -1
  234. package/dist/cli/commands/theme/dev.js +1 -1
  235. package/dist/cli/commands/theme/duplicate.js +1 -1
  236. package/dist/cli/commands/theme/info.js +1 -1
  237. package/dist/cli/commands/theme/init.js +1 -1
  238. package/dist/cli/commands/theme/language-server.js +1 -1
  239. package/dist/cli/commands/theme/list.js +1 -1
  240. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  241. package/dist/cli/commands/theme/open.js +1 -1
  242. package/dist/cli/commands/theme/package.js +1 -1
  243. package/dist/cli/commands/theme/preview.js +1 -1
  244. package/dist/cli/commands/theme/profile.js +1 -1
  245. package/dist/cli/commands/theme/publish.js +1 -1
  246. package/dist/cli/commands/theme/pull.js +1 -1
  247. package/dist/cli/commands/theme/push.js +1 -1
  248. package/dist/cli/commands/theme/rename.js +1 -1
  249. package/dist/cli/commands/theme/share.js +1 -1
  250. package/dist/cli/commands/upgrade.js +1 -1
  251. package/dist/cli/commands/version.js +1 -1
  252. package/dist/cli/help.d.ts +38 -0
  253. package/dist/cli/help.js +2 -0
  254. package/dist/command-registry.js +1 -1
  255. package/dist/{conf-store-UY3MDGGA.js → conf-store-C2LOYIOU.js} +1 -1
  256. package/dist/{deprecations-KNUMDRIU.js → deprecations-QOHE6JG6.js} +1 -1
  257. package/dist/dist-FF6C4ZHS.js +1 -0
  258. package/dist/dist-Q676YGVI.js +1 -0
  259. package/dist/environments-EGD263DV.js +1 -0
  260. package/dist/error-66U2HJ37.js +1 -0
  261. package/dist/error-handler-SW2ALZ5Z.js +1 -0
  262. package/dist/{fs-LJWVNO4H.js → fs-JPQRUGZI.js} +1 -1
  263. package/dist/hooks/app-init.js +1 -1
  264. package/dist/hooks/did-you-mean.js +1 -1
  265. package/dist/hooks/hydrogen-init.js +1 -1
  266. package/dist/hooks/plugin-plugins.js +1 -1
  267. package/dist/hooks/postrun.js +1 -1
  268. package/dist/hooks/prerun.js +1 -1
  269. package/dist/hooks/public-metadata.js +1 -1
  270. package/dist/hooks/sensitive-metadata.js +1 -1
  271. package/dist/hooks/tunnel-provider.js +1 -1
  272. package/dist/hooks/tunnel-start.js +1 -1
  273. package/dist/index.js +23 -10
  274. package/dist/{is-global-W6ALVC5L.js → is-global-QWTDUPNR.js} +1 -1
  275. package/dist/lib-NOROGV6N.js +1 -0
  276. package/dist/lib-UCG2DNMS.js +1 -0
  277. package/dist/{local-GKEWZAIV.js → local-FRYN3NWL.js} +1 -1
  278. package/dist/local-storage-DFH3LT5G.js +1 -0
  279. package/dist/{metadata-UEUN64TK.js → metadata-KZVLHQII.js} +1 -1
  280. package/dist/{morph-CGOZEPPZ.js → morph-CG6HEMCQ.js} +4 -4
  281. package/dist/{node-package-manager-4ASQQIIF.js → node-package-manager-LVFBY4LY.js} +1 -1
  282. package/dist/notifications-system-DP443VTE.js +1 -0
  283. package/dist/{output-S6E37GJQ.js → output-NH4I5Y3C.js} +1 -1
  284. package/dist/{prettier-EGVCP5CY.js → prettier-6ZMB2MMO.js} +1 -1
  285. package/dist/system-GNOF6HMI.js +1 -0
  286. package/dist/tsconfig.tsbuildinfo +1 -1
  287. package/dist/ui-QOGKADWB.js +1 -0
  288. package/dist/upgrade-K4S6JW64.js +1 -0
  289. package/dist/version-FJFTTOZU.js +1 -0
  290. package/dist/version-ZI4GZX72.js +1 -0
  291. package/dist/{workerd-QOTT6UCO.js → workerd-U6WWWY73.js} +1 -1
  292. package/oclif.manifest.json +714 -122
  293. package/package.json +15 -8
  294. package/dist/analytics-JH64XI2J.js +0 -1
  295. package/dist/analytics-MEGKKFGF.js +0 -1
  296. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
  297. package/dist/chunk-762JWOWJ.js +0 -5
  298. package/dist/chunk-7LV55VWE.js +0 -1
  299. package/dist/chunk-A27NZMWB.js +0 -1
  300. package/dist/chunk-AVD3INWF.js +0 -1
  301. package/dist/chunk-AWEB5AQM.js +0 -1
  302. package/dist/chunk-AXNAGI32.js +0 -1
  303. package/dist/chunk-BQWK3C47.js +0 -278
  304. package/dist/chunk-CFOXXOO2.js +0 -1
  305. package/dist/chunk-DTIWUT2T.js +0 -18
  306. package/dist/chunk-DZQYG32N.js +0 -2
  307. package/dist/chunk-EH7ZTFS4.js +0 -613
  308. package/dist/chunk-EKVTNWHM.js +0 -1
  309. package/dist/chunk-G4OQABDT.js +0 -836
  310. package/dist/chunk-I22ZTRKK.js +0 -3
  311. package/dist/chunk-I4R7TML2.js +0 -7
  312. package/dist/chunk-J3H4LPN6.js +0 -18
  313. package/dist/chunk-JLE4NBMT.js +0 -1
  314. package/dist/chunk-LXVORHCQ.js +0 -1
  315. package/dist/chunk-MINZGZ4N.js +0 -1
  316. package/dist/chunk-S7F5KFQP.js +0 -1
  317. package/dist/chunk-T4IV643Z.js +0 -9
  318. package/dist/chunk-TUNUEOHO.js +0 -3
  319. package/dist/chunk-VPPWSKOY.js +0 -1
  320. package/dist/chunk-XVUHUA36.js +0 -1
  321. package/dist/chunk-YMAWEIUR.js +0 -1
  322. package/dist/dist-C5IV2YDQ.js +0 -1
  323. package/dist/dist-VL4KZWV2.js +0 -1
  324. package/dist/environments-YPRVO2CF.js +0 -1
  325. package/dist/error-XRBQTNFM.js +0 -1
  326. package/dist/error-handler-NI7D6GSY.js +0 -1
  327. package/dist/lib-AIKYSHWL.js +0 -1
  328. package/dist/lib-Q4PWEMFD.js +0 -1
  329. package/dist/local-storage-ZOZMA22B.js +0 -1
  330. package/dist/notifications-system-HLXJCAMG.js +0 -1
  331. package/dist/system-YQZNGSWB.js +0 -1
  332. package/dist/ui-D2FFWRK7.js +0 -1
  333. package/dist/upgrade-TVTCFMXM.js +0 -1
  334. package/dist/version-J6MDN7BZ.js +0 -1
  335. package/dist/version-RIRW5EXQ.js +0 -1
  336. /package/dist/{chunk-YLQ3LNNY.js → chunk-VDN6MEYI.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import{a as x}from"./chunk-JOZXRV5K.js";import{Fa as D}from"./chunk-ATXODH6C.js";import{b as u,d as B}from"./chunk-G24L7MB3.js";import{g as W,n as y}from"./chunk-5W443CKL.js";import{E as N,P as F,x as A}from"./chunk-6EZ7JWBK.js";import{d as s,g as C}from"./chunk-WKBVT5WG.js";import{Fb as m,Hb as o,Ta as _,ma as T}from"./chunk-DONEJHDG.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await _(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
2
+ ${d}`)}}t();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mutation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunMutation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mutation"},value:{kind:"Variable",name:{kind:"Name",value:"mutation"}}},{kind:"Argument",name:{kind:"Name",value:"stagedUploadPath"},value:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}}},{kind:"Argument",name:{kind:"Name",value:"clientIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function ae(e){let{adminSession:n,query:a,variablesJsonl:i,version:r}=e,l=await h({adminSession:n,variablesJsonl:i});return(await u({query:U,session:n,variables:{mutation:a,stagedUploadPath:l},...r&&{version:r}})).bulkOperationRunMutation}t();t();var S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};t();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function te(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:S,session:n,variables:{id:a},version:i??p})).bulkOperation}async function re(e){let{adminSession:n,version:a,sinceDays:i=7,first:r=100}=e,l=new Date(Date.now()-i*24*60*60*1e3).toISOString().split("T")[0];return(await u({query:q,session:n,variables:{query:`created_at:>=${l}`,first:r,sortKey:"CREATED_AT"},version:a??p})).bulkOperations.nodes}t();t();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function oe(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:P,session:n,variables:{id:a},version:i??p})).bulkOperationCancel}t();t();function O(e){switch(e.status){case"RUNNING":return o`Bulk operation in progress${e.objectCount>0?m.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return o`Starting`;case"COMPLETED":return o`Bulk operation succeeded: ${m.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return o`Bulk operation failed. ${m.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return o`Bulk operation canceling...`;case"CANCELED":return o`Bulk operation canceled.`;case"EXPIRED":return o`Bulk operation expired.`;default:return o`Bulk operation status: ${e.status}`}}function le(e,n){let a=e.map(i=>o`${i.field?.join(".")??"unknown"}: ${i.message}`.value).join(`
3
+ `);A({headline:n,body:a})}function de(e){let n=O(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let a=[o`ID: ${m.cyan(e.id)}`.value,o`Status: ${m.yellow(e.status)}`.value,o`Created at: ${m.gray(String(e.createdAt))}`.value,...e.completedAt?[o`Completed at: ${m.gray(String(e.completedAt))}`.value]:[]];return{headline:o`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:o`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:a}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:n,renderType:"info"}}}var se=["COMPLETED","FAILED","CANCELED","EXPIRED"],V=1,ue=5,M=10,$=3e3,Q=300;async function me(e,n){return N({title:o`Starting bulk operation`,task:async()=>{let a=Date.now(),i=j({adminSession:e,operationId:n,pollIntervalSeconds:Q/1e3,useAdaptivePolling:!1}),r;do{let{value:l,done:d}=await i.next();if(r=l,d)return r}while(Date.now()-a<$);return r},renderOptions:{stdout:process.stderr}})}async function ke(e,n,a,i){return N({title:o`Polling bulk operation`,task:async r=>{let l=j({adminSession:e,operationId:n,pollIntervalSeconds:ue,initialPollIntervalSeconds:V,initialPollCount:M,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:d,done:k}=await l.next();if(k)return d;r(O(d))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*j({adminSession:e,operationId:n,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:r=V,initialPollCount:l=M,abortSignal:d}){let k=0;for(;;){let c=await pe(e,n);if(!c.bulkOperation)throw new Error("bulk operation not found");let f=c.bulkOperation;if(se.includes(f.status)||d?.aborted)return f;yield f,k++;let v=a;if(i&&k<=l&&(v=r),d){let w,K=new Promise(G=>{let I=()=>G();d.addEventListener("abort",I,{once:!0}),w=()=>d.removeEventListener("abort",I)});await Promise.race([F(v),K]),w?.()}else await F(v)}}async function pe(e,n){return u({query:S,session:e,variables:{id:n},version:p})}t();async function ce(e){let n=await y(e);if(!n.ok)throw new s(`Failed to download bulk operation results: ${n.statusText}`);return n.text()}function ve(e){return e.trim().split(`
4
+ `).filter(a=>a.trim().length>0).some(a=>{let i;try{i=JSON.parse(a)}catch(l){if(l instanceof SyntaxError)return!1;throw l}if(!i.data)return!1;let r=Object.values(i.data)[0];return r?.userErrors!==void 0&&r.userErrors.length>0})}t();async function fe(e){let n=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),a=await x({appContextResult:n,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:n,store:a}}async function Jn(e){let n=await E({query:e.query,queryFile:e["query-file"]}),{appContextResult:a,store:i}=await fe(e);return{query:n,appContextResult:a,store:i}}export{p as a,H as b,J as c,g as d,X as e,Y as f,E as g,Z as h,ae as i,te as j,re as k,oe as l,O as m,le as n,de as o,me as p,ke as q,ce as r,ve as s,fe as t,Jn as u};
@@ -1,4 +1,4 @@
1
- import{b as m}from"./chunk-HOSFU6UP.js";import{C as f}from"./chunk-NTRAWIEJ.js";import{r as N}from"./chunk-T6CC5WUU.js";import{Lb as c}from"./chunk-7FQFEB33.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})}}async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
1
+ import{b as m}from"./chunk-UKK5P74A.js";import{C as f}from"./chunk-6EZ7JWBK.js";import{Lb as c}from"./chunk-DONEJHDG.js";import{r as N}from"./chunk-T6CC5WUU.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})}}async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
2
2
  `,o=s.map(n=>t.map(e=>n[e]).join(",")).join(`
3
3
  `),l=`${a}${o}
4
4
  `;c(l)}else f({rows:s,columns:{pluginName:{header:"plugin",color:"red"},command:{},flagName:{header:"long flag",color:"green"},flagChar:{header:"short flag",color:"green"},flagEnv:{header:"env variable",color:"blueBright"}}})}};export{i as a};
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk-MIDYZPO4.js";import{a as c}from"./chunk-VJ6KDRZI.js";import{f as l,o as p}from"./chunk-5XDQ76DQ.js";import{k as s,q as d}from"./chunk-TUNUEOHO.js";import{b as h}from"./chunk-OXJBYKMX.js";import{v as i}from"./chunk-NTRAWIEJ.js";import{r as F}from"./chunk-T6CC5WUU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}
1
+ import{a as f}from"./chunk-VOJWKGCW.js";import{a as c}from"./chunk-QMXKGSFH.js";import{f as l,o as p}from"./chunk-PJYNAUQB.js";import{p as s,v as d}from"./chunk-D6YDSGR4.js";import{b as h}from"./chunk-H5C3QTOO.js";import{v as i}from"./chunk-6EZ7JWBK.js";import{r as F}from"./chunk-T6CC5WUU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}
2
2
 
3
3
  `}]:[],"The theme",...c(a),"was renamed to",`'${o}'`]})}var m=w(F(),1);var u,e=class extends d{async command(r,o){await v(r,o)}};u=e;e.summary="Renames an existing theme.";e.descriptionWithMarkdown=`Renames a theme in your store.
4
4
 
@@ -0,0 +1 @@
1
+ import{a as s}from"./chunk-CZXGQ53M.js";import{g as r,h,i as n}from"./chunk-D6YDSGR4.js";import{d as m}from"./chunk-WKBVT5WG.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,i="No development theme ID has been set. Please create a development theme first.",p=class extends s{constructor(e){super(e),this.context="Development",this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):i);return e}setTheme(e){h(e)}removeTheme(){n()}};export{p as a};
@@ -1,3 +1,3 @@
1
- import{a as M}from"./chunk-EKVTNWHM.js";import{a as S}from"./chunk-5BKCIDMS.js";import{A as b,B as A,D as C,E as x,Fa as V}from"./chunk-4QTEPWEJ.js";import{a as c}from"./chunk-QDVJJKLB.js";import{b as j,c as E}from"./chunk-OXJBYKMX.js";import{v as y,x as u}from"./chunk-NTRAWIEJ.js";import{d as g,f as o}from"./chunk-TPCG6DCA.js";import{Lb as s,Sb as w,Vb as h}from"./chunk-7FQFEB33.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();m();async function N(f,t){let i=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:f,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:i}))}async function J(f,t={json:!1}){let i=f.errors;if(!i||i.isEmpty()){if(await N(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}y({headline:"App configuration is valid."});return}let n=i.getErrors();if(await N(!1,n),t.json){let d=n.map(({file:p,message:a,path:r,code:e})=>({file:p,message:a,path:r,code:e}));throw s(JSON.stringify({valid:!1,issues:d},null,2)),new o}throw u({headline:"Validation errors found.",body:n.map(d=>`\u2022 ${x(d)}`).join(`
1
+ import{a as M}from"./chunk-HM5H7WBE.js";import{a as S}from"./chunk-ZAMDXIVC.js";import{A as b,B as A,D as C,E as x,Fa as V}from"./chunk-ATXODH6C.js";import{a as c}from"./chunk-J5TNYNR5.js";import{b as j,c as E}from"./chunk-H5C3QTOO.js";import{v as y,x as u}from"./chunk-6EZ7JWBK.js";import{d as g,f as o}from"./chunk-WKBVT5WG.js";import{Lb as s,Sb as w,Vb as h}from"./chunk-DONEJHDG.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();m();async function N(f,t){let i=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:f,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:i}))}async function J(f,t={json:!1}){let i=f.errors;if(!i||i.isEmpty()){if(await N(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}y({headline:"App configuration is valid."});return}let n=i.getErrors();if(await N(!1,n),t.json){let d=n.map(({file:p,message:a,path:r,code:e})=>({file:p,message:a,path:r,code:e}));throw s(JSON.stringify({valid:!1,issues:d},null,2)),new o}throw u({headline:"Validation errors found.",body:n.map(d=>`\u2022 ${x(d)}`).join(`
2
2
  `)}),new o}var v;async function _(f,t){await c.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:f,cmd_app_validate_file_count:t}))}var l=class extends M{async run(){let{flags:t}=await this.parse(v);await c.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let i;try{i=await b.load(t.path)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let n;try{n=await C(i,t.config)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let d=A(i,n.file);if(d.length>0){let a=d.map(e=>({file:e.path,message:e.message})),r=new Set(d.map(e=>e.path)).size;throw await _(a.length,r),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new o):(u({headline:"Validation errors found.",body:a.map(e=>`\u2022 ${e.message}`).join(`
3
3
  `)}),new o)}let p;try{p=(await V({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0})).app}catch(a){let r=a instanceof g?h(w(a.message)).trim():"";throw r.startsWith("Validation errors in ")&&t.json?(await _(1,1),s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o):a}return await J(p,{json:t.json}),{app:p}}};v=l;l.summary="Validate your app configuration and extensions.";l.descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";l.description=v.descriptionWithoutMarkdown();l.flags={...j,...S,...E};var X=l;export{X as a};
@@ -1,4 +1,4 @@
1
- import{o as f}from"./chunk-G4OQABDT.js";import{b as l}from"./chunk-OXJBYKMX.js";import{b as u}from"./chunk-HOSFU6UP.js";import{d as n}from"./chunk-TPCG6DCA.js";import{r as g}from"./chunk-T6CC5WUU.js";import{Lb as m}from"./chunk-7FQFEB33.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static{this.description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`."}static{this.examples=[`# search shopify.dev for a topic
1
+ import{o as f}from"./chunk-5W443CKL.js";import{b as l}from"./chunk-H5C3QTOO.js";import{b as u}from"./chunk-UKK5P74A.js";import{d as n}from"./chunk-WKBVT5WG.js";import{Lb as m}from"./chunk-DONEJHDG.js";import{r as g}from"./chunk-T6CC5WUU.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static{this.description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`."}static{this.examples=[`# search shopify.dev for a topic
2
2
  shopify doc search --query "subscribe to webhooks"
3
3
 
4
4
  # narrow the search to a specific API and version
@@ -1 +1 @@
1
- import{a as c,b as d,c as f}from"./chunk-7572RLUP.js";import{a as p}from"./chunk-EKVTNWHM.js";import{a as r}from"./chunk-5BKCIDMS.js";import{Fa as s}from"./chunk-4QTEPWEJ.js";import{b as n}from"./chunk-OXJBYKMX.js";import{r as y}from"./chunk-T6CC5WUU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};
1
+ import{a as c,b as d,c as f}from"./chunk-7UOPCYMV.js";import{a as p}from"./chunk-HM5H7WBE.js";import{a as r}from"./chunk-ZAMDXIVC.js";import{Fa as s}from"./chunk-ATXODH6C.js";import{b as n}from"./chunk-H5C3QTOO.js";import{r as y}from"./chunk-T6CC5WUU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};