@metabase/cli 0.4.1-alpha.fix-transform-test-ee-path.b41b46c → 0.4.1-alpha.release-65-integration-branch.5cbe297
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-CcjydN8e.mjs → add-collection-hv29px39.mjs} +2 -2
- package/dist/{alert-DBTU8iHe.mjs → alert-DnTCjYIu.mjs} +6 -6
- package/dist/{alerts-DsgnumqY.mjs → alerts-_ELZ12ye.mjs} +3 -3
- package/dist/{append-DUFn3_Og.mjs → append-B9sLLPYT.mjs} +2 -2
- package/dist/archive-3MQyc5Ih.mjs +32 -0
- package/dist/{archive-CI-WE7dA.mjs → archive-BAHzxkPR.mjs} +2 -2
- package/dist/{archive-sfqadV_a.mjs → archive-BRX5fKPb.mjs} +2 -2
- package/dist/{archive-jwyopr47.mjs → archive-BdX0Uvf2.mjs} +2 -2
- package/dist/{archive-CC6THE3k.mjs → archive-BhIeDoLk.mjs} +2 -2
- package/dist/{archive-DVgglC0F.mjs → archive-CKWWyI1i.mjs} +2 -2
- package/dist/{archive-CcPTctIo.mjs → archive-CdfyB0To.mjs} +2 -2
- package/dist/{archive-CWs273rN.mjs → archive-CwBk5vxQ.mjs} +4 -4
- package/dist/{archive-BEzfnrwM.mjs → archive-D22VL5Bx.mjs} +2 -2
- package/dist/{archive-DjQkD1WI.mjs → archive-DD8C0Krt2.mjs} +2 -2
- package/dist/{archive-Bxl1oeJr.mjs → archive-DDUSmbjn.mjs} +2 -2
- package/dist/{archive-BTfOiOnx.mjs → archive-ZnHzMJaM.mjs} +2 -2
- package/dist/{auth-IQKgyb_x.mjs → auth-Ca84a5fv.mjs} +4 -4
- package/dist/{body-CT1cQrhp.mjs → body-BVrHLwJU.mjs} +1 -1
- package/dist/{branches-ByUeNOBP.mjs → branches-frSt4WcS.mjs} +1 -1
- package/dist/{breaking-BKR88YVq.mjs → breaking-zlgxxwdd.mjs} +4 -4
- package/dist/{broken-DeS3_Cg2.mjs → broken-BUAzpKLc.mjs} +6 -6
- package/dist/{bulk-discard-values-DY7svs0d.mjs → bulk-discard-values-DU15VJPb.mjs} +3 -3
- package/dist/{bulk-edit-3EfcsqCu.mjs → bulk-edit-TSa4lNkM.mjs} +2 -2
- package/dist/{bulk-rescan-values-BpwnC_WY.mjs → bulk-rescan-values-BYJAsPC1.mjs} +2 -2
- package/dist/{bulk-sync-schema-Dwbs0TsG.mjs → bulk-sync-schema-DtaOwEtW.mjs} +2 -2
- package/dist/{cancel-Nz4jJ-Ey.mjs → cancel-DCOvSQsq.mjs} +2 -2
- package/dist/{cancel-task-CX_qYiJ0.mjs → cancel-task-osQLETJh.mjs} +1 -1
- package/dist/{card-DSrgU7lT.mjs → card-CQNUT9pm.mjs} +1 -1
- package/dist/{card-DmQO85ej.mjs → card-P2-4BkXV.mjs} +8 -8
- package/dist/{card-Bv4ZN0oV.mjs → card-P5mBknsl.mjs} +2 -12
- package/dist/{cards-FUW8-5PO.mjs → cards-B1pyPl77.mjs} +2 -2
- package/dist/cli.mjs +44 -34
- package/dist/{client-5y-BaV3d.mjs → client-1UIUBA_V.mjs} +84 -6
- package/dist/{collection-BPVrTfTv.mjs → collection-BI8Fy9vS.mjs} +7 -7
- package/dist/{collection-namespace-Q_up_tSg.mjs → collection-namespace-Cizv6-94.mjs} +1 -1
- package/dist/{content-translation-CSkaKlqa.mjs → content-translation-XnHISl5-.mjs} +2 -2
- package/dist/{copy-WlNBviDZ.mjs → copy-BCVW48Jq.mjs} +3 -3
- package/dist/{copy-fikpWJO4.mjs → copy-DAKdksBm.mjs} +3 -3
- package/dist/{copy-flags-j38p0var.mjs → copy-flags-D7NTgAz1.mjs} +1 -1
- package/dist/{create-DQM_AB3I.mjs → create--b64pMVM.mjs} +2 -2
- package/dist/{create-CEezFRTJ.mjs → create-B1ifNWcE.mjs} +2 -2
- package/dist/{create-DqGen4jU.mjs → create-B57D5E-o.mjs} +2 -2
- package/dist/{create-Dp1597uC.mjs → create-B5eo9PSN.mjs} +2 -2
- package/dist/{create-BI73JzZN.mjs → create-BOvtRwRz.mjs} +3 -3
- package/dist/{create-BmCz5lro.mjs → create-BfA1pnmS.mjs} +2 -2
- package/dist/{create-DdnC7PkI.mjs → create-Br5JxAeE.mjs} +3 -3
- package/dist/{create-CYqqBKhE.mjs → create-BzE4q6F_.mjs} +3 -3
- package/dist/create-C7fVbQbQ.mjs +48 -0
- package/dist/{create-CLLcjbzq.mjs → create-CW4WF073.mjs} +2 -2
- package/dist/{create-CC89lXeE.mjs → create-CuhQ1Khk.mjs} +2 -2
- package/dist/{create-C0MNevKK.mjs → create-D2iZsTRV.mjs} +2 -2
- package/dist/{create-yLNBBrwG.mjs → create-D7zeAm-0.mjs} +1 -1
- package/dist/{create-COv2mYmk.mjs → create-KyeJjhxH2.mjs} +2 -2
- package/dist/{create-9sPJd45D.mjs → create-XnYN2zoc.mjs} +4 -4
- package/dist/{create-branch-Cflee_NY.mjs → create-branch-Cli5cXvk.mjs} +1 -1
- package/dist/{create-CO6gBV7I.mjs → create-cqbpWaOi.mjs} +5 -5
- package/dist/{create-Ci7o6-Fk.mjs → create-g4pZa_Xa.mjs} +2 -2
- package/dist/{create-C4dDHOzR.mjs → create-qCgnB-oZ.mjs} +2 -2
- package/dist/{csv-CX1wws5-.mjs → csv-CWIcAm_-.mjs} +2 -2
- package/dist/{current-task-BTnORR7t.mjs → current-task-eBjusv2o.mjs} +1 -1
- package/dist/{dashboard-c_wOMtS9.mjs → dashboard-C-YJxDam.mjs} +11 -11
- package/dist/data-action-DER3EMD7.mjs +24 -0
- package/dist/data-action-DZxVB_hD.mjs +85 -0
- package/dist/data-action-R9qxJDPA.mjs +40 -0
- package/dist/{database-D-CRyRIv.mjs → database-BT7DVgSr.mjs} +1 -1
- package/dist/{database-MlUPpitM.mjs → database-Kq2AL5jH.mjs} +1 -1
- package/dist/{dataset-p5oNPQgL.mjs → dataset-BmvCxGoE.mjs} +1 -1
- package/dist/{db-DNevs1XU.mjs → db-_H9HAS6H.mjs} +6 -6
- package/dist/delete-B0O-mf63.mjs +44 -0
- package/dist/{delete-dfrM_M6T.mjs → delete-BMvVkW-m.mjs} +2 -2
- package/dist/{delete-D5Jy83V-.mjs → delete-BW5QXiyJ.mjs} +2 -2
- package/dist/{delete-ChmqxYa7.mjs → delete-BztmAfPc.mjs} +2 -2
- package/dist/{delete-BJ18ifIG.mjs → delete-C7QmQlp9.mjs} +2 -2
- package/dist/{delete-CCUYbNae.mjs → delete-CynbfvS2.mjs} +2 -2
- package/dist/{delete-Ch797MmM.mjs → delete-DOn2uk0u.mjs} +2 -2
- package/dist/{delete-CZTG4wI2.mjs → delete-DPU-uQxU.mjs} +2 -2
- package/dist/{delete-table-0xxoSknN.mjs → delete-table-DFqm6bAq.mjs} +2 -2
- package/dist/{dependencies-GvzMLOS2.mjs → dependencies-DZ-kMsDa.mjs} +2 -2
- package/dist/{dependency-DaGeVAHF.mjs → dependency-B4J1bwFh.mjs} +1 -1
- package/dist/{dependency-BZxbh7qe.mjs → dependency-BHKwKjhO.mjs} +1 -1
- package/dist/{dependency-D6DMbPVm.mjs → dependency-v9fHJ-N-.mjs} +5 -5
- package/dist/{dependents-BRqKb0Pu.mjs → dependents-Ia2fe_KK.mjs} +6 -6
- package/dist/{dirty-Bq2cf5AG.mjs → dirty-BrXAPows.mjs} +1 -1
- package/dist/{discard-values-k5-ePxWl.mjs → discard-values-B9mTgFbV.mjs} +3 -3
- package/dist/{document-DCqe5MO9.mjs → document-CGvUmD9i.mjs} +6 -6
- package/dist/{download-Dpbarf8I.mjs → download-CZdsDdhG.mjs} +1 -1
- package/dist/{eid-BEc1p_um.mjs → eid-DsGNJ16z.mjs} +2 -2
- package/dist/{entity-c_Br4SFc.mjs → entity-BFajNdQp.mjs} +1 -1
- package/dist/{entry-flags-z8cZTfaQ.mjs → entry-flags-BaZUoxUR.mjs} +1 -1
- package/dist/{events-DBpOpy2y.mjs → events-rkMIMpnS.mjs} +2 -2
- package/dist/execute-DvBse4aF.mjs +45 -0
- package/dist/{export-F-R_vF48.mjs → export-BCkzx9zk.mjs} +2 -2
- package/dist/{export-flags-QbLI0sKz.mjs → export-flags-TuwwRhD6.mjs} +1 -1
- package/dist/{export-preflight-0BvDa8Oz.mjs → export-preflight-p7botJyN.mjs} +1 -1
- package/dist/{field-CcCQ0goz.mjs → field-C9AcBe8x.mjs} +7 -7
- package/dist/{fields-DOdrazv2.mjs → fields-CJVXOLbB.mjs} +2 -2
- package/dist/{filter-flags-DiUgZ6vZ.mjs → filter-flags-yY4RM312.mjs} +3 -2
- package/dist/{fks-41Ig_ZQ2.mjs → fks-B6hjrdJP.mjs} +2 -2
- package/dist/{get-BlLUy1G0.mjs → get-B5L4BUGK.mjs} +1 -1
- package/dist/{get-DaxwG0AP.mjs → get-BYtFVJHT.mjs} +2 -2
- package/dist/{get-2l2CbHc6.mjs → get-BvUNnNRq.mjs} +2 -2
- package/dist/get-BwKQw_rR.mjs +31 -0
- package/dist/{get-Bby33eun.mjs → get-BxUgfEPW.mjs} +1 -1
- package/dist/{get-DwUB0K2G.mjs → get-C6uLL4bJ.mjs} +2 -2
- package/dist/{get-BAV-KpLU.mjs → get-CWBN0G-4.mjs} +4 -4
- package/dist/{get-BjJdy_Iw.mjs → get-CXeFg0F2.mjs} +2 -2
- package/dist/{get-aC5jUA1y.mjs → get-CoJcgFky.mjs} +3 -3
- package/dist/{get-YinpF0y5.mjs → get-D1p-5ibI.mjs} +2 -2
- package/dist/{get-B8hREA2A.mjs → get-D7HPiBB0.mjs} +2 -2
- package/dist/{get-OKOOd2yb.mjs → get-DPlSzRI0.mjs} +2 -2
- package/dist/{get-DxpDAUz4.mjs → get-DSjITPED.mjs} +2 -2
- package/dist/{get-D1c-C-_Q2.mjs → get-Do1LC4I52.mjs} +2 -2
- package/dist/{get-BVaN-tgY.mjs → get-DpYTiE4D.mjs} +2 -2
- package/dist/{get-CVJFF8Lb.mjs → get-DsbDxSpy.mjs} +2 -2
- package/dist/{get-CfeNeyGE.mjs → get-DyS1mRI6.mjs} +2 -2
- package/dist/{get-Dwp_BfIp.mjs → get-Eforof5e.mjs} +4 -4
- package/dist/{get-CPhMYZDP.mjs → get-oLc5jgid2.mjs} +2 -2
- package/dist/{get-run-PeXiUJwf.mjs → get-run-bU-d--nM.mjs} +2 -2
- package/dist/{get-CjK2GzFn.mjs → get-xmhwvAQJ.mjs} +1 -1
- package/dist/{get-TbBkN-jS.mjs → get-zotSW00n.mjs} +2 -2
- package/dist/git-sync-D4R0cHvk.mjs +29 -0
- package/dist/{glossary-LdAlftZW.mjs → glossary-C6EnoEXg.mjs} +4 -4
- package/dist/{graph-M7V_js_w.mjs → graph-CHXJ6mB7.mjs} +5 -5
- package/dist/{has-remote-changes-D7uABGR0.mjs → has-remote-changes-BXEe8Sv5.mjs} +1 -1
- package/dist/{import-CABYSyWS.mjs → import-DZQb4bUo.mjs} +2 -2
- package/dist/{is-dirty-DpQBXuVa.mjs → is-dirty-DwQ2_CCB.mjs} +1 -1
- package/dist/{items-BqUCPf-J.mjs → items-DNdICQ7M.mjs} +1 -1
- package/dist/{library-DDrpsgMv.mjs → library-Cdj_uj1H.mjs} +4 -4
- package/dist/{list-D217irjK.mjs → list-03zaydQe.mjs} +1 -1
- package/dist/{list-DO767sO1.mjs → list-2EWHwbQs.mjs} +1 -1
- package/dist/{list-CLRezReA.mjs → list-89ZgbsvW.mjs} +3 -3
- package/dist/{list-BygxQkq7.mjs → list-Be6kDkyT.mjs} +2 -2
- package/dist/{list-C9H24xr5.mjs → list-C-WGqRqN.mjs} +1 -1
- package/dist/{list-BQXq0A65.mjs → list-C7PV9fYj.mjs} +1 -1
- package/dist/{list-ISpYiawJ.mjs → list-CLJvuPXn.mjs} +3 -3
- package/dist/{list-Dd9o6Tut.mjs → list-CYlPgzD1.mjs} +1 -1
- package/dist/{list-CONZkA9i.mjs → list-CZoaZc9g.mjs} +1 -1
- package/dist/{list-CQJABPGk.mjs → list-CzxrdWB8.mjs} +2 -2
- package/dist/{list-BFAc460G.mjs → list-DcHPY1Ti.mjs} +1 -1
- package/dist/{list-CZF_gQnI.mjs → list-DoLqxEjq.mjs} +1 -1
- package/dist/{list-CEU9UXaZ.mjs → list-DsyvHBAv.mjs} +1 -1
- package/dist/{list-BXRUiZuH.mjs → list-F4ENGV7j.mjs} +1 -1
- package/dist/{list-CHUwj_Qh.mjs → list-M20foZz2.mjs} +1 -1
- package/dist/{list-Hiq5T4Bt.mjs → list-OKHcr76i.mjs} +1 -1
- package/dist/list-Owrzgtkc.mjs +28 -0
- package/dist/{list-D0MlsdSX.mjs → list-__Q79YXk.mjs} +1 -1
- package/dist/{list-yDJq3wNs.mjs → list-epIn3uFZ.mjs} +3 -3
- package/dist/{list-aHFBopQd.mjs → list-gqemddWB.mjs} +3 -3
- package/dist/{list-glgnTw7w.mjs → list-hINHmdMT.mjs} +1 -1
- package/dist/{login-DCWam2ec.mjs → login-BSqGgX8S.mjs} +3 -3
- package/dist/{logout-CmrJqhkc.mjs → logout-D92O4mQK.mjs} +1 -1
- package/dist/{measure-c_VUyXFN.mjs → measure-DhX_mmZK.mjs} +5 -5
- package/dist/{parameter-values-CnwWZrJ_.mjs → parameter-values-BY2WA9qg.mjs} +2 -2
- package/dist/{parse-id-aMXePsUP.mjs → parse-id-CxHp2akh.mjs} +1 -1
- package/dist/{path-CGbz-QSr.mjs → path-D4Q1ZzCw.mjs} +2 -2
- package/dist/{preflight-ChJ0pemy.mjs → preflight-BPaonBKy.mjs} +1 -1
- package/dist/{publish-7ke00CtK.mjs → publish-BhgyrJ6c.mjs} +2 -2
- package/dist/query-BKtMP5eH.mjs +13 -0
- package/dist/{query-8M7ZN2Ca.mjs → query-CsBe-kJn.mjs} +5 -5
- package/dist/{query-DNa-fGS7.mjs → query-DvlGWjgG.mjs} +9 -8
- package/dist/{remapping-Cy1CEown.mjs → remapping-CCEivr42.mjs} +2 -2
- package/dist/{remove-collection-B2CL66No.mjs → remove-collection-LpgGBYCl.mjs} +2 -2
- package/dist/{render-ColPG5G7.mjs → render-D5ehBS-7.mjs} +1 -1
- package/dist/{replace-COC3ggyx.mjs → replace-DeWgkbfZ.mjs} +2 -2
- package/dist/{rescan-values-DUX58myu.mjs → rescan-values-CDDVS1tl.mjs} +2 -2
- package/dist/{rescan-values-DXzXTw9a.mjs → rescan-values-aF18XAv6.mjs} +4 -4
- package/dist/{run-T2a4m1x9.mjs → run-Buf4B8QH.mjs} +3 -3
- package/dist/{run-C_nqwWmC.mjs → run-DlG3Ykj1.mjs} +3 -3
- package/dist/{run-C5wf-lug.mjs → run-DyGMvbMm.mjs} +2 -2
- package/dist/{runs-Datc76Wu.mjs → runs-D2CXgW10.mjs} +2 -2
- package/dist/{runtime-C3AL15Dp.mjs → runtime-X6hVzSMW.mjs} +1 -1
- package/dist/{schema-tables-CR2S5mNc.mjs → schema-tables-FUOIyoUU.mjs} +2 -2
- package/dist/{schemas-OrGjEuVc.mjs → schemas-CmfNeqzG.mjs} +2 -2
- package/dist/{search-BEXBlfak.mjs → search-CLpDqYpY.mjs} +2 -2
- package/dist/{search-CJYSB5eP.mjs → search-Dl7xzF6Q.mjs} +2 -2
- package/dist/{segment-Tt8GaRnc.mjs → segment-Bx28f38v.mjs} +5 -5
- package/dist/{send-uNLODakO.mjs → send-CoGV2zkp.mjs} +2 -2
- package/dist/{set-DRp3F4wz.mjs → set-CrR9IumN.mjs} +2 -2
- package/dist/{set-active-CAt6ieXS.mjs → set-active-CbiJv8Hg.mjs} +1 -1
- package/dist/{set-sensitivity--Qq2RXVE.mjs → set-sensitivity-CTHVxpnU.mjs} +2 -2
- package/dist/{setting-DMqvipRp.mjs → setting-CUxdweNJ.mjs} +3 -3
- package/dist/{setup-B2PC1NVz.mjs → setup-4uySIB-t.mjs} +2 -2
- package/dist/{skill-list-Cyx1935Q.mjs → skill-list-goCqmfFF.mjs} +1 -1
- package/dist/{skills-D7wu2iff.mjs → skills-86j411Qz.mjs} +3 -3
- package/dist/{skills-Dlp0MK6g.mjs → skills-DeWsLMwC.mjs} +1 -1
- package/dist/{snippet-D-5bKT_U.mjs → snippet-C3gamfFK.mjs} +5 -5
- package/dist/{stash-CHeQPI8Z.mjs → stash-BNKlbxtD.mjs} +2 -2
- package/dist/{status-Bdt5XWrQ.mjs → status-B7bwHLkk.mjs} +2 -2
- package/dist/{status-gTN3G-rs.mjs → status-Bul9El-c.mjs} +1 -1
- package/dist/{subscription-C9alueg1.mjs → subscription-DPAGevGU.mjs} +5 -5
- package/dist/{subscriptions-DJKbcxDy.mjs → subscriptions-DIRsHcKP.mjs} +3 -3
- package/dist/{summary-kaC0aINr.mjs → summary-CeVt80Kb.mjs} +2 -2
- package/dist/{sync-schema-CyKovAb9.mjs → sync-schema-B9fLcZoa.mjs} +5 -5
- package/dist/{sync-schema-C29bGCtt.mjs → sync-schema-oDTbhjW1.mjs} +2 -2
- package/dist/table-C--k-JXA.mjs +26 -0
- package/dist/{table-selector-flags-CSoedTgm.mjs → table-selector-flags-BUR0-n6j.mjs} +1 -1
- package/dist/{timeline-BetOmLYk.mjs → timeline-ClMmTycg.mjs} +7 -7
- package/dist/{timeline-event-DN3y8vwW.mjs → timeline-event-BY2Hj72e.mjs} +5 -5
- package/dist/transform-BZaNFGeK.mjs +28 -0
- package/dist/transform-job-QMI2qWin.mjs +22 -0
- package/dist/{transform-tag-CIKnNaQH.mjs → transform-tag-CzjLKILh.mjs} +4 -4
- package/dist/{transform-test-C5Havg4o.mjs → transform-test-B9le1jKH.mjs} +6 -6
- package/dist/{transforms-BQjwZKTN.mjs → transforms-0uhBh0H4.mjs} +2 -2
- package/dist/{transport-DuU3fLui.mjs → transport-BmNrb0Lz.mjs} +1 -1
- package/dist/{tree-C21CG5rm.mjs → tree-oBEw8hDj.mjs} +1 -1
- package/dist/{unpublish-C7MRZTmS.mjs → unpublish-BJ9OKN1N.mjs} +2 -2
- package/dist/{unreferenced-BJUIC_Ct.mjs → unreferenced-D6UyA_Nu.mjs} +4 -4
- package/dist/{update-CZ2eSAV5.mjs → update-7zsDGAWa.mjs} +3 -3
- package/dist/{update-B2F22ryV.mjs → update-BK_SpSrG.mjs} +3 -3
- package/dist/{update-9b4JHJWR.mjs → update-BZgHTH5P.mjs} +3 -3
- package/dist/update-Bdi40RG0.mjs +52 -0
- package/dist/{update-DDH6FTe6.mjs → update-BqrZ-8IK.mjs} +3 -3
- package/dist/{update-BXFGGYT8.mjs → update-CEhub3Wz.mjs} +4 -4
- package/dist/{update-EpHReUGk.mjs → update-CHA4VWKT.mjs} +6 -6
- package/dist/{update-CuYvtXQY.mjs → update-CKJ6Das4.mjs} +3 -3
- package/dist/{update-CCHTQjsP.mjs → update-CKe2Bwpv.mjs} +3 -3
- package/dist/{update-BQben_Xm.mjs → update-CXfLvhmK.mjs} +3 -3
- package/dist/{update-DEnsF5zT.mjs → update-CYQkWLpZ.mjs} +3 -3
- package/dist/{update-IEVAFvpi.mjs → update-Cv6IMLyu.mjs} +3 -3
- package/dist/{update-CYy-r_Jq.mjs → update-D9eLVWFQ.mjs} +4 -4
- package/dist/{update-CVO8Srng.mjs → update-DGwGjOnH.mjs} +3 -3
- package/dist/{update-D6oHLn1g.mjs → update-DKagaJw0.mjs} +3 -3
- package/dist/{update-CBcJTZo6.mjs → update-DgmlUn64.mjs} +3 -3
- package/dist/{update-DX1s6KnO.mjs → update-DneJLQXe.mjs} +5 -5
- package/dist/{update-C0QcHFIP.mjs → update-M7yDPmJ-.mjs} +3 -3
- package/dist/{update-Duxk_-dC.mjs → update-bGDXSnBh.mjs} +4 -4
- package/dist/{update-dashcard-C4ZndfvP.mjs → update-dashcard-DNsf-gJ1.mjs} +3 -3
- package/dist/{upgrade-o2DpB66j.mjs → upgrade-BRJH93W0.mjs} +1 -1
- package/dist/{upload-CEtKrueq.mjs → upload-CGz8u2wG.mjs} +1 -1
- package/dist/{upload-BqNErDXE.mjs → upload-T5wS1XtL.mjs} +3 -3
- package/dist/{uuid-D9oozo8p.mjs → uuid-3qmLYgrG.mjs} +1 -1
- package/dist/{validate-query-BEYjmSv2.mjs → validate-query-DIcK8alR.mjs} +5 -1
- package/dist/{values-De8aGDiJ.mjs → values-Bn2Wcz4t.mjs} +2 -2
- package/dist/{verify-DVjaammv.mjs → verify-C2K-zMuQ.mjs} +2 -2
- package/dist/{verify-DKmz4xJs.mjs → verify-CA4PEHlO.mjs} +2 -2
- package/dist/{verify-ob8JSLxv.mjs → verify-CCX2N98Q.mjs} +2 -2
- package/dist/{wait-BN_MzTng.mjs → wait-DCgCJBqX.mjs} +2 -2
- package/dist/{wait-flags-DQlX2yM_.mjs → wait-flags-aRQHTjwg.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +1 -4
- package/skill-data/data-action/SKILL.md +125 -0
- package/skill-data/native-sql/SKILL.md +1 -1
- package/dist/git-sync-CO199xCu.mjs +0 -29
- package/dist/table-8c-V5afO.mjs +0 -26
- package/dist/transform-job-DALBzYVV.mjs +0 -22
- package/dist/transform-p-6_thIh.mjs +0 -28
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { ct as InternalError, dt as ResponseShapeError, ft as TimeoutError, gt as formatZodIssue, ht as errorMessage, ot as ConfigError } from "./cli.mjs";
|
|
2
2
|
import { n as Notification, r as NotificationCardPayload, t as CARD_PAYLOAD_TYPE } from "./notification-DaA4bBHW.mjs";
|
|
3
|
-
import { P as HttpError, Z as PROBE_PATH, z as parseJsonOrPlain } from "./runtime-
|
|
4
|
-
import { n as createTransport } from "./transport-
|
|
3
|
+
import { P as HttpError, Z as PROBE_PATH, z as parseJsonOrPlain } from "./runtime-X6hVzSMW.mjs";
|
|
4
|
+
import { n as createTransport } from "./transport-BmNrb0Lz.mjs";
|
|
5
5
|
import { f as FieldWithDataSensitivity, h as fieldRemappedValueSchema, m as fieldDetailSchema, n as FieldBaseType, o as FieldSearchMatches, s as FieldSemanticType, u as FieldValues } from "./field-5nivEfd6.mjs";
|
|
6
6
|
import { a as TemporalUnit, r as ParameterValues } from "./parameter-Celg0wZa.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { r as PivotExportFormat, t as DatasetQuery } from "./query-BKtMP5eH.mjs";
|
|
8
|
+
import { a as CardQueryResult, t as Card } from "./card-P5mBknsl.mjs";
|
|
8
9
|
import { b as TableVisibilityType, p as TableQueryMetadata, s as TableDataLayerTier, t as Table, u as TableForeignKey, v as TableSelectors } from "./table-Ci6bhZkb.mjs";
|
|
9
|
-
import { t as Database } from "./database-
|
|
10
|
+
import { t as Database } from "./database-BT7DVgSr.mjs";
|
|
10
11
|
import { t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
11
|
-
import { o as compiledQuerySchema, r as QueryMetadata } from "./dataset-
|
|
12
|
+
import { o as compiledQuerySchema, r as QueryMetadata } from "./dataset-BmvCxGoE.mjs";
|
|
12
13
|
import { c as CollectionItem, m as CollectionTreeNode, r as Collection } from "./collection-BgPYl2c5.mjs";
|
|
13
14
|
import { t as ContentTranslationUploadResult } from "./content-translation-BrHOrmj9.mjs";
|
|
14
15
|
import { l as Dashcard, o as DashboardDetail, r as DashboardCopy, t as Dashboard } from "./dashboard-Phz3XpRM.mjs";
|
|
16
|
+
import { a as DataActionExecuteResult, s as dataActionSchema } from "./data-action-DZxVB_hD.mjs";
|
|
15
17
|
import { r as pollUntil } from "./poll-DFZRtTA_.mjs";
|
|
16
|
-
import { i as DependencyEntity, s as DependencyGraph, t as BreakingSource, u as DependencyNode } from "./dependency-
|
|
18
|
+
import { i as DependencyEntity, s as DependencyGraph, t as BreakingSource, u as DependencyNode } from "./dependency-B4J1bwFh.mjs";
|
|
17
19
|
import { t as Document } from "./document-COQzVLjW.mjs";
|
|
18
20
|
import { i as EidTranslateResult } from "./eid-translation-zEHtr5Oc.mjs";
|
|
19
21
|
import { c as SyncRemoteChanges, d as SyncTask, i as SyncExportPreflight, l as SyncSettingsUpdateResult, m as isSyncTaskTerminal, n as SyncDirtyItem, t as SyncBranchCreated } from "./git-sync-COokpYgc.mjs";
|
|
@@ -530,6 +532,81 @@ function stripEntityId(dashcard) {
|
|
|
530
532
|
};
|
|
531
533
|
}
|
|
532
534
|
//#endregion
|
|
535
|
+
//#region ../client/src/resources/data-action.ts
|
|
536
|
+
function dataActionResource(transport) {
|
|
537
|
+
async function readSchema(options) {
|
|
538
|
+
const { features } = await transport.server(options);
|
|
539
|
+
return dataActionSchema(features);
|
|
540
|
+
}
|
|
541
|
+
/** List the unarchived data actions the caller can see. `GET /api/action` answers a bare array. */
|
|
542
|
+
async function list(options = {}) {
|
|
543
|
+
await transport.require("dataAction.list", options);
|
|
544
|
+
const schema = await readSchema(options);
|
|
545
|
+
return {
|
|
546
|
+
data: await transport.requestParsed(z.array(schema), "/api/action", { ...options }),
|
|
547
|
+
total: null
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
/** Get one unarchived data action by id. */
|
|
551
|
+
async function get(id, options = {}) {
|
|
552
|
+
await transport.require("dataAction.get", options);
|
|
553
|
+
const schema = await readSchema(options);
|
|
554
|
+
return transport.requestParsed(schema, `/api/action/${id}`, { ...options });
|
|
555
|
+
}
|
|
556
|
+
/** Create a data action — a parameterized native query that writes to a database — in a collection. */
|
|
557
|
+
async function create(params, options = {}) {
|
|
558
|
+
await transport.require("dataAction.create", options);
|
|
559
|
+
const schema = await readSchema(options);
|
|
560
|
+
return transport.requestParsed(schema, "/api/action", {
|
|
561
|
+
...options,
|
|
562
|
+
method: "POST",
|
|
563
|
+
body: params
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
/** Update a data action by id, patching only the fields the body carries. */
|
|
567
|
+
async function update(id, params, options = {}) {
|
|
568
|
+
await transport.require("dataAction.update", options);
|
|
569
|
+
const schema = await readSchema(options);
|
|
570
|
+
return transport.requestParsed(schema, `/api/action/${id}`, {
|
|
571
|
+
...options,
|
|
572
|
+
method: "PUT",
|
|
573
|
+
body: params
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
/** Archive (soft-delete) a data action by id. Metabase models this as an update, not its own endpoint. */
|
|
577
|
+
async function archive(id, options = {}) {
|
|
578
|
+
await transport.require("dataAction.archive", options);
|
|
579
|
+
return update(id, { archived: true }, options);
|
|
580
|
+
}
|
|
581
|
+
/** Delete a data action by id, removing it and the dashboard buttons that run it. */
|
|
582
|
+
async function remove(id, options = {}) {
|
|
583
|
+
await transport.require("dataAction.delete", options);
|
|
584
|
+
await transport.requestRaw(`/api/action/${id}`, {
|
|
585
|
+
...options,
|
|
586
|
+
method: "DELETE",
|
|
587
|
+
expectContentType: "binary"
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/** Execute a data action by id with parameter values keyed by parameter id. */
|
|
591
|
+
async function execute(id, params, options = {}) {
|
|
592
|
+
await transport.require("dataAction.execute", options);
|
|
593
|
+
return transport.requestParsed(DataActionExecuteResult, `/api/action/${id}/execute`, {
|
|
594
|
+
...options,
|
|
595
|
+
method: "POST",
|
|
596
|
+
body: params
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
return {
|
|
600
|
+
list,
|
|
601
|
+
get,
|
|
602
|
+
create,
|
|
603
|
+
update,
|
|
604
|
+
archive,
|
|
605
|
+
delete: remove,
|
|
606
|
+
execute
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
//#endregion
|
|
533
610
|
//#region ../client/src/resources/database.ts
|
|
534
611
|
const DatabaseApiList = z.object({
|
|
535
612
|
data: z.array(Database),
|
|
@@ -3738,6 +3815,7 @@ function createClient(config, options) {
|
|
|
3738
3815
|
collection: collectionResource(transport),
|
|
3739
3816
|
contentTranslation: contentTranslationResource(transport),
|
|
3740
3817
|
dashboard: dashboardResource(transport),
|
|
3818
|
+
dataAction: dataActionResource(transport),
|
|
3741
3819
|
database: databaseResource(transport),
|
|
3742
3820
|
dataset: datasetResource(transport),
|
|
3743
3821
|
dependency: dependencyResource(transport),
|
|
@@ -8,13 +8,13 @@ var collection_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "collection ref forms and the transforms namespace"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
items: () => import("./items-
|
|
14
|
-
tree: () => import("./tree-
|
|
15
|
-
create: () => import("./create-
|
|
16
|
-
update: () => import("./update-
|
|
17
|
-
archive: () => import("./archive-
|
|
11
|
+
list: () => import("./list-C7PV9fYj.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-xmhwvAQJ.mjs").then((mod) => mod.default),
|
|
13
|
+
items: () => import("./items-DNdICQ7M.mjs").then((mod) => mod.default),
|
|
14
|
+
tree: () => import("./tree-oBEw8hDj.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-BfA1pnmS.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-BqrZ-8IK.mjs").then((mod) => mod.default),
|
|
17
|
+
archive: () => import("./archive-ZnHzMJaM.mjs").then((mod) => mod.default)
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ot as ConfigError } from "./cli.mjs";
|
|
2
|
-
import { P as HttpError } from "./runtime-
|
|
2
|
+
import { P as HttpError } from "./runtime-X6hVzSMW.mjs";
|
|
3
3
|
//#region src/commands/transform/collection-namespace.ts
|
|
4
4
|
const TRANSFORMS_NAMESPACE_HINT = "transforms can only be filed in a :transforms-namespace collection. Create one with `mb collection create --body '{\"name\":\"…\"}' --namespace transforms` and pass its id as collection_id, or omit collection_id to leave the transform uncollected.";
|
|
5
5
|
function enrichTransformCollectionError(error) {
|
|
@@ -4,8 +4,8 @@ var content_translation_default = defineCommandGroup({
|
|
|
4
4
|
name: "content-translation",
|
|
5
5
|
description: "Download or replace the content translation dictionary",
|
|
6
6
|
subCommands: {
|
|
7
|
-
download: () => import("./download-
|
|
8
|
-
upload: () => import("./upload-
|
|
7
|
+
download: () => import("./download-CZdsDdhG.mjs").then((mod) => mod.default),
|
|
8
|
+
upload: () => import("./upload-CGz8u2wG.mjs").then((mod) => mod.default)
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CxHp2akh.mjs";
|
|
4
4
|
import { t as Document } from "./document-COQzVLjW.mjs";
|
|
5
|
-
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-
|
|
5
|
+
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-D7NTgAz1.mjs";
|
|
6
6
|
import { t as documentView } from "./document-BsaKF8UR.mjs";
|
|
7
7
|
//#region src/commands/document/copy.ts
|
|
8
8
|
var copy_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CxHp2akh.mjs";
|
|
4
4
|
import { r as DashboardCopy } from "./dashboard-Phz3XpRM.mjs";
|
|
5
5
|
import { t as dashboardCopyView } from "./dashboard-XSTr9QCr.mjs";
|
|
6
|
-
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-
|
|
6
|
+
import { n as parseCopyFlags, t as copyFlags } from "./copy-flags-D7NTgAz1.mjs";
|
|
7
7
|
//#region src/commands/dashboard/copy.ts
|
|
8
8
|
var copy_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformTestCreateInput, t as TransformTest } from "./transform-test-BjjCQ2xm.mjs";
|
|
6
6
|
import { n as transformTestView } from "./transform-test-DHGKeuHa.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
3
|
import { r as GlossaryCreateInput, t as Glossary } from "./glossary-CdW6RFId.mjs";
|
|
4
4
|
import { t as glossaryView } from "./glossary-Del97Jqg.mjs";
|
|
5
|
-
import { n as readEntryInput, t as entryFlags } from "./entry-flags-
|
|
5
|
+
import { n as readEntryInput, t as entryFlags } from "./entry-flags-BaZUoxUR.mjs";
|
|
6
6
|
//#region src/commands/glossary/create.ts
|
|
7
7
|
var create_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as TransformJobCreateInput, t as TransformJob } from "./transform-job-CCguL6LP.mjs";
|
|
6
6
|
import { t as transformJobView } from "./transform-job-AaMZRxAq.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
2
|
import { a as NotificationCreateInput, n as Notification } from "./notification-DaA4bBHW.mjs";
|
|
3
3
|
import { t as notificationView } from "./notification-Cuuwoksm.mjs";
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
5
5
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
6
|
-
import { t as readBody } from "./body-
|
|
6
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
7
7
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
8
8
|
//#region src/commands/alert/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as MeasureCreateInput, t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { o as preflightMbql5Query, r as MEASURE_DEFINITION_LABELS, s as skipValidateFlag } from "./validate-query-DIcK8alR.mjs";
|
|
7
7
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
8
8
|
//#region src/commands/measure/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { f as CollectionNamespace, o as CollectionCreateInput, r as Collection } from "./collection-BgPYl2c5.mjs";
|
|
6
6
|
import { t as parseEnumFlag } from "./parse-enum-BPKULOSw.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as SegmentCreateInput, t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { i as SEGMENT_DEFINITION_LABELS, o as preflightMbql5Query, s as skipValidateFlag } from "./validate-query-DIcK8alR.mjs";
|
|
7
7
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
8
8
|
//#region src/commands/segment/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { a as DashboardCreateInput, t as Dashboard } from "./dashboard-Phz3XpRM.mjs";
|
|
6
6
|
import { n as dashboardView } from "./dashboard-XSTr9QCr.mjs";
|
|
7
|
-
import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-
|
|
7
|
+
import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-BPaonBKy.mjs";
|
|
8
8
|
//#region src/commands/dashboard/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
|
+
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
+
import { r as DataActionCreateInput, t as DataAction } from "./data-action-DZxVB_hD.mjs";
|
|
6
|
+
import { n as DATA_ACTION_DATASET_QUERY_LABELS, o as preflightMbql5Query, s as skipValidateFlag } from "./validate-query-DIcK8alR.mjs";
|
|
7
|
+
import { n as dataActionView } from "./data-action-R9qxJDPA.mjs";
|
|
8
|
+
//#region src/commands/data-action/create.ts
|
|
9
|
+
var create_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "create",
|
|
12
|
+
description: "Create a data action from JSON"
|
|
13
|
+
},
|
|
14
|
+
details: "A data action is a parameterized native query that writes to a database, filed in a collection. The JSON body needs `name`, `type: \"query\"`, `database_id`, a native `dataset_query` whose `{{tag}}` placeholders are its inputs, and `parameters` targeting those tags; `collection_id` picks the collection (omit for the root). Data actions must be enabled on the database. An MBQL 5 `dataset_query` is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
15
|
+
skills: [{
|
|
16
|
+
skill: "data-action",
|
|
17
|
+
purpose: "author a data action and its parameters"
|
|
18
|
+
}, {
|
|
19
|
+
skill: "native-sql",
|
|
20
|
+
purpose: "the native query and its template tags"
|
|
21
|
+
}],
|
|
22
|
+
requires: ["dataAction.create"],
|
|
23
|
+
args: {
|
|
24
|
+
...outputFlags,
|
|
25
|
+
...profileFlag,
|
|
26
|
+
...connectionFlags,
|
|
27
|
+
...bodyInputFlags,
|
|
28
|
+
...skipValidateFlag
|
|
29
|
+
},
|
|
30
|
+
inputSchema: DataActionCreateInput,
|
|
31
|
+
outputSchema: DataAction,
|
|
32
|
+
examples: [
|
|
33
|
+
"cat data-action.json | mb data-action create",
|
|
34
|
+
"mb data-action create --file data-action.json",
|
|
35
|
+
"mb data-action create --file data-action.json --skip-validate"
|
|
36
|
+
],
|
|
37
|
+
async run({ args, ctx, getClient }) {
|
|
38
|
+
const body = await readBody({
|
|
39
|
+
flag: args.body,
|
|
40
|
+
file: args.file
|
|
41
|
+
}, DataActionCreateInput);
|
|
42
|
+
preflightMbql5Query(body.dataset_query, DATA_ACTION_DATASET_QUERY_LABELS, { skip: args["skip-validate"] === true });
|
|
43
|
+
const created = await (await getClient()).dataAction.create(body);
|
|
44
|
+
renderSummary(created, dataActionView, `Created data action ${created.id} "${created.name}".`, ctx);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { create_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TimelineCreateInput, t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
6
6
|
import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as TimelineEvent, o as TimelineEventCreateInput } from "./timeline-CCSU2qOS.mjs";
|
|
6
6
|
import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as DocumentCreateInput, t as Document } from "./document-COQzVLjW.mjs";
|
|
6
6
|
import { t as documentView } from "./document-BsaKF8UR.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
3
|
import { t as Library } from "./library-C4M8TF2N.mjs";
|
|
4
4
|
import { t as libraryView } from "./library-DmkpcZPb.mjs";
|
|
5
5
|
//#region src/commands/library/create.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as PulseCreateInput, t as Pulse } from "./pulse-Dz0ocv0l.mjs";
|
|
6
6
|
import { t as pulseView } from "./pulse-CIza18rO.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformCreateInput, t as Transform } from "./transform-DiW7bREn.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as TRANSFORM_SOURCE_QUERY_LABELS, o as preflightMbql5Query, s as skipValidateFlag } from "./validate-query-DIcK8alR.mjs";
|
|
7
7
|
import { n as transformView } from "./transform-D4z70PIN.mjs";
|
|
8
|
-
import { t as enrichTransformCollectionError } from "./collection-namespace-
|
|
8
|
+
import { t as enrichTransformCollectionError } from "./collection-namespace-Cizv6-94.mjs";
|
|
9
9
|
//#region src/commands/transform/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, ot as ConfigError, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
3
|
import { t as SyncBranchCreated } from "./git-sync-COokpYgc.mjs";
|
|
4
4
|
import { n as syncBranchCreatedView } from "./git-sync-DspFahwV.mjs";
|
|
5
5
|
//#region src/commands/git-sync/create-branch.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
|
-
import { r as CardCreateInput, t as Card } from "./card-
|
|
6
|
-
import { n as cardView } from "./card-
|
|
7
|
-
import {
|
|
5
|
+
import { r as CardCreateInput, t as Card } from "./card-P5mBknsl.mjs";
|
|
6
|
+
import { n as cardView } from "./card-CQNUT9pm.mjs";
|
|
7
|
+
import { o as preflightMbql5Query, s as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-DIcK8alR.mjs";
|
|
8
8
|
//#region src/commands/card/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformTagCreateInput, t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
6
6
|
import { t as transformTagView } from "./transform-tag-Dmb4u3-Q.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as readBody } from "./body-BVrHLwJU.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as SnippetCreateInput, t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
6
6
|
import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CxHp2akh.mjs";
|
|
4
4
|
import { t as UploadResult } from "./upload-DAtxBBms.mjs";
|
|
5
5
|
import { n as requireUploadFilePath, t as readCsvFile } from "./upload-DJB7DMA1.mjs";
|
|
6
6
|
import { t as uploadResultView } from "./upload-C3z5ZaXA.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { J as outputFlags, U as connectionFlags, Y as profileFlag, p as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-X6hVzSMW.mjs";
|
|
3
3
|
import { u as syncTaskView } from "./git-sync-DspFahwV.mjs";
|
|
4
4
|
import { n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-BAMOf6_t.mjs";
|
|
5
5
|
//#region src/commands/git-sync/current-task.ts
|
|
@@ -18,17 +18,17 @@ var dashboard_default = defineCommandGroup({
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
subCommands: {
|
|
21
|
-
list: () => import("./list-
|
|
22
|
-
get: () => import("./get-
|
|
23
|
-
cards: () => import("./cards-
|
|
24
|
-
"parameter-values": () => import("./parameter-values-
|
|
25
|
-
subscriptions: () => import("./subscriptions-
|
|
26
|
-
create: () => import("./create-
|
|
27
|
-
update: () => import("./update-
|
|
28
|
-
"update-dashcard": () => import("./update-dashcard-
|
|
29
|
-
copy: () => import("./copy-
|
|
30
|
-
verify: () => import("./verify-
|
|
31
|
-
archive: () => import("./archive-
|
|
21
|
+
list: () => import("./list-__Q79YXk.mjs").then((mod) => mod.default),
|
|
22
|
+
get: () => import("./get-BvUNnNRq.mjs").then((mod) => mod.default),
|
|
23
|
+
cards: () => import("./cards-B1pyPl77.mjs").then((mod) => mod.default),
|
|
24
|
+
"parameter-values": () => import("./parameter-values-BY2WA9qg.mjs").then((mod) => mod.default),
|
|
25
|
+
subscriptions: () => import("./subscriptions-DIRsHcKP.mjs").then((mod) => mod.default),
|
|
26
|
+
create: () => import("./create-BzE4q6F_.mjs").then((mod) => mod.default),
|
|
27
|
+
update: () => import("./update-D9eLVWFQ.mjs").then((mod) => mod.default),
|
|
28
|
+
"update-dashcard": () => import("./update-dashcard-DNsf-gJ1.mjs").then((mod) => mod.default),
|
|
29
|
+
copy: () => import("./copy-DAKdksBm.mjs").then((mod) => mod.default),
|
|
30
|
+
verify: () => import("./verify-CA4PEHlO.mjs").then((mod) => mod.default),
|
|
31
|
+
archive: () => import("./archive-D22VL5Bx.mjs").then((mod) => mod.default)
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-D4w87fXL.mjs";
|
|
2
|
+
//#region src/commands/data-action/index.ts
|
|
3
|
+
var data_action_default = defineCommandGroup({
|
|
4
|
+
name: "data-action",
|
|
5
|
+
description: "Manage Metabase data actions",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "data-action",
|
|
8
|
+
purpose: "author and run data actions"
|
|
9
|
+
}, {
|
|
10
|
+
skill: "native-sql",
|
|
11
|
+
purpose: "the data action's native query and its template tags"
|
|
12
|
+
}],
|
|
13
|
+
subCommands: {
|
|
14
|
+
list: () => import("./list-Owrzgtkc.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-BwKQw_rR.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-C7fVbQbQ.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-Bdi40RG0.mjs").then((mod) => mod.default),
|
|
18
|
+
archive: () => import("./archive-3MQyc5Ih.mjs").then((mod) => mod.default),
|
|
19
|
+
delete: () => import("./delete-B0O-mf63.mjs").then((mod) => mod.default),
|
|
20
|
+
execute: () => import("./execute-DvBse4aF.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { data_action_default as default };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { t as DatasetQuery } from "./query-BKtMP5eH.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region ../client/src/domain/data-action.ts
|
|
4
|
+
const DataActionParameter = z.object({
|
|
5
|
+
id: z.string(),
|
|
6
|
+
type: z.string(),
|
|
7
|
+
name: z.string().optional(),
|
|
8
|
+
slug: z.string().optional(),
|
|
9
|
+
target: z.unknown().optional(),
|
|
10
|
+
required: z.boolean().optional()
|
|
11
|
+
}).loose();
|
|
12
|
+
const DataActionBase = z.object({
|
|
13
|
+
id: z.number().int(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
description: z.string().nullable(),
|
|
16
|
+
type: z.string(),
|
|
17
|
+
model_id: z.number().int().nullable(),
|
|
18
|
+
database_id: z.number().int().nullable().optional(),
|
|
19
|
+
dataset_query: z.unknown().optional(),
|
|
20
|
+
parameters: z.array(DataActionParameter).nullable(),
|
|
21
|
+
visualization_settings: z.unknown(),
|
|
22
|
+
archived: z.boolean(),
|
|
23
|
+
public_uuid: z.string().nullable(),
|
|
24
|
+
entity_id: z.string().nullable(),
|
|
25
|
+
creator_id: z.number().int(),
|
|
26
|
+
created_at: z.string(),
|
|
27
|
+
updated_at: z.string()
|
|
28
|
+
}).loose();
|
|
29
|
+
const DataAction = DataActionBase.extend({ collection_id: z.number().int().nullable() });
|
|
30
|
+
function withoutCollection(wire) {
|
|
31
|
+
return {
|
|
32
|
+
...wire,
|
|
33
|
+
collection_id: null
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** The shape every data action endpoint answers on a server with `features`, read as `DataAction`. */
|
|
37
|
+
function dataActionSchema(features) {
|
|
38
|
+
return features.dataActionCollections ? DataAction : DataActionBase.transform(withoutCollection);
|
|
39
|
+
}
|
|
40
|
+
const DataActionCompact = DataAction.pick({
|
|
41
|
+
id: true,
|
|
42
|
+
name: true,
|
|
43
|
+
type: true,
|
|
44
|
+
collection_id: true,
|
|
45
|
+
database_id: true,
|
|
46
|
+
archived: true
|
|
47
|
+
}).strip();
|
|
48
|
+
const DataActionParameterInput = z.object({
|
|
49
|
+
id: z.string().min(1),
|
|
50
|
+
type: z.string().min(1),
|
|
51
|
+
name: z.string().optional(),
|
|
52
|
+
slug: z.string().optional(),
|
|
53
|
+
target: z.unknown(),
|
|
54
|
+
required: z.boolean().optional()
|
|
55
|
+
}).loose();
|
|
56
|
+
const DataActionCreateInput = z.object({
|
|
57
|
+
name: z.string().min(1),
|
|
58
|
+
type: z.literal("query"),
|
|
59
|
+
database_id: z.number().int().positive(),
|
|
60
|
+
dataset_query: DatasetQuery,
|
|
61
|
+
parameters: z.array(DataActionParameterInput).optional(),
|
|
62
|
+
collection_id: z.number().int().positive().nullable().optional(),
|
|
63
|
+
description: z.string().nullable().optional(),
|
|
64
|
+
visualization_settings: z.unknown().optional()
|
|
65
|
+
}).strict();
|
|
66
|
+
const DataActionUpdateInput = z.object({
|
|
67
|
+
name: z.string().min(1).optional(),
|
|
68
|
+
database_id: z.number().int().positive().optional(),
|
|
69
|
+
dataset_query: DatasetQuery.optional(),
|
|
70
|
+
parameters: z.array(DataActionParameterInput).optional(),
|
|
71
|
+
collection_id: z.number().int().positive().nullable().optional(),
|
|
72
|
+
description: z.string().nullable().optional(),
|
|
73
|
+
visualization_settings: z.unknown().optional(),
|
|
74
|
+
archived: z.boolean().optional()
|
|
75
|
+
}).strict();
|
|
76
|
+
const DataActionParameterValue = z.union([
|
|
77
|
+
z.string(),
|
|
78
|
+
z.number(),
|
|
79
|
+
z.boolean(),
|
|
80
|
+
z.null()
|
|
81
|
+
]);
|
|
82
|
+
const DataActionExecuteInput = z.object({ parameters: z.record(z.string(), DataActionParameterValue) }).strict();
|
|
83
|
+
const DataActionExecuteResult = z.object({ "rows-affected": z.number().int() }).loose();
|
|
84
|
+
//#endregion
|
|
85
|
+
export { DataActionExecuteResult as a, DataActionExecuteInput as i, DataActionCompact as n, DataActionUpdateInput as o, DataActionCreateInput as r, dataActionSchema as s, DataAction as t };
|