shopify 5.1.0 → 5.2.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-23GM6KJU.js +1 -0
- package/dist/analytics-743FYOAE.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-HSTZV6H7.js → chunk-2EQRXSF6.js} +1 -1
- package/dist/{chunk-AY3AAV77.js → chunk-2IXP3IPE.js} +1 -1
- package/dist/{chunk-OTMYJWIP.js → chunk-2KACAQJS.js} +1 -1
- package/dist/{chunk-24Q6X53V.js → chunk-2OCSYLKZ.js} +1 -1
- package/dist/{chunk-QCLE5REL.js → chunk-2PILNMHJ.js} +1 -1
- package/dist/{chunk-WPDJVUTY.js → chunk-36S6MFJQ.js} +1 -1
- package/dist/{chunk-YNZLLZU2.js → chunk-3DB4EC62.js} +1 -1
- package/dist/{chunk-FQLXQ7WN.js → chunk-3GL3IT4K.js} +1 -1
- package/dist/{chunk-JALDNBTU.js → chunk-3JRB7Q3T.js} +1 -1
- package/dist/{chunk-7A77JCED.js → chunk-3OYMK5X6.js} +1 -1
- package/dist/{chunk-ORMXPSJM.js → chunk-422BGHXN.js} +1 -1
- package/dist/{chunk-ZMU4EYXT.js → chunk-43C32FUQ.js} +1 -1
- package/dist/{chunk-ELR6AZT4.js → chunk-4AN7ECPE.js} +1 -1
- package/dist/chunk-4AWVU2OV.js +1 -0
- package/dist/chunk-4KBOLN7Q.js +8 -0
- package/dist/{chunk-YYWSHRO2.js → chunk-4LJERO23.js} +3 -3
- package/dist/{chunk-4FWPOGPQ.js → chunk-4M5WHOZW.js} +1 -1
- package/dist/{chunk-OWQEFORZ.js → chunk-4RO35FFQ.js} +1 -1
- package/dist/{chunk-6I7DT7QR.js → chunk-4ZS5354G.js} +1 -1
- package/dist/{chunk-ZXZWMXXK.js → chunk-55AWBPKU.js} +1 -1
- package/dist/{chunk-7PHDEILV.js → chunk-5BUYR23E.js} +1 -1
- package/dist/{chunk-AHYI27QL.js → chunk-5EDA7PVE.js} +3 -3
- package/dist/{chunk-5C6CXU74.js → chunk-5P6OELKZ.js} +1 -1
- package/dist/{chunk-SPJM7RTD.js → chunk-5PVXLQNX.js} +1 -1
- package/dist/{chunk-FU7PYW7H.js → chunk-5S2P4MHJ.js} +1 -1
- package/dist/{chunk-SBN3ILXO.js → chunk-5TJJVSCI.js} +1 -1
- package/dist/{chunk-VE3IIC7H.js → chunk-5TOK5OJS.js} +1 -1
- package/dist/{chunk-LGDWE3H3.js → chunk-5ZG2SWU2.js} +1 -1
- package/dist/{chunk-DDZYIC76.js → chunk-62F4ZMSC.js} +1 -1
- package/dist/{chunk-4NFX7YCT.js → chunk-652NT7OW.js} +1 -1
- package/dist/{chunk-5534MHZW.js → chunk-6B5KM3A4.js} +1 -1
- package/dist/{chunk-CRQQCT7F.js → chunk-6LCESSY3.js} +1 -1
- package/dist/chunk-6QHDMCAA.js +1 -0
- package/dist/{chunk-2KUM2RU4.js → chunk-7A4ZE5IS.js} +2 -2
- package/dist/{chunk-R6US7F33.js → chunk-7AQZKPJU.js} +1 -1
- package/dist/{chunk-HMPRWNGG.js → chunk-7FBOMPO5.js} +2 -2
- package/dist/{chunk-DGIIUQH3.js → chunk-7UK565VJ.js} +1 -1
- package/dist/{chunk-DOLVBTCB.js → chunk-A5BSUUNQ.js} +1 -1
- package/dist/{chunk-SCDGLREP.js → chunk-ADGE7MKB.js} +1 -1
- package/dist/{chunk-65NCQJYR.js → chunk-AEWRZ7AE.js} +1 -1
- package/dist/chunk-ALDJTWCO.js +1 -0
- package/dist/chunk-ARL5WBDK.js +1 -0
- package/dist/chunk-AXFEIJC7.js +1 -0
- package/dist/{chunk-JNSVKDBY.js → chunk-AYGL6F3P.js} +1 -1
- package/dist/{chunk-F6IQWX2F.js → chunk-AYTTE7X5.js} +1 -1
- package/dist/{chunk-JIYCZXK5.js → chunk-BDIZUTKC.js} +1 -1
- package/dist/{chunk-Z5WFRYVQ.js → chunk-BQKF4SRH.js} +1 -1
- package/dist/{chunk-7ART2IKU.js → chunk-C2AOCLEZ.js} +1 -1
- package/dist/{chunk-NYMKGE3J.js → chunk-C2SGJ5IG.js} +1 -1
- package/dist/{chunk-LPPEAMI6.js → chunk-C3S3UMV3.js} +1 -1
- package/dist/{chunk-S3RROJGG.js → chunk-C5DKLOW4.js} +1 -1
- package/dist/{chunk-DC7ITY6T.js → chunk-CA3GVT4D.js} +1 -1
- package/dist/{chunk-KFR7HWCG.js → chunk-CCLU5ZRK.js} +1 -1
- package/dist/{chunk-3FZ4LE6A.js → chunk-CE6XQDAG.js} +2 -2
- package/dist/{chunk-RKNVTEO3.js → chunk-CEJ5WS4I.js} +1 -1
- package/dist/chunk-CIBBQO2L.js +6 -0
- package/dist/{chunk-L2PUDV7Y.js → chunk-CKJXJ6HD.js} +1 -1
- package/dist/{chunk-KHZF73BL.js → chunk-COGKVNQB.js} +1 -1
- package/dist/{chunk-OY5M52EF.js → chunk-CQPZOXWO.js} +1 -1
- package/dist/{chunk-AVJJGQOP.js → chunk-CZYQIWNL.js} +1 -1
- package/dist/{chunk-VA2S7W7H.js → chunk-DA5RQFXA.js} +1 -1
- package/dist/{chunk-NUBJ2HK7.js → chunk-DESZFFOK.js} +1 -1
- package/dist/{chunk-WLYXBQ2M.js → chunk-DKR7562G.js} +1 -1
- package/dist/{chunk-KM4LE7K4.js → chunk-DNNTAMC5.js} +1 -1
- package/dist/{chunk-V4FC72R6.js → chunk-DUPQUQ2Z.js} +1 -1
- package/dist/{chunk-FHKK3QU7.js → chunk-DUTIWCJ2.js} +1 -1
- package/dist/chunk-E6JEBSHZ.js +20 -0
- package/dist/{chunk-VQSRU5XL.js → chunk-E6KNAPIY.js} +1 -1
- package/dist/{chunk-MTT6EAQO.js → chunk-E7XCCLQH.js} +1 -1
- package/dist/chunk-EE72PCKT.js +1 -0
- package/dist/{chunk-AGTUAQHX.js → chunk-EEYXBKR7.js} +1 -1
- package/dist/{chunk-H2KGP2FM.js → chunk-EGLA3WLZ.js} +1 -1
- package/dist/{chunk-JMSAHCBU.js → chunk-FDFE3SSG.js} +1 -1
- package/dist/{chunk-TSPJAMYB.js → chunk-FI5TQHUA.js} +1 -1
- package/dist/{chunk-QKPAB245.js → chunk-FIKZQ4RA.js} +1 -1
- package/dist/chunk-FJOVMEPN.js +3 -0
- package/dist/{chunk-5PSQFQL6.js → chunk-FLARCZ5F.js} +1 -1
- package/dist/{chunk-WE5KY6T6.js → chunk-FOMMPAWZ.js} +1 -1
- package/dist/chunk-G3DXNSA2.js +1 -0
- package/dist/{chunk-HYCNYUHW.js → chunk-G7JO3W2R.js} +1 -1
- package/dist/{chunk-C2HJEGTS.js → chunk-GABIWYY3.js} +1 -1
- package/dist/{chunk-OXZR2MB4.js → chunk-GFSEU7PF.js} +1 -1
- package/dist/{chunk-AMVWKHNY.js → chunk-GFVUWVEM.js} +1 -1
- package/dist/{chunk-D7IMC2G4.js → chunk-GHNSXX7R.js} +1 -1
- package/dist/{chunk-7N7KRZOM.js → chunk-GQ3LY7BY.js} +1 -1
- package/dist/{chunk-PJZZZNWR.js → chunk-H45S4MGC.js} +1 -1
- package/dist/{chunk-OJOF6IYG.js → chunk-HEB4YYM6.js} +4 -4
- package/dist/{chunk-I3WRA2LH.js → chunk-HI5FTI3M.js} +1 -1
- package/dist/{chunk-WFPVT2IY.js → chunk-HJ24NEP5.js} +1 -1
- package/dist/{chunk-LFBFPK22.js → chunk-HQFXVVTB.js} +1 -1
- package/dist/{chunk-27JT4NA4.js → chunk-HR6R7JXN.js} +1 -1
- package/dist/{chunk-JVY6CCLE.js → chunk-HRHJA5ZP.js} +1 -1
- package/dist/{chunk-5HOZDOJ7.js → chunk-HT5JQJMB.js} +1 -1
- package/dist/chunk-HT7273V7.js +1 -0
- package/dist/{chunk-ONZULPQH.js → chunk-HUB4HDWN.js} +75 -75
- package/dist/{chunk-HGZ2HRPO.js → chunk-IATNIWOC.js} +1 -1
- package/dist/{chunk-T6C4WC3Z.js → chunk-IHVWDKDV.js} +1 -1
- package/dist/{chunk-DMOLPSXF.js → chunk-IKXUYCK7.js} +1 -1
- package/dist/{chunk-HP4QYSBQ.js → chunk-IVQN2RUP.js} +1 -1
- package/dist/{chunk-FYQE5E6U.js → chunk-J324ZPO6.js} +1 -1
- package/dist/{chunk-3MZ7ELHS.js → chunk-JJQ3DJG5.js} +1 -1
- package/dist/{chunk-RLOEI6VE.js → chunk-JLAN6JXJ.js} +1 -1
- package/dist/{chunk-XRNBCV2B.js → chunk-K2GCCCCV.js} +1 -1
- package/dist/{chunk-ASKBYEO7.js → chunk-K4KKSBUW.js} +1 -1
- package/dist/{chunk-JC37YZ4I.js → chunk-K5UVCBIP.js} +1 -1
- package/dist/{chunk-3C72S6LO.js → chunk-KN2JIDNO.js} +1 -1
- package/dist/{chunk-WBJFTCEJ.js → chunk-KORVOCNN.js} +1 -1
- package/dist/{chunk-MGWCXTGD.js → chunk-KRQCQ57O.js} +1 -1
- package/dist/{chunk-3GD5ESWN.js → chunk-KT2AMFVW.js} +1 -1
- package/dist/{chunk-VRIFLMA3.js → chunk-L23Q53FM.js} +1 -1
- package/dist/{chunk-OXPEBT4I.js → chunk-L3DTONOI.js} +1 -1
- package/dist/{chunk-CEQGOCKX.js → chunk-LRETOC6P.js} +1 -1
- package/dist/{chunk-F5QKMDP3.js → chunk-LXFWK3O2.js} +1 -1
- package/dist/{chunk-KCAWHJGF.js → chunk-LZ2TN7EZ.js} +1 -1
- package/dist/{chunk-EDWIWZWM.js → chunk-MBAPM5HA.js} +1 -1
- package/dist/{chunk-IRLYC626.js → chunk-MGZK5EQW.js} +1 -1
- package/dist/{chunk-GSFWBFFH.js → chunk-MKUXSM33.js} +1 -1
- package/dist/chunk-MQ55QUOJ.js +276 -0
- package/dist/{chunk-A2NSORBM.js → chunk-NAQJMRPT.js} +1 -1
- package/dist/{chunk-Z5QEXS6F.js → chunk-NMXRDF4T.js} +1 -1
- package/dist/{chunk-SODCXZ5U.js → chunk-NOWM3CCG.js} +1 -1
- package/dist/{chunk-TXP6KFWO.js → chunk-NVDFXEQ5.js} +1 -1
- package/dist/{chunk-TP7CTMMT.js → chunk-OCILF2DD.js} +1 -1
- package/dist/{chunk-XWLNCBAG.js → chunk-OGBMFGYC.js} +1 -1
- package/dist/{chunk-ZMOW2YZ4.js → chunk-OIQ5NQ5I.js} +3 -3
- package/dist/{chunk-YTL45RXR.js → chunk-OKRKVVTK.js} +1 -1
- package/dist/{chunk-JQU2BJDH.js → chunk-ONNUEQGR.js} +1 -1
- package/dist/chunk-OSASE35V.js +6 -0
- package/dist/{chunk-6IMTMS2S.js → chunk-OTMTS5L4.js} +1 -1
- package/dist/{chunk-MKFRKNHF.js → chunk-OWPAHXDF.js} +1 -1
- package/dist/{chunk-YVPB7OT6.js → chunk-P7HZGJRU.js} +1 -1
- package/dist/{chunk-5T3ZT6CC.js → chunk-PIU3GVJ4.js} +1 -1
- package/dist/{chunk-DVD7I2TX.js → chunk-PSNCWS3Q.js} +1 -1
- package/dist/{chunk-XEZPN5TR.js → chunk-PSREELSQ.js} +4 -4
- package/dist/{chunk-SURFUFAZ.js → chunk-Q2CKRCPM.js} +1 -1
- package/dist/{chunk-WWCYEZUU.js → chunk-QA2D7DT2.js} +1 -1
- package/dist/{chunk-G3EWGBXR.js → chunk-QDMTJKQ3.js} +1 -1
- package/dist/{chunk-NY5N4ANL.js → chunk-QIJ7D2JS.js} +1 -1
- package/dist/{chunk-7DBKSSDK.js → chunk-QLN6IOOY.js} +1 -1
- package/dist/{chunk-A54TADAZ.js → chunk-QU3USVKT.js} +1 -1
- package/dist/chunk-R2E6TMBE.js +22 -0
- package/dist/chunk-R5COVIJM.js +1 -0
- package/dist/{chunk-S4KNPCW3.js → chunk-RFJ2LI64.js} +1 -1
- package/dist/chunk-RNF6T6IO.js +5 -0
- package/dist/{chunk-DVFVO6ZE.js → chunk-RSNFNZ6F.js} +1 -1
- package/dist/{chunk-7BPT5V24.js → chunk-RZ3UGOV4.js} +2 -2
- package/dist/{chunk-GGCP2TIK.js → chunk-S23ZG2RG.js} +1 -1
- package/dist/{chunk-3PS52ZT4.js → chunk-SAK42CAY.js} +1 -1
- package/dist/{chunk-G3RNO2TC.js → chunk-SBX7CMHM.js} +1 -1
- package/dist/{chunk-TUSS6PXB.js → chunk-SGQTRKYZ.js} +1 -1
- package/dist/{chunk-SQL67BKI.js → chunk-SNPJVVVE.js} +1 -1
- package/dist/{chunk-QUPZOBTB.js → chunk-SNRGS3YU.js} +1 -1
- package/dist/{chunk-FKKJQGYX.js → chunk-SUTSCIXU.js} +1 -1
- package/dist/{chunk-SHOMIS6Q.js → chunk-SWFCT5B7.js} +1 -1
- package/dist/{chunk-WZBZ7FWP.js → chunk-SZ64GAVG.js} +1 -1
- package/dist/{chunk-DTKGI43P.js → chunk-TDHIOONG.js} +1 -1
- package/dist/{chunk-7NRHZG5Y.js → chunk-TLN4BKXJ.js} +1 -1
- package/dist/{chunk-XLMKHTJ5.js → chunk-TXMZPF2U.js} +1 -1
- package/dist/{chunk-6BYHL3DS.js → chunk-TZOB52QK.js} +1 -1
- package/dist/{chunk-HVUMVDUG.js → chunk-U5BKU3OL.js} +1 -1
- package/dist/chunk-UK3BDOHR.js +7 -0
- package/dist/{chunk-YKDRUAY3.js → chunk-UORSJB4A.js} +90 -90
- package/dist/{chunk-Z6ZRS256.js → chunk-UY44O4IZ.js} +1 -1
- package/dist/{chunk-JG4FAT2T.js → chunk-V3H6SYK3.js} +1 -1
- package/dist/{chunk-AE3IQG7S.js → chunk-VBPMVVLV.js} +1 -1
- package/dist/{chunk-SVQDMZJO.js → chunk-VGBCG3I5.js} +1 -1
- package/dist/{chunk-MYMBHVC4.js → chunk-VHRUPKWH.js} +1 -1
- package/dist/{chunk-CZNUBAAG.js → chunk-VVHJ2AUF.js} +1 -1
- package/dist/{chunk-T4ZOTYOY.js → chunk-WB5GRBHW.js} +1 -1
- package/dist/{chunk-YNFQBYSL.js → chunk-WBKQSSWW.js} +1 -1
- package/dist/{chunk-MU7IVBGI.js → chunk-WDXDT7XY.js} +2 -2
- package/dist/{chunk-FAVPTYIR.js → chunk-WHOD5I7N.js} +1 -1
- package/dist/{chunk-7CT3NIXI.js → chunk-WL3M63DG.js} +1 -1
- package/dist/{chunk-25MYHE4W.js → chunk-WLJDMI7E.js} +1 -1
- package/dist/{chunk-VJG7VXFU.js → chunk-WZ3QWPK5.js} +2 -2
- package/dist/{chunk-BPKQA2EO.js → chunk-X5V7AGVU.js} +1 -1
- package/dist/{chunk-UFY4L5KQ.js → chunk-X76AYO36.js} +1 -1
- package/dist/{chunk-WBPP6PO7.js → chunk-XB7H2RYV.js} +1 -1
- package/dist/chunk-XHHAVKKV.js +1 -0
- package/dist/{chunk-4TCXPHKN.js → chunk-XKNDU62O.js} +1 -1
- package/dist/{chunk-7KID5BIR.js → chunk-XVJRGOJA.js} +1 -1
- package/dist/{chunk-CDSDQTNB.js → chunk-Y3ZAQZPH.js} +1 -1
- package/dist/{chunk-Q2LQJYRK.js → chunk-YGN65N6W.js} +1 -1
- package/dist/{chunk-UC4TOM36.js → chunk-YTC367JI.js} +1 -1
- package/dist/{chunk-TTAT62N3.js → chunk-Z2FGYMJ6.js} +1 -1
- package/dist/chunk-Z3QZNLT5.js +1 -0
- package/dist/{chunk-TSVEV2UD.js → chunk-ZC3EDADH.js} +1 -1
- package/dist/{chunk-O7HZ3EIP.js → chunk-ZLITAXPT.js} +1 -1
- package/dist/{chunk-WWVDZ3GC.js → chunk-ZNEQZV5K.js} +1 -1
- package/dist/{chunk-OVJVFB5E.js → chunk-ZOU6SOXW.js} +1 -1
- package/dist/{chunk-KFO2JNF5.js → chunk-ZQNGYJKJ.js} +1 -1
- package/dist/{chunk-MZDBH4XV.js → chunk-ZRM7ESSS.js} +1 -1
- package/dist/{chunk-ORYEDUKM.js → chunk-ZX33FUW3.js} +1 -1
- 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.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.js +1 -1
- 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.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- 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.js +1 -1
- 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.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.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.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/{cli-version-check-V25AVSZ6.js → cli-version-check-BW2CUMX4.js} +1 -1
- package/dist/{command-json-schema-C5UZXP2W.js → command-json-schema-LGR44Q2G.js} +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-OCGEEV4U.js → conf-store-TODPQ2LC.js} +1 -1
- package/dist/configs/all.yml +9 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/{custom-oclif-loader-ZVUKMRGH.js → custom-oclif-loader-BPE2TH4B.js} +1 -1
- package/dist/data/objects.json +204 -11
- package/dist/data/section.json +14 -0
- package/dist/data/setting.json +9 -5
- package/dist/data/shopify_system_translations.json +84 -21
- package/dist/{deprecations-A5AXXKIK.js → deprecations-5CSI24TV.js} +1 -1
- package/dist/dist-LPKYTX3M.js +1 -0
- package/dist/dist-WT6MPTKJ.js +1 -0
- package/dist/{environments-Y5JEI3U3.js → environments-3HTT5CVC.js} +1 -1
- package/dist/error-PFOKPWFX.js +1 -0
- package/dist/error-handler-23FASAEU.js +1 -0
- package/dist/{fs-UOOLPOHJ.js → fs-RA25PWSJ.js} +1 -1
- 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 +1 -1
- 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-EVDTYINS.js +1 -0
- package/dist/index.js +12 -12
- package/dist/{is-global-CI77T7NE.js → is-global-3DNAMKUU.js} +1 -1
- package/dist/{json-error-6PBUR4LQ.js → json-error-HGCRNJRF.js} +1 -1
- package/dist/{lib-4JVADMNT.js → lib-4ZA53LTZ.js} +1 -1
- package/dist/{lib-L4STV5B2.js → lib-F3MES3XF.js} +1 -1
- package/dist/{lib-LEEN55OD.js → lib-XPJABU24.js} +1 -1
- package/dist/{local-5NIWPWDS.js → local-LNGPIGLG.js} +1 -1
- package/dist/{metadata-IXPNNPNJ.js → metadata-VHLSUKCW.js} +1 -1
- package/dist/{node-package-manager-ALFEGGD6.js → node-package-manager-SSFNUVWB.js} +1 -1
- package/dist/notifications-system-3NQRYYKW.js +1 -0
- package/dist/{os-6TNQTEUN.js → os-KIKVJONE.js} +1 -1
- package/dist/{output-LEOB5LAM.js → output-DUJTSURG.js} +1 -1
- package/dist/{prettier-VLTY4MIE.js → prettier-NOE3TJJ5.js} +1 -1
- package/dist/{system-J4CTESP5.js → system-CGOZSROX.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-YDUI56E3.js → ui-YMBFS3NG.js} +1 -1
- package/dist/upgrade-73RRPDSC.js +1 -0
- package/dist/version-AMUEEBIG.js +1 -0
- package/dist/{version-2YL4YEQ2.js → version-S4MGCKDO.js} +1 -1
- package/dist/{workerd-5UPTEWNI.js → workerd-DRWNY3S4.js} +1 -1
- package/oclif.manifest.json +23 -62
- package/package.json +7 -7
- package/dist/analytics-QFDTQYPM.js +0 -1
- package/dist/analytics-XADBBHOH.js +0 -1
- package/dist/chunk-2BYW3BYX.js +0 -1
- package/dist/chunk-2PD7TNFS.js +0 -275
- package/dist/chunk-3Z75BVGJ.js +0 -1
- package/dist/chunk-4WBWZIN5.js +0 -6
- package/dist/chunk-62NW4EPI.js +0 -17
- package/dist/chunk-ALINJ6J2.js +0 -1
- package/dist/chunk-BFAOTQGH.js +0 -1
- package/dist/chunk-CIGWIKOW.js +0 -1
- package/dist/chunk-DXEMSLI6.js +0 -1
- package/dist/chunk-H4K3F7PP.js +0 -5
- package/dist/chunk-JGLLABZR.js +0 -8
- package/dist/chunk-JIY6XWSC.js +0 -1
- package/dist/chunk-LXIWMYM4.js +0 -1
- package/dist/chunk-MGX7UG44.js +0 -1
- package/dist/chunk-QGQWVA7N.js +0 -1
- package/dist/chunk-RSZAAN37.js +0 -1
- package/dist/chunk-SN3PMWUF.js +0 -6
- package/dist/chunk-TD6JBHUS.js +0 -1
- package/dist/chunk-TIM4CIXZ.js +0 -22
- package/dist/chunk-WNVOEE6T.js +0 -7
- package/dist/chunk-YOYPYB4H.js +0 -1
- package/dist/cli/commands/app/logs-next.js +0 -1
- package/dist/dist-NORLLIHQ.js +0 -1
- package/dist/dist-XBM4XZS4.js +0 -1
- package/dist/error-GI4DXVDU.js +0 -1
- package/dist/error-handler-BS2ZENQV.js +0 -1
- package/dist/http-2OXOS2AW.js +0 -1
- package/dist/notifications-system-FQW3GKH2.js +0 -1
- package/dist/upgrade-LBCZORG2.js +0 -1
- package/dist/version-X2CPQVWQ.js +0 -1
- /package/dist/{chunk-2S3FHQFS.js → chunk-HVECVOIO.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ca as a,Da as b,Ea as c,Fa as d,Ga as e,Ha as f,Ia as g}from"./chunk-UORSJB4A.js";import"./chunk-ZDF5N422.js";import"./chunk-OSASE35V.js";import"./chunk-WB5GRBHW.js";import"./chunk-CE6XQDAG.js";import"./chunk-MPW2YJWU.js";import"./chunk-EE72PCKT.js";import"./chunk-ARL5WBDK.js";import"./chunk-T7KHS6RF.js";import"./chunk-7A4ZE5IS.js";import"./chunk-7Y7AZRL3.js";import"./chunk-WLJDMI7E.js";import"./chunk-RNF6T6IO.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-HI5FTI3M.js";import"./chunk-FJOVMEPN.js";import"./chunk-636CTEW7.js";import"./chunk-2IXP3IPE.js";import"./chunk-OIQ5NQ5I.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-A5BSUUNQ.js";import"./chunk-4AWVU2OV.js";import"./chunk-R4E2E4NN.js";import"./chunk-VBPMVVLV.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-RFJ2LI64.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{g as compileData,d as recordError,f as recordEvent,e as recordRetry,c as recordTiming,b as reportAnalyticsEvent,a as sendAnalyticsEventFromStdin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aa as b,Ba as c,za as a}from"./chunk-UORSJB4A.js";import"./chunk-ZDF5N422.js";import"./chunk-OSASE35V.js";import"./chunk-WB5GRBHW.js";import"./chunk-CE6XQDAG.js";import"./chunk-MPW2YJWU.js";import"./chunk-EE72PCKT.js";import"./chunk-ARL5WBDK.js";import"./chunk-T7KHS6RF.js";import"./chunk-7A4ZE5IS.js";import"./chunk-7Y7AZRL3.js";import"./chunk-WLJDMI7E.js";import"./chunk-RNF6T6IO.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-HI5FTI3M.js";import"./chunk-FJOVMEPN.js";import"./chunk-636CTEW7.js";import"./chunk-2IXP3IPE.js";import"./chunk-OIQ5NQ5I.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-A5BSUUNQ.js";import"./chunk-4AWVU2OV.js";import"./chunk-R4E2E4NN.js";import"./chunk-VBPMVVLV.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-RFJ2LI64.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
|
package/dist/bootstrap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as m}from"./chunk-
|
|
1
|
+
import{a as r,b as m}from"./chunk-RZ3UGOV4.js";import{a as s}from"./chunk-J324ZPO6.js";import{a as n}from"./chunk-IKXUYCK7.js";import"./chunk-T7KHS6RF.js";import"./chunk-4AWVU2OV.js";import"./chunk-R4E2E4NN.js";import"./chunk-VBPMVVLV.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-RFJ2LI64.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import{e as c,g as t}from"./chunk-VKWPEFWQ.js";t();var a=c(m(),1);(0,a.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{await r(o),process.exit(1)});var p=process,e=!1,u=["SIGINT","SIGTERM","SIGQUIT"];u.forEach(o=>{process.on(o,()=>{e||(e=p.emit("shopify:signal",o),e||process.exit(1))})});var i=Number(process.env.SHOPIFY_CLI_COLUMNS);isNaN(i)||(process.stdout.columns=i);async function f({development:o}){await n({moduleURL:import.meta.url,development:o,lazyCommandLoader:s})}var S=f;export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-3DB4EC62.js";import{d as I,j as _,k as A,r as D}from"./chunk-36S6MFJQ.js";import{e as k}from"./chunk-TXMZPF2U.js";import{a as q}from"./chunk-GQ3LY7BY.js";import{e as x}from"./chunk-7HECBXSP.js";import{p as E,v as F}from"./chunk-VVHJ2AUF.js";import{b as O,c as j}from"./chunk-IKXUYCK7.js";import{M as L}from"./chunk-7A4ZE5IS.js";import{j as d}from"./chunk-FJOVMEPN.js";import{Eb as p,_a as v,ka as S,ta as R,zb as w}from"./chunk-OIQ5NQ5I.js";import{b as t}from"./chunk-3PYDIBTX.js";import{b as X}from"./chunk-VBPMVVLV.js";import{c as h,h as $}from"./chunk-IWTNUJGY.js";import{e as z,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();var J=t.object({name:t.string(),file:t.string().optional(),line:t.number().optional(),col:t.number().optional()}).passthrough(),N=t.object({type:t.enum(["O","C"]),at:t.number(),frame:t.number()}).passthrough(),H=t.object({name:t.string(),unit:t.enum(["bytes","microseconds","milliseconds","nanoseconds","none","seconds"]),startValue:t.number(),endValue:t.number()}),B=H.extend({type:t.literal("evented"),events:t.array(N)}).passthrough(),M=H.extend({type:t.literal("sampled"),samples:t.array(t.array(t.number())),weights:t.array(t.number())}).passthrough(),C=t.object({frames:t.array(J)}).passthrough(),T=t.object({$schema:t.literal("https://www.speedscope.app/file-format-schema.json"),shared:C,profiles:t.array(t.discriminatedUnion("type",[B,M])),name:t.string().optional(),exporter:t.string().optional(),activeProfileIndex:t.number().optional()}).passthrough().describe("The native Speedscope file format, defined by its $schema URL. Original keys and extension fields are preserved."),u=x({name:"ThemeProfileResult",schema:T,project:o=>o,definitions:{ProfileFrame:J,ProfileEvent:N,ProfileShared:C,EventedProfile:B,SampledProfile:M}});var g="https://storefront.invalid",K=200;async function W(o,e,r,s,a){if(r.startsWith("//")||!URL.canParse(r,g))throw new d(`${r} isn't a valid storefront URL.`,"Pass the path of a storefront page to --url, for example /products/classic-leather-jacket.");let n=await I(o)?await U(a,o.storeFqdn):void 0;if(s)throw new d("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let f=await D(e,o,s,n),m=Y(r),i=await A(f,{method:"GET",path:m.pathname,query:[...m.searchParams],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(i.status>=300&&i.status<400)throw new d(`The page ${r} redirects (${i.status}) instead of rendering, so it can't be profiled.`,Z(m,i.headers.get("Location")));if(i.status!==200){let y=await ee(i);throw new d(`Can't profile ${r}. The storefront responded with ${i.status}.${y}`)}let c=await i.text();return{result:T.parse(JSON.parse(c)),source:c}}function Y(o){let e=new URL(o,g);return Object.keys(_).forEach(r=>e.searchParams.delete(r)),e}function G(o){return`${o.pathname}${o.search}`}function Z(o,e){if(!e||!URL.canParse(e,g))return null;let r=Y(e);if(r.pathname==="/password")return"It redirects to the storefront password page. Check the storefront password, and pass it with --store-password.";let s=G(r),a=r.origin===g,n=a?s:r.href;return s===G(o)?`It redirects to ${n}.`:a?`It redirects to ${n}. Run the command again with --url "${s}".`:`It redirects to ${n}. If that page is on your storefront, run the command again with --url "${s}".`}async function ee(o){let e=o.headers.get("x-request-id"),r=e?`
|
|
2
2
|
Request ID: ${e}`:"",s=(await o.text()).trim(),a=o.headers.get("Content-Type")?.includes("application/json")??!1,f=s.length>0&&(a||s.length<=K)?`
|
|
3
3
|
${s}`:"";return`${r}${f}`}l();l();import{fileURLToPath as te}from"node:url";async function V(...o){let e=await v("package.json",{cwd:te(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?h($(e),"assets",...o):h($(e),"dist","assets",...o)}async function Q({result:o,source:e},r){u.validate(o),r==="json"?w(e):await re(e)}async function re(o){let e=process.env.WSL_DISTRO_NAME,r=e?`//wsl$/${e}`:"",s=await V("speedscope","index.html");p(`[Theme Profile] Resolved URL to open: ${s}`);let a="liquid-profile",n=Buffer.from(o).toString("base64"),f=`speedscope.loadFileFromBase64(${JSON.stringify(a)}, ${JSON.stringify(n)})`,m=`speedscope-${Number(new Date)}-${process.pid}`,i=h(S(),`${m}.js`);p(`[Theme Profile] writing JS file to: ${i}`),await R(i,f),p(`[Theme Profile] JS file created successfully: ${i}`),s=`${r}${s}`,i=`${r}${i}`,s+=`#localProfilePath=${i}`;let c=h(S(),`${m}.html`);p(`[Theme Profile] writing HTML file to: ${c}`),await R(c,`<script>window.location=${JSON.stringify(s)}</script>`),p(`[Theme Profile] HTML file created successfully: ${c}`),c=`${r}${c}`,s=`file://${c}`,p(`[Theme Profile] Opening URL: ${s}`);let y=await L(s);p(`[Theme Profile] URL opened successfully: ${y}`)}var P=z(X(),1);var b=class extends F{static jsonOutputSchema=u;static summary="Profile the Liquid rendering of a theme page.";static usage=["theme profile","theme profile --url /products/classic-leather-jacket"];static descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Eb as l}from"./chunk-
|
|
1
|
+
import{Eb as l}from"./chunk-OIQ5NQ5I.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as m}from"child_process";function S(o=process.pid,s="SIGTERM",t=!0,c){I(o,s,t,c??(e=>{e&&l(`Failed to kill process ${o}: ${e}`)}))}function I(o,s,t,c){let n=typeof o=="number"?o.toString():o;if(!/^\d+$/.test(n)){c(new Error("pid must be a number"));return}let e={};e[n]=[];let r=new Set;switch(r.add(n),process.platform){case"win32":{let i=t?"taskkill":"powershell.exe",f=t?["/pid",n,"/T","/F"]:["-NoProfile","-NonInteractive","-Command",`Get-CimInstance Win32_Process -Filter "ParentProcessId = ${n} AND ProcessId <> $PID" -ErrorAction Stop | ForEach-Object { taskkill /pid $_.ProcessId /T /F | Out-Null }`];m(i,f).on("close",a=>{a===0?c():c(new Error(`${i} exited with code ${a}`))});break}case"darwin":h(n,e,r,function(i){return m("pgrep",["-lfP",i])},function(){$(e,s,n,t,c)});break;default:h(n,e,r,function(i){return m("ps",["-o","pid command","--no-headers","--ppid",i])},function(){$(e,s,n,t,c)});break}}function $(o,s,t,c,n){let e=new Set;try{Object.keys(o).forEach(function(r){o[r].forEach(function(i){e.has(i)||(w(i,s),e.add(i))}),r===t&&c&&!e.has(r)&&(w(r,s),e.add(r))})}catch(r){n(r);return}n()}function w(o,s){try{process.kill(parseInt(o,10),s)}catch(t){if(t.code!=="ESRCH")throw t}}function h(o,s,t,c,n){let e=c(o),r="";e.stdout?.on("data",function(f){let d=f.toString("ascii");r+=d});let i=f=>{if(t.delete(o),f!==0){if(t.size===0){n();return}return}r.trim().split(`
|
|
2
2
|
`).forEach(function(d){let a=d.match(/^(\d+)\s(.*)$/);if(a){let u=a[1],E=a[2];s[o].push(u),s[u]=[],l(`Killing process ${u}: ${E}`),t.add(u),h(u,s,t,c,n)}})};e.on("close",i)}export{S as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as I}from"./chunk-LFOBYEWG.js";import{p as w}from"./chunk-
|
|
1
|
+
import{a as I}from"./chunk-LFOBYEWG.js";import{p as w}from"./chunk-UORSJB4A.js";import{w as l}from"./chunk-OSASE35V.js";import{m as u,n as m}from"./chunk-CE6XQDAG.js";import{a as h}from"./chunk-EE72PCKT.js";import{A as N,R as S,x as g,z as y}from"./chunk-7A4ZE5IS.js";import{j as d}from"./chunk-2KFYIYLI.js";import{m as _}from"./chunk-FJOVMEPN.js";import{Eb as a}from"./chunk-OIQ5NQ5I.js";import{b as n}from"./chunk-3PYDIBTX.js";import{a as f}from"./chunk-JD5P5RAJ.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var C="https://cdn.shopify.com/static/cli/notifications.json",T="Cache is empty",O=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear","send-analytics"],$=["127.0.0.1","localhost","::1","[::1]"];function c(){let e=process.env.SHOPIFY_CLI_NOTIFICATIONS_URL;if(e)try{let t=new globalThis.URL(e);if(v(t))return e;a(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${e}) must use https, or http with a loopback host. Falling back to default.`)}catch{a(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${e}) is not a valid URL. Falling back to default.`)}return C}function v(e){return e.protocol==="https:"?!0:e.protocol==="http:"&&$.includes(e.hostname)}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),x=n.object({notifications:n.array(E)});async function Z(e,t=process.env){try{let r=I();if(D(r,t)||d(t))return;let o=await k(),i=A(o.notifications,r,e);a(`Notifications to show: ${i.length}`),await L(i)}catch(r){if(r.message===T){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:i}=await import("./error-handler-23FASAEU.js");await i(o,"unexpected_error")}}function D(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||O.includes(e)}async function L(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
|
|
2
2
|
`),link:t.cta};switch(t.type){case"info":{g(r);break}case"warning":{y(r);break}case"error":throw N(r),new Error("abort")}u(`notification-${t.id}`,new Date().getTime().toString())})}async function k(){let e=`notifications-${c()}`,t=m(e)?.value;if(!t)throw new Error(T);let r=JSON.parse(t);return x.parse(r)}async function ee(){a("Fetching notifications...");let e=await w(c(),void 0,{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:3*1e3});if(e.status!==200)throw new Error(`Failed to fetch notifications: ${e.statusText}`);let t=await e.text(),r=JSON.parse(t),o=x.parse(r);return await F(t),o}async function F(e){u(`notifications-${c()}`,e),a(`Notifications from ${c()} stored in the cache`)}function te(e,t=process.argv,r=process.env){if(D(e,r)||!t[1])return;let o=process.execPath,s=[t[1],"notifications","list","--ignore-errors"];S(o,s,{background:!0,env:{...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},externalErrorHandler:async b=>{a(`Failed to fetch notifications in background: ${b.message}`)}})}function A(e,t,r,o=new Date(new Date().setUTCHours(0,0,0,0)),i=h){return e.filter(s=>V(s,i)).filter(s=>B(s,o)).filter(s=>R(s,t)).filter(s=>U(s,t,r)).filter(s=>H(s))}function V(e,t){let r=!e.minVersion||l(t,`>=${e.minVersion}`),o=!e.maxVersion||l(t,`<=${e.maxVersion}`);return r&&o}function B(e,t){let r=!e.minDate||new Date(e.minDate)<=t,o=!e.maxDate||new Date(e.maxDate)>=t;return r&&o}function R(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function U(e,t,r){let o=t.split(":")[0]??"all",i=e.surface??"all";return r?r.includes(i):i===o||i==="all"}function H(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=m(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}function re(e){let t=[];return e.minDate&&t.push(`from ${e.minDate}`),e.maxDate&&t.push(`to ${e.maxDate}`),e.minVersion&&t.push(`from v${e.minVersion}`),e.maxVersion&&t.push(`to v${e.maxVersion}`),e.frequency==="once"&&t.push("show only once"),e.frequency==="once_a_day"&&t.push("show once a day"),e.frequency==="once_a_week"&&t.push("show once a week"),e.surface&&t.push(`surface = ${e.surface}`),e.commands&&t.push(`commands = ${e.commands.join(", ")}`),t.join(`
|
|
3
3
|
`)}export{Z as a,k as b,ee as c,te as d,A as e,re as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as c,c as l}from"./chunk-
|
|
1
|
+
import{a as r,b as c,c as l}from"./chunk-DESZFFOK.js";import{b as i}from"./chunk-PSREELSQ.js";import{c as n}from"./chunk-IKXUYCK7.js";import{b as h}from"./chunk-VBPMVVLV.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 jsonOutputSchema=r;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;async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as N,b as c,c as S}from"./chunk-YR4J46US.js";import{a as O}from"./chunk-FRWQJAW2.js";import{a as w}from"./chunk-
|
|
1
|
+
import{a as N,b as c,c as S}from"./chunk-YR4J46US.js";import{a as O}from"./chunk-FRWQJAW2.js";import{a as w}from"./chunk-TXMZPF2U.js";import{a as E}from"./chunk-GQ3LY7BY.js";import{f as R,o as F}from"./chunk-RSNFNZ6F.js";import{e as g}from"./chunk-7HECBXSP.js";import{p as v,v as T}from"./chunk-VVHJ2AUF.js";import{b as u,c as d,f}from"./chunk-IKXUYCK7.js";import{y as l}from"./chunk-7A4ZE5IS.js";import{zb as h}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{b as j}from"./chunk-VBPMVVLV.js";import{e as _,g as m}from"./chunk-VKWPEFWQ.js";m();m();var x=O.extend({originalName:r.string(),theme:N}),a=g({name:"ThemeRenameResult",schema:r.object({status:r.literal("success"),changed:r.boolean(),originalName:r.string(),theme:c}).strict(),definitions:{Theme:c},project(t){let e=x.parse(t);return{status:e.status,changed:e.originalName!==e.theme.name,originalName:e.originalName,theme:S(e.theme)}}});m();function y(t,e,n){if(e==="json"){h(a.encode(t.data));return}l({body:[...n?[{subdued:`Environment: ${n}
|
|
2
2
|
|
|
3
3
|
`}]:[],"The theme",...w(t.originalTheme),"was renamed to",`'${t.requestedName}'`]})}m();async function I(t,e){let n=t.name??await R("New name for the theme"),o=await E(e,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}}),s=await F(o.id,{name:n},e);return{data:{status:"success",originalName:o.name,theme:{...s,processing:o.processing,shop:e.storeFqdn}},originalTheme:o,requestedName:n}}var i=_(j(),1);var p=class extends T{static jsonOutputSchema=a;static summary="Renames an existing theme.";static descriptionWithMarkdown=`Renames a theme in your store.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as G,t as B}from"./chunk-
|
|
1
|
+
import{k as G,t as B}from"./chunk-RSNFNZ6F.js";import{a as j}from"./chunk-FDSNRKGQ.js";import{a as C}from"./chunk-XHHAVKKV.js";import{Fa as f,Ha as h,S as L,U as q,p as I,q as w}from"./chunk-UORSJB4A.js";import{a as x}from"./chunk-EE72PCKT.js";import{A as P,B as O,S as N}from"./chunk-7A4ZE5IS.js";import{j as l,m as U}from"./chunk-FJOVMEPN.js";import{Eb as u,tb as _,vb as D}from"./chunk-OIQ5NQ5I.js";import{j as v,k as H}from"./chunk-3PYDIBTX.js";import{u as F}from"./chunk-A5BSUUNQ.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();var M=String.raw`(?:/(?:zh-hans|zh-hant|[a-z]{2,3})(?:-[a-zA-Z0-9]{2,})?)?`;function z(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function S(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function E(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),a=o[2]?.trim()??"";n&&(t[n]=a)}),t}function y(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var $=class extends l{};async function Ue(e){return B(e)}async function Ne(e,t,r){let o=K(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let a={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},s=await w(`${o}/password`,{headers:a,body:n.toString(),method:"POST",redirect:"manual"});if(s.status===429)throw f(new l(`Too many incorrect password attempts. Please try again after ${s.headers.get("retry-after")} seconds.`));return Y(s,o)}async function W(e,t,r,o,n={}){let a={},s=await X(e,r,n),i=K(t);if(a._shopify_essential=s,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return a;let c=await ie(s,e,i,o,n);return{...a,...c}}var ae=1;async function X(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),a=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let s={...r,...S()},i=await w(a,{method:"HEAD",redirect:"manual",headers:s}),c=i.headers.raw()["set-cookie"]??[],d=R(c,"_shopify_essential");if(!d){if(u(`Failed to obtain _shopify_essential cookie.
|
|
2
2
|
|
|
3
3
|
-Request ID: ${i.headers.get("x-request-id")??"unknown"}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l}from"./chunk-
|
|
1
|
+
import{e as l}from"./chunk-36S6MFJQ.js";import{c as t}from"./chunk-YY6TFARF.js";import{f as i,m,n as w,o as d,r as f}from"./chunk-VVHJ2AUF.js";import{I as n}from"./chunk-7A4ZE5IS.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function y(o,r,P){i()||f({store:r});let e=o??m()??await p(["Enter your",{link:{label:"store password",url:t(r)}}]),s=!1;for(;!await l(e,r,P);)s||(d(),s=!0),e=await p(["Incorrect",{link:{label:"store password",url:t(r)}},{char:"."},"Please try again"]);return w(e),e}async function p(o){return n({message:o,password:!0})}export{y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as w,X as y,Z as s,_ as E,l as S}from"./chunk-
|
|
1
|
+
import{E as w,X as y,Z as s,_ as E,l as S}from"./chunk-NAQJMRPT.js";import{y as u}from"./chunk-7A4ZE5IS.js";import{j as g}from"./chunk-FJOVMEPN.js";import{ta as f,zb as C}from"./chunk-OIQ5NQ5I.js";import{p as m}from"./chunk-IWTNUJGY.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import _ from"clipboardy";var P="{{SCAN_CONTEXT}}",I="<the findings document from step 4>",T="--suppress <number> --kind <kind> --reason <reason> --results-digest <digest>",O={posix:"bash",powershell:"powershell",cmd:"bat"};function r(e){return`\`${e.replace(/`/g,"'")}\``}function A(e,t){return`\`\`\`${O[t]}
|
|
2
2
|
${e}
|
|
3
3
|
\`\`\``}function c(e){return{...e,args:[...e.args,"--json","--no-input"]}}function k(e,t){let n=A(s(e,t),t),i=`replacing \`${e.stdinPlaceholder}\` with the file's path`,o=E(e,I,t);if(o===void 0)return`cmd.exe can't pipe multi-line text inline, so write the document to a file and redirect it to \`record\`, ${i}:
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as l}from"./chunk-FJOVMEPN.js";import{Kb as o,fb as y}from"./chunk-OIQ5NQ5I.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();function p(t){if(!(typeof t.command!="string"||!Array.isArray(t.args))&&t.args.every(e=>typeof e=="string"))return{command:t.command,args:t.args}}function b(t,e){return t.type===l.Abort?e?"external":"abort":"bug"}function s(t){if(t!=null)try{let e=y(t);return typeof e=="string"?o(e):void 0}catch(e){if(e instanceof TypeError)return;throw e}}function A(t){if(!Array.isArray(t))return;let e=t.map(s).filter(n=>n!==void 0);return e.length>0?e:void 0}function j(t){if(Array.isArray(t))return t.filter(e=>Array.isArray(e)).map(e=>e.map(n=>s(n)??""))}function S(t){if(typeof t!="object"||t===null||!("body"in t))return;let e="title"in t&&typeof t.title=="string"?o(t.title):void 0,n=t.body,r=typeof n=="object"&&n!==null&&"tabularData"in n?j(n.tabularData):s(n);if(r!==void 0)return{...e?{title:e}:{},body:r}}function T(t){if(!Array.isArray(t))return;let e=t.map(S).filter(n=>n!==void 0);return e.length>0?e:void 0}function E(t){let e=typeof t=="object"&&t!==null?t:{message:t},n=p(e),r=b(e,n),g=s(e.formattedMessage)??(typeof e.message=="string"?o(e.message):"Unknown error"),f=s(e.tryMessage),u=A(e.nextSteps),d=T(e.customSections),c=e.details,a={message:g,...typeof e.code=="string"&&e.code.length>0?{code:e.code}:{},...f===void 0?{}:{tryMessage:f},...u===void 0?{}:{nextSteps:u},...d===void 0?{}:{customSections:d},...c===void 0?{}:{details:c}},i;return r==="bug"?i={type:r,...a,...typeof e.stack=="string"?{stack:o(e.stack)}:{}}:r==="external"&&n?i={type:r,...a,...n}:i={type:"abort",...a},i}export{E as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as j}from"./chunk-FKIVKNOV.js";import{a as $}from"./chunk-
|
|
1
|
+
import{a as j}from"./chunk-FKIVKNOV.js";import{a as $}from"./chunk-5BUYR23E.js";import{a as f}from"./chunk-DDRP6QTC.js";import{a as R}from"./chunk-R5COVIJM.js";import{a as k}from"./chunk-K4KKSBUW.js";import{P as C}from"./chunk-7FBOMPO5.js";import{W as O}from"./chunk-4LJERO23.js";import{b as S}from"./chunk-CA3GVT4D.js";import{b as A,c as y}from"./chunk-IKXUYCK7.js";import{a as b}from"./chunk-LG3KEHGD.js";import{Sa as F,la as x,ta as w,tb as l,vb as m,zb as P}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{b as I}from"./chunk-VBPMVVLV.js";import{e as c,g as E}from"./chunk-IWTNUJGY.js";import{e as H,g as o}from"./chunk-VKWPEFWQ.js";o();o();async function J({app:n,remoteApp:e,organization:a,envFile:i}){let{variables:s}=await $(n,e,a),t=c(i),p=await F(t)?await x(t):null,T=s.flatMap(({name:V,value:g})=>g===void 0?[]:[[V,g]]),d=S(p,Object.fromEntries(T)),v=d!==p;return v&&await w(t,d),{result:{path:t,status:"success",changed:v,variables:s,content:d},previousContent:p}}o();var u=b({name:"AppEnvPullResult",schema:r.object({path:r.string().refine(E,"Expected an absolute path").describe("The absolute native dotenv file path."),status:r.literal("success"),changed:r.boolean().describe("Whether the dotenv file was created or updated."),variables:r.array(f).describe("The known app variables, not unrelated local variables."),content:r.string().describe("The complete native dotenv content, preserving existing variables and comments.")}).strict(),definitions:{AppEnvironmentVariable:f}});o();import{resolve as W}from"node:path";function z({result:n,previousContent:e},a){if(a==="json")return u.encode({...n,path:W(n.path)});let{path:i,changed:s,content:t}=n;return s?e===null?m`Created ${l.path(i)}:
|
|
2
2
|
|
|
3
3
|
${t}
|
|
4
4
|
`:m`Updated ${l.path(i)} to be:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v,c as w,d as O}from"./chunk-
|
|
1
|
+
import{a as v,c as w,d as O}from"./chunk-QDMTJKQ3.js";import{f as y,g as P,h as b}from"./chunk-PIU3GVJ4.js";import{a as F}from"./chunk-HT7273V7.js";import{a as h}from"./chunk-K4KKSBUW.js";import{Q as x}from"./chunk-7FBOMPO5.js";import{b as m,c as d}from"./chunk-IKXUYCK7.js";import{E as g,U as l}from"./chunk-7A4ZE5IS.js";import{Eb as n}from"./chunk-OIQ5NQ5I.js";import{b as N}from"./chunk-VBPMVVLV.js";import{e as I,g as f}from"./chunk-VKWPEFWQ.js";f();var i=I(N(),1);var a="_start",s=class S extends F{static jsonOutputSchema=v;static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...m,...h,...y,...d,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(S),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&!t["no-input"]&&l()){let E=r.map(u=>({label:u.target,value:u.export||a}));o=await g({message:"Which target would you like to execute?",choices:E})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,A=c&&`${e?.directory}/${c}`,U=await b(e,t.path,t["client-id"],t.reset,t.config),_={functionExtension:e,inputPath:t.input,export:o,stdin:"inherit",schemaPath:U,queryPath:A,profile:t.profile,json:t.json},T=await w(_);return O(T),{app:p}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as v,c as D}from"./chunk-
|
|
1
|
+
import{b as v,c as D}from"./chunk-SBX7CMHM.js";import{$ as w,E as g,I as S,L as b,Q as c,W as p,Z as o,t as h}from"./chunk-NAQJMRPT.js";import{j as u}from"./chunk-FJOVMEPN.js";import{i as y}from"./chunk-IWTNUJGY.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();async function x(t,e){let r=c(t);if(await S(t.appDirectory,r))return;let{scan:i}=p(t,e),n=new u(`No app security check results for ${r} in ${t.appDirectory}.`,`Run \`${o(i)}\`.`);throw n.code="results-directory-not-found",n}async function B(t,e){await x(t,e);let r=c(t),i=g(t.appDirectory,r),[n,s]=await Promise.all([k(i.deterministicFindingsPath,"deterministic"),k(i.agentFindingsPath,"agent")]),a=[A(n,"deterministic"),A(s,"agent")].filter(F=>F!==void 0);a.length>0&&E(a,p(t,e));let m=await v(t.appDirectory),l=P(n),d=P(s),{checks:R,suppressions:$}=h({deterministic:l?.document??null,agent:d?.document??null,suppressions:{entries:m,missingPaths:await D(t.appDirectory,m)}});return{sources:{deterministic:l,agent:d},checks:R,suppressions:$}}async function k(t,e){return{path:t,result:await b(t,e)}}function A(t,e){if(t.result.status==="invalid")return{source:e,path:t.path,errors:t.result.errors}}function P(t){return t.result.status!=="ok"?null:{path:t.path,document:t.result.value}}function E(t,e){let r=t.length===1?"The app security check results could not be loaded because a results file is invalid.":"The app security check results could not be loaded because both results files are invalid.",i=[...t.map(s=>C(s.source,e,`${y(s.path)}.`)),["Or run",{command:o(e.clean)},"to delete both results files and start over."]],n=new u(r,null,i,t.map(T));throw n.code="results-file-invalid",n.details={files:t.map(({path:s,errors:a})=>({path:w(s),errors:a}))},n}function C(t,e,r){return t==="deterministic"?["Run",{command:o(e.scan)},`to regenerate ${r}`]:["Have your coding agent run",{command:o(e.record)},`again to regenerate ${r}`]}function T(t){return{title:t.path,body:{list:{items:t.errors}}}}export{x as a,B as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-PSREELSQ.js";import{b as m,c as u}from"./chunk-IKXUYCK7.js";import{M as n}from"./chunk-7A4ZE5IS.js";import{a as i}from"./chunk-LG3KEHGD.js";import{zb as p}from"./chunk-OIQ5NQ5I.js";import{b as s}from"./chunk-3PYDIBTX.js";import{b as g}from"./chunk-VBPMVVLV.js";import{e as S,g as e}from"./chunk-VKWPEFWQ.js";e();e();async function f(t){let r=new URLSearchParams;return r.append("search",t??""),{url:`https://shopify.dev/docs?${r.toString()}`}}e();e();var o=i({name:"SearchResult",schema:s.object({url:s.string().url()})});async function l(t,r){r==="json"?p(o.encode(t)):await n(t.url)}var d=S(g(),1),a=class t extends h{static descriptionWithMarkdown="Search shopify.dev for the most relevant content matching a query. Best for discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static jsonOutputSchema=o;static description=this.descriptionForHelp();static usage="search [query]";static examples=[`# open the search modal on Shopify.dev
|
|
2
2
|
shopify search
|
|
3
3
|
|
|
4
4
|
# search for a term on Shopify.dev
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as s}from"./chunk-VBPMVVLV.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{e as i,g as n}from"./chunk-VKWPEFWQ.js";n();var t=i(s()),a={"no-input":t.Flags.boolean({description:"Disable interactive prompts and browser authentication.",env:"SHOPIFY_FLAG_NO_INPUT"})};function u(r=process.argv,e=process.env){return r.includes("--no-input")||o(e.SHOPIFY_FLAG_NO_INPUT)}export{a,u as b};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{A as D,P as h,W as y,Y as J,Z as Ae,ba as Te,c as W,ca as Ie,d as _e,e as G,f as Ve,fa as we,ga as Q,h as De,ha as Re,ia as xe,ja as qe,ka as ze,t as x}from"./chunk-HEB4YYM6.js";import{d as ye}from"./chunk-LXFWK3O2.js";import{B as b,N as Ne,O as fe,R as $,f as pe,p as ke,q as B,sa as g,ta as H,wa as j,x as w,xa as Se,y as ve,ya as R,z as L}from"./chunk-UORSJB4A.js";import{w as K}from"./chunk-OSASE35V.js";import{b as ce}from"./chunk-CE6XQDAG.js";import{a as re}from"./chunk-EE72PCKT.js";import{e as O,f as ue}from"./chunk-2KFYIYLI.js";import{j as k,n as _}from"./chunk-FJOVMEPN.js";import{Eb as V,Fb as be,N as P,Sa as me,fa as I,la as le,tb as he,vb as Fe}from"./chunk-OIQ5NQ5I.js";import{b as m}from"./chunk-3PYDIBTX.js";import{g as ge}from"./chunk-A5BSUUNQ.js";import{e as M,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();function Ce(n){return pe`
|
|
2
|
+
query OrganizationBetaFlags($organizationId: OrganizationID!) {
|
|
3
|
+
organization(organizationId: $organizationId) {
|
|
4
|
+
id
|
|
5
|
+
${n.map(e=>`flag_${e}: hasFeatureFlag(handle: "${e}")`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
}`}d();var Ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OrganizationExpFlags"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OrganizationID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"flagHandles"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"enabledFlags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"flagHandles"},value:{kind:"Variable",name:{kind:"Name",value:"flagHandles"}}}]},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var Y=class extends k{},F=class extends k{constructor(e,i){let a="unknown",t=r=>`an ${r}`;fe(e)?(a=e.orgName,t=r=>`the ${r} organization`):Ne(e)&&(a=e.email,t=r=>`the ${r} user`);let o=Fe`${he.yellow(a)}`.value,l=[[`Your current active session is associated with ${t(o)} account. To start a new session with a different account, run`,{command:"shopify auth login"}],["Have you",{link:{label:"created a Shopify Partners organization",url:"https://partners.shopify.com/signup"}},{char:"?"}],["Does your account include",{subdued:"Manage app"},"permissions?, please contact the owner of the organization to grant you access."],"Have you confirmed your accounts from the emails you received?",["Need to connect to a different App or organization? Run the command again with",{command:"--reset"}]];i&&l.push(["Do you have access to the right Shopify Partners organization? The CLI is loading",{link:{label:"this organization",url:`https://partner.shopify.com/${i}`}}]),super("No Organization found",void 0,l)}};async function bi(){let n=Ee(),e=await n.organizations();if(e.length===0){let i=await n.session();throw new F(i.accountInfo)}return e}async function _i(n,e){let i=await e.orgFromId(n);if(!i)throw new F((await e.session()).accountInfo,n);return i}async function Vi(n,e,i,a=["APP_DEVELOPMENT"]){let t=await i.storeByDomain(n.id,e,a);if(!t){let l=a.length===1&&a[0]==="APP_DEVELOPMENT"?"Ensure you have provided the correct store domain, that the store is a dev store, and that you have access to the store.":"Ensure you have provided the correct store domain and that you have access to the store.";throw new Y(`Could not find store for domain ${e} in organization ${n.businessName}.`,l)}return t}d();var A=class extends k{versionTag;constructor(e){super(`Version ${e} could not be found.`),this.versionTag=e}};d();var q;(function(n){n.Partners="Partners",n.BusinessPlatform="BusinessPlatform"})(q||(q={}));var In="https://dev.shopify.com",wn=["SHOPIFY_SERVICE_ACCOUNT_TOKEN","SHOPIFY_APP_AUTOMATION_TOKEN","SHOPIFY_CLI_PARTNERS_TOKEN"],X=x.appClientSecret;async function Rn(n){let e=Me(n.apiSecretKeys);return e||Me(await n.developerPlatformClient.appClientSecrets(n))}async function xn(n){let e=O()[X];return e?(V(`Using the app's client secret from ${X}.`),e):Rn(n)}async function Ci(n,e){let i=await xn(n);if(i)return i;throw new k("This command needs the app's client secret, and the App Management API didn't return one for your credentials.",`${e??Pe()} ${qn()}`)}function qn(){return`To give the CLI the app's client secret directly, for example in CI, set ${X} to it.`}function Pe(){let n=O(),e=wn.filter(i=>n[i]!==void 0);return e.length>0?`The token in ${e[0]} might not have access to the app's client secret. To use your own account, unset ${e.join(" and ")}, log in with \`shopify auth login\`, and run the command again.`:`Check that your account can view the app's client credentials in the Developer Dashboard: ${In}`}function Ui(){be(`SHOPIFY_API_SECRET isn't included because the App Management API didn't return the app's client secret for your credentials. ${Pe()}`)}function Me(n){return n.find(e=>e.secret)?.secret}d();var zn=h.extend({application_url:D(m.string({required_error:"Valid URL is required"})),embedded:m.boolean({required_error:"Boolean is required",invalid_type_error:"Value must be Boolean"}),app_preferences:m.object({url:D(m.string().max(255,{message:"String must be less than 255 characters"}))}).optional()}),Cn={app_url:"application_url",embedded:"embedded",preferences_url:"app_preferences.url"},Z="app_home",Un=y({identifier:Z,schema:zn,transformConfig:Cn,patchWithAppDevURLs:(n,e)=>{n.application_url=e.applicationUrl},getDevSessionUpdateMessages:async n=>[`Using URL: ${n.application_url}`]}),$i=Un;d();var En=h.extend({name:m.string({required_error:"String is required"}).max(30,{message:"String must be less than 30 characters"}),handle:m.string({required_error:"String is required"}).max(256,{message:"String must be less than 256 characters long"}).refine(n=>n&&/^\w*(?!-)[_a-z0-9-]+(?<!-)$/.test(n),{message:"String can't contain special characters"}).optional()}),Mn={name:"name",app_handle:"handle"},ee="branding",Pn=y({identifier:ee,schema:En,transformConfig:Mn}),Ji=Pn;d();var On=m.object({scopes:m.string().transform(n=>I(n)??"").optional(),required_scopes:m.array(m.string()).optional(),optional_scopes:m.array(m.string()).optional(),use_legacy_install_flow:m.boolean().optional()}),Bn=m.object({redirect_urls:m.array(D(m.string()))}),Ln=h.extend({access:m.object({admin:m.object({direct_api_mode:m.union([m.literal("online"),m.literal("offline")]).optional(),embedded_app_direct_api_access:m.boolean().optional()}).optional()}).optional(),access_scopes:On.optional(),auth:Bn}),ne="app_access",Oe={access:"access",scopes:"access_scopes.scopes",required_scopes:"access_scopes.required_scopes",optional_scopes:"access_scopes.optional_scopes",use_legacy_install_flow:"access_scopes.use_legacy_install_flow",redirect_url_allowlist:"auth.redirect_urls"};function $n(n){let{shop_scopes:e,...i}=n,a=typeof e=="string"?I(e):void 0;if(!a)return i;let t=typeof i.scopes=="string"?i.scopes:"";return{...i,scopes:I([t,a].join(","))}}var Hn={forward:n=>J(n,Oe),reverse:n=>J($n(n),Oe,!0)},jn=y({identifier:ne,schema:Ln,transformConfig:Hn,getDevSessionUpdateMessages:async n=>{let e=n.access_scopes!==void 0,i=n.access_scopes?.use_legacy_install_flow===!0,a=n.access_scopes?.scopes==null&&n.access_scopes?.required_scopes==null;if(i||e&&a)return["Using legacy install flow - access scopes are not auto-granted"];let t=n.access_scopes?.scopes?n.access_scopes.scopes.split(",").map(o=>o.trim()).join(", "):n.access_scopes?.required_scopes?.join(", ");return t?[`Access scopes auto-granted: ${t}`]:["App has been installed"]},patchWithAppDevURLs:(n,e)=>{e.redirectUrlWhitelist&&(n.auth={redirect_urls:e.redirectUrlWhitelist})}}),aa=jn;d();var Be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DevSessionCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assetsUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"websocketUrl"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"unsafeValidation"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devSessionCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appId"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}},{kind:"Argument",name:{kind:"Name",value:"assetsUrl"},value:{kind:"Variable",name:{kind:"Name",value:"assetsUrl"}}},{kind:"Argument",name:{kind:"Name",value:"websocketUrl"},value:{kind:"Variable",name:{kind:"Name",value:"websocketUrl"}}},{kind:"Argument",name:{kind:"Name",value:"isUnsafe"},value:{kind:"Variable",name:{kind:"Name",value:"unsafeValidation"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"websocketUrl"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"app"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"warnings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var Le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DevSessionUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assetsUrl"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"manifest"}},type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inheritedModuleUids"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"unsafeValidation"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devSessionUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appId"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}},{kind:"Argument",name:{kind:"Name",value:"assetsUrl"},value:{kind:"Variable",name:{kind:"Name",value:"assetsUrl"}}},{kind:"Argument",name:{kind:"Name",value:"manifest"},value:{kind:"Variable",name:{kind:"Name",value:"manifest"}}},{kind:"Argument",name:{kind:"Name",value:"inheritedModuleUids"},value:{kind:"Variable",name:{kind:"Name",value:"inheritedModuleUids"}}},{kind:"Argument",name:{kind:"Name",value:"isUnsafe"},value:{kind:"Variable",name:{kind:"Name",value:"unsafeValidation"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"websocketUrl"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"app"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"warnings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var $e={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DevSessionDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devSessionDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appId"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var He={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchStoreByDomain"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domain"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ShopFilterInput"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"accessibleShops"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}},{kind:"Argument",name:{kind:"Name",value:"search"},value:{kind:"Variable",name:{kind:"Name",value:"domain"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"externalId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"storeType"}},{kind:"Field",name:{kind:"Name",value:"primaryDomain"}},{kind:"Field",name:{kind:"Name",value:"shortName"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organizationPermissions"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var je={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListAppDevStores"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"accessibleShops"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"field"},value:{kind:"EnumValue",value:"STORE_TYPE"}},{kind:"ObjectField",name:{kind:"Name",value:"operator"},value:{kind:"EnumValue",value:"EQUALS"}},{kind:"ObjectField",name:{kind:"Name",value:"value"},value:{kind:"StringValue",value:"app_development",block:!1}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"field"},value:{kind:"EnumValue",value:"STORE_STATUS"}},{kind:"ObjectField",name:{kind:"Name",value:"operator"},value:{kind:"EnumValue",value:"EQUALS"}},{kind:"ObjectField",name:{kind:"Name",value:"value"},value:{kind:"StringValue",value:"ACTIVE",block:!1}}]}]}},{kind:"Argument",name:{kind:"Name",value:"search"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"externalId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"storeType"}},{kind:"Field",name:{kind:"Name",value:"primaryDomain"}},{kind:"Field",name:{kind:"Name",value:"shortName"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organizationPermissions"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var Ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DevStoreCapReached"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devStoreCapReached"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var We={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ProvisionShopAccess"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OrganizationUserProvisionShopAccessInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organizationUserProvisionShopAccess"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationUserProvisionShopAccessInput"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var Ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ActiveAppReleaseFromApiKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"app"},name:{kind:"Name",value:"appByKey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"apiKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AppVersionInfo"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReleasedAppModule"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AppModule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"userIdentifier"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"config"}},{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"specification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"externalIdentifier"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"experience"}},{kind:"Field",name:{kind:"Name",value:"managementExperience"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AppVersionInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"App"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"organizationId"}},{kind:"Field",name:{kind:"Name",value:"activeRoot"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grantedShopifyApprovalScopes"}}]}},{kind:"Field",name:{kind:"Name",value:"activeRelease"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"version"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"appModules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReleasedAppModule"}}]}}]}}]}}]}}]};d();var Je={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AppClientCredentials"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"app"},name:{kind:"Name",value:"appByKey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"apiKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"activeRoot"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clientCredentials"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secrets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReleaseVersion"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"versionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appReleaseCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appId"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}},{kind:"Argument",name:{kind:"Name",value:"versionId"},value:{kind:"Variable",name:{kind:"Name",value:"versionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"release"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"versionTag"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var Qe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAppVersion"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"version"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AppVersionInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"metadata"}},type:{kind:"NamedType",name:{kind:"Name",value:"VersionMetadataInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appVersionCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appId"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}},{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"Variable",name:{kind:"Name",value:"version"}}},{kind:"Argument",name:{kind:"Name",value:"metadata"},value:{kind:"Variable",name:{kind:"Name",value:"metadata"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"appModules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReleasedAppModule"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"versionTag"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReleasedAppModule"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AppModule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"userIdentifier"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"config"}},{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"specification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"externalIdentifier"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"experience"}},{kind:"Field",name:{kind:"Name",value:"managementExperience"}}]}}]}}]};d();var Ye={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAssetURL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sourceExtension"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SourceExtension"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appRequestSourceUploadUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sourceExtension"},value:{kind:"Variable",name:{kind:"Name",value:"sourceExtension"}}},{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceUploadUrl"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var Xe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AppVersionById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"versionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"versionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VersionInfo"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReleasedAppModule"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AppModule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"userIdentifier"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"config"}},{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"specification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"externalIdentifier"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"experience"}},{kind:"Field",name:{kind:"Name",value:"managementExperience"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VersionInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Version"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"versionTag"}}]}},{kind:"Field",name:{kind:"Name",value:"appModules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReleasedAppModule"}}]}}]}}]};d();var Ze={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AppVersions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"app"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"activeRelease"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"version"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"versions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"20"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"createdBy"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"versionTag"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"versionsCount"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var en={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AppInstallCount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"app"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"installCount"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var nn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateApp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"initialVersion"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AppVersionInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"initialVersion"},value:{kind:"Variable",name:{kind:"Name",value:"initialVersion"}}},{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"app"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var an={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"fetchSpecifications"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"specifications"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"externalIdentifier"}},{kind:"Field",name:{kind:"Name",value:"experience"}},{kind:"Field",name:{kind:"Name",value:"features"}},{kind:"Field",name:{kind:"Name",value:"uidStrategy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"appModuleLimit"}},{kind:"Field",name:{kind:"Name",value:"isClientProvided"}}]}},{kind:"Field",name:{kind:"Name",value:"validationSchema"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jsonSchema"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var tn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"listApps"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"activeRelease"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"version"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var on={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUserAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"organizations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var dn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"availableTopics"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiVersion"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableTopics"},arguments:[{kind:"Argument",name:{kind:"Name",value:"apiVersion"},value:{kind:"Variable",name:{kind:"Name",value:"apiVersion"}}}]}]}}]};d();var sn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CliTesting"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiKey"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiVersion"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"deliveryMethod"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sharedSecret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"topic"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cliTesting"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"Argument",name:{kind:"Name",value:"apiKey"},value:{kind:"Variable",name:{kind:"Name",value:"apiKey"}}},{kind:"Argument",name:{kind:"Name",value:"apiVersion"},value:{kind:"Variable",name:{kind:"Name",value:"apiVersion"}}},{kind:"Argument",name:{kind:"Name",value:"deliveryMethod"},value:{kind:"Variable",name:{kind:"Name",value:"deliveryMethod"}}},{kind:"Argument",name:{kind:"Name",value:"sharedSecret"},value:{kind:"Variable",name:{kind:"Name",value:"sharedSecret"}}},{kind:"Argument",name:{kind:"Name",value:"topic"},value:{kind:"Variable",name:{kind:"Name",value:"topic"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headers"}},{kind:"Field",name:{kind:"Name",value:"samplePayload"}},{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var rn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var ln={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SchemaDefinitionByTarget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"handle"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"version"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"target"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"Variable",name:{kind:"Name",value:"handle"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"api"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"schema"},arguments:[{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"Variable",name:{kind:"Name",value:"version"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"definition"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var mn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SchemaDefinitionByApiType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"version"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"api"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"schema"},arguments:[{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"Variable",name:{kind:"Name",value:"version"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"definition"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var ae="webhooks",Kn={forward:Te,reverse:n=>Ie(n)},Wn=y({identifier:ae,schema:we,transformConfig:Kn}),at=Wn;d();var un={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AppVersionByTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"versionTag"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"versionByTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appId"},value:{kind:"Variable",name:{kind:"Name",value:"appId"}}},{kind:"Argument",name:{kind:"Name",value:"tag"},value:{kind:"Variable",name:{kind:"Name",value:"versionTag"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VersionInfo"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReleasedAppModule"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AppModule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"userIdentifier"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"config"}},{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"specification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"externalIdentifier"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"experience"}},{kind:"Field",name:{kind:"Name",value:"managementExperience"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VersionInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Version"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"versionTag"}}]}},{kind:"Field",name:{kind:"Name",value:"appModules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReleasedAppModule"}}]}}]}}]};d();var pn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppLogsSubscribe"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shopIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appLogsSubscribe"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shopIds"},value:{kind:"Variable",name:{kind:"Name",value:"shopIds"}}},{kind:"Argument",name:{kind:"Name",value:"apiKey"},value:{kind:"Variable",name:{kind:"Name",value:"apiKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwtToken"}},{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var kn=M(H()),Gn=new kn.default({minTime:150,maxConcurrent:10});async function cn(n){let e="App Dev",i=b(n.shopFqdn),t=`https://${await ve(i)}/app_dev/unstable/graphql.json`,o=ce()==="local"?{"x-forwarded-host":i}:void 0;return Gn.schedule(()=>g({query:n.query,api:e,url:t,token:n.token,addedHeaders:o,variables:n.variables,unauthorizedHandler:n.unauthorizedHandler,preferredBehaviour:n.requestOptions?.requestMode}))}d();var vn=M(H()),Jn=new vn.default({minTime:150,maxConcurrent:10});async function Qn(n,e,i){let a="Functions",o=`https://${await w()}/functions/unstable/organizations/${n}/${i}/graphql`;return{token:e,api:a,url:o,responseOptions:{onResponse:ze}}}async function Nn(n){return await Jn.schedule(async()=>g({...await Qn(n.organizationId,n.token,n.appId),query:n.query,variables:n.variables,unauthorizedHandler:n.unauthorizedHandler}))}d();var fn=M(H()),Yn=new fn.default({minTime:150,maxConcurrent:10});async function Sn(n){let e="Webhooks",a=`https://${await w()}/webhooks/unstable/organizations/${n.organizationId}/graphql.json`;return Yn.schedule(()=>g({query:n.query,api:e,url:a,token:n.token,variables:n.variables,unauthorizedHandler:n.unauthorizedHandler}))}import{randomUUID as Xn}from"crypto";var yn="https://cdn.shopify.com/static/cli/extensions/templates.json",Zn=Xn(),ei=m.object({statusCode:m.literal(200),errors:m.array(m.object({path:m.tuple([m.literal("versionByTag")]),extensions:m.object({app_errors:m.object({errors:m.array(m.object({category:m.literal("not_found")})).nonempty()})})})).nonempty()}),C=class n{static instance;static getInstance(e){return n.instance??=new n(e),n.instance}static resetInstance(){n.instance=void 0}clientName=U.AppManagement;webUiName="Developer Dashboard";organizationSource=q.BusinessPlatform;bundleFormat="br";_session;constructor(e){this._session=e}async subscribeToAppLogs(e,i){return this.appManagementRequest({query:pn,variables:{shopIds:e.shopIds,apiKey:e.apiKey}})}async appLogs(e,i){let a=await ui({organizationId:i,jwtToken:e.jwtToken,cursor:e.cursor,filters:e.filters});try{let t=await a.json();return a.ok?{app_logs:t.app_logs??[],cursor:t.cursor,status:a.status}:{errors:t.errors??[`Request failed with status ${a.status}`],status:a.status}}catch(t){return{errors:[`Failed to parse response: ${t}`],status:a.status}}}async channelSpecExport(e){let i=W(e.id)??e.id,a=await xe(e.organizationId,i),t=await B(a,{method:"GET",headers:Q(await this.token())}),o;try{o=await t.json()}catch{o=void 0}let l=typeof o=="object"&&o!==null&&!Array.isArray(o)?o:void 0;return t.ok&&l?{ok:!0,status:t.status,body:l}:{ok:!1,status:t.status,body:l}}async session(){if(!this._session){if(ge())throw new Error("AppManagementClient.session() should not be invoked dynamically in a unit test");let e=await $(),{appManagementToken:i,businessPlatformToken:a,userId:t}=e,o=await j({query:on,cacheOptions:{cacheTTL:{hours:6},cacheExtraKey:t},token:a,unauthorizedHandler:this.createUnauthorizedHandler("businessPlatform")});if(ue()&&o.currentUserAccount){let l=o.currentUserAccount.organizations.nodes.map(r=>({name:r.name}));if(l.length>1)throw new _("Multiple organizations found for the CLI token");this._session={token:i,businessPlatformToken:a,accountInfo:{type:"ServiceAccount",orgName:l[0]?.name??"Unknown organization"},userId:t}}else o.currentUserAccount?this._session={token:i,businessPlatformToken:a,accountInfo:{type:"UserAccount",email:o.currentUserAccount.email},userId:t}:this._session={token:i,businessPlatformToken:a,accountInfo:{type:"UnknownAccount"},userId:t}}return this._session}async token(){return(await this.session()).token}async businessPlatformToken(){return(await this.session()).businessPlatformToken}async unsafeRefreshToken(){let e=await $({noPrompt:!0,forceRefresh:!0}),i=await this.session();return i.token=e.appManagementToken,i.businessPlatformToken=e.businessPlatformToken,i.token}async accountInfo(){return(await this.session()).accountInfo}async appFromIdentifiers(e){let{app:i}=await this.activeAppVersionRawResult(e);if(!i)return;let{name:a,appModules:t}=i.activeRelease.version,o=t.find(l=>l.specification.externalIdentifier==="app_home");return{id:i.id,title:a,apiKey:i.key,apiSecretKeys:[],organizationId:String(p(i.organizationId)),grantedScopes:i.activeRoot.grantedShopifyApprovalScopes,applicationUrl:o?.config?.app_url,embedded:o?.config?.embedded,flags:[],developerPlatformClient:this}}async appClientSecrets({apiKey:e}){let{app:i}=await this.appManagementRequest({query:Je,variables:{apiKey:e}});return i?.activeRoot.clientCredentials?.secrets.map(t=>({secret:t.key}))??[]}async organizations(){return(await Ve()).map(i=>({...i,source:this.organizationSource}))}async orgFromId(e){let i=await De(e,await this.businessPlatformToken(),this.createUnauthorizedHandler("businessPlatform"));if(i)return{...i,source:this.organizationSource}}async orgAndApps(e){let[i,{apps:a,hasMorePages:t}]=await Promise.all([this.orgFromId(e),this.appsForOrg(e)]);if(!i){let{accountInfo:o}=await this.session();throw new F(o,e)}return{organization:i,apps:a,hasMorePages:t}}async appsForOrg(e,i=""){let a=tn,t={query:i.split(" ").filter(r=>r).map(r=>`title:${r}`).join(" "),organizationId:e},o=await this.appManagementRequest({query:a,variables:t});if(!o.appsConnection)throw new _("Server failed to retrieve apps");return{apps:o.appsConnection.edges.map(r=>{let s=r.node;return{id:s.id,apiKey:s.key,title:s.activeRelease.version.name,organizationId:e}}),hasMorePages:o.appsConnection.pageInfo.hasNextPage}}async specifications({organizationId:e}){let i=an,a={organizationId:te(e)};return(await this.appManagementRequest({query:i,variables:a})).specifications.map(o=>({name:o.name,externalName:o.name,identifier:o.identifier,externalIdentifier:o.externalIdentifier,gated:!1,managementExperience:"cli",registrationLimit:o.uidStrategy.appModuleLimit,uidStrategy:mi(o.uidStrategy.__typename),experience:oe(o.experience,o.identifier),validationSchema:o.validationSchema}))}async templateSpecifications({organizationId:e},i={}){let a,{templatesJsonPath:t}=x,o=process.env[t];if(o){if(!await me(o))throw new k("There is no file at the path specified for template specifications");let u=await le(o);a=JSON.parse(u)}else try{a=await(await ke(yn)).json()}catch{throw new k(["Failed to fetch extension templates from",{link:{url:yn}},{char:"."},"This likely means a problem with your internet connection."])}let l=0,r=i.requestedTemplate?a.filter(u=>u.identifier===i.requestedTemplate):void 0,s=r&&r.length>0?r:a,v=(await li(s,async u=>this.organizationBetaFlags(e,u),async u=>this.organizationExpFlags(e,u))).map(u=>({...u,sortPriority:l++})),c=[];for(let u of a)u.group&&!c.includes(u.group)&&c.push(u.group);return{templates:v,groupOrder:c}}async createApp(e,i){let t=(await this.apiVersions(e.id)).publicApiVersions.filter(c=>c!=="unstable").sort().at(-1)??"unstable",o=ai(i,e.id,t),l=nn,r=await this.appManagementRequest({query:l,variables:o});if(!r.appCreate.app||r.appCreate.userErrors?.length>0){let c=r.appCreate.userErrors.map(u=>u.message).join(", ");throw new k(c)}let s=Vn([]),v=r.appCreate.app;return{...v,title:i.name,apiKey:v.key,apiSecretKeys:[],grantedScopes:i?.scopesArray??[],organizationId:e.id,newApp:!0,flags:s,developerPlatformClient:this}}async devStoresForOrg(e,i){let a=await this.businessPlatformOrganizationsRequest({query:je,organizationId:String(p(e)),variables:{searchTerm:i}}),t=a.organization;if(!t)throw new k("No organization found");let o=t.accessibleShops?.edges.map(r=>r.node)??[],l=_n(t.currentUser?.organizationPermissions??[]);return{stores:hn(o,l),hasMorePages:a.organization?.accessibleShops?.pageInfo.hasNextPage??!1}}async devStoreCapReached(e){return(await this.businessPlatformOrganizationsRequest({query:Ke,organizationId:String(p(e)),variables:{}})).organization?.devStoreCapReached??!1}async appExtensionRegistrations(e,i){let a=i??await this.activeAppVersion(e),t=[],o=[],l=[];return a.appModuleVersions.forEach(r=>{let s={id:r.registrationId,uuid:r.registrationUuid,title:r.handle,type:r.type,activeVersion:r.config?{config:JSON.stringify(r.config),...r.target&&{context:r.target}}:void 0};r.specification?.experience==="configuration"?t.push(s):r.specification?.options?.managementExperience==="dashboard"?l.push(s):o.push(s)}),{app:{dashboardManagedExtensionRegistrations:l,configurationRegistrations:t,extensionRegistrations:o}}}async appVersions({id:e,organizationId:i,title:a}){let t=Ze,o={appId:e},l=await this.appManagementRequest({query:t,variables:o});return l.app?{app:{id:l.app.id,organizationId:i,title:a,appVersions:{nodes:l.app.versions?.edges.map(r=>{let s=r.node;return{createdAt:s.createdAt,createdBy:{displayName:s.createdBy},versionTag:s.metadata.versionTag,status:s.id===l.app.activeRelease.version.id?"active":"inactive",versionId:s.id,message:s.metadata.message}})??[],pageInfo:{totalResults:l.app.versionsCount}}}}:{app:null}}async appInstallCount({id:e}){let i=en,a={appId:e};return(await this.appManagementRequest({query:i,variables:a})).app.installCount??0}async appVersionByTag({id:e,organizationId:i},a){let t=un,o={appId:e,versionTag:a},r=(await this.appManagementRequest({query:t,variables:o}).catch(s=>{throw ei.safeParse(s).success?new A(a):s})).versionByTag;if(!r)throw new A(a);return{id:parseInt(r.id,10),uuid:r.id,versionTag:r.metadata.versionTag,location:[await z({organizationId:i,id:e}),"versions",p(r.id)].join("/"),message:r.metadata.message??"",appModuleVersions:r.appModules.map(Fn)}}async appVersionsDiff(e,{versionId:i}){let a={versionId:i},[t,o]=await Promise.all([this.activeAppVersionRawResult(e.apiKey),this.appManagementRequest({query:Xe,variables:a})]),l=t.app.activeRelease.version.appModules,r=o.version.appModules,{added:s,removed:v,updated:c}=ri({currentModules:l,selectedVersionModules:r});function u(N){return{uuid:N.uuid,handle:N.handle,specification:{identifier:N.specification.identifier,experience:oe(N.specification.experience,N.specification.identifier),options:{managementExperience:"cli"}}}}return{app:{versionsDiff:{added:s.map(u),updated:c.map(u),removed:v.map(u)}}}}async activeAppVersion(e){let i=await this.activeAppVersionRawResult(e.apiKey);return{appModuleVersions:i.app.activeRelease.version.appModules.map(Fn),...i.app.activeRelease}}async generateSignedUploadUrl({apiKey:e,organizationId:i}){let a={sourceExtension:"BR",organizationId:te(i)},t=await this.appManagementRequest({query:Ye,variables:a,cacheOptions:{cacheTTL:{minutes:59},cacheExtraKey:`${e}-${Zn}`}});return{assetUrl:t.appRequestSourceUploadUrl.sourceUploadUrl,userErrors:t.appRequestSourceUploadUrl.userErrors}}async deploy({appManifest:e,appId:i,organizationId:a,versionTag:t,message:o,commitReference:l,bundleUrl:r,skipPublish:s}){let u={appId:i,version:r?{sourceUrl:r}:{source:e},metadata:{versionTag:t,message:o,sourceControlUrl:l}},N=await this.appManagementRequest({query:Qe,variables:u,requestOptions:{requestMode:"slow-request"}}),{version:f}=N.appVersionCreate,T=N.appVersionCreate.userErrors.map(bn)??[];if(!f)return{appDeploy:{userErrors:T}};let S={appDeploy:{appVersion:{uuid:f.id,id:parseInt(f.id,10),versionTag:f.metadata.versionTag,location:await si(a,i,f.id),appModuleVersions:f.appModules.map(se=>({uuid:se.uuid,registrationUuid:se.uuid,validationErrors:[]})),message:f.metadata.message},userErrors:T}};if(s)return S;let Tn={appId:i,versionId:f.id},E=await this.appManagementRequest({query:ie,variables:Tn});return E.appReleaseCreate.userErrors&&(S.appDeploy.userErrors=(S.appDeploy.userErrors??[]).concat(E.appReleaseCreate.userErrors.map(bn))),!E.appReleaseCreate.release&&S.appDeploy.userErrors.length===0&&S.appDeploy.userErrors.push({message:"The API did not return a release for the created app version.",category:"",details:[]}),S}async release({app:{id:e,organizationId:i},version:{versionId:a}}){let t={appId:e,versionId:a},o=await this.appManagementRequest({query:ie,variables:t});if(o.appReleaseCreate.release&&!o.appReleaseCreate.userErrors?.length)return{appRelease:{appVersion:{versionTag:o.appReleaseCreate.release.version.metadata.versionTag,message:o.appReleaseCreate.release.version.metadata.message,location:[await z({organizationId:i,id:e}),"versions",p(o.appReleaseCreate.release.version.id).toString()].join("/")}}};if(!o.appReleaseCreate.userErrors?.length)throw new k("The Developer Dashboard did not confirm the app version release.");return{appRelease:{userErrors:o.appReleaseCreate.userErrors?.map(l=>({field:l.field,message:l.message,category:l.category,details:[],on:l.on}))??[]}}}async storeByDomain(e,i,a){let o=(await Promise.all(a.map(s=>this.businessPlatformOrganizationsRequest({query:He,organizationId:String(p(e)),variables:{domain:i,filters:pi(s)}})))).map(s=>s.organization).filter(s=>s!=null);if(o.length===0)throw new k("No organization found");let l=o.flatMap(s=>{let v=s.accessibleShops?.edges.map(u=>u.node)??[],c=_n(s.currentUser?.organizationPermissions??[]);return hn(v,c)}),r=b(i);return l.find(s=>s.shopDomain===r)}async ensureUserAccessToStore(e,i){if(!i.provisionable)return;let t={input:{shopifyShopId:oi(i.shopId)}},l=(await R({query:We,token:await this.businessPlatformToken(),organizationId:String(p(e)),variables:t,unauthorizedHandler:this.createUnauthorizedHandler()})).organizationUserProvisionShopAccess;if(!l.success){let r=l.userErrors?.map(s=>s.message).join(", ")??"";throw new _(`Failed to provision user access to store: ${r}`)}}async sendSampleWebhook(e,i){let a=sn,t={address:e.address,apiKey:e.api_key,apiVersion:e.api_version,deliveryMethod:e.delivery_method,sharedSecret:e.shared_secret,topic:e.topic},o=await this.webhooksRequest({organizationId:i,query:a,variables:t}),l={samplePayload:"{}",headers:"{}",success:!1,userErrors:[]},r=o.cliTesting;return r&&(l={samplePayload:r.samplePayload??"{}",headers:r.headers??"{}",success:r.success,userErrors:r.errors.map(s=>({message:s,fields:[]}))}),{sendSampleWebhook:l}}async apiVersions(e){return{publicApiVersions:(await this.webhooksRequest({organizationId:e,query:rn,variables:{}})).publicApiVersions.map(a=>a.handle)}}async topics({api_version:e},i){let a=dn,t={apiVersion:e};return{webhookTopics:(await this.webhooksRequest({organizationId:i,query:a,variables:t})).availableTopics??[]}}async updateURLs(e){return V("\u26A0\uFE0F updateURLs is not implemented"),{appUpdate:{userErrors:[]}}}async targetSchemaDefinition(e,i,a){try{let{app:t}=await this.activeAppVersionRawResult(i),o=String(p(t.id));return(await this.functionsRequest({organizationId:a,query:ln,appId:o,variables:{handle:e.handle,version:e.version}}))?.target?.api?.schema?.definition??null}catch(t){throw new k(`Failed to fetch schema definition: ${t}`)}}async apiSchemaDefinition(e,i,a){try{let{app:t}=await this.activeAppVersionRawResult(i),o=String(p(t.id));return(await this.functionsRequest({organizationId:a,query:mn,appId:o,variables:e}))?.api?.schema?.definition??null}catch(t){throw new k(`Failed to fetch schema definition: ${t}`)}}toExtensionGraphQLType(e){return e.toLowerCase()}async appDeepLink({id:e,organizationId:i}){return z({id:e,organizationId:i})}async devSessionCreate({appId:e,assetsUrl:i,shopFqdn:a,websocketUrl:t,unsafeValidation:o}){let l=String(p(e));return this.appDevRequest({query:Be,shopFqdn:a,variables:{appId:l,assetsUrl:i??"",websocketUrl:t,unsafeValidation:o??!1},requestOptions:{requestMode:"slow-request"}})}async devSessionUpdate({appId:e,assetsUrl:i,shopFqdn:a,manifest:t,inheritedModuleUids:o,unsafeValidation:l}){let s={appId:String(p(e)),assetsUrl:i,manifest:JSON.stringify(t),inheritedModuleUids:o,unsafeValidation:l??!1};return this.appDevRequest({query:Le,shopFqdn:a,variables:s})}async devSessionDelete({appId:e,shopFqdn:i}){let a=String(p(e));return this.appDevRequest({query:$e,shopFqdn:i,variables:{appId:a}})}async getCreateDevStoreLink(e){let i=`https://${await L()}/dashboard/${e.id}/stores`;return[`Looks like you don't have any dev stores associated with ${e.businessName}'s Dev Dashboard.`,{link:{url:i,label:"Create a store in Dev Dashboard"}}]}async activeAppVersionRawResult(e){return this.appManagementRequest({query:Ge,variables:{apiKey:e}})}async organizationBetaFlags(e,i){let a={organizationId:gn(e)},t=await Se({query:Ce(i),token:await this.businessPlatformToken(),organizationId:e,variables:a,unauthorizedHandler:this.createUnauthorizedHandler()}),o={};return i.forEach(l=>{o[l]=!!t.organization[`flag_${l}`]}),o}async organizationExpFlags(e,i){let a={organizationId:gn(e),flagHandles:i},t=await R({query:Ue,token:await this.businessPlatformToken(),organizationId:e,variables:a,unauthorizedHandler:this.createUnauthorizedHandler()}),o={},l=t.organization?.enabledFlags??[];return i.forEach((r,s)=>{o[r]=!!l[s]}),o}async appManagementRequest(e){return qe({...e,token:await this.token(),unauthorizedHandler:this.createUnauthorizedHandler()})}async appDevRequest(e){return cn({...e,token:await this.token(),unauthorizedHandler:this.createUnauthorizedHandler()})}async businessPlatformRequest(e){return j({...e,token:await this.businessPlatformToken(),unauthorizedHandler:this.createUnauthorizedHandler("businessPlatform")})}async businessPlatformOrganizationsRequest(e){return R({...e,token:await this.businessPlatformToken(),unauthorizedHandler:this.createUnauthorizedHandler("businessPlatform")})}async functionsRequest(e){return Nn({...e,token:await this.token(),unauthorizedHandler:this.createUnauthorizedHandler()})}async webhooksRequest(e){return Sn({...e,token:await this.token(),unauthorizedHandler:this.createUnauthorizedHandler()})}createUnauthorizedHandler(e="default"){return Dn(this,e)}},ni="https://shopify.dev/apps/default-app-home",ii="https://shopify.dev/apps/default-app-home/api/auth";function ai(n,e,i){let{isLaunchable:a,scopesArray:t,name:o}=n;return{initialVersion:{source:{source:{name:o,modules:[{type:Z,config:{app_url:a?"https://example.com":ni,embedded:!0}},{type:ee,config:{name:o}},{type:ae,config:{api_version:i}},{type:ne,config:{redirect_url_allowlist:[a?"https://example.com/api/auth":ii],...t&&{scopes:t.map(v=>v.trim()).join(",")}}}]}}.source},organizationId:te(e)}}function ti(n){let e=n.startsWith("gid://")?p(n):Number(n);if(Number.isNaN(e))throw new Error(`Invalid organization ID: ${n}`);return`gid://organization/Organization/${e}`}function gn(n){return G(ti(n))}function te(n){return`gid://shopify/Organization/${n.startsWith("gid://")?p(n):Number(n)}`}function oi(n){return G(`gid://organization/ShopifyShop/${n}`)}function di(n){let e=_e(n);if(e===void 0)throw new Error(`Invalid encoded GID: ${n}`);return e}function p(n){if(n.startsWith("gid://")){let e=W(n);if(e===void 0)throw new Error(`Invalid GID: ${n}`);return Number(e)}return Number(n)}async function z({id:n,organizationId:e}){let i=p(e).toString();return`https://${await L()}/dashboard/${i}/apps/${p(n)}`}async function si(n,e,i){return`${await z({organizationId:n,id:e})}/versions/${p(i)}`}function ri({currentModules:n,selectedVersionModules:e}){let i=n.map(s=>s.userIdentifier),a=e.map(s=>s.userIdentifier),t=e.filter(s=>!i.includes(s.userIdentifier)),o=n.filter(s=>!a.includes(s.userIdentifier)),l=o.map(s=>s.userIdentifier),r=n.filter(s=>!l.includes(s.userIdentifier));return{added:t,removed:o,updated:r}}async function li(n,e,i,a=re){let t=P(n.flatMap(s=>s.organizationBetaFlags??[])),o=P(n.flatMap(s=>s.organizationExpFlags??[])),[l,r]=await Promise.all([t.length>0?e(t):Promise.resolve({}),o.length>0?i(o):Promise.resolve({})]);return n.filter(s=>{let v=!s.organizationBetaFlags||s.organizationBetaFlags.every(S=>l[S]),c=!s.organizationExpFlags||s.organizationExpFlags.every(S=>r[S]),u=!s.minimumCliVersion||K(a,`>=${s.minimumCliVersion}`),N=!s.deprecatedFromCliVersion||K(a,`<${s.deprecatedFromCliVersion}`),f=u&&N,T=ye(a)&&s.deprecatedFromCliVersion===void 0;return v&&c&&(f||T)})}function oe(n,e){if(e===Ae)return"configuration";switch(n){case"extension":case"configuration":case"deprecated":return n;default:return V(`Unknown specification experience value "${n}", defaulting to "extension"`),"extension"}}function mi(n){switch(n){case"UidStrategiesDynamic":return"dynamic";case"UidStrategiesStatic":return"single";case"UidStrategiesClientProvided":return"uuid";default:return"uuid"}}function hn(n,e){return n.map(i=>{let{externalId:a,primaryDomain:t,name:o,url:l,storeType:r}=i,s=l??t;if(!s)throw new _("The selected store does not have a valid URL");return{shopId:a?di(a):void 0,link:t,shopDomain:b(s),shopName:o,transferDisabled:!0,convertableToPartnerTest:!0,provisionable:e,storeType:r}})}function Fn(n){return{registrationId:n.userIdentifier===n.uuid?"":n.userIdentifier,registrationUuid:n.uuid,handle:n.handle,type:n.specification.externalIdentifier,config:n.config,target:n.target??"",specification:{...n.specification,identifier:n.specification.identifier,options:{managementExperience:n.specification.managementExperience},experience:oe(n.specification.experience,n.specification.externalIdentifier)}}}var ui=async({organizationId:n,jwtToken:e,cursor:i,filters:a})=>{let t=await Re(n,i,a),o=Q(e);return B(t,{method:"GET",headers:o})};function bn(n){let e=[],i=n.on[0]?.user_identifier;return i&&e.push({extension_id:i}),{...n,details:e}}function pi(n){return[{field:"STORE_TYPE",operator:"EQUALS",value:n.toLowerCase()},{field:"STORE_STATUS",operator:"EQUALS",value:"ACTIVE"}]}function _n(n){return n.includes("ondemand_access_to_stores")}var U;(function(n){n.AppManagement="app-management",n.Partners="partners"})(U||(U={}));function Ee(){return C.getInstance()}var An;An||(An={});var ki={};function Vn(n=[]){let e=[],i=n.map(a=>ki[a]);return e.filter(a=>!i.includes(a))}var de=new WeakMap;function Dn(n,e="default"){return{type:"token_refresh",handler:async()=>{let i=de.get(n);if(i)await i;else try{i=n.unsafeRefreshToken(),de.set(n,i),await i}finally{de.delete(n)}let a=await n.session();return{token:e==="businessPlatform"?a.businessPlatformToken:a.token}}}}export{A as a,q as b,Rn as c,xn as d,Ci as e,qn as f,Pe as g,Ui as h,Z as i,$i as j,ee as k,Ji as l,On as m,Bn as n,ne as o,aa as p,ae as q,at as r,ti as s,U as t,Ee as u,Dn as v,Y as w,F as x,bi as y,_i as z,Vi as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Zn}from"./chunk-
|
|
1
|
+
import{a as Zn}from"./chunk-CA3GVT4D.js";import{D as Fe,E as $e,H as ct,I as nt,K as ti,P as ei,Q as ni,T as ii,W as ri,Z as Ie,fa as oi,q as Kn,r as Yn,s as Qn,t as Se,u as J,v as at,z as Ht}from"./chunk-HEB4YYM6.js";import{a as Gr}from"./chunk-QLN6IOOY.js";import{a as Xn}from"./chunk-ZQNGYJKJ.js";import{da as zr}from"./chunk-MQ55QUOJ.js";import{a as Kr}from"./chunk-VJEKDBGZ.js";import{c as xt,d as H}from"./chunk-HR6R7JXN.js";import{a as $n,b as In}from"./chunk-LXFWK3O2.js";import{a as Gn}from"./chunk-2KACAQJS.js";import{a as qt}from"./chunk-U5BKU3OL.js";import{b as qr,fa as Mt,ga as Wt,ja as Q,p as Pn,s as Cn,v as En}from"./chunk-UORSJB4A.js";import{m as Bt,n as kn,s as Dn,t as jn,w as Vt,x as Jt}from"./chunk-OSASE35V.js";import{e as Sn,q as Fn}from"./chunk-CE6XQDAG.js";import{a as he}from"./chunk-EE72PCKT.js";import{a as tt,b as Lt}from"./chunk-ARL5WBDK.js";import{C as Rn,D as et,E as _e,G as Tn,I as bt,R as X,U as Mn,x as Un,y as ve,z as Nn}from"./chunk-7A4ZE5IS.js";import{b as wt,d as _n,e as Tt}from"./chunk-QBRRFFMZ.js";import{a as an}from"./chunk-LG3KEHGD.js";import{f as xe}from"./chunk-HI5FTI3M.js";import{j as v,m as Ln,n as Pe}from"./chunk-FJOVMEPN.js";import{Aa as mn,Da as K,Db as Jn,Ea as gn,Eb as _,Fb as Hn,Hb as qn,Ib as zn,Ja as yn,Ka as wn,L as st,N as B,Na as bn,Oa as xn,Q as Jr,R as Hr,Sa as x,Ta as L,Va as k,Wa as vn,X as z,Y as ge,_ as ye,_a as Y,aa as ln,ab as Nt,cb as Rt,da as pn,ja as we,kb as An,la as N,ma as Ot,na as yt,oa as V,pa as Ut,ta as T,tb as D,ua as fn,ub as Bn,va as M,vb as U,xa as dn,ya as hn,zb as Vn}from"./chunk-OIQ5NQ5I.js";import{i as On}from"./chunk-B4OMIONW.js";import{b as g,k as be}from"./chunk-3PYDIBTX.js";import{l as Ce,m as Ee,n as Wn}from"./chunk-A5BSUUNQ.js";import{a as mt}from"./chunk-JD5P5RAJ.js";import{c as u,d as Z,e as gt,f as F,g as Dt,h as E,i as $,j as jt,k as cn,m as un,s as me}from"./chunk-IWTNUJGY.js";import{a as ht,c as de,e as kt,f as Vr,g as f}from"./chunk-VKWPEFWQ.js";var wi=de((Gt,yi)=>{f();(function(t,e){typeof Gt=="object"&&typeof yi<"u"?e(Gt,(Hr(),Vr(Jr)),qr()):typeof define=="function"&&define.amd?define(["exports","tslib","graphql"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["graphql-tag"]={},t.tslib,t.graphql))})(Gt,(function(t,e,n){"use strict";var i=new Map,r=new Map,o=!0,s=!1;function a(C){return C.replace(/[\s,]+/g," ").trim()}function c(C){return a(C.source.body.substring(C.start,C.end))}function l(C){var A=new Set,S=[];return C.definitions.forEach(function(I){if(I.kind==="FragmentDefinition"){var j=I.name.value,W=c(I.loc),dt=r.get(j);dt&&!dt.has(W)?o&&console.warn("Warning: fragment with name "+j+` already exists.
|
|
2
2
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
3
3
|
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):dt||r.set(j,dt=new Set),dt.add(W),A.has(W)||(A.add(W),S.push(I))}else S.push(I)}),e.__assign(e.__assign({},C),{definitions:S})}function p(C){var A=new Set(C.definitions);A.forEach(function(I){I.loc&&delete I.loc,Object.keys(I).forEach(function(j){var W=I[j];W&&typeof W=="object"&&A.add(W)})});var S=C.loc;return S&&(delete S.startToken,delete S.endToken),C}function d(C){var A=a(C);if(!i.has(A)){var S=n.parse(C,{experimentalFragmentVariables:s,allowLegacyFragmentVariables:s,experimentalFragmentArguments:s});if(!S||S.kind!=="Document")throw new Error("Not a valid GraphQL document.");i.set(A,p(l(S)))}return i.get(A)}function m(C){for(var A=[],S=1;S<arguments.length;S++)A[S-1]=arguments[S];typeof C=="string"&&(C=[C]);var I=C[0];return A.forEach(function(j,W){j&&j.kind==="Document"?I+=j.loc.source.body:I+=j,I+=C[W+1]}),d(I)}function h(){i.clear(),r.clear()}function y(){o=!1}function P(){s=!0}function b(){s=!1}var w={gql:m,resetCaches:h,disableFragmentWarnings:y,enableExperimentalFragmentVariables:P,disableExperimentalFragmentVariables:b};(function(C){C.gql=w.gql,C.resetCaches=w.resetCaches,C.disableFragmentWarnings=w.disableFragmentWarnings,C.enableExperimentalFragmentVariables=w.enableExperimentalFragmentVariables,C.disableExperimentalFragmentVariables=w.disableExperimentalFragmentVariables})(m||(m={})),m.default=m;var R=m;t.default=R,t.disableExperimentalFragmentVariables=b,t.disableFragmentWarnings=y,t.enableExperimentalFragmentVariables=P,t.gql=m,t.resetCaches=h,Object.defineProperty(t,"__esModule",{value:!0})}))});var xi=de((Ta,bi)=>{f();bi.exports=wi().gql});var $i=de(Fi=>{f();var uo=Object.create,Kt=Object.defineProperty,lo=Object.getPrototypeOf,po=Object.prototype.hasOwnProperty,fo=Object.getOwnPropertyNames,ho=Object.getOwnPropertyDescriptor,_i=t=>Kt(t,"__esModule",{value:!0}),mo=(t,e)=>{_i(t);for(var n in e)Kt(t,n,{get:e[n],enumerable:!0})},go=(t,e,n)=>{if(_i(t),e&&typeof e=="object"||typeof e=="function")for(let i of fo(e))!po.call(t,i)&&i!=="default"&&Kt(t,i,{get:()=>e[i],enumerable:!(n=ho(e,i))||n.enumerable});return t},Yt=t=>t&&t.__esModule?t:go(Kt(t!=null?uo(lo(t)):{},"default",{value:t,enumerable:!0}),t);mo(Fi,{default:()=>Eo,generateContentsFromGraphqlString:()=>Si,generateGraphQLString:()=>Ci});var yo=Yt(ht("fs")),wo=Yt(xi()),bo=Yt(ht("readline")),vi=Yt(ht("path")),Pi=(t,e)=>{let n=e?e(t):t;return JSON.stringify(n,(i,r)=>r===void 0?"__undefined":r).replace(/"__undefined"/g,"undefined")},xo=(t,e)=>{let n=new Set,i=[],r=o=>{n.has(o)||(n.add(o),o.imports.forEach(s=>{let a=e[s.absolutePath];r(a)}),i.unshift(o))};return t.forEach(r),i},vo=t=>new Promise(e=>{let n=bo.default.createInterface({input:yo.default.createReadStream(t)}),i="",r=[],o=!1,s=(a,c)=>{let l=c.replace(a,""),p=l.replace(/"|'/g,""),d=vi.default.join(vi.default.dirname(t),p);r.push({absolutePath:d,relativePath:l})};n.on("line",a=>{a.startsWith("#import ")?s("#import ",a):a.startsWith("# import ")?s("# import ",a):o?i+=a+`
|
|
4
4
|
`:a[0]!=="#"&&a!==""&&(o=!0,i+=a+`
|
|
@@ -39,12 +39,12 @@ ${t}`}async function Lo(t){if(!await x(t)){_(`Could not determine api_version: s
|
|
|
39
39
|
command = "{COMMAND}"
|
|
40
40
|
|
|
41
41
|
Note that the command must output a dist/index.wasm file.
|
|
42
|
-
`),new Ln;return t.typegenCommand&&await Ct(t,e),qi(t.buildCommand,t,e)}async function qi(t,e,n){let i=t.split(" ");n.stdout.write(`Building function ${e.localIdentifier}...`),await X(i[0],i.slice(1),{stdout:n.stdout,stderr:n.stderr,cwd:e.directory,signal:n.signal})}f();var zi;function We(){return zi??=new Sn({projectName:"shopify-cli-app"}),zi}function Xt(t,e=We()){let n=Z(t);return _(U`Reading cached app information for directory ${D.path(n)}...`),e.get(n)}function Zt(t,e=We()){t.directory=Z(t.directory),_(U`Storing app information for directory ${D.path(t.directory)}:${D.json(t)}`);let n=e.get(t.directory);n?e.set(t.directory,{...n,...t}):e.set(t.directory,t)}function Gi(t,e=We()){let n=Z(t),i=e.get(n);i&&e.set(n,{...i,configFile:void 0})}f();f();var Ki=/^shopify\.app(\.[-\w]+)?\.toml$/,Et="shopify.app*.toml";function rt(t){return t?G(t)?t:`shopify.app.${z(t)}.toml`:J.app}function St(t){return $(t).match(Ki)?.[1]?.slice(1)}function G(t){return!!Ki.test(t)}var Vo="*.extension.toml",Jo="shopify.web.toml",Yi="extensions/*",Qi="**/node_modules/**",Ho=".env*",Ft=class t{static async load(e){let n=await qo(e),i=[],r=await zo(n,i);if(r.length===0)throw new v(`Could not find a Shopify app TOML file in ${n}`);let o=new Set;for(let b of r){let w=b.content.extension_directories;if(Array.isArray(w))for(let R of w)o.add(R);else o.add(Yi)}let s=await Go(n,[...o],i),a=new Set;for(let b of r){let w=b.content.web_directories;if(Array.isArray(w))for(let R of w)a.add(R)}let c=await Ko(n,a.size>0?[...a]:void 0,i),l=u(n,"package.json"),p=await x(l),d=p?await Bt(n):"unknown",m=p?await Dn(l):{},h=p?await jn(n):!1,y=await Yo(n),P=await Qo(n);return new t({directory:n,packageManager:d,nodeDependencies:m,usesWorkspaces:h,appConfigFiles:r,extensionConfigFiles:s,webConfigFiles:c,dotenvFiles:y,hiddenConfigRaw:P,errors:i})}directory;packageManager;nodeDependencies;usesWorkspaces;appConfigFiles;extensionConfigFiles;webConfigFiles;dotenvFiles;hiddenConfigRaw;errors;constructor(e){this.directory=e.directory,this.packageManager=e.packageManager,this.nodeDependencies=e.nodeDependencies,this.usesWorkspaces=e.usesWorkspaces,this.appConfigFiles=e.appConfigFiles,this.extensionConfigFiles=e.extensionConfigFiles,this.webConfigFiles=e.webConfigFiles,this.dotenvFiles=e.dotenvFiles,this.hiddenConfigRaw=e.hiddenConfigRaw,this.errors=e.errors}appConfigByName(e){return this.appConfigFiles.find(n=>$(n.path)===e)}appConfigByClientId(e){return this.appConfigFiles.find(n=>n.content.client_id===e)}get defaultAppConfig(){return this.appConfigByName(J.app)}},Be=class extends v{};async function qo(t){let e=await Y(async n=>{if((await k(u(n,Et))).some(r=>G($(r))))return n},{cwd:t,type:"directory"});if(!e)throw new Be(`Could not find a Shopify app configuration file. Looked in ${t} and parent directories.`);return e}async function zo(t,e){let n=u(t,Et),r=(await k(n)).filter(o=>G($(o)));return Ve(r,e)}async function Go(t,e,n){let r=(e.length>0?e:[Yi]).map(s=>u(t,s,Vo));r.push(`!${u(t,Qi)}`);let o=await k(r);return Ve(o,n)}async function Ko(t,e,n){let r=(e??["**"]).map(s=>u(t,s,Jo));r.push(`!${u(t,Qi)}`);let o=await k(r);return Ve(o,n)}async function Ve(t,e){let n=[];return await Promise.all(t.map(async i=>{try{n.push(await H.read(i))}catch(r){let o=r instanceof xt?r:new xt(i,`Failed to read ${i}`),s=new H(i,{});s.errors.push(o),n.push(s),e.push(o)}})),n}async function Yo(t){let e=u(t,Ho),i=(await k(e,{dot:!0})).filter(s=>{let a=$(s);return a===".env"||/^\.env\.[\w-]+$/.test(a)}),r=await Promise.all(i.map(async s=>{try{let a=await Zn(s);return[$(s),a]}catch{return}})),o=new Map;for(let s of r)s&&o.set(s[0],s[1]);return o}async function Qo(t){let e=u(t,J.hiddenFolder,J.hiddenConfig);try{if(await x(e)){let n=await N(e);return JSON.parse(n)}}catch{}return{}}f();f();f();f();f();function Xi(t,e){let n=t;if(!n.events?.subscription)return t;let i;e&&"application_url"in e&&(i=e?.application_url);let{handle:r,...o}=n,s=n.events.subscription,a=!Array.isArray(s),c=Zo(s).map(l=>{let{handle:p,...d}=l,m=a?d:l;return typeof m.uri=="string"?{...m,uri:ct(m.uri,i)}:m});return{...o,events:{...n.events,subscription:Array.isArray(s)?c:c[0]}}}function Zi(t,e){let{api_version:n,subscription:i}=Q(t,"events")??{},r=a=>{let{identifier:c,api_version:l,...p}=a;return l!==void 0&&l!==n?{...p,api_version:l}:p},o;if(Array.isArray(i))o=i.map(r);else if(i){let a=e?.handle??i.handle??Xo(i);o=[r({...i,handle:a})]}let s={};return n!==void 0&&(s.api_version=n),o!==void 0&&(s.subscription=o),{events:s}}function Xo(t){return z([t.topic,...t.actions].join("-")).slice(0,nt).replace(/-$/,"")}function Zo(t){return Array.isArray(t)?t:[t]}var $t="events",ts={forward:Xi,reverse:Zi},tr=g.string().trim().nonempty("Handle can't be empty").max(nt,`Handle can't exceed ${nt} characters`).regex(/^[a-zA-Z0-9_-]*$/,"Handle can only contain alphanumeric characters, underscores and hyphens").refine(t=>t!==$t,'The handle "events" is reserved for the legacy events module. Choose a different subscription handle.'),es=g.object({subscription:g.unknown().optional()}).passthrough(),ns=ei.extend({handle:tr.optional(),events:es.optional()}).superRefine((t,e)=>{let n=t.events?.subscription;if(n===void 0||Array.isArray(n))return;let i=tr.safeParse(t.handle);i.success||i.error.issues.forEach(r=>e.addIssue({...r,path:["handle"]}))}),is=g.preprocess(t=>{if(typeof t!="object"||t===null||Array.isArray(t)||!("handle"in t))return t;let e=Q(t,"events.subscription");if(e!==void 0&&!Array.isArray(e))return t;let{handle:n,...i}=t;return i},ns),rs=ri({identifier:$t,schema:is,transformConfig:ts,expandConfig:t=>{let e=t.events?.subscription;return Array.isArray(e)?e.map(n=>{let{handle:i,...r}=n;return{handle:i,events:{...t.events,subscription:r}}}):[t]},getIdentity:t=>{if(t.handle)return{handle:t.handle,uid:t.handle}},getTarget:t=>{let e=t.events?.subscription?.topic;return typeof e=="string"?e:void 0}}),hu=rs;f();function os(t,e){return e}async function te(t,e,n){let i={};try{let s=await N(t);i=JSON.parse(s)}catch{}let r={[e]:n},o=Mt(i,r,os);await T(t,JSON.stringify(o,null,2))}var ss=g.array(g.string()).optional().transform(as).transform(cs);function as(t){return t?.map(e=>e.replace(/[\/\\]+$/,""))}function cs(t){return t?.map(e=>e.replace(/([^\*])\*$/,"$1**"))}var ne=g.object({client_id:g.string(),build:g.object({automatically_update_urls_on_dev:g.boolean().optional(),dev_store_url:g.string().optional(),include_config_on_deploy:g.boolean().optional()}).optional(),extension_directories:ss,web_directories:g.array(g.string()).optional()}).passthrough();function rr(t,e=!0){let n=t.reduce((i,r)=>r.contributeToAppConfigurationSchema(i),ne);return e?n.passthrough():t.length>0?n.strict():n}function us(t){return t.access_scopes?.scopes??""}function ie(t){let e=us(t);return e.length?e.split(",").map(n=>n.trim()):[]}function ls(t){return u(t,J.hiddenFolder,J.hiddenConfig)}var O;(function(t){t.Frontend="frontend",t.Backend="backend",t.Background="background"})(O||(O={}));var er=g.preprocess(Fe,g.string()),nr=g.object({auth_callback_path:g.union([er,er.array()]).optional(),webhooks_path:g.preprocess(Fe,g.string()).optional(),port:g.number().max(65536).min(0).optional(),commands:g.object({build:g.string().optional(),predev:g.string().optional(),dev:g.string()}),name:g.string().optional(),hmr_server:g.object({http_paths:g.string().array()}).optional()}),ir=g.enum([O.Frontend,O.Backend,O.Background]).default(O.Frontend),or=g.union([nr.extend({roles:g.array(ir)}),nr.extend({type:ir})]),ee=class{name;idEnvironmentVariableName="SHOPIFY_API_KEY";directory;configPath;configuration;clientIdOverride;webs;dotenv;errors;specifications;configSchema;remoteFlags;realExtensions;devApplicationURLs;_hiddenConfig;constructor({name:e,directory:n,configPath:i,configuration:r,clientIdOverride:o,webs:s,modules:a,dotenv:c,errors:l,specifications:p,configSchema:d,remoteFlags:m,hiddenConfig:h,devApplicationURLs:y}){this.name=e,this.directory=n,this.configPath=i,this.configuration=r,this.clientIdOverride=o,this.webs=s,this.dotenv=c,this.realExtensions=a,this.errors=l??new It,this.specifications=p,this.configSchema=d??ne,this.remoteFlags=m??[],this._hiddenConfig=h,y&&this.setDevApplicationURLs(y)}get allExtensions(){return this.
|
|
42
|
+
`),new Ln;return t.typegenCommand&&await Ct(t,e),qi(t.buildCommand,t,e)}async function qi(t,e,n){let i=t.split(" ");n.stdout.write(`Building function ${e.localIdentifier}...`),await X(i[0],i.slice(1),{stdout:n.stdout,stderr:n.stderr,cwd:e.directory,signal:n.signal})}f();var zi;function We(){return zi??=new Sn({projectName:"shopify-cli-app"}),zi}function Xt(t,e=We()){let n=Z(t);return _(U`Reading cached app information for directory ${D.path(n)}...`),e.get(n)}function Zt(t,e=We()){t.directory=Z(t.directory),_(U`Storing app information for directory ${D.path(t.directory)}:${D.json(t)}`);let n=e.get(t.directory);n?e.set(t.directory,{...n,...t}):e.set(t.directory,t)}function Gi(t,e=We()){let n=Z(t),i=e.get(n);i&&e.set(n,{...i,configFile:void 0})}f();f();var Ki=/^shopify\.app(\.[-\w]+)?\.toml$/,Et="shopify.app*.toml";function rt(t){return t?G(t)?t:`shopify.app.${z(t)}.toml`:J.app}function St(t){return $(t).match(Ki)?.[1]?.slice(1)}function G(t){return!!Ki.test(t)}var Vo="*.extension.toml",Jo="shopify.web.toml",Yi="extensions/*",Qi="**/node_modules/**",Ho=".env*",Ft=class t{static async load(e){let n=await qo(e),i=[],r=await zo(n,i);if(r.length===0)throw new v(`Could not find a Shopify app TOML file in ${n}`);let o=new Set;for(let b of r){let w=b.content.extension_directories;if(Array.isArray(w))for(let R of w)o.add(R);else o.add(Yi)}let s=await Go(n,[...o],i),a=new Set;for(let b of r){let w=b.content.web_directories;if(Array.isArray(w))for(let R of w)a.add(R)}let c=await Ko(n,a.size>0?[...a]:void 0,i),l=u(n,"package.json"),p=await x(l),d=p?await Bt(n):"unknown",m=p?await Dn(l):{},h=p?await jn(n):!1,y=await Yo(n),P=await Qo(n);return new t({directory:n,packageManager:d,nodeDependencies:m,usesWorkspaces:h,appConfigFiles:r,extensionConfigFiles:s,webConfigFiles:c,dotenvFiles:y,hiddenConfigRaw:P,errors:i})}directory;packageManager;nodeDependencies;usesWorkspaces;appConfigFiles;extensionConfigFiles;webConfigFiles;dotenvFiles;hiddenConfigRaw;errors;constructor(e){this.directory=e.directory,this.packageManager=e.packageManager,this.nodeDependencies=e.nodeDependencies,this.usesWorkspaces=e.usesWorkspaces,this.appConfigFiles=e.appConfigFiles,this.extensionConfigFiles=e.extensionConfigFiles,this.webConfigFiles=e.webConfigFiles,this.dotenvFiles=e.dotenvFiles,this.hiddenConfigRaw=e.hiddenConfigRaw,this.errors=e.errors}appConfigByName(e){return this.appConfigFiles.find(n=>$(n.path)===e)}appConfigByClientId(e){return this.appConfigFiles.find(n=>n.content.client_id===e)}get defaultAppConfig(){return this.appConfigByName(J.app)}},Be=class extends v{};async function qo(t){let e=await Y(async n=>{if((await k(u(n,Et))).some(r=>G($(r))))return n},{cwd:t,type:"directory"});if(!e)throw new Be(`Could not find a Shopify app configuration file. Looked in ${t} and parent directories.`);return e}async function zo(t,e){let n=u(t,Et),r=(await k(n)).filter(o=>G($(o)));return Ve(r,e)}async function Go(t,e,n){let r=(e.length>0?e:[Yi]).map(s=>u(t,s,Vo));r.push(`!${u(t,Qi)}`);let o=await k(r);return Ve(o,n)}async function Ko(t,e,n){let r=(e??["**"]).map(s=>u(t,s,Jo));r.push(`!${u(t,Qi)}`);let o=await k(r);return Ve(o,n)}async function Ve(t,e){let n=[];return await Promise.all(t.map(async i=>{try{n.push(await H.read(i))}catch(r){let o=r instanceof xt?r:new xt(i,`Failed to read ${i}`),s=new H(i,{});s.errors.push(o),n.push(s),e.push(o)}})),n}async function Yo(t){let e=u(t,Ho),i=(await k(e,{dot:!0})).filter(s=>{let a=$(s);return a===".env"||/^\.env\.[\w-]+$/.test(a)}),r=await Promise.all(i.map(async s=>{try{let a=await Zn(s);return[$(s),a]}catch{return}})),o=new Map;for(let s of r)s&&o.set(s[0],s[1]);return o}async function Qo(t){let e=u(t,J.hiddenFolder,J.hiddenConfig);try{if(await x(e)){let n=await N(e);return JSON.parse(n)}}catch{}return{}}f();f();f();f();f();function Xi(t,e){let n=t;if(!n.events?.subscription)return t;let i;e&&"application_url"in e&&(i=e?.application_url);let{handle:r,...o}=n,s=n.events.subscription,a=!Array.isArray(s),c=Zo(s).map(l=>{let{handle:p,...d}=l,m=a?d:l;return typeof m.uri=="string"?{...m,uri:ct(m.uri,i)}:m});return{...o,events:{...n.events,subscription:Array.isArray(s)?c:c[0]}}}function Zi(t,e){let{api_version:n,subscription:i}=Q(t,"events")??{},r=a=>{let{identifier:c,api_version:l,...p}=a;return l!==void 0&&l!==n?{...p,api_version:l}:p},o;if(Array.isArray(i))o=i.map(r);else if(i){let a=e?.handle??i.handle??Xo(i);o=[r({...i,handle:a})]}let s={};return n!==void 0&&(s.api_version=n),o!==void 0&&(s.subscription=o),{events:s}}function Xo(t){return z([t.topic,...t.actions].join("-")).slice(0,nt).replace(/-$/,"")}function Zo(t){return Array.isArray(t)?t:[t]}var $t="events",ts={forward:Xi,reverse:Zi},tr=g.string().trim().nonempty("Handle can't be empty").max(nt,`Handle can't exceed ${nt} characters`).regex(/^[a-zA-Z0-9_-]*$/,"Handle can only contain alphanumeric characters, underscores and hyphens").refine(t=>t!==$t,'The handle "events" is reserved for the legacy events module. Choose a different subscription handle.'),es=g.object({subscription:g.unknown().optional()}).passthrough(),ns=ei.extend({handle:tr.optional(),events:es.optional()}).superRefine((t,e)=>{let n=t.events?.subscription;if(n===void 0||Array.isArray(n))return;let i=tr.safeParse(t.handle);i.success||i.error.issues.forEach(r=>e.addIssue({...r,path:["handle"]}))}),is=g.preprocess(t=>{if(typeof t!="object"||t===null||Array.isArray(t)||!("handle"in t))return t;let e=Q(t,"events.subscription");if(e!==void 0&&!Array.isArray(e))return t;let{handle:n,...i}=t;return i},ns),rs=ri({identifier:$t,schema:is,transformConfig:ts,expandConfig:t=>{let e=t.events?.subscription;return Array.isArray(e)?e.map(n=>{let{handle:i,...r}=n;return{handle:i,events:{...t.events,subscription:r}}}):[t]},getIdentity:t=>{if(t.handle)return{handle:t.handle,uid:t.handle}},getTarget:t=>{let e=t.events?.subscription?.topic;return typeof e=="string"?e:void 0}}),hu=rs;f();function os(t,e){return e}async function te(t,e,n){let i={};try{let s=await N(t);i=JSON.parse(s)}catch{}let r={[e]:n},o=Mt(i,r,os);await T(t,JSON.stringify(o,null,2))}var ss=g.array(g.string()).optional().transform(as).transform(cs);function as(t){return t?.map(e=>e.replace(/[\/\\]+$/,""))}function cs(t){return t?.map(e=>e.replace(/([^\*])\*$/,"$1**"))}var ne=g.object({client_id:g.string(),build:g.object({automatically_update_urls_on_dev:g.boolean().optional(),dev_store_url:g.string().optional(),include_config_on_deploy:g.boolean().optional()}).optional(),extension_directories:ss,web_directories:g.array(g.string()).optional()}).passthrough();function rr(t,e=!0){let n=t.reduce((i,r)=>r.contributeToAppConfigurationSchema(i),ne);return e?n.passthrough():t.length>0?n.strict():n}function us(t){return t.access_scopes?.scopes??""}function ie(t){let e=us(t);return e.length?e.split(",").map(n=>n.trim()):[]}function ls(t){return u(t,J.hiddenFolder,J.hiddenConfig)}var O;(function(t){t.Frontend="frontend",t.Backend="backend",t.Background="background"})(O||(O={}));var er=g.preprocess(Fe,g.string()),nr=g.object({auth_callback_path:g.union([er,er.array()]).optional(),webhooks_path:g.preprocess(Fe,g.string()).optional(),port:g.number().max(65536).min(0).optional(),commands:g.object({build:g.string().optional(),predev:g.string().optional(),dev:g.string()}),name:g.string().optional(),hmr_server:g.object({http_paths:g.string().array()}).optional()}),ir=g.enum([O.Frontend,O.Backend,O.Background]).default(O.Frontend),or=g.union([nr.extend({roles:g.array(ir)}),nr.extend({type:ir})]),ee=class{name;idEnvironmentVariableName="SHOPIFY_API_KEY";directory;configPath;configuration;clientIdOverride;webs;dotenv;errors;specifications;configSchema;remoteFlags;realExtensions;devApplicationURLs;_hiddenConfig;constructor({name:e,directory:n,configPath:i,configuration:r,clientIdOverride:o,webs:s,modules:a,dotenv:c,errors:l,specifications:p,configSchema:d,remoteFlags:m,hiddenConfig:h,devApplicationURLs:y}){this.name=e,this.directory=n,this.configPath=i,this.configuration=r,this.clientIdOverride=o,this.webs=s,this.dotenv=c,this.realExtensions=a,this.errors=l??new It,this.specifications=p,this.configSchema=d??ne,this.remoteFlags=m??[],this._hiddenConfig=h,y&&this.setDevApplicationURLs(y)}get allExtensions(){return this.realExtensions}get nonConfigExtensions(){return this.realExtensions.filter(e=>!e.isAppConfigExtension)}setDevApplicationURLs(e){this.patchAppConfiguration(e),this.realExtensions.forEach(n=>n.patchWithAppDevURLs(e))}async manifest(e){let n=await Promise.all(this.realExtensions.map(async i=>{let r=await i.deployConfig({apiKey:String(this.configuration.client_id??""),appConfiguration:this.configuration});return{type:i.externalType,handle:i.handle,uid:i.uid,uuid:e?.[i.localIdentifier],assets:i.uid,target:i.contextValue,config:r??{}}}));return{name:this.name,handle:"",modules:st(n)}}get hiddenConfig(){return this._hiddenConfig}getLogsDir(){return u(this.directory,".shopify","logs")}async updateHiddenConfig(e){if(!this.configuration.client_id)return;this._hiddenConfig=Mt(this.hiddenConfig,e);let n=ls(this.directory);await te(n,String(this.configuration.client_id),this.hiddenConfig)}async preDeployValidation(){this.validateWebhookLegacyFlowCompatibility(),this.validateEventsLegacyFlowCompatibility();let e=this.allExtensions.filter(i=>i.isFunctionExtension&&i.configuration.ui?.handle);if(e.length>0){let i=ps(e,this.allExtensions);if(i)throw new v("Invalid function configuration",i.join(`
|
|
43
43
|
`))}let n=this.allExtensions.filter(i=>i.isEditorExtensionCollection);if(n.length>0){let i=fs(n,this.allExtensions);if(i)throw new v("Invalid editor extension collection configuration",i.join(`
|
|
44
44
|
|
|
45
45
|
`))}await Promise.all(this.allExtensions.map(i=>i.preDeployValidation()))}extensionsForType(e){return this.allExtensions.filter(n=>n.type===e.identifier||n.type===e.externalIdentifier)}updateExtensionUUIDS(e){this.allExtensions.forEach(n=>{n.devUUID=e[n.localIdentifier]??n.devUUID})}appIsLaunchable(){let e=this.webs.find(i=>q(i,O.Frontend)),n=this.webs.find(i=>q(i,O.Backend));return!!(e??n)}get appIsEmbedded(){return this.configuration.embedded}creationDefaultOptions(){return{isLaunchable:this.appIsLaunchable(),scopesArray:ie(this.configuration),name:this.name,isEmbedded:this.appIsEmbedded,directory:this.directory}}removeExtension(e){this.realExtensions=this.realExtensions.filter(n=>n.uid!==e)}async generateExtensionTypes(){let e=new Map;await Promise.all(this.allExtensions.map(n=>n.contributeToSharedTypeFile(e))),e.forEach((n,i)=>{let r=L(i);if(n.size===0){r&&mn(i);return}let o=r?Ot(i).toString():"",s=[`import '@shopify/ui-extensions';
|
|
46
46
|
`,...Array.from(n)].join(`
|
|
47
|
-
`);o!==s&&fn(i,s)})}
|
|
47
|
+
`);o!==s&&fn(i,s)})}patchAppConfiguration(e){this.devApplicationURLs=e,this.configuration.application_url=e.applicationUrl,e.appProxy&&(this.configuration.app_proxy={url:e.appProxy.proxyUrl,subpath:e.appProxy.proxySubPath,prefix:e.appProxy.proxySubPathPrefix}),this.configuration.auth?.redirect_urls&&(this.configuration.auth.redirect_urls=e.redirectUrlWhitelist)}validateEventsLegacyFlowCompatibility(){if(this.configuration.access_scopes?.use_legacy_install_flow!==!0)return;if(this.extensionsForType({identifier:$t,externalIdentifier:$t}).some(n=>{let i=Q(n.configuration,"events.subscription");return Array.isArray(i)?i.length>0:typeof i=="object"&&i!==null}))throw new v("Events subscriptions are not supported when use_legacy_install_flow is enabled.",`Migrate to Shopify-managed installation before using Events subscriptions.
|
|
48
48
|
Scopes in your TOML configuration are not managed by Shopify while 'use_legacy_install_flow = true'.
|
|
49
49
|
|
|
50
50
|
Learn more: https://shopify.dev/docs/apps/build/authentication-authorization/app-installation`)}validateWebhookLegacyFlowCompatibility(){let e=this.configuration.webhooks?.subscriptions?.some(i=>i.topics&&i.topics.length>0)??!1,n=this.configuration.access_scopes?.use_legacy_install_flow===!0;if(e&&n)throw new v("App-specific webhook subscriptions are not supported when use_legacy_install_flow is enabled.",`To use app-specific webhooks, you need to:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-U5BKU3OL.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();async function l(e){await i.addPublicMetadata(()=>e)}t();function c(e,n){return`${e} ${e===1?n:`${n}s`}`}function f(e){return e.length===1?String(e[0]):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function u(e){return`${c(e.withFindings,"check")} with findings`}function s(e,n){let d=e.passed-n;return[d>0?`${d} passed`:void 0,n>0?`${n} with no deterministic findings`:void 0,e.notApplicable>0?`${e.notApplicable} not applicable`:void 0,e.unresolved>0?`${e.unresolved} unresolved`:void 0].filter(a=>a!==void 0)}export{l as a,c as b,f as c,u as d,s as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f,c as D,d as _,e as H}from"./chunk-
|
|
1
|
+
import{a as f,c as D,d as _,e as H}from"./chunk-ZLITAXPT.js";import{c as T,e as w,h as E}from"./chunk-7HECBXSP.js";import{g as R,p as j,v as x}from"./chunk-VVHJ2AUF.js";import{e as v}from"./chunk-CE6XQDAG.js";import{b as O,c as F}from"./chunk-IKXUYCK7.js";import{x as y}from"./chunk-7A4ZE5IS.js";import{Eb as p,vb as l,zb as u}from"./chunk-OIQ5NQ5I.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as q}from"./chunk-VBPMVVLV.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(l`Getting host theme...`),L().get(e)}function Z(e,t){p(l`Setting host theme...`),L().set(e,t)}function ee(e){p(l`Removing host theme...`),L().delete(e)}function C(e,t){return{title:e,body:{tabularData:t}}}function G(e,t,n){if(t==="json"){u(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 jsonOutputSchema=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){u(c.encode({environments:t}))}};export{$ as a,Z as b,ee as c,S as d};
|