@metabase/cli 0.5.0 → 0.5.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/dist/{add-collection-COtKcy6Y.mjs → add-collection-C0BQHjJd.mjs} +5 -5
- package/dist/{alert-DMlSjPEv.mjs → alert-mXHOt00T.mjs} +7 -7
- package/dist/{alerts-s3al16NZ.mjs → alerts-CyB1Z7AU.mjs} +6 -6
- package/dist/{append-CbGmdeLw.mjs → append-DeHhUAeY.mjs} +4 -4
- package/dist/{archive-DvbaSglr.mjs → archive-B1MA5MZp.mjs} +5 -5
- package/dist/{archive-CnDriekB.mjs → archive-Bi-Sfq5T.mjs} +5 -5
- package/dist/{archive-BFmx4B91.mjs → archive-CCKxZEuq.mjs} +5 -5
- package/dist/{archive-BZCYIBhQ.mjs → archive-CDSAXKKB.mjs} +5 -5
- package/dist/{archive-5EY9UJU_.mjs → archive-CfNLlebd.mjs} +6 -6
- package/dist/archive-CjVd1fJ5.mjs +32 -0
- package/dist/{archive-Ce4eArrs.mjs → archive-CpvpGZlz.mjs} +3 -3
- package/dist/{archive-DDO2XX0E.mjs → archive-DRMXvkiI.mjs} +4 -4
- package/dist/{archive-a05W75XH.mjs → archive-DfDqPgtk.mjs} +3 -3
- package/dist/{archive-DzSdJVqE.mjs → archive-DpgtAdEa.mjs} +5 -5
- package/dist/{archive-C_UHeanE.mjs → archive-HCVTRXI2.mjs} +3 -3
- package/dist/{archive-DW7x0IFB.mjs → archive-qy0CFo1s2.mjs} +5 -5
- package/dist/{auth-DOz7KW5E.mjs → auth-_cdypXeX.mjs} +5 -5
- package/dist/{body-Di7940x_.mjs → body-C0VnEiRV.mjs} +2 -2
- package/dist/{branch-flag-CfJ8vwgu.mjs → branch-flag-CPTQ4wXp.mjs} +1 -1
- package/dist/{branches-BC-vlk6i.mjs → branches-C7mNYAky.mjs} +3 -3
- package/dist/{breaking-ByrjsFjq.mjs → breaking-BindR3ZW.mjs} +6 -6
- package/dist/{broken-DLSk1T88.mjs → broken-SoXfkx7d.mjs} +8 -8
- package/dist/{bulk-discard-values-VKGj8c7z.mjs → bulk-discard-values-D_d5_1w5.mjs} +5 -5
- package/dist/{bulk-edit-CpuleeCQ.mjs → bulk-edit-Cce05vb_.mjs} +5 -5
- package/dist/{bulk-rescan-values-DeGwiqLS.mjs → bulk-rescan-values-DIQN4VT_.mjs} +5 -5
- package/dist/{bulk-sync-schema-BKVhauW1.mjs → bulk-sync-schema-DLWf5dCl.mjs} +5 -5
- package/dist/{cancel-qKj45001.mjs → cancel-rnd6UI-6.mjs} +3 -3
- package/dist/{cancel-task-nmBBd1Ky.mjs → cancel-task-acq1GT6Z.mjs} +4 -4
- package/dist/{card-DSrgU7lT.mjs → card-3NmUiU5F.mjs} +1 -1
- package/dist/card-BnL92zoT.mjs +25 -0
- package/dist/{card-Bv4ZN0oV.mjs → card-QR3zEu6E.mjs} +39 -26
- package/dist/{cards-Bq73s48q.mjs → cards-DmzPtx81.mjs} +6 -6
- package/dist/cli.mjs +200 -49
- package/dist/{client-BmURNkkW.mjs → client-D-Aw6JLk.mjs} +202 -618
- package/dist/{collection-C03LXnCT.mjs → collection-D5vt2IJ_.mjs} +1 -1
- package/dist/{collection-zrZoJfgR.mjs → collection-DNmFKALA.mjs} +12 -3
- package/dist/collection-DRHGwFSL.mjs +21 -0
- package/dist/{collection-namespace-DaDzK31i.mjs → collection-namespace-Dl8_7xII.mjs} +1 -1
- package/dist/{content-translation-BlG41YrA.mjs → content-translation-DxT1OMnP.mjs} +3 -3
- package/dist/{copy-DTiYs_a2.mjs → copy-BTdTiDQo.mjs} +6 -6
- package/dist/{copy-DOKlVa7H.mjs → copy-CyFf3e2Y.mjs} +6 -6
- package/dist/{copy-flags-BhGWC5kS.mjs → copy-flags-CTM91pxH.mjs} +2 -2
- package/dist/{create-DraZzrLO.mjs → create-B3QZpifA.mjs} +7 -7
- package/dist/{create-B5BwdPwT.mjs → create-B6dABrs7.mjs} +6 -6
- package/dist/create-BH6zpwKD.mjs +34 -0
- package/dist/{create-BpwZJZxb.mjs → create-Bg3WTMMU.mjs} +5 -5
- package/dist/{create-JaFhqysM.mjs → create-BwIOlpLc.mjs} +5 -5
- package/dist/{create-BKKNIe93.mjs → create-C3rabvE_.mjs} +5 -5
- package/dist/{create-Duj_2YIF.mjs → create-Ce5YVusp.mjs} +4 -4
- package/dist/create-Ch-NbeMr.mjs +48 -0
- package/dist/{create-Cob0gLsA.mjs → create-CuJJd7Rh.mjs} +5 -5
- package/dist/{create-1rLk8b5q.mjs → create-D6NLpIzV.mjs} +3 -3
- package/dist/{create-B1bX6ngX.mjs → create-DeCPAYJi.mjs} +4 -4
- package/dist/{create-d0trLAzB.mjs → create-DeiBnRRz.mjs} +6 -6
- package/dist/{create-C0kz0oYc.mjs → create-DiG165B2.mjs} +5 -5
- package/dist/{create-B1QDNU1x.mjs → create-Dn8V5siS.mjs} +6 -6
- package/dist/{create-BXX_n64u.mjs → create-DsCydgm22.mjs} +5 -5
- package/dist/{create-vOw8gmBU.mjs → create-GU8_GNbN.mjs} +3 -3
- package/dist/{create-branch-B5jB4tKk.mjs → create-branch-C4Ql9G2g.mjs} +4 -4
- package/dist/{create-DUytP2Y1.mjs → create-qtTB8rIE.mjs} +4 -4
- package/dist/{create-DPggIXfn.mjs → create-roJbQOmm.mjs} +4 -4
- package/dist/{csv-DfExp9H_.mjs → csv-DmuyyLdz.mjs} +4 -4
- package/dist/{current-task-CbXIH_RA.mjs → current-task-C2PPBVVv.mjs} +4 -4
- package/dist/dashboard-Bq1pae4N.mjs +35 -0
- package/dist/{dashboard-Phz3XpRM.mjs → dashboard-Chjy5GKR.mjs} +52 -5
- package/dist/{dashboard-XSTr9QCr.mjs → dashboard-D5E3fMKh.mjs} +1 -1
- package/dist/data-action-BZ2PvlaP.mjs +24 -0
- package/dist/data-action-DZxVB_hD.mjs +85 -0
- package/dist/data-action-R9qxJDPA.mjs +40 -0
- package/dist/{database-BdKkae1m.mjs → database-CxykzTAA.mjs} +14 -3
- package/dist/{database-DoNoZ8Yc.mjs → database-D8XzgJEz.mjs} +19 -2
- package/dist/{dataset-DZgJm5hP.mjs → dataset-DIQLAp2P.mjs} +5 -4
- package/dist/db-BgKKN1-4.mjs +25 -0
- package/dist/{delete-DJ7SNXiH.mjs → delete-5ZOvFr-7.mjs} +4 -4
- package/dist/delete-B3aylPHD.mjs +44 -0
- package/dist/{delete-hwPqKXeY.mjs → delete-CH32Ew4m.mjs} +4 -4
- package/dist/{delete-D0xFMRRq.mjs → delete-CS6hsBnd.mjs} +4 -4
- package/dist/{delete-hcw_4pBG.mjs → delete-DeqGTuwO.mjs} +4 -4
- package/dist/{delete-9xHRd2CG.mjs → delete-DiZg2wit.mjs} +4 -4
- package/dist/delete-DtIbkF42.mjs +44 -0
- package/dist/{delete-B4BfGfiJ.mjs → delete-_XC6R-Jn.mjs} +4 -4
- package/dist/{delete-runtime-DkgYUQ_n.mjs → delete-runtime-DRGveT8H.mjs} +1 -1
- package/dist/{delete-table-DhTMft7u.mjs → delete-table-BEuMlqw1.mjs} +4 -4
- package/dist/{dependencies-B8H2gA04.mjs → dependencies-DD48u9i3.mjs} +5 -5
- package/dist/dependency-6kfpR8Ga.mjs +15 -0
- package/dist/{dependency-tQBxYjFX.mjs → dependency-CaC6XuTY.mjs} +2 -2
- package/dist/{dependency-Dc33mjgd.mjs → dependency-Dxvb2Znu.mjs} +2 -2
- package/dist/{dependents-B2GcS5kB.mjs → dependents-ByfHs8pO.mjs} +9 -9
- package/dist/{dirty-Cz2rUd6S.mjs → dirty-DsrGfLit.mjs} +5 -5
- package/dist/{discard-values-QWuWGaVK.mjs → discard-values-BfpwwC62.mjs} +5 -5
- package/dist/document-C0mZEg5w.mjs +20 -0
- package/dist/{document-wfWbV0B_.mjs → document-DVIu3Vj4.mjs} +1 -1
- package/dist/{document-BDobDiap.mjs → document-UMG6me2P.mjs} +1 -1
- package/dist/{download-Dw15fUMy.mjs → download-kpgGtfpw.mjs} +2 -2
- package/dist/{eid-Ex4G-ZlN.mjs → eid-Tp-ACZ4O.mjs} +4 -5
- package/dist/{eid-translation-zEHtr5Oc.mjs → eid-translation-Ba92VOHe.mjs} +1 -0
- package/dist/{entity-DBKPaMr5.mjs → entity-DjDkaMkB.mjs} +2 -2
- package/dist/{entry-flags-DgY3IXFe.mjs → entry-flags-nhBrUS6p.mjs} +4 -4
- package/dist/{events-BibJ4ya0.mjs → events-Dm9-ofXu.mjs} +6 -6
- package/dist/execute-BL0dAlrp.mjs +45 -0
- package/dist/{export-U8MdaatW.mjs → export-CIW-dHft.mjs} +24 -12
- package/dist/{export-flags-BrfeyE8D.mjs → export-flags-CpukgETM.mjs} +14 -6
- package/dist/{export-preflight-A28L45au.mjs → export-preflight-BMlz3Hp9.mjs} +5 -5
- package/dist/field-BUkyWiWk.mjs +21 -0
- package/dist/{field-wmN6raOG.mjs → field-BVz4AS3f.mjs} +1 -1
- package/dist/{field-5nivEfd6.mjs → field-DoWQUl7V.mjs} +58 -45
- package/dist/{fields-i1TFa_th.mjs → fields-CcerFaiu.mjs} +6 -6
- package/dist/{filter-flags-Bm3vuSM-.mjs → filter-flags-DhE4olyf.mjs} +5 -4
- package/dist/{fks-Dcfn3-73.mjs → fks-CYfBesHV.mjs} +6 -6
- package/dist/{get-D0NZ0ZO1.mjs → get--E7UvR-v.mjs} +5 -5
- package/dist/{get-Dz3dNirC.mjs → get-B0RQPTV-2.mjs} +5 -5
- package/dist/{get-CCLWWqTD.mjs → get-BFloqjrN.mjs} +4 -4
- package/dist/{get-B4_3DID6.mjs → get-BLnQ2aut.mjs} +5 -5
- package/dist/{get-DqYn9mez.mjs → get-BaiyMem3.mjs} +4 -4
- package/dist/{get-CobILQ_7.mjs → get-Be7yjY9v.mjs} +6 -6
- package/dist/get-BvEHWLGL.mjs +32 -0
- package/dist/get-CEJE9Rmp.mjs +31 -0
- package/dist/{get-EKBYludD.mjs → get-CRfrkxqc.mjs} +3 -3
- package/dist/{get-DPZUIPjv.mjs → get-CZgAr8rM.mjs} +5 -5
- package/dist/{get-BKDTRMNU.mjs → get-Cj3-w_Nu.mjs} +5 -5
- package/dist/{get-BCdtCwaG.mjs → get-CmxYFUuR.mjs} +3 -3
- package/dist/{get-Cwj1Q-at.mjs → get-DHSuVxrH.mjs} +5 -5
- package/dist/{get-C3ojRVJ_.mjs → get-DKbGKa6F.mjs} +4 -4
- package/dist/{get-HFQSttF3.mjs → get-DRhcS76J.mjs} +5 -5
- package/dist/{get-BiPSePQc.mjs → get-Dp45rXRS.mjs} +3 -3
- package/dist/{get-DUwX-RU82.mjs → get-HzDQViDP2.mjs} +5 -5
- package/dist/{get-CcwRn8Y2.mjs → get-LRTRu85E.mjs} +5 -5
- package/dist/{get-IjoHBExI.mjs → get-RCDF-hEq.mjs} +5 -5
- package/dist/{get-CVpIQb8v.mjs → get-eNRULmE5.mjs} +5 -5
- package/dist/{get-hAoJtVCK.mjs → get-p2sZvp7v.mjs} +3 -3
- package/dist/{get-run-B2SnsZSY.mjs → get-run-C3AHKn3-.mjs} +4 -4
- package/dist/git-sync-CNTB5jvI.mjs +29 -0
- package/dist/{git-sync-Ch1V1fEK.mjs → git-sync-D1aKczo6.mjs} +15 -8
- package/dist/{git-sync-COokpYgc.mjs → git-sync-DP4wQFzm.mjs} +18 -1
- package/dist/glossary-B9Eo4hXc.mjs +14 -0
- package/dist/{glossary-wnuxoE_I.mjs → glossary-BkGmCI4X.mjs} +1 -1
- package/dist/{glossary-6LLpItof.mjs → glossary-QN-hHfOT.mjs} +1 -1
- package/dist/{graph-CHlfxVy1.mjs → graph-BGOYocJc.mjs} +6 -6
- package/dist/{group-B3X3LTcU.mjs → group-81zoQcEP.mjs} +1 -1
- package/dist/{has-remote-changes-DCMpqGgE.mjs → has-remote-changes-DxsRvZsw.mjs} +4 -4
- package/dist/{import-C7MZhKo6.mjs → import-izn2_OsW.mjs} +7 -7
- package/dist/{is-dirty-DpLyHebS.mjs → is-dirty-DHYYRl6Y.mjs} +2 -2
- package/dist/{items-1ME_eg27.mjs → items-mIoZBqUc.mjs} +6 -6
- package/dist/{key-DMtgTOwN.mjs → key-BYEv4Wgq.mjs} +2 -2
- package/dist/{library-D2ogEIfI.mjs → library-5I0TlXmf.mjs} +5 -5
- package/dist/{library-fWEv38OB.mjs → library-DKIqzyUk.mjs} +2 -2
- package/dist/{library-CP-9yepy.mjs → library-wUiD2jbw.mjs} +1 -1
- package/dist/{list-BUwDGyIu.mjs → list-B6TYzXyW.mjs} +5 -5
- package/dist/{list-Ud7F0XdU.mjs → list-B8FPpgct.mjs} +3 -3
- package/dist/{list-B0h-j1E7.mjs → list-BEBAq1xc.mjs} +5 -5
- package/dist/{list-OXiXtdiM.mjs → list-BKhJfFyB.mjs} +5 -5
- package/dist/{list-STy8UHs2.mjs → list-BxIulkp3.mjs} +6 -6
- package/dist/{list-CQi3AgS5.mjs → list-C-f-G-cC.mjs} +5 -5
- package/dist/{list-dCi6OaIE.mjs → list-C1dEh2yq.mjs} +6 -6
- package/dist/{list-DkCadZ2E.mjs → list-C3CXHKTW.mjs} +5 -5
- package/dist/{list-LMlJ4uAY.mjs → list-C6roDyBd.mjs} +6 -6
- package/dist/{list-CJ5FyCnL.mjs → list-CT7AOXTS.mjs} +4 -4
- package/dist/{list-BUZ91ctZ.mjs → list-CTlIVHeG.mjs} +5 -5
- package/dist/list-CmOTwt_z.mjs +35 -0
- package/dist/list-CpxEOoqw.mjs +48 -0
- package/dist/{list-DzP7YXdZ.mjs → list-CuEPFHrk.mjs} +3 -3
- package/dist/{list-DBAEy3Rx.mjs → list-D8jiz8YP.mjs} +3 -3
- package/dist/{list-NINy7ybI.mjs → list-DV4wojtv.mjs} +4 -4
- package/dist/{list-BXcDPU5d.mjs → list-DVnPzc5m.mjs} +6 -6
- package/dist/list-NeImhwLD.mjs +28 -0
- package/dist/{list-CVh8DHOO.mjs → list-OWPg67JC.mjs} +5 -5
- package/dist/{list-C9996vbS.mjs → list-O_nmgwSj.mjs} +3 -3
- package/dist/{list-C1oEpUZG.mjs → list-jT5ndEGr.mjs} +3 -3
- package/dist/{login-BMON3Fft.mjs → login-DOW1mr40.mjs} +15 -8
- package/dist/{logout-Cx934GzW.mjs → logout-BQ8wywf7.mjs} +2 -2
- package/dist/{measure-CUqJtDNm.mjs → measure-Bz-bGn-Z.mjs} +6 -6
- package/dist/{moderation-review-BdqEH6N1.mjs → moderation-review-Bf9bPNQI.mjs} +1 -1
- package/dist/{notification-CCZ9mrOw.mjs → notification-W2SVssyY.mjs} +1 -1
- package/dist/{parameter-Celg0wZa.mjs → parameter-DvRQMKd2.mjs} +6 -6
- package/dist/{parameter-values-DCrU02Az.mjs → parameter-values-B7rr6fcy.mjs} +21 -7
- package/dist/{parse-enum-Do5Cptbv.mjs → parse-enum-DAcTzG1q.mjs} +1 -1
- package/dist/{parse-id-oCbmouCn.mjs → parse-id-5BZGQ9Vd.mjs} +1 -1
- package/dist/{parse-ref-Df8gusl4.mjs → parse-ref-ByXc-pls.mjs} +1 -1
- package/dist/{parse-text-CVrP7GmZ.mjs → parse-text-FgX60vIg.mjs} +1 -1
- package/dist/{path-DTuSDGd6.mjs → path-CHQguAPa.mjs} +4 -4
- package/dist/{poll-BKo5dK0l.mjs → poll-CgtcJopL.mjs} +2 -2
- package/dist/{preflight-UeYuGDPr.mjs → preflight-ChTKhB8Y.mjs} +2 -2
- package/dist/{process-BpmZXbcw.mjs → process-aqXm5QgC.mjs} +1 -1
- package/dist/{publish-D3GwLC-K.mjs → publish-CaoFOucS.mjs} +4 -4
- package/dist/{pulse-Dz0ocv0l.mjs → pulse-CC81N2_0.mjs} +1 -1
- package/dist/{pulse-DzVPfb5J.mjs → pulse-JPrq6NFP.mjs} +2 -2
- package/dist/{query-Ct697cY-.mjs → query-0u1WR1bV.mjs} +13 -12
- package/dist/query-BKtMP5eH.mjs +13 -0
- package/dist/{query-B1Cp9EO6.mjs → query-CzDBwAZD.mjs} +17 -7
- package/dist/{remapping-RsoPWE7c.mjs → remapping-CodmT28F.mjs} +5 -5
- package/dist/{remove-collection-BJo3Wd9K.mjs → remove-collection-DfUsf6Dd.mjs} +5 -5
- package/dist/{render-C_ev6qoW.mjs → render-DP6UoZNT.mjs} +2 -2
- package/dist/{replace-BSAGp3cR.mjs → replace-qWiUOgmn.mjs} +4 -4
- package/dist/{requirement-check-T3bjQ0Mr.mjs → requirement-check-sfmyH2PH.mjs} +2 -2
- package/dist/{rescan-values-rpro4Kw2.mjs → rescan-values-BcrhdSj_.mjs} +5 -5
- package/dist/{rescan-values-CE62_2dc.mjs → rescan-values-BuDmeda3.mjs} +5 -5
- package/dist/{run-BI1QO9Kn.mjs → run-BBRnFayr.mjs} +7 -7
- package/dist/{run-B3BRodEp.mjs → run-BG_5lR0x.mjs} +4 -4
- package/dist/run-DXXD-CnS.mjs +63 -0
- package/dist/{runs-CUseZezf.mjs → runs-CovgMSwy.mjs} +5 -5
- package/dist/{runtime-C5Ha6Ou8.mjs → runtime-Cmes70jO.mjs} +63 -80
- package/dist/{schema-tables-C7YkyRh0.mjs → schema-tables-CjKl8jr5.mjs} +6 -6
- package/dist/{schemas-Bj5sJ9uB.mjs → schemas-CAGvBAD_.mjs} +4 -4
- package/dist/{search-BAXg-EJw.mjs → search-1et9tv_s.mjs} +22 -4
- package/dist/{search-BsAwK7Rk.mjs → search-DFU6FHRd.mjs} +6 -6
- package/dist/{search-CB1A4HWx.mjs → search-OpYS2Ub4.mjs} +21 -6
- package/dist/{segment-BEjaeLc5.mjs → segment-D-SKpFzF.mjs} +6 -6
- package/dist/{send-Dfh8d1gG.mjs → send-DNu83_3E.mjs} +3 -3
- package/dist/{set-DA8dKyzi.mjs → set-CGYZcLVo.mjs} +4 -4
- package/dist/{set-active-AyjKtBD-.mjs → set-active-32IaLx1O.mjs} +4 -4
- package/dist/set-data-actions-DRhgAfhE.mjs +46 -0
- package/dist/{set-sensitivity-D0613dHA.mjs → set-sensitivity-D_i3XEe8.mjs} +6 -6
- package/dist/{setting-B-bxCkC0.mjs → setting-BBn9Lv9J.mjs} +4 -4
- package/dist/{setup-Bvvqlz9d.mjs → setup-8d7Uplhy.mjs} +3 -3
- package/dist/{signal-Dm4N0Bcc.mjs → signal-D8MH3LMN.mjs} +1 -1
- package/dist/{skill-list-DkuCf0k4.mjs → skill-list-D2FhhYS3.mjs} +1 -1
- package/dist/{skills-DlDCTGVE.mjs → skills-BZGd_9d3.mjs} +2 -2
- package/dist/{skills-DxrO7HUz.mjs → skills-BeIDC-_H.mjs} +3 -3
- package/dist/snippet-CpZ5cJ_y.mjs +19 -0
- package/dist/{stash-j9JPv3ns.mjs → stash-Dyc1xZ8u.mjs} +6 -6
- package/dist/{status-DcbvbRc5.mjs → status-CQZwl1PX.mjs} +3 -3
- package/dist/{status-DxNcrfnI.mjs → status-lCN8unWe.mjs} +37 -16
- package/dist/{subscription-CSR2t-xK.mjs → subscription-CEFxmtGH.mjs} +6 -6
- package/dist/{subscriptions--0YvW40u.mjs → subscriptions-AU14uznL.mjs} +6 -6
- package/dist/{summary-Dslv78-r.mjs → summary-Do9IBOQM.mjs} +5 -5
- package/dist/{sync-schema-Dgij5ICd.mjs → sync-schema-B3nyoKZl.mjs} +5 -5
- package/dist/{sync-schema-BSJiokQf.mjs → sync-schema-_gw9RQyF.mjs} +6 -6
- package/dist/{sync-task-a1zyF1Qb.mjs → sync-task-DNKG9Bk4.mjs} +4 -3
- package/dist/{table-Uvu1roSx.mjs → table-BDsqRU7a.mjs} +3 -3
- package/dist/{table-zAdW5_3H.mjs → table-CF7zW9cI.mjs} +33 -20
- package/dist/table-Cb_Uvw8m.mjs +26 -0
- package/dist/{table-selector-flags-B9OiA3Z1.mjs → table-selector-flags-CHfrVpYQ.mjs} +3 -3
- package/dist/{text-821Rn8M9.mjs → text-C2VwKF9D.mjs} +1 -1
- package/dist/{timeline-uDCmwGFT.mjs → timeline-BgWz8DYK.mjs} +1 -1
- package/dist/{timeline-CCSU2qOS.mjs → timeline-DcsCXNUt.mjs} +5 -1
- package/dist/{timeline-event-CSzx8EDP.mjs → timeline-event-B-nGnoVL.mjs} +6 -6
- package/dist/timeline-x0s_3sfc.mjs +21 -0
- package/dist/{transform-BKX6tl3i.mjs → transform-CWGJB8N_.mjs} +1 -1
- package/dist/{transform-job-AaMZRxAq.mjs → transform-job-BBZ5L46v.mjs} +1 -1
- package/dist/{transform-job-CCguL6LP.mjs → transform-job-ClX8e5iO.mjs} +2 -1
- package/dist/transform-job-Dlx2c6II.mjs +22 -0
- package/dist/transform-kP11Mv9_.mjs +28 -0
- package/dist/{transform-tag-DHg7j15d.mjs → transform-tag-dKCqQPTd.mjs} +5 -5
- package/dist/transform-test-Bexa_K89.mjs +173 -0
- package/dist/transform-test-C49ZTK7M.mjs +32 -0
- package/dist/transform-test-jFuzVhlT.mjs +16 -0
- package/dist/{transforms-DwxPfMiG.mjs → transforms-DRAws1f4.mjs} +5 -5
- package/dist/transport-Ck4anhoc.mjs +416 -0
- package/dist/{tree-COFmA20J.mjs → tree-Ddsj298M.mjs} +3 -3
- package/dist/{unpublish-BQClh4U7.mjs → unpublish-BMfjQ8UV.mjs} +3 -3
- package/dist/{unreferenced-DKc0zZDl.mjs → unreferenced-DRQrvH5r.mjs} +6 -6
- package/dist/{update-CMRWXoZ2.mjs → update-0AoF6QJ_.mjs} +4 -4
- package/dist/{update-BVFfoopT.mjs → update-6sfqiInZ.mjs} +5 -5
- package/dist/{update-MxvqmZ3z.mjs → update-8eXJso_l.mjs} +6 -6
- package/dist/{update-BNwjjMk6.mjs → update-BCC1Igr2.mjs} +5 -5
- package/dist/{update-CFfr1ZdL.mjs → update-BIL0JPqm.mjs} +4 -4
- package/dist/{update-BVMgrMy7.mjs → update-BQLTaw3z.mjs} +6 -6
- package/dist/{update-CPmPnEvm.mjs → update-Bpsdi6kM.mjs} +6 -6
- package/dist/{update-kM3TDlEp.mjs → update-BtfUX9CN.mjs} +8 -8
- package/dist/{update-myfBF5qV.mjs → update-C19B1Sry.mjs} +6 -6
- package/dist/{update-Ca8LSZer.mjs → update-C1VwtJWu.mjs} +5 -5
- package/dist/update-C1x90FSH.mjs +52 -0
- package/dist/{update-C9HK3i8s.mjs → update-CGpiLu7N.mjs} +8 -8
- package/dist/{update-Dwr3n7_n.mjs → update-CnxzmPRG.mjs} +7 -7
- package/dist/update-D1aKeWfo.mjs +41 -0
- package/dist/{update-Bgy2amR0.mjs → update-DlFHoUxe.mjs} +6 -6
- package/dist/{update-DJwu8UT2.mjs → update-DpP1EEC0.mjs} +6 -6
- package/dist/{update-B-wcIl8T.mjs → update-DrT10fxQ.mjs} +6 -6
- package/dist/{update-B8jQTspb.mjs → update-_hHnM1Hx.mjs} +7 -8
- package/dist/{update-dashcard-C8QN2Qcu.mjs → update-dashcard-CDI0Tnxy.mjs} +7 -7
- package/dist/{update-BBLbEPEP.mjs → update-pXVhyiFo.mjs} +6 -6
- package/dist/{upgrade-BBOEVIRa.mjs → upgrade-Cfouv1Ii.mjs} +4 -4
- package/dist/upload-Cqv-In6j.mjs +13 -0
- package/dist/{upload-CoBd4qBp.mjs → upload-DIEcI5iM.mjs} +3 -3
- package/dist/{upload-CxpXpjCf.mjs → upload-DnLXgUA-.mjs} +3 -3
- package/dist/{uuid-DW30GY7B.mjs → uuid-D0sH5txV.mjs} +2 -2
- package/dist/{validate-n85yMraN.mjs → validate-BQ7vI8_x.mjs} +1 -1
- package/dist/{validate-query-BwXvFFYi.mjs → validate-query-YtH3d5BP.mjs} +7 -3
- package/dist/{values-B6eFE4K5.mjs → values-BFPO6y5o.mjs} +5 -5
- package/dist/{verify-DnU-wXIs.mjs → verify-7fW020r_.mjs} +3 -3
- package/dist/{verify-BSq7x66g.mjs → verify-C-StvB4f.mjs} +5 -5
- package/dist/{verify-Dp8tUbP3.mjs → verify-CuGs0X3C.mjs} +5 -5
- package/dist/{verify-flags-CMpRkMPa.mjs → verify-flags-DEVMB9w0.mjs} +1 -1
- package/dist/{wait-D6Tw4ZxO.mjs → wait-Cvt8xO0h.mjs} +6 -6
- package/dist/{wait-flags-BRUzMI6S.mjs → wait-flags-BnZ-dfE2.mjs} +2 -2
- package/dist/{window-BqMFpWMh.mjs → window-CfK_j6m1.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +11 -5
- package/skill-data/data-action/SKILL.md +136 -0
- package/skill-data/git-sync/SKILL.md +3 -3
- package/skill-data/native-sql/SKILL.md +1 -1
- package/skill-data/transform/SKILL.md +64 -2
- package/skill-data/transform-test-plan/SKILL.md +82 -0
- package/skill-data/transform-test-plan/references/checklist.md +32 -0
- package/skill-data/transform-test-plan/references/checks.md +156 -0
- package/dist/card-Buc-X4Mh.mjs +0 -25
- package/dist/collection-D-sS0AFw.mjs +0 -21
- package/dist/dashboard-DH_soSQp.mjs +0 -35
- package/dist/db-C82M3Gpg.mjs +0 -24
- package/dist/dependency-CLznxtLE.mjs +0 -15
- package/dist/document-WhSEyI-3.mjs +0 -20
- package/dist/embedding-i-KqpefC.mjs +0 -9
- package/dist/field-qF1KRJYB.mjs +0 -21
- package/dist/git-sync-BlgB_-8-.mjs +0 -29
- package/dist/glossary-BvVxqjxJ.mjs +0 -14
- package/dist/input-sRdxNc3T.mjs +0 -61
- package/dist/list-BoVeF8QA.mjs +0 -38
- package/dist/snippet-B7Kau5U8.mjs +0 -19
- package/dist/table-qjgz2eek.mjs +0 -26
- package/dist/timeline-CNkrY3e3.mjs +0 -21
- package/dist/transform-Y86R7_2F.mjs +0 -28
- package/dist/transform-job-Cg_1jzWI.mjs +0 -22
- package/dist/upload-fcim1xtK.mjs +0 -13
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as ModerationStatus } from "./moderation-review-Bf9bPNQI.mjs";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
//#region ../client/src/domain/search.ts
|
|
3
4
|
const SEARCH_MODELS = [
|
|
@@ -11,6 +12,7 @@ const SEARCH_MODELS = [
|
|
|
11
12
|
"segment",
|
|
12
13
|
"measure",
|
|
13
14
|
"document",
|
|
15
|
+
"exploration",
|
|
14
16
|
"action",
|
|
15
17
|
"transform",
|
|
16
18
|
"indexed-entity"
|
|
@@ -26,20 +28,36 @@ const SearchResultCollection = z.object({
|
|
|
26
28
|
authority_level: z.string().nullable(),
|
|
27
29
|
type: z.string().nullable()
|
|
28
30
|
}).loose();
|
|
31
|
+
const SearchResultDashboard = z.object({
|
|
32
|
+
id: z.number().int(),
|
|
33
|
+
name: z.string()
|
|
34
|
+
}).loose();
|
|
29
35
|
const SearchResult = z.object({
|
|
30
36
|
id: z.union([z.number().int(), z.string()]),
|
|
31
37
|
name: z.string(),
|
|
32
38
|
model: SearchModel,
|
|
33
|
-
description: z.string().nullable(),
|
|
39
|
+
description: z.string().nullable().optional(),
|
|
34
40
|
archived: z.boolean().nullable(),
|
|
35
41
|
collection: SearchResultCollection.nullable(),
|
|
36
|
-
result_metadata: z.array(z.unknown()).nullable().optional()
|
|
42
|
+
result_metadata: z.array(z.unknown()).nullable().optional(),
|
|
43
|
+
database_id: z.number().int().nullable().optional(),
|
|
44
|
+
database_name: z.string().nullable().optional(),
|
|
45
|
+
table_schema: z.string().nullable().optional(),
|
|
46
|
+
table_name: z.string().nullable().optional(),
|
|
47
|
+
moderated_status: ModerationStatus.nullable().optional(),
|
|
48
|
+
dashboard: SearchResultDashboard.nullable().optional()
|
|
37
49
|
}).loose();
|
|
38
50
|
const SearchResultCompact = SearchResult.pick({
|
|
39
51
|
id: true,
|
|
40
52
|
name: true,
|
|
41
53
|
model: true,
|
|
42
|
-
description: true
|
|
43
|
-
|
|
54
|
+
description: true,
|
|
55
|
+
database_name: true,
|
|
56
|
+
table_schema: true,
|
|
57
|
+
table_name: true
|
|
58
|
+
}).strip().extend({ dashboard: SearchResultDashboard.pick({
|
|
59
|
+
id: true,
|
|
60
|
+
name: true
|
|
61
|
+
}).strip().nullable().optional() });
|
|
44
62
|
//#endregion
|
|
45
63
|
export { SearchResultCompact as i, SearchModel as n, SearchResult as r, SEARCH_MODELS as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as collectForOutput } from "./window-
|
|
5
|
-
import { n as parseText } from "./parse-text-
|
|
6
|
-
import { n as FieldValueLabel, o as fieldValueLabelView, u as toValueLabel } from "./field-
|
|
1
|
+
import { St as ConfigError, ct as outputFlags, lt as profileFlag, mt as listEnvelopeSchema, o as renderList, ot as listFlags, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as collectForOutput } from "./window-CfK_j6m1.mjs";
|
|
5
|
+
import { n as parseText } from "./parse-text-FgX60vIg.mjs";
|
|
6
|
+
import { n as FieldValueLabel, o as fieldValueLabelView, u as toValueLabel } from "./field-BVz4AS3f.mjs";
|
|
7
7
|
//#region src/commands/field/search.ts
|
|
8
8
|
const FieldSearchListEnvelope = listEnvelopeSchema(FieldValueLabel);
|
|
9
9
|
function fieldSearchValue(value, limit) {
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { r as windowServerPage } from "./window-
|
|
5
|
-
import { i as SearchResultCompact, n as SearchModel, t as SEARCH_MODELS } from "./search-
|
|
6
|
-
import { t as parseOptionalText } from "./parse-text-
|
|
1
|
+
import { St as ConfigError, at as listFlag, bt as parseEnumCsv, ct as outputFlags, lt as profileFlag, mt as listEnvelopeSchema, o as renderList, rt as connectionFlags, st as listFlagsWithDefaultLimit } from "./cli.mjs";
|
|
2
|
+
import { n as parseIdCsv, t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { r as windowServerPage } from "./window-CfK_j6m1.mjs";
|
|
5
|
+
import { i as SearchResultCompact, n as SearchModel, t as SEARCH_MODELS } from "./search-1et9tv_s.mjs";
|
|
6
|
+
import { t as parseOptionalText } from "./parse-text-FgX60vIg.mjs";
|
|
7
7
|
//#region src/output/views/search.ts
|
|
8
|
+
function searchLocation(row) {
|
|
9
|
+
const tableName = row.table_name;
|
|
10
|
+
if (tableName !== void 0 && tableName !== null) {
|
|
11
|
+
const qualified = row.table_schema ? `${row.table_schema}.${tableName}` : tableName;
|
|
12
|
+
return row.database_name ? `${row.database_name}: ${qualified}` : qualified;
|
|
13
|
+
}
|
|
14
|
+
const dashboard = row.dashboard;
|
|
15
|
+
if (dashboard !== void 0 && dashboard !== null) return `dashboard ${dashboard.name}`;
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
8
18
|
const searchResultView = {
|
|
9
19
|
compactPick: SearchResultCompact,
|
|
10
20
|
tableColumns: [
|
|
@@ -19,6 +29,11 @@ const searchResultView = {
|
|
|
19
29
|
{
|
|
20
30
|
key: "name",
|
|
21
31
|
label: "Name"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "table_name",
|
|
35
|
+
label: "Location",
|
|
36
|
+
value: searchLocation
|
|
22
37
|
}
|
|
23
38
|
]
|
|
24
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
|
|
2
2
|
//#region src/commands/segment/index.ts
|
|
3
3
|
var segment_default = defineCommandGroup({
|
|
4
4
|
name: "segment",
|
|
@@ -11,11 +11,11 @@ var segment_default = defineCommandGroup({
|
|
|
11
11
|
purpose: "define reusable segments"
|
|
12
12
|
}],
|
|
13
13
|
subCommands: {
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
get: () => import("./get-
|
|
16
|
-
create: () => import("./create-
|
|
17
|
-
update: () => import("./update-
|
|
18
|
-
archive: () => import("./archive-
|
|
14
|
+
list: () => import("./list-jT5ndEGr.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-CmxYFUuR.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-qtTB8rIE.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-6sfqiInZ.mjs").then((mod) => mod.default),
|
|
18
|
+
archive: () => import("./archive-CpvpGZlz.mjs").then((mod) => mod.default)
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/alert/send.ts
|
|
6
6
|
const AlertSendResult = z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, m as formatScalar, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
4
4
|
import { r as SettingValue } from "./setting-DTiLCW8g.mjs";
|
|
5
5
|
import { t as settingValueView } from "./setting-CwRYgHYN.mjs";
|
|
6
|
-
import { t as parseSettingKey } from "./key-
|
|
6
|
+
import { t as parseSettingKey } from "./key-BYEv4Wgq.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/commands/setting/set.ts
|
|
9
9
|
const SettingValueInput = z.unknown().describe("Any JSON value; the setting's own type constraints are enforced server-side");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { n as TransformJobActiveResult } from "./transform-job-
|
|
4
|
-
import { t as parseEnumFlag } from "./parse-enum-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { n as TransformJobActiveResult } from "./transform-job-ClX8e5iO.mjs";
|
|
4
|
+
import { t as parseEnumFlag } from "./parse-enum-DAcTzG1q.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/transform-job/set-active.ts
|
|
7
7
|
const ActiveWord = z.enum(["true", "false"]);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { c as DatabaseWithSettings } from "./database-CxykzTAA.mjs";
|
|
5
|
+
import { t as parseEnumFlag } from "./parse-enum-DAcTzG1q.mjs";
|
|
6
|
+
import { t as databaseDataActionsView } from "./database-D8XzgJEz.mjs";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
//#region src/commands/db/set-data-actions.ts
|
|
9
|
+
const EnabledWord = z.enum(["true", "false"]);
|
|
10
|
+
var set_data_actions_default = defineMetabaseCommand({
|
|
11
|
+
meta: {
|
|
12
|
+
name: "set-data-actions",
|
|
13
|
+
description: "Enable or disable data actions for a database"
|
|
14
|
+
},
|
|
15
|
+
details: "The Data actions toggle of Admin → Databases (the `database-enable-actions` database setting): while it is off, data actions on the database can be neither created nor run. Needs an admin. The driver must support writes: `mb db get <id> --full --json` lists `actions` in `features`. Answers the database with its `settings`.",
|
|
16
|
+
skills: [{
|
|
17
|
+
skill: "data-action",
|
|
18
|
+
purpose: "author and run data actions on the database"
|
|
19
|
+
}],
|
|
20
|
+
requires: ["database.update"],
|
|
21
|
+
args: {
|
|
22
|
+
...outputFlags,
|
|
23
|
+
...profileFlag,
|
|
24
|
+
...connectionFlags,
|
|
25
|
+
id: {
|
|
26
|
+
type: "positional",
|
|
27
|
+
description: "Database id",
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
enabled: {
|
|
31
|
+
type: "positional",
|
|
32
|
+
description: "true to enable data actions, false to disable",
|
|
33
|
+
required: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
outputSchema: DatabaseWithSettings,
|
|
37
|
+
examples: ["mb db set-data-actions 2 true", "mb db set-data-actions 2 false --json"],
|
|
38
|
+
async run({ args, ctx, getClient }) {
|
|
39
|
+
const id = parseId(args.id);
|
|
40
|
+
const enabled = parseEnumFlag(args.enabled, EnabledWord, "enabled") === "true";
|
|
41
|
+
const database = await (await getClient()).database.update(id, { settings: { "database-enable-actions": enabled } });
|
|
42
|
+
renderSummary(database, databaseDataActionsView, `${enabled ? "Enabled" : "Disabled"} data actions for database ${database.id} "${database.name}".`, ctx);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { set_data_actions_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { f as FieldWithDataSensitivity, i as FieldDataSensitivity } from "./field-
|
|
5
|
-
import { t as parseEnumFlag } from "./parse-enum-
|
|
6
|
-
import { l as fieldWithDataSensitivityView } from "./field-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { f as FieldWithDataSensitivity, i as FieldDataSensitivity } from "./field-DoWQUl7V.mjs";
|
|
5
|
+
import { t as parseEnumFlag } from "./parse-enum-DAcTzG1q.mjs";
|
|
6
|
+
import { l as fieldWithDataSensitivityView } from "./field-BVz4AS3f.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/commands/field/set-sensitivity.ts
|
|
9
9
|
const NONE = "none";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
|
|
2
2
|
//#region src/commands/setting/index.ts
|
|
3
3
|
var setting_default = defineCommandGroup({
|
|
4
4
|
name: "setting",
|
|
@@ -8,9 +8,9 @@ var setting_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "setting get/set JSON value quoting"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
set: () => import("./set-
|
|
11
|
+
list: () => import("./list-O_nmgwSj.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-p2sZvp7v.mjs").then((m) => m.default),
|
|
13
|
+
set: () => import("./set-CGYZcLVo.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { n as SetupResult, r as SetupResultCompact, t as SetupInput } from "./setup-CO7QV-ao.mjs";
|
|
6
6
|
//#region src/output/views/setup.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mt as errorMessage, Tt as MetabaseError, xt as AbortError } from "./cli.mjs";
|
|
2
2
|
//#region ../client/src/signal.ts
|
|
3
3
|
function combineAborts(...signals) {
|
|
4
4
|
return AbortSignal.any(signals.filter((signal) => signal !== void 0));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as RequirementFailure, w as warn, x as listTruncationNotice } from "./cli.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/output/skill-list.ts
|
|
4
4
|
const UnavailableSkillJson = z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as checkFeatures } from "./requirement-check-
|
|
1
|
+
import { H as isFeatureName, M as readEnv, Mt as errorMessage, O as ENV_SKILLS_DIR, Pt as isFileNotFoundError, R as FEATURE_NAMES, St as ConfigError, jt as ValidationError, vt as parseCsv } from "./cli.mjs";
|
|
2
|
+
import { t as checkFeatures } from "./requirement-check-sfmyH2PH.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { closeSync, openSync, readFileSync, readSync, readdirSync, statSync } from "node:fs";
|
|
5
5
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -7,9 +7,9 @@ var skills_default = defineCommand({
|
|
|
7
7
|
},
|
|
8
8
|
default: "list",
|
|
9
9
|
subCommands: {
|
|
10
|
-
list: () => import("./list-
|
|
11
|
-
get: () => import("./get-
|
|
12
|
-
path: () => import("./path-
|
|
10
|
+
list: () => import("./list-CTlIVHeG.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-eNRULmE5.mjs").then((m) => m.default),
|
|
12
|
+
path: () => import("./path-CHQguAPa.mjs").then((m) => m.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
|
|
2
|
+
//#region src/commands/snippet/index.ts
|
|
3
|
+
var snippet_default = defineCommandGroup({
|
|
4
|
+
name: "snippet",
|
|
5
|
+
description: "Manage Metabase native query snippets",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "core",
|
|
8
|
+
purpose: "native-SQL snippets and body input"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-D8jiz8YP.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-Dp45rXRS.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-D6NLpIzV.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-0AoF6QJ_.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-HCVTRXI2.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-
|
|
5
|
-
import { l as syncStashView } from "./git-sync-
|
|
6
|
-
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-
|
|
1
|
+
import { St as ConfigError, c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { d as SyncStashResult } from "./git-sync-DP4wQFzm.mjs";
|
|
4
|
+
import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-BnZ-dfE2.mjs";
|
|
5
|
+
import { l as syncStashView } from "./git-sync-D1aKczo6.mjs";
|
|
6
|
+
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-DNKG9Bk4.mjs";
|
|
7
7
|
//#region src/commands/git-sync/stash.ts
|
|
8
8
|
const DEFAULT_STASH_MESSAGE = "Stashed from mb CLI";
|
|
9
9
|
var stash_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { C as profileAuthMethod,
|
|
3
|
-
import { a as renderUserRole, i as renderUserName, n as renderSkew, o as renderVersionTag, r as renderTimestamp, t as renderAuthMethod } from "./render-
|
|
1
|
+
import { a as renderItem, ct as outputFlags, lt as profileFlag } from "./cli.mjs";
|
|
2
|
+
import { C as profileAuthMethod, S as ProfileLastFailure, X as summarizeServer, Y as ServerSummary, b as ProbedUser, m as readProfileRecord, o as resolveProfileName, q as displayUrl, t as defineMetabaseCommand, x as ProfileAuthMethod } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { a as renderUserRole, i as renderUserName, n as renderSkew, o as renderVersionTag, r as renderTimestamp, t as renderAuthMethod } from "./render-DP6UoZNT.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/auth/status.ts
|
|
6
6
|
const AuthStatus = z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { r as Collection } from "./collection-
|
|
4
|
-
import {
|
|
5
|
-
import { n as formatSyncTask } from "./sync-task-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { r as Collection } from "./collection-DNmFKALA.mjs";
|
|
4
|
+
import { f as SyncTask, m as SyncType, t as RemoteSyncState } from "./git-sync-DP4wQFzm.mjs";
|
|
5
|
+
import { n as formatSyncTask } from "./sync-task-DNKG9Bk4.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/commands/git-sync/status.ts
|
|
8
8
|
const SyncedCollection = Collection.pick({
|
|
@@ -10,7 +10,9 @@ const SyncedCollection = Collection.pick({
|
|
|
10
10
|
name: true
|
|
11
11
|
}).strip();
|
|
12
12
|
const SyncStatus = z.object({
|
|
13
|
-
|
|
13
|
+
remote_configured: z.boolean(),
|
|
14
|
+
sync_type: RemoteSyncState.shape.sync_type,
|
|
15
|
+
branch: RemoteSyncState.shape.branch,
|
|
14
16
|
is_dirty: z.boolean(),
|
|
15
17
|
current_task: SyncTask.nullable(),
|
|
16
18
|
synced_collections: z.array(SyncedCollection)
|
|
@@ -18,6 +20,14 @@ const SyncStatus = z.object({
|
|
|
18
20
|
const syncStatusView = {
|
|
19
21
|
compactPick: SyncStatus,
|
|
20
22
|
tableColumns: [
|
|
23
|
+
{
|
|
24
|
+
key: "remote_configured",
|
|
25
|
+
label: "Remote configured"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "sync_type",
|
|
29
|
+
label: "Sync type"
|
|
30
|
+
},
|
|
21
31
|
{
|
|
22
32
|
key: "branch",
|
|
23
33
|
label: "Branch"
|
|
@@ -39,10 +49,10 @@ const syncStatusView = {
|
|
|
39
49
|
var status_default = defineMetabaseCommand({
|
|
40
50
|
meta: {
|
|
41
51
|
name: "status",
|
|
42
|
-
description: "Show current git-sync state (branch, dirty, current task)"
|
|
52
|
+
description: "Show current git-sync state (remote, sync type, branch, dirty, current task)"
|
|
43
53
|
},
|
|
44
54
|
requires: [
|
|
45
|
-
"gitSync.
|
|
55
|
+
"gitSync.remote",
|
|
46
56
|
"gitSync.isDirty",
|
|
47
57
|
"gitSync.currentTask",
|
|
48
58
|
"gitSync.syncedCollections"
|
|
@@ -56,34 +66,45 @@ var status_default = defineMetabaseCommand({
|
|
|
56
66
|
examples: ["mb git-sync status", "mb git-sync status --json"],
|
|
57
67
|
async run({ ctx, getClient }) {
|
|
58
68
|
const mb = await getClient();
|
|
59
|
-
const
|
|
60
|
-
const [dirtyRead, taskRead, collectionsRead,
|
|
69
|
+
const remoteRead = mb.gitSync.remote();
|
|
70
|
+
const [dirtyRead, taskRead, collectionsRead, settledRemote] = await Promise.allSettled([
|
|
61
71
|
mb.gitSync.isDirty(),
|
|
62
72
|
mb.gitSync.currentTask(),
|
|
63
73
|
mb.gitSync.syncedCollections(),
|
|
64
|
-
|
|
74
|
+
remoteRead
|
|
65
75
|
]);
|
|
66
76
|
const isDirty = fulfilled(dirtyRead);
|
|
67
77
|
const currentTask = fulfilled(taskRead);
|
|
68
78
|
const collections = fulfilled(collectionsRead);
|
|
69
|
-
const
|
|
79
|
+
const remote = fulfilled(settledRemote);
|
|
70
80
|
const syncedCollections = collections.data.map((collection) => ({
|
|
71
81
|
id: collection.id,
|
|
72
82
|
name: collection.name
|
|
73
83
|
}));
|
|
74
84
|
const summary = {
|
|
75
|
-
|
|
85
|
+
remote_configured: remote.configured,
|
|
86
|
+
sync_type: remote.sync_type,
|
|
87
|
+
branch: remote.branch,
|
|
76
88
|
is_dirty: isDirty,
|
|
77
89
|
current_task: currentTask,
|
|
78
90
|
synced_collections: syncedCollections
|
|
79
91
|
};
|
|
80
|
-
const
|
|
81
|
-
const
|
|
92
|
+
const remotePart = formatRemote(remote);
|
|
93
|
+
const branchPart = remote.branch === null ? "git-sync branch not set" : `Branch ${remote.branch}`;
|
|
94
|
+
const dirtyPart = formatDirty(summary);
|
|
82
95
|
const taskPart = currentTask === null ? "No task running." : formatSyncTask(currentTask);
|
|
83
96
|
const scopePart = formatSyncedCollections(syncedCollections);
|
|
84
|
-
renderSummary(summary, syncStatusView, `${branchPart} — ${dirtyPart}. ${taskPart} ${scopePart}`, ctx);
|
|
97
|
+
renderSummary(summary, syncStatusView, `${remotePart} ${branchPart} — ${dirtyPart}. ${taskPart} ${scopePart}`, ctx);
|
|
85
98
|
}
|
|
86
99
|
});
|
|
100
|
+
function formatRemote(remote) {
|
|
101
|
+
const syncType = SyncType.safeParse(remote.sync_type).success ? remote.sync_type : `unrecognized sync type "${remote.sync_type}"`;
|
|
102
|
+
return remote.configured ? `Remote configured, ${syncType}.` : `No remote configured (${syncType}).`;
|
|
103
|
+
}
|
|
104
|
+
function formatDirty(status) {
|
|
105
|
+
if (status.is_dirty) return "Metabase has unsynced local changes";
|
|
106
|
+
return status.remote_configured ? "in sync with the remote" : "no unsynced local changes";
|
|
107
|
+
}
|
|
87
108
|
function formatSyncedCollections(collections) {
|
|
88
109
|
if (collections.length === 0) return "No collections are marked for sync.";
|
|
89
110
|
return `Synced collections: ${collections.map((collection) => `${collection.name} (${collection.id})`).join(", ")}.`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
|
|
2
2
|
//#region src/commands/subscription/index.ts
|
|
3
3
|
var subscription_default = defineCommandGroup({
|
|
4
4
|
name: "subscription",
|
|
@@ -11,11 +11,11 @@ var subscription_default = defineCommandGroup({
|
|
|
11
11
|
purpose: "the dashboard and dashcards a subscription delivers"
|
|
12
12
|
}],
|
|
13
13
|
subCommands: {
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
get: () => import("./get-
|
|
16
|
-
create: () => import("./create-
|
|
17
|
-
update: () => import("./update-
|
|
18
|
-
archive: () => import("./archive-
|
|
14
|
+
list: () => import("./list-C-f-G-cC.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-B0RQPTV-2.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-DsCydgm22.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-BQLTaw3z.mjs").then((mod) => mod.default),
|
|
18
|
+
archive: () => import("./archive-qy0CFo1s2.mjs").then((mod) => mod.default)
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as windowList } from "./window-
|
|
5
|
-
import { t as pulseView } from "./pulse-
|
|
6
|
-
import { SubscriptionListEnvelope } from "./list-
|
|
1
|
+
import { ct as outputFlags, lt as profileFlag, o as renderList, ot as listFlags, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { n as windowList } from "./window-CfK_j6m1.mjs";
|
|
5
|
+
import { t as pulseView } from "./pulse-JPrq6NFP.mjs";
|
|
6
|
+
import { SubscriptionListEnvelope } from "./list-C-f-G-cC.mjs";
|
|
7
7
|
//#region src/commands/dashboard/subscriptions.ts
|
|
8
8
|
var subscriptions_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { c as FieldSummary } from "./field-
|
|
5
|
-
import { a as fieldSummaryView } from "./field-
|
|
1
|
+
import { a as renderItem, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { c as FieldSummary } from "./field-DoWQUl7V.mjs";
|
|
5
|
+
import { a as fieldSummaryView } from "./field-BVz4AS3f.mjs";
|
|
6
6
|
//#region src/commands/field/summary.ts
|
|
7
7
|
var summary_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { g as TableSchemaSyncResult } from "./table-
|
|
5
|
-
import { o as tableSchemaSyncResultView } from "./table-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { g as TableSchemaSyncResult } from "./table-CF7zW9cI.mjs";
|
|
5
|
+
import { o as tableSchemaSyncResultView } from "./table-BDsqRU7a.mjs";
|
|
6
6
|
//#region src/commands/table/sync-schema.ts
|
|
7
7
|
var sync_schema_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as DatabaseSyncResult } from "./database-
|
|
5
|
-
import {
|
|
6
|
-
import { i as waitFlags, n as parseWaitFlags } from "./wait-flags-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { a as DatabaseSyncResult } from "./database-CxykzTAA.mjs";
|
|
5
|
+
import { n as databaseSyncResultView } from "./database-D8XzgJEz.mjs";
|
|
6
|
+
import { i as waitFlags, n as parseWaitFlags } from "./wait-flags-BnZ-dfE2.mjs";
|
|
7
7
|
//#region src/commands/db/sync-schema.ts
|
|
8
8
|
var sync_schema_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as FailedResultError } from "./cli.mjs";
|
|
2
|
+
import { f as SyncTask, h as isSyncTaskFailed } from "./git-sync-DP4wQFzm.mjs";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
//#region src/commands/git-sync/sync-task.ts
|
|
4
5
|
const SyncTaskIdle = z.object({ status: z.literal("idle") });
|
|
@@ -21,8 +22,8 @@ const DIVERGED_EXPORT = "the remote branch changed since the last sync";
|
|
|
21
22
|
function throwIfFailedTask(final, verb) {
|
|
22
23
|
if (final === null || !isSyncTaskFailed(final.status)) return;
|
|
23
24
|
const failure = withDetail(`git-sync ${verb} ${final.status}`, taskDetail(final));
|
|
24
|
-
if (final.status === "conflict") throw new
|
|
25
|
-
throw new
|
|
25
|
+
if (final.status === "conflict") throw new FailedResultError(`${sentence(failure)} ${CONFLICT_REMEDY}`);
|
|
26
|
+
throw new FailedResultError(failure);
|
|
26
27
|
}
|
|
27
28
|
function taskDetail(task) {
|
|
28
29
|
if (task.error_message) return task.error_message;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as FieldCompact } from "./field-
|
|
3
|
-
import { _ as TableSelectionResult, a as TableCompact, d as TableForeignKeyCompact, g as TableSchemaSyncResult, i as TableBulkEditResult, l as TableFieldValuesResult, n as TableBulkEditFields, v as TableSelectors } from "./table-
|
|
1
|
+
import { p as MALFORMED_CELL } from "./cli.mjs";
|
|
2
|
+
import { r as FieldCompact } from "./field-DoWQUl7V.mjs";
|
|
3
|
+
import { _ as TableSelectionResult, a as TableCompact, d as TableForeignKeyCompact, g as TableSchemaSyncResult, i as TableBulkEditResult, l as TableFieldValuesResult, n as TableBulkEditFields, v as TableSelectors } from "./table-CF7zW9cI.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/output/views/table.ts
|
|
6
6
|
function formatFieldName(value) {
|