shopify 5.0.0 → 5.0.2

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 (330) hide show
  1. package/dist/{analytics-Q6QDIDYT.js → analytics-NMMVOF4B.js} +1 -1
  2. package/dist/{analytics-VKKJNJ62.js → analytics-UK77WNLG.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-Q5MEFIMV.js → chunk-224UPIYS.js} +1 -1
  5. package/dist/{chunk-XBQDMGUN.js → chunk-26PWHH3B.js} +1 -1
  6. package/dist/{chunk-46MSIQ6Z.js → chunk-27NXPOAS.js} +1 -1
  7. package/dist/{chunk-SFPXYHHL.js → chunk-2A2JSAAA.js} +1 -1
  8. package/dist/{chunk-P33TONYG.js → chunk-2L6AN3QA.js} +1 -1
  9. package/dist/{chunk-43KLFFP7.js → chunk-2MT3LSMZ.js} +1 -1
  10. package/dist/{chunk-PGLWZMJU.js → chunk-2T4HDR6R.js} +1 -1
  11. package/dist/{chunk-5UWMXOHM.js → chunk-2WJOTJOD.js} +1 -1
  12. package/dist/{chunk-HIRTL45Q.js → chunk-2ZBXHCQZ.js} +1 -1
  13. package/dist/chunk-33ZE3DRQ.js +16 -0
  14. package/dist/{chunk-WFWISGLS.js → chunk-34MOWGRL.js} +1 -1
  15. package/dist/{chunk-AXC2MHHO.js → chunk-35XFNKNB.js} +1 -1
  16. package/dist/{chunk-LHKVXJPX.js → chunk-3JSKNXL7.js} +1 -1
  17. package/dist/{chunk-Q2SZCZE7.js → chunk-3KM5ZOW2.js} +1 -1
  18. package/dist/{chunk-KJQDS5HI.js → chunk-3MG4MTWQ.js} +1 -1
  19. package/dist/{chunk-MDRVCBDO.js → chunk-3MYDSQHF.js} +1 -1
  20. package/dist/{chunk-MYAIWSOO.js → chunk-3ODQKAEA.js} +1 -1
  21. package/dist/{chunk-6DXP7PQ7.js → chunk-3XRI3D44.js} +1 -1
  22. package/dist/{chunk-KGRIYAMA.js → chunk-3Z3MADXZ.js} +1 -1
  23. package/dist/{chunk-GB6E3ATN.js → chunk-4KECSZTL.js} +1 -1
  24. package/dist/{chunk-G6ZMSWEU.js → chunk-4WYKPIN3.js} +1 -1
  25. package/dist/{chunk-M3ACZWMR.js → chunk-5AEZJZNQ.js} +1 -1
  26. package/dist/chunk-5ED7SOQZ.js +20 -0
  27. package/dist/{chunk-FFHH5LOR.js → chunk-5IDJALJH.js} +1 -1
  28. package/dist/{chunk-GXORLBVN.js → chunk-62EOM3Y2.js} +1 -1
  29. package/dist/{chunk-EXFBZPZS.js → chunk-64G5TGFF.js} +1 -1
  30. package/dist/{chunk-QN3774QI.js → chunk-66TMIQMB.js} +1 -1
  31. package/dist/{chunk-L7MSPGDS.js → chunk-67L7FIB6.js} +1 -1
  32. package/dist/{chunk-7UOA4DI7.js → chunk-6ES4KRFW.js} +1 -1
  33. package/dist/{chunk-XMODGI45.js → chunk-74NRFUGQ.js} +1 -1
  34. package/dist/{chunk-YVY32DNA.js → chunk-7CCTPBCT.js} +1 -1
  35. package/dist/{chunk-2DID73ML.js → chunk-7GUMJ5E4.js} +1 -1
  36. package/dist/{chunk-IUTZIN2T.js → chunk-7NFTSBHQ.js} +1 -1
  37. package/dist/{chunk-TPSA4JN5.js → chunk-ACZNWIRY.js} +1 -1
  38. package/dist/{chunk-CCMDZX35.js → chunk-AQ6EVL73.js} +1 -1
  39. package/dist/{chunk-7WPUV7GY.js → chunk-AQKWPRZE.js} +1 -1
  40. package/dist/chunk-AUE7LM32.js +1 -0
  41. package/dist/{chunk-PIAD3F6M.js → chunk-AXL2VIWA.js} +1 -1
  42. package/dist/{chunk-CVVQQLCF.js → chunk-B2O3ANRZ.js} +1 -1
  43. package/dist/chunk-B3ZJGYZY.js +3 -0
  44. package/dist/{chunk-4SS6DXC7.js → chunk-BWN2QG6D.js} +1 -1
  45. package/dist/{chunk-6BNKBCCU.js → chunk-C3RFAKWR.js} +1 -1
  46. package/dist/{chunk-SNNZ4U2W.js → chunk-CCUQM4FX.js} +1 -1
  47. package/dist/{chunk-EITIW5OX.js → chunk-CGVROSPS.js} +1 -1
  48. package/dist/{chunk-7QUZWCJZ.js → chunk-CLUUA3HX.js} +1 -1
  49. package/dist/{chunk-X7HVAVSZ.js → chunk-CXI3RHPW.js} +1 -1
  50. package/dist/chunk-CYEEGTVZ.js +11 -0
  51. package/dist/{chunk-CZ22VZDA.js → chunk-D2KIGKBI.js} +108 -108
  52. package/dist/chunk-DBDTE3EE.js +5 -0
  53. package/dist/{chunk-YKS7MH3F.js → chunk-DLVB3237.js} +1 -1
  54. package/dist/{chunk-UZROQRLX.js → chunk-DN6X7SHW.js} +1 -1
  55. package/dist/{chunk-OGWPS55W.js → chunk-DZKFP6H2.js} +1 -1
  56. package/dist/{chunk-S67I4E7M.js → chunk-E5COIKGY.js} +1 -1
  57. package/dist/{chunk-CW2T7EOQ.js → chunk-E6RONHMT.js} +1 -1
  58. package/dist/{chunk-2CMEKSI7.js → chunk-EAZIQI2D.js} +1 -1
  59. package/dist/{chunk-FNLECT7B.js → chunk-EEY4FKAW.js} +1 -1
  60. package/dist/{chunk-YGYEM6QO.js → chunk-EKFPTBXC.js} +1 -1
  61. package/dist/{chunk-VW6QS7DO.js → chunk-ER6C5WS3.js} +1 -1
  62. package/dist/{chunk-MR2AUT7Q.js → chunk-ESFCYB46.js} +1 -1
  63. package/dist/{chunk-GRGFA26K.js → chunk-F3CK3EJJ.js} +1 -1
  64. package/dist/{chunk-M4BVLMPH.js → chunk-FEBOZ2XX.js} +1 -1
  65. package/dist/{chunk-5OMJFPQW.js → chunk-GNCVDN7U.js} +1 -1
  66. package/dist/{chunk-H4V55Y3Z.js → chunk-GQLNG537.js} +83 -83
  67. package/dist/{chunk-IEQ4UOH3.js → chunk-GVI3DWSB.js} +1 -1
  68. package/dist/{chunk-DFQ4WTET.js → chunk-GW7YIJPJ.js} +1 -1
  69. package/dist/{chunk-SFQEHDJY.js → chunk-H6GNKWYM.js} +1 -1
  70. package/dist/{chunk-5TB52UUV.js → chunk-H6GYBLVQ.js} +1 -1
  71. package/dist/chunk-HSKDFEXW.js +1 -0
  72. package/dist/{chunk-JYMDWR25.js → chunk-HTRJU4R4.js} +1 -1
  73. package/dist/{chunk-EMSF57ZB.js → chunk-HXZAY5OA.js} +1 -1
  74. package/dist/{chunk-WJSUIUBW.js → chunk-I4CEH7AK.js} +1 -1
  75. package/dist/{chunk-4ARCB6DT.js → chunk-I7PEEJVH.js} +1 -1
  76. package/dist/{chunk-CCQNP5YR.js → chunk-IHMATNOR.js} +1 -1
  77. package/dist/{chunk-N2RFDHRY.js → chunk-IHXGZW42.js} +1 -1
  78. package/dist/chunk-IJY3RJPJ.js +47 -0
  79. package/dist/{chunk-52FDK2LC.js → chunk-ISKQQXLZ.js} +1 -1
  80. package/dist/{chunk-UVRKTMF7.js → chunk-J55GQLP4.js} +1 -1
  81. package/dist/{chunk-3LVCG4JB.js → chunk-J5ERDFIC.js} +1 -1
  82. package/dist/{chunk-LWCTKI4Z.js → chunk-JLQRDFR5.js} +3 -3
  83. package/dist/{chunk-HCZG7YJ6.js → chunk-JPWRZ5SL.js} +1 -1
  84. package/dist/{chunk-BWRNXCVN.js → chunk-K7ZSPQKL.js} +1 -1
  85. package/dist/{chunk-4GCI2YCZ.js → chunk-KNWT7JLL.js} +1 -1
  86. package/dist/{chunk-U25W35TX.js → chunk-KZRLZWOU.js} +1 -1
  87. package/dist/chunk-L5TSPCSY.js +26 -0
  88. package/dist/{chunk-J6TW43TG.js → chunk-LEHBZKK3.js} +1 -1
  89. package/dist/chunk-LGXI7EGM.js +8 -0
  90. package/dist/{chunk-3A3DZVEJ.js → chunk-LHXFTFFM.js} +1 -1
  91. package/dist/{chunk-4RDFMBRG.js → chunk-LUGMXSRI.js} +1 -1
  92. package/dist/chunk-M2CWCOFU.js +11 -0
  93. package/dist/{chunk-2VSNFOKD.js → chunk-M5VIFG2V.js} +1 -1
  94. package/dist/{chunk-IWEKM5Y3.js → chunk-MADINS4Z.js} +1 -1
  95. package/dist/{chunk-VMMUJN4T.js → chunk-MEYVUHQH.js} +1 -1
  96. package/dist/{chunk-PEVIRAMR.js → chunk-MGHPF7HU.js} +1 -1
  97. package/dist/{chunk-ZT5WFUKJ.js → chunk-MHR5OHT5.js} +1 -1
  98. package/dist/{chunk-5NEGOQT6.js → chunk-MXEXP3HT.js} +1 -1
  99. package/dist/{chunk-IQVRP7CT.js → chunk-N57Y7THE.js} +1 -1
  100. package/dist/{chunk-FWB3GLMW.js → chunk-NVKJ7ZLP.js} +1 -1
  101. package/dist/{chunk-GQNOVEKP.js → chunk-NXAEBGMO.js} +1 -1
  102. package/dist/{chunk-PYIICTLX.js → chunk-OJULL7HT.js} +1 -1
  103. package/dist/{chunk-SL3VBI62.js → chunk-OMPQ7REW.js} +1 -1
  104. package/dist/{chunk-NK2MGR6A.js → chunk-OR4IJ4BQ.js} +1 -1
  105. package/dist/{chunk-CIK5BF7V.js → chunk-P2RMFHQP.js} +1 -1
  106. package/dist/{chunk-R7EMV77H.js → chunk-P4VZYOKO.js} +2 -2
  107. package/dist/{chunk-NDKSG4CC.js → chunk-PDZBKVWL.js} +1 -1
  108. package/dist/{chunk-QKVVJXWS.js → chunk-PF53E2DC.js} +1 -1
  109. package/dist/{chunk-XNNKLUTN.js → chunk-PLSS456F.js} +1 -1
  110. package/dist/{chunk-XM7YUXTF.js → chunk-PTSCGSQV.js} +2 -2
  111. package/dist/{chunk-KSDU4YOB.js → chunk-PWAT52M4.js} +1 -1
  112. package/dist/{chunk-NOH63WC6.js → chunk-Q2KWXZQB.js} +1 -1
  113. package/dist/{chunk-EGCWR5AS.js → chunk-Q4JYAUVL.js} +1 -1
  114. package/dist/{chunk-4CRBTSVP.js → chunk-Q5IC3IYY.js} +1 -1
  115. package/dist/{chunk-Z5SILNH2.js → chunk-QDCLL5OI.js} +1 -1
  116. package/dist/{chunk-VB7YQMAM.js → chunk-QEKGGTMN.js} +1 -1
  117. package/dist/{chunk-BJPDJIS4.js → chunk-QEVTBD33.js} +1 -1
  118. package/dist/{chunk-PZUGDE7N.js → chunk-QF5WKTPD.js} +1 -1
  119. package/dist/{chunk-7NSK77WG.js → chunk-QFSENE5T.js} +1 -1
  120. package/dist/{chunk-IUP7POIE.js → chunk-QQJNQNKP.js} +1 -1
  121. package/dist/{chunk-PSSYLJG4.js → chunk-QW52RPAU.js} +1 -1
  122. package/dist/{chunk-ULD7CIOY.js → chunk-R4UVIYZP.js} +1 -1
  123. package/dist/{chunk-M5TGCSUK.js → chunk-RLNIOJH3.js} +1 -1
  124. package/dist/{chunk-ZYQ2XWC5.js → chunk-RPCIFYCY.js} +1 -1
  125. package/dist/{chunk-C3KEDG33.js → chunk-RPVZ2JON.js} +1 -1
  126. package/dist/{chunk-I4OVLRQR.js → chunk-RW6G4ZPU.js} +1 -1
  127. package/dist/{chunk-4GOJQKY5.js → chunk-S4LOWCGS.js} +1 -1
  128. package/dist/{chunk-OQU3HLAE.js → chunk-S5P7KWY4.js} +1 -1
  129. package/dist/{chunk-UWMZ5CSB.js → chunk-SACNUF4I.js} +1 -1
  130. package/dist/chunk-SB27UOXX.js +1 -0
  131. package/dist/{chunk-YVVU4J5O.js → chunk-SHD4VV5V.js} +1 -1
  132. package/dist/{chunk-M7LPHCP2.js → chunk-SIL6HPMK.js} +2 -2
  133. package/dist/{chunk-AJMDF3QC.js → chunk-SK7EPN6C.js} +1 -1
  134. package/dist/{chunk-XITZIDCL.js → chunk-SLY27GDC.js} +1 -1
  135. package/dist/{chunk-C7V755IT.js → chunk-SNH4XZ6E.js} +1 -1
  136. package/dist/{chunk-POKY4RWR.js → chunk-T4XJKM6B.js} +1 -1
  137. package/dist/{chunk-7MVWDCI3.js → chunk-TAWCKJKP.js} +1 -1
  138. package/dist/{chunk-BCYTZ7LM.js → chunk-TFPW2VGN.js} +1 -1
  139. package/dist/{chunk-UOS2XLGG.js → chunk-TODZ3TJR.js} +1 -1
  140. package/dist/chunk-U2T5HPRD.js +319 -0
  141. package/dist/{chunk-XTREQ4A2.js → chunk-U6YOP562.js} +1 -1
  142. package/dist/{chunk-53BG3NLH.js → chunk-UBP3LQFY.js} +1 -1
  143. package/dist/{chunk-GFVKTWFT.js → chunk-UKWIWCOH.js} +1 -1
  144. package/dist/{chunk-GAMC2BNY.js → chunk-UPPO3BMT.js} +1 -1
  145. package/dist/{chunk-Q2XRITUG.js → chunk-URXM5A2K.js} +1 -1
  146. package/dist/chunk-USXIXANP.js +103 -0
  147. package/dist/{chunk-R2BDABJD.js → chunk-UUAKOX7E.js} +1 -1
  148. package/dist/{chunk-WGUOLSMG.js → chunk-UV5GAGAD.js} +1 -1
  149. package/dist/{chunk-AYL6KBPE.js → chunk-UXVXVI6O.js} +1 -1
  150. package/dist/{chunk-VWH3VPYI.js → chunk-UY6W2EVZ.js} +1 -1
  151. package/dist/{chunk-BVSKBX7T.js → chunk-UYELAINQ.js} +1 -1
  152. package/dist/{chunk-KDPQXURV.js → chunk-VAVXDIUX.js} +1 -1
  153. package/dist/{chunk-OX7UVDSU.js → chunk-VEUKT5EI.js} +1 -1
  154. package/dist/chunk-VGSH52JM.js +1 -0
  155. package/dist/chunk-VHZ6RL67.js +1 -0
  156. package/dist/{chunk-UK6576EO.js → chunk-VQA3X7O3.js} +1 -1
  157. package/dist/{chunk-TTEF7GTX.js → chunk-VZCMJRYV.js} +1 -1
  158. package/dist/{chunk-3G4HJO72.js → chunk-W37IFK3P.js} +1 -1
  159. package/dist/{chunk-LMQGNECW.js → chunk-W56ZGEQQ.js} +1 -1
  160. package/dist/{chunk-GCNA3HXH.js → chunk-WBVS5NBV.js} +1 -1
  161. package/dist/{chunk-XKRJKUA7.js → chunk-WCC52MR2.js} +1 -1
  162. package/dist/{chunk-LDU5T3DN.js → chunk-WESTVWWD.js} +1 -1
  163. package/dist/{chunk-24NUJTIH.js → chunk-WRZWHT6M.js} +1 -1
  164. package/dist/{chunk-4TI7U2PN.js → chunk-WSDKCQH6.js} +1 -1
  165. package/dist/{chunk-UIQL5ZF3.js → chunk-X2PFXSU4.js} +1 -1
  166. package/dist/{chunk-NB4BRW3H.js → chunk-X5NIAZA4.js} +1 -1
  167. package/dist/{chunk-RFGEM5JC.js → chunk-XBMD3FEZ.js} +1 -1
  168. package/dist/{chunk-I6FRVYGE.js → chunk-XDVPIGXE.js} +1 -1
  169. package/dist/chunk-XLIJYJ6Q.js +1 -0
  170. package/dist/chunk-XUHGWIWW.js +4 -0
  171. package/dist/{chunk-2ORRV7GH.js → chunk-XWSWXQCC.js} +1 -1
  172. package/dist/{chunk-Q66CI37F.js → chunk-Y55T4IIQ.js} +1 -1
  173. package/dist/{chunk-WMAFG2JD.js → chunk-Y5CVX5LJ.js} +1 -1
  174. package/dist/{chunk-VHUD3CBC.js → chunk-Y6J46XYF.js} +1 -1
  175. package/dist/{chunk-DJAZBPYA.js → chunk-YKMINHYY.js} +1 -1
  176. package/dist/{chunk-KKPOOIE4.js → chunk-YSWVYPWR.js} +1 -1
  177. package/dist/{chunk-D7NB7YR6.js → chunk-YV2TP44L.js} +1 -1
  178. package/dist/{chunk-7IFE4UQY.js → chunk-Z2WAW6MM.js} +1 -1
  179. package/dist/chunk-ZBL7XMJ6.js +25 -0
  180. package/dist/{chunk-YTUDXZLN.js → chunk-ZGBTO46A.js} +1 -1
  181. package/dist/{chunk-ZQDDRIBA.js → chunk-ZJOX5HW4.js} +4 -4
  182. package/dist/{chunk-MXJAH2GW.js → chunk-ZOOT3GBY.js} +1 -1
  183. package/dist/{chunk-ZAA2DXK5.js → chunk-ZRI3SSLG.js} +1 -1
  184. package/dist/cli/commands/app/build.js +1 -1
  185. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  186. package/dist/cli/commands/app/bulk/execute.js +1 -1
  187. package/dist/cli/commands/app/bulk/status.js +1 -1
  188. package/dist/cli/commands/app/config/link.js +1 -1
  189. package/dist/cli/commands/app/config/pull.js +1 -1
  190. package/dist/cli/commands/app/config/use.js +1 -1
  191. package/dist/cli/commands/app/config/validate.js +1 -1
  192. package/dist/cli/commands/app/demo/watcher.js +1 -1
  193. package/dist/cli/commands/app/deploy.js +1 -1
  194. package/dist/cli/commands/app/dev/clean.js +1 -1
  195. package/dist/cli/commands/app/dev.js +1 -1
  196. package/dist/cli/commands/app/env/pull.js +1 -1
  197. package/dist/cli/commands/app/env/show.js +1 -1
  198. package/dist/cli/commands/app/execute.js +1 -1
  199. package/dist/cli/commands/app/function/build.js +1 -1
  200. package/dist/cli/commands/app/function/info.js +1 -1
  201. package/dist/cli/commands/app/function/replay.js +1 -1
  202. package/dist/cli/commands/app/function/run.js +1 -1
  203. package/dist/cli/commands/app/function/schema.js +1 -1
  204. package/dist/cli/commands/app/function/typegen.js +1 -1
  205. package/dist/cli/commands/app/generate/extension.js +1 -1
  206. package/dist/cli/commands/app/graphiql.js +1 -1
  207. package/dist/cli/commands/app/import/channel-config.js +1 -1
  208. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  209. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  210. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  211. package/dist/cli/commands/app/import-extensions.js +1 -1
  212. package/dist/cli/commands/app/info.js +1 -1
  213. package/dist/cli/commands/app/init.js +1 -1
  214. package/dist/cli/commands/app/logs.js +1 -1
  215. package/dist/cli/commands/app/release.js +1 -1
  216. package/dist/cli/commands/app/security/check.js +1 -1
  217. package/dist/cli/commands/app/security/clean.js +1 -1
  218. package/dist/cli/commands/app/security/instructions.js +1 -1
  219. package/dist/cli/commands/app/security/record.js +1 -1
  220. package/dist/cli/commands/app/security/review.js +1 -1
  221. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  222. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  223. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  224. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  225. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  226. package/dist/cli/commands/app/versions/list.js +1 -1
  227. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  228. package/dist/cli/commands/auth/login.js +1 -1
  229. package/dist/cli/commands/auth/logout.js +1 -1
  230. package/dist/cli/commands/cache/clear.js +1 -1
  231. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  232. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  233. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  234. package/dist/cli/commands/debug/command-flags.js +1 -1
  235. package/dist/cli/commands/doc/fetch.js +1 -1
  236. package/dist/cli/commands/doc/search.js +1 -1
  237. package/dist/cli/commands/docs/generate.js +1 -1
  238. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  239. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  240. package/dist/cli/commands/help.js +1 -1
  241. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  242. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  243. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  244. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  245. package/dist/cli/commands/notifications/generate.js +1 -1
  246. package/dist/cli/commands/notifications/list.js +1 -1
  247. package/dist/cli/commands/organization/list.js +1 -1
  248. package/dist/cli/commands/search.js +1 -1
  249. package/dist/cli/commands/send-analytics.js +1 -1
  250. package/dist/cli/commands/theme/check.js +1 -1
  251. package/dist/cli/commands/theme/console.js +1 -1
  252. package/dist/cli/commands/theme/delete.js +1 -1
  253. package/dist/cli/commands/theme/dev.js +1 -1
  254. package/dist/cli/commands/theme/duplicate.js +1 -1
  255. package/dist/cli/commands/theme/info.js +1 -1
  256. package/dist/cli/commands/theme/init.js +1 -1
  257. package/dist/cli/commands/theme/language-server.js +1 -1
  258. package/dist/cli/commands/theme/list.js +1 -1
  259. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  260. package/dist/cli/commands/theme/open.js +1 -1
  261. package/dist/cli/commands/theme/package.js +1 -1
  262. package/dist/cli/commands/theme/preview.js +1 -1
  263. package/dist/cli/commands/theme/profile.js +1 -1
  264. package/dist/cli/commands/theme/publish.js +1 -1
  265. package/dist/cli/commands/theme/pull.js +1 -1
  266. package/dist/cli/commands/theme/push.js +1 -1
  267. package/dist/cli/commands/theme/rename.js +1 -1
  268. package/dist/cli/commands/theme/share.js +1 -1
  269. package/dist/cli/commands/upgrade.js +1 -1
  270. package/dist/cli/commands/version.js +1 -1
  271. package/dist/cli/help.js +1 -1
  272. package/dist/{command-json-schema-2UMKY7MY.js → command-json-schema-F5XF7XHL.js} +1 -1
  273. package/dist/command-registry.js +1 -1
  274. package/dist/{conf-store-RI3TL6I4.js → conf-store-5CBLWTOC.js} +1 -1
  275. package/dist/{custom-oclif-loader-IZCKN67O.js → custom-oclif-loader-UDVUFKMD.js} +1 -1
  276. package/dist/{deprecations-IFVUXXDB.js → deprecations-EOHPSTCS.js} +1 -1
  277. package/dist/dist-RNV3GFZ7.js +1 -0
  278. package/dist/dist-ZFKWJVNB.js +1 -0
  279. package/dist/{environments-CYMEN7NV.js → environments-4FLRZW4P.js} +1 -1
  280. package/dist/{error-IL6WQMSW.js → error-JY2ADS6S.js} +1 -1
  281. package/dist/{error-handler-74HKA23T.js → error-handler-4GCXKC6I.js} +1 -1
  282. package/dist/{fs-AINFLJ2E.js → fs-XS5YF34R.js} +1 -1
  283. package/dist/hooks/did-you-mean.js +1 -1
  284. package/dist/hooks/hydrogen-init.js +1 -1
  285. package/dist/hooks/postrun.js +1 -1
  286. package/dist/hooks/prerun.js +1 -1
  287. package/dist/hooks/public-metadata.js +1 -1
  288. package/dist/hooks/sensitive-metadata.js +1 -1
  289. package/dist/hooks/tunnel-provider.js +1 -1
  290. package/dist/hooks/tunnel-start.js +1 -1
  291. package/dist/index.js +12 -12
  292. package/dist/{is-global-2VLKV46Q.js → is-global-27MUENOK.js} +1 -1
  293. package/dist/{json-error-HZB5YIHV.js → json-error-S5XFS3UX.js} +1 -1
  294. package/dist/{local-KOZETREJ.js → local-OKPVB4NH.js} +1 -1
  295. package/dist/{metadata-IBPHZB7N.js → metadata-2YJBAKR7.js} +1 -1
  296. package/dist/{node-package-manager-DXSRNEDC.js → node-package-manager-B3OW3PFQ.js} +1 -1
  297. package/dist/{notifications-system-XA3EBOGJ.js → notifications-system-BWTDYBG2.js} +1 -1
  298. package/dist/{os-X73O7BAB.js → os-F6QKJCFW.js} +1 -1
  299. package/dist/{output-3OYXK3Z5.js → output-BRIPK7UC.js} +1 -1
  300. package/dist/{system-JWYYT4PM.js → system-466QKFDI.js} +1 -1
  301. package/dist/tsconfig.tsbuildinfo +1 -1
  302. package/dist/{ui-PCG5D6RZ.js → ui-VJTNGCS6.js} +1 -1
  303. package/dist/{upgrade-7U2TUNC4.js → upgrade-VHVJLXKX.js} +1 -1
  304. package/dist/{version-7DGU2KYH.js → version-FETZRLZO.js} +1 -1
  305. package/dist/version-T4XXTJMB.js +1 -0
  306. package/dist/{workerd-MQZ3NKJI.js → workerd-32DMKLMN.js} +1 -1
  307. package/oclif.manifest.json +6 -3
  308. package/package.json +7 -7
  309. package/dist/chunk-3C6VLJ5D.js +0 -319
  310. package/dist/chunk-4C2DAX5T.js +0 -1
  311. package/dist/chunk-7LAKWAKX.js +0 -25
  312. package/dist/chunk-7RPFJZLP.js +0 -1
  313. package/dist/chunk-CEIJKJOF.js +0 -11
  314. package/dist/chunk-DNMXVMJM.js +0 -47
  315. package/dist/chunk-FDXHQZTO.js +0 -26
  316. package/dist/chunk-JDR6UVZA.js +0 -8
  317. package/dist/chunk-JEA3C7ON.js +0 -3
  318. package/dist/chunk-JOJV5E2K.js +0 -1
  319. package/dist/chunk-LVLAOBJM.js +0 -103
  320. package/dist/chunk-OQ5CLM2H.js +0 -4
  321. package/dist/chunk-OVWUGAEU.js +0 -11
  322. package/dist/chunk-PMHP57MH.js +0 -20
  323. package/dist/chunk-RVQV6G5M.js +0 -1
  324. package/dist/chunk-T2IUXXCT.js +0 -1
  325. package/dist/chunk-WDFCOZAY.js +0 -16
  326. package/dist/chunk-X2H6I2WW.js +0 -5
  327. package/dist/chunk-ZGV3HNEV.js +0 -1
  328. package/dist/dist-4H2B7BMN.js +0 -1
  329. package/dist/dist-QNWOGQN3.js +0 -1
  330. package/dist/version-SXQTRBXB.js +0 -1
@@ -0,0 +1,5 @@
1
+ import{a as d,d as M,e as b,f as U}from"./chunk-CLUUA3HX.js";import{a as B,b as E,c as T,f as L,j as $,k as R,m as N,t as j}from"./chunk-DZKFP6H2.js";import{a as _}from"./chunk-VHZ6RL67.js";import{a as q}from"./chunk-NVKJ7ZLP.js";import{fa as P}from"./chunk-33ZE3DRQ.js";import{S as O,u as I}from"./chunk-GQLNG537.js";import{b as v,c as x}from"./chunk-3KM5ZOW2.js";import{A,C as g,H as F,z as S}from"./chunk-D2KIGKBI.js";import{Db as D,ba as h,ga as k,qb as p,sb as l,wb as C}from"./chunk-JLQRDFR5.js";import{i as u}from"./chunk-B4OMIONW.js";import{b as Y}from"./chunk-YTUUU33R.js";import{e as K,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function V(t){let{storeFqdn:o,operationId:e,remoteApp:n}=t,{adminSession:r,version:i}=await G(o,n),a=await $({adminSession:r,operationId:e,version:i});return{store:o,apiVersion:i,operationId:e,operation:a??null}}async function z(t){let{storeFqdn:o,remoteApp:e}=t,{adminSession:n,version:r}=await G(o,e),i=await R({adminSession:n,version:r});return{store:o,apiVersion:r,operations:i}}async function G(t,o){let e=await P(o),n=await O(t,o.apiKey,e),r=await L({adminSession:n,minimumDefaultVersion:B});return{adminSession:n,version:r}}s();function H(t,o){if(o==="json"){C(d.encode({...M(t),..."operation"in t?{operationGid:t.operationId,operation:t.operation?b(t.operation):null}:{operations:t.operations.map(b),pageInfo:{hasNextPage:t.operations.length<100?!1:null}}}));return}if("operation"in t){t.operation?W(t.operation):g({headline:"Bulk operation not found.",body:l`ID: ${p.yellow(t.operationId)}`.value});return}let e=t.operations.map(n=>({id:T(n.id),status:X(n.status),count:Z(n.objectCount),dateCreated:h(new Date(String(n.createdAt))),dateFinished:n.completedAt?h(new Date(String(n.completedAt))):"",results:tt(n.url??n.partialDataUrl)}));D(),e.length===0?S({body:"No bulk operations found in the last 7 days."}):F({rows:e,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),D()}function W(t){let{id:o,status:e,createdAt:n,completedAt:r,url:i,partialDataUrl:a}=t,c=N(t).value,J=Q(n,r),m=l`ID: ${p.yellow(o)}\n${J}`.value;if(e==="COMPLETED"){let f=i?p.link("Download results",i):"";A({headline:c,body:l`${m}\n${f}`.value})}else if(e==="FAILED"){let f=a?p.link("Download partial results",a):"";g({headline:c,body:l`${m}\n${f}`.value})}else S({headline:c,body:m})}function Q(t,o){let e=new Date;return o?`Finished ${k(new Date(String(o)),e)}`:`Started ${k(new Date(String(t)),e)}`}function X(t){return t==="COMPLETED"?u.green(t):t==="FAILED"?u.red(t):u.dim(t)}function Z(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)}function tt(t){return t?l`${p.link("download",t)}`.value:""}var w=K(Y(),1);var y=class t extends _{static summary="Check the status of bulk operations.";static descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
2
+
3
+ Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).
4
+
5
+ Use [\`bulk execute\`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) to start a new bulk operation.`;static description=this.descriptionForHelp();static flags={...v,...x,...q,id:w.Flags.string({description:"The bulk operation ID (numeric ID or full GID). If not provided, lists all bulk operations belonging to this app on this store in the last 7 days.",env:"SHOPIFY_FLAG_ID"}),store:w.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async o=>I(o)})};static get jsonOutputSchema(){return d}async run(){let{flags:o}=await this.parse(t),{appContextResult:e,store:n}=await j(o),r=o.json?"json":"text";U(o.id?"Checking bulk operation status.":"Listing bulk operations.",{organization:e.organization,remoteApp:e.remoteApp,storeFqdn:n.shopDomain},r);let i={storeFqdn:n.shopDomain,remoteApp:e.remoteApp},a=o.id?await V({...i,operationId:E(o.id)}):await z(i);return H(a,r),{app:e.app}}};export{y as a};
@@ -1,4 +1,4 @@
1
- import{c as r,d as c,e as v,f,g as y}from"./chunk-YVVU4J5O.js";import{p as s,q as p,v as u}from"./chunk-DJAZBPYA.js";import{ua as i}from"./chunk-H4V55Y3Z.js";import{b as a,c as d}from"./chunk-Q2SZCZE7.js";import{wb as l}from"./chunk-LWCTKI4Z.js";import{b}from"./chunk-YTUUU33R.js";import{e as _,g as m}from"./chunk-VKWPEFWQ.js";m();var t=_(b(),1);var h=class extends u{static get jsonOutputSchema(){return r}static summary="Uploads your local theme files to the connected store, overwriting the remote version if specified.";static usage=["theme push","theme push --unpublished --json"];static descriptionWithMarkdown=`Uploads your local theme files to Shopify, overwriting the remote version if specified.
1
+ import{c as r,d as c,e as v,f,g as y}from"./chunk-SHD4VV5V.js";import{p as s,q as p,v as u}from"./chunk-YKMINHYY.js";import{ua as i}from"./chunk-GQLNG537.js";import{b as a,c as d}from"./chunk-3KM5ZOW2.js";import{wb as l}from"./chunk-JLQRDFR5.js";import{b}from"./chunk-YTUUU33R.js";import{e as _,g as m}from"./chunk-VKWPEFWQ.js";m();var t=_(b(),1);var h=class extends u{static get jsonOutputSchema(){return r}static summary="Uploads your local theme files to the connected store, overwriting the remote version if specified.";static usage=["theme push","theme push --unpublished --json"];static descriptionWithMarkdown=`Uploads your local theme files to Shopify, overwriting the remote version if specified.
2
2
 
3
3
  If no theme is specified, then you're prompted to select the theme to overwrite from the list of the themes in your store.
4
4
 
@@ -1,2 +1,2 @@
1
- import{b as p,d as c,e as _,f as q}from"./chunk-7QUZWCJZ.js";import{a as T}from"./chunk-RVQV6G5M.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-OGWPS55W.js";import{a as R}from"./chunk-ZGV3HNEV.js";import{a as x}from"./chunk-FWB3GLMW.js";import{u as m}from"./chunk-H4V55Y3Z.js";import{b as S,c as A}from"./chunk-Q2SZCZE7.js";import{A as f,B as k,C as O,z as d}from"./chunk-CZ22VZDA.js";import{h}from"./chunk-2VSNFOKD.js";import{qb as b,sb as g,wb as I}from"./chunk-LWCTKI4Z.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
1
+ import{b as p,d as c,e as _,f as q}from"./chunk-CLUUA3HX.js";import{a as T}from"./chunk-AUE7LM32.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-DZKFP6H2.js";import{a as R}from"./chunk-VHZ6RL67.js";import{a as x}from"./chunk-NVKJ7ZLP.js";import{u as m}from"./chunk-GQLNG537.js";import{b as S,c as A}from"./chunk-3KM5ZOW2.js";import{A as f,B as k,C as O,z as d}from"./chunk-D2KIGKBI.js";import{h}from"./chunk-M5VIFG2V.js";import{qb as b,sb as g,wb as I}from"./chunk-JLQRDFR5.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
2
  `,{command:`shopify app bulk status --id=${E(t.id)}`}]:r.body,s={headline:r.headline,...n&&{body:n},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":f(s);break;case"warning":k(s);break;case"info":d(s);break}}else O({headline:"Bulk operation not found or could not be canceled.",body:g`ID: ${b.yellow(e)}`.value})}var u=L(N(),1);var l=class o extends R{static summary="Cancel a bulk operation.";static descriptionWithMarkdown="Cancels a running bulk operation by ID.";static description=this.descriptionForHelp();static flags={...S,...A,...x,id:u.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:u.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>m(e)})};static get jsonOutputSchema(){return p}async run(){let{flags:e}=await this.parse(o),{appContextResult:a,store:t}=await D(e),r=e.json?"json":"text",n=B(e.id);q("Canceling bulk operation.",{organization:a.organization,remoteApp:a.remoteApp,storeFqdn:t.shopDomain,operationId:n},r);let s=await j({storeFqdn:t.shopDomain,operationId:n,remoteApp:a.remoteApp});return G(s,n,r),{app:a.app}}};export{l as a};
@@ -1,4 +1,4 @@
1
- import{a as x}from"./chunk-UVRKTMF7.js";import{Ma as D}from"./chunk-3C6VLJ5D.js";import{b as u,d as B}from"./chunk-AJMDF3QC.js";import{b as W,j as y}from"./chunk-H4V55Y3Z.js";import{C as _,J as N,U as F}from"./chunk-CZ22VZDA.js";import{h as s,k as C}from"./chunk-2VSNFOKD.js";import{Sa as A,la as T,qb as m,sb as o}from"./chunk-LWCTKI4Z.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 A(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}
1
+ import{a as x}from"./chunk-J55GQLP4.js";import{Ma as D}from"./chunk-U2T5HPRD.js";import{b as u,d as B}from"./chunk-SK7EPN6C.js";import{b as W,j as y}from"./chunk-GQLNG537.js";import{C as _,J as N,U as F}from"./chunk-D2KIGKBI.js";import{h as s,k as C}from"./chunk-M5VIFG2V.js";import{Sa as A,la as T,qb as m,sb as o}from"./chunk-JLQRDFR5.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 A(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
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
3
  `);_({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
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(Array.isArray(i.errors)&&i.errors.length>0)return!0;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{a as F}from"./chunk-UVRKTMF7.js";import{a as D}from"./chunk-ZGV3HNEV.js";import{a as y}from"./chunk-FWB3GLMW.js";import{Ma as S}from"./chunk-3C6VLJ5D.js";import{D as f,u}from"./chunk-H4V55Y3Z.js";import{b as g,c as C}from"./chunk-Q2SZCZE7.js";import{A as v}from"./chunk-CZ22VZDA.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{h as c}from"./chunk-2VSNFOKD.js";import{wb as w}from"./chunk-LWCTKI4Z.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as j}from"./chunk-YTUUU33R.js";import{e as I,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function x(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,i=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id}),r=i?.devSessionDelete?.userErrors;if(!Array.isArray(r)||r.some(a=>typeof a?.message!="string")){let a=new c("Failed to stop the dev preview: the server returned an invalid response.");throw a.details={data:i},a}if(r.length){let a=r.map(b=>b.message).join(`
1
+ import{a as F}from"./chunk-J55GQLP4.js";import{a as D}from"./chunk-VHZ6RL67.js";import{a as y}from"./chunk-NVKJ7ZLP.js";import{Ma as S}from"./chunk-U2T5HPRD.js";import{D as f,u}from"./chunk-GQLNG537.js";import{b as g,c as C}from"./chunk-3KM5ZOW2.js";import{A as v}from"./chunk-D2KIGKBI.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{h as c}from"./chunk-M5VIFG2V.js";import{wb as w}from"./chunk-JLQRDFR5.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as j}from"./chunk-YTUUU33R.js";import{e as I,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function x(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,i=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id}),r=i?.devSessionDelete?.userErrors;if(!Array.isArray(r)||r.some(a=>typeof a?.message!="string")){let a=new c("Failed to stop the dev preview: the server returned an invalid response.");throw a.details={data:i},a}if(r.length){let a=r.map(b=>b.message).join(`
2
2
  `),l=new c(`Failed to stop the dev preview: ${a}`);throw l.details={userErrors:r},l}return{status:"success",app:{name:o.title,clientId:o.apiKey},storeHostname:t.store.shopDomain}}s();var A=n.object({name:n.string(),clientId:n.string().min(1)}).strict(),p=h({name:"AppDevCleanResult",schema:n.object({status:n.literal("success"),app:A,storeDomain:n.string().nullable().describe("The canonical *.myshopify.com hostname, or null when unknown.")}).strict(),definitions:{AppDevCleanApp:A}});s();function R(t,e){if(e==="json"){let o={status:t.status,app:t.app,storeDomain:f(t.storeHostname)?t.storeHostname:null};w(p.encode(o));return}v({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.storeHostname} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var m=I(j(),1);var d=class t extends D{static summary="Cleans up the dev preview from the selected store.";static descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
3
 
4
4
  It restores the app's active version to the selected development store.
@@ -1 +1 @@
1
- import{b as u}from"./chunk-ZQDDRIBA.js";import{a as i}from"./chunk-4C2DAX5T.js";import{b as a,c}from"./chunk-Q2SZCZE7.js";import{a as p}from"./chunk-BN7ZXAZJ.js";import{wb as m}from"./chunk-LWCTKI4Z.js";import{b as r}from"./chunk-FZCGRIOM.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var o=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(e,s){m(s==="json"?o.encode(e):e.version)}var n=class e extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static description=this.descriptionForHelp();static flags={...a,...c};static get jsonOutputSchema(){return o}async run(){let{flags:s}=await this.parse(e),v=await f();l(v,s.json?"json":"text")}};export{n as a};
1
+ import{b as u}from"./chunk-ZJOX5HW4.js";import{a as i}from"./chunk-HSKDFEXW.js";import{b as a,c}from"./chunk-3KM5ZOW2.js";import{a as p}from"./chunk-BN7ZXAZJ.js";import{wb as m}from"./chunk-JLQRDFR5.js";import{b as r}from"./chunk-FZCGRIOM.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var o=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(e,s){m(s==="json"?o.encode(e):e.version)}var n=class e extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static description=this.descriptionForHelp();static flags={...a,...c};static get jsonOutputSchema(){return o}async run(){let{flags:s}=await this.parse(e),v=await f();l(v,s.json?"json":"text")}};export{n as a};
@@ -1 +1 @@
1
- import{b as p,c as T,f as J}from"./chunk-3C6VLJ5D.js";import{B as m,Q as C,T as S}from"./chunk-CZ22VZDA.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{i as F}from"./chunk-2VSNFOKD.js";import{Cb as P,Sa as v,ma as x,wb as W}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{c as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var j=()=>o.unknown().refine(e=>e!==void 0,"The native value must be present."),E=g({name:"FunctionRunResult",schema:o.object({name:o.string(),size:o.number().int().nonnegative().describe("Module size in kilobytes, as reported by Function runner."),memory_usage:o.number().int().nonnegative().describe("Linear memory usage in kilobytes, as reported by Function runner."),instructions:o.number().int().nonnegative(),logs:o.string(),input:j().describe("Native Function input; query keys and values are preserved."),output:j().describe("Native Function output, including the runner-specific invalid-output representation."),success:o.boolean().describe("False for a completed Function execution that failed; the command exits nonzero.")}).passthrough().describe("The native JSON object produced by Function runner 7.x and 9.x. Extra upstream fields are preserved.")});s();import{Writable as _}from"stream";async function $(e){if(e.features.includes("function")&&e.isJavaScript){let t=await J(e);return p(t.functionRunner)}return p()}function q(e){return e.configuration.build?.path?w(e.directory,e.configuration.build.path):e.outputPath}var l="The profile won't contain names for your function.",R="JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile.",z="The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set wasm_opt = false under [extensions.build] in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function.";async function B(e,t){try{if(!await v(t))return;let r=x(t);if(!WebAssembly.validate(r))return;let i=new WebAssembly.Module(r);return WebAssembly.Module.customSections(i,"name").length>0?void 0:e.isJavaScript?"javascript":"wasm"}catch{return}}function O(e){e==="javascript"?m({headline:l,body:R}):m({headline:l,body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}async function te(e){let{command:t,args:r,processOptions:i,warningType:a}=await k(e);return a&&O(a),S(t,r,{...i,stdout:e.stdout??"inherit",stderr:e.stderr??"inherit"})}async function k(e){let t=await $(e.functionExtension);await T(t);let r=q(e.functionExtension);return{command:t.path,args:["-f",r,...M(e)],processOptions:{cwd:e.functionExtension.directory,stdin:e.stdin,input:e.input},warningType:e.profile?await B(e.functionExtension,r):void 0}}function M(e){let t=[];return e.inputPath&&t.push("--input",e.inputPath),e.export&&t.push("--export",e.export),e.json&&t.push("--json"),e.profile&&t.push("--profile"),e.schemaPath&&e.queryPath&&(t.push("--schema-path",e.schemaPath),t.push("--query-path",e.queryPath)),t}async function ne(e){let t=e.json??!0,{command:r,args:i,processOptions:a,warningType:u}=await k({...e,json:t});!t&&u&&O(u);let h=u?[`${l} ${u==="javascript"?R:z}`]:[],f=[],y=d=>new _({write(A,I,N){f.push({stream:d,data:A}),N()}}),n=await C(r,i,{...a,stripFinalNewline:t,...t?{}:{stdout:y("stdout"),stderr:y("stderr")}});if(!t)return n.exitCode!==0?{state:"failed",message:`Function runner failed with exit code ${n.exitCode}.`,command:r,args:i,exitCode:n.exitCode,stderr:n.stderr,outputChunks:f}:{state:"completed-text",outputChunks:f};let b;try{b=JSON.parse(n.stdout)}catch(d){if(!(d instanceof SyntaxError))throw d;return{state:"failed",message:n.exitCode===0?"Function runner returned invalid JSON.":`Function runner failed with exit code ${n.exitCode}.`,command:r,args:i,exitCode:n.exitCode,stderr:n.stderr}}let c=E.schema.safeParse(b);return!c.success||n.exitCode!==0&&c.data.success?{state:"failed",message:c.success?`Function runner failed with exit code ${n.exitCode}.`:"Function runner returned an invalid result.",command:r,args:i,exitCode:n.exitCode,stderr:n.stderr}:{state:"completed",resultJson:n.stdout.trim(),exitCode:n.exitCode||+!c.data.success,diagnostics:n.stderr.trim()?[...h,n.stderr.trim()]:h}}s();function ae(e){if(e.state==="completed-text"||e.state==="failed"){for(let{stream:r,data:i}of e.outputChunks??[])process[r].write(i);if(e.state==="completed-text")return;let t=new F(e.message,e.command,e.args);throw t.details={exitCode:e.exitCode,stderr:e.stderr},t}for(let t of e.diagnostics)P(t);W(e.resultJson),e.exitCode!==0&&(process.exitCode=e.exitCode)}export{E as a,te as b,ne as c,ae as d};
1
+ import{b as p,c as T,f as J}from"./chunk-U2T5HPRD.js";import{B as m,Q as C,T as S}from"./chunk-D2KIGKBI.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{i as F}from"./chunk-M5VIFG2V.js";import{Cb as P,Sa as v,ma as x,wb as W}from"./chunk-JLQRDFR5.js";import{b as o}from"./chunk-FZCGRIOM.js";import{c as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var j=()=>o.unknown().refine(e=>e!==void 0,"The native value must be present."),E=g({name:"FunctionRunResult",schema:o.object({name:o.string(),size:o.number().int().nonnegative().describe("Module size in kilobytes, as reported by Function runner."),memory_usage:o.number().int().nonnegative().describe("Linear memory usage in kilobytes, as reported by Function runner."),instructions:o.number().int().nonnegative(),logs:o.string(),input:j().describe("Native Function input; query keys and values are preserved."),output:j().describe("Native Function output, including the runner-specific invalid-output representation."),success:o.boolean().describe("False for a completed Function execution that failed; the command exits nonzero.")}).passthrough().describe("The native JSON object produced by Function runner 7.x and 9.x. Extra upstream fields are preserved.")});s();import{Writable as _}from"stream";async function $(e){if(e.features.includes("function")&&e.isJavaScript){let t=await J(e);return p(t.functionRunner)}return p()}function q(e){return e.configuration.build?.path?w(e.directory,e.configuration.build.path):e.outputPath}var l="The profile won't contain names for your function.",R="JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile.",z="The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set wasm_opt = false under [extensions.build] in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function.";async function B(e,t){try{if(!await v(t))return;let r=x(t);if(!WebAssembly.validate(r))return;let i=new WebAssembly.Module(r);return WebAssembly.Module.customSections(i,"name").length>0?void 0:e.isJavaScript?"javascript":"wasm"}catch{return}}function O(e){e==="javascript"?m({headline:l,body:R}):m({headline:l,body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}async function te(e){let{command:t,args:r,processOptions:i,warningType:a}=await k(e);return a&&O(a),S(t,r,{...i,stdout:e.stdout??"inherit",stderr:e.stderr??"inherit"})}async function k(e){let t=await $(e.functionExtension);await T(t);let r=q(e.functionExtension);return{command:t.path,args:["-f",r,...M(e)],processOptions:{cwd:e.functionExtension.directory,stdin:e.stdin,input:e.input},warningType:e.profile?await B(e.functionExtension,r):void 0}}function M(e){let t=[];return e.inputPath&&t.push("--input",e.inputPath),e.export&&t.push("--export",e.export),e.json&&t.push("--json"),e.profile&&t.push("--profile"),e.schemaPath&&e.queryPath&&(t.push("--schema-path",e.schemaPath),t.push("--query-path",e.queryPath)),t}async function ne(e){let t=e.json??!0,{command:r,args:i,processOptions:a,warningType:u}=await k({...e,json:t});!t&&u&&O(u);let h=u?[`${l} ${u==="javascript"?R:z}`]:[],f=[],y=d=>new _({write(A,I,N){f.push({stream:d,data:A}),N()}}),n=await C(r,i,{...a,stripFinalNewline:t,...t?{}:{stdout:y("stdout"),stderr:y("stderr")}});if(!t)return n.exitCode!==0?{state:"failed",message:`Function runner failed with exit code ${n.exitCode}.`,command:r,args:i,exitCode:n.exitCode,stderr:n.stderr,outputChunks:f}:{state:"completed-text",outputChunks:f};let b;try{b=JSON.parse(n.stdout)}catch(d){if(!(d instanceof SyntaxError))throw d;return{state:"failed",message:n.exitCode===0?"Function runner returned invalid JSON.":`Function runner failed with exit code ${n.exitCode}.`,command:r,args:i,exitCode:n.exitCode,stderr:n.stderr}}let c=E.schema.safeParse(b);return!c.success||n.exitCode!==0&&c.data.success?{state:"failed",message:c.success?`Function runner failed with exit code ${n.exitCode}.`:"Function runner returned an invalid result.",command:r,args:i,exitCode:n.exitCode,stderr:n.stderr}:{state:"completed",resultJson:n.stdout.trim(),exitCode:n.exitCode||+!c.data.success,diagnostics:n.stderr.trim()?[...h,n.stderr.trim()]:h}}s();function ae(e){if(e.state==="completed-text"||e.state==="failed"){for(let{stream:r,data:i}of e.outputChunks??[])process[r].write(i);if(e.state==="completed-text")return;let t=new F(e.message,e.command,e.args);throw t.details={exitCode:e.exitCode,stderr:e.stderr},t}for(let t of e.diagnostics)P(t);W(e.resultJson),e.exitCode!==0&&(process.exitCode=e.exitCode)}export{E as a,te as b,ne as c,ae as d};
@@ -1 +1 @@
1
- import{Na as r}from"./chunk-3C6VLJ5D.js";import{a}from"./chunk-IQVRP7CT.js";import{p as i}from"./chunk-IWTNUJGY.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
1
+ import{Na as r}from"./chunk-U2T5HPRD.js";import{a}from"./chunk-N57Y7THE.js";import{p as i}from"./chunk-IWTNUJGY.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
@@ -1 +1 @@
1
- import{b as y,c as S,f as C,g as B}from"./chunk-4GOJQKY5.js";import{a as x}from"./chunk-7RPFJZLP.js";import{a as b}from"./chunk-FWB3GLMW.js";import{Na as w,q as g}from"./chunk-3C6VLJ5D.js";import{b as h,c as F}from"./chunk-Q2SZCZE7.js";import{A as d,y as l}from"./chunk-CZ22VZDA.js";import{c as p}from"./chunk-J6TW43TG.js";import{a}from"./chunk-BN7ZXAZJ.js";import{wb as f}from"./chunk-LWCTKI4Z.js";import{b as s,h as m}from"./chunk-FZCGRIOM.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var j=S.extend({wasmPath:y.nullable().describe("The built Wasm file, or null when the build produced no file.")}).strict(),e=a({name:"FunctionBuildResult",schema:s.object({status:s.literal("success"),function:j}).strict(),definitions:{FunctionBuild:j}});o();function A(n,t){t?f(e.encode(n)):d({headline:"Function built successfully."})}var r=class n extends x{static get jsonOutputSchema(){return e}static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...h,...b,...C,...F};async run(){let{flags:t}=await this.parse(n),{app:i}=await w({directory:t.path,userProvidedConfigName:t.config}),u=await B(i,t.path),c=async(J,O)=>{let W=await g(u,{app:i,stdout:J,stderr:O,useTasks:!0,environment:"production"});A(W,t.json)};return t.json?await m({outputMode:"json",sink:p},()=>l({processes:[{prefix:u.localIdentifier,action:c}],showTimestamps:!1})):await c(process.stdout,process.stderr),{app:i}}};export{r as a};
1
+ import{b as y,c as S,f as C,g as B}from"./chunk-S4LOWCGS.js";import{a as x}from"./chunk-VGSH52JM.js";import{a as b}from"./chunk-NVKJ7ZLP.js";import{Na as w,q as g}from"./chunk-U2T5HPRD.js";import{b as h,c as F}from"./chunk-3KM5ZOW2.js";import{A as d,y as l}from"./chunk-D2KIGKBI.js";import{c as p}from"./chunk-LEHBZKK3.js";import{a}from"./chunk-BN7ZXAZJ.js";import{wb as f}from"./chunk-JLQRDFR5.js";import{b as s,h as m}from"./chunk-FZCGRIOM.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var j=S.extend({wasmPath:y.nullable().describe("The built Wasm file, or null when the build produced no file.")}).strict(),e=a({name:"FunctionBuildResult",schema:s.object({status:s.literal("success"),function:j}).strict(),definitions:{FunctionBuild:j}});o();function A(n,t){t?f(e.encode(n)):d({headline:"Function built successfully."})}var r=class n extends x{static get jsonOutputSchema(){return e}static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...h,...b,...C,...F};async run(){let{flags:t}=await this.parse(n),{app:i}=await w({directory:t.path,userProvidedConfigName:t.config}),u=await B(i,t.path),c=async(J,O)=>{let W=await g(u,{app:i,stdout:J,stderr:O,useTasks:!0,environment:"production"});A(W,t.json)};return t.json?await m({outputMode:"json",sink:p},()=>l({processes:[{prefix:u.localIdentifier,action:c}],showTimestamps:!1})):await c(process.stdout,process.stderr),{app:i}}};export{r as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-7MVWDCI3.js";import{b as e}from"./chunk-ZQDDRIBA.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static description="View the UI kit components prompts";static hidden=!0;async run(){await i()}};export{t as a};
1
+ import{a as i}from"./chunk-TAWCKJKP.js";import{b as e}from"./chunk-ZJOX5HW4.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static description="View the UI kit components prompts";static hidden=!0;async run(){await i()}};export{t as a};
@@ -1 +1 @@
1
- import{c as i,h as r,o as s}from"./chunk-IWTNUJGY.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as l,readFileSync as u}from"fs";import{fileURLToPath as g,pathToFileURL as p}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(g(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function f(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=f(n),e=i(d,o);return l(e)?d:y(t)}async function j(n,t){let o=f(n),e=w(n,t);return(await import(p(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-QNWOGQN3.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-YEZOHXF3.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-PJHT4MKY.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-4H2B7BMN.js");return o[n]}}export{D as a};
1
+ import{c as i,h as r,o as s}from"./chunk-IWTNUJGY.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as l,readFileSync as u}from"fs";import{fileURLToPath as g,pathToFileURL as p}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(g(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function f(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=f(n),e=i(d,o);return l(e)?d:y(t)}async function j(n,t){let o=f(n),e=w(n,t);return(await import(p(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-ZFKWJVNB.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-YEZOHXF3.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-PJHT4MKY.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-RNV3GFZ7.js");return o[n]}}export{D as a};
@@ -1 +1 @@
1
- import{g as i,h as t}from"./chunk-2VSNFOKD.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var o=e=>new a(e),s=e=>new u(e),a=class{value;constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},u=class{error;constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof i)throw this.error;if(this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
1
+ import{g as i,h as t}from"./chunk-M5VIFG2V.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var o=e=>new a(e),s=e=>new u(e),a=class{value;constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},u=class{error;constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof i)throw this.error;if(this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
@@ -1,4 +1,4 @@
1
- import{a as T}from"./chunk-J3JPJCWP.js";import{a as Se}from"./chunk-VMMUJN4T.js";import{c as Te}from"./chunk-IWEKM5Y3.js";import{b as pe,c as fe,d as ue,e as ye,f as we,h as ge,i as ve,l as ke,m as Pe,o as be}from"./chunk-LVLAOBJM.js";import{a as ie}from"./chunk-BCYTZ7LM.js";import{c as ne,e as S,n as se,o as ae}from"./chunk-DNMXVMJM.js";import{c as le,d as ce,e as me}from"./chunk-PSSYLJG4.js";import{a as de}from"./chunk-EITIW5OX.js";import{a as he}from"./chunk-P33TONYG.js";import{k as b,l as re,n as g}from"./chunk-5TB52UUV.js";import{p as te,s as O,u as P,v as oe}from"./chunk-DJAZBPYA.js";import{a as x,b as ee}from"./chunk-SFQEHDJY.js";import{o as z,s as B,t as Q,u as X,w as Z}from"./chunk-Q7BOSHWX.js";import{ta as $,xa as k}from"./chunk-H4V55Y3Z.js";import{b as K,e as V}from"./chunk-Q2SZCZE7.js";import{A as N,B as A,D as q,E as U,O as J,W as j,x as M,z as W}from"./chunk-CZ22VZDA.js";import{b as H}from"./chunk-335BUVBP.js";import{d as Y,e as G}from"./chunk-X7HVAVSZ.js";import{h as w}from"./chunk-2VSNFOKD.js";import{Bb as u,qb as v,sb as E,yb as R}from"./chunk-LWCTKI4Z.js";import{i as y}from"./chunk-B4OMIONW.js";import{b as Me}from"./chunk-YTUUU33R.js";import{e as Ge,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();var Ae={workPromise:Promise.resolve()};async function Ee(e,t,n,o,s){if(n.length===0)return Ae;u("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:l}=We(n,o),a=i.length===0&&r.length===0&&l.length===0;if(k(`theme-service:theme-reconciliation:manual:${a}`),a)return u("Local and remote checksums match - no need to reconcile theme assets"),Ae;let m=await Je({filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:l},s);return{workPromise:Ue(e,t,o,m)}}function We(e,t){let n=new Set,o=[],s=[];for(let r of e){n.add(r.key);let l=t.files.get(r.key);l?r.checksum!==l.checksum&&s.push(r):o.push(r)}let i=Array.from(t.files.values()).filter(r=>!n.has(r.key));return{filesOnlyPresentOnRemote:F(o,t),filesOnlyPresentLocally:F(i,t),filesWithConflictingChecksums:F(s,t)}}function F(e,t){return t.applyIgnoreFilters(e).filter(o=>o.key.endsWith(".json"))}async function C(e,t,n,o){if(e.length===0)return;if(o){Ne(e,n,o);return}W({body:{list:{title:t,items:e.map(i=>i.key)}}}),await U({message:"Reconciliation Strategy",choices:[{label:n.remote.label,value:_},{label:n.local.label,value:Re}]})===_?n.remote.callback(e):n.local.callback(e)}function Ne(e,t,n){switch(n){case"keep-remote":t.remote.callback(e);break;case"keep-local":t.local.callback(e);break;case"abort":break}}function qe(e){let t=[{title:"The files listed below are only present locally.",files:e.filesOnlyPresentLocally},{title:"The files listed below are only present on the remote theme.",files:e.filesOnlyPresentOnRemote},{title:"The files listed below differ between the local and remote versions.",files:e.filesWithConflictingChecksums}];throw new w("Theme JSON files need reconciliation.",t.filter(n=>n.files.length>0).map(n=>`${n.title}
1
+ import{a as T}from"./chunk-J3JPJCWP.js";import{a as Se}from"./chunk-MEYVUHQH.js";import{c as Te}from"./chunk-MADINS4Z.js";import{b as pe,c as fe,d as ue,e as ye,f as we,h as ge,i as ve,l as ke,m as Pe,o as be}from"./chunk-USXIXANP.js";import{a as ie}from"./chunk-TFPW2VGN.js";import{c as ne,e as S,o as se,p as ae}from"./chunk-IJY3RJPJ.js";import{c as le,d as ce,e as me}from"./chunk-QW52RPAU.js";import{a as de}from"./chunk-CGVROSPS.js";import{a as he}from"./chunk-2L6AN3QA.js";import{k as b,l as re,n as g}from"./chunk-H6GYBLVQ.js";import{p as te,s as O,u as P,v as oe}from"./chunk-YKMINHYY.js";import{a as x,b as ee}from"./chunk-H6GNKWYM.js";import{o as z,s as B,t as Q,u as X,w as Z}from"./chunk-Q7BOSHWX.js";import{ta as $,xa as k}from"./chunk-GQLNG537.js";import{b as K,e as V}from"./chunk-3KM5ZOW2.js";import{A as N,B as A,D as q,E as U,O as J,W as j,x as M,z as W}from"./chunk-D2KIGKBI.js";import{b as H}from"./chunk-335BUVBP.js";import{d as Y,e as G}from"./chunk-CXI3RHPW.js";import{h as w}from"./chunk-M5VIFG2V.js";import{Bb as u,qb as v,sb as E,yb as R}from"./chunk-JLQRDFR5.js";import{i as y}from"./chunk-B4OMIONW.js";import{b as Me}from"./chunk-YTUUU33R.js";import{e as Ge,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();var Ae={workPromise:Promise.resolve()};async function Ee(e,t,n,o,s){if(n.length===0)return Ae;u("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:l}=We(n,o),a=i.length===0&&r.length===0&&l.length===0;if(k(`theme-service:theme-reconciliation:manual:${a}`),a)return u("Local and remote checksums match - no need to reconcile theme assets"),Ae;let m=await Je({filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:l},s);return{workPromise:Ue(e,t,o,m)}}function We(e,t){let n=new Set,o=[],s=[];for(let r of e){n.add(r.key);let l=t.files.get(r.key);l?r.checksum!==l.checksum&&s.push(r):o.push(r)}let i=Array.from(t.files.values()).filter(r=>!n.has(r.key));return{filesOnlyPresentOnRemote:F(o,t),filesOnlyPresentLocally:F(i,t),filesWithConflictingChecksums:F(s,t)}}function F(e,t){return t.applyIgnoreFilters(e).filter(o=>o.key.endsWith(".json"))}async function C(e,t,n,o){if(e.length===0)return;if(o){Ne(e,n,o);return}W({body:{list:{title:t,items:e.map(i=>i.key)}}}),await U({message:"Reconciliation Strategy",choices:[{label:n.remote.label,value:_},{label:n.local.label,value:Re}]})===_?n.remote.callback(e):n.local.callback(e)}function Ne(e,t,n){switch(n){case"keep-remote":t.remote.callback(e);break;case"keep-local":t.local.callback(e);break;case"abort":break}}function qe(e){let t=[{title:"The files listed below are only present locally.",files:e.filesOnlyPresentLocally},{title:"The files listed below are only present on the remote theme.",files:e.filesOnlyPresentOnRemote},{title:"The files listed below differ between the local and remote versions.",files:e.filesWithConflictingChecksums}];throw new w("Theme JSON files need reconciliation.",t.filter(n=>n.files.length>0).map(n=>`${n.title}
2
2
  ${n.files.map(o=>`- ${o.key}`).join(`
3
3
  `)}`).join(`
4
4
 
@@ -1 +1 @@
1
- import{a as r,b as c,c as l}from"./chunk-4CRBTSVP.js";import{b as i}from"./chunk-ZQDDRIBA.js";import{c as n}from"./chunk-Q2SZCZE7.js";import{b as h}from"./chunk-YTUUU33R.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
1
+ import{a as r,b as c,c as l}from"./chunk-Q5IC3IYY.js";import{b as i}from"./chunk-ZJOX5HW4.js";import{c as n}from"./chunk-3KM5ZOW2.js";import{b as h}from"./chunk-YTUUU33R.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};