@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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { n as windowList } from "./window-
|
|
4
|
-
import {
|
|
5
|
-
import { r as syncDirtyItemView } from "./git-sync-
|
|
1
|
+
import { 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 defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { n as windowList } from "./window-CfK_j6m1.mjs";
|
|
4
|
+
import { i as SyncDirtyItemCompact } from "./git-sync-DP4wQFzm.mjs";
|
|
5
|
+
import { r as syncDirtyItemView } from "./git-sync-D1aKczo6.mjs";
|
|
6
6
|
//#region src/commands/git-sync/dirty.ts
|
|
7
7
|
const SyncDirtyListEnvelope = listEnvelopeSchema(SyncDirtyItemCompact);
|
|
8
8
|
var dirty_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 { r as confirmDestructive } from "./delete-runtime-DRGveT8H.mjs";
|
|
5
|
+
import { l as tableValuesDiscardResultView, n as TableValuesDiscardResult } from "./table-BDsqRU7a.mjs";
|
|
6
6
|
//#region src/commands/table/discard-values.ts
|
|
7
7
|
var discard_values_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
|
|
2
|
+
//#region src/commands/document/index.ts
|
|
3
|
+
var document_default = defineCommandGroup({
|
|
4
|
+
name: "document",
|
|
5
|
+
description: "Manage Metabase documents",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "document",
|
|
8
|
+
purpose: "author the ProseMirror document body"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-BKhJfFyB.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-LRTRu85E.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-BwIOlpLc.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-Bpsdi6kM.mjs").then((mod) => mod.default),
|
|
15
|
+
copy: () => import("./copy-CyFf3e2Y.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-Bi-Sfq5T.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { document_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
1
|
+
import { lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
3
|
import { t as pipeToStdout } from "./stream-McixcoUl.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/content-translation/download.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { t as readBody } from "./body-Di7940x_.mjs";
|
|
1
|
+
import { St as ConfigError, c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags, vt as parseCsv } from "./cli.mjs";
|
|
2
|
+
import { O as givenValue, t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { a as EidTranslateResultCompact, i as EidTranslateResult, n as EidModel, r as EidTranslateInput, t as EID_MODELS } from "./eid-translation-
|
|
5
|
+
import { a as EidTranslateResultCompact, i as EidTranslateResult, n as EidModel, r as EidTranslateInput, t as EID_MODELS } from "./eid-translation-Ba92VOHe.mjs";
|
|
7
6
|
//#region src/output/views/eid-translation.ts
|
|
8
7
|
const eidTranslateView = {
|
|
9
8
|
compactPick: EidTranslateResultCompact,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as DependencyType } from "./dependency-
|
|
2
|
-
import { t as parseEnumFlag } from "./parse-enum-
|
|
1
|
+
import { f as DependencyType } from "./dependency-CaC6XuTY.mjs";
|
|
2
|
+
import { t as parseEnumFlag } from "./parse-enum-DAcTzG1q.mjs";
|
|
3
3
|
//#region src/commands/dependency/entity.ts
|
|
4
4
|
const entityArgs = {
|
|
5
5
|
type: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { St as ConfigError } from "./cli.mjs";
|
|
2
|
+
import { O as givenValue } 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
|
-
import { r as GlossaryCreateInput } from "./glossary-
|
|
5
|
+
import { r as GlossaryCreateInput } from "./glossary-QN-hHfOT.mjs";
|
|
6
6
|
//#region src/commands/glossary/entry-flags.ts
|
|
7
7
|
const entryFlags = {
|
|
8
8
|
...bodyInputFlags,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as windowList } from "./window-
|
|
5
|
-
import { a as TimelineEventCompact } from "./timeline-
|
|
6
|
-
import { t as timelineEventView } from "./timeline-
|
|
1
|
+
import { 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 { n as windowList } from "./window-CfK_j6m1.mjs";
|
|
5
|
+
import { a as TimelineEventCompact } from "./timeline-DcsCXNUt.mjs";
|
|
6
|
+
import { t as timelineEventView } from "./timeline-BgWz8DYK.mjs";
|
|
7
7
|
//#region src/commands/timeline/events.ts
|
|
8
8
|
const TimelineEventListEnvelope = listEnvelopeSchema(TimelineEventCompact);
|
|
9
9
|
var events_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
|
+
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
+
import { a as DataActionExecuteResult, i as DataActionExecuteInput } from "./data-action-DZxVB_hD.mjs";
|
|
7
|
+
import { t as dataActionExecuteResultView } from "./data-action-R9qxJDPA.mjs";
|
|
8
|
+
//#region src/commands/data-action/execute.ts
|
|
9
|
+
var execute_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "execute",
|
|
12
|
+
description: "Run a data action by id"
|
|
13
|
+
},
|
|
14
|
+
details: "The JSON body is `{\"parameters\": {...}}`, keyed by the data action's parameter ids. The data action writes to its database, so a run cannot be undone by the CLI.",
|
|
15
|
+
skills: [{
|
|
16
|
+
skill: "data-action",
|
|
17
|
+
purpose: "the parameter values a data action takes"
|
|
18
|
+
}],
|
|
19
|
+
requires: ["dataAction.execute"],
|
|
20
|
+
args: {
|
|
21
|
+
...outputFlags,
|
|
22
|
+
...profileFlag,
|
|
23
|
+
...connectionFlags,
|
|
24
|
+
...bodyInputFlags,
|
|
25
|
+
id: {
|
|
26
|
+
type: "positional",
|
|
27
|
+
description: "Data action id",
|
|
28
|
+
required: true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
inputSchema: DataActionExecuteInput,
|
|
32
|
+
outputSchema: DataActionExecuteResult,
|
|
33
|
+
examples: ["mb data-action execute 1 --body '{\"parameters\":{\"id\":1,\"note\":\"rush\"}}'", "mb data-action execute 1 --file values.json"],
|
|
34
|
+
async run({ args, ctx, getClient }) {
|
|
35
|
+
const id = parseId(args.id);
|
|
36
|
+
const body = await readBody({
|
|
37
|
+
flag: args.body,
|
|
38
|
+
file: args.file
|
|
39
|
+
}, DataActionExecuteInput);
|
|
40
|
+
const result = await (await getClient()).dataAction.execute(id, body);
|
|
41
|
+
renderSummary(result, dataActionExecuteResultView, `Ran data action ${id}; ${result["rows-affected"]} rows affected.`, ctx);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { execute_default as default };
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-
|
|
5
|
-
import { a as syncExportView } from "./git-sync-
|
|
6
|
-
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-
|
|
7
|
-
import { t as branchFlag } from "./branch-flag-
|
|
1
|
+
import { St as ConfigError, c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags, w as warn } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { s as SyncExportResult } from "./git-sync-DP4wQFzm.mjs";
|
|
4
|
+
import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-BnZ-dfE2.mjs";
|
|
5
|
+
import { a as syncExportView } from "./git-sync-D1aKczo6.mjs";
|
|
6
|
+
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-DNKG9Bk4.mjs";
|
|
7
|
+
import { t as branchFlag } from "./branch-flag-CPTQ4wXp.mjs";
|
|
8
8
|
//#region src/commands/git-sync/export.ts
|
|
9
9
|
var export_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
11
11
|
name: "export",
|
|
12
12
|
description: "Export Metabase changes back to the configured git remote"
|
|
13
13
|
},
|
|
14
|
-
details: "The export targets the branch git-sync tracks. On Metabase 63+ `--branch` defaults to it and must name it (the server answers 409 for any other branch); older servers export to the branch `--branch` names and switch git-sync to it, refusing with 400 when that branch's tip is not the last synced commit unless --force is given. To push to a new branch, use `git-sync stash` or `git-sync create-branch` first
|
|
15
|
-
requires: [
|
|
14
|
+
details: "The export targets the branch git-sync tracks. On Metabase 63+ `--branch` defaults to it and must name it (the server answers 409 for any other branch); older servers export to the branch `--branch` names and switch git-sync to it, refusing with 400 when that branch's tip is not the last synced commit unless --force is given. To push to a new branch, use `git-sync stash` or `git-sync create-branch` first; a `--branch` missing from the remote is refused before the export with a pointer to `create-branch`. When the remote has moved past the last sync, a plain export ends in a `conflict` task on 63+ and is refused with 400 on older servers. --merge (63+) folds the remote's changes in by a three-way merge (entities changed on both sides still end in `conflict`), --force overwrites them. `git-sync export-preflight` previews which applies. A task that ends in `conflict` may make the server count the remote commit it saw as synced, so a retry, --merge included, may no longer see the remote's changes. Never answer a conflict with a retry: keep the remote's side with `import --force`, Metabase's with `export --force`, or both through a reviewed PR from a new branch (`mb skills get git-sync`, \"After a conflict task\").",
|
|
15
|
+
requires: [
|
|
16
|
+
"gitSync.branch",
|
|
17
|
+
"gitSync.branches",
|
|
18
|
+
"gitSync.export"
|
|
19
|
+
],
|
|
16
20
|
args: {
|
|
17
21
|
...outputFlags,
|
|
18
22
|
...profileFlag,
|
|
@@ -56,16 +60,24 @@ var export_default = defineMetabaseCommand({
|
|
|
56
60
|
if (args.force) params.force = true;
|
|
57
61
|
if (args.merge) params.merge = true;
|
|
58
62
|
if (wait.enabled) params.wait = taskPollOptions(wait.schedule);
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
63
|
+
const mb = await getClient();
|
|
64
|
+
if (branch !== null && await mb.gitSync.branch() !== branch) {
|
|
65
|
+
if (!(await mb.gitSync.branches()).data.includes(branch)) throw missingBranchError(branch);
|
|
66
|
+
}
|
|
67
|
+
const result = await mb.gitSync.export(params);
|
|
68
|
+
const target = result.branch === null ? "" : ` Branch: ${result.branch}.`;
|
|
69
|
+
if (!wait.enabled) renderSummary(result, syncExportView, `Started export task #${result.task_id}.${target}`, ctx);
|
|
61
70
|
else {
|
|
62
71
|
const final = result.final ?? null;
|
|
63
|
-
renderSummary(result, syncExportView, final === null ? `Export task #${result.task_id} finished.` : formatSyncTask(final)
|
|
72
|
+
renderSummary(result, syncExportView, `${final === null ? `Export task #${result.task_id} finished.` : formatSyncTask(final)}${target}`, ctx);
|
|
64
73
|
throwIfFailedTask(final, "export");
|
|
65
74
|
}
|
|
66
75
|
emitRealignHint(ctx);
|
|
67
76
|
}
|
|
68
77
|
});
|
|
78
|
+
function missingBranchError(branch) {
|
|
79
|
+
return new ConfigError(`branch "${branch}" does not exist on the remote; run \`mb git-sync create-branch ${branch}\` to create it and switch git-sync to it, then export without --branch`);
|
|
80
|
+
}
|
|
69
81
|
function emitRealignHint(ctx) {
|
|
70
82
|
if (ctx.format !== "text") return;
|
|
71
83
|
warn("\nNote: if exporting to a host-bound repo, realign the host working tree with:\n git -C <repo-path> restore --staged --worktree .");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as parseEnumFlag } from "./parse-enum-
|
|
1
|
+
import { St as ConfigError, h as renderRows, m as formatScalar } from "./cli.mjs";
|
|
2
|
+
import { n as ExportFormat, r as PivotExportFormat } from "./query-BKtMP5eH.mjs";
|
|
3
|
+
import { t as parseEnumFlag } from "./parse-enum-DAcTzG1q.mjs";
|
|
4
4
|
//#region src/output/query-result.ts
|
|
5
5
|
function formatQueryResult(result) {
|
|
6
6
|
if (result.status !== "completed" || result.data === void 0) {
|
|
@@ -8,10 +8,18 @@ function formatQueryResult(result) {
|
|
|
8
8
|
return `Query ${result.status}${detail}`;
|
|
9
9
|
}
|
|
10
10
|
const head = result.data.cols.map((col) => col.display_name ?? col.name);
|
|
11
|
-
const
|
|
12
|
-
const summary = `${rowCount} row${rowCount === 1 ? "" : "s"}.`;
|
|
11
|
+
const summary = withCacheNote(rowCountSummary(result.row_count ?? result.data.rows.length, result.data.rows_truncated ?? result.data.pivot_rows_truncated), result.cached);
|
|
13
12
|
if (result.data.rows.length === 0) return summary;
|
|
14
|
-
return `${renderRows(head, result.data.rows.map((row) =>
|
|
13
|
+
return `${renderRows(head, result.data.rows.map((row) => row.map((cell) => formatScalar(cell))))}\n${summary}`;
|
|
14
|
+
}
|
|
15
|
+
function rowCountSummary(rowCount, rowLimit) {
|
|
16
|
+
const counted = `${rowCount} row${rowCount === 1 ? "" : "s"}`;
|
|
17
|
+
if (rowLimit === void 0) return `${counted}.`;
|
|
18
|
+
return `${counted}, truncated by the server at ${rowLimit} rows.`;
|
|
19
|
+
}
|
|
20
|
+
function withCacheNote(summary, cachedAt) {
|
|
21
|
+
if (cachedAt === void 0 || cachedAt === null) return summary;
|
|
22
|
+
return `${summary} Served from the cache computed at ${cachedAt}.`;
|
|
15
23
|
}
|
|
16
24
|
//#endregion
|
|
17
25
|
//#region src/commands/export-flags.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { i as syncExportPreflightView, t as formatExportPreflight } from "./git-sync-
|
|
5
|
-
import { t as branchFlag } from "./branch-flag-
|
|
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 { a as SyncExportPreflight } from "./git-sync-DP4wQFzm.mjs";
|
|
4
|
+
import { i as syncExportPreflightView, t as formatExportPreflight } from "./git-sync-D1aKczo6.mjs";
|
|
5
|
+
import { t as branchFlag } from "./branch-flag-CPTQ4wXp.mjs";
|
|
6
6
|
//#region src/commands/git-sync/export-preflight.ts
|
|
7
7
|
var export_preflight_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
|
|
2
|
+
//#region src/commands/field/index.ts
|
|
3
|
+
var field_default = defineCommandGroup({
|
|
4
|
+
name: "field",
|
|
5
|
+
description: "Manage Metabase fields",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "metadata",
|
|
8
|
+
purpose: "semantic types, FK targets, visibility, dropdown behavior"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
get: () => import("./get-DHSuVxrH.mjs").then((m) => m.default),
|
|
12
|
+
values: () => import("./values-BFPO6y5o.mjs").then((m) => m.default),
|
|
13
|
+
summary: () => import("./summary-Do9IBOQM.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-pXVhyiFo.mjs").then((m) => m.default),
|
|
15
|
+
search: () => import("./search-DFU6FHRd.mjs").then((m) => m.default),
|
|
16
|
+
remapping: () => import("./remapping-CodmT28F.mjs").then((m) => m.default),
|
|
17
|
+
"set-sensitivity": () => import("./set-sensitivity-D_i3XEe8.mjs").then((m) => m.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { field_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as FieldSummary, d as FieldValuesCompact, p as FieldWithDataSensitivityCompact, r as FieldCompact } from "./field-
|
|
1
|
+
import { c as FieldSummary, d as FieldValuesCompact, p as FieldWithDataSensitivityCompact, r as FieldCompact } from "./field-DoWQUl7V.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/output/views/field.ts
|
|
4
4
|
function formatTypeTag(value) {
|
|
@@ -13,6 +13,51 @@ const FieldValuesType = z.enum([
|
|
|
13
13
|
"none",
|
|
14
14
|
"auto-list"
|
|
15
15
|
]);
|
|
16
|
+
const SEMANTIC_TYPES_WITH_BASE = [
|
|
17
|
+
"type/AvatarURL",
|
|
18
|
+
"type/Birthdate",
|
|
19
|
+
"type/CancelationDate",
|
|
20
|
+
"type/CancelationTime",
|
|
21
|
+
"type/CancelationTimestamp",
|
|
22
|
+
"type/City",
|
|
23
|
+
"type/Comment",
|
|
24
|
+
"type/Coordinate",
|
|
25
|
+
"type/Cost",
|
|
26
|
+
"type/Country",
|
|
27
|
+
"type/CreationDate",
|
|
28
|
+
"type/CreationTime",
|
|
29
|
+
"type/CreationTimestamp",
|
|
30
|
+
"type/Currency",
|
|
31
|
+
"type/DeletionDate",
|
|
32
|
+
"type/DeletionTime",
|
|
33
|
+
"type/DeletionTimestamp",
|
|
34
|
+
"type/Description",
|
|
35
|
+
"type/Discount",
|
|
36
|
+
"type/Duration",
|
|
37
|
+
"type/Email",
|
|
38
|
+
"type/GrossMargin",
|
|
39
|
+
"type/ImageURL",
|
|
40
|
+
"type/Income",
|
|
41
|
+
"type/JoinDate",
|
|
42
|
+
"type/JoinTime",
|
|
43
|
+
"type/JoinTimestamp",
|
|
44
|
+
"type/Latitude",
|
|
45
|
+
"type/Longitude",
|
|
46
|
+
"type/Name",
|
|
47
|
+
"type/Percentage",
|
|
48
|
+
"type/Price",
|
|
49
|
+
"type/Quantity",
|
|
50
|
+
"type/Score",
|
|
51
|
+
"type/SerializedJSON",
|
|
52
|
+
"type/Share",
|
|
53
|
+
"type/State",
|
|
54
|
+
"type/Title",
|
|
55
|
+
"type/URL",
|
|
56
|
+
"type/UpdatedDate",
|
|
57
|
+
"type/UpdatedTime",
|
|
58
|
+
"type/UpdatedTimestamp",
|
|
59
|
+
"type/ZipCode"
|
|
60
|
+
];
|
|
16
61
|
const FieldBaseType = z.enum([
|
|
17
62
|
"type/*",
|
|
18
63
|
"type/field-values-unsupported",
|
|
@@ -22,6 +67,7 @@ const FieldBaseType = z.enum([
|
|
|
22
67
|
"type/Integer",
|
|
23
68
|
"type/BigInteger",
|
|
24
69
|
"type/Float",
|
|
70
|
+
"type/Double",
|
|
25
71
|
"type/Decimal",
|
|
26
72
|
"type/Text",
|
|
27
73
|
"type/UUID",
|
|
@@ -57,67 +103,28 @@ const FieldBaseType = z.enum([
|
|
|
57
103
|
"type/Structured",
|
|
58
104
|
"type/JSON",
|
|
59
105
|
"type/DruidJSON",
|
|
60
|
-
"type/XML"
|
|
106
|
+
"type/XML",
|
|
107
|
+
...SEMANTIC_TYPES_WITH_BASE
|
|
61
108
|
]);
|
|
62
109
|
const FieldSemanticType = z.enum([
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
"type/Currency",
|
|
67
|
-
"type/Income",
|
|
68
|
-
"type/Discount",
|
|
69
|
-
"type/Price",
|
|
70
|
-
"type/GrossMargin",
|
|
71
|
-
"type/Cost",
|
|
72
|
-
"type/Score",
|
|
73
|
-
"type/Duration",
|
|
110
|
+
"Semantic/*",
|
|
111
|
+
"Relation/*",
|
|
112
|
+
...SEMANTIC_TYPES_WITH_BASE,
|
|
74
113
|
"type/Location",
|
|
75
|
-
"type/Coordinate",
|
|
76
|
-
"type/Latitude",
|
|
77
|
-
"type/Longitude",
|
|
78
114
|
"type/Address",
|
|
79
|
-
"type/City",
|
|
80
|
-
"type/State",
|
|
81
|
-
"type/Country",
|
|
82
|
-
"type/ZipCode",
|
|
83
|
-
"type/URL",
|
|
84
|
-
"type/ImageURL",
|
|
85
|
-
"type/AvatarURL",
|
|
86
|
-
"type/Email",
|
|
87
|
-
"type/Description",
|
|
88
|
-
"type/Comment",
|
|
89
115
|
"type/IPAddress",
|
|
90
116
|
"type/Category",
|
|
91
117
|
"type/Enum",
|
|
92
|
-
"type/Name",
|
|
93
|
-
"type/Title",
|
|
94
118
|
"type/Product",
|
|
95
119
|
"type/Company",
|
|
96
120
|
"type/Subscription",
|
|
97
121
|
"type/Source",
|
|
98
122
|
"type/CreationTemporal",
|
|
99
|
-
"type/CreationTimestamp",
|
|
100
|
-
"type/CreationTime",
|
|
101
|
-
"type/CreationDate",
|
|
102
123
|
"type/JoinTemporal",
|
|
103
|
-
"type/JoinTimestamp",
|
|
104
|
-
"type/JoinTime",
|
|
105
|
-
"type/JoinDate",
|
|
106
124
|
"type/CancelationTemporal",
|
|
107
|
-
"type/CancelationTimestamp",
|
|
108
|
-
"type/CancelationTime",
|
|
109
|
-
"type/CancelationDate",
|
|
110
125
|
"type/DeletionTemporal",
|
|
111
|
-
"type/DeletionTimestamp",
|
|
112
|
-
"type/DeletionTime",
|
|
113
|
-
"type/DeletionDate",
|
|
114
126
|
"type/UpdatedTemporal",
|
|
115
|
-
"type/UpdatedTimestamp",
|
|
116
|
-
"type/UpdatedTime",
|
|
117
|
-
"type/UpdatedDate",
|
|
118
|
-
"type/Birthdate",
|
|
119
127
|
"type/Structured",
|
|
120
|
-
"type/SerializedJSON",
|
|
121
128
|
"type/JSON",
|
|
122
129
|
"type/DruidJSON",
|
|
123
130
|
"type/XML",
|
|
@@ -170,8 +177,13 @@ const Field = z.object({
|
|
|
170
177
|
description: z.string().nullable(),
|
|
171
178
|
database_type: z.string().nullable().optional(),
|
|
172
179
|
base_type: FieldBaseType,
|
|
180
|
+
effective_type: FieldBaseType.nullable(),
|
|
181
|
+
coercion_strategy: FieldCoercionStrategy.nullable(),
|
|
173
182
|
semantic_type: FieldSemanticType.nullable(),
|
|
174
183
|
fk_target_field_id: z.number().int().nullable(),
|
|
184
|
+
database_is_pk: z.boolean().nullable(),
|
|
185
|
+
parent_id: z.number().int().nullable(),
|
|
186
|
+
nfc_path: z.array(z.string()).nullable(),
|
|
175
187
|
has_field_values: FieldValuesType.nullable().optional(),
|
|
176
188
|
visibility_type: FieldVisibilityType.nullable().optional(),
|
|
177
189
|
active: z.boolean().optional(),
|
|
@@ -187,6 +199,7 @@ const FieldCompact = Field.pick({
|
|
|
187
199
|
semantic_type: true,
|
|
188
200
|
fk_target_field_id: true
|
|
189
201
|
}).strip();
|
|
202
|
+
const FieldWithTarget = Field.extend({ target: Field.nullable() });
|
|
190
203
|
const FieldWithDataSensitivity = Field.extend({ data_sensitivity: FieldDataSensitivity.nullable() });
|
|
191
204
|
const FieldDetail = z.union([FieldWithDataSensitivity, Field]);
|
|
192
205
|
/** The shape `GET` and `PUT /api/field/{id}` answer on a server with `features`. */
|
|
@@ -252,4 +265,4 @@ const FieldSummary = z.object({
|
|
|
252
265
|
distincts: z.number().int()
|
|
253
266
|
});
|
|
254
267
|
//#endregion
|
|
255
|
-
export { FieldDetail as a, FieldSummary as c, FieldValuesCompact as d, FieldWithDataSensitivity as f,
|
|
268
|
+
export { hasDataSensitivity as _, FieldDetail as a, FieldSummary as c, FieldValuesCompact as d, FieldWithDataSensitivity as f, fieldRemappedValueSchema as g, fieldDetailSchema as h, FieldDataSensitivity as i, FieldUpdateInput as l, FieldWithTarget as m, FieldBaseType as n, FieldSearchMatches as o, FieldWithDataSensitivityCompact as p, FieldCompact as r, FieldSemanticType as s, Field as t, FieldValues as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as windowList } from "./window-
|
|
5
|
-
import { r as FieldCompact } from "./field-
|
|
6
|
-
import { c as fieldView } from "./field-
|
|
1
|
+
import { 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 { n as windowList } from "./window-CfK_j6m1.mjs";
|
|
5
|
+
import { r as FieldCompact } from "./field-DoWQUl7V.mjs";
|
|
6
|
+
import { c as fieldView } from "./field-BVz4AS3f.mjs";
|
|
7
7
|
//#region src/commands/table/fields.ts
|
|
8
8
|
const FieldListEnvelope = listEnvelopeSchema(FieldCompact);
|
|
9
9
|
var fields_default = defineMetabaseCommand({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { at as listFlag, bt as parseEnumCsv, yt as parseEnum } from "./cli.mjs";
|
|
2
|
+
import { c as CardType } from "./card-QR3zEu6E.mjs";
|
|
3
|
+
import { i as SortDirection } from "./query-BKtMP5eH.mjs";
|
|
4
|
+
import { f as DependencyType, l as DependencyItemsSortColumn, p as DependentsSortColumn } from "./dependency-CaC6XuTY.mjs";
|
|
5
|
+
import { t as parseOptionalText } from "./parse-text-FgX60vIg.mjs";
|
|
5
6
|
//#region src/commands/dependency/filter-flags.ts
|
|
6
7
|
const sharedFilterFlags = {
|
|
7
8
|
"include-personal-collections": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as windowList } from "./window-
|
|
5
|
-
import { d as TableForeignKeyCompact } from "./table-
|
|
6
|
-
import { a as tableForeignKeyView } from "./table-
|
|
1
|
+
import { 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 { n as windowList } from "./window-CfK_j6m1.mjs";
|
|
5
|
+
import { d as TableForeignKeyCompact } from "./table-CF7zW9cI.mjs";
|
|
6
|
+
import { a as tableForeignKeyView } from "./table-BDsqRU7a.mjs";
|
|
7
7
|
//#region src/commands/table/fks.ts
|
|
8
8
|
const TableForeignKeyListEnvelope = listEnvelopeSchema(TableForeignKeyCompact);
|
|
9
9
|
var fks_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as Timeline } from "./timeline-
|
|
5
|
-
import { n as timelineView } from "./timeline-
|
|
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 { t as Timeline } from "./timeline-DcsCXNUt.mjs";
|
|
5
|
+
import { n as timelineView } from "./timeline-BgWz8DYK.mjs";
|
|
6
6
|
//#region src/commands/timeline/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as Pulse } from "./pulse-
|
|
5
|
-
import { t as pulseView } from "./pulse-
|
|
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 { t as Pulse } from "./pulse-CC81N2_0.mjs";
|
|
5
|
+
import { t as pulseView } from "./pulse-JPrq6NFP.mjs";
|
|
6
6
|
//#region src/commands/subscription/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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
4
|
import { t as Transform } from "./transform-DiW7bREn.mjs";
|
|
5
|
-
import { n as transformView } from "./transform-
|
|
5
|
+
import { n as transformView } from "./transform-CWGJB8N_.mjs";
|
|
6
6
|
//#region src/commands/transform/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { r as DatabaseGetInclude, t as Database } from "./database-
|
|
5
|
-
import {
|
|
1
|
+
import { a as renderItem, ct as outputFlags, lt as profileFlag, rt as connectionFlags, yt as parseEnum } from "./cli.mjs";
|
|
2
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { r as DatabaseGetInclude, t as Database } from "./database-CxykzTAA.mjs";
|
|
5
|
+
import { r as databaseView } from "./database-D8XzgJEz.mjs";
|
|
6
6
|
//#region src/commands/db/hints.ts
|
|
7
7
|
function fullRollupOversizeHint(dbId) {
|
|
8
8
|
return `this database is too large for a full rollup — get the table map with \`mb db get ${dbId} --include tables\`, then fetch fields per table of interest with \`mb table fields <table-id>\``;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as renderItem, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as Library } from "./library-
|
|
4
|
-
import { t as libraryView } from "./library-
|
|
1
|
+
import { a as renderItem, 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 Library } from "./library-DKIqzyUk.mjs";
|
|
4
|
+
import { t as libraryView } from "./library-wUiD2jbw.mjs";
|
|
5
5
|
//#region src/commands/library/get.ts
|
|
6
6
|
var get_default = defineMetabaseCommand({
|
|
7
7
|
meta: {
|