shopify 5.0.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-QFDTQYPM.js +1 -0
- package/dist/analytics-XADBBHOH.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/chunk-24Q6X53V.js +1 -0
- package/dist/{chunk-F3OM2YO6.js → chunk-25MYHE4W.js} +1 -1
- package/dist/{chunk-HP2ZAAY7.js → chunk-27JT4NA4.js} +1 -1
- package/dist/chunk-2BYW3BYX.js +1 -0
- package/dist/chunk-2KFYIYLI.js +1 -0
- package/dist/{chunk-V654BMS7.js → chunk-2KUM2RU4.js} +60 -60
- package/dist/chunk-2PD7TNFS.js +275 -0
- package/dist/{chunk-3JACWBUC.js → chunk-3C72S6LO.js} +1 -1
- package/dist/chunk-3FZ4LE6A.js +10 -0
- package/dist/{chunk-ZBVHPC6W.js → chunk-3GD5ESWN.js} +1 -1
- package/dist/chunk-3KGN6N7E.js +1 -0
- package/dist/{chunk-X4A5D3PZ.js → chunk-3MZ7ELHS.js} +2 -2
- package/dist/{chunk-VXL5FBE7.js → chunk-3PS52ZT4.js} +1 -1
- package/dist/chunk-3PYDIBTX.js +1 -0
- package/dist/chunk-3Z75BVGJ.js +1 -0
- package/dist/chunk-4FWPOGPQ.js +1 -0
- package/dist/chunk-4IP37MBX.js +1 -0
- package/dist/chunk-4NFX7YCT.js +1 -0
- package/dist/chunk-4TCXPHKN.js +1 -0
- package/dist/chunk-4WBWZIN5.js +6 -0
- package/dist/chunk-5534MHZW.js +97 -0
- package/dist/{chunk-C4EKNOLY.js → chunk-5C6CXU74.js} +1 -1
- package/dist/{chunk-56GKTWFF.js → chunk-5HOZDOJ7.js} +1 -1
- package/dist/{chunk-CX3ANDPI.js → chunk-5PSQFQL6.js} +1 -1
- package/dist/chunk-5T3ZT6CC.js +1 -0
- package/dist/chunk-62NW4EPI.js +17 -0
- package/dist/chunk-65NCQJYR.js +1 -0
- package/dist/{chunk-QGWC23HQ.js → chunk-6BYHL3DS.js} +1 -1
- package/dist/chunk-6I7DT7QR.js +3 -0
- package/dist/chunk-6IMTMS2S.js +3 -0
- package/dist/chunk-7A77JCED.js +11 -0
- package/dist/chunk-7ART2IKU.js +1 -0
- package/dist/{chunk-TTBNFGCW.js → chunk-7BPT5V24.js} +2 -2
- package/dist/{chunk-V7H7ITCF.js → chunk-7CT3NIXI.js} +1 -1
- package/dist/chunk-7DBKSSDK.js +1 -0
- package/dist/chunk-7HECBXSP.js +1 -0
- package/dist/chunk-7KID5BIR.js +4 -0
- package/dist/{chunk-63UKZLPC.js → chunk-7N7KRZOM.js} +1 -1
- package/dist/{chunk-NJVNGEOU.js → chunk-7NRHZG5Y.js} +102 -102
- package/dist/chunk-7PHDEILV.js +1 -0
- package/dist/chunk-A2NSORBM.js +2296 -0
- package/dist/chunk-A54TADAZ.js +1 -0
- package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
- package/dist/chunk-AGTUAQHX.js +4 -0
- package/dist/chunk-AHYI27QL.js +11 -0
- package/dist/chunk-ALINJ6J2.js +1 -0
- package/dist/chunk-AMVWKHNY.js +1 -0
- package/dist/{chunk-D4LFWIFE.js → chunk-ASKBYEO7.js} +1 -1
- package/dist/{chunk-LENSEW2F.js → chunk-AVJJGQOP.js} +1 -1
- package/dist/{chunk-QVVQUJQL.js → chunk-AY3AAV77.js} +1 -1
- package/dist/{chunk-DSKAIC7O.js → chunk-BFAOTQGH.js} +1 -1
- package/dist/{chunk-KGASGUDQ.js → chunk-BPKQA2EO.js} +1 -1
- package/dist/{chunk-KLYGMYXV.js → chunk-C2HJEGTS.js} +1 -1
- package/dist/chunk-C72QNK6O.js +4 -0
- package/dist/chunk-CDSDQTNB.js +16 -0
- package/dist/chunk-CEQGOCKX.js +1 -0
- package/dist/{chunk-QBE6XVU3.js → chunk-CIGWIKOW.js} +1 -1
- package/dist/chunk-CQAD5WML.js +1 -0
- package/dist/chunk-CRQQCT7F.js +1 -0
- package/dist/chunk-CZNUBAAG.js +3 -0
- package/dist/{chunk-WQOPLNDH.js → chunk-D7IMC2G4.js} +1 -1
- package/dist/{chunk-LGXNXAQA.js → chunk-DC7ITY6T.js} +1 -1
- package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
- package/dist/{chunk-4EDE3UH7.js → chunk-DDZYIC76.js} +2 -2
- package/dist/chunk-DGIIUQH3.js +1 -0
- package/dist/{chunk-5AWELO3D.js → chunk-DMOLPSXF.js} +1 -1
- package/dist/{chunk-GSGCSBRN.js → chunk-DOLVBTCB.js} +1 -1
- package/dist/{chunk-MXXMIPUN.js → chunk-DTKGI43P.js} +2 -2
- package/dist/{chunk-37P5YOP2.js → chunk-DVD7I2TX.js} +2 -2
- package/dist/chunk-DVFVO6ZE.js +2 -0
- package/dist/{chunk-7U2MTK6I.js → chunk-DXEMSLI6.js} +1 -1
- package/dist/chunk-EDWIWZWM.js +15 -0
- package/dist/chunk-ELR6AZT4.js +9 -0
- package/dist/chunk-EVQPYZ7F.js +5 -0
- package/dist/chunk-F5QKMDP3.js +1 -0
- package/dist/{chunk-J5DUFSR4.js → chunk-F6IQWX2F.js} +1 -1
- package/dist/{chunk-XZLM4HLO.js → chunk-FAVPTYIR.js} +1 -1
- package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
- package/dist/{chunk-DVW7NDVD.js → chunk-FHKK3QU7.js} +1 -1
- package/dist/chunk-FKKJQGYX.js +7 -0
- package/dist/chunk-FQLXQ7WN.js +16 -0
- package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
- package/dist/{chunk-AIEVQSI3.js → chunk-FU7PYW7H.js} +1 -1
- package/dist/{chunk-5YUDEPEY.js → chunk-FYQE5E6U.js} +1 -1
- package/dist/chunk-G3EWGBXR.js +1 -0
- package/dist/chunk-G3RNO2TC.js +1 -0
- package/dist/{chunk-7NYCJG2U.js → chunk-GGCP2TIK.js} +1 -1
- package/dist/chunk-GSFWBFFH.js +1 -0
- package/dist/{chunk-NUCDRKDW.js → chunk-H2KGP2FM.js} +2 -2
- package/dist/{chunk-PVASYKSJ.js → chunk-H4K3F7PP.js} +1 -1
- package/dist/chunk-HGZ2HRPO.js +13 -0
- package/dist/chunk-HMPRWNGG.js +203 -0
- package/dist/chunk-HP4QYSBQ.js +1 -0
- package/dist/{chunk-LR4J4KYJ.js → chunk-HSTZV6H7.js} +2 -2
- package/dist/{chunk-ZHHTQRWU.js → chunk-HVUMVDUG.js} +1 -1
- package/dist/{chunk-IY5EI5V2.js → chunk-HYCNYUHW.js} +1 -1
- package/dist/{chunk-FHNJLON5.js → chunk-I3WRA2LH.js} +1 -1
- package/dist/{chunk-MS7DTL4U.js → chunk-IRLYC626.js} +2 -2
- package/dist/chunk-IWNFPBH2.js +33 -0
- package/dist/{chunk-EA5XVQJT.js → chunk-JALDNBTU.js} +1 -1
- package/dist/{chunk-ZTZGDZCE.js → chunk-JC37YZ4I.js} +1 -1
- package/dist/{chunk-DM7BTMFP.js → chunk-JG4FAT2T.js} +1 -1
- package/dist/chunk-JGLLABZR.js +8 -0
- package/dist/chunk-JIY6XWSC.js +1 -0
- package/dist/{chunk-VG2AESTZ.js → chunk-JIYCZXK5.js} +1 -1
- package/dist/chunk-JMSAHCBU.js +35 -0
- package/dist/{chunk-CWR3IFXD.js → chunk-JNSVKDBY.js} +1 -1
- package/dist/chunk-JQU2BJDH.js +3 -0
- package/dist/chunk-JVY6CCLE.js +3 -0
- package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
- package/dist/chunk-KCAWHJGF.js +1 -0
- package/dist/{chunk-M73IECPW.js → chunk-KFO2JNF5.js} +1 -1
- package/dist/chunk-KFR7HWCG.js +9 -0
- package/dist/{chunk-QYFU363G.js → chunk-KHZF73BL.js} +1 -1
- package/dist/{chunk-HT66BOEC.js → chunk-KM4LE7K4.js} +2 -2
- package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
- package/dist/chunk-LFBFPK22.js +1 -0
- package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
- package/dist/chunk-LGDWE3H3.js +1 -0
- package/dist/chunk-LPPEAMI6.js +1 -0
- package/dist/chunk-LXIWMYM4.js +1 -0
- package/dist/chunk-MGWCXTGD.js +1 -0
- package/dist/chunk-MGX7UG44.js +1 -0
- package/dist/chunk-MKFRKNHF.js +3 -0
- package/dist/chunk-MTT6EAQO.js +1 -0
- package/dist/{chunk-75LAVRRL.js → chunk-MU7IVBGI.js} +2 -2
- package/dist/{chunk-36TZ447N.js → chunk-MYMBHVC4.js} +1 -1
- package/dist/chunk-MZDBH4XV.js +4 -0
- package/dist/{chunk-3G2PEYPI.js → chunk-NUBJ2HK7.js} +1 -1
- package/dist/{chunk-K3YALQBQ.js → chunk-NY5N4ANL.js} +1 -1
- package/dist/{chunk-364BVGRY.js → chunk-NYMKGE3J.js} +1 -1
- package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
- package/dist/chunk-O7HZ3EIP.js +1 -0
- package/dist/chunk-OJOF6IYG.js +9 -0
- package/dist/{chunk-EXTVC33U.js → chunk-ONZULPQH.js} +68 -66
- package/dist/chunk-ORMXPSJM.js +1 -0
- package/dist/chunk-ORYEDUKM.js +5 -0
- package/dist/{chunk-MZCIRMZJ.js → chunk-OTMYJWIP.js} +1 -1
- package/dist/chunk-OVJVFB5E.js +20 -0
- package/dist/chunk-OWQEFORZ.js +1 -0
- package/dist/{chunk-43HKFLOU.js → chunk-OXPEBT4I.js} +2 -2
- package/dist/chunk-OXZR2MB4.js +6 -0
- package/dist/chunk-OY5M52EF.js +6 -0
- package/dist/{chunk-FK5OFLSJ.js → chunk-PJZZZNWR.js} +1 -1
- package/dist/chunk-Q2LQJYRK.js +16 -0
- package/dist/chunk-QBRRFFMZ.js +1 -0
- package/dist/{chunk-KNQXCU3Y.js → chunk-QCLE5REL.js} +2 -2
- package/dist/chunk-QGQWVA7N.js +1 -0
- package/dist/chunk-QKPAB245.js +1 -0
- package/dist/chunk-QUPZOBTB.js +1 -0
- package/dist/chunk-R4E2E4NN.js +1 -0
- package/dist/{chunk-2M4BKFYF.js → chunk-R6US7F33.js} +1 -1
- package/dist/chunk-RKNVTEO3.js +5 -0
- package/dist/{chunk-2QQ7EBJD.js → chunk-RLOEI6VE.js} +1 -1
- package/dist/chunk-RSZAAN37.js +1 -0
- package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
- package/dist/chunk-S4KNPCW3.js +81 -0
- package/dist/{chunk-YFRI75U4.js → chunk-SBN3ILXO.js} +1 -1
- package/dist/chunk-SCDGLREP.js +1 -0
- package/dist/chunk-SHOMIS6Q.js +2 -0
- package/dist/chunk-SN3PMWUF.js +6 -0
- package/dist/chunk-SODCXZ5U.js +1 -0
- package/dist/chunk-SPJM7RTD.js +1 -0
- package/dist/chunk-SQL67BKI.js +5 -0
- package/dist/{chunk-MMUGP3WP.js → chunk-SURFUFAZ.js} +1 -1
- package/dist/{chunk-KOTZSPZA.js → chunk-SVQDMZJO.js} +1 -1
- package/dist/chunk-T4ZOTYOY.js +1 -0
- package/dist/chunk-T6C4WC3Z.js +2 -0
- package/dist/chunk-TD6JBHUS.js +1 -0
- package/dist/chunk-TIM4CIXZ.js +22 -0
- package/dist/{chunk-V2FCZC7U.js → chunk-TP7CTMMT.js} +1 -1
- package/dist/chunk-TSPJAMYB.js +1 -0
- package/dist/chunk-TSVEV2UD.js +26 -0
- package/dist/chunk-TTAT62N3.js +25 -0
- package/dist/{chunk-ZVEBXHEY.js → chunk-TUSS6PXB.js} +1 -1
- package/dist/chunk-TXP6KFWO.js +5 -0
- package/dist/chunk-TZHVCMZN.js +6 -0
- package/dist/chunk-UC4TOM36.js +3 -0
- package/dist/{chunk-2YGPWG3I.js → chunk-UFY4L5KQ.js} +1 -1
- package/dist/chunk-UU6UQ2QY.js +1 -0
- package/dist/chunk-V4FC72R6.js +1 -0
- package/dist/chunk-VA2S7W7H.js +10 -0
- package/dist/chunk-VE3IIC7H.js +1 -0
- package/dist/{chunk-EH22T4FI.js → chunk-VJG7VXFU.js} +2 -2
- package/dist/chunk-VQSRU5XL.js +4 -0
- package/dist/chunk-VRIFLMA3.js +70 -0
- package/dist/chunk-WBJFTCEJ.js +1 -0
- package/dist/chunk-WBPP6PO7.js +31 -0
- package/dist/chunk-WE5KY6T6.js +1 -0
- package/dist/chunk-WFPVT2IY.js +1 -0
- package/dist/{chunk-ETXBF6Q7.js → chunk-WLYXBQ2M.js} +1 -1
- package/dist/chunk-WNVOEE6T.js +7 -0
- package/dist/chunk-WPDJVUTY.js +47 -0
- package/dist/chunk-WWCYEZUU.js +1 -0
- package/dist/chunk-WWVDZ3GC.js +3 -0
- package/dist/{chunk-CXPYOLGM.js → chunk-WZBZ7FWP.js} +2 -2
- package/dist/chunk-XEZPN5TR.js +22 -0
- package/dist/{chunk-AQ34X5B3.js → chunk-XLMKHTJ5.js} +1 -1
- package/dist/chunk-XRNBCV2B.js +1 -0
- package/dist/{chunk-B4ISKIXN.js → chunk-XWLNCBAG.js} +1 -1
- package/dist/chunk-YF4AXKM4.js +1 -0
- package/dist/chunk-YKDRUAY3.js +857 -0
- package/dist/{chunk-FPOZMNT2.js → chunk-YNFQBYSL.js} +1 -1
- package/dist/{chunk-2CJQQQW4.js → chunk-YNZLLZU2.js} +1 -1
- package/dist/chunk-YOYPYB4H.js +1 -0
- package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
- package/dist/chunk-YTL45RXR.js +103 -0
- package/dist/chunk-YVPB7OT6.js +6 -0
- package/dist/chunk-YYWSHRO2.js +89 -0
- package/dist/{chunk-5XOEMYEQ.js → chunk-Z5QEXS6F.js} +1 -1
- package/dist/chunk-Z5WFRYVQ.js +6 -0
- package/dist/{chunk-P5W5RVE6.js → chunk-Z6ZRS256.js} +1 -1
- package/dist/chunk-ZMOW2YZ4.js +18 -0
- package/dist/chunk-ZMU4EYXT.js +1 -0
- package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
- package/dist/chunk-ZXZWMXXK.js +7 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs-next.js +1 -0
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +10 -10
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +7 -7
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +21 -21
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +23 -23
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +90 -90
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.d.ts +7 -7
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +24 -24
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.d.ts +7 -7
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli-version-check-V25AVSZ6.js +1 -0
- package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
- package/dist/command-json-schema-C5UZXP2W.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OCGEEV4U.js +1 -0
- package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
- package/dist/data/filters.json +41 -2
- package/dist/data/local_block_entry.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +78 -36
- package/dist/data/section.json +1 -1
- package/dist/data/shopify_system_translations.json +240 -23
- package/dist/data/strict_settings.json +24 -0
- package/dist/data/tags.json +57 -24
- package/dist/data/theme_block.json +1 -1
- package/dist/deprecations-A5AXXKIK.js +1 -0
- package/dist/dist-NORLLIHQ.js +1 -0
- package/dist/dist-XBM4XZS4.js +1 -0
- package/dist/environment-5P7JJ3GI.js +1 -0
- package/dist/environments-Y5JEI3U3.js +1 -0
- package/dist/error-GI4DXVDU.js +1 -0
- package/dist/error-handler-BS2ZENQV.js +1 -0
- package/dist/fs-UOOLPOHJ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -2
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-2OXOS2AW.js +1 -0
- package/dist/http-proxy-node16-NZZ674YW.js +38 -0
- package/dist/index.js +12 -12
- package/dist/is-global-CI77T7NE.js +1 -0
- package/dist/json-error-6PBUR4LQ.js +1 -0
- package/dist/latest-version-75YEFEMK.js +9 -0
- package/dist/lib-4JVADMNT.js +1 -0
- package/dist/lib-L4STV5B2.js +1 -0
- package/dist/lib-LEEN55OD.js +1 -0
- package/dist/{local-KA3IWOZ6.js → local-5NIWPWDS.js} +1 -1
- package/dist/metadata-IXPNNPNJ.js +1 -0
- package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
- package/dist/node-package-manager-ALFEGGD6.js +1 -0
- package/dist/notifications-system-FQW3GKH2.js +1 -0
- package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
- package/dist/os-6TNQTEUN.js +1 -0
- package/dist/output-LEOB5LAM.js +1 -0
- package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
- package/dist/registry-auth-token-EDH77OOW.js +1 -0
- package/dist/registry-url-JMNV3LLX.js +1 -0
- package/dist/semver-HHZRKD6Y.js +1 -0
- package/dist/system-J4CTESP5.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-YDUI56E3.js +1 -0
- package/dist/upgrade-LBCZORG2.js +1 -0
- package/dist/version-2YL4YEQ2.js +1 -0
- package/dist/version-X2CPQVWQ.js +1 -0
- package/dist/workerd-5UPTEWNI.js +18 -0
- package/oclif.manifest.json +25622 -1132
- package/package.json +7 -7
- package/dist/analytics-RSUIYNLC.js +0 -1
- package/dist/analytics-V2SDYXQJ.js +0 -1
- package/dist/chunk-2AW3KBTP.js +0 -1
- package/dist/chunk-2M535QQJ.js +0 -6
- package/dist/chunk-2NZ7GDDR.js +0 -2
- package/dist/chunk-2RFCYZMG.js +0 -47
- package/dist/chunk-2S5NPJEJ.js +0 -5
- package/dist/chunk-2TPLPZA2.js +0 -3
- package/dist/chunk-32O27NE3.js +0 -1
- package/dist/chunk-335BUVBP.js +0 -1
- package/dist/chunk-46JYM3GH.js +0 -1
- package/dist/chunk-4GQEXVDT.js +0 -1
- package/dist/chunk-4IUXLUFD.js +0 -6
- package/dist/chunk-4QZ6OBXL.js +0 -4
- package/dist/chunk-4SDCXKYR.js +0 -31
- package/dist/chunk-5AQ5JT2V.js +0 -7
- package/dist/chunk-5D4FNAAD.js +0 -3
- package/dist/chunk-5TWYJQQO.js +0 -1
- package/dist/chunk-5YXYYQBX.js +0 -1
- package/dist/chunk-6JZC6UKY.js +0 -20
- package/dist/chunk-6Y6A2QGK.js +0 -3
- package/dist/chunk-7AWAOPLA.js +0 -1
- package/dist/chunk-7XAEI4XT.js +0 -3
- package/dist/chunk-A7LBGXWG.js +0 -1
- package/dist/chunk-ADVLRSSO.js +0 -1
- package/dist/chunk-AOBE6HN6.js +0 -31
- package/dist/chunk-B2VE7WOX.js +0 -1
- package/dist/chunk-BB7GAZP6.js +0 -1
- package/dist/chunk-BNTOGZLY.js +0 -1
- package/dist/chunk-BOAGJ6P5.js +0 -1
- package/dist/chunk-BU3JQM3W.js +0 -1
- package/dist/chunk-C3LL5CZA.js +0 -1
- package/dist/chunk-CFUZ6574.js +0 -15
- package/dist/chunk-CKVVJ4XO.js +0 -1
- package/dist/chunk-CNPBDSDL.js +0 -1
- package/dist/chunk-DTRENW4Q.js +0 -272
- package/dist/chunk-E3CTHNQS.js +0 -1
- package/dist/chunk-FFSDGRAN.js +0 -1
- package/dist/chunk-FNWXMCSD.js +0 -97
- package/dist/chunk-FS5PZCZ3.js +0 -1
- package/dist/chunk-FTHVOIK7.js +0 -4
- package/dist/chunk-FVRI7ZKE.js +0 -103
- package/dist/chunk-FZCGRIOM.js +0 -1
- package/dist/chunk-GCKGQFV7.js +0 -1
- package/dist/chunk-GGJUPL4W.js +0 -6
- package/dist/chunk-GHU6YEXH.js +0 -15
- package/dist/chunk-GNPIKPHB.js +0 -1
- package/dist/chunk-H57KYDEI.js +0 -16
- package/dist/chunk-HB3MJYBK.js +0 -1
- package/dist/chunk-HNU6R7RT.js +0 -7
- package/dist/chunk-HPT3UXZ5.js +0 -4
- package/dist/chunk-HXNGLDMU.js +0 -1
- package/dist/chunk-IAL6IQYW.js +0 -16
- package/dist/chunk-IULZYDCI.js +0 -9
- package/dist/chunk-IWTOC6DG.js +0 -1
- package/dist/chunk-J3JPJCWP.js +0 -1
- package/dist/chunk-J3UXIC23.js +0 -10
- package/dist/chunk-J7BTC45S.js +0 -1
- package/dist/chunk-JMVK2BIB.js +0 -3
- package/dist/chunk-JUTULEWW.js +0 -5
- package/dist/chunk-KT5QQOES.js +0 -3
- package/dist/chunk-KVF55INC.js +0 -5
- package/dist/chunk-L6VONMA2.js +0 -5
- package/dist/chunk-LWMKZJ4M.js +0 -1
- package/dist/chunk-M2KX3PXA.js +0 -1
- package/dist/chunk-M7NLCGCP.js +0 -6
- package/dist/chunk-MHWETFNT.js +0 -1
- package/dist/chunk-MNWT2SQO.js +0 -2265
- package/dist/chunk-MU2X7NGF.js +0 -11
- package/dist/chunk-MZWPIFAM.js +0 -70
- package/dist/chunk-NCPZVARH.js +0 -836
- package/dist/chunk-NMECLRGK.js +0 -11
- package/dist/chunk-NMLLRFZF.js +0 -1
- package/dist/chunk-NPB753M3.js +0 -1
- package/dist/chunk-OH7BQZQ7.js +0 -2
- package/dist/chunk-OLKLHVHA.js +0 -22
- package/dist/chunk-OPVXPDOQ.js +0 -1
- package/dist/chunk-OQUXGAF2.js +0 -1
- package/dist/chunk-OUMERKRE.js +0 -10
- package/dist/chunk-OYGIQDME.js +0 -1
- package/dist/chunk-PNZURX3S.js +0 -1
- package/dist/chunk-PRKJVU4Y.js +0 -1
- package/dist/chunk-PXFPVGWV.js +0 -1
- package/dist/chunk-Q2ORJEB2.js +0 -25
- package/dist/chunk-QFWWCZOI.js +0 -1
- package/dist/chunk-QFYLJVJW.js +0 -77
- package/dist/chunk-QX3T6G5X.js +0 -1
- package/dist/chunk-RDXLDCMI.js +0 -3
- package/dist/chunk-REDUS6EW.js +0 -1
- package/dist/chunk-RFZNFTVM.js +0 -1
- package/dist/chunk-RIG66DIQ.js +0 -18
- package/dist/chunk-RNUEPPVN.js +0 -1
- package/dist/chunk-RWTAPWLJ.js +0 -3
- package/dist/chunk-T5YVYVSW.js +0 -1
- package/dist/chunk-UDPYSL3M.js +0 -4
- package/dist/chunk-ULMNNGGX.js +0 -6
- package/dist/chunk-URCH4ITT.js +0 -1
- package/dist/chunk-UU2R56LN.js +0 -12
- package/dist/chunk-V75WUEFU.js +0 -1
- package/dist/chunk-VXD26GIG.js +0 -1
- package/dist/chunk-W7S6SYBM.js +0 -2
- package/dist/chunk-WAY723TL.js +0 -16
- package/dist/chunk-WFOU5M4H.js +0 -16
- package/dist/chunk-WGOSE3RL.js +0 -4
- package/dist/chunk-WQ6W725N.js +0 -1
- package/dist/chunk-X7DCL5LT.js +0 -1
- package/dist/chunk-XDXHSGDL.js +0 -1
- package/dist/chunk-XKKKMV46.js +0 -6
- package/dist/chunk-XRVJJG6W.js +0 -26
- package/dist/chunk-XV6XCOTG.js +0 -319
- package/dist/chunk-XYFYQWKW.js +0 -1
- package/dist/chunk-YCUEDZDA.js +0 -1
- package/dist/chunk-YQ63ZFYT.js +0 -1
- package/dist/chunk-YXIFSIRX.js +0 -1
- package/dist/chunk-ZDQO6CNY.js +0 -1
- package/dist/chunk-ZGASBRSQ.js +0 -5
- package/dist/command-json-schema-6EGXCM4B.js +0 -1
- package/dist/conf-store-E7ELDWBA.js +0 -1
- package/dist/custom-oclif-loader-FKFZJPHF.js +0 -1
- package/dist/deprecations-RNGBHZYB.js +0 -1
- package/dist/dist-VHIZZDYK.js +0 -1
- package/dist/dist-WXI5YQYP.js +0 -1
- package/dist/environment-O7ECODHU.js +0 -1
- package/dist/environments-WZJ6MRTH.js +0 -1
- package/dist/error-IFB626JA.js +0 -1
- package/dist/error-handler-OVJYVIOZ.js +0 -1
- package/dist/fs-7UOUHJDO.js +0 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
- package/dist/is-global-XW3CVHLK.js +0 -1
- package/dist/json-error-C2U7ZLCG.js +0 -1
- package/dist/latest-version-LDWU5F7A.js +0 -49
- package/dist/lib-PJHT4MKY.js +0 -1
- package/dist/lib-VKSQ65BQ.js +0 -1
- package/dist/lib-YEZOHXF3.js +0 -1
- package/dist/metadata-6JI7HF5B.js +0 -1
- package/dist/node-package-manager-X3QIEMMX.js +0 -1
- package/dist/notifications-system-OXGLT2R4.js +0 -1
- package/dist/os-NORIEVMI.js +0 -1
- package/dist/output-K3JTLRJD.js +0 -1
- package/dist/system-LTHR2T7L.js +0 -1
- package/dist/ui-MYUBVKCK.js +0 -1
- package/dist/upgrade-MFTWBXL3.js +0 -1
- package/dist/version-BNGPPAUU.js +0 -1
- package/dist/version-RCGFWSB4.js +0 -1
- package/dist/workerd-ISSXMKIH.js +0 -18
- /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
- /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
package/dist/chunk-NMECLRGK.js
DELETED
|
@@ -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};
|
package/dist/chunk-NMLLRFZF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{R as A,S as O,T as z,V as P,X as x}from"./chunk-XV6XCOTG.js";import{o as $,pa as l,sa as L,wa as D}from"./chunk-WFOU5M4H.js";import{a as F}from"./chunk-ZHHTQRWU.js";import{u as R}from"./chunk-NCPZVARH.js";import{A as k,I as N,N as v,U as y,z as g}from"./chunk-V654BMS7.js";import{b as E}from"./chunk-335BUVBP.js";import{f as _,h as d}from"./chunk-J7BTC45S.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function b(e,t){if(t.clientName!==l.AppManagement||!t.devStoreCapReached)return!1;try{return await t.devStoreCapReached(e)}catch{return!1}}async function M(e,t,o,i="disabled"){let c=o.clientName===l.AppManagement,s=async f=>o.devStoresForOrg(t.id,f),n=i!=="disabled"&&o.clientName===l.AppManagement,r=async()=>{if(await b(t.id,o))throw new d(U,W(t.id));let f=await A(),w=await O(),u=await z(),T=await $({name:f,plan:w,withDemoData:u,organization:t,json:!1,summary:!1}),S=await I(t,T,o);return k({headline:`Dev store "${S.shopName}" created successfully.`}),S},a,h;if(n&&e.stores.length===0){if(await b(t.id,o))throw new d(U,W(t.id));if(v()===!1)throw new d("No development store was specified.",H(t.id));a=async()=>(g({body:Y(t)}),r())}else if(n&&i==="selection-option"){if(v()===!1&&(e.stores.length>1||e.hasMorePages))throw new d("No development store was specified.","Run `shopify app dev --store <store-domain>` to select a development store.");v()&&!await b(t.id,o)&&(h=r)}let m=await P({onSearchForStoresByName:s,...e,showDomainOnPrompt:c,...a?{onCreateStoreWhenEmpty:a}:{},...h?{onCreateStore:h}:{}});if(!m){if(a)throw new _;if(g({body:await o.getCreateDevStoreLink(t)}),await y(5),!await x(t))throw new _;let w=await B(t.id,o);m=await M({stores:w,hasMorePages:!1},t,o,i)}return C(m),m}async function I(e,t,o){let s;if(await N([{title:"Fetching organization data",task:async()=>{for(let r=0;r<10;r++){try{let a=await D(e,t,o);if(a){s=a;return}}catch(a){if(!(a instanceof L))throw a}await y(3)}}}]),!s)throw new d(`The newly created development store (${t}) is not available yet.`,`Run \`shopify app dev --store ${t}\` to select it when it is ready.`);return s}async function B(e,t){let c=[];return await N([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:r}=await t.devStoresForOrg(e);if(r.length>0){c=r;return}await y(3)}}}]),c}var U="Your organization has reached its development store limit.";function Y(e){return`You don't have any dev stores associated with ${e.businessName}'s Dev Dashboard. Let's create one.`}function q(e){return`shopify store create dev --organization-id ${e} --name <store-name> --plan <plan>`}function H(e){return`Create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function W(e){return`Make a development store slot available in Dev Dashboard. Then create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function C(e){if(!e.transferDisabled)throw!e.transferDisabled&&!e.convertableToPartnerTest?new d(`The store you specified (${e.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store."):new d(`The store you specified (${e.shopDomain}) is not transfer-disabled`,"Run dev --reset and select a transfer-disabled dev store.")}async function fe({appContextResult:e,storeFqdn:t,forceReselectStore:o,storeTypes:i=["APP_DEVELOPMENT"],storeCreationMode:c="disabled"}){let{app:s,organization:n,developerPlatformClient:r}=e,a,h=s.configuration.build?.dev_store_url,m=s.hiddenConfig.dev_store_url,f=h??m,u=t??(o?void 0:f),T=i.length===1&&i[0]==="APP_DEVELOPMENT";if(u)a=await D(n,u,r,i),T&&C(a);else{let S=await r.devStoresForOrg(n.id);a=await M(S,n,r,c)}return a.shopDomain=R(a.shopDomain),await V(a,o),(a.shopDomain!==f||!m)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await r.ensureUserAccessToStore(n.id,a),a}async function V(e,t){await F.addPublicMetadata(()=>({cmd_app_reset_used:t,store_fqdn_hash:E(e.shopDomain),store_domain:e.shopDomain})),await F.addSensitiveMetadata(()=>({store_fqdn:e.shopDomain}))}export{fe as a};
|
package/dist/chunk-NPB753M3.js
DELETED
|
@@ -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};
|
package/dist/chunk-OH7BQZQ7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as p,d as c,e as _,f as q}from"./chunk-6Y6A2QGK.js";import{a as T}from"./chunk-XDXHSGDL.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-5XOEMYEQ.js";import{a as R}from"./chunk-NPB753M3.js";import{a as x}from"./chunk-D4LFWIFE.js";import{u as m}from"./chunk-NCPZVARH.js";import{b as S,c as A}from"./chunk-5AWELO3D.js";import{A as f,B as k,C as O,z as d}from"./chunk-V654BMS7.js";import{h}from"./chunk-J7BTC45S.js";import{qb as b,sb as g,wb as I}from"./chunk-RIG66DIQ.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
|
|
2
|
-
`,{command:`shopify app bulk status --id=${E(t.id)}`}]:r.body,s={headline:r.headline,...n&&{body:n},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":f(s);break;case"warning":k(s);break;case"info":d(s);break}}else O({headline:"Bulk operation not found or could not be canceled.",body:g`ID: ${b.yellow(e)}`.value})}var u=L(N(),1);var l=class o extends R{static summary="Cancel a bulk operation.";static descriptionWithMarkdown="Cancels a running bulk operation by ID.";static description=this.descriptionForHelp();static flags={...S,...A,...x,id:u.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:u.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>m(e)})};static get jsonOutputSchema(){return p}async run(){let{flags:e}=await this.parse(o),{appContextResult:a,store:t}=await D(e),r=e.json?"json":"text",n=B(e.id);q("Canceling bulk operation.",{organization:a.organization,remoteApp:a.remoteApp,storeFqdn:t.shopDomain,operationId:n},r);let s=await j({storeFqdn:t.shopDomain,operationId:n,remoteApp:a.remoteApp});return G(s,n,r),{app:a.app}}};export{l as a};
|
package/dist/chunk-OLKLHVHA.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{b as Y}from"./chunk-LFOBYEWG.js";import{F as W}from"./chunk-NCPZVARH.js";import{q as M}from"./chunk-J3UXIC23.js";import{W as k}from"./chunk-V654BMS7.js";import{a as C,c as j}from"./chunk-F3OM2YO6.js";import{b as S,h as A}from"./chunk-335BUVBP.js";import{d as I}from"./chunk-FHNJLON5.js";import{h as d}from"./chunk-J7BTC45S.js";import{$ as P,qb as h,sb as g,wb as R}from"./chunk-RIG66DIQ.js";import{h as b,i as N,j as f}from"./chunk-FZCGRIOM.js";import{d as q}from"./chunk-GSGCSBRN.js";import{b as $}from"./chunk-ZDQO6CNY.js";import{b as J}from"./chunk-YTUUU33R.js";import{a as _}from"./chunk-JD5P5RAJ.js";import{e as H,g as E}from"./chunk-VKWPEFWQ.js";E();var u=H(J()),O=class extends u.Command{static baseFlags={"json-schema":u.Flags.boolean({description:"Print the command's JSON schemas.",env:"SHOPIFY_FLAG_JSON_SCHEMA"})};static descriptionWithMarkdown;static get jsonOutputSchema(){}static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(n){return[]}static descriptionForHelp(){let n=(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)');return z(n,this.jsonOutputSchema)}static descriptionWithoutMarkdown(){return this.descriptionForHelp()}static analyticsNameOverride(){}static analyticsStopCommand(){}jsonOutputFromFlags=!1;async catch(n){let e=async()=>{n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-OVJYVIOZ.js");return await r(n,this.config),u.Errors.handle(n)};return this.jsonOutputFromFlags&&f()!=="json"?b({outputMode:"json",sink:j},e):e()}async _run(){return C(this.argv,()=>super._run())}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),Y(this.id??""),!q()){let{registerCleanBugsnagErrorsFromWithinPlugins:e}=await import("./error-handler-OVJYVIOZ.js");await e(this.config)}await G(this.config),this.showNpmFlagWarning(),await this.showDeprecatedAutomationTokenVariableWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-OXGLT2R4.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${P(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-MYUBVKCK.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}async showDeprecatedAutomationTokenVariableWarning(){let n=A();n&&await M("warn-on-deprecated-automation-token-variable",{days:1},async()=>{let{renderWarning:e}=await import("./ui-MYUBVKCK.js");e({headline:`${n} is deprecated.`,body:`Move the token to ${$.serviceAccountToken}. ${n} still works for now, but a future release will stop reading it.`})})}exitWithTimestampWhenEnvVariablePresent(){_(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(R(`
|
|
2
|
-
SHOPIFY_CLI_TIMESTAMP_START
|
|
3
|
-
{ "timestamp": ${Date.now()} }
|
|
4
|
-
SHOPIFY_CLI_TIMESTAMP_END
|
|
5
|
-
`),process.exit(0))}async parse(n,e){let r=await super.parse(n,e),t=await this.resultWithEnvironment(r,n,e);return this.runWithParsedOutput(t.flags,async()=>(await W(t.flags["auth-alias"]),await U(t.flags),this.validateNonTTYFlags(t.flags),{...t,argv:t.argv}))}runWithParsedOutput(n,e){let r=this.constructor,t=c(r.flags,"json")&&(n.json===!0||T(r.flags)&&n.output==="json");return this.jsonOutputFromFlags||=t,t&&f()!=="json"?b({outputMode:"json",sink:j},e):e()}environmentsFilename(){}async parseEnvironmentFlags(n,e,r){let t=this.argv;try{return(await super.parse(e,[...t,...D(n,e,r)])).flags}finally{this.argv=t}}validateNonTTYFlags(n){this.failMissingNonTTYFlagRequirements(n,this.applicableNonTTYFlagRequirements(n))}failMissingNonTTYFlags(n,e){this.failMissingNonTTYFlagRequirements(n,e.map(r=>({flags:[r]})))}failMissingNonTTYFlagRequirements(n,e){if(k())return;let r=e.filter(i=>i.flags.every(l=>n[l]===void 0||n[l]===!1));if(r.length===0)return;let t=r.length===1?"Flag not specified":"Flags not specified",s=r.map(i=>i.flags.map(l=>`--${l}`).join(" or ")).join(`
|
|
6
|
-
`),a=r.length===1?"This flag is required":"These flags are required";throw new d(g`${t}:
|
|
7
|
-
|
|
8
|
-
${h.cyan(s)}
|
|
9
|
-
|
|
10
|
-
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(n){let e=this.constructor,r={...e.baseFlags,...e.flags},t=Object.entries(r).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),s=(e.nonTTYFlagRequirements?.(n)??[]).filter(a=>a.when?.(n)??!0);return[...t,...s]}async resultWithEnvironment(n,e,r){let t=n.flags,s=this.environmentsFilename();if(!s)return n;let{environmentFilePath:a}=await import("./environments-WZJ6MRTH.js"),i=await a(s,{from:t.path}),l=[];t.environment&&(l=Array.isArray(t.environment)?t.environment:[t.environment]);let p=l.length>0;if(!i&&!p||p&&l.length>1)return n;let{environment:m,isDefaultEnvironment:v}=await this.loadEnvironmentForCommand(t.path,s,l[0]);if(!m||v&&!c(e?.flags,"environment"))return n;let y=await super.parse(B(e),r),F={...m,...y.flags};this.jsonOutputFromFlags=c(e?.flags,"json")&&F.json===!0||T(e?.flags)&&F.output==="json";let x=c(e?.flags,"json")&&T(e?.flags)&&F.output==="json"?{json:!0,...m}:m,w=await super.parse(e,[...r??this.argv,...D(x,e,y.flags),...v?["--environment","default"]:[]]),V=()=>L(y.flags,w.flags,v?"default":l[0],m);return this.runWithParsedOutput(w.flags,V),w}async loadEnvironmentForCommand(n,e,r){let{loadEnvironment:t}=await import("./environments-WZJ6MRTH.js");return r?{environment:await t(r,e,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",e,{from:n,silent:!0}),isDefaultEnvironment:!0}}};async function U(o){await I(()=>({cmd_all_verbose:o.verbose,cmd_all_path_override:o.path!==void 0,cmd_all_path_override_hash:o.path===void 0?void 0:S(o.path)}))}function L(o,n,e,r){let t={};for(let[a,i]of Object.entries(n)){let l=Object.prototype.hasOwnProperty.call(o,a),p=Object.prototype.hasOwnProperty.call(r,a);if(!l&&p){let m=a==="password"||a==="store-password"?`********${i.substr(-4)}`:i;t[a]=m}}if(Object.keys(t).length===0)return;let s=Object.entries(t).map(([a,i])=>`${a}: ${i}`);if(f()==="json"){N({type:"diagnostic",level:"info",message:`Using applicable flags from ${e} environment:
|
|
11
|
-
${s.join(`
|
|
12
|
-
`)}`});return}import("./ui-MYUBVKCK.js").then(({renderInfo:a})=>{a({headline:["Using applicable flags from",{userInput:e},"environment:"],body:[{list:{items:s}}]})})}function B(o){return o?.flags?{...o,flags:Object.fromEntries(Object.entries(o.flags).map(([n,e])=>{let r={...e};return delete r.default,[n,r]}))}:o}function D(o,n,e){let r=[];for(let[t,s]of Object.entries(o)){let a=c(n?.flags,t),i=Object.prototype.hasOwnProperty.call(e,t);if(a&&!i){if(n?.flags?.[t]?.type==="boolean"&&typeof s!="boolean")throw new d(g`Environment flag ${h.yellow(t)} must be a boolean.`);if(typeof s=="boolean")if(s)r.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(s)?s.forEach(l=>r.push(`--${t}`,`${l}`)):r.push(`--${t}`,`${s}`)}}return r}function c(o,n){return!!o&&Object.prototype.hasOwnProperty.call(o,n)}function T(o){let n=o?.output;return n?.type==="option"&&n.options?.includes("json")===!0}function z(o,n){if(!n)return o;let e=`Use \`--json-schema\` to print the result, error, and event schemas.
|
|
13
|
-
|
|
14
|
-
Output from \`--json\` conforms to the \`${n.name}\` schema.
|
|
15
|
-
|
|
16
|
-
\`\`\`json
|
|
17
|
-
${JSON.stringify(n.jsonSchema,null,2)}
|
|
18
|
-
\`\`\``;return[o,e].filter(Boolean).join(`
|
|
19
|
-
|
|
20
|
-
`)}async function G(o){let n=Array.from(o.plugins.values()),e=["@shopify/app","@shopify/plugin-cloudflare"],r=n.filter(s=>e.includes(s.name));if(r.length>0){let s=r.map(i=>` - shopify plugins remove ${i.name}`).join(`
|
|
21
|
-
`),{renderWarning:a}=await import("./ui-MYUBVKCK.js");a({headline:`Unsupported plugins detected: ${r.map(i=>i.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
|
|
22
|
-
${s}`]})}let t=n.filter(s=>!e.includes(s.name));o.plugins=new Map(t.map(s=>[s.name,s]))}var cn=O;export{B as a,cn as b};
|
package/dist/chunk-OPVXPDOQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as h,F as e,G as r,K as o,L as s,p as n}from"./chunk-V654BMS7.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
|
package/dist/chunk-OQUXGAF2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as R}from"./chunk-FVRI7ZKE.js";import{a as k}from"./chunk-P5W5RVE6.js";import{c as D}from"./chunk-AQ34X5B3.js";import{e as S}from"./chunk-QFWWCZOI.js";import{s as A}from"./chunk-2NZ7GDDR.js";import{r as v}from"./chunk-KT5QQOES.js";import{a as E}from"./chunk-M73IECPW.js";import{N as g}from"./chunk-NCPZVARH.js";import{A as b,B as P,C}from"./chunk-V654BMS7.js";import{Bb as M,ua as O,wb as j}from"./chunk-RIG66DIQ.js";import{b as e,i as T}from"./chunk-FZCGRIOM.js";import{c as u,e as h,g as y,p as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{resolve as x}from"node:path";var I=e.object({name:e.string(),category:e.string()}),L=e.object({key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullish(),type:I}),a={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"},$=e.object(Object.fromEntries(Object.keys(a).map(t=>[t,e.array(L)]))),N=e.object({ownerType:e.string().describe("The upstream owner type, such as PRODUCT or COMPANY_LOCATION."),key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullable(),type:e.object({name:e.string().describe("The upstream metafield type, such as single_line_text_field."),category:e.string().describe("The upstream metafield category.")}).strict()}).strict(),F=S({name:"ThemeMetafieldsPullResult",schema:e.union([e.object({status:e.enum(["success","partial"]),changed:e.literal(!0),path:e.string().refine(y).describe("The absolute path of the native language-server metafields JSON artifact."),definitions:e.array(N).describe("All fetched definitions, flattened across owner types."),failedOwnerTypes:e.array(e.string()).describe("Upstream owner types whose fetch failed.")}).strict(),e.object({status:e.literal("skipped"),reason:e.literal("not-a-theme")}).strict()]),definitions:{MetafieldDefinition:N},project:t=>{let i=t;if(i.status==="failed")throw new Error("Failed downloads must use the fatal error envelope.");return i.status==="skipped"?i.reason==="cancelled"?{status:"cancelled"}:{status:"skipped",reason:i.reason}:{status:i.failedOwnerTypes.length?"partial":"success",changed:!0,path:x(i.path),definitions:Object.entries(i.definitions).flatMap(([r,o])=>o.map(n=>({ownerType:a[r],key:n.key,namespace:n.namespace,name:n.name,description:n.description??null,type:{name:n.type.name,category:n.type.category}}))),failedOwnerTypes:i.failedOwnerTypes}}});s();function _(t,i,r=!1){t.status==="downloaded"&&t.failedOwnerTypes.length>0&&M(`Failed to fetch metafield definitions for the following owner types: ${t.failedOwnerTypes.join(", ")}`),!r&&(i==="json"?(t.status==="failed"&&T({type:"diagnostic",level:"error",message:"Failed to fetch metafield definitions."}),j(F.encode(t))):t.status==="downloaded"?t.failedOwnerTypes.length>0?P({body:`Metafield definitions were partially downloaded. Failed owner types: ${t.failedOwnerTypes.join(", ")}.`}):b({body:"Metafield definitions have been successfully downloaded."}):t.status==="failed"&&C({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]}))}s();async function me(t){let i=await J(t);_(i,"text",t.silent)}async function J(t){k({verbose:t.verbose,noColor:t.noColor});let i=v({store:t.store}),r=await g(i,t.password);return U(r,{path:h(t.path??w()),force:t.force??!1})}async function U(t,i){let{force:r,path:o}=i;if(!await R(o)){if(process.env.SHOPIFY_LANGUAGE_SERVER==="1")return{status:"skipped",reason:"not-a-theme"};if(!await D(r))return{status:"skipped",reason:"cancelled"}}let n=[],f=[];for(let[l,c]of Object.entries(a))n.push(A(c,t).catch(m=>(f.push(c),[])).then(m=>({[l]:m})));let p=(await Promise.all(n)).reduce((l,c)=>({...l,...c})),d=Object.values(a).filter(l=>f.includes(l));return d.length===Object.values(a).length?{status:"failed",failedOwnerTypes:d}:{status:"downloaded",path:await G(o,p),definitions:p,failedOwnerTypes:d}}async function G(t,i){let r=await E(t),o=u(r,"metafields.json"),n=JSON.stringify(i,null,2);return O(o,n),o}export{F as a,_ as b,me as c,J as d};
|
package/dist/chunk-OUMERKRE.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{c as ke}from"./chunk-XZLM4HLO.js";import{a as Ie,c as Pe}from"./chunk-EH22T4FI.js";import{b as ve}from"./chunk-GHU6YEXH.js";import{a as ze}from"./chunk-NPB753M3.js";import{Ha as je,M as Te,Ma as Ge,U as xe,W as Ce,Y as Fe,ea as _e,h as Ae,ha as $e}from"./chunk-XV6XCOTG.js";import{D as Re,c as be,qa as Le,va as Se}from"./chunk-WFOU5M4H.js";import{B as ee}from"./chunk-NCPZVARH.js";import{B as ne,D as se,E as pe,f as F,g as ie,i as oe,p as re}from"./chunk-2M535QQJ.js";import{e as J}from"./chunk-J3UXIC23.js";import{a as E}from"./chunk-MHWETFNT.js";import{b as ge,c as ye,f as we}from"./chunk-5AWELO3D.js";import{A as de,E as j,I as fe,z as me}from"./chunk-V654BMS7.js";import{b as le}from"./chunk-PVASYKSJ.js";import{a as M}from"./chunk-BN7ZXAZJ.js";import{d as ce}from"./chunk-FHNJLON5.js";import{h as d}from"./chunk-J7BTC45S.js";import{Ba as T,Ia as W,Na as B,Sa as x,Ta as C,Ua as Z,Va as Q,_ as q,_a as X,ja as Y,jb as te,kb as ae,la as K,qb as g,ra as _,rb as L,sb as v,ta as $,va as V,wb as he}from"./chunk-RIG66DIQ.js";import{b as h}from"./chunk-FZCGRIOM.js";import{f as ue}from"./chunk-GSGCSBRN.js";import{b as Qe}from"./chunk-YTUUU33R.js";import{c as p,d as R,e as O,o as H,p as U}from"./chunk-IWTNUJGY.js";import{e as Ze,g as l}from"./chunk-VKWPEFWQ.js";l();l();var y={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},G=Object.keys(y),S=G.filter(e=>y[e].visible),Xe=["reactRouter","none"],Je=async e=>{let t=e.template,a=e.flavor,i={template:y.reactRouter.url};t??=await j({choices:Xe.map(r=>({label:y[r].label||r,value:r})),message:"Get started building your app:",defaultValue:G.find(r=>y[r].url===i.template)});let o={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let r=y[o.templateType];n=r.url,r.branches&&(a?s=r.branches.options[a]?.branch:s=await j({message:r.branches.prompt||"Choose a flavor:",choices:Object.entries(r.branches.options).map(([m,u])=>({value:u.branch,label:u.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||i.template,o.globalCLIResult=await ae(),o},Ne=Je;function P(e){return G.includes(e)}function De(e){return e!==void 0&&P(e)&&y[e].branches!==void 0}l();l();import{platform as et}from"os";async function Ee({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=E,delete e.dependencies["@shopify/app"],t){let i=await tt("cli");e.dependencies["@shopify/cli"]=i;let o={"@shopify/cli":i};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function tt(e){return`file:${await X(`packages/${e}`,{type:"directory",cwd:H(import.meta.url)})}`}async function Me({from:e,packageManager:t}){let a=et()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return re({directory:R(e),packageManager:t,args:a})}l();async function z(e,t){let i=(await Q([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>T(s,{force:!0})),o=new Set(ie[t]),n=F.filter(s=>!o.has(s)).map(s=>{let r=p(e,s);if(C(r))return W(r)});return Promise.all([...i,...n])}async function at(e){let t=e.packageManager,a=q(e.name),i=p(e.directory,a),o=ke(e.template);await Oe(i,a),await it(i),me({body:["Initializing project with",{command:t},`
|
|
2
|
-
Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await Y(async r=>{let m=p(r,"download"),u=o.filePath?p(m,o.filePath):m,f=p(r,"app"),A=o.branch?`${o.baseURL}#${o.branch}`:o.baseURL;await V(m);let b=[{title:`Downloading template from ${A}`,task:async()=>{await Pe({repoUrl:A,destination:m,shallow:!0})}}];b.push({title:"Parsing liquid",task:async()=>{await ve(u,f,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let c=(await ne(f)).content;c.name=a,c.author=await le()??"",c.private=!0;let I=["extensions/*"].concat(ot(f));switch(t){case"npm":case"yarn":case"bun":c.workspaces=I;break;case"pnpm":{await rt(f,I),await _(p(f,".npmrc"),`auto-install-peers=true
|
|
3
|
-
`);break}case"homebrew":case"unknown":throw new oe}await Ee({packageJSON:c,local:e.local,directory:f,useGlobalCLI:e.useGlobalCLI}),await se(f,c)}}),e.postCloneActions.removeLockfilesFromGitignore&&b.push({title:"Removing lockfiles from .gitignore",task:async()=>{let c=p(f,".gitignore");if(await x(c)){let I=await K(c);F.forEach(We=>{let Be=new RegExp(`^${We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");I=I.replace(Be,"")}),await $(c,I.trim())}}}),await ue()&&b.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let c=p(f,".npmrc");await _(c,`@shopify:registry=https://registry.npmjs.org
|
|
4
|
-
`)}});let D=!1;b.push({title:"Preparing project directory",task:async()=>{await Oe(i,a),D=!0,await B(f,i)}}),b.push({title:`Installing dependencies with ${t}`,task:async()=>{await Me({from:i,packageManager:t})}},{title:"Cleaning up",task:async()=>{await z(i,t)}},{title:"Initializing a Git repository...",task:async()=>{await Ie(i)}});try{await fe(b)}catch(c){throw D&&await T(i).catch(()=>{}),c}});let n;if(e.selectedAppOrNameResult.result==="new"){let r=await Te(i,e.name),m=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(m,r)}else n=e.selectedAppOrNameResult.app;return await je({directory:i,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1),{app:(await Ge({directory:i,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0})).app,remoteApp:n,projectName:a,packageManager:t,template:e.template}}async function Oe(e,t){if(await x(e))throw new d(`
|
|
5
|
-
A directory with this name (${t}) already exists.
|
|
6
|
-
Choose a new name for your app.`)}async function it(e){let t=new J({projectName:"shopify-cli-app"}),a=R(e);t.delete(a)}function ot(e){return["web","web/frontend"].filter(t=>C(p(e,t)))}async function rt(e,t){let a=p(e,"pnpm-workspace.yaml");if(await x(a))return;let i=t.map(o=>` - '${o}'`).join(`
|
|
7
|
-
`);await $(a,`packages:
|
|
8
|
-
${i}`)}var He=at;l();var Ue=h.string().regex(/^(?:\/|[A-Za-z]:[\\/]|\\\\)/),qe=h.object({id:h.string().regex(/^\d+$/).describe("The decimal App ID, not a Shopify GID."),name:h.string().min(1).describe("The name of the linked remote app."),clientId:h.string().min(1).describe("The client ID of the linked remote app."),organizationId:h.string().regex(/^\d+$/).describe("The decimal organization ID, not a Shopify GID."),directory:Ue.describe("The absolute filesystem path of the created app project."),configurationPath:Ue.describe("The absolute filesystem path of the linked app configuration.")}).strict(),k=M({name:"AppInitResult",schema:h.object({status:h.literal("success"),app:qe,packageManager:h.enum(["npm","yarn","pnpm","bun"]),template:h.string().url().describe("The selected GitHub template reference, including its branch and subpath.")}).strict(),definitions:{InitializedApp:qe}});l();function nt({app:e,remoteApp:t,packageManager:a,template:i}){return k.validate({status:"success",app:{id:t.id.startsWith("gid://shopify/App/")?be(t.id)??t.id:t.id,name:t.title,clientId:t.apiKey,organizationId:t.organizationId,directory:e.directory,configurationPath:e.configPath},packageManager:a,template:i})}function Ye(e,t=!1){if(t){he(k.encode(nt(e)));return}let{projectName:a,packageManager:i}=e;de({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:L(i,"shopify app generate extension")}],["To see your app, run",{command:L(i,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:L(i,"shopify app","--help")}]]})}l();function Ke(e){if(!e)return;let t=ee(e);if(t&&t.origin!=="https://github.com")throw new d("Only GitHub repository references are supported, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]");if(!t&&!P(e))throw new d(v`Only ${S.map(a=>v`${g.yellow(a)}`.value).join(", ")} template aliases are supported, please provide a valid URL`)}function Ve(e,t){if(!e){if(t)throw new d(v`The ${g.yellow("--flavor")} flag requires the ${g.yellow("--template")} flag to be set`);return}if(!t)return;if(!P(e))throw new d(v`The ${g.yellow("--flavor")} flag is not supported for custom templates`);let a=y[e];if(!a.branches)throw new d(v`The ${g.yellow(e)} template does not support flavors`);if(!a.branches.options[t])throw new d(v`Invalid option for ${g.yellow("--flavor")}\nThe ${g.yellow("--flavor")} flag for ${g.yellow(e)} accepts only ${Object.keys(a.branches.options).map(i=>v`${g.yellow(i)}`.value).join(", ")}`)}var w=Ze(Qe(),1);var N=class e extends ze{static get requiresSyncAnalytics(){return!0}static summary="Create a new app project";static get jsonOutputSchema(){return k}static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --name my-app --organization-id 123 --template reactRouter --flavor typescript","<%= config.bin %> <%= command.id %> --client-id 123 --template none"];static flags={...ge,...ye,name:w.Flags.string({char:"n",env:"SHOPIFY_FLAG_NAME",hidden:!1,description:"The name for the new app. When provided, skips the app selection prompt and creates a new app with this name. Required in non-interactive environments unless --client-id is provided."}),path:w.Flags.string({char:"p",env:"SHOPIFY_FLAG_PATH",parse:async t=>O(t),default:async()=>U(),hidden:!1}),template:we(w.Flags.string({description:`The app template. Accepts one of the following:
|
|
9
|
-
- <${S.join("|")}>
|
|
10
|
-
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,env:"SHOPIFY_FLAG_TEMPLATE"})),flavor:w.Flags.string({description:"Which flavor of the given template to use. Required in non-interactive environments when the selected template offers multiple flavors.",env:"SHOPIFY_FLAG_TEMPLATE_FLAVOR"}),"package-manager":w.Flags.string({char:"d",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",hidden:!1,options:["npm","yarn","pnpm","bun"]}),local:w.Flags.boolean({char:"l",env:"SHOPIFY_FLAG_LOCAL",default:!1,hidden:!0}),"client-id":w.Flags.string({hidden:!1,description:"The Client ID of your app. Use this to automatically link your new project to an existing app. In non-interactive environments, provide this flag or both --name and --organization-id.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),"organization-id":w.Flags.string({hidden:!1,description:"The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/<organization-id>. Required in non-interactive environments unless --client-id is provided.",env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};static nonTTYFlagRequirements(){return[{flags:["name","client-id"]},{flags:["organization-id","client-id"]},{flags:["flavor"],when:t=>De(t.template)}]}async run(){let{flags:t}=await this.parse(e);if(Ke(t.template),Ve(t.template,t.flavor),t.name!==void 0&&t.name.trim()==="")throw new d("The --name flag can't be empty","Provide a valid app name, for example: --name my-app");let a=pe(t["package-manager"]),i=t.name??await st(t.path),o=Le();await o.session();let n=await Ne({template:t.template,flavor:t.flavor}),s,r;if(t["client-id"]){let u=await _e({apiKey:t["client-id"]});r=u.title,s={result:"existing",app:u}}else{let u;t["organization-id"]?u=await Se(t["organization-id"],o):u=await $e();let{organization:f,apps:A,hasMorePages:b}=await o.orgAndApps(u.id);s=await pt(t.name!==void 0,i,A,b,f,o),r=s.result==="new"?s.name:s.app.title}n.globalCLIResult.install&&await te(a),await ce(()=>({cmd_create_app_template:n.templateType,cmd_create_app_template_url:n.template}));let m=await He({name:r,selectedAppOrNameResult:s,packageManager:a,template:n.template,local:t.local,directory:t.path,useGlobalCLI:n.globalCLIResult.alreadyInstalled||n.globalCLIResult.install,developerPlatformClient:o,postCloneActions:{removeLockfilesFromGitignore:n.templateType!=="custom"}});return Ye(m,t.json),{app:m.app}}};async function st(e){for(let t=0;t<3;t++){let a=await Z({suffix:"app",directory:e});if(Re(a))return a}return""}async function pt(e,t,a,i,o,n){let s=a.length===0||e;if(s||(s=await Fe()),s)return{result:"new",name:e?t:await Ce(t),org:o};{let r=await xe(Ae(n,o.id),a,i);if(!r)throw new d("Unable to select an app: the selection prompt was interrupted.");let m=await n.appFromIdentifiers(r.apiKey);if(!m)throw new d(`App with id ${r.id} not found`);return{result:"existing",app:m}}}export{N as a};
|
package/dist/chunk-OYGIQDME.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r,b as c,c as l}from"./chunk-3G2PEYPI.js";import{b as i}from"./chunk-OLKLHVHA.js";import{c as n}from"./chunk-5AWELO3D.js";import{b as h}from"./chunk-YTUUU33R.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
|
package/dist/chunk-PNZURX3S.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f,c as D,d as _,e as H}from"./chunk-C3LL5CZA.js";import{c as T,e as w,h as E}from"./chunk-QFWWCZOI.js";import{g as R,p as j,v as x}from"./chunk-KT5QQOES.js";import{e as v}from"./chunk-J3UXIC23.js";import{b as O,c as F}from"./chunk-5AWELO3D.js";import{z as y}from"./chunk-V654BMS7.js";import{Bb as p,sb as u,wb as l}from"./chunk-RIG66DIQ.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as P,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function I(e,t){let n=t.storeFqdn,s=new H({...f.reduce((h,a)=>(h[a]=e.role===a,h),{}),theme:e.id?.toString()??e.name}),m=!!e.json,i=await D(t,{allowEmpty:m});return s.any()&&(i=_(n,i,s,{allowEmpty:m})),i}r();r();var W=o.object({id:o.number(),name:o.string(),processing:o.boolean(),createdAtRuntime:o.boolean(),role:o.string()}),Y=o.array(W),c=w({name:"ThemeListResult",schema:o.object({themes:o.array(T.extend({processing:o.boolean()}).strict())}).strict().describe("The complete theme library after applying the requested filters."),definitions:{Theme:T},project(e){return{themes:Y.parse(e).map(t=>({...E(t),processing:t.processing}))}}});r();var A;function L(){return A??=new v({projectName:"shopify-cli-host-theme-conf"}),A}function $(e){return p(u`Getting host theme...`),L().get(e)}function Z(e,t){p(u`Setting host theme...`),L().set(e,t)}function ee(e){p(u`Removing host theme...`),L().delete(e)}function C(e,t){return{title:e,body:{tabularData:t}}}function G(e,t,n){if(t==="json"){l(c.encode(e));return}let s=R(),m=$(n.store),i=e.map(({id:a,name:J,role:b})=>{let g="";return b&&(g=`[${b}]`,[s,m].includes(`${a}`)&&(g+=" [current]")),[J,g,`#${a}`]}),h=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...i];y({customSections:[...n.environment?[{title:`${n.store} theme library`,body:[{subdued:`Environment name: ${n.environment}`}]}]:[],C("",h)]})}var d=P(q(),1);var S=class extends x{static get jsonOutputSchema(){return c}static descriptionWithMarkdown="Lists the themes in your store, along with their IDs and statuses.";static description=this.descriptionForHelp();static flags={...O,...F,...j,role:d.Flags.custom({description:"Only list themes with the given role.",options:f,env:"SHOPIFY_FLAG_ROLE"})(),name:d.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:d.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(t,n,s=!1){let m=await I(t,n);if(t.json&&s)return m;G(m,t.json?"json":"text",{store:n.storeFqdn,environment:t.environment})}renderEnvironmentResults(t){l(c.encode({environments:t}))}};export{$ as a,Z as b,ee as c,S as d};
|
package/dist/chunk-PRKJVU4Y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-56GKTWFF.js";import{a as p,b as m}from"./chunk-LENSEW2F.js";import{d as r,j as c}from"./chunk-FNWXMCSD.js";import{a as s}from"./chunk-NPB753M3.js";import{Ma as a}from"./chunk-XV6XCOTG.js";import{c as n}from"./chunk-5AWELO3D.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends s{static summary="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.";static descriptionWithMarkdown="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV columns: `shop_id`, `target_plan_handle`, and `price_behavior`.\n- Optional CSV column: `notification`.\n- Example header: `shop_id,target_plan_handle,price_behavior,notification`.\n- Example row: `123456789,pro,HONOR_BILLING_PRICE,WHEN_REQUIRED`.\n\n`price_behavior` must be `HONOR_BILLING_PRICE` or `PLAN_PRICE`. `notification` can be `OPT_OUT` or `WHEN_REQUIRED` and defaults to `WHEN_REQUIRED` when omitted or blank.\n\nValidation is atomic: the command submits no operations unless the entire CSV is valid. Valid rows are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.\n\nUse `--force` to skip confirmation and immediately submit every valid row. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...r,...n};static get jsonOutputSchema(){return c}async run(){let{flags:i}=await this.parse(u),{app:l,remoteApp:h}=await a({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),f=await d({action:"schedule",input:i.input??"-",clientId:h.apiKey,skipConfirmation:i.force,watch:i.watch,...i.watch&&!i.json?{onSubmissionAccepted:p}:{}}),e=m(f,{json:i.json,watch:i.watch});return e!==0&&(process.exitCode=e),{app:l}}};export{t as a};
|
package/dist/chunk-PXFPVGWV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as u}from"./chunk-OLKLHVHA.js";import{a as i}from"./chunk-MHWETFNT.js";import{b as a,c}from"./chunk-5AWELO3D.js";import{a as p}from"./chunk-BN7ZXAZJ.js";import{wb as m}from"./chunk-RIG66DIQ.js";import{b as r}from"./chunk-FZCGRIOM.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var o=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(e,s){m(s==="json"?o.encode(e):e.version)}var n=class e extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static description=this.descriptionForHelp();static flags={...a,...c};static get jsonOutputSchema(){return o}async run(){let{flags:s}=await this.parse(e),v=await f();l(v,s.json?"json":"text")}};export{n as a};
|
package/dist/chunk-Q2ORJEB2.js
DELETED
|
@@ -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};
|
package/dist/chunk-QFWWCZOI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as s}from"./chunk-ACA2BGAD.js";import{a as l}from"./chunk-BN7ZXAZJ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var p=e.string().regex(/^\d+$/).describe("The decimal Online Store theme ID, not a Shopify GID."),h=e.string().regex(/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/).nullable(),b=e.object({id:p,name:e.string(),role:e.string().describe("The upstream theme role; known values include live, unpublished, and development.")}).strict(),v=b.extend({storeDomain:h,previewUrl:e.string().url().nullable(),editorUrl:e.string().url().nullable()}).strict(),d=e.object({status:e.literal("cancelled")}).strict();function O(n){let i=e.union([n.schema,d]),c=e.union([e.object({environment:e.string(),result:i}).strict(),e.object({environment:e.string(),error:s}).strict()]),o=l({name:n.name,schema:e.union([i,e.object({environments:e.array(c)}).strict()]),definitions:{...n.definitions,ThemeEnvironment:c}}),m=t=>d.safeParse(t).success?t:n.project(t);return{...o,encode(t){let a=e.object({environments:e.array(e.unknown())}).strict().safeParse(t);if(!a.success)return JSON.stringify(o.validate(m(t)),null,2);let f=a.data.environments.map(g=>{let r=e.union([e.object({environment:e.string(),result:e.unknown()}).strict(),e.object({environment:e.string(),error:s}).strict()]).parse(g);return"error"in r?r:{...r,result:m(r.result)}});return JSON.stringify(o.validate({environments:f}),null,2)}}}function S(n){if(typeof n=="number"&&(!Number.isSafeInteger(n)||n<0))throw new TypeError("Theme IDs must be safe nonnegative integers or decimal strings.");return p.parse(String(n))}function w(n){return n&&h.safeParse(n).success?n:null}function D(n){return{id:S(n.id),name:n.name,role:n.role}}export{p as a,h as b,b as c,v as d,O as e,S as f,w as g,D as h};
|