@metabase/cli 0.5.2 → 0.5.4
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 +1 -1
- package/dist/{add-collection-C0BQHjJd.mjs → add-collection-D2x34KVO.mjs} +3 -3
- package/dist/{alert-mXHOt00T.mjs → alert-B-w0c61D.mjs} +7 -7
- package/dist/{alerts-CyB1Z7AU.mjs → alerts-nnrpqD-U.mjs} +6 -6
- package/dist/api-key-9jVV67hF.mjs +38 -0
- package/dist/api-key-CTyXuYui.mjs +13 -0
- package/dist/api-key-DbsqHlN6.mjs +31 -0
- package/dist/{append-DeHhUAeY.mjs → append-BPrVW4RB.mjs} +4 -4
- package/dist/{archive-DRMXvkiI.mjs → archive-BYo35OGC.mjs} +5 -5
- package/dist/{archive-Bi-Sfq5T.mjs → archive-BZVRJYTT.mjs} +5 -5
- package/dist/{archive-CCKxZEuq.mjs → archive-Bw_cvk_4.mjs} +3 -3
- package/dist/{archive-qy0CFo1s2.mjs → archive-CJFUFozc.mjs} +5 -5
- package/dist/{archive-CfNLlebd.mjs → archive-CTZs6Hl6.mjs} +5 -5
- package/dist/{archive-CDSAXKKB.mjs → archive-Ccf6Qqrf.mjs} +3 -3
- package/dist/{archive-DfDqPgtk.mjs → archive-Cwetg5kK.mjs} +5 -5
- package/dist/{archive-CjVd1fJ5.mjs → archive-DBQnauVo.mjs} +5 -5
- package/dist/{archive-CpvpGZlz.mjs → archive-F5hoWW7f.mjs} +5 -5
- package/dist/{archive-DpgtAdEa.mjs → archive-OZQaaQkK.mjs} +5 -5
- package/dist/{archive-B1MA5MZp.mjs → archive-p7gGwh0n.mjs} +5 -5
- package/dist/{archive-HCVTRXI2.mjs → archive-tmrsG41w.mjs} +3 -3
- package/dist/{auth-_cdypXeX.mjs → auth-eogOlU4X.mjs} +5 -5
- package/dist/{branch-flag-CPTQ4wXp.mjs → branch-flag-BvIdNB5z.mjs} +1 -1
- package/dist/{branches-C7mNYAky.mjs → branches-CERgKqFq.mjs} +3 -3
- package/dist/{breaking-BindR3ZW.mjs → breaking-B8f_vl0i.mjs} +6 -6
- package/dist/{broken-SoXfkx7d.mjs → broken-mrkOdV4j.mjs} +8 -8
- package/dist/{bulk-discard-values-D_d5_1w5.mjs → bulk-discard-values-BQ3z6nJb.mjs} +5 -5
- package/dist/{bulk-edit-Cce05vb_.mjs → bulk-edit-CJxoxDGQ.mjs} +7 -7
- package/dist/{bulk-rescan-values-DIQN4VT_.mjs → bulk-rescan-values-DflzyxEj.mjs} +5 -5
- package/dist/{bulk-sync-schema-DLWf5dCl.mjs → bulk-sync-schema-CBIs4yHs.mjs} +5 -5
- package/dist/{cancel-rnd6UI-6.mjs → cancel-CyTRWSOr.mjs} +3 -3
- package/dist/{cancel-task-acq1GT6Z.mjs → cancel-task-BuZsQuLp.mjs} +2 -2
- package/dist/{card-QR3zEu6E.mjs → card-BJRZ5D5Q.mjs} +2 -2
- package/dist/card-DA1W3Axw.mjs +25 -0
- package/dist/{card-3NmUiU5F.mjs → card-VipF12MJ.mjs} +1 -1
- package/dist/{cards-DmzPtx81.mjs → cards-BEeFNiCt.mjs} +6 -6
- package/dist/cli.mjs +142 -292
- package/dist/{client-D-Aw6JLk.mjs → client-DvWllzKd.mjs} +401 -189
- package/dist/{collection-D5vt2IJ_.mjs → collection-Bf3lv-zo.mjs} +1 -1
- package/dist/collection-C98jgufi.mjs +21 -0
- package/dist/{collection-DNmFKALA.mjs → collection-Cz2qLX2m.mjs} +1 -1
- package/dist/{collection-namespace-Dl8_7xII.mjs → collection-namespace-C0JcSEwN.mjs} +2 -1
- package/dist/{content-translation-DxT1OMnP.mjs → content-translation-1coWME1P.mjs} +3 -3
- package/dist/{copy-BTdTiDQo.mjs → copy-DVe4rcLK.mjs} +6 -6
- package/dist/{copy-flags-CTM91pxH.mjs → copy-flags-DZ5Cy-Gk.mjs} +2 -2
- package/dist/{copy-CyFf3e2Y.mjs → copy-hE6SaHfb.mjs} +6 -6
- package/dist/{create-CuJJd7Rh.mjs → create-B3P62NaN.mjs} +4 -5
- package/dist/{create-BH6zpwKD.mjs → create-B3kz_fHg.mjs} +4 -5
- package/dist/{create-Dn8V5siS.mjs → create-BPRuU7Mv.mjs} +7 -8
- package/dist/{create-DeCPAYJi.mjs → create-BjH0i2BC.mjs} +9 -10
- package/dist/{create-Ch-NbeMr.mjs → create-Btwnm6D2.mjs} +9 -10
- package/dist/{create-Ce5YVusp.mjs → create-CCb2_Kcc.mjs} +6 -7
- package/dist/{create-DeiBnRRz.mjs → create-D271V9Cf.mjs} +9 -9
- package/dist/create-D6Xm2b2D.mjs +37 -0
- package/dist/{create-roJbQOmm.mjs → create-DCoo3sI2.mjs} +4 -4
- package/dist/{create-B6dABrs7.mjs → create-DEIIUohY2.mjs} +10 -11
- package/dist/{create-qtTB8rIE.mjs → create-DJg0Ohj5.mjs} +9 -10
- package/dist/{create-C3rabvE_.mjs → create-DR5tpMUA.mjs} +4 -5
- package/dist/{create-BwIOlpLc.mjs → create-DR8g_rEL.mjs} +6 -7
- package/dist/{create-GU8_GNbN.mjs → create-DXivfl69.mjs} +4 -5
- package/dist/create-DdfFgF-w.mjs +33 -0
- package/dist/{create-DsCydgm22.mjs → create-DkFCjBp3.mjs} +6 -7
- package/dist/{create-B3QZpifA.mjs → create-Dz4c8E33.mjs} +9 -10
- package/dist/{create-Bg3WTMMU.mjs → create-LpdQKxUt.mjs} +7 -7
- package/dist/{create-D6NLpIzV.mjs → create-XCzUuT42.mjs} +4 -5
- package/dist/{create-DiG165B2.mjs → create-XVjr8IDS.mjs} +6 -7
- package/dist/{create-branch-C4Ql9G2g.mjs → create-branch-D_nbKxDS.mjs} +3 -2
- package/dist/{csv-DmuyyLdz.mjs → csv-LP7sE-CS.mjs} +4 -4
- package/dist/{current-task-C2PPBVVv.mjs → current-task-DhgwtGN3.mjs} +3 -3
- package/dist/{dashboard-D5E3fMKh.mjs → dashboard-Bx2sYijR.mjs} +1 -1
- package/dist/dashboard-CR97_zXn.mjs +35 -0
- package/dist/{dashboard-Chjy5GKR.mjs → dashboard-Cwsf-e9T.mjs} +23 -6
- package/dist/data-action-C4jE-RLb.mjs +24 -0
- package/dist/{data-action-DZxVB_hD.mjs → data-action-CuvI17XF.mjs} +8 -2
- package/dist/{data-action-R9qxJDPA.mjs → data-action-DLj9cgpu.mjs} +1 -1
- package/dist/data-app-BUW-HlUo.mjs +52 -0
- package/dist/data-app-BlBvvRzC.mjs +41 -0
- package/dist/data-app-Blz61mG5.mjs +29 -0
- package/dist/data-app-project-DjDDWgUF.mjs +58 -0
- package/dist/{database-CxykzTAA.mjs → database-C5ucihp3.mjs} +2 -2
- package/dist/{database-D8XzgJEz.mjs → database-u_spHEa0.mjs} +1 -1
- package/dist/{dataset-DIQLAp2P.mjs → dataset-LJxNN6p5.mjs} +3 -3
- package/dist/{db-BgKKN1-4.mjs → db-D8mPRqZc.mjs} +8 -8
- package/dist/{delete-DiZg2wit.mjs → delete-8k7oYDFr.mjs} +4 -4
- package/dist/{delete-_XC6R-Jn.mjs → delete-B1SbEVIc.mjs} +4 -4
- package/dist/{delete-CS6hsBnd.mjs → delete-CaaPrNOf.mjs} +4 -4
- package/dist/{delete-5ZOvFr-7.mjs → delete-CqyBkMCd.mjs} +4 -4
- package/dist/{delete-DeqGTuwO.mjs → delete-CuyGTe0i.mjs} +4 -4
- package/dist/delete-DC-DEYSq.mjs +44 -0
- package/dist/{delete-B3aylPHD.mjs → delete-DWTqIlbr.mjs} +4 -4
- package/dist/delete-DaqzPLcG.mjs +40 -0
- package/dist/{delete-DtIbkF42.mjs → delete-DuaJ8PUI.mjs} +4 -4
- package/dist/{delete-CH32Ew4m.mjs → delete-ZjLpkwgx.mjs} +4 -4
- package/dist/delete-runtime-DOOy3gzH.mjs +73 -0
- package/dist/{delete-table-BEuMlqw1.mjs → delete-table-CnGv1gx9.mjs} +4 -4
- package/dist/{dependencies-DD48u9i3.mjs → dependencies-D6SNdLW8.mjs} +6 -6
- package/dist/dependency-Bbg9x1V9.mjs +15 -0
- package/dist/{dependency-CaC6XuTY.mjs → dependency-C1DExO6k.mjs} +8 -5
- package/dist/{dependency-Dxvb2Znu.mjs → dependency-DcM96XJ-.mjs} +4 -3
- package/dist/{dependents-ByfHs8pO.mjs → dependents-BizQb14Q.mjs} +9 -9
- package/dist/{dirty-DsrGfLit.mjs → dirty-BHwdHOEj.mjs} +3 -3
- package/dist/{discard-values-BfpwwC62.mjs → discard-values-BWlh2ce8.mjs} +5 -5
- package/dist/document-B6254tue.mjs +20 -0
- package/dist/{document-UMG6me2P.mjs → document-BHOQq2T_.mjs} +2 -2
- package/dist/{document-DVIu3Vj4.mjs → document-lS1XZEF3.mjs} +1 -1
- package/dist/{download-kpgGtfpw.mjs → download-D2wEAgi_.mjs} +2 -2
- package/dist/{eid-Tp-ACZ4O.mjs → eid-KtWIPUCC.mjs} +5 -5
- package/dist/{entity-DjDkaMkB.mjs → entity-DICgy4Bl.mjs} +2 -2
- package/dist/{entry-flags-nhBrUS6p.mjs → entry-flags-DLS6r8Vf.mjs} +5 -6
- package/dist/{events-Dm9-ofXu.mjs → events-B8yMqrrD.mjs} +4 -4
- package/dist/{execute-BL0dAlrp.mjs → execute-Bebvab7D.mjs} +7 -8
- package/dist/{export-CIW-dHft.mjs → export-BNj3RvAl.mjs} +6 -5
- package/dist/{export-flags-CpukgETM.mjs → export-flags-iXfEILf7.mjs} +3 -2
- package/dist/{export-preflight-BMlz3Hp9.mjs → export-preflight-F3OapAD5.mjs} +3 -3
- package/dist/{field-DoWQUl7V.mjs → field-C2qOViFZ.mjs} +8 -2
- package/dist/{field-BVz4AS3f.mjs → field-CT4r6b92.mjs} +1 -1
- package/dist/field-DQAcCjXr.mjs +21 -0
- package/dist/{fields-CcerFaiu.mjs → fields-BkAS_wIA.mjs} +6 -6
- package/dist/{filter-flags-DhE4olyf.mjs → filter-flags-ezqqsOQL.mjs} +4 -4
- package/dist/{fks-CYfBesHV.mjs → fks--SaqvPw1.mjs} +6 -6
- package/dist/{get-DKbGKa6F.mjs → get-B1S1kW2N.mjs} +5 -5
- package/dist/{get-Be7yjY9v.mjs → get-B1uiZyyi.mjs} +5 -5
- package/dist/{get-BaiyMem3.mjs → get-B2nBYYCw.mjs} +4 -4
- package/dist/{get-CmxYFUuR.mjs → get-BSKpQJVB.mjs} +5 -5
- package/dist/{get-BFloqjrN.mjs → get-BjgB5l7X.mjs} +5 -5
- package/dist/{get-RCDF-hEq.mjs → get-Boql3_0n.mjs} +5 -5
- package/dist/{get-CEJE9Rmp.mjs → get-BseHija1.mjs} +5 -5
- package/dist/{get-eNRULmE5.mjs → get-C9VumVZ3.mjs} +6 -5
- package/dist/{get--E7UvR-v.mjs → get-CGPxAoow.mjs} +3 -3
- package/dist/{get-HzDQViDP2.mjs → get-CM9IOr82.mjs} +3 -3
- package/dist/{get-CRfrkxqc.mjs → get-CTTKQDr7.mjs} +5 -5
- package/dist/{get-DHSuVxrH.mjs → get-CU1zKfBS.mjs} +5 -5
- package/dist/{get-Dp45rXRS.mjs → get-CWDz6eV2.mjs} +3 -3
- package/dist/{get-p2sZvp7v.mjs → get-C_hatP_z.mjs} +3 -3
- package/dist/get-Cdcj1c9U.mjs +28 -0
- package/dist/{get-BLnQ2aut.mjs → get-CiLYhFjU.mjs} +5 -5
- package/dist/{get-LRTRu85E.mjs → get-De6qpuzO.mjs} +5 -5
- package/dist/{get-CZgAr8rM.mjs → get-VpGfaL7c.mjs} +5 -5
- package/dist/{get-BvEHWLGL.mjs → get-f2km9wsq.mjs} +3 -3
- package/dist/{get-Cj3-w_Nu.mjs → get-gGSl7Se4.mjs} +5 -5
- package/dist/{get-B0RQPTV-2.mjs → get-iOs1ci6x.mjs} +5 -5
- package/dist/{get-run-C3AHKn3-.mjs → get-run-CHup8cMl.mjs} +5 -5
- package/dist/{get-DRhcS76J.mjs → get-uHs9Ve-4.mjs} +5 -5
- package/dist/git-sync-Czena0TW.mjs +29 -0
- package/dist/glossary-BVxRpD7o.mjs +14 -0
- package/dist/{glossary-BkGmCI4X.mjs → glossary-CQRW3Z4d.mjs} +1 -1
- package/dist/{glossary-QN-hHfOT.mjs → glossary-iPIWrEbP.mjs} +1 -1
- package/dist/{graph-BGOYocJc.mjs → graph-B7SlzpkC.mjs} +6 -6
- package/dist/{group-81zoQcEP.mjs → group--6adAsqG.mjs} +2 -2
- package/dist/{has-remote-changes-DxsRvZsw.mjs → has-remote-changes-DZq7q2Wk.mjs} +2 -2
- package/dist/{import-izn2_OsW.mjs → import-DKZF0kMU.mjs} +6 -5
- package/dist/input-gate-registry-Dh8QjKgW.mjs +14 -0
- package/dist/{is-dirty-DHYYRl6Y.mjs → is-dirty-haRLODo1.mjs} +2 -2
- package/dist/{items-mIoZBqUc.mjs → items-BGWE5hLl.mjs} +7 -6
- package/dist/{key-BYEv4Wgq.mjs → key-DLrpCgdZ.mjs} +1 -1
- package/dist/{library-wUiD2jbw.mjs → library-BprxuqZl.mjs} +1 -1
- package/dist/{library-DKIqzyUk.mjs → library-C4g9pdiS.mjs} +8 -3
- package/dist/{library-5I0TlXmf.mjs → library-e3aiJ1Yb.mjs} +5 -5
- package/dist/{list-BKhJfFyB.mjs → list-B9yhUzCc.mjs} +5 -5
- package/dist/{list-CpxEOoqw.mjs → list-BNel4hYs.mjs} +6 -6
- package/dist/{list-D8jiz8YP.mjs → list-Bbc8VYDi.mjs} +3 -3
- package/dist/{list-CT7AOXTS.mjs → list-BiIZdUoN.mjs} +5 -5
- package/dist/list-C-AnwSRP.mjs +33 -0
- package/dist/list-CNiCM1NL.mjs +29 -0
- package/dist/{list-DV4wojtv.mjs → list-COPGHkWL.mjs} +5 -5
- package/dist/{list-CTlIVHeG.mjs → list-CsXdnNyp.mjs} +5 -5
- package/dist/{list-DVnPzc5m.mjs → list-D0ASRA_6.mjs} +6 -6
- package/dist/{list-B6TYzXyW.mjs → list-DAa4EWlv.mjs} +5 -5
- package/dist/{list-CmOTwt_z.mjs → list-DDt1iLXj.mjs} +4 -4
- package/dist/{list-C6roDyBd.mjs → list-DFuydMdV.mjs} +6 -6
- package/dist/{list-C1dEh2yq.mjs → list-DFxfpa4W.mjs} +6 -6
- package/dist/{list-OWPg67JC.mjs → list-DJyIkrY1.mjs} +5 -5
- package/dist/{list-CuEPFHrk.mjs → list-DUCxqhtn.mjs} +5 -5
- package/dist/{list-B8FPpgct.mjs → list-D_8GeDG-.mjs} +3 -3
- package/dist/{list-NeImhwLD.mjs → list-DcXqKZyg.mjs} +5 -5
- package/dist/{list-C3CXHKTW.mjs → list-DednUvr3.mjs} +3 -3
- package/dist/{list-O_nmgwSj.mjs → list-Dvf1iB8r.mjs} +3 -3
- package/dist/{list-jT5ndEGr.mjs → list-HI7Mpoy-.mjs} +5 -5
- package/dist/{list-BEBAq1xc.mjs → list-OUSeeuXb.mjs} +5 -5
- package/dist/{list-BxIulkp3.mjs → list-P7FnSsbZ.mjs} +6 -6
- package/dist/{list-C-f-G-cC.mjs → list-gcDxZ7Th.mjs} +5 -5
- package/dist/{login-DOW1mr40.mjs → login-APHXId1p.mjs} +6 -5
- package/dist/{logout-BQ8wywf7.mjs → logout-V0pxj6AM.mjs} +3 -2
- package/dist/{measure-CtfjqJFP.mjs → measure-BMWrX1ca.mjs} +3 -1
- package/dist/{measure-Bz-bGn-Z.mjs → measure-DnGWkKyx.mjs} +6 -6
- package/dist/{measure-4P0bOlZ3.mjs → measure-DqZG65of.mjs} +1 -1
- package/dist/{notification-DaA4bBHW.mjs → notification-B5yMuPmo.mjs} +6 -1
- package/dist/{notification-W2SVssyY.mjs → notification-BEJaEZS2.mjs} +2 -2
- package/dist/{parameter-DvRQMKd2.mjs → parameter-Bucz3cLJ.mjs} +1 -1
- package/dist/{parameter-values-B7rr6fcy.mjs → parameter-values-DfZSEK3O.mjs} +6 -5
- package/dist/{parse-enum-DAcTzG1q.mjs → parse-enum-CEXPuN9H.mjs} +1 -1
- package/dist/{parse-id-5BZGQ9Vd.mjs → parse-id-EXZan40V.mjs} +1 -1
- package/dist/{parse-ref-ByXc-pls.mjs → parse-ref-D28NvwpR.mjs} +1 -1
- package/dist/{parse-text-FgX60vIg.mjs → parse-text-C4LYzIFa.mjs} +1 -1
- package/dist/{path-CHQguAPa.mjs → path-Bni-pnKS.mjs} +4 -4
- package/dist/{poll-CgtcJopL.mjs → poll-vxN__4cz.mjs} +2 -2
- package/dist/predicates-0C0TsWcJ.mjs +219 -0
- package/dist/{preflight-ChTKhB8Y.mjs → preflight-4iy2qzsh.mjs} +3 -2
- package/dist/{process-aqXm5QgC.mjs → process-BQC3mK2k.mjs} +1 -1
- package/dist/{publish-CaoFOucS.mjs → publish-DkYn86ak.mjs} +5 -4
- package/dist/{pulse-CC81N2_0.mjs → pulse-B2AmIWsO.mjs} +11 -4
- package/dist/{pulse-JPrq6NFP.mjs → pulse-CPSpum5U.mjs} +2 -2
- package/dist/{query-0u1WR1bV.mjs → query-CZbI4Rlv.mjs} +17 -29
- package/dist/{query-CzDBwAZD.mjs → query-gHeYfWj_.mjs} +7 -6
- package/dist/{remapping-CodmT28F.mjs → remapping-hcWkFQsx.mjs} +5 -5
- package/dist/{remove-collection-DfUsf6Dd.mjs → remove-collection-Qne5ww6M.mjs} +3 -3
- package/dist/{render-DP6UoZNT.mjs → render-d1-sCPn_.mjs} +3 -2
- package/dist/{replace-qWiUOgmn.mjs → replace-DoU0IFGd.mjs} +4 -4
- package/dist/{requirement-check-sfmyH2PH.mjs → requirement-check-BoVSK1uK.mjs} +2 -2
- package/dist/{rescan-values-BuDmeda3.mjs → rescan-values-COzM86P5.mjs} +5 -5
- package/dist/{rescan-values-BcrhdSj_.mjs → rescan-values-s82n_You.mjs} +5 -5
- package/dist/{run-BG_5lR0x.mjs → run-Bwj4Uuxk.mjs} +4 -4
- package/dist/{run-BBRnFayr.mjs → run-JYNbEO_V.mjs} +6 -5
- package/dist/{run-DXXD-CnS.mjs → run-Q7fHux1F.mjs} +5 -4
- package/dist/{runs-CovgMSwy.mjs → runs-GQD6FO2k.mjs} +6 -6
- package/dist/{runtime-Cmes70jO.mjs → runtime-iIsqiOwO.mjs} +51 -9
- package/dist/scaffold-CJo9l-2p.mjs +50 -0
- package/dist/schema-2JhmK8FM.mjs +283 -0
- package/dist/{schema-tables-CjKl8jr5.mjs → schema-tables-CarGLayY.mjs} +6 -6
- package/dist/{schemas-CAGvBAD_.mjs → schemas-oSjtuQ4G.mjs} +4 -4
- package/dist/{search-DFU6FHRd.mjs → search-Ca0sIr28.mjs} +7 -6
- package/dist/{search-OpYS2Ub4.mjs → search-CvGEL2h-.mjs} +6 -5
- package/dist/{segment-D-SKpFzF.mjs → segment-BJCEJwNY.mjs} +6 -6
- package/dist/{segment-C_gl5ag6.mjs → segment-CWVASaM1.mjs} +1 -1
- package/dist/{segment-OsrbUDzw.mjs → segment-Cf-DrdjE.mjs} +3 -1
- package/dist/{send-DNu83_3E.mjs → send-B4nZI6CU.mjs} +3 -3
- package/dist/{set-CGYZcLVo.mjs → set-BjMZCdN8.mjs} +5 -6
- package/dist/{set-active-32IaLx1O.mjs → set-active-CWDdv3kN.mjs} +4 -4
- package/dist/set-bundle-C2uk4jdt.mjs +40 -0
- package/dist/{set-data-actions-DRhgAfhE.mjs → set-data-actions-lWl05ekf.mjs} +6 -6
- package/dist/set-enabled-CPhw1AX4.mjs +41 -0
- package/dist/{set-sensitivity-D_i3XEe8.mjs → set-sensitivity-B7WI5BJC.mjs} +6 -6
- package/dist/{setting-BBn9Lv9J.mjs → setting-BvPpFjJT.mjs} +4 -4
- package/dist/{setup-CO7QV-ao.mjs → setup-BnczkG96.mjs} +1 -1
- package/dist/{setup-8d7Uplhy.mjs → setup-DPRa8Uxm.mjs} +5 -6
- package/dist/{signal-D8MH3LMN.mjs → signal-BNUlQjpc.mjs} +1 -1
- package/dist/{skill-list-D2FhhYS3.mjs → skill-list-BoJITnw8.mjs} +1 -1
- package/dist/{skills-BeIDC-_H.mjs → skills-BCivFuuZ.mjs} +3 -3
- package/dist/{skills-BZGd_9d3.mjs → skills-BY3MCR8i.mjs} +3 -2
- package/dist/slug-COdwq63O.mjs +15 -0
- package/dist/snippet-BcN1UwoS.mjs +19 -0
- package/dist/{stash-Dyc1xZ8u.mjs → stash-leoW1fby.mjs} +5 -4
- package/dist/{status-CQZwl1PX.mjs → status-AA4APlwZ.mjs} +3 -3
- package/dist/{status-lCN8unWe.mjs → status-BezD_K-g.mjs} +4 -4
- package/dist/{subscription-CEFxmtGH.mjs → subscription-BDukZFlC.mjs} +6 -6
- package/dist/{subscriptions-AU14uznL.mjs → subscriptions-CU4E_p7B.mjs} +6 -6
- package/dist/{summary-Do9IBOQM.mjs → summary-BFspP71W.mjs} +5 -5
- package/dist/{sync-schema-_gw9RQyF.mjs → sync-schema-BhRhsm8Y.mjs} +6 -6
- package/dist/{sync-schema-B3nyoKZl.mjs → sync-schema-BtjC-PNY.mjs} +5 -5
- package/dist/{sync-task-DNKG9Bk4.mjs → sync-task-Gf86CU9l.mjs} +1 -1
- package/dist/{table-BDsqRU7a.mjs → table-BNA9Or05.mjs} +3 -3
- package/dist/table-Dzp1uANs.mjs +26 -0
- package/dist/{table-CF7zW9cI.mjs → table-hgrX1i-R.mjs} +36 -5
- package/dist/{table-selector-flags-CHfrVpYQ.mjs → table-selector-flags-BpFFoSaT.mjs} +4 -3
- package/dist/{text-C2VwKF9D.mjs → text-8nOxfC17.mjs} +1 -1
- package/dist/timeline-Cr5d4Oer.mjs +21 -0
- package/dist/{timeline-event-B-nGnoVL.mjs → timeline-event-BiYDbW3r.mjs} +6 -6
- package/dist/{transform-DiW7bREn.mjs → transform-B62craFM.mjs} +76 -7
- package/dist/transform-C-0nV5Et.mjs +28 -0
- package/dist/{transform-CWGJB8N_.mjs → transform-DKPtUV54.mjs} +2 -2
- package/dist/transform-job-B9MPk7S5.mjs +22 -0
- package/dist/{transform-job-ClX8e5iO.mjs → transform-job-CDIb3B9o.mjs} +6 -1
- package/dist/{transform-job-BBZ5L46v.mjs → transform-job-D18XRLBK.mjs} +1 -1
- package/dist/{transform-tag-dKCqQPTd.mjs → transform-tag-DQXOPhmt.mjs} +5 -5
- package/dist/transform-test-wmAjyaka.mjs +16 -0
- package/dist/{transforms-DRAws1f4.mjs → transforms-DcXL4Dox.mjs} +6 -6
- package/dist/{transport-Ck4anhoc.mjs → transport-DZSxmmtY.mjs} +5 -4
- package/dist/{tree-Ddsj298M.mjs → tree-DrYYCdXP.mjs} +4 -3
- package/dist/typed-schema-DEzmTY3J.mjs +45 -0
- package/dist/{unpublish-BMfjQ8UV.mjs → unpublish-D8hmulCx.mjs} +3 -3
- package/dist/{unreferenced-DRQrvH5r.mjs → unreferenced-C3CqO3tu.mjs} +6 -6
- package/dist/{update-C1VwtJWu.mjs → update-3lRE8G9k.mjs} +10 -11
- package/dist/{update-BCC1Igr2.mjs → update-4TDRNrV-.mjs} +7 -8
- package/dist/{update-0AoF6QJ_.mjs → update-4sOfpwpv.mjs} +5 -6
- package/dist/{update-BQLTaw3z.mjs → update-552UGPAG.mjs} +7 -8
- package/dist/{update-DpP1EEC0.mjs → update-7iXRB23T2.mjs} +7 -8
- package/dist/{update-Bpsdi6kM.mjs → update-B21GAnzT.mjs} +7 -8
- package/dist/{update-6sfqiInZ.mjs → update-BVz0oIwS.mjs} +10 -11
- package/dist/{update-CGpiLu7N.mjs → update-BxRFktpB.mjs} +8 -9
- package/dist/{update-CnxzmPRG.mjs → update-CEDMvgJI.mjs} +11 -12
- package/dist/{update-BIL0JPqm.mjs → update-CcNYCalv.mjs} +5 -6
- package/dist/{update-DlFHoUxe.mjs → update-CctMr2T1.mjs} +8 -8
- package/dist/{update-DrT10fxQ.mjs → update-Ch6AAOeh.mjs} +5 -6
- package/dist/{update-_hHnM1Hx.mjs → update-CtuLA42g.mjs} +11 -11
- package/dist/{update-C19B1Sry.mjs → update-DVD77mVR.mjs} +5 -6
- package/dist/{update-C1x90FSH.mjs → update-DmMHHn75.mjs} +10 -11
- package/dist/{update-D1aKeWfo.mjs → update-DvGIaZdl.mjs} +5 -6
- package/dist/{update-BtfUX9CN.mjs → update-LlJM4tUd.mjs} +10 -11
- package/dist/{update-8eXJso_l.mjs → update-Zv7PP8nl.mjs} +7 -8
- package/dist/{update-dashcard-CDI0Tnxy.mjs → update-dashcard-BijqiYQd.mjs} +7 -8
- package/dist/{update-pXVhyiFo.mjs → update-l4WRN6Jh.mjs} +7 -8
- package/dist/update-sma1ZRm2.mjs +36 -0
- package/dist/{upgrade-Cfouv1Ii.mjs → upgrade-TzILOkiM.mjs} +5 -4
- package/dist/upload-B37bUVl_.mjs +13 -0
- package/dist/{upload-DnLXgUA-.mjs → upload-CdiDKe69.mjs} +2 -2
- package/dist/{upload-DIEcI5iM.mjs → upload-Do-kOGtc.mjs} +3 -3
- package/dist/{uuid-D0sH5txV.mjs → uuid-Dqq2WfAT.mjs} +3 -2
- package/dist/{validate-BQ7vI8_x.mjs → validate-moGYlHxB.mjs} +8 -18
- package/dist/validate-query-Bf5FhhMI.mjs +72 -0
- package/dist/{values-BFPO6y5o.mjs → values-CtY5zv0m.mjs} +5 -5
- package/dist/{verify-C-StvB4f.mjs → verify-BiB8jzXB.mjs} +3 -3
- package/dist/{verify-CuGs0X3C.mjs → verify-DBTlWx-S.mjs} +3 -3
- package/dist/{verify-7fW020r_.mjs → verify-DJ7fGyLL.mjs} +4 -3
- package/dist/{wait-Cvt8xO0h.mjs → wait-DEYagfq4.mjs} +5 -5
- package/dist/{wait-flags-BnZ-dfE2.mjs → wait-flags-C3cu_O0w.mjs} +2 -2
- package/dist/{window-CfK_j6m1.mjs → window-D1w7B0vh.mjs} +1 -1
- package/package.json +2 -2
- package/skill-data/core/SKILL.md +14 -13
- package/skill-data/data-action/SKILL.md +1 -1
- package/skill-data/data-app/SKILL.md +138 -0
- package/skill-data/data-app/template/.env.local.example +2 -0
- package/skill-data/data-app/template/LICENSE +21 -0
- package/skill-data/data-app/template/README.md +29 -0
- package/skill-data/data-app/template/gitignore +5 -0
- package/skill-data/data-app/template/package.json +25 -0
- package/skill-data/data-app/template/src/App.tsx +9 -0
- package/skill-data/data-app/template/src/index.tsx +14 -0
- package/skill-data/data-app/template/src/theme.ts +25 -0
- package/skill-data/data-app/template/tsconfig.json +25 -0
- package/skill-data/data-app/template/vite.config.ts +3 -0
- package/skill-data/data-app-actions/SKILL.md +96 -0
- package/skill-data/data-app-data/SKILL.md +158 -0
- package/skill-data/data-app-filters/SKILL.md +87 -0
- package/skill-data/data-app-ui/SKILL.md +120 -0
- package/skill-data/mbql/SKILL.md +3 -3
- package/skill-data/native-sql/SKILL.md +1 -1
- package/skill-data/native-sql/references/template-tags.md +1 -1
- package/dist/body-C0VnEiRV.mjs +0 -16
- package/dist/card-BnL92zoT.mjs +0 -25
- package/dist/collection-DRHGwFSL.mjs +0 -21
- package/dist/dashboard-Bq1pae4N.mjs +0 -35
- package/dist/data-action-BZ2PvlaP.mjs +0 -24
- package/dist/delete-runtime-DRGveT8H.mjs +0 -55
- package/dist/dependency-6kfpR8Ga.mjs +0 -15
- package/dist/document-C0mZEg5w.mjs +0 -20
- package/dist/field-BUkyWiWk.mjs +0 -21
- package/dist/git-sync-CNTB5jvI.mjs +0 -29
- package/dist/glossary-B9Eo4hXc.mjs +0 -14
- package/dist/snippet-CpZ5cJ_y.mjs +0 -19
- package/dist/table-Cb_Uvw8m.mjs +0 -26
- package/dist/timeline-x0s_3sfc.mjs +0 -21
- package/dist/transform-job-Dlx2c6II.mjs +0 -22
- package/dist/transform-kP11Mv9_.mjs +0 -28
- package/dist/transform-test-jFuzVhlT.mjs +0 -16
- package/dist/upload-Cqv-In6j.mjs +0 -13
- package/dist/validate-query-YtH3d5BP.mjs +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CollectionCompact, l as CollectionItemCompact } from "./collection-
|
|
1
|
+
import { a as CollectionCompact, l as CollectionItemCompact } from "./collection-Cz2qLX2m.mjs";
|
|
2
2
|
//#region src/output/views/collection.ts
|
|
3
3
|
const collectionView = {
|
|
4
4
|
compactPick: CollectionCompact,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group--6adAsqG.mjs";
|
|
2
|
+
//#region src/commands/collection/index.ts
|
|
3
|
+
var collection_default = defineCommandGroup({
|
|
4
|
+
name: "collection",
|
|
5
|
+
description: "Manage Metabase collections",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "core",
|
|
8
|
+
purpose: "collection ref forms and the transforms namespace"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-BNel4hYs.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-Boql3_0n.mjs").then((mod) => mod.default),
|
|
13
|
+
items: () => import("./items-BGWE5hLl.mjs").then((mod) => mod.default),
|
|
14
|
+
tree: () => import("./tree-DrYYCdXP.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-BPRuU7Mv.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-CtuLA42g.mjs").then((mod) => mod.default),
|
|
17
|
+
archive: () => import("./archive-OZQaaQkK.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { collection_default as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as ConfigError } from "./predicates-0C0TsWcJ.mjs";
|
|
2
|
+
import { K as HttpError } from "./cli.mjs";
|
|
2
3
|
//#region src/commands/transform/collection-namespace.ts
|
|
3
4
|
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.";
|
|
4
5
|
function enrichTransformCollectionError(error) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group
|
|
1
|
+
import { t as defineCommandGroup } from "./group--6adAsqG.mjs";
|
|
2
2
|
//#region src/commands/content-translation/index.ts
|
|
3
3
|
var content_translation_default = defineCommandGroup({
|
|
4
4
|
name: "content-translation",
|
|
5
5
|
description: "Download or replace the content translation dictionary",
|
|
6
6
|
subCommands: {
|
|
7
|
-
download: () => import("./download-
|
|
8
|
-
upload: () => import("./upload-
|
|
7
|
+
download: () => import("./download-D2wEAgi_.mjs").then((mod) => mod.default),
|
|
8
|
+
upload: () => import("./upload-Do-kOGtc.mjs").then((mod) => mod.default)
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { r as DashboardCopy } from "./dashboard-
|
|
5
|
-
import { t as dashboardCopyView } from "./dashboard-
|
|
6
|
-
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-EXZan40V.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
|
+
import { r as DashboardCopy } from "./dashboard-Cwsf-e9T.mjs";
|
|
5
|
+
import { t as dashboardCopyView } from "./dashboard-Bx2sYijR.mjs";
|
|
6
|
+
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-DZ5Cy-Gk.mjs";
|
|
7
7
|
//#region src/commands/dashboard/copy.ts
|
|
8
8
|
var copy_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as parseOptionalText } from "./parse-text-
|
|
1
|
+
import { ht as parseOptionalInteger } from "./cli.mjs";
|
|
2
|
+
import { t as parseOptionalText } from "./parse-text-C4LYzIFa.mjs";
|
|
3
3
|
//#region src/commands/copy-flags.ts
|
|
4
4
|
const copyFlags = {
|
|
5
5
|
name: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { t as Document } from "./document-
|
|
5
|
-
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-
|
|
6
|
-
import { t as documentView } from "./document-
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-EXZan40V.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
|
+
import { t as Document } from "./document-BHOQq2T_.mjs";
|
|
5
|
+
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-DZ5Cy-Gk.mjs";
|
|
6
|
+
import { t as documentView } from "./document-lS1XZEF3.mjs";
|
|
7
7
|
//#region src/commands/document/copy.ts
|
|
8
8
|
var copy_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
4
|
import { r as TimelineCreateInput, t as Timeline } from "./timeline-DcsCXNUt.mjs";
|
|
6
5
|
import { n as timelineView } from "./timeline-BgWz8DYK.mjs";
|
|
@@ -25,11 +24,11 @@ var create_default = defineMetabaseCommand({
|
|
|
25
24
|
"cat timeline.json | mb timeline create",
|
|
26
25
|
"mb timeline create --file timeline.json"
|
|
27
26
|
],
|
|
28
|
-
async run({ args, ctx, getClient }) {
|
|
27
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
29
28
|
const body = await readBody({
|
|
30
29
|
flag: args.body,
|
|
31
30
|
file: args.file
|
|
32
|
-
}
|
|
31
|
+
});
|
|
33
32
|
const created = await (await getClient()).timeline.create(body);
|
|
34
33
|
renderSummary(created, timelineView, `Created timeline ${created.id} "${created.name}".`, ctx);
|
|
35
34
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
4
|
import { r as TransformTestCreateInput, t as TransformTest } from "./transform-test-Bexa_K89.mjs";
|
|
6
5
|
import { n as transformTestView } from "./transform-test-C49ZTK7M.mjs";
|
|
@@ -21,11 +20,11 @@ var create_default = defineMetabaseCommand({
|
|
|
21
20
|
inputSchema: TransformTestCreateInput,
|
|
22
21
|
outputSchema: TransformTest,
|
|
23
22
|
examples: ["cat transform-test.json | mb transform-test create", "mb transform-test create --file transform-test.json"],
|
|
24
|
-
async run({ args, ctx, getClient }) {
|
|
23
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
25
24
|
const body = await readBody({
|
|
26
25
|
flag: args.body,
|
|
27
26
|
file: args.file
|
|
28
|
-
}
|
|
27
|
+
});
|
|
29
28
|
const created = await (await getClient()).transformTest.create(body);
|
|
30
29
|
renderSummary(created, transformTestView, `Created transform test ${created.id} "${created.name}".`, ctx);
|
|
31
30
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { f as CollectionNamespace, o as CollectionCreateInput, r as Collection } from "./collection-
|
|
6
|
-
import { t as parseEnumFlag } from "./parse-enum-
|
|
7
|
-
import { n as collectionView } from "./collection-
|
|
4
|
+
import { f as CollectionNamespace, o as CollectionCreateInput, r as Collection } from "./collection-Cz2qLX2m.mjs";
|
|
5
|
+
import { t as parseEnumFlag } from "./parse-enum-CEXPuN9H.mjs";
|
|
6
|
+
import { n as collectionView } from "./collection-Bf3lv-zo.mjs";
|
|
8
7
|
//#region src/commands/collection/create.ts
|
|
9
8
|
var create_default = defineMetabaseCommand({
|
|
10
9
|
meta: {
|
|
@@ -31,11 +30,11 @@ var create_default = defineMetabaseCommand({
|
|
|
31
30
|
"mb collection create --body '{\"name\":\"My Collection\",\"parent_id\":4}'",
|
|
32
31
|
"mb collection create --body '{\"name\":\"ETL\"}' --namespace transforms"
|
|
33
32
|
],
|
|
34
|
-
async run({ args, ctx, getClient }) {
|
|
33
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
35
34
|
const body = await readBody({
|
|
36
35
|
flag: args.body,
|
|
37
36
|
file: args.file
|
|
38
|
-
}
|
|
37
|
+
});
|
|
39
38
|
if (typeof args.namespace === "string" && args.namespace !== "") body.namespace = parseEnumFlag(args.namespace, CollectionNamespace, "namespace");
|
|
40
39
|
const created = await (await getClient()).collection.create(body);
|
|
41
40
|
renderSummary(created, collectionView, `Created collection ${created.id} "${created.name}".`, ctx);
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { r as MeasureCreateInput, t as Measure } from "./measure-
|
|
6
|
-
import {
|
|
7
|
-
import { t as measureView } from "./measure-
|
|
4
|
+
import { r as MeasureCreateInput, t as Measure } from "./measure-BMWrX1ca.mjs";
|
|
5
|
+
import { MEASURE_DEFINITION, skipValidateFlag } from "./validate-query-Bf5FhhMI.mjs";
|
|
6
|
+
import { t as measureView } from "./measure-DqZG65of.mjs";
|
|
8
7
|
//#region src/commands/measure/create.ts
|
|
9
8
|
var create_default = defineMetabaseCommand({
|
|
10
9
|
meta: {
|
|
11
10
|
name: "create",
|
|
12
11
|
description: "Create a measure (saved aggregation) from JSON"
|
|
13
12
|
},
|
|
14
|
-
details: "A measure is a reusable, saved aggregation tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding exactly one aggregation). An MBQL 5 `definition` is checked against a bundled JSON Schema (print it with `mb query
|
|
13
|
+
details: "A measure is a reusable, saved aggregation tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding exactly one aggregation). An MBQL 5 `definition` is checked against a bundled JSON Schema (print it with `mb schema query`) before sending; pass --skip-validate to bypass.",
|
|
15
14
|
skills: [{
|
|
16
15
|
skill: "mbql",
|
|
17
16
|
purpose: "the definition aggregation"
|
|
@@ -25,18 +24,18 @@ var create_default = defineMetabaseCommand({
|
|
|
25
24
|
...skipValidateFlag
|
|
26
25
|
},
|
|
27
26
|
inputSchema: MeasureCreateInput,
|
|
27
|
+
embeddedDocuments: [MEASURE_DEFINITION],
|
|
28
28
|
outputSchema: Measure,
|
|
29
29
|
examples: [
|
|
30
30
|
"cat measure.json | mb measure create",
|
|
31
31
|
"mb measure create --file measure.json",
|
|
32
32
|
"mb measure create --file measure.json --skip-validate"
|
|
33
33
|
],
|
|
34
|
-
async run({ args, ctx, getClient }) {
|
|
34
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
35
35
|
const body = await readBody({
|
|
36
36
|
flag: args.body,
|
|
37
37
|
file: args.file
|
|
38
|
-
}
|
|
39
|
-
preflightMbql5Query(body.definition, MEASURE_DEFINITION_LABELS, { skip: args["skip-validate"] === true });
|
|
38
|
+
});
|
|
40
39
|
const created = await (await getClient()).measure.create(body);
|
|
41
40
|
renderSummary(created, measureView, `Created measure ${created.id} "${created.name}".`, ctx);
|
|
42
41
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as dataActionView } from "./data-action-
|
|
4
|
+
import { i as DataActionCreateInput, n as DataAction } from "./data-action-CuvI17XF.mjs";
|
|
5
|
+
import { DATA_ACTION_DATASET_QUERY, skipValidateFlag } from "./validate-query-Bf5FhhMI.mjs";
|
|
6
|
+
import { n as dataActionView } from "./data-action-DLj9cgpu.mjs";
|
|
8
7
|
//#region src/commands/data-action/create.ts
|
|
9
8
|
var create_default = defineMetabaseCommand({
|
|
10
9
|
meta: {
|
|
11
10
|
name: "create",
|
|
12
11
|
description: "Create a data action from JSON"
|
|
13
12
|
},
|
|
14
|
-
details: "A data action is a parameterized native query that writes to a database, filed in a collection. The JSON body needs `name`, `type: \"query\"`, `database_id`, a native `dataset_query` whose `{{tag}}` placeholders are its inputs, and `parameters` targeting those tags; `collection_id` picks a collection in the `data-actions` or `data-apps` namespace (omit for the data actions root; a regular collection is refused). Data actions must be enabled on the database (`mb db set-data-actions <id> true`). An MBQL 5 `dataset_query` is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
13
|
+
details: "A data action is a parameterized native query that writes to a database, filed in a collection. The JSON body needs `name`, `type: \"query\"`, `database_id`, a native `dataset_query` whose `{{tag}}` placeholders are its inputs, and `parameters` targeting those tags; `collection_id` picks a collection in the `data-actions` or `data-apps` namespace (omit for the data actions root; a regular collection is refused). Data actions must be enabled on the database (`mb db set-data-actions <id> true`). An MBQL 5 `dataset_query` is checked against a bundled JSON Schema (print it with `mb schema query`) before sending; pass --skip-validate to bypass.",
|
|
15
14
|
skills: [{
|
|
16
15
|
skill: "data-action",
|
|
17
16
|
purpose: "author a data action and its parameters"
|
|
@@ -28,18 +27,18 @@ var create_default = defineMetabaseCommand({
|
|
|
28
27
|
...skipValidateFlag
|
|
29
28
|
},
|
|
30
29
|
inputSchema: DataActionCreateInput,
|
|
30
|
+
embeddedDocuments: [DATA_ACTION_DATASET_QUERY],
|
|
31
31
|
outputSchema: DataAction,
|
|
32
32
|
examples: [
|
|
33
33
|
"cat data-action.json | mb data-action create",
|
|
34
34
|
"mb data-action create --file data-action.json",
|
|
35
35
|
"mb data-action create --file data-action.json --skip-validate"
|
|
36
36
|
],
|
|
37
|
-
async run({ args, ctx, getClient }) {
|
|
37
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
38
38
|
const body = await readBody({
|
|
39
39
|
flag: args.body,
|
|
40
40
|
file: args.file
|
|
41
|
-
}
|
|
42
|
-
preflightMbql5Query(body.dataset_query, DATA_ACTION_DATASET_QUERY_LABELS, { skip: args["skip-validate"] === true });
|
|
41
|
+
});
|
|
43
42
|
const created = await (await getClient()).dataAction.create(body);
|
|
44
43
|
renderSummary(created, dataActionView, `Created data action ${created.id} "${created.name}".`, ctx);
|
|
45
44
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as notificationView } from "./notification-
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { o as NotificationCreateInput, r as Notification } from "./notification-B5yMuPmo.mjs";
|
|
3
|
+
import { t as notificationView } from "./notification-BEJaEZS2.mjs";
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
5
5
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
6
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
7
6
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
8
7
|
//#region src/commands/alert/create.ts
|
|
9
8
|
var create_default = defineMetabaseCommand({
|
|
@@ -32,11 +31,11 @@ var create_default = defineMetabaseCommand({
|
|
|
32
31
|
"cat alert.json | mb alert create",
|
|
33
32
|
"mb alert create --file alert.json"
|
|
34
33
|
],
|
|
35
|
-
async run({ args, ctx, getClient }) {
|
|
34
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
36
35
|
const body = await readBody({
|
|
37
36
|
flag: args.body,
|
|
38
37
|
file: args.file
|
|
39
|
-
}
|
|
38
|
+
});
|
|
40
39
|
const created = await (await getClient()).notification.create(body);
|
|
41
40
|
renderSummary(created, notificationView, describeAlert("Created", created), ctx);
|
|
42
41
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { a as DashboardCreateInput, t as Dashboard } from "./dashboard-
|
|
6
|
-
import { n as dashboardView } from "./dashboard-
|
|
7
|
-
import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-
|
|
4
|
+
import { a as DashboardCreateInput, s as DashboardLayoutInput, t as Dashboard } from "./dashboard-Cwsf-e9T.mjs";
|
|
5
|
+
import { n as dashboardView } from "./dashboard-Bx2sYijR.mjs";
|
|
6
|
+
import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-4iy2qzsh.mjs";
|
|
8
7
|
//#region src/commands/dashboard/create.ts
|
|
8
|
+
const DashboardCreateBody = DashboardCreateInput.extend(DashboardLayoutInput.shape);
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
11
11
|
name: "create",
|
|
@@ -30,7 +30,7 @@ var create_default = defineMetabaseCommand({
|
|
|
30
30
|
...connectionFlags,
|
|
31
31
|
...bodyInputFlags
|
|
32
32
|
},
|
|
33
|
-
inputSchema:
|
|
33
|
+
inputSchema: DashboardCreateBody,
|
|
34
34
|
outputSchema: Dashboard,
|
|
35
35
|
examples: [
|
|
36
36
|
"cat dashboard.json | mb dashboard create",
|
|
@@ -38,11 +38,11 @@ var create_default = defineMetabaseCommand({
|
|
|
38
38
|
"mb dashboard create --body '{\"name\":\"My Dashboard\",\"collection_id\":4}'",
|
|
39
39
|
"mb dashboard create --body '{\"name\":\"D\",\"dashcards\":[{\"id\":-1,\"card_id\":42,\"row\":0,\"col\":0,\"size_x\":12,\"size_y\":6}]}'"
|
|
40
40
|
],
|
|
41
|
-
async run({ args, ctx, getClient }) {
|
|
41
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
42
42
|
const { dashcards, tabs, ...createOnly } = await readBody({
|
|
43
43
|
flag: args.body,
|
|
44
44
|
file: args.file
|
|
45
|
-
}
|
|
45
|
+
});
|
|
46
46
|
const client = await getClient();
|
|
47
47
|
await preflightDashcardCardReferences(client, dashcards);
|
|
48
48
|
const created = await client.dashboard.create(createOnly);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
3
|
+
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
4
|
+
import { r as DataAppCreateInput, t as DataApp } from "./data-app-BUW-HlUo.mjs";
|
|
5
|
+
import { t as dataAppView } from "./data-app-Blz61mG5.mjs";
|
|
6
|
+
//#region src/commands/data-app/create.ts
|
|
7
|
+
var create_default = defineMetabaseCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "create",
|
|
10
|
+
description: "Create a data app and its collection from JSON"
|
|
11
|
+
},
|
|
12
|
+
details: "The JSON body needs `name`, the slug. Optional: `display_name` (the slug by default), `description`, `allowed_hosts`, `enabled` (false by default), `bundle_path` and `version`. The app starts with an empty bundle; `mb data-app set-bundle` replaces it. The answer's `resource_collection_id` is the app's collection, where its questions and actions go. `mb data-app scaffold` copies the project template.",
|
|
13
|
+
skills: [{
|
|
14
|
+
skill: "data-app",
|
|
15
|
+
purpose: "how an app is created, built and published"
|
|
16
|
+
}],
|
|
17
|
+
requires: ["dataApp.create"],
|
|
18
|
+
args: {
|
|
19
|
+
...outputFlags,
|
|
20
|
+
...profileFlag,
|
|
21
|
+
...connectionFlags,
|
|
22
|
+
...bodyInputFlags
|
|
23
|
+
},
|
|
24
|
+
inputSchema: DataAppCreateInput,
|
|
25
|
+
outputSchema: DataApp,
|
|
26
|
+
examples: ["mb data-app create --body '{\"name\":\"sales-overview\",\"display_name\":\"Sales overview\"}'", "mb data-app create --file app.json --json"],
|
|
27
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
28
|
+
const body = await readBody({
|
|
29
|
+
flag: args.body,
|
|
30
|
+
file: args.file
|
|
31
|
+
});
|
|
32
|
+
const created = await (await getClient()).dataApp.create(body);
|
|
33
|
+
renderSummary(created, dataAppView, `Created data app ${created.name} with collection ${created.resource_collection_id}.`, ctx);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { create_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as Library } from "./library-
|
|
4
|
-
import { t as libraryView } from "./library-
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
3
|
+
import { t as Library } from "./library-C4g9pdiS.mjs";
|
|
4
|
+
import { t as libraryView } from "./library-BprxuqZl.mjs";
|
|
5
5
|
//#region src/commands/library/create.ts
|
|
6
6
|
var create_default = defineMetabaseCommand({
|
|
7
7
|
meta: {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { r as TransformCreateInput, t as Transform } from "./transform-
|
|
6
|
-
import {
|
|
7
|
-
import { n as transformView } from "./transform-
|
|
8
|
-
import { t as enrichTransformCollectionError } from "./collection-namespace-
|
|
4
|
+
import { r as TransformCreateInput, t as Transform } from "./transform-B62craFM.mjs";
|
|
5
|
+
import { TRANSFORM_SOURCE_QUERY, skipValidateFlag } from "./validate-query-Bf5FhhMI.mjs";
|
|
6
|
+
import { n as transformView } from "./transform-DKPtUV54.mjs";
|
|
7
|
+
import { t as enrichTransformCollectionError } from "./collection-namespace-C0JcSEwN.mjs";
|
|
9
8
|
//#region src/commands/transform/create.ts
|
|
10
9
|
var create_default = defineMetabaseCommand({
|
|
11
10
|
meta: {
|
|
12
11
|
name: "create",
|
|
13
12
|
description: "Create a transform from JSON"
|
|
14
13
|
},
|
|
15
|
-
details: "The JSON body needs a `name`, a `source` (the query to run — native SQL or MBQL — under `source.query`), and a `target` (the warehouse table to write, with `database`/`schema`/`name`). When `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query
|
|
14
|
+
details: "The JSON body needs a `name`, a `source` (the query to run — native SQL or MBQL — under `source.query`), and a `target` (the warehouse table to write, with `database`/`schema`/`name`). When `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb schema query`) before sending; pass --skip-validate to bypass.",
|
|
16
15
|
skills: [{
|
|
17
16
|
skill: "mbql",
|
|
18
17
|
purpose: "MBQL source.query bodies"
|
|
@@ -26,18 +25,18 @@ var create_default = defineMetabaseCommand({
|
|
|
26
25
|
...skipValidateFlag
|
|
27
26
|
},
|
|
28
27
|
inputSchema: TransformCreateInput,
|
|
28
|
+
embeddedDocuments: [TRANSFORM_SOURCE_QUERY],
|
|
29
29
|
outputSchema: Transform,
|
|
30
30
|
examples: [
|
|
31
31
|
"cat transform.json | mb transform create",
|
|
32
32
|
"mb transform create --file transform.json",
|
|
33
33
|
"mb transform create --file transform.json --skip-validate"
|
|
34
34
|
],
|
|
35
|
-
async run({ args, ctx, getClient }) {
|
|
35
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
36
36
|
const body = await readBody({
|
|
37
37
|
flag: args.body,
|
|
38
38
|
file: args.file
|
|
39
|
-
}
|
|
40
|
-
if (body.source.type === "query") preflightMbql5Query(body.source.query, TRANSFORM_SOURCE_QUERY_LABELS, { skip: args["skip-validate"] === true });
|
|
39
|
+
});
|
|
41
40
|
const created = await (await getClient()).transform.create(body).catch((error) => {
|
|
42
41
|
throw enrichTransformCollectionError(error);
|
|
43
42
|
});
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { r as SegmentCreateInput, t as Segment } from "./segment-
|
|
6
|
-
import {
|
|
7
|
-
import { t as segmentView } from "./segment-
|
|
4
|
+
import { r as SegmentCreateInput, t as Segment } from "./segment-Cf-DrdjE.mjs";
|
|
5
|
+
import { SEGMENT_DEFINITION, skipValidateFlag } from "./validate-query-Bf5FhhMI.mjs";
|
|
6
|
+
import { t as segmentView } from "./segment-CWVASaM1.mjs";
|
|
8
7
|
//#region src/commands/segment/create.ts
|
|
9
8
|
var create_default = defineMetabaseCommand({
|
|
10
9
|
meta: {
|
|
11
10
|
name: "create",
|
|
12
11
|
description: "Create a segment (saved filter) from JSON"
|
|
13
12
|
},
|
|
14
|
-
details: "A segment is a reusable, saved row filter tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding the filter). An MBQL 5 `definition` is checked against a bundled JSON Schema (print it with `mb query
|
|
13
|
+
details: "A segment is a reusable, saved row filter tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding the filter). An MBQL 5 `definition` is checked against a bundled JSON Schema (print it with `mb schema query`) before sending; pass --skip-validate to bypass.",
|
|
15
14
|
skills: [{
|
|
16
15
|
skill: "mbql",
|
|
17
16
|
purpose: "the definition filter clause"
|
|
@@ -25,18 +24,18 @@ var create_default = defineMetabaseCommand({
|
|
|
25
24
|
...skipValidateFlag
|
|
26
25
|
},
|
|
27
26
|
inputSchema: SegmentCreateInput,
|
|
27
|
+
embeddedDocuments: [SEGMENT_DEFINITION],
|
|
28
28
|
outputSchema: Segment,
|
|
29
29
|
examples: [
|
|
30
30
|
"cat segment.json | mb segment create",
|
|
31
31
|
"mb segment create --file segment.json",
|
|
32
32
|
"mb segment create --file segment.json --skip-validate"
|
|
33
33
|
],
|
|
34
|
-
async run({ args, ctx, getClient }) {
|
|
34
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
35
35
|
const body = await readBody({
|
|
36
36
|
flag: args.body,
|
|
37
37
|
file: args.file
|
|
38
|
-
}
|
|
39
|
-
preflightMbql5Query(body.definition, SEGMENT_DEFINITION_LABELS, { skip: args["skip-validate"] === true });
|
|
38
|
+
});
|
|
40
39
|
const created = await (await getClient()).segment.create(body);
|
|
41
40
|
renderSummary(created, segmentView, `Created segment ${created.id} "${created.name}".`, ctx);
|
|
42
41
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
4
|
import { i as TimelineEvent, o as TimelineEventCreateInput } from "./timeline-DcsCXNUt.mjs";
|
|
6
5
|
import { t as timelineEventView } from "./timeline-BgWz8DYK.mjs";
|
|
@@ -25,11 +24,11 @@ var create_default = defineMetabaseCommand({
|
|
|
25
24
|
"cat event.json | mb timeline-event create",
|
|
26
25
|
"mb timeline-event create --file event.json"
|
|
27
26
|
],
|
|
28
|
-
async run({ args, ctx, getClient }) {
|
|
27
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
29
28
|
const body = await readBody({
|
|
30
29
|
flag: args.body,
|
|
31
30
|
file: args.file
|
|
32
|
-
}
|
|
31
|
+
});
|
|
33
32
|
const created = await (await getClient()).timelineEvent.create(body);
|
|
34
33
|
renderSummary(created, timelineEventView, `Created timeline event ${created.id} "${created.name}".`, ctx);
|
|
35
34
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { r as DocumentCreateInput, t as Document } from "./document-
|
|
6
|
-
import { t as documentView } from "./document-
|
|
4
|
+
import { r as DocumentCreateInput, t as Document } from "./document-BHOQq2T_.mjs";
|
|
5
|
+
import { t as documentView } from "./document-lS1XZEF3.mjs";
|
|
7
6
|
//#region src/commands/document/create.ts
|
|
8
7
|
var create_default = defineMetabaseCommand({
|
|
9
8
|
meta: {
|
|
@@ -24,11 +23,11 @@ var create_default = defineMetabaseCommand({
|
|
|
24
23
|
"mb document create --file doc.json",
|
|
25
24
|
"mb document create --body '{\"name\":\"Notes\",\"document\":{\"type\":\"doc\",\"content\":[]}}'"
|
|
26
25
|
],
|
|
27
|
-
async run({ args, ctx, getClient }) {
|
|
26
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
28
27
|
const body = await readBody({
|
|
29
28
|
flag: args.body,
|
|
30
29
|
file: args.file
|
|
31
|
-
}
|
|
30
|
+
});
|
|
32
31
|
const created = await (await getClient()).document.create(body);
|
|
33
32
|
renderSummary(created, documentView, `Created document ${created.id} "${created.name}".`, ctx);
|
|
34
33
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
4
3
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
4
|
import { r as TransformTagCreateInput, t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
6
5
|
import { t as transformTagView } from "./transform-tag-Dmb4u3-Q.mjs";
|
|
@@ -24,11 +23,11 @@ var create_default = defineMetabaseCommand({
|
|
|
24
23
|
"mb transform-tag create --file tag.json",
|
|
25
24
|
"echo '{\"name\":\"nightly\"}' | mb transform-tag create"
|
|
26
25
|
],
|
|
27
|
-
async run({ args, ctx, getClient }) {
|
|
26
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
28
27
|
const body = await readBody({
|
|
29
28
|
flag: args.body,
|
|
30
29
|
file: args.file
|
|
31
|
-
}
|
|
30
|
+
});
|
|
32
31
|
const created = await (await getClient()).transformTag.create(body);
|
|
33
32
|
renderSummary(created, transformTagView, `Created transform tag ${created.id} "${created.name}".`, ctx);
|
|
34
33
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { it as connectionFlags, l as renderSummary, lt as outputFlags, ut as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-iIsqiOwO.mjs";
|
|
3
|
+
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
4
|
+
import { i as CreatedApiKey, r as ApiKeyCreateInput } from "./api-key-DbsqHlN6.mjs";
|
|
5
|
+
import { n as createdApiKeyView } from "./api-key-9jVV67hF.mjs";
|
|
6
|
+
//#region src/commands/api-key/create.ts
|
|
7
|
+
var create_default = defineMetabaseCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "create",
|
|
10
|
+
description: "Create an API key acting as a member of a group"
|
|
11
|
+
},
|
|
12
|
+
details: "The JSON body needs `name` and `group_id` (2 is Administrators). The key is printed once, as `unmasked_key` under --json, and no later read returns it: store it where it is needed and never paste it into chat.",
|
|
13
|
+
requires: ["apiKey.create"],
|
|
14
|
+
args: {
|
|
15
|
+
...outputFlags,
|
|
16
|
+
...profileFlag,
|
|
17
|
+
...connectionFlags,
|
|
18
|
+
...bodyInputFlags
|
|
19
|
+
},
|
|
20
|
+
inputSchema: ApiKeyCreateInput,
|
|
21
|
+
outputSchema: CreatedApiKey,
|
|
22
|
+
examples: ["mb api-key create --body '{\"name\":\"ci\",\"group_id\":2}' --json"],
|
|
23
|
+
async run({ args, ctx, getClient, readBody }) {
|
|
24
|
+
const body = await readBody({
|
|
25
|
+
flag: args.body,
|
|
26
|
+
file: args.file
|
|
27
|
+
});
|
|
28
|
+
const created = await (await getClient()).apiKey.create(body);
|
|
29
|
+
renderSummary(created, createdApiKeyView, `Created API key ${created.id} "${created.name}": ${created.unmasked_key}`, ctx);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { create_default as default };
|