@metabase/cli 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +198 -11
- package/dist/{add-collection-CUBn11d4.mjs → add-collection-B-Pf12HY.mjs} +4 -4
- package/dist/add-collection-B2PdVMRy.mjs +9 -0
- package/dist/alert-DGcECcDb.mjs +26 -0
- package/dist/alerts-CRGMX4eB.mjs +49 -0
- package/dist/{append-BgDaYJW9.mjs → append-lL0IaI6U.mjs} +5 -5
- package/dist/{archive-Czzktgho.mjs → archive-3rLXY0nS.mjs} +4 -4
- package/dist/{archive-BCPA0HhV.mjs → archive-BUFc1me2.mjs} +5 -5
- package/dist/{archive-EoYl-lS-.mjs → archive-Baz4OVDd.mjs} +4 -4
- package/dist/{archive-Bv59HYsU.mjs → archive-C9mJGN6J.mjs} +4 -4
- package/dist/{archive-BZpXnQSu.mjs → archive-CUGRnyRV.mjs} +4 -4
- package/dist/{archive-BM9HjJHQ.mjs → archive-D3DErepm.mjs} +4 -4
- package/dist/{archive-BncW2dGw.mjs → archive-D8YrImIU.mjs} +6 -6
- package/dist/{archive-DFCu5hVG.mjs → archive-DihHU042.mjs} +5 -5
- package/dist/archive-DyPsHSFb.mjs +39 -0
- package/dist/{archive-Oh1iZu2y.mjs → archive-ExcEma7q.mjs} +7 -7
- package/dist/archive-hKPQXgXa.mjs +38 -0
- package/dist/{auth-hgAnMUfi.mjs → auth-B8Yb4ZaN.mjs} +5 -5
- package/dist/{body-DKcQw7G5.mjs → body-DXJ2v3GY.mjs} +3 -3
- package/dist/{branches-CCmtr3W8.mjs → branches-ByCzTuiv.mjs} +4 -4
- package/dist/{cancel-72y10-Rg.mjs → cancel-DvehNbDD.mjs} +3 -3
- package/dist/{cancel-task-CGwdz91O.mjs → cancel-task-BM8ADd3Y.mjs} +4 -4
- package/dist/{capabilities-DOTcPraV.mjs → capabilities-1HTHeDa4.mjs} +1 -1
- package/dist/{card-B8G5jQQT.mjs → card-BFRRyTGs.mjs} +3 -3
- package/dist/card-BT7ce7uO.mjs +27 -0
- package/dist/{cards-CYSyvN7Z.mjs → cards-Bz6anDNX.mjs} +6 -6
- package/dist/cli.mjs +43 -28
- package/dist/{collection-CFoLPrY5.mjs → collection-BrrjbPLN.mjs} +4 -2
- package/dist/collection-ahFSJT-e.mjs +23 -0
- package/dist/{collection-namespace-C7mr_a8H.mjs → collection-namespace-8i_CvWsg.mjs} +2 -2
- package/dist/{create-C_WqoOf5.mjs → create--_4GZUNY.mjs} +7 -6
- package/dist/{create-Brh8WCa3.mjs → create-1O1UiTVt.mjs} +6 -6
- package/dist/{create-C3DThF9E.mjs → create-BnNRvoyz.mjs} +11 -11
- package/dist/{create-CPEOSxIH.mjs → create-BynNiG1N.mjs} +6 -6
- package/dist/{create-E7XhC0gJ.mjs → create-CHK9cJcK.mjs} +8 -8
- package/dist/create-COI80Veo.mjs +52 -0
- package/dist/{create-QYctYGSa.mjs → create-CtIOvInN.mjs} +8 -8
- package/dist/{create-7pbf5Wu0.mjs → create-Cy57naL0.mjs} +12 -12
- package/dist/{create-nXlnVzXl.mjs → create-D57tRDrg.mjs} +9 -8
- package/dist/{create-pTnveKkm.mjs → create-D6bXJlBS.mjs} +6 -6
- package/dist/{create-DFyZCXQD.mjs → create-DAj8pyfQ.mjs} +5 -4
- package/dist/create-DOpa2TmH.mjs +53 -0
- package/dist/{create-branch-DPE6itiS.mjs → create-branch-BwqFHYcZ.mjs} +4 -4
- package/dist/{create-BDY38_Kr.mjs → create-qzjhJFP8.mjs} +6 -6
- package/dist/{create-U_XDwsIX.mjs → create-t7z8Eb4T.mjs} +6 -6
- package/dist/{create-CaWFrPRU.mjs → create-yK1-fuX5.mjs} +9 -9
- package/dist/cron-93wjhtrP.mjs +7 -0
- package/dist/{csv-CR2qhmC6.mjs → csv-yoFA1hhv.mjs} +5 -5
- package/dist/{current-task-MUHaiHIg.mjs → current-task-D8Q1uFmk.mjs} +4 -4
- package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BSCXTX4H.mjs} +2 -2
- package/dist/dashboard-C__PiWrv.mjs +36 -0
- package/dist/{database-CIbVSfua.mjs → database-B-xwx5LA.mjs} +1 -1
- package/dist/{db-eWy7A-H3.mjs → db-BiLWl1J9.mjs} +7 -7
- package/dist/{delete-B58Cng0p.mjs → delete-B8dui6O6.mjs} +5 -5
- package/dist/{delete-BKMOtpjs.mjs → delete-BwPgIWV8.mjs} +5 -5
- package/dist/{delete-CW3dYmuT.mjs → delete-CA7IjA5J.mjs} +5 -5
- package/dist/{delete-BMa26SzX.mjs → delete-CawUDFud.mjs} +5 -5
- package/dist/{delete-doa3R-c5.mjs → delete-Dcu3iDkg.mjs} +5 -5
- package/dist/{delete-runtime-_YOukDRC.mjs → delete-runtime-00-R9iJm.mjs} +2 -2
- package/dist/{delete-table-D_tjBZPd.mjs → delete-table-DS0b3i0k.mjs} +5 -5
- package/dist/{dependencies-BR_4um7h.mjs → dependencies-BQVZylqV.mjs} +4 -4
- package/dist/{dirty-BKCg6oVN.mjs → dirty-BqdcrfUz.mjs} +4 -4
- package/dist/document-C9ykHYOG.mjs +22 -0
- package/dist/{eid-DSOk7Khb.mjs → eid-DcCAs-RP.mjs} +5 -5
- package/dist/{events-Dxm7me47.mjs → events-C9PqRUCO.mjs} +4 -4
- package/dist/{export-Gb_wfZpt.mjs → export-CdKR5nPT.mjs} +6 -6
- package/dist/field-P7aJaet9.mjs +21 -0
- package/dist/{fields-hZeq6IF2.mjs → fields-D2czTLKq.mjs} +5 -5
- package/dist/get-4rA8pbRu.mjs +38 -0
- package/dist/{get-CP3lrIYi.mjs → get-75Vdyusm.mjs} +4 -4
- package/dist/{get-nZW0W7Ui.mjs → get-B2vvnMpl.mjs} +5 -5
- package/dist/{get--rGDVyje.mjs → get-B6fSPCfp.mjs} +4 -4
- package/dist/{get-7Np_G2je.mjs → get-BbKC0fTx.mjs} +4 -4
- package/dist/{get-CH_JmPc-.mjs → get-BfFKIfpX.mjs} +5 -4
- package/dist/{get-DZatHVdn.mjs → get-Bpw05IUm.mjs} +7 -7
- package/dist/{get-DtvzjfjG.mjs → get-CJYv3CfV.mjs} +3 -3
- package/dist/{get-DB6Y9igl.mjs → get-CaIYg15K.mjs} +6 -6
- package/dist/get-CvXOGyFj.mjs +36 -0
- package/dist/{get-T85qZgnv.mjs → get-Cvkt6GcQ.mjs} +4 -4
- package/dist/{get-DRK5-UdU.mjs → get-DQ0pb4tT.mjs} +4 -4
- package/dist/{get-43Smv3RI.mjs → get-DXiL39gi.mjs} +6 -6
- package/dist/{get-DWzMR8sn.mjs → get-DXydDRVU.mjs} +4 -4
- package/dist/{get-BSdOE5J4.mjs → get-DZRB5S37.mjs} +4 -4
- package/dist/{get-CgZ5qjQx.mjs → get-Db8YNxId.mjs} +5 -4
- package/dist/{get-DT2MOZ8L.mjs → get-DhS4y0K9.mjs} +4 -4
- package/dist/{get-CuPCE_AG.mjs → get-Dy5f54pV.mjs} +4 -4
- package/dist/{get-run-Cwia6e0d.mjs → get-run-BF5ZBE8o.mjs} +4 -4
- package/dist/{get-CHAH_F37.mjs → get-vGqyjGSW.mjs} +4 -4
- package/dist/git-sync-BzievbUz.mjs +31 -0
- package/dist/{has-remote-changes-CIIib71u.mjs → has-remote-changes-CjDHphUH.mjs} +4 -4
- package/dist/{import-D9ID9Mz4.mjs → import-DzA5Ty9_.mjs} +6 -6
- package/dist/{input-DzbvxKYU.mjs → input-BpXlmJ5J.mjs} +1 -1
- package/dist/{is-dirty-CHbUJ-bh.mjs → is-dirty-4kIyD4oP.mjs} +3 -3
- package/dist/is-dirty-Cv0bdKkX.mjs +8 -0
- package/dist/{items-DN63mjpF.mjs → items-BXH0f1r6.mjs} +6 -6
- package/dist/{key-BnGRTX8U.mjs → key-B9AAqwjq.mjs} +1 -1
- package/dist/{library-DF2qx50w.mjs → library-BFZYsBcz.mjs} +5 -5
- package/dist/list-AyGEaws8.mjs +8 -0
- package/dist/{list-B3HoSfYj.mjs → list-Bar8uQRC.mjs} +3 -3
- package/dist/{list-KDHLmoUx.mjs → list-BiAVv9jX.mjs} +3 -3
- package/dist/{list-BSxMFDMR.mjs → list-Bm1PlZEV.mjs} +3 -3
- package/dist/{list-CQN2BpaW.mjs → list-BtgjcC2w.mjs} +3 -3
- package/dist/{list-n2PY3OIx.mjs → list-By1yYVGq.mjs} +7 -7
- package/dist/{list-De82cXvn.mjs → list-CG3ec9BZ.mjs} +4 -4
- package/dist/{list-C6YpaUpC.mjs → list-CLgkOcmY.mjs} +5 -5
- package/dist/{list-CvS68tLn.mjs → list-CSnpbFML.mjs} +3 -3
- package/dist/list-Cn-VruXD.mjs +8 -0
- package/dist/{list-C5Ir-96z.mjs → list-D7mMcRG5.mjs} +6 -6
- package/dist/{list-BeqcZVSn.mjs → list-DOhVPh95.mjs} +3 -3
- package/dist/{list-CY-jpBNE.mjs → list-DSHteJOl.mjs} +4 -3
- package/dist/{list-C0344yqi.mjs → list-Dl81pkVs.mjs} +6 -5
- package/dist/{list-MqqHcBvD.mjs → list-DwMcwucR.mjs} +3 -3
- package/dist/{list-B1sdMz6m.mjs → list-IxaPXKXu.mjs} +3 -3
- package/dist/list-SiSfX4wl.mjs +73 -0
- package/dist/{list-CkTsOOA7.mjs → list-hKRQUcGB.mjs} +3 -3
- package/dist/list-oRyXsJXs.mjs +50 -0
- package/dist/{list-C7TqbWG1.mjs → list-w61Uovt2.mjs} +5 -5
- package/dist/listing-1G8iFfZe.mjs +10 -0
- package/dist/{login-jy9rbYev.mjs → login-zUCMDLC8.mjs} +7 -7
- package/dist/{logout-CRbk1SuY.mjs → logout-BFh7QHx6.mjs} +3 -3
- package/dist/{measure-CPqisgyf.mjs → measure-DNldT89z.mjs} +6 -6
- package/dist/notification-BR5wehqg.mjs +201 -0
- package/dist/{parameter-values-CcgcG3S5.mjs → parameter-values-BYDFzxNY.mjs} +4 -4
- package/dist/{parse-enum-C_2lGr3g.mjs → parse-enum-D1zTYr_i.mjs} +1 -1
- package/dist/{parse-id-CD54Chc5.mjs → parse-id-waEVK-uR.mjs} +1 -1
- package/dist/{parse-ref-BLgKEEF-.mjs → parse-ref-C3DUXwci.mjs} +1 -1
- package/dist/patch-BpjI9BOz.mjs +20 -0
- package/dist/patch-DrMVqf34.mjs +36 -0
- package/dist/{path-CPMr1RJO.mjs → path-Bvs9IR4k.mjs} +3 -3
- package/dist/{poll-DVF9EnEb.mjs → poll-rqLkEJVP.mjs} +2 -2
- package/dist/{poll-task-CpHGQOd5.mjs → poll-task-CiB1o1wG.mjs} +2 -2
- package/dist/{preflight-xhwEOHAt.mjs → preflight-DJOBTWVq.mjs} +3 -3
- package/dist/{process-HDPKLS_z.mjs → process-BxAUv3Wx.mjs} +1 -1
- package/dist/{prompt-BgkWNgIR.mjs → prompt-DmxSLNrO.mjs} +1 -1
- package/dist/{publish-xVPABwE8.mjs → publish-C1y_vGGw.mjs} +12 -7
- package/dist/pulse-C8q469KD.mjs +186 -0
- package/dist/{query-Cxh9hmrP.mjs → query-B9LlGOZI.mjs} +8 -8
- package/dist/{query-B3HDIsJ-.mjs → query-DpVWKW-y.mjs} +12 -12
- package/dist/{query-result-Drvjv7DD.mjs → query-result-Bvh89K4f.mjs} +1 -1
- package/dist/{remove-collection-_a4uIlLB.mjs → remove-collection-DYQibG6d.mjs} +6 -6
- package/dist/{replace-BwvKDNur.mjs → replace-sHtPBNnA.mjs} +5 -5
- package/dist/{requests-qyh002pL.mjs → requests-Pc0u7PQS.mjs} +2 -2
- package/dist/{rescan-values-Bd0Joerq.mjs → rescan-values-CuPGOzKI.mjs} +6 -6
- package/dist/{resolve-Ct084wx3.mjs → resolve-BiL5scF0.mjs} +22 -15
- package/dist/{run-yrpSF6VL.mjs → run-Ce_gPVcg.mjs} +3 -3
- package/dist/{run-BfpKUjqL.mjs → run-D6jyZ0nv.mjs} +6 -6
- package/dist/{runs-D_08Ma08.mjs → runs-DRxrpAkU.mjs} +5 -5
- package/dist/{runtime-Ab96yYlM.mjs → runtime-CPIHg_Zg.mjs} +105 -101
- package/dist/{schema-tables-ChBYz4mO.mjs → schema-tables-D91DWM5l.mjs} +5 -5
- package/dist/{schemas-C2crnVML.mjs → schemas-OVYRgvz9.mjs} +3 -3
- package/dist/{search-DnGEh6sZ.mjs → search-msFNbxU6.mjs} +3 -3
- package/dist/{segment-DyVTZSIM.mjs → segment-BIKVTq_n.mjs} +6 -6
- package/dist/{selectors-Ll_TRxl5.mjs → selectors-Bsyhe1zP.mjs} +3 -3
- package/dist/send-BeFpVrwD.mjs +60 -0
- package/dist/{set-active-qqDoBh_Z.mjs → set-active-CFWtIWzX.mjs} +3 -3
- package/dist/{set-tHsHXRGV.mjs → set-jRnCLhvc.mjs} +6 -6
- package/dist/{setting-B9xSyMf6.mjs → setting-CApPg0Xr.mjs} +4 -4
- package/dist/{setup-CXGcyTuv.mjs → setup-CruHFQJz.mjs} +5 -5
- package/dist/{skills-rnvVgau4.mjs → skills-CxqkjkdQ.mjs} +3 -3
- package/dist/{skills-BKuiGkc1.mjs → skills-DlFbbaoS.mjs} +1 -1
- package/dist/snippet-DdoeL-7N.mjs +22 -0
- package/dist/{stash-DxmpBS7x.mjs → stash-CR-ESWiX.mjs} +6 -6
- package/dist/{status-B5ar0uXc.mjs → status-BMEdl-_G.mjs} +3 -3
- package/dist/{status-D5CR1SrS.mjs → status-DCIOvsc6.mjs} +26 -10
- package/dist/subscription-BOOBR5Ir.mjs +25 -0
- package/dist/subscriptions-C_1AQpZF.mjs +47 -0
- package/dist/summary-D1fKnwE3.mjs +8 -0
- package/dist/{summary-BEEJl2O1.mjs → summary-WUjzNITU.mjs} +4 -4
- package/dist/{sync-schema-B5HDpmrp.mjs → sync-schema-Cq5LzHHc.mjs} +8 -8
- package/dist/sync-scope-Dh1wBlrg.mjs +55 -0
- package/dist/table-BK56VDw8.mjs +21 -0
- package/dist/{table-C3RIKiYM.mjs → table-fDvuvqoU.mjs} +1 -1
- package/dist/timeline-Dl5pm5tN.mjs +24 -0
- package/dist/{timeline-event-BVDTt-pM.mjs → timeline-event-5JAeGVSI.mjs} +6 -6
- package/dist/transform-ATK6rJBl.mjs +31 -0
- package/dist/transform-job-BezBE6Y8.mjs +25 -0
- package/dist/{transform-job-CjsAXMej.mjs → transform-job-sJmW_En3.mjs} +4 -4
- package/dist/{transform-tag-B1xnFa9w.mjs → transform-tag-GqbcG_6_.mjs} +5 -5
- package/dist/{transforms-CLkv3e81.mjs → transforms-Cosz-Vq3.mjs} +4 -4
- package/dist/{tree-CB2IURsX.mjs → tree-BkXtw0c4.mjs} +3 -3
- package/dist/{unpublish-BkZldbkP.mjs → unpublish-BlGj7omM.mjs} +4 -4
- package/dist/{update-BghbOcv6.mjs → update-BHhEtxwC.mjs} +13 -13
- package/dist/update-C-ChEcI9.mjs +57 -0
- package/dist/{update-BHC3pwzR.mjs → update-C9K1QnOo.mjs} +8 -7
- package/dist/{update-B4atxTx0.mjs → update-CTWsiwme.mjs} +7 -7
- package/dist/{update-BacyVaLu.mjs → update-CXlhrcy8.mjs} +7 -7
- package/dist/update-Cbsgvopz.mjs +56 -0
- package/dist/{update-D7Ia9Qrt.mjs → update-CsYFWkVd.mjs} +12 -12
- package/dist/{update-DajyWtBN.mjs → update-CuKHukZ6.mjs} +7 -7
- package/dist/{update-CGWTX1Z0.mjs → update-CzrbMLZq.mjs} +7 -7
- package/dist/{update-CO9uCJxV.mjs → update-DDVuyquf.mjs} +9 -9
- package/dist/{update-B1dkPypu.mjs → update-DpIzJ8Ts.mjs} +10 -10
- package/dist/{update-iY9WZqy0.mjs → update-DrvAdi-O.mjs} +8 -8
- package/dist/{update-Cyxjg496.mjs → update-Tw0kARao.mjs} +7 -7
- package/dist/{update-D80GWpWl.mjs → update-ZJ5T-SBW.mjs} +9 -9
- package/dist/{update-dashcard-DLq7ihNO.mjs → update-dashcard-Dnfa8_aJ.mjs} +9 -9
- package/dist/{update-8bTrglfc.mjs → update-hoCyoR-u.mjs} +7 -7
- package/dist/{upgrade-CXoNQ4FH.mjs → upgrade-D0HiyTxw.mjs} +4 -4
- package/dist/upload-WT6SywFa.mjs +16 -0
- package/dist/{uuid-D6dao_q4.mjs → uuid-D7NcSTj8.mjs} +2 -2
- package/dist/{validate-Cqa14t7o.mjs → validate-BoY75_M3.mjs} +1 -1
- package/dist/{validate-query-D1N30wJ7.mjs → validate-query-Di0VKMF-.mjs} +2 -2
- package/dist/{values-DIBAgSyz.mjs → values-OBiEVCVH.mjs} +4 -4
- package/dist/{verify-DvhZWmS2.mjs → verify-VEB7TBQ_.mjs} +2 -2
- package/dist/{wait-CW1OawkI.mjs → wait-B9qNlcTe.mjs} +5 -5
- package/dist/{wait-flags-DvNU8ahZ.mjs → wait-flags-D0FEgH6k.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +6 -4
- package/skill-data/git-sync/SKILL.md +20 -5
- package/skill-data/notification/SKILL.md +157 -0
- package/dist/add-collection-C8ZTPlIE.mjs +0 -9
- package/dist/card-Ct-q_C4S.mjs +0 -26
- package/dist/collection-K82kJWdj.mjs +0 -23
- package/dist/dashboard-B1iRSUBI.mjs +0 -35
- package/dist/document-CVxhTnUD.mjs +0 -22
- package/dist/field-BTCw6voJ.mjs +0 -21
- package/dist/git-sync-Cjrx2meo.mjs +0 -31
- package/dist/is-dirty-DY5Zhsbk.mjs +0 -8
- package/dist/snippet-C4h-GMUf.mjs +0 -22
- package/dist/table-DHmaW3Ec.mjs +0 -21
- package/dist/timeline-B0R6-dm8.mjs +0 -24
- package/dist/transform-Cq2_muWO.mjs +0 -31
- package/dist/transform-job-BpebgMnq.mjs +0 -25
- package/dist/upload-D3eiApa0.mjs +0 -16
- /package/dist/{body-flags-CgHgJBRC.mjs → body-flags-Cbv-Ba6W.mjs} +0 -0
- /package/dist/{document-CL4ML5FN.mjs → document-C7IR6T8c.mjs} +0 -0
- /package/dist/{embedding-CKdw8q7p.mjs → embedding-B0x9CPkU.mjs} +0 -0
- /package/dist/{field-DsXTeqBy.mjs → field-RYBTW2KS.mjs} +0 -0
- /package/dist/{group-CILtQqCL.mjs → group-DfTvzGz-.mjs} +0 -0
- /package/dist/{measure-S9WszHre.mjs → measure-DH3ow2ko.mjs} +0 -0
- /package/dist/{paginate-CMqbqhMC.mjs → paginate-DuDXvUPr.mjs} +0 -0
- /package/dist/{parameter-BZ6y-Gfs.mjs → parameter-hCQ80jnc.mjs} +0 -0
- /package/dist/{render-CkuFkWlQ.mjs → render-rgZBe3rO.mjs} +0 -0
- /package/dist/{revision-message-flag-CHzX0cqV.mjs → revision-message-flag-B4BxzDXJ.mjs} +0 -0
- /package/dist/{segment-BPb1H6DW.mjs → segment-cwIOOF0v.mjs} +0 -0
- /package/dist/{setting-Cko6bE_w.mjs → setting-CDEoJYO0.mjs} +0 -0
- /package/dist/{snippet-DWiXNy4T.mjs → snippet-1xYckIwc.mjs} +0 -0
- /package/dist/{timeline-BCTRThc-.mjs → timeline-BNwnJ3g9.mjs} +0 -0
- /package/dist/{transform-BVHYzWpK.mjs → transform-BkSkCvpx.mjs} +0 -0
- /package/dist/{transform-tag--IBQ-8Ij.mjs → transform-tag-qTjNVfTW.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/transform/cancel.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./poll-
|
|
5
|
-
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./poll-rqLkEJVP.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-CiB1o1wG.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/git-sync/cancel-task.ts
|
|
8
8
|
var cancel_task_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EmbeddingParams } from "./embedding-
|
|
2
|
-
import { FieldBaseType, FieldSemanticType } from "./field-
|
|
3
|
-
import { Parameter, ParameterMapping } from "./parameter-
|
|
1
|
+
import { EmbeddingParams } from "./embedding-B0x9CPkU.mjs";
|
|
2
|
+
import { FieldBaseType, FieldSemanticType } from "./field-RYBTW2KS.mjs";
|
|
3
|
+
import { Parameter, ParameterMapping } from "./parameter-hCQ80jnc.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/domain/card.ts
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/card/index.ts
|
|
5
|
+
var card_default = defineCommandGroup({
|
|
6
|
+
name: "card",
|
|
7
|
+
description: "Manage Metabase cards (questions, models, metrics)",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "mbql",
|
|
10
|
+
purpose: "author the dataset_query"
|
|
11
|
+
}, {
|
|
12
|
+
skill: "visualization",
|
|
13
|
+
purpose: "choose display and visualization_settings"
|
|
14
|
+
}],
|
|
15
|
+
subCommands: {
|
|
16
|
+
list: () => import("./list-By1yYVGq.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-Bpw05IUm.mjs").then((mod) => mod.default),
|
|
18
|
+
query: () => import("./query-B9LlGOZI.mjs").then((mod) => mod.default),
|
|
19
|
+
alerts: () => import("./alerts-CRGMX4eB.mjs").then((mod) => mod.default),
|
|
20
|
+
create: () => import("./create-BnNRvoyz.mjs").then((mod) => mod.default),
|
|
21
|
+
update: () => import("./update-CsYFWkVd.mjs").then((mod) => mod.default),
|
|
22
|
+
archive: () => import("./archive-ExcEma7q.mjs").then((mod) => mod.default)
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { card_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./embedding-B0x9CPkU.mjs";
|
|
6
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
7
|
+
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-BSCXTX4H.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/dashboard/cards.ts
|
|
10
10
|
const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Capabilities, ConfigError, connectionFlags, flagConsumesValue, jsonLine, normalizeFlag, outputFlags, package_default, profileFlag, reportError, resolveCitty, toAliasArray } from "./capabilities-
|
|
2
|
+
import { Capabilities, ConfigError, connectionFlags, flagConsumesValue, jsonLine, normalizeFlag, outputFlags, package_default, profileFlag, reportError, resolveCitty, toAliasArray } from "./capabilities-1HTHeDa4.mjs";
|
|
3
3
|
import { getMetabaseAugment, setMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
4
4
|
import { defineCommand, renderUsage, runMain } from "citty";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
+
import tls from "node:tls";
|
|
6
7
|
|
|
7
8
|
//#region src/commands/global-flags.ts
|
|
8
9
|
const ARGUMENT_SEPARATOR = "--";
|
|
@@ -50,6 +51,17 @@ function hoistGlobalFlags(rawArgs) {
|
|
|
50
51
|
return [...rawArgs.slice(index), ...leading];
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/core/http/system-ca.ts
|
|
56
|
+
function trustSystemCa() {
|
|
57
|
+
const canReadSystemStore = typeof tls.getCACertificates === "function";
|
|
58
|
+
const canReplaceDefaults = typeof tls.setDefaultCACertificates === "function";
|
|
59
|
+
if (!canReadSystemStore || !canReplaceDefaults) return;
|
|
60
|
+
const systemCerts = tls.getCACertificates("system");
|
|
61
|
+
if (systemCerts.length === 0) return;
|
|
62
|
+
tls.setDefaultCACertificates([...tls.getCACertificates("default"), ...systemCerts]);
|
|
63
|
+
}
|
|
64
|
+
|
|
53
65
|
//#endregion
|
|
54
66
|
//#region src/main.ts
|
|
55
67
|
const main = defineCommand({
|
|
@@ -59,33 +71,35 @@ const main = defineCommand({
|
|
|
59
71
|
description: package_default.description
|
|
60
72
|
},
|
|
61
73
|
subCommands: {
|
|
62
|
-
auth: () => import("./auth-
|
|
63
|
-
db: () => import("./db-
|
|
64
|
-
table: () => import("./table-
|
|
65
|
-
field: () => import("./field-
|
|
66
|
-
upload: () => import("./upload-
|
|
67
|
-
card: () => import("./card-
|
|
68
|
-
dashboard: () => import("./dashboard-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
74
|
+
auth: () => import("./auth-B8Yb4ZaN.mjs").then((mod) => mod.default),
|
|
75
|
+
db: () => import("./db-BiLWl1J9.mjs").then((mod) => mod.default),
|
|
76
|
+
table: () => import("./table-BK56VDw8.mjs").then((mod) => mod.default),
|
|
77
|
+
field: () => import("./field-P7aJaet9.mjs").then((mod) => mod.default),
|
|
78
|
+
upload: () => import("./upload-WT6SywFa.mjs").then((mod) => mod.default),
|
|
79
|
+
card: () => import("./card-BT7ce7uO.mjs").then((mod) => mod.default),
|
|
80
|
+
dashboard: () => import("./dashboard-C__PiWrv.mjs").then((mod) => mod.default),
|
|
81
|
+
subscription: () => import("./subscription-BOOBR5Ir.mjs").then((mod) => mod.default),
|
|
82
|
+
alert: () => import("./alert-DGcECcDb.mjs").then((mod) => mod.default),
|
|
83
|
+
collection: () => import("./collection-ahFSJT-e.mjs").then((mod) => mod.default),
|
|
84
|
+
library: () => import("./library-BFZYsBcz.mjs").then((mod) => mod.default),
|
|
85
|
+
document: () => import("./document-C9ykHYOG.mjs").then((mod) => mod.default),
|
|
86
|
+
transform: () => import("./transform-ATK6rJBl.mjs").then((mod) => mod.default),
|
|
87
|
+
"transform-job": () => import("./transform-job-BezBE6Y8.mjs").then((mod) => mod.default),
|
|
88
|
+
"transform-tag": () => import("./transform-tag-GqbcG_6_.mjs").then((mod) => mod.default),
|
|
89
|
+
setting: () => import("./setting-CApPg0Xr.mjs").then((mod) => mod.default),
|
|
90
|
+
search: () => import("./search-msFNbxU6.mjs").then((mod) => mod.default),
|
|
91
|
+
"git-sync": () => import("./git-sync-BzievbUz.mjs").then((mod) => mod.default),
|
|
92
|
+
setup: () => import("./setup-CruHFQJz.mjs").then((mod) => mod.default),
|
|
93
|
+
snippet: () => import("./snippet-DdoeL-7N.mjs").then((mod) => mod.default),
|
|
94
|
+
segment: () => import("./segment-BIKVTq_n.mjs").then((mod) => mod.default),
|
|
95
|
+
measure: () => import("./measure-DNldT89z.mjs").then((mod) => mod.default),
|
|
96
|
+
timeline: () => import("./timeline-Dl5pm5tN.mjs").then((mod) => mod.default),
|
|
97
|
+
"timeline-event": () => import("./timeline-event-5JAeGVSI.mjs").then((mod) => mod.default),
|
|
98
|
+
eid: () => import("./eid-DcCAs-RP.mjs").then((mod) => mod.default),
|
|
99
|
+
query: () => import("./query-DpVWKW-y.mjs").then((mod) => mod.default),
|
|
100
|
+
uuid: () => import("./uuid-D7NcSTj8.mjs").then((mod) => mod.default),
|
|
101
|
+
upgrade: () => import("./upgrade-D0HiyTxw.mjs").then((mod) => mod.default),
|
|
102
|
+
skills: () => import("./skills-CxqkjkdQ.mjs").then((mod) => mod.default)
|
|
89
103
|
}
|
|
90
104
|
});
|
|
91
105
|
setMetabaseAugment(main, {
|
|
@@ -434,6 +448,7 @@ async function findSubCommand(subCommands, token) {
|
|
|
434
448
|
const HELP_FLAGS = new Set(["--help", "-h"]);
|
|
435
449
|
const JSON_HELP_FLAG = "--json";
|
|
436
450
|
async function run() {
|
|
451
|
+
trustSystemCa();
|
|
437
452
|
const rawArgs = hoistGlobalFlags(process.argv.slice(2));
|
|
438
453
|
const wantsJsonHelp = rawArgs.includes(JSON_HELP_FLAG);
|
|
439
454
|
const showUsageWithBreadcrumb = async (cmd, parent) => {
|
|
@@ -56,7 +56,8 @@ const Collection = z.object({
|
|
|
56
56
|
namespace: CollectionNamespace.nullable().optional(),
|
|
57
57
|
entity_id: z.string().nullable().optional(),
|
|
58
58
|
slug: z.string().optional(),
|
|
59
|
-
can_write: z.boolean().optional()
|
|
59
|
+
can_write: z.boolean().optional(),
|
|
60
|
+
is_remote_synced: z.boolean().nullable().optional()
|
|
60
61
|
}).loose();
|
|
61
62
|
const CollectionCompact = Collection.pick({
|
|
62
63
|
id: true,
|
|
@@ -67,7 +68,8 @@ const CollectionCompact = Collection.pick({
|
|
|
67
68
|
parent_id: true,
|
|
68
69
|
type: true,
|
|
69
70
|
authority_level: true,
|
|
70
|
-
is_personal: true
|
|
71
|
+
is_personal: true,
|
|
72
|
+
is_remote_synced: true
|
|
71
73
|
}).strip();
|
|
72
74
|
const collectionView = {
|
|
73
75
|
compactPick: CollectionCompact,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/collection/index.ts
|
|
5
|
+
var collection_default = defineCommandGroup({
|
|
6
|
+
name: "collection",
|
|
7
|
+
description: "Manage Metabase collections",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "core",
|
|
10
|
+
purpose: "collection ref forms and the transforms namespace"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-Dl81pkVs.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-DQ0pb4tT.mjs").then((mod) => mod.default),
|
|
15
|
+
items: () => import("./items-BXH0f1r6.mjs").then((mod) => mod.default),
|
|
16
|
+
tree: () => import("./tree-BkXtw0c4.mjs").then((mod) => mod.default),
|
|
17
|
+
create: () => import("./create-D57tRDrg.mjs").then((mod) => mod.default),
|
|
18
|
+
archive: () => import("./archive-D3DErepm.mjs").then((mod) => mod.default)
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { collection_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigError } from "./capabilities-
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
1
|
+
import { ConfigError } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { HttpError } from "./runtime-CPIHg_Zg.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/transform/collection-namespace.ts
|
|
5
5
|
const TRANSFORMS_NAMESPACE_HINT = "transforms can only be filed in a :transforms-namespace collection. Create one with `mb collection create --body '{\"name\":\"…\"}' --namespace transforms` and pass its id as collection_id, or omit collection_id to leave the transform uncollected.";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import "./cron-93wjhtrP.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-sJmW_En3.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/transform-job/create.ts
|
|
10
11
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import { Timeline, TimelineCreateInput, timelineView } from "./timeline-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import { Timeline, TimelineCreateInput, timelineView } from "./timeline-BNwnJ3g9.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/timeline/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import "./validate-
|
|
12
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import "./embedding-B0x9CPkU.mjs";
|
|
8
|
+
import "./field-RYBTW2KS.mjs";
|
|
9
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
10
|
+
import { Card, CardCreateInput, cardView } from "./card-BFRRyTGs.mjs";
|
|
11
|
+
import "./validate-BoY75_M3.mjs";
|
|
12
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/card/create.ts
|
|
15
15
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-qTjNVfTW.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform-tag/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import "./validate-
|
|
8
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
-
import { Measure, MeasureCreateInput, measureView } from "./measure-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import "./validate-BoY75_M3.mjs";
|
|
8
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
9
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-DH3ow2ko.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/measure/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
8
|
+
import { Pulse, PulseCreateInput, pulseView } from "./pulse-C8q469KD.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/commands/subscription/create.ts
|
|
11
|
+
var create_default = defineMetabaseCommand({
|
|
12
|
+
meta: {
|
|
13
|
+
name: "create",
|
|
14
|
+
description: "Create a dashboard subscription from JSON"
|
|
15
|
+
},
|
|
16
|
+
details: [
|
|
17
|
+
"The JSON body needs `name`, `dashboard_id`, `cards`, and `channels`.",
|
|
18
|
+
"Each card is `{id, dashboard_card_id, include_csv, include_xls}` — get both ids from `mb dashboard cards <dashboard-id>`.",
|
|
19
|
+
"Each channel is `{channel_type: email|slack|http, schedule_type: hourly|daily|weekly|monthly}` plus the fields its schedule needs:",
|
|
20
|
+
"`daily` needs `schedule_hour` (0-23); `weekly` also needs `schedule_day` (mon..sun); `monthly` also needs `schedule_frame` (first|mid|last).",
|
|
21
|
+
"Email recipients are `[{email: \"a@b.com\"} | {id: <user-id>}]`; Slack targets a channel via `details: {channel: \"#general\"}`."
|
|
22
|
+
].join(" "),
|
|
23
|
+
capabilities: { minVersion: 58 },
|
|
24
|
+
args: {
|
|
25
|
+
...outputFlags,
|
|
26
|
+
...profileFlag,
|
|
27
|
+
...connectionFlags,
|
|
28
|
+
...bodyInputFlags
|
|
29
|
+
},
|
|
30
|
+
inputSchema: PulseCreateInput,
|
|
31
|
+
outputSchema: Pulse,
|
|
32
|
+
examples: [
|
|
33
|
+
"mb subscription create --body '{\"name\":\"Weekly orders\",\"dashboard_id\":10,\"cards\":[{\"id\":94,\"dashboard_card_id\":87,\"include_csv\":false,\"include_xls\":false}],\"channels\":[{\"channel_type\":\"email\",\"schedule_type\":\"daily\",\"schedule_hour\":8,\"recipients\":[{\"email\":\"team@example.com\"}]}]}'",
|
|
34
|
+
"cat subscription.json | mb subscription create",
|
|
35
|
+
"mb subscription create --file subscription.json"
|
|
36
|
+
],
|
|
37
|
+
async run({ args, ctx, getClient }) {
|
|
38
|
+
const body = await readBody({
|
|
39
|
+
flag: args.body,
|
|
40
|
+
file: args.file
|
|
41
|
+
}, PulseCreateInput);
|
|
42
|
+
const client = await getClient();
|
|
43
|
+
const created = await client.requestParsed(Pulse, "/api/pulse", {
|
|
44
|
+
method: "POST",
|
|
45
|
+
body
|
|
46
|
+
});
|
|
47
|
+
renderSummary(created, pulseView, `Created subscription ${created.id} on dashboard ${created.dashboard_id}.`, ctx);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { create_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import "./validate-
|
|
8
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
-
import { Segment, SegmentCreateInput, segmentView } from "./segment-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import "./validate-BoY75_M3.mjs";
|
|
8
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
9
|
+
import { Segment, SegmentCreateInput, segmentView } from "./segment-cwIOOF0v.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/segment/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import "./validate-
|
|
12
|
-
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-
|
|
13
|
-
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import "./embedding-B0x9CPkU.mjs";
|
|
8
|
+
import "./field-RYBTW2KS.mjs";
|
|
9
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
10
|
+
import "./card-BFRRyTGs.mjs";
|
|
11
|
+
import "./validate-BoY75_M3.mjs";
|
|
12
|
+
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-BSCXTX4H.mjs";
|
|
13
|
+
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-DJOBTWVq.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/dashboard/create.ts
|
|
16
16
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import { parseEnumFlag } from "./parse-enum-
|
|
8
|
-
import { Collection, CollectionCreateInput, CollectionNamespace, collectionView } from "./collection-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import { parseEnumFlag } from "./parse-enum-D1zTYr_i.mjs";
|
|
8
|
+
import { Collection, CollectionCreateInput, CollectionNamespace, collectionView } from "./collection-BrrjbPLN.mjs";
|
|
9
|
+
import { COLLECTIONS_PATH } from "./listing-1G8iFfZe.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/collection/create.ts
|
|
11
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -40,7 +41,7 @@ var create_default = defineMetabaseCommand({
|
|
|
40
41
|
}, CollectionCreateInput);
|
|
41
42
|
if (typeof args.namespace === "string" && args.namespace !== "") body.namespace = parseEnumFlag(args.namespace, CollectionNamespace, "namespace");
|
|
42
43
|
const client = await getClient();
|
|
43
|
-
const created = await client.requestParsed(Collection,
|
|
44
|
+
const created = await client.requestParsed(Collection, COLLECTIONS_PATH, {
|
|
44
45
|
method: "POST",
|
|
45
46
|
body
|
|
46
47
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-1xYckIwc.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/snippet/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./collection-
|
|
5
|
-
import
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./collection-BrrjbPLN.mjs";
|
|
5
|
+
import "./listing-1G8iFfZe.mjs";
|
|
6
|
+
import { Library, createLibrary, libraryView } from "./resolve-BiL5scF0.mjs";
|
|
6
7
|
|
|
7
8
|
//#region src/commands/library/create.ts
|
|
8
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import "./cron-93wjhtrP.mjs";
|
|
4
|
+
import { Notification, NotificationCreateInput, notificationView } from "./notification-BR5wehqg.mjs";
|
|
5
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
6
|
+
import { describeAlert } from "./summary-D1fKnwE3.mjs";
|
|
7
|
+
import "./input-BpXlmJ5J.mjs";
|
|
8
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
10
|
+
|
|
11
|
+
//#region src/commands/alert/create.ts
|
|
12
|
+
var create_default = defineMetabaseCommand({
|
|
13
|
+
meta: {
|
|
14
|
+
name: "create",
|
|
15
|
+
description: "Create a question alert from JSON"
|
|
16
|
+
},
|
|
17
|
+
details: [
|
|
18
|
+
"The JSON body needs `payload`, `subscriptions`, and `handlers`.",
|
|
19
|
+
"`payload` is `{card_id, send_condition, send_once}` — `send_condition` is has_result (the card returns any row), goal_above, or goal_below (both need a goal set on the card's visualization).",
|
|
20
|
+
"`subscriptions` is a list of `{cron_schedule}` in Quartz 7-field form (`0 0 8 * * ? *` = daily at 08:00 in the instance's report timezone).",
|
|
21
|
+
"`handlers` is a list of `{channel_type: channel/email|channel/slack|channel/http, recipients}`;",
|
|
22
|
+
"each recipient is `{type: \"notification-recipient/user\", user_id}` or `{type: \"notification-recipient/raw-value\", details: {value: \"a@b.com\"}}`."
|
|
23
|
+
].join(" "),
|
|
24
|
+
capabilities: { minVersion: 58 },
|
|
25
|
+
args: {
|
|
26
|
+
...outputFlags,
|
|
27
|
+
...profileFlag,
|
|
28
|
+
...connectionFlags,
|
|
29
|
+
...bodyInputFlags
|
|
30
|
+
},
|
|
31
|
+
inputSchema: NotificationCreateInput,
|
|
32
|
+
outputSchema: Notification,
|
|
33
|
+
examples: [
|
|
34
|
+
"mb alert create --body '{\"payload\":{\"card_id\":94,\"send_condition\":\"has_result\"},\"subscriptions\":[{\"cron_schedule\":\"0 0 8 * * ? *\"}],\"handlers\":[{\"channel_type\":\"channel/email\",\"recipients\":[{\"type\":\"notification-recipient/raw-value\",\"details\":{\"value\":\"team@example.com\"}}]}]}'",
|
|
35
|
+
"cat alert.json | mb alert create",
|
|
36
|
+
"mb alert create --file alert.json"
|
|
37
|
+
],
|
|
38
|
+
async run({ args, ctx, getClient }) {
|
|
39
|
+
const body = await readBody({
|
|
40
|
+
flag: args.body,
|
|
41
|
+
file: args.file
|
|
42
|
+
}, NotificationCreateInput);
|
|
43
|
+
const client = await getClient();
|
|
44
|
+
const created = await client.requestParsed(Notification, "/api/notification", {
|
|
45
|
+
method: "POST",
|
|
46
|
+
body
|
|
47
|
+
});
|
|
48
|
+
renderSummary(created, notificationView, describeAlert("Created", created), ctx);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
export { create_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./poll-
|
|
5
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./poll-rqLkEJVP.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-CiB1o1wG.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/create-branch.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
6
|
-
import { bodyInputFlags } from "./body-flags-
|
|
7
|
-
import { Document, DocumentCreateInput, documentView } from "./document-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
7
|
+
import { Document, DocumentCreateInput, documentView } from "./document-C7IR6T8c.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/document/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|