shopify 5.0.2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-QFDTQYPM.js +1 -0
- package/dist/analytics-XADBBHOH.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/chunk-24Q6X53V.js +1 -0
- package/dist/{chunk-LEHBZKK3.js → chunk-25MYHE4W.js} +1 -1
- package/dist/{chunk-TODZ3TJR.js → chunk-27JT4NA4.js} +1 -1
- package/dist/chunk-2BYW3BYX.js +1 -0
- package/dist/chunk-2KFYIYLI.js +1 -0
- package/dist/{chunk-D2KIGKBI.js → chunk-2KUM2RU4.js} +60 -60
- package/dist/chunk-2PD7TNFS.js +275 -0
- package/dist/{chunk-64G5TGFF.js → chunk-3C72S6LO.js} +1 -1
- package/dist/chunk-3FZ4LE6A.js +10 -0
- package/dist/{chunk-3MYDSQHF.js → chunk-3GD5ESWN.js} +1 -1
- package/dist/chunk-3KGN6N7E.js +1 -0
- package/dist/{chunk-KNWT7JLL.js → chunk-3MZ7ELHS.js} +2 -2
- package/dist/{chunk-PF53E2DC.js → chunk-3PS52ZT4.js} +1 -1
- package/dist/chunk-3PYDIBTX.js +1 -0
- package/dist/chunk-3Z75BVGJ.js +1 -0
- package/dist/chunk-4FWPOGPQ.js +1 -0
- package/dist/chunk-4IP37MBX.js +1 -0
- package/dist/chunk-4NFX7YCT.js +1 -0
- package/dist/chunk-4TCXPHKN.js +1 -0
- package/dist/chunk-4WBWZIN5.js +6 -0
- package/dist/chunk-5534MHZW.js +97 -0
- package/dist/{chunk-UKWIWCOH.js → chunk-5C6CXU74.js} +1 -1
- package/dist/{chunk-QEKGGTMN.js → chunk-5HOZDOJ7.js} +1 -1
- package/dist/{chunk-ER6C5WS3.js → chunk-5PSQFQL6.js} +1 -1
- package/dist/chunk-5T3ZT6CC.js +1 -0
- package/dist/chunk-62NW4EPI.js +17 -0
- package/dist/chunk-65NCQJYR.js +1 -0
- package/dist/{chunk-IHXGZW42.js → chunk-6BYHL3DS.js} +1 -1
- package/dist/chunk-6I7DT7QR.js +3 -0
- package/dist/chunk-6IMTMS2S.js +3 -0
- package/dist/chunk-7A77JCED.js +11 -0
- package/dist/chunk-7ART2IKU.js +1 -0
- package/dist/{chunk-I4CEH7AK.js → chunk-7BPT5V24.js} +2 -2
- package/dist/{chunk-Z2WAW6MM.js → chunk-7CT3NIXI.js} +1 -1
- package/dist/chunk-7DBKSSDK.js +1 -0
- package/dist/chunk-7HECBXSP.js +1 -0
- package/dist/chunk-7KID5BIR.js +4 -0
- package/dist/{chunk-2L6AN3QA.js → chunk-7N7KRZOM.js} +1 -1
- package/dist/{chunk-W37IFK3P.js → chunk-7NRHZG5Y.js} +102 -102
- package/dist/chunk-7PHDEILV.js +1 -0
- package/dist/chunk-A2NSORBM.js +2296 -0
- package/dist/chunk-A54TADAZ.js +1 -0
- package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
- package/dist/chunk-AGTUAQHX.js +4 -0
- package/dist/chunk-AHYI27QL.js +11 -0
- package/dist/chunk-ALINJ6J2.js +1 -0
- package/dist/chunk-AMVWKHNY.js +1 -0
- package/dist/{chunk-NVKJ7ZLP.js → chunk-ASKBYEO7.js} +1 -1
- package/dist/{chunk-62EOM3Y2.js → chunk-AVJJGQOP.js} +1 -1
- package/dist/{chunk-NXAEBGMO.js → chunk-AY3AAV77.js} +1 -1
- package/dist/{chunk-F3CK3EJJ.js → chunk-BFAOTQGH.js} +1 -1
- package/dist/{chunk-H6GNKWYM.js → chunk-BPKQA2EO.js} +1 -1
- package/dist/{chunk-WESTVWWD.js → chunk-C2HJEGTS.js} +1 -1
- package/dist/chunk-C72QNK6O.js +4 -0
- package/dist/chunk-CDSDQTNB.js +16 -0
- package/dist/chunk-CEQGOCKX.js +1 -0
- package/dist/{chunk-WCC52MR2.js → chunk-CIGWIKOW.js} +1 -1
- package/dist/chunk-CQAD5WML.js +1 -0
- package/dist/chunk-CRQQCT7F.js +1 -0
- package/dist/chunk-CZNUBAAG.js +3 -0
- package/dist/{chunk-ISKQQXLZ.js → chunk-D7IMC2G4.js} +1 -1
- package/dist/{chunk-6ES4KRFW.js → chunk-DC7ITY6T.js} +1 -1
- package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
- package/dist/{chunk-SLY27GDC.js → chunk-DDZYIC76.js} +2 -2
- package/dist/chunk-DGIIUQH3.js +1 -0
- package/dist/{chunk-3KM5ZOW2.js → chunk-DMOLPSXF.js} +1 -1
- package/dist/{chunk-LHXFTFFM.js → chunk-DOLVBTCB.js} +1 -1
- package/dist/{chunk-WBVS5NBV.js → chunk-DTKGI43P.js} +2 -2
- package/dist/{chunk-2WJOTJOD.js → chunk-DVD7I2TX.js} +2 -2
- package/dist/chunk-DVFVO6ZE.js +2 -0
- package/dist/{chunk-3XRI3D44.js → chunk-DXEMSLI6.js} +1 -1
- package/dist/chunk-EDWIWZWM.js +15 -0
- package/dist/chunk-ELR6AZT4.js +9 -0
- package/dist/chunk-EVQPYZ7F.js +5 -0
- package/dist/chunk-F5QKMDP3.js +1 -0
- package/dist/{chunk-URXM5A2K.js → chunk-F6IQWX2F.js} +1 -1
- package/dist/{chunk-SACNUF4I.js → chunk-FAVPTYIR.js} +1 -1
- package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
- package/dist/{chunk-Q4JYAUVL.js → chunk-FHKK3QU7.js} +1 -1
- package/dist/chunk-FKKJQGYX.js +7 -0
- package/dist/chunk-FQLXQ7WN.js +16 -0
- package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
- package/dist/{chunk-J5ERDFIC.js → chunk-FU7PYW7H.js} +1 -1
- package/dist/{chunk-ESFCYB46.js → chunk-FYQE5E6U.js} +1 -1
- package/dist/chunk-G3EWGBXR.js +1 -0
- package/dist/chunk-G3RNO2TC.js +1 -0
- package/dist/{chunk-35XFNKNB.js → chunk-GGCP2TIK.js} +1 -1
- package/dist/chunk-GSFWBFFH.js +1 -0
- package/dist/{chunk-ZRI3SSLG.js → chunk-H2KGP2FM.js} +2 -2
- package/dist/{chunk-GW7YIJPJ.js → chunk-H4K3F7PP.js} +1 -1
- package/dist/chunk-HGZ2HRPO.js +13 -0
- package/dist/chunk-HMPRWNGG.js +203 -0
- package/dist/chunk-HP4QYSBQ.js +1 -0
- package/dist/{chunk-RPCIFYCY.js → chunk-HSTZV6H7.js} +2 -2
- package/dist/{chunk-N57Y7THE.js → chunk-HVUMVDUG.js} +1 -1
- package/dist/{chunk-XWSWXQCC.js → chunk-HYCNYUHW.js} +1 -1
- package/dist/{chunk-CXI3RHPW.js → chunk-I3WRA2LH.js} +1 -1
- package/dist/{chunk-UUAKOX7E.js → chunk-IRLYC626.js} +2 -2
- package/dist/chunk-IWNFPBH2.js +33 -0
- package/dist/{chunk-C3RFAKWR.js → chunk-JALDNBTU.js} +1 -1
- package/dist/{chunk-QDCLL5OI.js → chunk-JC37YZ4I.js} +1 -1
- package/dist/{chunk-QF5WKTPD.js → chunk-JG4FAT2T.js} +1 -1
- package/dist/chunk-JGLLABZR.js +8 -0
- package/dist/chunk-JIY6XWSC.js +1 -0
- package/dist/{chunk-3ODQKAEA.js → chunk-JIYCZXK5.js} +1 -1
- package/dist/chunk-JMSAHCBU.js +35 -0
- package/dist/{chunk-KZRLZWOU.js → chunk-JNSVKDBY.js} +1 -1
- package/dist/chunk-JQU2BJDH.js +3 -0
- package/dist/chunk-JVY6CCLE.js +3 -0
- package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
- package/dist/chunk-KCAWHJGF.js +1 -0
- package/dist/{chunk-YV2TP44L.js → chunk-KFO2JNF5.js} +1 -1
- package/dist/chunk-KFR7HWCG.js +9 -0
- package/dist/{chunk-MEYVUHQH.js → chunk-KHZF73BL.js} +1 -1
- package/dist/{chunk-LGXI7EGM.js → chunk-KM4LE7K4.js} +2 -2
- package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
- package/dist/chunk-LFBFPK22.js +1 -0
- package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
- package/dist/chunk-LGDWE3H3.js +1 -0
- package/dist/chunk-LPPEAMI6.js +1 -0
- package/dist/chunk-LXIWMYM4.js +1 -0
- package/dist/chunk-MGWCXTGD.js +1 -0
- package/dist/chunk-MGX7UG44.js +1 -0
- package/dist/chunk-MKFRKNHF.js +3 -0
- package/dist/chunk-MTT6EAQO.js +1 -0
- package/dist/{chunk-SIL6HPMK.js → chunk-MU7IVBGI.js} +2 -2
- package/dist/{chunk-QEVTBD33.js → chunk-MYMBHVC4.js} +1 -1
- package/dist/chunk-MZDBH4XV.js +4 -0
- package/dist/{chunk-Q5IC3IYY.js → chunk-NUBJ2HK7.js} +1 -1
- package/dist/{chunk-3Z3MADXZ.js → chunk-NY5N4ANL.js} +1 -1
- package/dist/{chunk-WRZWHT6M.js → chunk-NYMKGE3J.js} +1 -1
- package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
- package/dist/chunk-O7HZ3EIP.js +1 -0
- package/dist/chunk-OJOF6IYG.js +9 -0
- package/dist/{chunk-UXVXVI6O.js → chunk-ONZULPQH.js} +68 -66
- package/dist/chunk-ORMXPSJM.js +1 -0
- package/dist/chunk-ORYEDUKM.js +5 -0
- package/dist/{chunk-T4XJKM6B.js → chunk-OTMYJWIP.js} +1 -1
- package/dist/chunk-OVJVFB5E.js +20 -0
- package/dist/chunk-OWQEFORZ.js +1 -0
- package/dist/{chunk-UBP3LQFY.js → chunk-OXPEBT4I.js} +2 -2
- package/dist/chunk-OXZR2MB4.js +6 -0
- package/dist/chunk-OY5M52EF.js +6 -0
- package/dist/{chunk-2A2JSAAA.js → chunk-PJZZZNWR.js} +1 -1
- package/dist/chunk-Q2LQJYRK.js +16 -0
- package/dist/chunk-QBRRFFMZ.js +1 -0
- package/dist/{chunk-AQKWPRZE.js → chunk-QCLE5REL.js} +2 -2
- package/dist/{chunk-43R5VGKT.js → chunk-QGQWVA7N.js} +1 -1
- package/dist/chunk-QKPAB245.js +1 -0
- package/dist/chunk-QUPZOBTB.js +1 -0
- package/dist/chunk-R4E2E4NN.js +1 -0
- package/dist/{chunk-CGVROSPS.js → chunk-R6US7F33.js} +1 -1
- package/dist/chunk-RKNVTEO3.js +5 -0
- package/dist/{chunk-7CCTPBCT.js → chunk-RLOEI6VE.js} +1 -1
- package/dist/chunk-RSZAAN37.js +1 -0
- package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
- package/dist/chunk-S4KNPCW3.js +81 -0
- package/dist/{chunk-26PWHH3B.js → chunk-SBN3ILXO.js} +1 -1
- package/dist/chunk-SCDGLREP.js +1 -0
- package/dist/chunk-SHOMIS6Q.js +2 -0
- package/dist/chunk-SN3PMWUF.js +6 -0
- package/dist/chunk-SODCXZ5U.js +1 -0
- package/dist/chunk-SPJM7RTD.js +1 -0
- package/dist/chunk-SQL67BKI.js +5 -0
- package/dist/{chunk-AQ6EVL73.js → chunk-SURFUFAZ.js} +1 -1
- package/dist/{chunk-SNH4XZ6E.js → chunk-SVQDMZJO.js} +1 -1
- package/dist/chunk-T4ZOTYOY.js +1 -0
- package/dist/chunk-T6C4WC3Z.js +2 -0
- package/dist/chunk-TD6JBHUS.js +1 -0
- package/dist/chunk-TIM4CIXZ.js +22 -0
- package/dist/{chunk-B2O3ANRZ.js → chunk-TP7CTMMT.js} +1 -1
- package/dist/chunk-TSPJAMYB.js +1 -0
- package/dist/chunk-TSVEV2UD.js +26 -0
- package/dist/{chunk-ZBL7XMJ6.js → chunk-TTAT62N3.js} +2 -2
- package/dist/{chunk-S5P7KWY4.js → chunk-TUSS6PXB.js} +1 -1
- package/dist/chunk-TXP6KFWO.js +5 -0
- package/dist/chunk-TZHVCMZN.js +6 -0
- package/dist/chunk-UC4TOM36.js +3 -0
- package/dist/{chunk-RPVZ2JON.js → chunk-UFY4L5KQ.js} +1 -1
- package/dist/chunk-UU6UQ2QY.js +1 -0
- package/dist/chunk-V4FC72R6.js +1 -0
- package/dist/chunk-VA2S7W7H.js +10 -0
- package/dist/chunk-VE3IIC7H.js +1 -0
- package/dist/{chunk-PTSCGSQV.js → chunk-VJG7VXFU.js} +2 -2
- package/dist/chunk-VQSRU5XL.js +4 -0
- package/dist/chunk-VRIFLMA3.js +70 -0
- package/dist/chunk-WBJFTCEJ.js +1 -0
- package/dist/chunk-WBPP6PO7.js +31 -0
- package/dist/chunk-WE5KY6T6.js +1 -0
- package/dist/chunk-WFPVT2IY.js +1 -0
- package/dist/{chunk-PLSS456F.js → chunk-WLYXBQ2M.js} +1 -1
- package/dist/chunk-WNVOEE6T.js +7 -0
- package/dist/chunk-WPDJVUTY.js +47 -0
- package/dist/chunk-WWCYEZUU.js +1 -0
- package/dist/chunk-WWVDZ3GC.js +3 -0
- package/dist/{chunk-4KECSZTL.js → chunk-WZBZ7FWP.js} +2 -2
- package/dist/chunk-XEZPN5TR.js +22 -0
- package/dist/{chunk-QW52RPAU.js → chunk-XLMKHTJ5.js} +1 -1
- package/dist/chunk-XRNBCV2B.js +1 -0
- package/dist/{chunk-67L7FIB6.js → chunk-XWLNCBAG.js} +1 -1
- package/dist/chunk-YF4AXKM4.js +1 -0
- package/dist/chunk-YKDRUAY3.js +857 -0
- package/dist/{chunk-YSWVYPWR.js → chunk-YNFQBYSL.js} +1 -1
- package/dist/{chunk-TFPW2VGN.js → chunk-YNZLLZU2.js} +1 -1
- package/dist/chunk-YOYPYB4H.js +1 -0
- package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
- package/dist/chunk-YTL45RXR.js +103 -0
- package/dist/chunk-YVPB7OT6.js +6 -0
- package/dist/chunk-YYWSHRO2.js +89 -0
- package/dist/{chunk-DZKFP6H2.js → chunk-Z5QEXS6F.js} +1 -1
- package/dist/chunk-Z5WFRYVQ.js +6 -0
- package/dist/{chunk-PWAT52M4.js → chunk-Z6ZRS256.js} +1 -1
- package/dist/chunk-ZMOW2YZ4.js +18 -0
- package/dist/chunk-ZMU4EYXT.js +1 -0
- package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
- package/dist/chunk-ZXZWMXXK.js +7 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs-next.js +1 -0
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +10 -10
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +7 -7
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +21 -21
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +23 -23
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +90 -90
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.d.ts +7 -7
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +24 -24
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.d.ts +7 -7
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli-version-check-V25AVSZ6.js +1 -0
- package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
- package/dist/command-json-schema-C5UZXP2W.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OCGEEV4U.js +1 -0
- package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
- package/dist/data/filters.json +41 -2
- package/dist/data/local_block_entry.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +78 -36
- package/dist/data/section.json +1 -1
- package/dist/data/shopify_system_translations.json +240 -23
- package/dist/data/strict_settings.json +24 -0
- package/dist/data/tags.json +57 -24
- package/dist/data/theme_block.json +1 -1
- package/dist/deprecations-A5AXXKIK.js +1 -0
- package/dist/dist-NORLLIHQ.js +1 -0
- package/dist/dist-XBM4XZS4.js +1 -0
- package/dist/environment-5P7JJ3GI.js +1 -0
- package/dist/environments-Y5JEI3U3.js +1 -0
- package/dist/error-GI4DXVDU.js +1 -0
- package/dist/error-handler-BS2ZENQV.js +1 -0
- package/dist/fs-UOOLPOHJ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -2
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-2OXOS2AW.js +1 -0
- package/dist/http-proxy-node16-NZZ674YW.js +38 -0
- package/dist/index.js +12 -12
- package/dist/is-global-CI77T7NE.js +1 -0
- package/dist/json-error-6PBUR4LQ.js +1 -0
- package/dist/latest-version-75YEFEMK.js +9 -0
- package/dist/lib-4JVADMNT.js +1 -0
- package/dist/lib-L4STV5B2.js +1 -0
- package/dist/lib-LEEN55OD.js +1 -0
- package/dist/{local-OKPVB4NH.js → local-5NIWPWDS.js} +1 -1
- package/dist/metadata-IXPNNPNJ.js +1 -0
- package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
- package/dist/node-package-manager-ALFEGGD6.js +1 -0
- package/dist/notifications-system-FQW3GKH2.js +1 -0
- package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
- package/dist/os-6TNQTEUN.js +1 -0
- package/dist/output-LEOB5LAM.js +1 -0
- package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
- package/dist/registry-auth-token-EDH77OOW.js +1 -0
- package/dist/registry-url-JMNV3LLX.js +1 -0
- package/dist/semver-HHZRKD6Y.js +1 -0
- package/dist/system-J4CTESP5.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-YDUI56E3.js +1 -0
- package/dist/upgrade-LBCZORG2.js +1 -0
- package/dist/version-2YL4YEQ2.js +1 -0
- package/dist/version-X2CPQVWQ.js +1 -0
- package/dist/workerd-5UPTEWNI.js +18 -0
- package/oclif.manifest.json +25622 -1132
- package/package.json +7 -7
- package/dist/analytics-NMMVOF4B.js +0 -1
- package/dist/analytics-UK77WNLG.js +0 -1
- package/dist/chunk-224UPIYS.js +0 -4
- package/dist/chunk-27NXPOAS.js +0 -1
- package/dist/chunk-2MT3LSMZ.js +0 -1
- package/dist/chunk-2T4HDR6R.js +0 -70
- package/dist/chunk-2ZBXHCQZ.js +0 -1
- package/dist/chunk-335BUVBP.js +0 -1
- package/dist/chunk-33ZE3DRQ.js +0 -16
- package/dist/chunk-34MOWGRL.js +0 -1
- package/dist/chunk-3JSKNXL7.js +0 -1
- package/dist/chunk-3MG4MTWQ.js +0 -1
- package/dist/chunk-4WYKPIN3.js +0 -1
- package/dist/chunk-5AEZJZNQ.js +0 -1
- package/dist/chunk-5ED7SOQZ.js +0 -20
- package/dist/chunk-5IDJALJH.js +0 -1
- package/dist/chunk-66TMIQMB.js +0 -1
- package/dist/chunk-74NRFUGQ.js +0 -1
- package/dist/chunk-7GUMJ5E4.js +0 -1
- package/dist/chunk-7NFTSBHQ.js +0 -10
- package/dist/chunk-ACZNWIRY.js +0 -1
- package/dist/chunk-AUE7LM32.js +0 -1
- package/dist/chunk-AXL2VIWA.js +0 -16
- package/dist/chunk-B3ZJGYZY.js +0 -3
- package/dist/chunk-BOAGJ6P5.js +0 -1
- package/dist/chunk-BWN2QG6D.js +0 -5
- package/dist/chunk-CCUQM4FX.js +0 -6
- package/dist/chunk-CLUUA3HX.js +0 -3
- package/dist/chunk-CYEEGTVZ.js +0 -11
- package/dist/chunk-DBDTE3EE.js +0 -5
- package/dist/chunk-DLVB3237.js +0 -31
- package/dist/chunk-DN6X7SHW.js +0 -2
- package/dist/chunk-E5COIKGY.js +0 -5
- package/dist/chunk-E6RONHMT.js +0 -1
- package/dist/chunk-EAZIQI2D.js +0 -1
- package/dist/chunk-EEY4FKAW.js +0 -1
- package/dist/chunk-EKFPTBXC.js +0 -1
- package/dist/chunk-FEBOZ2XX.js +0 -31
- package/dist/chunk-FFSDGRAN.js +0 -1
- package/dist/chunk-FZCGRIOM.js +0 -1
- package/dist/chunk-GNCVDN7U.js +0 -1
- package/dist/chunk-GQLNG537.js +0 -836
- package/dist/chunk-GVI3DWSB.js +0 -4
- package/dist/chunk-H6GYBLVQ.js +0 -2
- package/dist/chunk-HB3MJYBK.js +0 -1
- package/dist/chunk-HSKDFEXW.js +0 -1
- package/dist/chunk-HTRJU4R4.js +0 -1
- package/dist/chunk-HXZAY5OA.js +0 -1
- package/dist/chunk-I7PEEJVH.js +0 -1
- package/dist/chunk-IHMATNOR.js +0 -1
- package/dist/chunk-IJY3RJPJ.js +0 -47
- package/dist/chunk-J3JPJCWP.js +0 -1
- package/dist/chunk-J55GQLP4.js +0 -1
- package/dist/chunk-JLQRDFR5.js +0 -18
- package/dist/chunk-JPWRZ5SL.js +0 -16
- package/dist/chunk-K7ZSPQKL.js +0 -4
- package/dist/chunk-L5TSPCSY.js +0 -26
- package/dist/chunk-LUGMXSRI.js +0 -9
- package/dist/chunk-M2CWCOFU.js +0 -11
- package/dist/chunk-M5VIFG2V.js +0 -1
- package/dist/chunk-MADINS4Z.js +0 -1
- package/dist/chunk-MGHPF7HU.js +0 -6
- package/dist/chunk-MHR5OHT5.js +0 -10
- package/dist/chunk-MXEXP3HT.js +0 -15
- package/dist/chunk-OJULL7HT.js +0 -1
- package/dist/chunk-OMPQ7REW.js +0 -3
- package/dist/chunk-OR4IJ4BQ.js +0 -1
- package/dist/chunk-P2RMFHQP.js +0 -1
- package/dist/chunk-P4VZYOKO.js +0 -15
- package/dist/chunk-PDZBKVWL.js +0 -97
- package/dist/chunk-Q2KWXZQB.js +0 -12
- package/dist/chunk-QFSENE5T.js +0 -3
- package/dist/chunk-QFWWCZOI.js +0 -1
- package/dist/chunk-QFYLJVJW.js +0 -77
- package/dist/chunk-QQJNQNKP.js +0 -6
- package/dist/chunk-R4UVIYZP.js +0 -4
- package/dist/chunk-RLNIOJH3.js +0 -272
- package/dist/chunk-RW6G4ZPU.js +0 -1
- package/dist/chunk-S4LOWCGS.js +0 -1
- package/dist/chunk-SB27UOXX.js +0 -1
- package/dist/chunk-SHD4VV5V.js +0 -3
- package/dist/chunk-SK7EPN6C.js +0 -1
- package/dist/chunk-TAWCKJKP.js +0 -1
- package/dist/chunk-U2T5HPRD.js +0 -319
- package/dist/chunk-U6YOP562.js +0 -1
- package/dist/chunk-UPPO3BMT.js +0 -7
- package/dist/chunk-USXIXANP.js +0 -103
- package/dist/chunk-UV5GAGAD.js +0 -1
- package/dist/chunk-UY6W2EVZ.js +0 -1
- package/dist/chunk-UYELAINQ.js +0 -16
- package/dist/chunk-V75WUEFU.js +0 -1
- package/dist/chunk-VAVXDIUX.js +0 -6
- package/dist/chunk-VEUKT5EI.js +0 -6
- package/dist/chunk-VGSH52JM.js +0 -1
- package/dist/chunk-VHZ6RL67.js +0 -1
- package/dist/chunk-VQA3X7O3.js +0 -1
- package/dist/chunk-VZCMJRYV.js +0 -1
- package/dist/chunk-W56ZGEQQ.js +0 -2265
- package/dist/chunk-WSDKCQH6.js +0 -6
- package/dist/chunk-X2PFXSU4.js +0 -1
- package/dist/chunk-X5NIAZA4.js +0 -1
- package/dist/chunk-XBMD3FEZ.js +0 -3
- package/dist/chunk-XDVPIGXE.js +0 -2
- package/dist/chunk-XLIJYJ6Q.js +0 -1
- package/dist/chunk-XUHGWIWW.js +0 -4
- package/dist/chunk-Y55T4IIQ.js +0 -7
- package/dist/chunk-Y5CVX5LJ.js +0 -1
- package/dist/chunk-Y6J46XYF.js +0 -3
- package/dist/chunk-YKMINHYY.js +0 -3
- package/dist/chunk-ZDQO6CNY.js +0 -1
- package/dist/chunk-ZGASBRSQ.js +0 -5
- package/dist/chunk-ZGBTO46A.js +0 -1
- package/dist/chunk-ZJOX5HW4.js +0 -22
- package/dist/chunk-ZOOT3GBY.js +0 -5
- package/dist/command-json-schema-F5XF7XHL.js +0 -1
- package/dist/conf-store-5CBLWTOC.js +0 -1
- package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
- package/dist/deprecations-EOHPSTCS.js +0 -1
- package/dist/dist-RNV3GFZ7.js +0 -1
- package/dist/dist-ZFKWJVNB.js +0 -1
- package/dist/environment-O7ECODHU.js +0 -1
- package/dist/environments-4FLRZW4P.js +0 -1
- package/dist/error-JY2ADS6S.js +0 -1
- package/dist/error-handler-4GCXKC6I.js +0 -1
- package/dist/fs-XS5YF34R.js +0 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
- package/dist/is-global-27MUENOK.js +0 -1
- package/dist/json-error-S5XFS3UX.js +0 -1
- package/dist/latest-version-LDWU5F7A.js +0 -49
- package/dist/lib-PJHT4MKY.js +0 -1
- package/dist/lib-VKSQ65BQ.js +0 -1
- package/dist/lib-YEZOHXF3.js +0 -1
- package/dist/metadata-2YJBAKR7.js +0 -1
- package/dist/node-package-manager-B3OW3PFQ.js +0 -1
- package/dist/notifications-system-BWTDYBG2.js +0 -1
- package/dist/os-F6QKJCFW.js +0 -1
- package/dist/output-BRIPK7UC.js +0 -1
- package/dist/system-466QKFDI.js +0 -1
- package/dist/ui-VJTNGCS6.js +0 -1
- package/dist/upgrade-VHVJLXKX.js +0 -1
- package/dist/version-FETZRLZO.js +0 -1
- package/dist/version-T4XXTJMB.js +0 -1
- package/dist/workerd-32DMKLMN.js +0 -18
- /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
- /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,c as w,d as O}from"./chunk-G3EWGBXR.js";import{f as y,g as P,h as b}from"./chunk-5T3ZT6CC.js";import{a as F}from"./chunk-ALINJ6J2.js";import{a as h}from"./chunk-ASKBYEO7.js";import{Q as x}from"./chunk-HMPRWNGG.js";import{b as m,c as d}from"./chunk-DMOLPSXF.js";import{E as g,U as l}from"./chunk-2KUM2RU4.js";import{Eb as n}from"./chunk-ZMOW2YZ4.js";import{b as N}from"./chunk-AE3IQG7S.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};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as x}from"./chunk-LXIWMYM4.js";import{a as F}from"./chunk-RSZAAN37.js";import{a as y}from"./chunk-ASKBYEO7.js";import{P as D}from"./chunk-HMPRWNGG.js";import{B as f,K as v}from"./chunk-YKDRUAY3.js";import{b as C,c as S}from"./chunk-DMOLPSXF.js";import{y as w}from"./chunk-2KUM2RU4.js";import{a as h}from"./chunk-LG3KEHGD.js";import{i as m}from"./chunk-TD6JBHUS.js";import{zb as g}from"./chunk-ZMOW2YZ4.js";import{b as a,c as u}from"./chunk-3PYDIBTX.js";import{b as O}from"./chunk-AE3IQG7S.js";import{e as j,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function A(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,i=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id}),r=i?.devSessionDelete?.userErrors;if(!Array.isArray(r)||r.some(n=>typeof n?.message!="string")){let n=new m("Failed to stop the dev preview: the server returned an invalid response.");throw n.details={data:i},n}if(r.length){let n=r.map(I=>I.message).join(`
|
|
2
|
+
`),l=new m(`Failed to stop the dev preview: ${n}`);throw l.details={userErrors:r},l}return{status:"success",app:{name:o.title,clientId:o.apiKey},storeHostname:t.store.shopDomain}}s();var R=a.object({name:a.string(),clientId:a.string().min(1)}).strict(),p=h({name:"AppDevCleanResult",schema:a.object({status:a.literal("success"),app:R,storeDomain:u.nullable().describe("The canonical *.myshopify.com hostname, or null when unknown.")}).strict(),definitions:{AppDevCleanApp:R}});s();function b(t,e){if(e==="json"){let o={status:t.status,app:t.app,storeDomain:v(t.storeHostname)?t.storeHostname:null};g(p.encode(o));return}w({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.storeHostname} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var c=j(O(),1);var d=class t extends F{static summary="Cleans up the dev preview from the selected store.";static descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
|
|
3
|
+
|
|
4
|
+
It restores the app's active version to the selected development store.
|
|
5
|
+
`;static jsonOutputSchema=p;static description=this.descriptionForHelp();static flags={...C,...y,...S,"client-id":c.Flags.string({hidden:!1,description:"The Client ID of your app. Use with --config to clean up the dev preview for a different app than the one it is linked to.",env:"SHOPIFY_FLAG_CLIENT_ID"}),store:c.Flags.string({hidden:!1,char:"s",description:"Store URL. Must be an existing development store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>f(e)})};async run(){let{flags:e}=await this.parse(t),o=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),i=await x({appContextResult:o,storeFqdn:e.store,forceReselectStore:e.reset,devSession:!0}),r=await A({appContextResult:o,store:i});return b(r,e.json?"json":"text"),{app:o.app}}};export{d as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as I}from"./chunk-LFOBYEWG.js";import{
|
|
1
|
+
import{a as I}from"./chunk-LFOBYEWG.js";import{p as w}from"./chunk-YKDRUAY3.js";import{w as l}from"./chunk-4WBWZIN5.js";import{m as u,n as m}from"./chunk-3FZ4LE6A.js";import{a as h}from"./chunk-JIY6XWSC.js";import{A as N,R as S,x as g,z as y}from"./chunk-2KUM2RU4.js";import{j as d}from"./chunk-2KFYIYLI.js";import{k as _}from"./chunk-TD6JBHUS.js";import{Eb as a}from"./chunk-ZMOW2YZ4.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-BS2ZENQV.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};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{a as le}from"./chunk-KCAWHJGF.js";import{e as me}from"./chunk-7HECBXSP.js";import{p as S,v as ue}from"./chunk-CZNUBAAG.js";import{ca as je,da as he}from"./chunk-2PD7TNFS.js";import{r as oe}from"./chunk-4WBWZIN5.js";import{b as ae,c as G}from"./chunk-DMOLPSXF.js";import{x as F,y as ie}from"./chunk-2KUM2RU4.js";import{d as ne}from"./chunk-25MYHE4W.js";import{i as $}from"./chunk-TD6JBHUS.js";import{Bb as re,Cb as se,Da as X,Eb as ce,N as E,Sa as L,_a as Z,na as Q,ta as N,zb as y}from"./chunk-ZMOW2YZ4.js";import{b as m,i as ee,j as P,k as te}from"./chunk-3PYDIBTX.js";import{b as Ie}from"./chunk-AE3IQG7S.js";import{c as x,d as q,e as v,g as V,i as z,o as K}from"./chunk-IWTNUJGY.js";import{e as T,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{AsyncLocalStorage as Ae}from"node:async_hooks";import{format as Ee}from"node:util";var fe=new Ae,_=0,D;async function W(t,e={}){let i={json:te()==="json"},n=o=>{e.onDiagnostic?.(o),!(o.code==="custom-checks-disabled"&&e.onCustomChecksDisabled&&(e.onCustomChecksDisabled(),!i.json))&&(i.json?P({type:"diagnostic",level:o.level,message:o.message}):console.error(o.message))};if(!i.json)return t(n);_===0&&(D=console.error,console.error=(...o)=>{let r=fe.getStore();if(r){let c=Ee(...o);if(r.json){P({type:"diagnostic",level:"warning",message:c});return}}D(...o)}),_++;try{return await fe.run(i,()=>t(n))}finally{Ne()}}function Ne(){_--,_===0&&(console.error=D)}var s=T(he(),1),C=T(je(),1);function de(t){return t instanceof Error&&"code"in t&&t.code==="ENOENT"&&"path"in t&&typeof t.path=="string"}function pe(t){let e=t.startsWith("theme-check:")?t:z(t);return e.startsWith("theme-check:")?e:void 0}async function Le(t,e,i){if(pe(t.path)!==void 0||i!==void 0&&v(t.path)===v(i))return!0;try{await W(()=>(0,s.loadConfig)(i,e))}catch(n){if(de(n)&&"syscall"in n&&n.syscall==="open"&&v(n.path)===v(t.path))return!0;throw t}return!1}async function Pe(t){if(!(t===void 0||s.ModernIdentifiers.some(e=>e===t))&&await L(t)&&await X(await Q(t)))throw new $(`Theme Check config must be a file, but ${t} is a directory.`,"Pass the path to a .theme-check.yml file to --config, or omit --config to use the .theme-check.yml in your theme root. To choose the theme directory, use --path.")}async function H(t,e,i){await Pe(e);try{return await i()}catch(n){if(de(n)&&await Le(n,t,e)){let o=pe(n.path),r=e!==void 0&&v(n.path)===v(e)?e:q(n.path),c=o?`Unknown Theme Check config: ${o}`:`Theme Check config file not found: ${r}`;throw new $(c,`Use a built-in config (${s.ModernIdentifiers.join(", ")}), or a path to an existing .theme-check.yml file. Check the extends values in your Theme Check config.`)}throw n}}function $e(t){switch(t){case"error":return s.Severity.ERROR;case"suggestion":case"warning":return s.Severity.WARNING;case"style":case"info":return s.Severity.INFO;case"crash":return}}function ge(t){switch(t){case s.Severity.ERROR:return"error";case s.Severity.WARNING:return"warning";case s.Severity.INFO:return"info"}}function Ge(t){return new Map(t.map(e=>[e.uri,e.source]))}function De(t,e,i){let o=t.split(`
|
|
2
|
+
`).slice(e,i+1),r=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=r?c.trim():c;return`${u} ${h}`}).join(`
|
|
3
|
+
`)}function We(t){switch(t){case s.Severity.ERROR:return{error:`
|
|
4
|
+
[error]:`};case s.Severity.WARNING:return{warn:`
|
|
5
|
+
[warning]:`};case s.Severity.INFO:return{info:`
|
|
6
|
+
[info]:`}}}function He(t,e){return t.map((n,o)=>{let{message:r,uri:c,start:a,end:u,check:h,severity:k}=n,p=e.get(c),d=p===void 0?[]:[`
|
|
7
|
+
|
|
8
|
+
${De(p,a.line,u.line)}`],g=o===t.length-1?"":`
|
|
9
|
+
|
|
10
|
+
`;return[We(k),{bold:h},{subdued:`
|
|
11
|
+
${r}`},...d,g]}).flat()}var Ue=(t,e)=>t.severity-e.severity;function U(t){let e=t.reduce((i,n)=>{let{uri:o}=n,r=s.path.fsPath(o);return i[r]??=[],i[r].push(n),i},{});return Object.keys(e).reduce((i,n)=>(i[n]=e[n].sort(Ue),i),{})}function ye(t){return t.reduce((e,i)=>(e[i.severity]=(e[i.severity]??0)+1,e),{})}function ke(t,e,i,n=!1){let o=[`${i.length} files inspected`];if(t.length===0)o.push("with no offenses found.");else{o.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let r=ye(t);r[s.Severity.ERROR]&&o.push(`
|
|
12
|
+
${r[s.Severity.ERROR]} errors.`),r[s.Severity.WARNING]&&o.push(`
|
|
13
|
+
${r[s.Severity.WARNING]} warnings.`),r[s.Severity.INFO]&&o.push(`
|
|
14
|
+
${r[s.Severity.INFO]} info issues.`)}return n&&o.push("\nCustom theme checks are disabled. Allow them by running theme check with the `--allow-custom-checks` flag."),o}function ve(t,e,i,n){let o=Ge(i);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);F({headline:n?`[${n}] ${a}`:a,body:He(t[c],o)})})}function Ye(t,e){return Object.entries(t).map(([i,n])=>{let o=n.map(c=>({check:c.check,severity:ge(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),r=ye(n);return{environment:e,path:i,offenses:o,errorCount:r[s.Severity.ERROR]??0,warningCount:r[s.Severity.WARNING]??0,infoCount:r[s.Severity.INFO]??0}})}function Ce(t,e){process.exit(Y(t,e)?1:0)}function Y(t,e){let i=e?$e(e):void 0;return i!==void 0&&t.some(n=>n.severity<=i)}function Je(t){return t.split(`
|
|
15
|
+
`).map(e=>`# ${e}`).join(`
|
|
16
|
+
`)}async function we(t){let e=".theme-check.yml",i=x(t,e);if(await L(i)){re(`${e} already exists at ${t}`);return}let{settings:n}=await(0,s.loadConfig)(void 0,t),o=Je(C.default.stringify(n)),r=C.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await N(i,`${r}${o}`),se(`Created ${e} at ${t}`)}var Me=async(t,e)=>{let i=(0,s.applyFixToString)(t.source,e),n=s.path.fsPath(t.uri);await N(n,i)};async function be(t,e){await(0,s.autofix)(t,e,Me)}async function Oe(t,e,i,n={}){let{ignore:o,settings:r,rootUri:c}=await H(t,e,()=>(0,s.loadConfig)(e,t,n)),a={extends:[],ignore:E(o??[]),rootUri:c,...r},u=i?{[i]:a}:a;y(C.default.stringify(u))}async function Te(t,e,i,n={}){let{settings:o,ignore:r,checks:c}=await H(t,e,()=>(0,s.loadConfig)(e,t,n)),a=E(r??[]),h=Object.keys(o).reduce((p,d)=>{let{severity:g,enabled:w,...b}=o[d];if(!w)return p;let Se=ge(g??s.Severity.INFO),O=c.find(Re=>Re.meta.code===d),_e=O&&O.meta?{description:O.meta.docs.description,doc:O.meta.docs.url}:{};return p[d]={severity:Se,..._e,ignored_patterns:`[${a.join(", ")}]`,...b},p},{}),k=i?{[i]:h}:h;y(C.default.stringify(k))}function xe(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}async function J(t,e,i,n={}){let o=!1,{offenses:r,theme:c}=await H(t,e,()=>W(u=>(0,s.themeCheckRun)(t,e,h=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&ce(h)},{...n,onDiagnostic:u}),{onDiagnostic:n.onDiagnostic,onCustomChecksDisabled:()=>{o=!0}}));return{result:Ye(U(r),i),offenses:r,theme:c,customChecksDisabled:o}}l();l();import{resolve as Be}from"node:path";var Fe=m.object({filePath:m.string().refine(V).describe("The absolute native path of the file."),check:m.string(),severity:m.enum(["error","warning","info"]),startRow:m.number().int().positive().describe("The one-based starting line."),startColumn:m.number().int().positive().describe("The one-based starting column."),endRow:m.number().int().positive().describe("The one-based ending line."),endColumn:m.number().int().positive().describe("The one-based ending column."),message:m.string()}).strict(),qe=m.object({valid:m.boolean().describe("Whether the validation passes the selected blocking policy."),issues:m.array(Fe),errorCount:m.number().int().nonnegative(),warningCount:m.number().int().nonnegative(),infoCount:m.number().int().nonnegative()}).strict();function R(t){return Math.max(t+1,1)}var I=me({name:"ThemeCheckResult",schema:qe,definitions:{ThemeCheckIssue:Fe},project:t=>{let{files:e,valid:i}=Array.isArray(t)?{files:t,valid:void 0}:t;return{valid:i??e.every(n=>n.errorCount===0),issues:e.flatMap(n=>n.offenses.map(o=>({filePath:Be(n.path),check:o.check,severity:o.severity,startRow:R(o.start_row),startColumn:R(o.start_column),endRow:R(o.end_row),endColumn:R(o.end_column),message:o.message}))),errorCount:e.reduce((n,o)=>n+o.errorCount,0),warningCount:e.reduce((n,o)=>n+o.warningCount,0),infoCount:e.reduce((n,o)=>n+o.infoCount,0)}}});function M(t){return JSON.stringify(JSON.parse(I.encode(t)))}function j({result:t,offenses:e,theme:i,valid:n,customChecksDisabled:o=!1},r,c,a){let u=U(e);if(r==="text"&&(ve(u,c,i,a),(e.length?F:ie)({headline:a?`[${a}] Theme Check Summary.`:"Theme Check Summary.",body:ke(e,u,i,o)})),r==="json"){let h=process.stdout;xe(h)&&h._handle.setBlocking(!0),y(M(n===void 0?t:{files:t,valid:n}))}}var f=T(Ie(),1);var B=T(he(),1);var A=class extends ue{static jsonOutputSchema=I;static summary="Validate the theme.";static descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";static description=this.descriptionForHelp();static flags={...ae,...G,json:f.Flags.boolean({...G.json,env:"SHOPIFY_FLAG_JSON",exclusive:["init","version","print","list"]}),path:S.path,"allow-custom-checks":S["allow-custom-checks"],"auto-correct":f.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:f.Flags.string({char:"C",required:!1,description:`Path to a config file to use, overriding .theme-check.yml if present
|
|
17
|
+
Use --path to set the theme directory
|
|
18
|
+
Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
|
|
19
|
+
theme-check:recommended, theme-check:all
|
|
20
|
+
For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":f.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:f.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:f.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:f.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:f.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:f.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:S.environment};static multiEnvironmentsFlags=["path"];inputArgv=[...this.argv];async command(e,i,n){let o=e.path,r=e.environment?.[0],a=e.config?.startsWith(":")&&B.LegacyIdentifiers.has(e.config.slice(1))?B.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await we(o);return}if(e.version){let w=await Z(x("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:K(import.meta.url)}),b="unknown";w&&(b=await oe(w)??"unknown"),y(b);return}let u=await le(this.inputArgv);if(e.print){await Oe(o,a,r,u);return}if(e.list){await Te(o,a,r,u);return}let h=await J(o,a,r,u),{offenses:k,theme:p}=h,d=e.json||e.output==="json",g=!Y(k,e["fail-level"]);if(d||j({...h,valid:g},e.output,o,r),e["auto-correct"]&&await be(p,k),d&&!n&&j({...h,valid:g},"json",o,r),d)return g||(process.exitCode=1),{files:h.result,valid:g};if(!n)return Ce(k,e["fail-level"])}async _run(){let e=this.argv.indexOf("--"),i=e<0?this.argv:this.argv.slice(0,e),n=Ve(i)==="json";return n&&!i.includes("--json")&&(this.argv=[...i,"--json",...e<0?[]:this.argv.slice(e)]),n?ee({outputMode:"json",sink:ne},()=>super._run()):super._run()}collectsEnvironmentResults(e){return!!e.json||e.output==="json"}validateCommandFlags(e){if(!this.collectsEnvironmentResults(e))return;let i=["init","version","print","list"].find(n=>e[n]);i&&this.error(`JSON output can't be used with --${i}.`,{exit:2})}renderEnvironmentResults(e){y(M({environments:e}))}};function Ve(t){let e=process.env.SHOPIFY_FLAG_OUTPUT,i=Object.entries(A.flags);for(let n=0;n<t.length;n++){let o=t[n];if(o.startsWith("--")){let[r,...c]=o.slice(2).split("=");if(i.find(([h])=>h===r)?.[1]?.type!=="option")continue;let u=c.length?c.join("="):t[++n];r==="output"&&(e=u)}else if(o.startsWith("-"))for(let r=1;r<o.length;r++){let c=i.find(([,u])=>u.char===o[r]);if(!c)break;if(c[1].type!=="option")continue;let a=o.slice(r+1).replace(/^=/,"")||t[++n];c[0]==="output"&&(e=a);break}}return e}async function Et(t,e,i,n,o={}){let r=await J(t,i,n,o);return j(r,e,t,n),{offenses:r.offenses,theme:r.theme}}export{A as a,Et as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f,c as D,d as _,e as H}from"./chunk-O7HZ3EIP.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-CZNUBAAG.js";import{e as v}from"./chunk-3FZ4LE6A.js";import{b as O,c as F}from"./chunk-DMOLPSXF.js";import{x as y}from"./chunk-2KUM2RU4.js";import{Eb as p,vb as l,zb as u}from"./chunk-ZMOW2YZ4.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as q}from"./chunk-AE3IQG7S.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};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as R,b as T,c as m,d as F,g as v}from"./chunk-
|
|
1
|
+
import{a as R,b as T,c as m,d as F,g as v}from"./chunk-MKFRKNHF.js";import{p as S,v as w}from"./chunk-CZNUBAAG.js";import{Da as h}from"./chunk-YKDRUAY3.js";import{b as l,c as f}from"./chunk-DMOLPSXF.js";import{a as c}from"./chunk-LG3KEHGD.js";import{S as d,zb as n}from"./chunk-ZMOW2YZ4.js";import{b as P}from"./chunk-AE3IQG7S.js";import{e as O,g as r}from"./chunk-VKWPEFWQ.js";r();r();var j=c({name:"ThemeShareResult",schema:m.schema,definitions:m.definitions}),o={...j,encode:m.encode};r();function x(s,e){e==="json"?n(o.encode(T(s))):F(s,"text")}function y(s){let e=s.map(t=>"error"in t?t:(R.safeParse(t.result).data?.hasErrors&&(process.exitCode=1),{...t,result:t.result??{status:"skipped",reason:"unsafe-directory"}}));n(o.encode({environments:e}))}var u=O(P(),1);var p=class extends w{static jsonOutputSchema=o;static summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";static descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
|
|
2
2
|
|
|
3
|
-
This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;static description=this.descriptionForHelp();static flags={...l,...f,...S,force:u.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:u.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};static multiEnvironmentsFlags=["store","password","path"];async command(e,t,a,C,
|
|
3
|
+
This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;static description=this.descriptionForHelp();static flags={...l,...f,...S,force:u.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:u.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};static multiEnvironmentsFlags=["store","password","path"];async command(e,t,a,C,b){let g={environment:e.environment,force:e.force,noColor:e["no-color"],password:e.password,path:e.path,store:e.store,theme:d("creative"),unpublished:!0,listing:e.listing};h("theme-command:share");let i=await v(g,t,a,b);return i?.hasErrors&&(process.exitCode=1),e.json&&a||(i?x(i,e.json?"json":"text"):e.json&&n(o.encode({status:"cancelled"}))),h("theme-command:share"),i??(e.json&&a?{status:"skipped",reason:"unsafe-directory"}:void 0)}renderEnvironmentResults(e){y(e)}};export{p as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as e,c as r,d as p}from"./chunk-HYCNYUHW.js";import{b as o}from"./chunk-XEZPN5TR.js";import{b as s,c as i}from"./chunk-DMOLPSXF.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class u extends o{static summary="Disable automatic upgrades for Shopify CLI.";static descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
|
|
2
|
+
|
|
3
|
+
When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
|
|
4
|
+
|
|
5
|
+
To enable auto-upgrade, run \`shopify config autoupgrade on\`.
|
|
6
|
+
`;static jsonOutputSchema=r;static description=this.descriptionForHelp();static flags={...s,...i};async run(){let{flags:n}=await this.parse(u),m=e(!1);p(m,n.json?"json":"text")}};export{t as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as r,c as i,d as n}from"./chunk-HYCNYUHW.js";import{b as e}from"./chunk-XEZPN5TR.js";import{b as a,c as s}from"./chunk-DMOLPSXF.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class d extends e{static summary="Check whether auto-upgrade is enabled, disabled, or not yet configured.";static descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
|
|
2
|
+
|
|
3
|
+
When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.
|
|
4
|
+
|
|
5
|
+
Run \`shopify config autoupgrade on\` or \`shopify config autoupgrade off\` to configure it.
|
|
6
|
+
`;static jsonOutputSchema=i;static description=this.descriptionForHelp();static flags={...a,...s};async run(){let{flags:u}=await this.parse(d),p=r();n(p,u.json?"json":"text")}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as N}from"./chunk-
|
|
1
|
+
import{a as N}from"./chunk-R6US7F33.js";import{a as J,b as L}from"./chunk-YY6TFARF.js";import{a as V}from"./chunk-7N7KRZOM.js";import{a as O,b as F,d as u,e as x,f as C,g as a,h as R}from"./chunk-7HECBXSP.js";import{f as j,g as E,p as w,v as D}from"./chunk-CZNUBAAG.js";import{Da as h,Ga as I}from"./chunk-YKDRUAY3.js";import{b,c as g}from"./chunk-DMOLPSXF.js";import{x as d}from"./chunk-2KUM2RU4.js";import{c as _}from"./chunk-H4K3F7PP.js";import{i as S}from"./chunk-TD6JBHUS.js";import{zb as c}from"./chunk-ZMOW2YZ4.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as U}from"./chunk-AE3IQG7S.js";import{e as P,g as i}from"./chunk-VKWPEFWQ.js";i();i();function G(t,e){return{theme:{id:t.id,name:t.name,role:t.role,shop:e.storeFqdn,preview_url:J(t,e),editor_url:L(t,e)}}}function $(t){let{platform:e,arch:n}=_(),r=j(),m=r?E():void 0,s=Number(m)||null;return{result:{store:r??"Not configured",development_theme_id:s,cli_version:t.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version},developmentTheme:m}}async function y(t,e){let n;if(e.development)n=await new N(t).findOrCreate();else{let r={filter:{theme:e.theme}};n=await V(t,r)}return n?G(n,t):void 0}i();i();var Y=o.object({id:o.number(),name:o.string(),role:o.string(),shop:o.string(),preview_url:o.string(),editor_url:o.string()}),q=o.object({theme:Y}),z=o.object({store:o.string(),development_theme_id:o.number().nullable(),cli_version:o.string(),os:o.string(),shell:o.string(),node_version:o.string()}),K=o.union([q,z]),A=o.object({storeDomain:F,developmentThemeId:O.nullable(),cliVersion:o.string(),os:o.string(),shell:o.string().nullable(),nodeVersion:o.string()}).strict(),l=x({name:"ThemeInfoResult",schema:o.union([o.object({theme:u}).strict(),A]),definitions:{Theme:u,ThemeEnvironmentInfo:A},project(t){let e=K.parse(t);return"theme"in e?{theme:{...R(e.theme),storeDomain:a(e.theme.shop),previewUrl:e.theme.preview_url,editorUrl:e.theme.editor_url}}:{storeDomain:a(e.store),developmentThemeId:e.development_theme_id===null?null:C(e.development_theme_id),cliVersion:e.cli_version,os:e.os,shell:e.shell==="unknown"?null:e.shell,nodeVersion:e.node_version}}});function p(t,e,n={}){if(e==="json"){c(l.encode(t));return}"theme"in t?d(W(t,n)):d({customSections:B(t,n)})}function W(t,e){let n=Object.entries(t.theme).map(([r,m])=>{if(r==="editor_url"||r==="preview_url"){let s=String(m),H=r==="editor_url"?"Open in Theme Editor":"Preview Theme";return[f(r),{link:{url:s,label:H}}]}return r==="id"?[f(r),`#${m}`]:[f(r),`${m}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function B(t,e){let n=Object.hasOwn(e,"developmentTheme")?e.developmentTheme:t.development_theme_id;return I(`theme-command:info:dev-theme-loaded:${n}`),[M("Theme Configuration",[["Store",t.store],["Development Theme ID",n?`#${n}`:{subdued:"Not set"}]]),M("Tooling and System",[["Shopify CLI",t.cli_version],["OS",t.os],["Shell",t.shell],["Node version",t.node_version]])]}function M(t,e){return{title:t,body:{tabularData:e,firstColumnSubdued:!0}}}function f(t){return t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var v=P(U(),1);var T=class extends D{static jsonOutputSchema=l;static descriptionWithMarkdown="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";static description=this.descriptionForHelp();static flags={...b,...g,...w,development:v.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:v.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,n,r=!1){if(h("theme-command:info"),e.theme||e.development){let m=await y(n,e);if(!m)throw new S("Theme not found!");if(e.json&&r)return h("theme-command:info"),m;p(m,e.json?"json":"text",e)}else{let{result:m,developmentTheme:s}=$({cliVersion:this.config.version});if(e.json&&r)return h("theme-command:info"),m;p(m,e.json?"json":"text",{developmentTheme:s})}h("theme-command:info")}renderEnvironmentResults(e){c(l.encode({environments:e}))}};export{T as a};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{f as A,g as R,h as j}from"./chunk-5T3ZT6CC.js";import{a as T}from"./chunk-ALINJ6J2.js";import{a as S}from"./chunk-ASKBYEO7.js";import{Q as N}from"./chunk-HMPRWNGG.js";import{b as I,c as w}from"./chunk-YYWSHRO2.js";import{b as y,c as x}from"./chunk-DMOLPSXF.js";import{x as m}from"./chunk-2KUM2RU4.js";import{a as d}from"./chunk-LG3KEHGD.js";import{tb as b,vb as g,zb as P}from"./chunk-ZMOW2YZ4.js";import{b as r}from"./chunk-3PYDIBTX.js";import{c as h}from"./chunk-IWTNUJGY.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();import{resolve as u}from"node:path";function v(t,{functionRunnerPath:n,schemaPath:e}){let i=t.configuration;return{function:{handle:i.handle??null,name:t.name,apiVersion:i.api_version??null,directory:u(t.directory),targets:(i.targeting??[]).filter(({target:o})=>!!o).map(o=>({target:o.target,inputQueryPath:o.input_query?u(h(t.directory,o.input_query)):null,export:o.export===""?null:o.export??null})),schemaPath:e?u(e):null,wasmPath:u(h(t.directory,i.build?.path??t.outputRelativePath)),functionRunnerPath:u(n)}}}a();var s=r.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/).describe("An absolute native filesystem path."),C=r.object({target:r.string().min(1),inputQueryPath:s.nullable().describe("Null when no input query is configured."),export:r.string().min(1).nullable().describe("Null when no WebAssembly export is configured.")}).strict(),O=r.object({handle:r.string().nullable().describe("Null when the extension does not configure a handle."),name:r.string(),apiVersion:r.string().nullable().describe("The configured API version, or null when unavailable."),directory:s,targets:r.array(C).describe("All configured targets; empty when none are configured."),schemaPath:s.nullable().describe("Null when a GraphQL schema is unavailable."),wasmPath:s,functionRunnerPath:s}).strict(),l=d({name:"FunctionInfoResult",schema:r.object({function:O}).strict(),definitions:{FunctionInfo:O,FunctionTarget:C}});a();function B(t,n){return{title:`CONFIGURATION
|
|
2
|
+
`,body:{tabularData:[["Handle",t.handle??"N/A"],["Name",n??"N/A"],["API Version",t.api_version??"N/A"]],firstColumnSubdued:!0}}}function E(t){if(Object.keys(t).length===0)return null;let n=[];return Object.entries(t).forEach(([e,i])=>{n.push([g`${b.cyan(e)}`.value,""]),i.inputQueryPath&&n.push([{subdued:" Input Query Path"},{filePath:i.inputQueryPath}]),i.export&&n.push([{subdued:" Export"},i.export])}),{title:`
|
|
3
|
+
TARGETING
|
|
4
|
+
`,body:{tabularData:n}}}function G(t,n){return{title:`
|
|
5
|
+
BUILD
|
|
6
|
+
`,body:{tabularData:[["Schema Path",{filePath:n??"N/A"}],["Wasm Path",{filePath:t}]],firstColumnSubdued:!0}}}function U(t){return{title:`
|
|
7
|
+
FUNCTION RUNNER
|
|
8
|
+
`,body:{tabularData:[["Path",{filePath:t}]],firstColumnSubdued:!0}}}function F(t,n){if(n==="json"){P(l.encode(t));return}let e=t.function,i=Object.fromEntries(e.targets.map(({target:f,inputQueryPath:Q,export:D})=>[f,{inputQueryPath:Q??void 0,export:D??void 0}])),o=[B({handle:e.handle??void 0,api_version:e.apiVersion??void 0},e.name)],c=E(i);c&&o.push(c),o.push(G(e.wasmPath,e.schemaPath??void 0)),o.push(U(e.functionRunnerPath)),m({customSections:o})}var p=class t extends T{static jsonOutputSchema=l;static summary="Print basic information about your function.";static descriptionWithMarkdown=`The information returned includes the following:
|
|
9
|
+
|
|
10
|
+
- The function handle
|
|
11
|
+
- The function name
|
|
12
|
+
- The function API version
|
|
13
|
+
- The targeting configuration
|
|
14
|
+
- The schema path
|
|
15
|
+
- The WASM path
|
|
16
|
+
- The function runner path`;static description=this.descriptionForHelp();static flags={...y,...S,...A,...x};async run(){let{flags:n}=await this.parse(t),{app:e}=await N({directory:n.path,userProvidedConfigName:n.config}),i=await R(e,n.path),o=I();await w(o);let c=await j(i,n.path,n["client-id"],n.reset,n.config),f=v(i,{functionRunnerPath:o.path,schemaPath:c});return F(f,n.json?"json":"text"),{app:e}}};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./chunk-VKWPEFWQ.js";r();import t from"crypto";function o(e){return t.createHash("sha256").update(e).digest()}function c(e){return t.createHash("sha1").update(e).digest("hex")}function d(e){return t.createHash("md5").update(e).digest("hex")}function p(){return t.randomUUID()}function s(e){return t.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g,""),"hex")).update(e).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/,"$1-$2-$3-$4-$5")}export{o as a,c as b,d as c,p as d,s as e};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as N,b as c,c as S}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-XLMKHTJ5.js";import{a as E}from"./chunk-7N7KRZOM.js";import{f as R,o as F}from"./chunk-DVFVO6ZE.js";import{e as g}from"./chunk-7HECBXSP.js";import{p as v,v as T}from"./chunk-CZNUBAAG.js";import{b as u,c as d,f}from"./chunk-DMOLPSXF.js";import{y as l}from"./chunk-2KUM2RU4.js";import{zb as h}from"./chunk-ZMOW2YZ4.js";import{b as r}from"./chunk-3PYDIBTX.js";import{b as j}from"./chunk-AE3IQG7S.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
|
-
`}]:[],"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
|
|
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
|
|
|
5
5
|
If no theme is specified, then you're prompted to select the theme that you want to rename from the list of themes in your store.
|
|
6
6
|
`;static description=this.descriptionForHelp();static flags={...u,...d,...v,name:f(i.Flags.string({char:"n",description:"The new name for the theme.",env:"SHOPIFY_FLAG_NEW_NAME",required:!1})),development:i.Flags.boolean({char:"d",description:"Rename your development theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:i.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_THEME_ID"}),live:i.Flags.boolean({char:"l",description:"Rename your remote live theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"})};static multiEnvironmentsFlags=["store","password","name",["live","development","theme"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live"]}]}async command(e,n,o=!1){let s=await I(e,n);if(e.json&&o)return s.data;y(s,e.json?"json":"text",e.environment)}renderEnvironmentResults(e){h(a.encode({environments:e}))}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
1
|
+
import{b as s}from"./chunk-AE3IQG7S.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(),1),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 @@
|
|
|
1
|
+
import{a as d}from"./chunk-5HOZDOJ7.js";import{a as p,b as m}from"./chunk-AVJJGQOP.js";import{d as r,j as c}from"./chunk-5534MHZW.js";import{a as s}from"./chunk-RSZAAN37.js";import{P as a}from"./chunk-HMPRWNGG.js";import{c as n}from"./chunk-DMOLPSXF.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class u extends s{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static jsonOutputSchema=c;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...r,...n};async run(){let{flags:t}=await this.parse(u),{app:h,remoteApp:l}=await a({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),f=await d({action:"unschedule",input:t.input??"-",clientId:l.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:p}:{}}),i=m(f,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:h}}};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,d as m,e as u,f,g as h}from"./chunk-5T3ZT6CC.js";import{a as c}from"./chunk-RSZAAN37.js";import{a as s}from"./chunk-ASKBYEO7.js";import{P as r}from"./chunk-HMPRWNGG.js";import{b as a,c as n}from"./chunk-DMOLPSXF.js";import{b as v}from"./chunk-AE3IQG7S.js";import{e as S,g as i}from"./chunk-VKWPEFWQ.js";i();var d=S(v(),1);var o=class l extends c{static jsonOutputSchema=m;static summary="Fetch the latest GraphQL schema for a function.";static descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";static description=this.descriptionForHelp();static flags={...a,...s,...f,...n,stdout:d.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};async run(){let{flags:t}=await this.parse(l),{app:e,developerPlatformClient:g,organization:F}=await r({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),y=await h(e,t.path),w=await p({app:e,extension:y,developerPlatformClient:g,orgId:F.id});return await u(w,{stdout:t.stdout,json:t.json}),{app:e}}};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();import e from"node:path";import E from"node:os";import c from"node:process";var n=E.homedir(),a=E.tmpdir(),{env:i}=c,p=o=>{let t=e.join(n,"Library");return{data:e.join(t,"Application Support",o),config:e.join(t,"Preferences",o),cache:e.join(t,"Caches",o),log:e.join(t,"Logs",o),temp:e.join(a,o)}},A=o=>{let t=i.APPDATA||e.join(n,"AppData","Roaming"),_=i.LOCALAPPDATA||e.join(n,"AppData","Local");return{data:e.join(_,o,"Data"),config:e.join(t,o,"Config"),cache:e.join(_,o,"Cache"),log:e.join(_,o,"Log"),temp:e.join(a,o)}},T=o=>{let t=e.basename(n);return{data:e.join(i.XDG_DATA_HOME||e.join(n,".local","share"),o),config:e.join(i.XDG_CONFIG_HOME||e.join(n,".config"),o),cache:e.join(i.XDG_CACHE_HOME||e.join(n,".cache"),o),log:e.join(i.XDG_STATE_HOME||e.join(n,".local","state"),o),temp:e.join(a,t,o)}};function I(o,{suffix:t="nodejs"}={}){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);return t&&(o+=`-${t}`),c.platform==="darwin"?p(o):c.platform==="win32"?A(o):T(o)}var S="shopify-cli",O=()=>process.env.XDG_CACHE_HOME?process.env.XDG_CACHE_HOME:I(S).cache;var C={alwaysLogAnalytics:"SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",alwaysLogMetrics:"SHOPIFY_CLI_ALWAYS_LOG_METRICS",deviceAuth:"SHOPIFY_CLI_DEVICE_AUTH",doctor:"SHOPIFY_CLI_DOCTOR",enableCliRedirect:"SHOPIFY_CLI_ENABLE_CLI_REDIRECT",env:"SHOPIFY_CLI_ENV",noAnalytics:"SHOPIFY_CLI_NO_ANALYTICS",optOutInstrumentation:"OPT_OUT_INSTRUMENTATION",doNotTrack:"DO_NOT_TRACK",serviceAccountToken:"SHOPIFY_SERVICE_ACCOUNT_TOKEN",appAutomationToken:"SHOPIFY_APP_AUTOMATION_TOKEN",partnersToken:"SHOPIFY_CLI_PARTNERS_TOKEN",runAsUser:"SHOPIFY_RUN_AS_USER",serviceEnv:"SHOPIFY_SERVICE_ENV",skipCliRedirect:"SHOPIFY_CLI_SKIP_CLI_REDIRECT",spinInstance:"SPIN_INSTANCE",themeToken:"SHOPIFY_CLI_THEME_TOKEN",unitTest:"SHOPIFY_UNIT_TEST",verbose:"SHOPIFY_FLAG_VERBOSE",codespaces:"CODESPACES",codespaceName:"CODESPACE_NAME",codespacePortForwardingDomain:"GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",gitpod:"GITPOD_WORKSPACE_URL",cloudShell:"CLOUD_SHELL",spinAppPort:"SERVER_PORT",spinAppHost:"SPIN_APP_HOST",organization:"SHOPIFY_CLI_ORGANIZATION",identityToken:"SHOPIFY_CLI_IDENTITY_TOKEN",refreshToken:"SHOPIFY_CLI_REFRESH_TOKEN",otelURL:"SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",themeKitAccessDomain:"SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",json:"SHOPIFY_FLAG_JSON",skipNetworkLevelRetry:"SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",maxRequestTimeForNetworkCalls:"SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",disableImportScanning:"SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"},P="theme-kit-access.shopifyapps.com",F={backendPort:"BACKEND_PORT"},h={executables:{dev:"/opt/dev/bin/dev"},directories:{cache:{path:()=>O(),vendor:{path:()=>s(O(),"vendor"),binaries:()=>s(O(),"vendor","binaries")}}}},m={expirationTimeMarginInMinutes:4},Y="9e1e6889176fd0c795d5c659225e0fae",u={limit:300,timeout:{days:1}},f=process.env[C.themeKitAccessDomain]??P;export{I as a,C as b,P as c,F as d,h as e,m as f,Y as g,u as h,f as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-6BYHL3DS.js";import{g as r,h as n,i as h}from"./chunk-CZNUBAAG.js";import{i as m}from"./chunk-TD6JBHUS.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,E="No development theme ID has been set. Please create a development theme first.",p=class extends s{context="Development";constructor(e){super(e),this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):E);return e}setTheme(e){n(e)}removeTheme(){h()}};export{p as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as d,d as M,e as b,f as U}from"./chunk-6IMTMS2S.js";import{a as B,b as E,c as T,f as L,j as $,k as R,m as N,t as j}from"./chunk-Z5QEXS6F.js";import{a as _}from"./chunk-RSZAAN37.js";import{a as q}from"./chunk-ASKBYEO7.js";import{d as P}from"./chunk-JGLLABZR.js";import{B as I,Z as O}from"./chunk-YKDRUAY3.js";import{b as v,c as x}from"./chunk-DMOLPSXF.js";import{A as g,F,x as S,y as A}from"./chunk-2KUM2RU4.js";import{Gb as D,ba as h,ga as k,tb as p,vb as l,zb as C}from"./chunk-ZMOW2YZ4.js";import{i as u}from"./chunk-B4OMIONW.js";import{b as Y}from"./chunk-AE3IQG7S.js";import{e as K,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function V(t){let{storeFqdn:o,operationId:e,remoteApp:n}=t,{adminSession:r,version:i}=await G(o,n),a=await $({adminSession:r,operationId:e,version:i});return{store:o,apiVersion:i,operationId:e,operation:a??null}}async function z(t){let{storeFqdn:o,remoteApp:e}=t,{adminSession:n,version:r}=await G(o,e),i=await R({adminSession:n,version:r});return{store:o,apiVersion:r,operations:i}}async function G(t,o){let e=await P(o),n=await O(t,o.apiKey,e),r=await L({adminSession:n,minimumDefaultVersion:B});return{adminSession:n,version:r}}s();function H(t,o){if(o==="json"){C(d.encode({...M(t),..."operation"in t?{operationGid:t.operationId,operation:t.operation?b(t.operation):null}:{operations:t.operations.map(b),pageInfo:{hasNextPage:t.operations.length<100?!1:null}}}));return}if("operation"in t){t.operation?W(t.operation):g({headline:"Bulk operation not found.",body:l`ID: ${p.yellow(t.operationId)}`.value});return}let e=t.operations.map(n=>({id:T(n.id),status:X(n.status),count:Z(n.objectCount),dateCreated:h(new Date(String(n.createdAt))),dateFinished:n.completedAt?h(new Date(String(n.completedAt))):"",results:tt(n.url??n.partialDataUrl)}));D(),e.length===0?S({body:"No bulk operations found in the last 7 days."}):F({rows:e,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),D()}function W(t){let{id:o,status:e,createdAt:n,completedAt:r,url:i,partialDataUrl:a}=t,c=N(t).value,J=Q(n,r),m=l`ID: ${p.yellow(o)}\n${J}`.value;if(e==="COMPLETED"){let f=i?p.link("Download results",i):"";A({headline:c,body:l`${m}\n${f}`.value})}else if(e==="FAILED"){let f=a?p.link("Download partial results",a):"";g({headline:c,body:l`${m}\n${f}`.value})}else S({headline:c,body:m})}function Q(t,o){let e=new Date;return o?`Finished ${k(new Date(String(o)),e)}`:`Started ${k(new Date(String(t)),e)}`}function X(t){return t==="COMPLETED"?u.green(t):t==="FAILED"?u.red(t):u.dim(t)}function Z(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)}function tt(t){return t?l`${p.link("download",t)}`.value:""}var w=K(Y(),1);var y=class t extends _{static summary="Check the status of bulk operations.";static descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
|
|
2
|
+
|
|
3
|
+
Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).
|
|
4
|
+
|
|
5
|
+
Use [\`bulk execute\`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) to start a new bulk operation.`;static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...v,...x,...q,id:w.Flags.string({description:"The bulk operation ID (numeric ID or full GID). If not provided, lists all bulk operations belonging to this app on this store in the last 7 days.",env:"SHOPIFY_FLAG_ID"}),store:w.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async o=>I(o)})};async run(){let{flags:o}=await this.parse(t),{appContextResult:e,store:n}=await j(o),r=o.json?"json":"text";U(o.id?"Checking bulk operation status.":"Listing bulk operations.",{organization:e.organization,remoteApp:e.remoteApp,storeFqdn:n.shopDomain},r);let i={storeFqdn:n.shopDomain,remoteApp:e.remoteApp},a=o.id?await V({...i,operationId:E(o.id)}):await z(i);return H(a,r),{app:e.app}}};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as n}from"./chunk-
|
|
1
|
+
import{o as n}from"./chunk-4WBWZIN5.js";import{G as s}from"./chunk-2KUM2RU4.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-3GD5ESWN.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|