shopify 5.0.1 → 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 (331) hide show
  1. package/dist/analytics-NMMVOF4B.js +1 -0
  2. package/dist/{analytics-RSUIYNLC.js → analytics-UK77WNLG.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-FTHVOIK7.js → chunk-224UPIYS.js} +1 -1
  5. package/dist/{chunk-YFRI75U4.js → chunk-26PWHH3B.js} +1 -1
  6. package/dist/{chunk-5TWYJQQO.js → chunk-27NXPOAS.js} +1 -1
  7. package/dist/{chunk-FK5OFLSJ.js → chunk-2A2JSAAA.js} +1 -1
  8. package/dist/{chunk-63UKZLPC.js → chunk-2L6AN3QA.js} +1 -1
  9. package/dist/{chunk-B2VE7WOX.js → chunk-2MT3LSMZ.js} +1 -1
  10. package/dist/{chunk-MZWPIFAM.js → chunk-2T4HDR6R.js} +1 -1
  11. package/dist/{chunk-37P5YOP2.js → chunk-2WJOTJOD.js} +1 -1
  12. package/dist/{chunk-FS5PZCZ3.js → chunk-2ZBXHCQZ.js} +1 -1
  13. package/dist/chunk-33ZE3DRQ.js +16 -0
  14. package/dist/{chunk-T5YVYVSW.js → chunk-34MOWGRL.js} +1 -1
  15. package/dist/{chunk-7NYCJG2U.js → chunk-35XFNKNB.js} +1 -1
  16. package/dist/{chunk-C3LL5CZA.js → chunk-3JSKNXL7.js} +1 -1
  17. package/dist/{chunk-5AWELO3D.js → chunk-3KM5ZOW2.js} +1 -1
  18. package/dist/{chunk-WQ6W725N.js → chunk-3MG4MTWQ.js} +1 -1
  19. package/dist/{chunk-ZBVHPC6W.js → chunk-3MYDSQHF.js} +1 -1
  20. package/dist/{chunk-VG2AESTZ.js → chunk-3ODQKAEA.js} +1 -1
  21. package/dist/{chunk-7U2MTK6I.js → chunk-3XRI3D44.js} +1 -1
  22. package/dist/{chunk-K3YALQBQ.js → chunk-3Z3MADXZ.js} +1 -1
  23. package/dist/chunk-43R5VGKT.js +1 -0
  24. package/dist/{chunk-CXPYOLGM.js → chunk-4KECSZTL.js} +1 -1
  25. package/dist/{chunk-4GQEXVDT.js → chunk-4WYKPIN3.js} +1 -1
  26. package/dist/{chunk-XYFYQWKW.js → chunk-5AEZJZNQ.js} +1 -1
  27. package/dist/{chunk-6JZC6UKY.js → chunk-5ED7SOQZ.js} +1 -1
  28. package/dist/{chunk-YCUEDZDA.js → chunk-5IDJALJH.js} +1 -1
  29. package/dist/{chunk-LENSEW2F.js → chunk-62EOM3Y2.js} +1 -1
  30. package/dist/{chunk-3JACWBUC.js → chunk-64G5TGFF.js} +1 -1
  31. package/dist/{chunk-LWMKZJ4M.js → chunk-66TMIQMB.js} +1 -1
  32. package/dist/{chunk-B4ISKIXN.js → chunk-67L7FIB6.js} +1 -1
  33. package/dist/{chunk-LGXNXAQA.js → chunk-6ES4KRFW.js} +1 -1
  34. package/dist/{chunk-YQ63ZFYT.js → chunk-74NRFUGQ.js} +1 -1
  35. package/dist/{chunk-2QQ7EBJD.js → chunk-7CCTPBCT.js} +1 -1
  36. package/dist/{chunk-X7DCL5LT.js → chunk-7GUMJ5E4.js} +1 -1
  37. package/dist/{chunk-OUMERKRE.js → chunk-7NFTSBHQ.js} +1 -1
  38. package/dist/{chunk-A7LBGXWG.js → chunk-ACZNWIRY.js} +1 -1
  39. package/dist/{chunk-MMUGP3WP.js → chunk-AQ6EVL73.js} +1 -1
  40. package/dist/{chunk-KNQXCU3Y.js → chunk-AQKWPRZE.js} +1 -1
  41. package/dist/chunk-AUE7LM32.js +1 -0
  42. package/dist/{chunk-H57KYDEI.js → chunk-AXL2VIWA.js} +1 -1
  43. package/dist/{chunk-V2FCZC7U.js → chunk-B2O3ANRZ.js} +1 -1
  44. package/dist/chunk-B3ZJGYZY.js +3 -0
  45. package/dist/{chunk-KVF55INC.js → chunk-BWN2QG6D.js} +1 -1
  46. package/dist/{chunk-EA5XVQJT.js → chunk-C3RFAKWR.js} +1 -1
  47. package/dist/{chunk-4IUXLUFD.js → chunk-CCUQM4FX.js} +1 -1
  48. package/dist/{chunk-2M4BKFYF.js → chunk-CGVROSPS.js} +1 -1
  49. package/dist/{chunk-6Y6A2QGK.js → chunk-CLUUA3HX.js} +1 -1
  50. package/dist/{chunk-FHNJLON5.js → chunk-CXI3RHPW.js} +1 -1
  51. package/dist/chunk-CYEEGTVZ.js +11 -0
  52. package/dist/{chunk-V654BMS7.js → chunk-D2KIGKBI.js} +2 -2
  53. package/dist/chunk-DBDTE3EE.js +5 -0
  54. package/dist/{chunk-4SDCXKYR.js → chunk-DLVB3237.js} +1 -1
  55. package/dist/{chunk-OH7BQZQ7.js → chunk-DN6X7SHW.js} +1 -1
  56. package/dist/{chunk-5XOEMYEQ.js → chunk-DZKFP6H2.js} +1 -1
  57. package/dist/{chunk-2S5NPJEJ.js → chunk-E5COIKGY.js} +1 -1
  58. package/dist/{chunk-PXFPVGWV.js → chunk-E6RONHMT.js} +1 -1
  59. package/dist/{chunk-ADVLRSSO.js → chunk-EAZIQI2D.js} +1 -1
  60. package/dist/{chunk-RFZNFTVM.js → chunk-EEY4FKAW.js} +1 -1
  61. package/dist/{chunk-E3CTHNQS.js → chunk-EKFPTBXC.js} +1 -1
  62. package/dist/{chunk-CX3ANDPI.js → chunk-ER6C5WS3.js} +1 -1
  63. package/dist/{chunk-5YUDEPEY.js → chunk-ESFCYB46.js} +1 -1
  64. package/dist/{chunk-DSKAIC7O.js → chunk-F3CK3EJJ.js} +1 -1
  65. package/dist/{chunk-AOBE6HN6.js → chunk-FEBOZ2XX.js} +1 -1
  66. package/dist/{chunk-OYGIQDME.js → chunk-GNCVDN7U.js} +1 -1
  67. package/dist/{chunk-NCPZVARH.js → chunk-GQLNG537.js} +3 -3
  68. package/dist/{chunk-HPT3UXZ5.js → chunk-GVI3DWSB.js} +1 -1
  69. package/dist/{chunk-PVASYKSJ.js → chunk-GW7YIJPJ.js} +1 -1
  70. package/dist/{chunk-KGASGUDQ.js → chunk-H6GNKWYM.js} +1 -1
  71. package/dist/{chunk-2NZ7GDDR.js → chunk-H6GYBLVQ.js} +1 -1
  72. package/dist/chunk-HSKDFEXW.js +1 -0
  73. package/dist/{chunk-REDUS6EW.js → chunk-HTRJU4R4.js} +1 -1
  74. package/dist/{chunk-BB7GAZP6.js → chunk-HXZAY5OA.js} +1 -1
  75. package/dist/{chunk-TTBNFGCW.js → chunk-I4CEH7AK.js} +1 -1
  76. package/dist/{chunk-HXNGLDMU.js → chunk-I7PEEJVH.js} +1 -1
  77. package/dist/{chunk-5YXYYQBX.js → chunk-IHMATNOR.js} +1 -1
  78. package/dist/{chunk-QGWC23HQ.js → chunk-IHXGZW42.js} +1 -1
  79. package/dist/{chunk-2RFCYZMG.js → chunk-IJY3RJPJ.js} +1 -1
  80. package/dist/{chunk-WQOPLNDH.js → chunk-ISKQQXLZ.js} +1 -1
  81. package/dist/{chunk-NMLLRFZF.js → chunk-J55GQLP4.js} +1 -1
  82. package/dist/{chunk-AIEVQSI3.js → chunk-J5ERDFIC.js} +1 -1
  83. package/dist/{chunk-RIG66DIQ.js → chunk-JLQRDFR5.js} +3 -3
  84. package/dist/{chunk-WAY723TL.js → chunk-JPWRZ5SL.js} +1 -1
  85. package/dist/{chunk-WGOSE3RL.js → chunk-K7ZSPQKL.js} +1 -1
  86. package/dist/{chunk-X4A5D3PZ.js → chunk-KNWT7JLL.js} +1 -1
  87. package/dist/{chunk-CWR3IFXD.js → chunk-KZRLZWOU.js} +1 -1
  88. package/dist/chunk-L5TSPCSY.js +26 -0
  89. package/dist/{chunk-F3OM2YO6.js → chunk-LEHBZKK3.js} +1 -1
  90. package/dist/{chunk-HT66BOEC.js → chunk-LGXI7EGM.js} +1 -1
  91. package/dist/{chunk-GSGCSBRN.js → chunk-LHXFTFFM.js} +1 -1
  92. package/dist/{chunk-IULZYDCI.js → chunk-LUGMXSRI.js} +1 -1
  93. package/dist/chunk-M2CWCOFU.js +11 -0
  94. package/dist/{chunk-J7BTC45S.js → chunk-M5VIFG2V.js} +1 -1
  95. package/dist/{chunk-OQUXGAF2.js → chunk-MADINS4Z.js} +1 -1
  96. package/dist/{chunk-QYFU363G.js → chunk-MEYVUHQH.js} +1 -1
  97. package/dist/{chunk-GGJUPL4W.js → chunk-MGHPF7HU.js} +1 -1
  98. package/dist/{chunk-J3UXIC23.js → chunk-MHR5OHT5.js} +1 -1
  99. package/dist/{chunk-CFUZ6574.js → chunk-MXEXP3HT.js} +1 -1
  100. package/dist/{chunk-ZHHTQRWU.js → chunk-N57Y7THE.js} +1 -1
  101. package/dist/{chunk-D4LFWIFE.js → chunk-NVKJ7ZLP.js} +1 -1
  102. package/dist/{chunk-QVVQUJQL.js → chunk-NXAEBGMO.js} +1 -1
  103. package/dist/{chunk-PNZURX3S.js → chunk-OJULL7HT.js} +1 -1
  104. package/dist/{chunk-JMVK2BIB.js → chunk-OMPQ7REW.js} +1 -1
  105. package/dist/{chunk-2AW3KBTP.js → chunk-OR4IJ4BQ.js} +1 -1
  106. package/dist/{chunk-GCKGQFV7.js → chunk-P2RMFHQP.js} +1 -1
  107. package/dist/{chunk-GHU6YEXH.js → chunk-P4VZYOKO.js} +2 -2
  108. package/dist/{chunk-FNWXMCSD.js → chunk-PDZBKVWL.js} +1 -1
  109. package/dist/{chunk-VXL5FBE7.js → chunk-PF53E2DC.js} +1 -1
  110. package/dist/{chunk-ETXBF6Q7.js → chunk-PLSS456F.js} +1 -1
  111. package/dist/{chunk-EH22T4FI.js → chunk-PTSCGSQV.js} +2 -2
  112. package/dist/{chunk-P5W5RVE6.js → chunk-PWAT52M4.js} +1 -1
  113. package/dist/{chunk-UU2R56LN.js → chunk-Q2KWXZQB.js} +1 -1
  114. package/dist/{chunk-DVW7NDVD.js → chunk-Q4JYAUVL.js} +1 -1
  115. package/dist/{chunk-3G2PEYPI.js → chunk-Q5IC3IYY.js} +1 -1
  116. package/dist/{chunk-ZTZGDZCE.js → chunk-QDCLL5OI.js} +1 -1
  117. package/dist/{chunk-56GKTWFF.js → chunk-QEKGGTMN.js} +1 -1
  118. package/dist/{chunk-36TZ447N.js → chunk-QEVTBD33.js} +1 -1
  119. package/dist/{chunk-DM7BTMFP.js → chunk-QF5WKTPD.js} +1 -1
  120. package/dist/{chunk-RDXLDCMI.js → chunk-QFSENE5T.js} +1 -1
  121. package/dist/chunk-QQJNQNKP.js +6 -0
  122. package/dist/{chunk-AQ34X5B3.js → chunk-QW52RPAU.js} +1 -1
  123. package/dist/{chunk-4QZ6OBXL.js → chunk-R4UVIYZP.js} +1 -1
  124. package/dist/{chunk-DTRENW4Q.js → chunk-RLNIOJH3.js} +1 -1
  125. package/dist/{chunk-LR4J4KYJ.js → chunk-RPCIFYCY.js} +1 -1
  126. package/dist/{chunk-2YGPWG3I.js → chunk-RPVZ2JON.js} +1 -1
  127. package/dist/{chunk-M2KX3PXA.js → chunk-RW6G4ZPU.js} +1 -1
  128. package/dist/{chunk-YXIFSIRX.js → chunk-S4LOWCGS.js} +1 -1
  129. package/dist/{chunk-ZVEBXHEY.js → chunk-S5P7KWY4.js} +1 -1
  130. package/dist/{chunk-XZLM4HLO.js → chunk-SACNUF4I.js} +1 -1
  131. package/dist/chunk-SB27UOXX.js +1 -0
  132. package/dist/{chunk-2TPLPZA2.js → chunk-SHD4VV5V.js} +1 -1
  133. package/dist/{chunk-75LAVRRL.js → chunk-SIL6HPMK.js} +2 -2
  134. package/dist/{chunk-7AWAOPLA.js → chunk-SK7EPN6C.js} +1 -1
  135. package/dist/{chunk-4EDE3UH7.js → chunk-SLY27GDC.js} +1 -1
  136. package/dist/{chunk-KOTZSPZA.js → chunk-SNH4XZ6E.js} +1 -1
  137. package/dist/{chunk-MZCIRMZJ.js → chunk-T4XJKM6B.js} +1 -1
  138. package/dist/{chunk-OPVXPDOQ.js → chunk-TAWCKJKP.js} +1 -1
  139. package/dist/{chunk-2CJQQQW4.js → chunk-TFPW2VGN.js} +1 -1
  140. package/dist/{chunk-HP2ZAAY7.js → chunk-TODZ3TJR.js} +1 -1
  141. package/dist/{chunk-XV6XCOTG.js → chunk-U2T5HPRD.js} +1 -1
  142. package/dist/{chunk-VXD26GIG.js → chunk-U6YOP562.js} +1 -1
  143. package/dist/{chunk-43HKFLOU.js → chunk-UBP3LQFY.js} +1 -1
  144. package/dist/{chunk-C4EKNOLY.js → chunk-UKWIWCOH.js} +1 -1
  145. package/dist/{chunk-HNU6R7RT.js → chunk-UPPO3BMT.js} +1 -1
  146. package/dist/{chunk-J5DUFSR4.js → chunk-URXM5A2K.js} +1 -1
  147. package/dist/{chunk-FVRI7ZKE.js → chunk-USXIXANP.js} +1 -1
  148. package/dist/{chunk-MS7DTL4U.js → chunk-UUAKOX7E.js} +1 -1
  149. package/dist/{chunk-GNPIKPHB.js → chunk-UV5GAGAD.js} +1 -1
  150. package/dist/{chunk-EXTVC33U.js → chunk-UXVXVI6O.js} +1 -1
  151. package/dist/{chunk-CNPBDSDL.js → chunk-UY6W2EVZ.js} +1 -1
  152. package/dist/{chunk-IAL6IQYW.js → chunk-UYELAINQ.js} +1 -1
  153. package/dist/{chunk-ULMNNGGX.js → chunk-VAVXDIUX.js} +1 -1
  154. package/dist/{chunk-XKKKMV46.js → chunk-VEUKT5EI.js} +1 -1
  155. package/dist/chunk-VGSH52JM.js +1 -0
  156. package/dist/chunk-VHZ6RL67.js +1 -0
  157. package/dist/{chunk-PRKJVU4Y.js → chunk-VQA3X7O3.js} +1 -1
  158. package/dist/{chunk-32O27NE3.js → chunk-VZCMJRYV.js} +1 -1
  159. package/dist/{chunk-NJVNGEOU.js → chunk-W37IFK3P.js} +1 -1
  160. package/dist/{chunk-MNWT2SQO.js → chunk-W56ZGEQQ.js} +1 -1
  161. package/dist/{chunk-MXXMIPUN.js → chunk-WBVS5NBV.js} +1 -1
  162. package/dist/{chunk-QBE6XVU3.js → chunk-WCC52MR2.js} +1 -1
  163. package/dist/{chunk-KLYGMYXV.js → chunk-WESTVWWD.js} +1 -1
  164. package/dist/{chunk-364BVGRY.js → chunk-WRZWHT6M.js} +1 -1
  165. package/dist/{chunk-M7NLCGCP.js → chunk-WSDKCQH6.js} +1 -1
  166. package/dist/{chunk-IWTOC6DG.js → chunk-X2PFXSU4.js} +1 -1
  167. package/dist/{chunk-CKVVJ4XO.js → chunk-X5NIAZA4.js} +1 -1
  168. package/dist/{chunk-RWTAPWLJ.js → chunk-XBMD3FEZ.js} +1 -1
  169. package/dist/{chunk-W7S6SYBM.js → chunk-XDVPIGXE.js} +1 -1
  170. package/dist/chunk-XLIJYJ6Q.js +1 -0
  171. package/dist/chunk-XUHGWIWW.js +4 -0
  172. package/dist/{chunk-IY5EI5V2.js → chunk-XWSWXQCC.js} +1 -1
  173. package/dist/{chunk-5AQ5JT2V.js → chunk-Y55T4IIQ.js} +1 -1
  174. package/dist/{chunk-QX3T6G5X.js → chunk-Y5CVX5LJ.js} +1 -1
  175. package/dist/{chunk-5D4FNAAD.js → chunk-Y6J46XYF.js} +1 -1
  176. package/dist/{chunk-KT5QQOES.js → chunk-YKMINHYY.js} +1 -1
  177. package/dist/{chunk-FPOZMNT2.js → chunk-YSWVYPWR.js} +1 -1
  178. package/dist/{chunk-M73IECPW.js → chunk-YV2TP44L.js} +1 -1
  179. package/dist/{chunk-V7H7ITCF.js → chunk-Z2WAW6MM.js} +1 -1
  180. package/dist/chunk-ZBL7XMJ6.js +25 -0
  181. package/dist/{chunk-RNUEPPVN.js → chunk-ZGBTO46A.js} +1 -1
  182. package/dist/{chunk-OLKLHVHA.js → chunk-ZJOX5HW4.js} +4 -4
  183. package/dist/{chunk-L6VONMA2.js → chunk-ZOOT3GBY.js} +1 -1
  184. package/dist/{chunk-NUCDRKDW.js → chunk-ZRI3SSLG.js} +1 -1
  185. package/dist/cli/commands/app/build.js +1 -1
  186. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  187. package/dist/cli/commands/app/bulk/execute.js +1 -1
  188. package/dist/cli/commands/app/bulk/status.js +1 -1
  189. package/dist/cli/commands/app/config/link.js +1 -1
  190. package/dist/cli/commands/app/config/pull.js +1 -1
  191. package/dist/cli/commands/app/config/use.js +1 -1
  192. package/dist/cli/commands/app/config/validate.js +1 -1
  193. package/dist/cli/commands/app/demo/watcher.js +1 -1
  194. package/dist/cli/commands/app/deploy.js +1 -1
  195. package/dist/cli/commands/app/dev/clean.js +1 -1
  196. package/dist/cli/commands/app/dev.js +1 -1
  197. package/dist/cli/commands/app/env/pull.js +1 -1
  198. package/dist/cli/commands/app/env/show.js +1 -1
  199. package/dist/cli/commands/app/execute.js +1 -1
  200. package/dist/cli/commands/app/function/build.js +1 -1
  201. package/dist/cli/commands/app/function/info.js +1 -1
  202. package/dist/cli/commands/app/function/replay.js +1 -1
  203. package/dist/cli/commands/app/function/run.js +1 -1
  204. package/dist/cli/commands/app/function/schema.js +1 -1
  205. package/dist/cli/commands/app/function/typegen.js +1 -1
  206. package/dist/cli/commands/app/generate/extension.js +1 -1
  207. package/dist/cli/commands/app/graphiql.js +1 -1
  208. package/dist/cli/commands/app/import/channel-config.js +1 -1
  209. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  210. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  211. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  212. package/dist/cli/commands/app/import-extensions.js +1 -1
  213. package/dist/cli/commands/app/info.js +1 -1
  214. package/dist/cli/commands/app/init.js +1 -1
  215. package/dist/cli/commands/app/logs.js +1 -1
  216. package/dist/cli/commands/app/release.js +1 -1
  217. package/dist/cli/commands/app/security/check.js +1 -1
  218. package/dist/cli/commands/app/security/clean.js +1 -1
  219. package/dist/cli/commands/app/security/instructions.js +1 -1
  220. package/dist/cli/commands/app/security/record.js +1 -1
  221. package/dist/cli/commands/app/security/review.js +1 -1
  222. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  223. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  224. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  225. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  226. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  227. package/dist/cli/commands/app/versions/list.js +1 -1
  228. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  229. package/dist/cli/commands/auth/login.js +1 -1
  230. package/dist/cli/commands/auth/logout.js +1 -1
  231. package/dist/cli/commands/cache/clear.js +1 -1
  232. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  233. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  234. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  235. package/dist/cli/commands/debug/command-flags.js +1 -1
  236. package/dist/cli/commands/doc/fetch.js +1 -1
  237. package/dist/cli/commands/doc/search.js +1 -1
  238. package/dist/cli/commands/docs/generate.js +1 -1
  239. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  240. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  241. package/dist/cli/commands/help.js +1 -1
  242. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  243. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  244. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  245. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  246. package/dist/cli/commands/notifications/generate.js +1 -1
  247. package/dist/cli/commands/notifications/list.js +1 -1
  248. package/dist/cli/commands/organization/list.js +1 -1
  249. package/dist/cli/commands/search.js +1 -1
  250. package/dist/cli/commands/send-analytics.js +1 -1
  251. package/dist/cli/commands/theme/check.js +1 -1
  252. package/dist/cli/commands/theme/console.js +1 -1
  253. package/dist/cli/commands/theme/delete.js +1 -1
  254. package/dist/cli/commands/theme/dev.js +1 -1
  255. package/dist/cli/commands/theme/duplicate.js +1 -1
  256. package/dist/cli/commands/theme/info.js +1 -1
  257. package/dist/cli/commands/theme/init.js +1 -1
  258. package/dist/cli/commands/theme/language-server.js +1 -1
  259. package/dist/cli/commands/theme/list.js +1 -1
  260. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  261. package/dist/cli/commands/theme/open.js +1 -1
  262. package/dist/cli/commands/theme/package.js +1 -1
  263. package/dist/cli/commands/theme/preview.js +1 -1
  264. package/dist/cli/commands/theme/profile.js +1 -1
  265. package/dist/cli/commands/theme/publish.js +1 -1
  266. package/dist/cli/commands/theme/pull.js +1 -1
  267. package/dist/cli/commands/theme/push.js +1 -1
  268. package/dist/cli/commands/theme/rename.js +1 -1
  269. package/dist/cli/commands/theme/share.js +1 -1
  270. package/dist/cli/commands/upgrade.js +1 -1
  271. package/dist/cli/commands/version.js +1 -1
  272. package/dist/cli/help.js +1 -1
  273. package/dist/{command-json-schema-6EGXCM4B.js → command-json-schema-F5XF7XHL.js} +1 -1
  274. package/dist/command-registry.js +1 -1
  275. package/dist/{conf-store-E7ELDWBA.js → conf-store-5CBLWTOC.js} +1 -1
  276. package/dist/{custom-oclif-loader-FKFZJPHF.js → custom-oclif-loader-UDVUFKMD.js} +1 -1
  277. package/dist/{deprecations-RNGBHZYB.js → deprecations-EOHPSTCS.js} +1 -1
  278. package/dist/dist-RNV3GFZ7.js +1 -0
  279. package/dist/dist-ZFKWJVNB.js +1 -0
  280. package/dist/{environments-WZJ6MRTH.js → environments-4FLRZW4P.js} +1 -1
  281. package/dist/{error-IFB626JA.js → error-JY2ADS6S.js} +1 -1
  282. package/dist/error-handler-4GCXKC6I.js +1 -0
  283. package/dist/{fs-7UOUHJDO.js → fs-XS5YF34R.js} +1 -1
  284. package/dist/hooks/did-you-mean.js +1 -1
  285. package/dist/hooks/hydrogen-init.js +1 -1
  286. package/dist/hooks/postrun.js +1 -1
  287. package/dist/hooks/prerun.js +1 -1
  288. package/dist/hooks/public-metadata.js +1 -1
  289. package/dist/hooks/sensitive-metadata.js +1 -1
  290. package/dist/hooks/tunnel-provider.js +1 -1
  291. package/dist/hooks/tunnel-start.js +1 -1
  292. package/dist/index.js +1 -1
  293. package/dist/{is-global-XW3CVHLK.js → is-global-27MUENOK.js} +1 -1
  294. package/dist/{json-error-C2U7ZLCG.js → json-error-S5XFS3UX.js} +1 -1
  295. package/dist/{local-KA3IWOZ6.js → local-OKPVB4NH.js} +1 -1
  296. package/dist/{metadata-6JI7HF5B.js → metadata-2YJBAKR7.js} +1 -1
  297. package/dist/{node-package-manager-X3QIEMMX.js → node-package-manager-B3OW3PFQ.js} +1 -1
  298. package/dist/{notifications-system-OXGLT2R4.js → notifications-system-BWTDYBG2.js} +1 -1
  299. package/dist/{os-NORIEVMI.js → os-F6QKJCFW.js} +1 -1
  300. package/dist/{output-K3JTLRJD.js → output-BRIPK7UC.js} +1 -1
  301. package/dist/{system-LTHR2T7L.js → system-466QKFDI.js} +1 -1
  302. package/dist/tsconfig.tsbuildinfo +1 -1
  303. package/dist/{ui-MYUBVKCK.js → ui-VJTNGCS6.js} +1 -1
  304. package/dist/upgrade-VHVJLXKX.js +1 -0
  305. package/dist/{version-RCGFWSB4.js → version-FETZRLZO.js} +1 -1
  306. package/dist/version-T4XXTJMB.js +1 -0
  307. package/dist/{workerd-ISSXMKIH.js → workerd-32DMKLMN.js} +1 -1
  308. package/oclif.manifest.json +1 -1
  309. package/package.json +7 -7
  310. package/dist/analytics-V2SDYXQJ.js +0 -1
  311. package/dist/chunk-2M535QQJ.js +0 -6
  312. package/dist/chunk-46JYM3GH.js +0 -1
  313. package/dist/chunk-7XAEI4XT.js +0 -3
  314. package/dist/chunk-BNTOGZLY.js +0 -1
  315. package/dist/chunk-BU3JQM3W.js +0 -1
  316. package/dist/chunk-JUTULEWW.js +0 -5
  317. package/dist/chunk-MHWETFNT.js +0 -1
  318. package/dist/chunk-MU2X7NGF.js +0 -11
  319. package/dist/chunk-NMECLRGK.js +0 -11
  320. package/dist/chunk-NPB753M3.js +0 -1
  321. package/dist/chunk-Q2ORJEB2.js +0 -25
  322. package/dist/chunk-UDPYSL3M.js +0 -4
  323. package/dist/chunk-URCH4ITT.js +0 -1
  324. package/dist/chunk-WFOU5M4H.js +0 -16
  325. package/dist/chunk-XDXHSGDL.js +0 -1
  326. package/dist/chunk-XRVJJG6W.js +0 -26
  327. package/dist/dist-VHIZZDYK.js +0 -1
  328. package/dist/dist-WXI5YQYP.js +0 -1
  329. package/dist/error-handler-OVJYVIOZ.js +0 -1
  330. package/dist/upgrade-MFTWBXL3.js +0 -1
  331. package/dist/version-BNGPPAUU.js +0 -1
@@ -1 +1 @@
1
- import{A as e,B as f,C as g,D as h,E as i,F as j,G as k,H as l,I as m,J as n,K as o,L as p,M as q,N as r,n as a,o as b,y as c,z as d}from"./chunk-V654BMS7.js";import"./chunk-7Y7AZRL3.js";import"./chunk-F3OM2YO6.js";import"./chunk-PVASYKSJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-FHNJLON5.js";import"./chunk-J7BTC45S.js";import"./chunk-636CTEW7.js";import"./chunk-QVVQUJQL.js";import"./chunk-RIG66DIQ.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-GSGCSBRN.js";import"./chunk-46JYM3GH.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{b as handleCtrlC,r as isTTY,q as keypress,a as render,k as renderAutocompletePrompt,c as renderConcurrent,j as renderConfirmationPrompt,p as renderDangerousConfirmationPrompt,g as renderError,h as renderFatalError,d as renderInfo,i as renderSelectPrompt,n as renderSingleTask,e as renderSuccess,l as renderTable,m as renderTasks,o as renderTextPrompt,f as renderWarning};
1
+ import{A as e,B as f,C as g,D as h,E as i,F as j,G as k,H as l,I as m,J as n,K as o,L as p,M as q,N as r,n as a,o as b,y as c,z as d}from"./chunk-D2KIGKBI.js";import"./chunk-7Y7AZRL3.js";import"./chunk-LEHBZKK3.js";import"./chunk-GW7YIJPJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-CXI3RHPW.js";import"./chunk-M5VIFG2V.js";import"./chunk-636CTEW7.js";import"./chunk-NXAEBGMO.js";import"./chunk-JLQRDFR5.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-LHXFTFFM.js";import"./chunk-43R5VGKT.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{b as handleCtrlC,r as isTTY,q as keypress,a as render,k as renderAutocompletePrompt,c as renderConcurrent,j as renderConfirmationPrompt,p as renderDangerousConfirmationPrompt,g as renderError,h as renderFatalError,d as renderInfo,i as renderSelectPrompt,n as renderSingleTask,e as renderSuccess,l as renderTable,m as renderTasks,o as renderTextPrompt,f as renderWarning};
@@ -0,0 +1 @@
1
+ import{c,d,e,f,g,h,i}from"./chunk-K7ZSPQKL.js";import"./chunk-U6YOP562.js";import"./chunk-Y5CVX5LJ.js";import"./chunk-T4XJKM6B.js";import"./chunk-LFOBYEWG.js";import"./chunk-GQLNG537.js";import"./chunk-ZDF5N422.js";import"./chunk-QQJNQNKP.js";import"./chunk-MPW2YJWU.js";import{s as a,t as b}from"./chunk-MHR5OHT5.js";import"./chunk-HSKDFEXW.js";import"./chunk-F3CK3EJJ.js";import"./chunk-T7KHS6RF.js";import"./chunk-D2KIGKBI.js";import"./chunk-7Y7AZRL3.js";import"./chunk-LEHBZKK3.js";import"./chunk-GW7YIJPJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-YRHFPXC3.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-CXI3RHPW.js";import"./chunk-M5VIFG2V.js";import"./chunk-636CTEW7.js";import"./chunk-NXAEBGMO.js";import"./chunk-JLQRDFR5.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-LHXFTFFM.js";import"./chunk-43R5VGKT.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{c as cliInstallCommand,a as getAutoUpgradeEnabled,i as getOutputUpdateCLIReminder,g as hasBlockingAutoUpgradeNotification,d as runCLIUpgrade,b as setAutoUpgradeEnabled,e as upgradeCLI,f as versionToAutoUpgrade,h as warnIfUpgradeAvailable};
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-QX3T6G5X.js";import"./chunk-V654BMS7.js";import"./chunk-7Y7AZRL3.js";import"./chunk-F3OM2YO6.js";import"./chunk-PVASYKSJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-FHNJLON5.js";import"./chunk-J7BTC45S.js";import"./chunk-636CTEW7.js";import"./chunk-QVVQUJQL.js";import"./chunk-RIG66DIQ.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-GSGCSBRN.js";import"./chunk-46JYM3GH.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{b as globalCLIVersion,d as isMajorVersionChange,c as isPreReleaseVersion,a as localCLIVersion};
1
+ import{a,b,c,d}from"./chunk-Y5CVX5LJ.js";import"./chunk-D2KIGKBI.js";import"./chunk-7Y7AZRL3.js";import"./chunk-LEHBZKK3.js";import"./chunk-GW7YIJPJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-CXI3RHPW.js";import"./chunk-M5VIFG2V.js";import"./chunk-636CTEW7.js";import"./chunk-NXAEBGMO.js";import"./chunk-JLQRDFR5.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-LHXFTFFM.js";import"./chunk-43R5VGKT.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{b as globalCLIVersion,d as isMajorVersionChange,c as isPreReleaseVersion,a as localCLIVersion};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-HSKDFEXW.js";import"./chunk-VKWPEFWQ.js";export{a as CLI_KIT_VERSION};
@@ -1,4 +1,4 @@
1
- import{Q as v,_a as s,ab as b,bb as k,cb as E,db as A,eb as I,fb as L,gb as x,hb as B,ib as O}from"./chunk-MS7DTL4U.js";import"./chunk-EH22T4FI.js";import"./chunk-LGXNXAQA.js";import"./chunk-YLQ3LNNY.js";import"./chunk-VJEKDBGZ.js";import"./chunk-OLKLHVHA.js";import"./chunk-LFOBYEWG.js";import"./chunk-NCPZVARH.js";import"./chunk-ZDF5N422.js";import"./chunk-2M535QQJ.js";import"./chunk-MPW2YJWU.js";import"./chunk-J3UXIC23.js";import"./chunk-MHWETFNT.js";import"./chunk-DSKAIC7O.js";import"./chunk-5AWELO3D.js";import"./chunk-T7KHS6RF.js";import{A as w}from"./chunk-V654BMS7.js";import"./chunk-7Y7AZRL3.js";import"./chunk-F3OM2YO6.js";import"./chunk-PVASYKSJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-YRHFPXC3.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-FHNJLON5.js";import{h as R}from"./chunk-J7BTC45S.js";import"./chunk-636CTEW7.js";import"./chunk-QVVQUJQL.js";import{Db as q,Ja as g,la as y}from"./chunk-RIG66DIQ.js";import{i as N}from"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-GSGCSBRN.js";import"./chunk-46JYM3GH.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import{e as h,h as f}from"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{createRequire as C}from"node:module";async function ee({root:c,appPort:D,inspectorPort:P,assetsPort:S,debug:U=!1,watch:W=!1,buildPathWorkerFile:$,buildPathClient:M,env:l}){let{createMiniOxygen:F,Response:u}=await v("@shopify/mini-oxygen",c).catch(B);A({Response:u});async function _(){let r=C(import.meta.url).resolve("@shopify/hydrogen/customer-account.schema.json");return new u(g(r),{headers:{"Content-Type":"application/json"}})}let t="hydrogen",o=h(c,$),m=()=>y(o).catch(e=>{throw new R(`Could not read worker file.
1
+ import{Q as v,_a as s,ab as b,bb as k,cb as E,db as A,eb as I,fb as L,gb as x,hb as B,ib as O}from"./chunk-UUAKOX7E.js";import"./chunk-PTSCGSQV.js";import"./chunk-6ES4KRFW.js";import"./chunk-YLQ3LNNY.js";import"./chunk-VJEKDBGZ.js";import"./chunk-ZJOX5HW4.js";import"./chunk-LFOBYEWG.js";import"./chunk-GQLNG537.js";import"./chunk-ZDF5N422.js";import"./chunk-QQJNQNKP.js";import"./chunk-MPW2YJWU.js";import"./chunk-MHR5OHT5.js";import"./chunk-HSKDFEXW.js";import"./chunk-F3CK3EJJ.js";import"./chunk-3KM5ZOW2.js";import"./chunk-T7KHS6RF.js";import{A as w}from"./chunk-D2KIGKBI.js";import"./chunk-7Y7AZRL3.js";import"./chunk-LEHBZKK3.js";import"./chunk-GW7YIJPJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-YRHFPXC3.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-CXI3RHPW.js";import{h as R}from"./chunk-M5VIFG2V.js";import"./chunk-636CTEW7.js";import"./chunk-NXAEBGMO.js";import{Db as q,Ja as g,la as y}from"./chunk-JLQRDFR5.js";import{i as N}from"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-LHXFTFFM.js";import"./chunk-43R5VGKT.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import{e as h,h as f}from"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{createRequire as C}from"node:module";async function ee({root:c,appPort:D,inspectorPort:P,assetsPort:S,debug:U=!1,watch:W=!1,buildPathWorkerFile:$,buildPathClient:M,env:l}){let{createMiniOxygen:F,Response:u}=await v("@shopify/mini-oxygen",c).catch(B);A({Response:u});async function _(){let r=C(import.meta.url).resolve("@shopify/hydrogen/customer-account.schema.json");return new u(g(r),{headers:{"Content-Type":"application/json"}})}let t="hydrogen",o=h(c,$),m=()=>y(o).catch(e=>{throw new R(`Could not read worker file.
2
2
 
3
3
  `+e.stack,"Did you build the project?")}),i=F({debug:U,port:D,host:"localhost",liveReload:W,requestHook:O,inspectorPort:P,inspectWorkerName:t,assets:{port:S,directory:M},workers:[{name:"hydrogen:middleware",modules:!0,script:`export default { fetch: (request, env) => {
4
4
  const url = new URL(request.url);
@@ -13780,5 +13780,5 @@
13780
13780
  "descriptionWithMarkdown": "Check whether auto-upgrade is enabled, disabled, or not yet configured.\n\n When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.\n\n Run `shopify config autoupgrade on` or `shopify config autoupgrade off` to configure it.\n"
13781
13781
  }
13782
13782
  },
13783
- "version": "5.0.1"
13783
+ "version": "5.0.2"
13784
13784
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "private": false,
5
5
  "description": "A CLI tool to build for the Shopify platform",
6
6
  "keywords": [
@@ -50,12 +50,12 @@
50
50
  "@oclif/core": "4.8.3",
51
51
  "@oclif/plugin-commands": "4.1.60",
52
52
  "@oclif/plugin-plugins": "5.4.84",
53
- "@shopify/app": "5.0.1",
54
- "@shopify/store": "5.0.1",
55
- "@shopify/cli-kit": "5.0.1",
56
- "@shopify/plugin-cloudflare": "5.0.1",
57
- "@shopify/plugin-did-you-mean": "5.0.1",
58
- "@shopify/theme": "5.0.1",
53
+ "@shopify/app": "5.0.2",
54
+ "@shopify/store": "5.0.2",
55
+ "@shopify/cli-kit": "5.0.2",
56
+ "@shopify/plugin-cloudflare": "5.0.2",
57
+ "@shopify/plugin-did-you-mean": "5.0.2",
58
+ "@shopify/theme": "5.0.2",
59
59
  "@shopify/cli-hydrogen": "13.1.0",
60
60
  "@types/global-agent": "3.0.0",
61
61
  "@vitest/coverage-istanbul": "^3.2.7",
@@ -1 +0,0 @@
1
- import{sa as a,ta as b,ua as c,va as d,wa as e,xa as f,ya as g}from"./chunk-NCPZVARH.js";import"./chunk-ZDF5N422.js";import"./chunk-2M535QQJ.js";import"./chunk-MPW2YJWU.js";import"./chunk-J3UXIC23.js";import"./chunk-MHWETFNT.js";import"./chunk-DSKAIC7O.js";import"./chunk-T7KHS6RF.js";import"./chunk-V654BMS7.js";import"./chunk-7Y7AZRL3.js";import"./chunk-F3OM2YO6.js";import"./chunk-PVASYKSJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-YRHFPXC3.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-FHNJLON5.js";import"./chunk-J7BTC45S.js";import"./chunk-636CTEW7.js";import"./chunk-QVVQUJQL.js";import"./chunk-RIG66DIQ.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-GSGCSBRN.js";import"./chunk-46JYM3GH.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{g as compileData,d as recordError,f as recordEvent,e as recordRetry,c as recordTiming,b as reportAnalyticsEvent,a as sendAnalyticsEventFromStdin};
@@ -1,6 +0,0 @@
1
- import{l as O,n as W}from"./chunk-J3UXIC23.js";import{T as v,a as S}from"./chunk-V654BMS7.js";import{f as y}from"./chunk-FHNJLON5.js";import{h as u,k as L}from"./chunk-J7BTC45S.js";import{Bb as d,Sa as w,Ta as i,Va as D,_a as F,la as x,lb as B,qb as c,sb as s,ta as _}from"./chunk-RIG66DIQ.js";import{c as r,h as k}from"./chunk-IWTNUJGY.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g as f}from"./chunk-VKWPEFWQ.js";f();f();function b(e,n){try{return JSON.parse(e)}catch(a){let t=a instanceof Error?a.message:String(a),o=n?` from ${n}`:"";throw new u(`Failed to parse JSON${o}.
2
- ${t}`)}}var l=R(I()),N="yarn.lock",j="package-lock.json",$="pnpm-lock.yaml",C="bun.lockb",J="bun.lock",T="pnpm-workspace.yaml",we=[N,$,j,C,J],ye={yarn:[N],npm:[j],pnpm:[$],bun:[C,J],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],M=class extends u{constructor(){super("Unknown package manager")}},h=class extends u{constructor(n){super(s`The directory ${c.path(n)} doesn't have a package.json.`)}},P=class extends L{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${c.path(n)}`)}};function V(e=process.env){let n=e.npm_config_user_agent;return["yarn","pnpm","bun","npm"].find(a=>n?.includes(a))??"unknown"}function U(e){return i(r(e,C))||i(r(e,J))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function A(e){let n=e;for(d(s`Looking for a lockfile in ${c.path(n)}...`);;){if(i(r(n,N)))return"yarn";if(i(r(n,$))||i(r(n,T)))return"pnpm";if(U(n))return"bun";if(i(r(n,j)))return"npm";let t=k(n);if(t===n)break;n=t}let a=V();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let t=G(await A(e));return K(t,n,...a)}async function xe(e){let n=await D(r(e.directory,"**/package.json"),{ignore:[r(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new S;try{await Promise.all(n.map(async t=>{let o=k(t);await z({directory:o,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(t){throw a.abort(),t}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await y("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function ve(e){return(await m(e)).name}async function be(e){return(await m(e)).version}async function H(e){let n=await m(e),a=n.dependencies??{},t=n.devDependencies??{};return{...a,...t}}async function Me(e){let n=r(e,"package.json"),a=await m(n),t=r(e,T);return!!a.workspaces||w(t)}async function Pe(e,n,{cacheExpiryInHours:a=0}={}){let t=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),o=`npm-package-${e}`,p;try{p=await O(o,t,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function Ne(e,n){let a=`npm-package-${e}`,t=W(a)?.value;if(t&&new l.SemVer(n).compare(t)<0)return t}function je(e,n){return(0,l.satisfies)(e,n)}async function m(e){if(!await w(e))throw new h(k(e));return b(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
3
- ${c.json(e)}
4
- With options:
5
- ${c.json(n)}
6
- `);let a=r(n.directory,"package.json");if(!await w(a))throw new h(n.directory);let t=Object.keys(await H(a)),o=e.filter(p=>!t.includes(p.name));o.length!==0&&await q(o,n)}async function q(e,n){let a=e.map(t=>t.version?`${t.name}@${t.version}`:t.name);switch(n.stdout?.write(`Installing ${a.join(" ")} with ${n.packageManager}`),n.packageManager){case"npm":for(let t of a)await g(n,Q(t,n.type));break;case"yarn":await g(n,X(a,n.type,!!n.addToRootDirectory));break;case"pnpm":await g(n,Z(a,n.type,!!n.addToRootDirectory));break;case"bun":await g(n,ee(a,n.type)),await g(n,["install"]);break;case"homebrew":throw new u("Homebrew can't be used to install project dependencies. Use npm, yarn, pnpm, or bun.");case"unknown":throw new M}}async function g(e,n){return y("cmd_all_timing_network_ms")(async()=>v(e.packageManager,n,{cwd:e.directory,stdout:e.stdout,stderr:e.stderr,signal:e.signal}))}async function $e(e,n){await Y(e.map(a=>({name:a,version:void 0})),n)}function Q(e,n){let t=["install",e,{dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"}[n]];return e.match(/@\d/g)&&t.push("--save-exact"),t}function X(e,n,a=!1){let t={dev:"--dev",peer:"--peer",prod:"--prod"};return["add",...a?["-W"]:[],...e,t[n]]}function Z(e,n,a=!1){let t={dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"};return["add",...a?["-w"]:[],...e,t[n]]}function ee(e,n){let t={dev:"--development",peer:"--optional"}[n];return["add",...e,...t?[t]:[]]}async function Ce(e){let n=await F("package.json",{cwd:e,type:"file"});if(n){let a=b(await x(n),n);return{path:n,content:a}}else throw new P(e)}async function Je(e,n){let a=await A(e),t=await m(r(e,"package.json")),o=a==="yarn"?"resolutions":"overrides";t[o]={...t[o],...n},await ae(e,t)}async function ne(e){return d(s`Getting the latest version of NPM package: ${c.raw(e)}`),y("cmd_all_timing_network_ms")(async()=>{let{default:n}=await import("./latest-version-LDWU5F7A.js");return n(e)})}async function ae(e,n){d(s`JSON-encoding and writing content to package.json at ${c.path(e)}...`);let a=r(e,"package.json");await _(a,JSON.stringify(n,null,2))}function _e(e,n=process.env){if(e&&E.includes(e))return e;let a=V(n);if(a!=="unknown")return a;let t=B();return t!=="unknown"?t:"npm"}export{N as a,j as b,$ as c,C as d,T as e,we as f,ye as g,E as h,M as i,h as j,P as k,V as l,A as m,he as n,xe as o,z as p,ve as q,be as r,H as s,Me as t,Pe as u,Ne as v,je as w,m as x,Y as y,q as z,$e as A,Ce as B,Je as C,ae as D,_e as E};
@@ -1 +0,0 @@
1
- import{b as s}from"./chunk-YTUUU33R.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{e as i,g as n}from"./chunk-VKWPEFWQ.js";n();var t=i(s()),a={"no-input":t.Flags.boolean({description:"Disable interactive prompts and browser authentication.",env:"SHOPIFY_FLAG_NO_INPUT"})};function u(r=process.argv,e=process.env){return r.includes("--no-input")||o(e.SHOPIFY_FLAG_NO_INPUT)}export{a,u as b};
@@ -1,3 +0,0 @@
1
- import{a as L,b as g,d as P,g as w}from"./chunk-NJVNGEOU.js";import{a as A}from"./chunk-KGASGUDQ.js";import{t as G}from"./chunk-5XOEMYEQ.js";import{a as F}from"./chunk-NPB753M3.js";import{a as S}from"./chunk-D4LFWIFE.js";import{p as l,u as d}from"./chunk-NCPZVARH.js";import{b as v,e as b}from"./chunk-5AWELO3D.js";import{O as u,a as c}from"./chunk-V654BMS7.js";import{Cb as y,qb as f,sb as h,yb as i}from"./chunk-RIG66DIQ.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as Q,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();import{randomBytes as x}from"crypto";function K(){return x(32).toString("hex")}function C(e){let r=new URL(`http://localhost:${e.port}/graphiql`);return r.searchParams.set("key",e.key),e.query&&r.searchParams.set("query",e.query),e.variables&&r.searchParams.set("variables",e.variables),e.apiVersion&&r.searchParams.set("api_version",e.apiVersion),r.toString()}async function I(e){let r=await A(e.port),t=g({stdout:e.stdout??process.stdout,port:r,storeFqdn:e.storeFqdn,tokenProvider:e.tokenProvider,key:e.key,appContext:e.appContext,protectMutations:e.protectMutations}),a=C({port:r,key:e.key,query:e.query,variables:e.variables,apiVersion:e.apiVersion});try{i(h`GraphiQL is running at ${f.link(a)}`),e.additionalReadyMessages?.forEach(s=>i(s)),i("Press Ctrl+C to stop."),await u(a)||y("Browser did not open automatically. Open the URL above manually."),await T(e.abortSignal)}finally{t.close()}}async function T(e){let r=new c,t=()=>r.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(r.signal.aborted||e?.aborted){a();return}r.signal.addEventListener("abort",()=>a(),{once:!0}),e?.addEventListener("abort",()=>r.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function k(e){let r=e.remoteApp.apiSecretKeys[0]?.secret??"",t=L(void 0,r,e.store),a=w({apiKey:e.remoteApp.apiKey,apiSecret:r,storeFqdn:e.store}),m=await l(),s=P(e.store,e.remoteApp.apiKey,m);await I({port:e.port,storeFqdn:e.store,tokenProvider:a,key:t,appContext:{appName:e.remoteApp.title,appUrl:s,apiSecret:r},variables:e.variables,apiVersion:e.apiVersion,abortSignal:e.abortSignal})}var n=Q(q(),1),p=class e extends F{static summary="Open a local GraphiQL UI for your app and store.";static descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
2
-
3
- The app must be installed on the store.`;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];static flags={...v,...S,store:n.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>d(r)}),port:b({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:n.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:n.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};async run(){let{flags:r}=await this.parse(e),{appContextResult:t,store:a}=await G(r);return await k({remoteApp:t.remoteApp,store:a.shopDomain,port:r.port,variables:r.variables,apiVersion:r.version}),{app:t.app}}};export{K as a,I as b,p as c};
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk-OLKLHVHA.js";import{sa as r}from"./chunk-NCPZVARH.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static hidden=!0;async run(){await r()}};export{t as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-ZBVHPC6W.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
@@ -1,5 +0,0 @@
1
- import{a as d,d as M,e as D,f as U}from"./chunk-6Y6A2QGK.js";import{a as E,b as T,c as L,f as $,j as R,k as N,m as P,t as j}from"./chunk-5XOEMYEQ.js";import{a as _}from"./chunk-NPB753M3.js";import{a as q}from"./chunk-D4LFWIFE.js";import{S as O,u as I}from"./chunk-NCPZVARH.js";import{b as x,c as C}from"./chunk-5AWELO3D.js";import{A,C as S,H as F,z as g}from"./chunk-V654BMS7.js";import{k as B}from"./chunk-J7BTC45S.js";import{Db as y,ba as h,ga as k,qb as p,sb as u,wb as v}from"./chunk-RIG66DIQ.js";import{i as l}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 R({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 N({adminSession:n,version:r});return{store:o,apiVersion:r,operations:i}}async function G(t,o){let e=o.apiSecretKeys[0]?.secret;if(!e)throw new B("No API secret keys found for app");let n=await O(t,o.apiKey,e),r=await $({adminSession:n,minimumDefaultVersion:E});return{adminSession:n,version:r}}s();function H(t,o){if(o==="json"){v(d.encode({...M(t),..."operation"in t?{operationGid:t.operationId,operation:t.operation?D(t.operation):null}:{operations:t.operations.map(D),pageInfo:{hasNextPage:t.operations.length<100?!1:null}}}));return}if("operation"in t){t.operation?W(t.operation):S({headline:"Bulk operation not found.",body:u`ID: ${p.yellow(t.operationId)}`.value});return}let e=t.operations.map(n=>({id:L(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)}));y(),e.length===0?g({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"}}}),y()}function W(t){let{id:o,status:e,createdAt:n,completedAt:r,url:i,partialDataUrl:a}=t,c=P(t).value,J=Q(n,r),m=u`ID: ${p.yellow(o)}\n${J}`.value;if(e==="COMPLETED"){let f=i?p.link("Download results",i):"";A({headline:c,body:u`${m}\n${f}`.value})}else if(e==="FAILED"){let f=a?p.link("Download partial results",a):"";S({headline:c,body:u`${m}\n${f}`.value})}else g({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"?l.green(t):t==="FAILED"?l.red(t):l.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?u`${p.link("download",t)}`.value:""}var b=K(Y(),1);var w=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={...x,...C,...q,id:b.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:b.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:T(o.id)}):await z(i);return H(a,r),{app:e.app}}};export{w as a};
@@ -1 +0,0 @@
1
- import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="5.0.1";export{o as a};
@@ -1,11 +0,0 @@
1
- import{a as S}from"./chunk-FKIVKNOV.js";import{a as R}from"./chunk-URCH4ITT.js";import{a as f}from"./chunk-7GHSE7SG.js";import{a as C}from"./chunk-NPB753M3.js";import{a as j}from"./chunk-D4LFWIFE.js";import{Ma as k,O}from"./chunk-XV6XCOTG.js";import{b as y}from"./chunk-LGXNXAQA.js";import{b as w,c as A}from"./chunk-5AWELO3D.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{Sa as F,la as E,qb as l,sb as c,ta as x,wb as P}from"./chunk-RIG66DIQ.js";import{b as r}from"./chunk-FZCGRIOM.js";import{b as I}from"./chunk-YTUUU33R.js";import{e as m,g as b}from"./chunk-IWTNUJGY.js";import{e as H,g as o}from"./chunk-VKWPEFWQ.js";o();o();async function $({app:n,remoteApp:e,organization:a,envFile:i}){let{variables:s}=await R(n,e,a),t=m(i),p=await F(t)?await E(t):null,d=y(p,Object.fromEntries(s.map(({name:N,value:T})=>[N,T]))),v=d!==p;return v&&await x(t,d),{result:{path:t,status:"success",changed:v,variables:s,content:d},previousContent:p}}o();var u=g({name:"AppEnvPullResult",schema:r.object({path:r.string().refine(b,"Expected an absolute path").describe("The absolute native dotenv file path."),status:r.literal("success"),changed:r.boolean().describe("Whether the dotenv file was created or updated."),variables:r.array(f).describe("The known app variables, not unrelated local variables."),content:r.string().describe("The complete native dotenv content, preserving existing variables and comments.")}).strict(),definitions:{AppEnvironmentVariable:f}});o();import{resolve as V}from"node:path";function W({result:n,previousContent:e},a){if(a==="json")return u.encode({...n,path:V(n.path)});let{path:i,changed:s,content:t}=n;return s?e===null?c`Created ${l.path(i)}:
2
-
3
- ${t}
4
- `:c`Updated ${l.path(i)} to be:
5
-
6
- ${t}
7
-
8
- Here's what changed:
9
-
10
- ${l.linesDiff(S(e??"",t))}
11
- `:c`No changes to ${l.path(i)}`}function J(n,e){P(W(n,e))}var L=H(I(),1);var h=class n extends C{static summary="Pull app and extensions environment variables.";static descriptionWithMarkdown="Creates or updates an `.env` files that contains app and app extension environment variables.\n\n When an existing `.env` file is updated, changes to the variables are displayed in the terminal output. Existing variables and commented variables are preserved.";static get jsonOutputSchema(){return u}static description=this.descriptionForHelp();static flags={...w,...A,...j,"env-file":L.Flags.string({hidden:!1,description:"Specify an environment file to update if the update flag is set",env:"SHOPIFY_FLAG_ENV_FILE"})};async run(){let{flags:e}=await this.parse(n),{app:a,remoteApp:i,organization:s}=await k({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),t=m(a.directory,e["env-file"]??O(a.configPath)),p=await $({app:a,remoteApp:i,organization:s,envFile:t});return J(p,e.json?"json":"text"),{app:a}}};export{h as a};
@@ -1,11 +0,0 @@
1
- import{a as M}from"./chunk-B4ISKIXN.js";import{a as K}from"./chunk-NPB753M3.js";import{a as D}from"./chunk-D4LFWIFE.js";import{Ma as $,i as m,ka as W}from"./chunk-XV6XCOTG.js";import{t as b}from"./chunk-WFOU5M4H.js";import{G as F,H as O}from"./chunk-NCPZVARH.js";import{a as f}from"./chunk-MHWETFNT.js";import{b as R,c as L}from"./chunk-5AWELO3D.js";import{z as N}from"./chunk-V654BMS7.js";import{c as g}from"./chunk-PVASYKSJ.js";import{a as C}from"./chunk-BN7ZXAZJ.js";import{Ib as k,L as x,N as w,rb as T,wb as U}from"./chunk-RIG66DIQ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{b as ie}from"./chunk-YTUUU33R.js";import{f as u,i as P}from"./chunk-IWTNUJGY.js";import{e as re,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();var l=e.record(e.unknown()),S=e.object({id:e.string(),name:e.string(),continueOnError:e.boolean().optional()}),H=e.array(e.object({lifecycle:e.literal("deploy"),steps:e.array(e.discriminatedUnion("type",[S.extend({type:e.literal("include_assets"),config:e.object({generatesAssetsManifest:e.boolean().optional(),inclusions:e.array(e.discriminatedUnion("type",[e.object({type:e.literal("pattern"),baseDir:e.string().optional(),include:e.array(e.string()).optional(),ignore:e.array(e.string()).optional(),destination:e.string().optional()}),e.object({type:e.literal("static"),source:e.string(),destination:e.string().optional()}),e.object({type:e.literal("configKey"),key:e.string(),destination:e.string().optional(),anchor:e.string().optional(),groupBy:e.string().optional(),preserveFilePaths:e.boolean().optional()})]))})}),S.extend({type:e.literal("bundle_ui"),config:e.object({generatesAssetsManifest:e.boolean().optional(),bundleFolder:e.string().optional()}).optional()}),S.extend({type:e.enum(["build_theme","bundle_theme","build_function","create_tax_stub"]),config:e.record(e.never()).optional()})]))})),A=e.object({identifier:e.string(),externalIdentifier:e.string(),externalName:e.string(),group:e.string().optional(),additionalIdentifiers:e.array(e.string()),partnersWebIdentifier:e.string(),surface:e.string(),registrationLimit:e.number(),experience:e.enum(["extension","configuration"]),uidStrategy:e.enum(["single","dynamic","uuid"]),dependency:e.string().optional(),graphQLType:e.string().optional(),clientSteps:H.optional(),loadedRemoteSpecs:e.boolean().optional()}),v=e.object({name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional(),entrySourceFilePath:e.string(),devUUID:e.string(),localIdentifier:e.string(),idEnvironmentVariableName:e.string(),directory:e.string(),configuration:l,configurationPath:e.string(),outputPath:e.string(),handle:e.string(),specification:A,uid:e.string()}).passthrough(),z=e.object({directory:e.string(),configuration:l.optional()}).passthrough(),J=e.object({file:e.string(),message:e.string()}).passthrough(),h=e.object({id:e.string(),title:e.string(),apiKey:e.string(),organizationId:e.string(),appType:e.string().optional(),newApp:e.boolean().optional(),grantedScopes:e.array(e.string()),developmentStorePreviewEnabled:e.boolean().optional(),applicationUrl:e.string().optional(),redirectUrlWhitelist:e.array(e.string()).optional(),requestedAccessScopes:e.array(e.string()).optional(),webhookApiVersion:e.string().optional(),embedded:e.boolean().optional(),posEmbedded:e.boolean().optional(),preferencesUrl:e.string().optional(),gdprWebhooks:e.object({customerDeletionUrl:e.string().optional(),customerDataRequestUrl:e.string().optional(),shopDeletionUrl:e.string().optional()}).optional(),appProxy:e.object({subPath:e.string(),subPathPrefix:e.string(),url:e.string()}).optional(),configuration:l.optional(),flags:e.array(e.string())}),q=e.object({path:e.string(),message:e.string()}),I=e.object({path:e.string(),content:l,errors:e.array(q)}),Q=e.object({directory:e.string(),appConfigFiles:e.array(I),extensionConfigFiles:e.array(I),webConfigFiles:e.array(I),dotenvFiles:e.array(e.object({path:e.string()})),errors:e.array(q)}),B=e.object({cliVersion:e.string(),nodeVersion:e.string(),platform:e.string(),arch:e.string(),shell:e.string().optional()}),Y=e.object({remoteApp:h,account:e.discriminatedUnion("type",[e.object({type:e.literal("UserAccount"),email:e.string()}),e.object({type:e.literal("ServiceAccount"),orgName:e.string()}),e.object({type:e.literal("UnknownAccount")})]),project:Q,system:B,devStoreUrl:e.string().optional(),name:e.string(),idEnvironmentVariableName:e.literal("SHOPIFY_API_KEY"),directory:e.string(),configPath:e.string(),configuration:l,webs:e.array(z),dotenv:e.object({path:e.string(),variables:e.record(e.string())}).passthrough().optional(),errors:e.object({errors:e.array(J)}).passthrough(),specifications:e.array(A),remoteFlags:e.array(e.string()),realExtensions:e.array(v),devApplicationURLs:l.optional(),_hiddenConfig:l,packageManager:e.string(),nodeDependencies:e.record(e.string()),usesWorkspaces:e.boolean(),organization:e.object({id:e.string(),businessName:e.string(),source:e.string()}),allExtensions:e.array(v)}).passthrough(),V=e.object({SHOPIFY_API_KEY:e.string(),SHOPIFY_API_SECRET:e.string().optional(),SCOPES:e.string()}),d=C({name:"AppInfoResult",schema:e.union([V,Y]),definitions:{AppInfo:Y,AppInfoRemoteApp:h,AppInfoProject:Q,AppInfoSystem:B,AppInfoWebEnvironment:V,AppInfoExtension:v,AppInfoSpecification:A,AppInfoClientSteps:H,AppInfoWeb:z,AppInfoConfigurationError:J}});async function X(r,t,o,n,i){if(i.webEnv)return await W(t,o.source),{SHOPIFY_API_KEY:t.apiKey,...t.apiSecretKeys[0]?{SHOPIFY_API_SECRET:t.apiSecretKeys[0].secret}:{},SCOPES:m(r.configuration)};let s={...r,packageManager:n.packageManager,nodeDependencies:n.nodeDependencies,usesWorkspaces:n.usesWorkspaces,organization:{id:o.id,businessName:o.businessName,source:o.source},remoteApp:h.parse(t),account:await t.developerPlatformClient.accountInfo(),project:{directory:n.directory,appConfigFiles:n.appConfigFiles.map(E),extensionConfigFiles:n.extensionConfigFiles.map(E),webConfigFiles:n.webConfigFiles.map(E),dotenvFiles:[...n.dotenvFiles.values()].map(({path:c})=>({path:c})),errors:(n.errors??[]).map(({path:c,message:oe})=>({path:c,message:oe}))},system:{cliVersion:f,nodeVersion:process.version,...g(),shell:process.env.SHELL},devStoreUrl:r.configuration.build?.dev_store_url??r.hiddenConfig.dev_store_url,allExtensions:G(r.allExtensions.filter(c=>c.isReturnedAsInfo())),realExtensions:G(r.realExtensions),specifications:r.specifications.map(Z)},a=JSON.parse(JSON.stringify(Object.fromEntries(Object.entries(s).filter(([c])=>c!=="configSchema"))));return d.validate(a)}function Z(r){return{identifier:r.identifier,externalIdentifier:r.externalIdentifier,externalName:r.externalName,group:r.group,additionalIdentifiers:r.additionalIdentifiers,partnersWebIdentifier:r.partnersWebIdentifier,surface:r.surface,registrationLimit:r.registrationLimit,experience:r.experience,uidStrategy:r.uidStrategy,dependency:r.dependency,graphQLType:r.graphQLType,clientSteps:r.clientSteps,..."loadedRemoteSpecs"in r?{loadedRemoteSpecs:r.loadedRemoteSpecs}:{}}}function E({path:r,content:t,errors:o}){return{path:r,content:t,errors:o.map(({path:n,message:i})=>({path:n,message:i}))}}function G(r){return r.map(t=>({...t,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,surface:t.surface,features:t.features,dependency:t.dependency,specification:Z(t.specification)}))}p();async function se(r){let{app:t,remoteApp:o,organization:n,project:i}=r,s=await o.developerPlatformClient.accountInfo();return new j(t,o,n,i,s).output()}async function ee(r){N({customSections:await se(r)})}function ae(r,t){if(t==="json")return d.encode(r);if(!("name"in r))return M({variables:Object.entries(r).map(([o,n])=>({name:o,value:n}))});throw new Error("App information text output requires the loaded app context.")}function te(r,t){U(ae(r,t))}var pe="unknown",y={subdued:"Not yet configured"},ce="NOT LOADED",j=class{app;remoteApp;organization;project;account;constructor(t,o,n,i,s){this.app=t,this.remoteApp=o,this.organization=n,this.project=i,this.account=s}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let t=y;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(t=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let o=["User","unknown"],n=this.account;return O(n)?o=["Service account",n.orgName]:F(n)&&(o[1]=n.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:P(this.app.configPath)||b.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:y],["Client ID",this.remoteApp.apiKey||y],["Organization",`${this.organization.businessName} (${this.organization.id})`],["Access scopes",m(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??y],["Update URLs",t],o],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:T(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let t=this.webComponentsSection();return[{title:`
2
- Directory components`.toUpperCase(),body:""},...t?[t]:[],...this.extensionsSections()]}webComponentsSection(){let t=[],o=[];if(this.app.webs[0])return this.app.webs.forEach(n=>{if(n.configuration)if(n.configuration.name){let{name:i,roles:s}=n.configuration,a=u(this.app.directory,n.directory);o.push([` \u{1F4C2} ${i}`,{filePath:a||"/"}]),s.length>0&&o.push([" roles",s.join(", ")])}else n.configuration.roles.forEach(i=>{o.push([` \u{1F4C2} ${i}`,{filePath:u(this.app.directory,n.directory)}])});else o.push([{subdued:` \u{1F4C2} ${pe}`},{filePath:u(this.app.directory,n.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${n.directory}/${b.web}`);t.push(...i.map(s=>s.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...o,...t.map(n=>[{error:"error"},{error:this.formattedError(n)}])])}extensionsSections(){let t=this.app.allExtensions.filter(i=>i.isReturnedAsInfo()),n=w(t.map(i=>i.type)).map(i=>{let s=t.filter(a=>a.type===i);if(s[0])return this.subtableSection(s[0].externalType,s.flatMap(a=>this.extensionSubSection(a)))});return x(n)}extensionSubSection(t){let o=t.configuration,n=[[`\u{1F4C2} ${t.handle||ce}`,{filePath:u(this.app.directory,t.directory)}],[" config file",{filePath:u(t.directory,t.configurationPath)}]];o&&"metafields"in o&&Array.isArray(o.metafields)&&o.metafields.length>0&&n.push([" metafields",`${o.metafields.length}`]);let i=this.app.errors.getErrors(t.configurationPath);for(let s of i)n.push([{error:" error"},{error:this.formattedError(s.message)}]);return n}formattedError(t){let o=t.trim();if(k())return o;let[n,...i]=o.split(`
3
- `);return[`! ${n}`,...i.map(s=>` ${s}`)].join(`
4
- `)}async systemInfoSection(){let{platform:t,arch:o}=g();return this.tableSection("Tooling and System",[["Shopify CLI",f],["Package manager",this.project.packageManager],["OS",`${t}-${o}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(t,o,{isFirstItem:n=!1}={}){return{title:`${n?"":`
5
- `}${t.toUpperCase()}
6
- `,body:{tabularData:o,firstColumnSubdued:!0}}}subtableSection(t,o){return{title:t,body:{tabularData:o,firstColumnSubdued:!0}}}};var ne=re(ie(),1);var _=class r extends K{static summary="Print basic information about your app and extensions.";static descriptionWithMarkdown=`The information returned includes the following:
7
-
8
- - The app and dev store that's used when you run the [dev](https://shopify.dev/docs/api/shopify-cli/app/app-dev) command. You can reset these configurations using [\`dev --reset\`](https://shopify.dev/docs/api/shopify-cli/app/app-dev#flags-propertydetail-reset).
9
- - The [structure](https://shopify.dev/docs/apps/tools/cli/structure) of your app project.
10
- - The [access scopes](https://shopify.dev/docs/api/usage) your app has requested.
11
- - System information, including the package manager and version of Shopify CLI used in the project.`;static get jsonOutputSchema(){return d}static description=this.descriptionForHelp();static flags={...R,...D,...L,"web-env":ne.Flags.boolean({hidden:!1,description:"Outputs environment variables necessary for running and deploying web/.",env:"SHOPIFY_FLAG_OUTPUT_WEB_ENV",default:!1})};async run(){let{flags:t}=await this.parse(r),{app:o,project:n,remoteApp:i,organization:s}=await $({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0});if(t.json||t["web-env"]){let a=await X(o,i,s,n,{webEnv:t["web-env"]});te(a,t.json?"json":"text")}else await ee({app:o,remoteApp:i,organization:s,project:n});return o.errors.isEmpty()||process.exit(2),{app:o}}};export{_ as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-ZBVHPC6W.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
@@ -1,25 +0,0 @@
1
- import{a as R,b as V,c as H,d as i,e as O,f as _,g as q,h as x,i as C}from"./chunk-CWR3IFXD.js";import{a as M}from"./chunk-NPB753M3.js";import{a as k}from"./chunk-D4LFWIFE.js";import{Ma as L,ja as F}from"./chunk-XV6XCOTG.js";import{b as I,c as A,f as p}from"./chunk-5AWELO3D.js";import{E as m,G as b,K as w}from"./chunk-V654BMS7.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{h as P}from"./chunk-J7BTC45S.js";import{Cb as S,Eb as E,wb as T,zb as h}from"./chunk-RIG66DIQ.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as Q}from"./chunk-YTUUU33R.js";import{i as v}from"./chunk-IWTNUJGY.js";import{e as X,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function D(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function W(e){let t=e.map(o=>({label:o,value:o}));return await b({message:"Webhook Topic",choices:t})}async function B(e){return m({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function N(){return m({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function Y(e){return(await w({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!O(o,e))return`Invalid address.
2
- ${c(e)}`}})).trim()}function Z(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function c(e){return Z(e).map(t=>` \xB7 ${E(t)}`).join(`
3
- `)}async function G(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:l}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(F({appName:s.title,configFile:v(l.configPath)}),{clientSecret:s.apiSecretKeys.find(y=>y.secret).secret,apiKey:s.apiKey})}async function j(e,t,r){let o=await R(e,r);return t?q(t,o):B(o)}async function z(e,t,r,o){let s=await D(e,t,o);return r?x(r,t,s):W(s)}async function U(e,t){let r=e??C(t)??await N(),o=t??await Y(r);return _(o,r)}async function J(e){let t=await ee(e);return te(t)}async function ee(e){let t=await j(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await z(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await U(e.deliveryMethod,e.address),l=await G(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:l.apiKey,clientSecret:l.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function te(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await V(e.developerPlatformClient,t,e.organizationId);if(!r.success)return{status:"failed",reason:"sample-request",userErrors:r.userErrors};let o={topic:e.topic,apiVersion:e.apiVersion,deliveryMethod:e.deliveryMethod,address:e.address,status:"enqueued"};return e.deliveryMethod===i.LOCALHOST?await H(e.address,r.samplePayload,r.headers)?{status:"success",delivery:{...o,status:"delivered"},samplePayloadIsEmpty:r.samplePayload===JSON.stringify({})}:{status:"failed",reason:"localhost-delivery"}:{status:"success",delivery:o,samplePayloadIsEmpty:r.samplePayload===JSON.stringify({})}}a();var K=n.object({topic:n.string(),apiVersion:n.string(),deliveryMethod:n.enum(["localhost","http","google-pub-sub","event-bridge"]),address:n.string(),status:n.enum(["delivered","enqueued"]).describe("Remote delivery is enqueued, not confirmed received.")}).strict(),u=g({name:"AppWebhookTriggerResult",schema:n.object({status:n.literal("success"),delivery:K}).strict(),definitions:{AppWebhookDelivery:K}});a();function $(e,t){if(e.status==="failed"){if(t==="json"){let r=new P(e.reason==="sample-request"?"Webhook sample request failed.":"Localhost delivery failed");throw e.reason==="sample-request"&&(r.details={userErrors:e.userErrors.map(({message:o,fields:s})=>({message:o,fieldPath:s}))}),r}S(e.reason==="sample-request"?`Request errors:
4
- ${re(e.userErrors)}`:"Localhost delivery failed");return}t==="json"?T(u.encode({status:e.status,delivery:e.delivery})):e.delivery.status==="delivered"?h("Localhost delivery sucessful"):e.samplePayloadIsEmpty&&h("Webhook has been enqueued for delivery")}function re(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
5
- `)).join(`
6
- `)}catch{return JSON.stringify(e)}}var d=X(Q(),1);var f=class e extends M{static summary="Trigger delivery of a sample webhook topic payload to a designated address.";static descriptionWithMarkdown=`
7
- Triggers the delivery of a sample Admin API event topic payload to a designated address.
8
-
9
- You should use this command to experiment with webhooks, to initially test your webhook configuration, or for unit testing. However, to test your webhook configuration from end to end, you should always trigger webhooks by performing the related action in Shopify.
10
-
11
- Because most webhook deliveries use remote endpoints, you can trigger the command from any directory where you can use Shopify CLI, and send the webhook to any of the supported endpoint types. For example, you can run the command from your app's local directory, but send the webhook to a staging environment endpoint.
12
-
13
- To learn more about using webhooks in a Shopify app, refer to [Webhooks overview](https://shopify.dev/docs/apps/webhooks).
14
-
15
- ### Limitations
16
-
17
- - Webhooks triggered using this method always have the same payload, so they can't be used to test scenarios that differ based on the payload contents.
18
- - Webhooks triggered using this method aren't retried when they fail.
19
- - Trigger requests are rate-limited using the [Partner API rate limit](https://shopify.dev/docs/api/partner#rate_limits).
20
- - You can't use this method to validate your API webhook subscriptions.
21
- `;static get jsonOutputSchema(){return u}static description=this.descriptionForHelp();static flags={...I,...k,...A,help:d.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."})),"api-version":p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."})),"delivery-method":d.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
22
- You will need a different address type for each delivery-method:
23
- ${c(i.HTTP)}
24
- ${c(i.PUBSUB)}
25
- ${c(i.EVENTBRIDGE)}`}))};async run(){let{flags:t}=await this.parse(e),r=await L({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o={...r,topic:t.topic,apiVersion:t["api-version"],deliveryMethod:t["delivery-method"],address:t.address,clientId:t["client-id"],clientSecret:t["client-secret"],path:t.path,config:t.config,organizationId:r.organization.id},s=await J(o);return $(s,t.json?"json":"text"),{app:r.app}}};export{f as a};
@@ -1,4 +0,0 @@
1
- import{a as $}from"./chunk-NMLLRFZF.js";import{a as V}from"./chunk-NPB753M3.js";import{a as w}from"./chunk-D4LFWIFE.js";import{L as P,Ma as x}from"./chunk-XV6XCOTG.js";import{e as L}from"./chunk-7AWAOPLA.js";import{b as ae}from"./chunk-HP2ZAAY7.js";import{D,S as T,ea as A,ia as j,u as g}from"./chunk-NCPZVARH.js";import{b as E,c as M}from"./chunk-5AWELO3D.js";import{I as R,J as k,z as O}from"./chunk-V654BMS7.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{k as I}from"./chunk-J7BTC45S.js";import{qb as p,sb as c,wb as C,yb as v}from"./chunk-RIG66DIQ.js";import{b as m}from"./chunk-FZCGRIOM.js";import{b as te}from"./chunk-YTUUU33R.js";import{e as _,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};r();async function de(i){let n="Admin",e=L(i.storeFqdn,"unstable");return{token:i.token,api:n,url:e}}async function U(i){return j({query:i.query,...await de(i.session),variables:i.variables,autoRateLimitRestore:i.autoRateLimitRestore})}r();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var H=_(ae(),1);var oe={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function B({query:i,session:n,toNodes:e,toVariables:t,performQuery:d=a=>U({query:i,session:n,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=e(await d(t(a))),s=[];for(s.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=e(await d(t(a))),s.push(...o.nodes);return{status:"ok",items:s}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function G(i,n){let e="";for(let t of i)e=(0,H.updateTomlValues)(e,t);return`# ${n}
2
- ${e}`}function se(i,n){let e=n.map(fe).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:s}=a;return G(s,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=i.flatMap(({items:a,ownerType:o,graphQLOwner:s})=>a.map(l=>({result:pe(l,o),graphQLOwner:s}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:s,key:l,patches:S}=a;return G(S,`namespace: ${s==="app"?"$app":`$app:${s}`} key: ${l} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...e,...t].join(`
3
- `),metafieldCount:t.length,metaobjectCount:e.length}}async function Y(i){let n=await ue(i),e=await le(n),t=await re(n),d=e.nodes,a=t.nodes;i.includeExistingDeclaredDefinitions||(d=me(d,i.appConfiguration),a=ce(a,i.appConfiguration));let{tomlContent:o,metafieldCount:s,metaobjectCount:l}=se(d,a);return{status:"success",storeDomain:n.storeFqdn,metafieldCount:s,metaobjectCount:l,tomlContent:o,skippedSections:[...e.skippedSections,...t.skippedSections]}}async function le(i){let n=[];return await R(Object.entries(oe).map(([e,t])=>({title:c`Loading ${p.green(e)} metafields`,task:async()=>{let d=await B({query:q,session:i,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});n.push({metafields:d,ownerType:e,graphQLOwner:t})}}))),{nodes:n.map(({metafields:e,ownerType:t,graphQLOwner:d})=>e.status==="ok"?{ownerType:t,items:e.items,graphQLOwner:d}:null).filter(e=>e!==null),skippedSections:n.filter(({metafields:e})=>e.status==="scope_error").map(({graphQLOwner:e})=>({type:"metafields",ownerType:e}))}}async function re(i){let n=await k({title:c`Loading ${p.green("metaobjects")}`,task:async()=>B({query:K,session:i,toNodes:e=>e.metaobjectDefinitions,toVariables:e=>({after:e})})});return n.status==="ok"?{nodes:n.items,skippedSections:[]}:{nodes:[],skippedSections:[{type:"metaobjects"}]}}function me(i,n){return i.map(e=>{let t=e.items.filter(d=>!J(n,[e.ownerType,"metafields",f(d.namespace)??"",d.key]));return t.length>0?{...e,items:t}:null}).filter(e=>e!==null)}function ce(i,n){return i.filter(e=>!J(n,["metaobjects","app",f(e.type)??""]))}function J(i,n){let e=i;for(let t of n){if(!e[t])return!1;e=e[t]}return!0}async function ue(i){let{remoteApp:n,store:e}=i,t=n.apiSecretKeys[0]?.secret;if(!t)throw new I("No API secret keys found for app");return await T(e.shopDomain,n.apiKey,t)}function f(i){if(!i.match(/^app--\d+/))return null;let n="app";return i.match(/^app--\d+--/)&&(n=i.replace(/^app--\d+--/,"")),n}function pe(i,n){let e=f(i.namespace);if(!e)return{status:"not_app_reserved"};let t=i.key,d=ke(i),a=be(d,n,e,t);return{status:"ok",key:t,namespace:e,patches:a}}function fe(i){let n=f(i.type);if(!n)return{status:"not_app_reserved"};let e=ve(i,n),t=Ne(e,n);return{status:"ok",typeName:n,patches:t}}function ke(i){let n={name:i.name===i.key?void 0:i.name,type:i.type.name,description:i.description??void 0,capabilities:u({admin_filterable:i.capabilities.adminFilterable.enabled||void 0}),access:u({admin:Z(i.access.admin),storefront:X(i.access.storefront),customer_account:Se(i.access.customerAccount)}),validations:z(i.validations)},{type:e,validations:t}=W(n.type,n.validations);return n.type=e,n.validations=t,n}function ve(i,n){return{name:i.name===n?void 0:i.name,description:i.description??void 0,display_name_field:i.displayNameKey??void 0,access:u({admin:Z(i.access.admin),storefront:X(i.access.storefront)}),capabilities:u({translatable:i.capabilities.translatable.enabled||void 0,publishable:i.capabilities.publishable.enabled||void 0,renderable:i.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:i.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:i.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(i.fieldDefinitions.map(e=>{let t={type:e.type.name,description:e.description??void 0,name:e.name===e.key?void 0:e.name,required:e.required||void 0,validations:z(e.validations)},{type:d,validations:a}=W(t.type,t.validations);return t.type=d,t.validations=a,[e.key,t]}))}}function W(i,n){if(!n)return{type:i,validations:void 0};if(n.metaobject_definition_type&&typeof n.metaobject_definition_type=="string"){let e=f(n.metaobject_definition_type);return{type:`${i}<$app:${e}>`,validations:u({...n,metaobject_definition_type:void 0})}}if(n.metaobject_definition_types&&Array.isArray(n.metaobject_definition_types)&&n.metaobject_definition_types.every(e=>typeof e=="string")){let e=n.metaobject_definition_types.map(t=>f(t));return{type:`${i}<${e.map(t=>`$app:${t}`).join(",")}>`,validations:u({...n,metaobject_definition_types:void 0})}}return{type:i,validations:n}}function z(i){let n=e=>{try{return JSON.parse(e)}catch{return e}};return u(Object.fromEntries(i.filter(e=>e.value!==void 0&&e.name!=="metaobject_definition_id"&&e.name!=="metaobject_definition_ids").map(e=>[e.name,e.value?n(e.value):void 0])))}function be(i,n,e,t){let d=[[[n,"metafields",e,t,"name"],i.name],[[n,"metafields",e,t,"type"],i.type],[[n,"metafields",e,t,"description"],i.description]],a=[[[n,"metafields",e,t,"access","admin"],i.access?.admin],[[n,"metafields",e,t,"access","storefront"],i.access?.storefront],[[n,"metafields",e,t,"access","customer_account"],i.access?.customer_account],[[n,"metafields",e,t,"capabilities","admin_filterable"],i.capabilities?.admin_filterable||void 0]];return i.validations&&Q(i.validations).forEach(({validationKey:s,actualValue:l})=>{d.push([[n,"metafields",e,t,"validations",s],l])}),[b(d),b(a)]}function Ne(i,n){let e=[[["metaobjects","app",n,"name"],i.name===n?void 0:i.name],[["metaobjects","app",n,"description"],i.description],[["metaobjects","app",n,"display_name_field"],i.display_name_field]],t=[[["metaobjects","app",n,"access","admin"],i.access?.admin],[["metaobjects","app",n,"access","storefront"],i.access?.storefront]];return i.capabilities?.translatable&&t.push([["metaobjects","app",n,"capabilities","translatable"],!0]),i.capabilities?.publishable&&t.push([["metaobjects","app",n,"capabilities","publishable"],!0]),i.capabilities?.renderable&&(t.push([["metaobjects","app",n,"capabilities","renderable"],!0]),i.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",n,"capabilities","renderable_meta_title_field"],i.capabilities.renderable_meta_title_field]),i.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",n,"capabilities","renderable_meta_description_field"],i.capabilities.renderable_meta_description_field])),Object.entries(i.fields).forEach(([d,a])=>{if(typeof a=="string")e.push([["metaobjects","app",n,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([s,l])=>l!==void 0));Object.keys(o).length===1?e.push([["metaobjects","app",n,"fields",d],a.type]):(e.push([["metaobjects","app",n,"fields",d,"type"],a.type]),e.push([["metaobjects","app",n,"fields",d,"description"],a.description]),e.push([["metaobjects","app",n,"fields",d,"name"],a.name]),e.push([["metaobjects","app",n,"fields",d,"required"],a.required||void 0]),a.validations&&Q(a.validations).forEach(({validationKey:l,actualValue:S})=>{e.push([["metaobjects","app",n,"fields",d,"validations",l],S])}))}}),[b(e),b(t)]}function Q(i){return Object.entries(i).map(([n,e])=>{let t;return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&e.every(d=>typeof d=="string")?t=e:t=JSON.stringify(e),{validationKey:n,actualValue:t}})}function Z(i){switch(i){case"MERCHANT_READ_WRITE":return"merchant_read_write";case"MERCHANT_READ":case"PRIVATE":case"PUBLIC_READ":case"PUBLIC_READ_WRITE":case null:case void 0:return}}function X(i){switch(i){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function Se(i){switch(i){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function u(i){if(i&&!A(i)&&!(typeof i=="object"&&Object.values(i).every(n=>n===void 0)))return i}function b(i){return i.filter(([n,e])=>e!==void 0)}r();var ee=m.object({type:m.literal("metafields"),ownerType:m.string().min(1).describe("The Admin API metafield owner type, such as PRODUCT.")}).strict(),ie=m.object({type:m.literal("metaobjects")}).strict(),N=h({name:"ImportCustomDataDefinitionsResult",schema:m.object({status:m.literal("success"),storeDomain:m.string().nullable().describe("The full myshopify.com domain of the development store, or null when unavailable."),metafieldCount:m.number().int().nonnegative().describe("The number of available metafields converted to TOML."),metaobjectCount:m.number().int().nonnegative().describe("The number of available metaobjects converted to TOML."),toml:m.string().describe("Suggested native TOML for app-reserved definitions. No file is written."),skippedSections:m.array(m.discriminatedUnion("type",[ee,ie])).describe("Sections skipped because required access scopes are unavailable. An empty array means all requests were authorized.")}).strict(),definitions:{SkippedMetafields:ee,SkippedMetaobjects:ie}});r();function ne({status:i,metafieldCount:n,metaobjectCount:e,storeDomain:t,tomlContent:d,skippedSections:a},o=!1){if(o){let s=D(t);C(N.encode({status:i,storeDomain:s?`${s}.myshopify.com`:null,metafieldCount:n,metaobjectCount:e,toml:d,skippedSections:a.map(l=>l.type==="metafields"?{type:l.type,ownerType:l.ownerType}:{type:l.type})}));return}O({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${n} metafields`},"and",{warn:`${e} metaobjects`},"from",{warn:t},"into TOML, ready for you to copy."],orderedNextSteps:!0,nextSteps:["Review the suggested TOML carefully before applying.",["Missing sections? Make sure your app has the required access scopes to load metafields and metaobjects (e.g.",{command:"read_customers"},"to load customer metafields,",{command:"read_metaobject_definitions"},"to load metaobjects.)"],["Missing definitions? Only metafields and metaobjects that are app-reserved (using",{command:"$app"},") will be converted."],["When you're ready, add the generated TOML to your app's configuration file and test out changes with the",{command:"shopify app dev"},"command."]]}),ye(d)}function ye(i){let n=i.split(`
4
- `);for(let e of n)e.match(/^\s*\[/)?v(c`${p.green(e)}`):e.match(/^\s*#/)?v(c`${p.gray(e)}`):v(c`${e}`)}var y=_(te(),1);var F=class i extends V{static summary="Import metafield and metaobject definitions.";static descriptionWithMarkdown="Import metafield and metaobject definitions from your development store. [Read more about declarative custom data definitions](https://shopify.dev/docs/apps/build/custom-data/declarative-custom-data-definitions).";static get jsonOutputSchema(){return N}static description=this.descriptionForHelp();static flags={...E,...w,...M,store:y.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async n=>g(n)}),"include-existing":y.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};async run(){let{appContextResult:n,json:e,...t}=await k({title:c`Loading application`,task:async()=>{let{flags:a}=await this.parse(i);await P(a.path);let o=await x({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),s=await $({appContextResult:o,storeFqdn:a.store,forceReselectStore:a.reset});return{appContextResult:o,json:a.json,appConfiguration:o.app.configuration,remoteApp:o.remoteApp,store:s,includeExistingDeclaredDefinitions:a["include-existing"]}}}),d=await Y(t);return ne(d,e),{app:n.app}}};export{F as a};
@@ -1 +0,0 @@
1
- import{i as t,ka as r}from"./chunk-XV6XCOTG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function o(i,e,s){return await r(e,s.source),{variables:[{name:"SHOPIFY_API_KEY",value:e.apiKey,isSecret:!1},...e.apiSecretKeys[0]?[{name:"SHOPIFY_API_SECRET",value:e.apiSecretKeys[0].secret,isSecret:!0}]:[],{name:"SCOPES",value:t(i.configuration),isSecret:!1}]}}export{o as a};