@metabase/cli 0.2.1-alpha.trust-system-ca.541e4e0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +196 -9
- package/dist/{add-collection-BZAVH5Wk.mjs → add-collection-B-Pf12HY.mjs} +4 -4
- package/dist/add-collection-B2PdVMRy.mjs +9 -0
- package/dist/alert-DGcECcDb.mjs +26 -0
- package/dist/alerts-CRGMX4eB.mjs +49 -0
- package/dist/{append-Cak5jykn.mjs → append-lL0IaI6U.mjs} +5 -5
- package/dist/{archive-BMbx6lt8.mjs → archive-3rLXY0nS.mjs} +4 -4
- package/dist/{archive-CjnCAM61.mjs → archive-BUFc1me2.mjs} +5 -5
- package/dist/{archive-CPgWNCG3.mjs → archive-Baz4OVDd.mjs} +4 -4
- package/dist/{archive-CytCvQpn.mjs → archive-C9mJGN6J.mjs} +4 -4
- package/dist/{archive-BIEnBoE8.mjs → archive-CUGRnyRV.mjs} +4 -4
- package/dist/{archive-op9pJRpg.mjs → archive-D3DErepm.mjs} +4 -4
- package/dist/{archive-CaKhG58H.mjs → archive-D8YrImIU.mjs} +6 -6
- package/dist/{archive-BVY_jD_g.mjs → archive-DihHU042.mjs} +5 -5
- package/dist/archive-DyPsHSFb.mjs +39 -0
- package/dist/{archive-DfbI8DRB.mjs → archive-ExcEma7q.mjs} +7 -7
- package/dist/archive-hKPQXgXa.mjs +38 -0
- package/dist/{auth-XfuGXI2K.mjs → auth-B8Yb4ZaN.mjs} +5 -5
- package/dist/{body-BW_CiL1d.mjs → body-DXJ2v3GY.mjs} +3 -3
- package/dist/{branches-gVRwKne4.mjs → branches-ByCzTuiv.mjs} +4 -4
- package/dist/{cancel-CBOJSslz.mjs → cancel-DvehNbDD.mjs} +3 -3
- package/dist/{cancel-task-Djancczz.mjs → cancel-task-BM8ADd3Y.mjs} +4 -4
- package/dist/{capabilities-CSjeWyLV.mjs → capabilities-1HTHeDa4.mjs} +1 -1
- package/dist/{card-B8G5jQQT.mjs → card-BFRRyTGs.mjs} +3 -3
- package/dist/card-BT7ce7uO.mjs +27 -0
- package/dist/{cards-23FtfL4S.mjs → cards-Bz6anDNX.mjs} +6 -6
- package/dist/cli.mjs +30 -28
- package/dist/collection-ahFSJT-e.mjs +23 -0
- package/dist/{collection-namespace-w1y5D0Uh.mjs → collection-namespace-8i_CvWsg.mjs} +2 -2
- package/dist/{create-BkvdOecg.mjs → create--_4GZUNY.mjs} +7 -6
- package/dist/{create-DbHIjWio.mjs → create-1O1UiTVt.mjs} +6 -6
- package/dist/{create-CvptjYVb.mjs → create-BnNRvoyz.mjs} +11 -11
- package/dist/{create-CGsTL5aE.mjs → create-BynNiG1N.mjs} +6 -6
- package/dist/{create-q2QqkwEN.mjs → create-CHK9cJcK.mjs} +8 -8
- package/dist/create-COI80Veo.mjs +52 -0
- package/dist/{create-CnT-L03B.mjs → create-CtIOvInN.mjs} +8 -8
- package/dist/{create-ldvT5L0W.mjs → create-Cy57naL0.mjs} +12 -12
- package/dist/{create-C_fyIHZU.mjs → create-D57tRDrg.mjs} +8 -8
- package/dist/{create-VA58AF6A.mjs → create-D6bXJlBS.mjs} +6 -6
- package/dist/{create-BRK8TBzp.mjs → create-DAj8pyfQ.mjs} +5 -5
- package/dist/create-DOpa2TmH.mjs +53 -0
- package/dist/{create-branch-BtqOfSRb.mjs → create-branch-BwqFHYcZ.mjs} +4 -4
- package/dist/{create-CnqGhtuF.mjs → create-qzjhJFP8.mjs} +6 -6
- package/dist/{create-DZBtbGqj.mjs → create-t7z8Eb4T.mjs} +6 -6
- package/dist/{create-D_eiLBqR.mjs → create-yK1-fuX5.mjs} +9 -9
- package/dist/cron-93wjhtrP.mjs +7 -0
- package/dist/{csv-C3O1wTQ8.mjs → csv-yoFA1hhv.mjs} +5 -5
- package/dist/{current-task-CZsZPe0o.mjs → current-task-D8Q1uFmk.mjs} +4 -4
- package/dist/{dashboard-BLihjDXg.mjs → dashboard-BSCXTX4H.mjs} +2 -2
- package/dist/dashboard-C__PiWrv.mjs +36 -0
- package/dist/{database-BOqzcexD.mjs → database-B-xwx5LA.mjs} +1 -1
- package/dist/{db-CHnqeJCo.mjs → db-BiLWl1J9.mjs} +7 -7
- package/dist/{delete-BmT5C6eK.mjs → delete-B8dui6O6.mjs} +5 -5
- package/dist/{delete-cF97pfFX.mjs → delete-BwPgIWV8.mjs} +5 -5
- package/dist/{delete-Dkfu4e5K.mjs → delete-CA7IjA5J.mjs} +5 -5
- package/dist/{delete-DgI03U43.mjs → delete-CawUDFud.mjs} +5 -5
- package/dist/{delete-JeRzVISE.mjs → delete-Dcu3iDkg.mjs} +5 -5
- package/dist/{delete-runtime-DiqKOEqi.mjs → delete-runtime-00-R9iJm.mjs} +2 -2
- package/dist/{delete-table-dnQs_Twm.mjs → delete-table-DS0b3i0k.mjs} +5 -5
- package/dist/{dependencies-BsMwFSxP.mjs → dependencies-BQVZylqV.mjs} +4 -4
- package/dist/{dirty-CN6sGKX3.mjs → dirty-BqdcrfUz.mjs} +4 -4
- package/dist/document-C9ykHYOG.mjs +22 -0
- package/dist/{eid-60sCZhQV.mjs → eid-DcCAs-RP.mjs} +5 -5
- package/dist/{events-CSZEAgs0.mjs → events-C9PqRUCO.mjs} +4 -4
- package/dist/{export-CAxUJer6.mjs → export-CdKR5nPT.mjs} +6 -6
- package/dist/field-P7aJaet9.mjs +21 -0
- package/dist/{fields-CLWtUlpR.mjs → fields-D2czTLKq.mjs} +5 -5
- package/dist/get-4rA8pbRu.mjs +38 -0
- package/dist/{get-DTjeTNGb.mjs → get-75Vdyusm.mjs} +4 -4
- package/dist/{get-Csa7Dz36.mjs → get-B2vvnMpl.mjs} +5 -5
- package/dist/{get-B_QKP1vR.mjs → get-B6fSPCfp.mjs} +4 -4
- package/dist/{get-BIHtWl2x.mjs → get-BbKC0fTx.mjs} +4 -4
- package/dist/{get-CRXEqpar.mjs → get-BfFKIfpX.mjs} +5 -4
- package/dist/{get-B22wjDxr.mjs → get-Bpw05IUm.mjs} +7 -7
- package/dist/{get-L8c_h5EP.mjs → get-CJYv3CfV.mjs} +3 -3
- package/dist/{get-H3X5e5-Y.mjs → get-CaIYg15K.mjs} +6 -6
- package/dist/get-CvXOGyFj.mjs +36 -0
- package/dist/{get-DxAx-2C0.mjs → get-Cvkt6GcQ.mjs} +4 -4
- package/dist/{get-Ct5TnofS.mjs → get-DQ0pb4tT.mjs} +4 -4
- package/dist/{get-fGOQA0GF.mjs → get-DXiL39gi.mjs} +6 -6
- package/dist/{get-Ca30K5_W.mjs → get-DXydDRVU.mjs} +4 -4
- package/dist/{get-CKnHNxak.mjs → get-DZRB5S37.mjs} +4 -4
- package/dist/{get-BNBRMNtC.mjs → get-Db8YNxId.mjs} +5 -5
- package/dist/{get-B_EinsrO.mjs → get-DhS4y0K9.mjs} +4 -4
- package/dist/{get-DU8V-7S2.mjs → get-Dy5f54pV.mjs} +4 -4
- package/dist/{get-run-DqwPQRMJ.mjs → get-run-BF5ZBE8o.mjs} +4 -4
- package/dist/{get-CaosV7j8.mjs → get-vGqyjGSW.mjs} +4 -4
- package/dist/git-sync-BzievbUz.mjs +31 -0
- package/dist/{has-remote-changes-D0ZIBHSk.mjs → has-remote-changes-CjDHphUH.mjs} +4 -4
- package/dist/{import-BcIcDPl9.mjs → import-DzA5Ty9_.mjs} +6 -6
- package/dist/{input-D2-H-QKX.mjs → input-BpXlmJ5J.mjs} +1 -1
- package/dist/{is-dirty-B87YMLV2.mjs → is-dirty-4kIyD4oP.mjs} +3 -3
- package/dist/is-dirty-Cv0bdKkX.mjs +8 -0
- package/dist/{items-DrP1b4Qj.mjs → items-BXH0f1r6.mjs} +6 -6
- package/dist/{key-GP1gxZZD.mjs → key-B9AAqwjq.mjs} +1 -1
- package/dist/{library-bUBWlweP.mjs → library-BFZYsBcz.mjs} +5 -5
- package/dist/list-AyGEaws8.mjs +8 -0
- package/dist/{list-TibX1b8i.mjs → list-Bar8uQRC.mjs} +3 -3
- package/dist/{list-D1pHJX7w.mjs → list-BiAVv9jX.mjs} +3 -3
- package/dist/{list-MPePXEWe.mjs → list-Bm1PlZEV.mjs} +3 -3
- package/dist/{list-DhT42e0q.mjs → list-BtgjcC2w.mjs} +3 -3
- package/dist/{list-B8zgT05M.mjs → list-By1yYVGq.mjs} +7 -7
- package/dist/{list-F_hMRbsa.mjs → list-CG3ec9BZ.mjs} +4 -4
- package/dist/{list-B8212eUr.mjs → list-CLgkOcmY.mjs} +5 -5
- package/dist/{list-TJjExx6e.mjs → list-CSnpbFML.mjs} +3 -3
- package/dist/list-Cn-VruXD.mjs +8 -0
- package/dist/{list-CoXeBm66.mjs → list-D7mMcRG5.mjs} +6 -6
- package/dist/{list-TQghfc-u.mjs → list-DOhVPh95.mjs} +3 -3
- package/dist/{list-GeqRHx8g.mjs → list-DSHteJOl.mjs} +4 -3
- package/dist/{list-B-_PTqKw.mjs → list-Dl81pkVs.mjs} +5 -5
- package/dist/{list-Cbhx7N_t.mjs → list-DwMcwucR.mjs} +3 -3
- package/dist/{list-CWQYaCp8.mjs → list-IxaPXKXu.mjs} +3 -3
- package/dist/list-SiSfX4wl.mjs +73 -0
- package/dist/{list-BhCahBEO.mjs → list-hKRQUcGB.mjs} +3 -3
- package/dist/list-oRyXsJXs.mjs +50 -0
- package/dist/{list-DCl7zHCp.mjs → list-w61Uovt2.mjs} +5 -5
- package/dist/{login-C5Ug3BVC.mjs → login-zUCMDLC8.mjs} +7 -7
- package/dist/{logout-B_N1N2DV.mjs → logout-BFh7QHx6.mjs} +3 -3
- package/dist/{measure-D9rKeA6Z.mjs → measure-DNldT89z.mjs} +6 -6
- package/dist/notification-BR5wehqg.mjs +201 -0
- package/dist/{parameter-values-ZXKECrJk.mjs → parameter-values-BYDFzxNY.mjs} +4 -4
- package/dist/{parse-enum-D5h-JePs.mjs → parse-enum-D1zTYr_i.mjs} +1 -1
- package/dist/{parse-id-ySsF4nA3.mjs → parse-id-waEVK-uR.mjs} +1 -1
- package/dist/{parse-ref-Ds8VxdKb.mjs → parse-ref-C3DUXwci.mjs} +1 -1
- package/dist/patch-BpjI9BOz.mjs +20 -0
- package/dist/patch-DrMVqf34.mjs +36 -0
- package/dist/{path-C6ucgeYs.mjs → path-Bvs9IR4k.mjs} +3 -3
- package/dist/{poll-CgzD9_RH.mjs → poll-rqLkEJVP.mjs} +2 -2
- package/dist/{poll-task-DF9xJl13.mjs → poll-task-CiB1o1wG.mjs} +2 -2
- package/dist/{preflight-Co2grgX_.mjs → preflight-DJOBTWVq.mjs} +3 -3
- package/dist/{process-jjR_DX5G.mjs → process-BxAUv3Wx.mjs} +1 -1
- package/dist/{prompt-BSqji7Fo.mjs → prompt-DmxSLNrO.mjs} +1 -1
- package/dist/{publish-F-QbufXr.mjs → publish-C1y_vGGw.mjs} +10 -10
- package/dist/pulse-C8q469KD.mjs +186 -0
- package/dist/{query-DX4r0-uz.mjs → query-B9LlGOZI.mjs} +8 -8
- package/dist/{query-DGBzATpV.mjs → query-DpVWKW-y.mjs} +12 -12
- package/dist/{query-result-D5J3Dlpn.mjs → query-result-Bvh89K4f.mjs} +1 -1
- package/dist/{remove-collection-C-msSyas.mjs → remove-collection-DYQibG6d.mjs} +6 -6
- package/dist/{replace-xlQv9yl_.mjs → replace-sHtPBNnA.mjs} +5 -5
- package/dist/{requests-COuEPJxE.mjs → requests-Pc0u7PQS.mjs} +2 -2
- package/dist/{rescan-values-BC2SVtY6.mjs → rescan-values-CuPGOzKI.mjs} +6 -6
- package/dist/{resolve-8iT-dXgX.mjs → resolve-BiL5scF0.mjs} +2 -2
- package/dist/{run-opQkYIaT.mjs → run-Ce_gPVcg.mjs} +3 -3
- package/dist/{run-Cg6k3kHo.mjs → run-D6jyZ0nv.mjs} +6 -6
- package/dist/{runs-Cbqm1HYG.mjs → runs-DRxrpAkU.mjs} +5 -5
- package/dist/{runtime-MGH96fhp.mjs → runtime-CPIHg_Zg.mjs} +104 -100
- package/dist/{schema-tables-8FjtkFIt.mjs → schema-tables-D91DWM5l.mjs} +5 -5
- package/dist/{schemas-L9kMsEJL.mjs → schemas-OVYRgvz9.mjs} +3 -3
- package/dist/{search-Csbb-u-_.mjs → search-msFNbxU6.mjs} +3 -3
- package/dist/{segment-DCeafJwX.mjs → segment-BIKVTq_n.mjs} +6 -6
- package/dist/{selectors-D34gXjQa.mjs → selectors-Bsyhe1zP.mjs} +3 -3
- package/dist/send-BeFpVrwD.mjs +60 -0
- package/dist/{set-active-gP4mjVDY.mjs → set-active-CFWtIWzX.mjs} +3 -3
- package/dist/{set-CfwncOI_.mjs → set-jRnCLhvc.mjs} +6 -6
- package/dist/{setting-D5Y9sJha.mjs → setting-CApPg0Xr.mjs} +4 -4
- package/dist/{setup-D9HNfS7W.mjs → setup-CruHFQJz.mjs} +5 -5
- package/dist/{skills-DvSQOPWg.mjs → skills-CxqkjkdQ.mjs} +3 -3
- package/dist/{skills-aRQfUvCq.mjs → skills-DlFbbaoS.mjs} +1 -1
- package/dist/snippet-DdoeL-7N.mjs +22 -0
- package/dist/{stash-C_k1uZlf.mjs → stash-CR-ESWiX.mjs} +6 -6
- package/dist/{status-D1vtL5eW.mjs → status-BMEdl-_G.mjs} +3 -3
- package/dist/{status-BsEPyknG.mjs → status-DCIOvsc6.mjs} +8 -8
- package/dist/subscription-BOOBR5Ir.mjs +25 -0
- package/dist/subscriptions-C_1AQpZF.mjs +47 -0
- package/dist/summary-D1fKnwE3.mjs +8 -0
- package/dist/{summary-h20AjhcO.mjs → summary-WUjzNITU.mjs} +4 -4
- package/dist/{sync-schema-D67cYLhd.mjs → sync-schema-Cq5LzHHc.mjs} +8 -8
- package/dist/{sync-scope-CKx6xeF6.mjs → sync-scope-Dh1wBlrg.mjs} +5 -5
- package/dist/table-BK56VDw8.mjs +21 -0
- package/dist/{table-3onHpwcb.mjs → table-fDvuvqoU.mjs} +1 -1
- package/dist/timeline-Dl5pm5tN.mjs +24 -0
- package/dist/{timeline-event-C6aKZ4EO.mjs → timeline-event-5JAeGVSI.mjs} +6 -6
- package/dist/transform-ATK6rJBl.mjs +31 -0
- package/dist/transform-job-BezBE6Y8.mjs +25 -0
- package/dist/{transform-job-CvE0MBBo.mjs → transform-job-sJmW_En3.mjs} +4 -4
- package/dist/{transform-tag-DhDnvbmq.mjs → transform-tag-GqbcG_6_.mjs} +5 -5
- package/dist/{transforms-BQkmsPUR.mjs → transforms-Cosz-Vq3.mjs} +4 -4
- package/dist/{tree-CtufTBZY.mjs → tree-BkXtw0c4.mjs} +3 -3
- package/dist/{unpublish-CnLXPYR8.mjs → unpublish-BlGj7omM.mjs} +4 -4
- package/dist/{update-CE-Z6E8V.mjs → update-BHhEtxwC.mjs} +13 -13
- package/dist/update-C-ChEcI9.mjs +57 -0
- package/dist/{update-dJ2mlCXm.mjs → update-C9K1QnOo.mjs} +8 -7
- package/dist/{update-Dt9-3Tqf.mjs → update-CTWsiwme.mjs} +7 -7
- package/dist/{update-DmQJqGvX.mjs → update-CXlhrcy8.mjs} +7 -7
- package/dist/update-Cbsgvopz.mjs +56 -0
- package/dist/{update-bz-FKwuR.mjs → update-CsYFWkVd.mjs} +12 -12
- package/dist/{update-D6blsNGY.mjs → update-CuKHukZ6.mjs} +7 -7
- package/dist/{update-C4P_YtGW.mjs → update-CzrbMLZq.mjs} +7 -7
- package/dist/{update-BZxLyBVm.mjs → update-DDVuyquf.mjs} +9 -9
- package/dist/{update-BC-MLtiG.mjs → update-DpIzJ8Ts.mjs} +10 -10
- package/dist/{update-DcYwxb-R.mjs → update-DrvAdi-O.mjs} +8 -8
- package/dist/{update-QNuvGuS3.mjs → update-Tw0kARao.mjs} +7 -7
- package/dist/{update-DshCe-bl.mjs → update-ZJ5T-SBW.mjs} +9 -9
- package/dist/{update-dashcard-CQP-qd6a.mjs → update-dashcard-Dnfa8_aJ.mjs} +9 -9
- package/dist/{update-CqQj32ol.mjs → update-hoCyoR-u.mjs} +7 -7
- package/dist/{upgrade--_g3bacj.mjs → upgrade-D0HiyTxw.mjs} +4 -4
- package/dist/upload-WT6SywFa.mjs +16 -0
- package/dist/{uuid-DBKkosBq.mjs → uuid-D7NcSTj8.mjs} +2 -2
- package/dist/{validate-Bpqt3ntH.mjs → validate-BoY75_M3.mjs} +1 -1
- package/dist/{validate-query-tECK019A.mjs → validate-query-Di0VKMF-.mjs} +2 -2
- package/dist/{values-BAhMnVh6.mjs → values-OBiEVCVH.mjs} +4 -4
- package/dist/{verify-RLb2DoOX.mjs → verify-VEB7TBQ_.mjs} +2 -2
- package/dist/{wait-BJ_87Yz0.mjs → wait-B9qNlcTe.mjs} +5 -5
- package/dist/{wait-flags-DEn-3mjb.mjs → wait-flags-D0FEgH6k.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +5 -3
- package/skill-data/notification/SKILL.md +157 -0
- package/dist/add-collection-DByJYvGO.mjs +0 -9
- package/dist/card-B_kiDDil.mjs +0 -26
- package/dist/collection-DNzM3u7n.mjs +0 -23
- package/dist/dashboard-kb1oz7Z3.mjs +0 -35
- package/dist/document-Y_DZNi4D.mjs +0 -22
- package/dist/field-DAB2gImv.mjs +0 -21
- package/dist/git-sync-BhhdNjq5.mjs +0 -31
- package/dist/is-dirty-CXTS25Tk.mjs +0 -8
- package/dist/snippet-CwRiMCfE.mjs +0 -22
- package/dist/table-CmKFWPvJ.mjs +0 -21
- package/dist/timeline-1ZphX3zj.mjs +0 -24
- package/dist/transform-CvsBOTqB.mjs +0 -31
- package/dist/transform-job-D_8Kp772.mjs +0 -25
- package/dist/upload-BOFc_eZD.mjs +0 -16
- /package/dist/{body-flags-CgHgJBRC.mjs → body-flags-Cbv-Ba6W.mjs} +0 -0
- /package/dist/{collection-C52Ndi_O.mjs → collection-BrrjbPLN.mjs} +0 -0
- /package/dist/{document-D4zB-5a0.mjs → document-C7IR6T8c.mjs} +0 -0
- /package/dist/{embedding-CKdw8q7p.mjs → embedding-B0x9CPkU.mjs} +0 -0
- /package/dist/{field-DsXTeqBy.mjs → field-RYBTW2KS.mjs} +0 -0
- /package/dist/{group-CILtQqCL.mjs → group-DfTvzGz-.mjs} +0 -0
- /package/dist/{listing-wFZuS5li.mjs → listing-1G8iFfZe.mjs} +0 -0
- /package/dist/{measure-ByY4U3ZK.mjs → measure-DH3ow2ko.mjs} +0 -0
- /package/dist/{paginate-FVZUxL4J.mjs → paginate-DuDXvUPr.mjs} +0 -0
- /package/dist/{parameter-BZ6y-Gfs.mjs → parameter-hCQ80jnc.mjs} +0 -0
- /package/dist/{render-CkuFkWlQ.mjs → render-rgZBe3rO.mjs} +0 -0
- /package/dist/{revision-message-flag-vt_V8ACy.mjs → revision-message-flag-B4BxzDXJ.mjs} +0 -0
- /package/dist/{segment-eeGhLo7_.mjs → segment-cwIOOF0v.mjs} +0 -0
- /package/dist/{setting-DADuiF5W.mjs → setting-CDEoJYO0.mjs} +0 -0
- /package/dist/{snippet-CdjEhVCT.mjs → snippet-1xYckIwc.mjs} +0 -0
- /package/dist/{timeline-2ShuGr4f.mjs → timeline-BNwnJ3g9.mjs} +0 -0
- /package/dist/{transform-DNSMm1dV.mjs → transform-BkSkCvpx.mjs} +0 -0
- /package/dist/{transform-tag-xdxjlDcD.mjs → transform-tag-qTjNVfTW.mjs} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
9
|
+
import { Pulse, PulseUpdateInput, pulseView } from "./pulse-C8q469KD.mjs";
|
|
10
|
+
import { patchSubscription } from "./patch-BpjI9BOz.mjs";
|
|
11
|
+
|
|
12
|
+
//#region src/commands/subscription/update.ts
|
|
13
|
+
var update_default = defineMetabaseCommand({
|
|
14
|
+
meta: {
|
|
15
|
+
name: "update",
|
|
16
|
+
description: "Update a dashboard subscription by id"
|
|
17
|
+
},
|
|
18
|
+
details: [
|
|
19
|
+
"Patches only the fields you send: `name`, `cards`, `channels`, `skip_if_empty`, `parameters`, `archived`.",
|
|
20
|
+
"`cards` and `channels` replace the whole list, so send every card and channel you want to keep —",
|
|
21
|
+
"`mb subscription get <id> --full` prints the current ones.",
|
|
22
|
+
"A subscription's `dashboard_id` and `collection_id` are fixed at creation and cannot be changed."
|
|
23
|
+
].join(" "),
|
|
24
|
+
capabilities: { minVersion: 58 },
|
|
25
|
+
args: {
|
|
26
|
+
...outputFlags,
|
|
27
|
+
...profileFlag,
|
|
28
|
+
...connectionFlags,
|
|
29
|
+
...bodyInputFlags,
|
|
30
|
+
id: {
|
|
31
|
+
type: "positional",
|
|
32
|
+
description: "Subscription id",
|
|
33
|
+
required: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
inputSchema: PulseUpdateInput,
|
|
37
|
+
outputSchema: Pulse,
|
|
38
|
+
examples: [
|
|
39
|
+
"mb subscription update 1 --body '{\"name\":\"Daily orders\"}'",
|
|
40
|
+
"mb subscription update 1 --body '{\"channels\":[{\"channel_type\":\"email\",\"schedule_type\":\"weekly\",\"schedule_hour\":8,\"schedule_day\":\"mon\",\"recipients\":[{\"email\":\"team@example.com\"}]}]}'",
|
|
41
|
+
"mb subscription update 1 --file patch.json"
|
|
42
|
+
],
|
|
43
|
+
async run({ args, ctx, getClient }) {
|
|
44
|
+
const id = parseId(args.id);
|
|
45
|
+
const body = await readBody({
|
|
46
|
+
flag: args.body,
|
|
47
|
+
file: args.file
|
|
48
|
+
}, PulseUpdateInput);
|
|
49
|
+
const client = await getClient();
|
|
50
|
+
const updated = await patchSubscription(client, id, body);
|
|
51
|
+
renderSummary(updated, pulseView, `Updated subscription ${updated.id}.`, ctx);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
export { update_default as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import "./validate-
|
|
13
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./embedding-B0x9CPkU.mjs";
|
|
9
|
+
import "./field-RYBTW2KS.mjs";
|
|
10
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
11
|
+
import { Card, CardUpdateInput, cardView } from "./card-BFRRyTGs.mjs";
|
|
12
|
+
import "./validate-BoY75_M3.mjs";
|
|
13
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/card/update.ts
|
|
16
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { Timeline, TimelineUpdateInput, timelineView } from "./timeline-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import { Timeline, TimelineUpdateInput, timelineView } from "./timeline-BNwnJ3g9.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/timeline/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-1xYckIwc.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/snippet/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Segment, SegmentUpdateInput, segmentView } from "./segment-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./validate-BoY75_M3.mjs";
|
|
9
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
10
|
+
import { Segment, SegmentUpdateInput, segmentView } from "./segment-cwIOOF0v.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/segment/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
11
|
-
import { enrichTransformCollectionError } from "./collection-namespace-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./validate-BoY75_M3.mjs";
|
|
9
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
10
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-BkSkCvpx.mjs";
|
|
11
|
+
import { enrichTransformCollectionError } from "./collection-namespace-8i_CvWsg.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/update.ts
|
|
14
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { Table, TableUpdateInput, tableView } from "./table-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./field-RYBTW2KS.mjs";
|
|
9
|
+
import { Table, TableUpdateInput, tableView } from "./table-fDvuvqoU.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/table/update.ts
|
|
12
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { Document, DocumentUpdateInput, documentView } from "./document-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import { Document, DocumentUpdateInput, documentView } from "./document-C7IR6T8c.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/document/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Measure, MeasureUpdateInput, measureView } from "./measure-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./validate-BoY75_M3.mjs";
|
|
9
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-Di0VKMF-.mjs";
|
|
10
|
+
import { Measure, MeasureUpdateInput, measureView } from "./measure-DH3ow2ko.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import "./embedding-B0x9CPkU.mjs";
|
|
9
|
+
import "./parameter-hCQ80jnc.mjs";
|
|
10
|
+
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-BSCXTX4H.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
13
13
|
var update_dashcard_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { TimelineEvent, TimelineEventUpdateInput, timelineEventView } from "./timeline-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import "./input-BpXlmJ5J.mjs";
|
|
6
|
+
import { readBody } from "./body-DXJ2v3GY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
|
|
8
|
+
import { TimelineEvent, TimelineEventUpdateInput, timelineEventView } from "./timeline-BNwnJ3g9.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/timeline-event/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage, outputFlags, package_default, renderItem, writeText } from "./capabilities-
|
|
1
|
+
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage, outputFlags, package_default, renderItem, writeText } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-
|
|
4
|
-
import { promptConfirm } from "./prompt-
|
|
5
|
-
import { streamProcess } from "./process-
|
|
3
|
+
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { promptConfirm } from "./prompt-DmxSLNrO.mjs";
|
|
5
|
+
import { streamProcess } from "./process-BxAUv3Wx.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { realpathSync } from "node:fs";
|
|
8
8
|
import { compare, valid } from "semver";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/upload/index.ts
|
|
5
|
+
var upload_default = defineCommandGroup({
|
|
6
|
+
name: "upload",
|
|
7
|
+
description: "Upload CSV files into Metabase",
|
|
8
|
+
subCommands: {
|
|
9
|
+
csv: () => import("./csv-yoFA1hhv.mjs").then((m) => m.default),
|
|
10
|
+
append: () => import("./append-lL0IaI6U.mjs").then((m) => m.default),
|
|
11
|
+
replace: () => import("./replace-sHtPBNnA.mjs").then((m) => m.default)
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { upload_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfigError, outputFlags, writeJson, writeText } from "./capabilities-
|
|
1
|
+
import { ConfigError, outputFlags, writeJson, writeText } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand, parseInteger } from "./runtime-
|
|
3
|
+
import { defineMetabaseCommand, parseInteger } from "./runtime-CPIHg_Zg.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigError, escapeJsonPointerSegment, isPlainObject } from "./capabilities-
|
|
1
|
+
import { ConfigError, escapeJsonPointerSegment, isPlainObject } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import Ajv2020 from "ajv/dist/2020.js";
|
|
4
4
|
import addFormats from "ajv-formats";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigError, writeJson } from "./capabilities-
|
|
2
|
-
import { assertNotLegacyEnvelopeWrappingMbql5, isMbql5Query, validateQuery } from "./validate-
|
|
1
|
+
import { ConfigError, writeJson } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { assertNotLegacyEnvelopeWrappingMbql5, isMbql5Query, validateQuery } from "./validate-BoY75_M3.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/validate-query.ts
|
|
5
5
|
const skipValidateFlag = { "skip-validate": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, formatScalar, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, formatScalar, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import { FieldValues, fieldValuesView } from "./field-RYBTW2KS.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/field/values.ts
|
|
8
8
|
var values_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MetabaseError, NetworkError, TimeoutError, errorMessage } from "./capabilities-
|
|
2
|
-
import { HttpError, createClient, probeServer } from "./runtime-
|
|
1
|
+
import { MetabaseError, NetworkError, TimeoutError, errorMessage } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { HttpError, createClient, probeServer } from "./runtime-CPIHg_Zg.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/user.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
6
|
-
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-rqLkEJVP.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-CiB1o1wG.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/wait.ts
|
|
9
9
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseId } from "./parse-id-
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
1
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-rqLkEJVP.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitScheduleFlags = {
|
package/package.json
CHANGED
package/skill-data/core/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: core
|
|
3
|
-
description: Foundations for driving Metabase from the terminal with the `mb` CLI — authentication and named profiles, the flag/output/`--json` conventions every command shares, JSON body input, command discovery via `--help` (add `--json` for machine-readable schemas), and the per-resource footguns (db, table, field, upload, card, dashboard, collection, segment, measure, timeline, library, setting, search, eid). Load first for any `mb` task; it routes to the specialized skills for deeper work.
|
|
3
|
+
description: Foundations for driving Metabase from the terminal with the `mb` CLI — authentication and named profiles, the flag/output/`--json` conventions every command shares, JSON body input, command discovery via `--help` (add `--json` for machine-readable schemas), and the per-resource footguns (db, table, field, upload, card, dashboard, collection, segment, measure, timeline, alert, subscription, library, setting, search, eid). Load first for any `mb` task; it routes to the specialized skills for deeper work.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -12,8 +12,8 @@ Top-level command groups (run `mb <group> --help` to discover verbs):
|
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
auth | db | table | field | upload | query | card | dashboard | snippet | segment | measure | collection | library
|
|
15
|
-
document | timeline | timeline-event | transform | transform-job | transform-tag |
|
|
16
|
-
eid | uuid | upgrade | skills
|
|
15
|
+
document | timeline | timeline-event | transform | transform-job | transform-tag | alert | subscription | setting
|
|
16
|
+
search | git-sync | setup | eid | uuid | upgrade | skills
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
The conventions below — auth, flags, output, body input — hold across **every** group. Per-command flags and examples live in each command's `--help`; add `--json` for the machine-readable form with the output JSON Schema. A few flows have their own skills (see "Specialized skills"). When a card needs a query, prefer MBQL over native SQL (portable, pre-flight-validated — load `mbql`); fall back to native SQL when MBQL can't express it.
|
|
@@ -129,6 +129,7 @@ Routine verb shapes (list / get / create / update), every flag, and output schem
|
|
|
129
129
|
- **card.** `dataset_query` is the **flat** `mbql/query` value, not a legacy `{type:"query",query:…}` envelope (→ `mbql`). `--export-format csv|xlsx` streams the raw export (pipe to a file), bypassing the JSON envelope. `archive` is the only delete; unarchive with `update --body '{"archived":false}'`. `visualization_settings` keys are scoped by `display` and aren't pre-flighted — see `visualization`.
|
|
130
130
|
- **dashboard.** Dashcards round-trip through `PUT /api/dashboard/:id` (no per-dashcard endpoint): `update-dashcard <dash-id> <dashcard-id>` patches one safely; `update --body '{"dashcards":[…]}'` replaces the whole set (omitted ids are deleted server-side; negative ids for new cards). `create` accepts the **same** `dashcards` array in its initial body — lay out the whole dashboard in one call: negative ids for new cards, and `card_id:null` plus a `visualization_settings.virtual_card` block (`{display:"text"|"heading"|"link"|…}`) for non-question cards. `create`/`update` pre-flight every positive `card_id` and exit **2** with `{ok:false,errors:[…]}` on a bad ref (non-bypassable). `dashboard get <id>` (or `--full`) hydrates dashcards/tabs; `list` omits them. **The grid is 24 columns wide:** each dashcard's `{col, row, size_x, size_y}` is in grid units — **full-width is `size_x: 24`** (`size_x: 12` is half a row, the usual cause of a card filling only half the width). Keep `col + size_x ≤ 24`, start a full-width stack's `col` at 0, and don't overlap (the server stores collisions as sent — no auto-fix). Layout patterns and per-chart default sizes → the `dashboard` skill; load it before composing any `dashcards` array.
|
|
131
131
|
- **dashboard parameters (filters).** A dashboard's `parameters` array holds its filter widgets; they're part of the dashboard record, so read them with `dashboard get <id> --fields parameters --json` (no separate verb). **Editing replaces the _whole_ array** (like dashcards), so it's a read-modify-write loop: pull the current set with `dashboard get <id> --fields parameters --json`, add/change entries, and send the full array back via `dashboard update --body '{"parameters":[…]}'` (or supply it in `create`). Omitting a parameter deletes it. Each parameter is `{id, type, …}`. **`id` is a descriptive slug-like string you pick (e.g. `order_status`), unique within this dashboard — Metabase stores any non-blank string verbatim. Do NOT invent a random/opaque id by guessing; reuse the `slug`. If you genuinely need an opaque id, mint one with `mb uuid` — never fabricate one.** `type` is a **closed enum**; an unlisted value is a hard parse error that echoes the full allowed set back to you: string ops `string/=` `string/!=` `string/contains` `string/does-not-contain` `string/starts-with` `string/ends-with`; number ops `number/=` `number/!=` `number/between` `number/>=` `number/<=`; date `date/single` `date/range` `date/relative` `date/month-year` `date/quarter-year` `date/all-options`; plus `category`, `id`, `boolean/=`, `temporal-unit`, and bare `number`/`text`/`date`/`boolean`. A parameter only filters a card once it is **mapped**: each dashcard's `parameter_mappings` is `[{parameter_id, target}]` where `parameter_id` must match a parameter's `id` exactly, and `target` is `["dimension", ["field", <field-id>, null]]` for an MBQL card column, `["dimension", ["template-tag", "<tag>"]]` for a native field-filter tag, or `["variable", ["template-tag", "<tag>"]]` for a native raw-value tag. Populate a dropdown with `values_source_type`: `"static-list"` + `values_source_config.values`, or `"card"` + `{card_id, value_field, label_field}`; omit it to pull live distinct values from the mapped field. `dashboard parameter-values <id> <parameter-id> [--query <substr>]` fetches those selectable values (`{values, has_more_values}`); `--query` is a case-insensitive substring search.
|
|
132
|
+
- **alert / subscription are two unrelated systems.** `alert` watches one **card** and fires on a send condition (`/api/notification`: a cron string, `channel/email`-prefixed handlers, typed recipients); `subscription` delivers one **dashboard** on a schedule (`/api/pulse`: structured `schedule_type` + hour/day/frame, bare `email` channels, `{id}|{email}` recipients). The bodies are not interchangeable. Both silently deliver nowhere if the server has no SMTP / Slack app — check `mb setting get 'email-configured?'` (quote it; the `?` is a shell glob) before creating either. Their list-valued fields (`handlers`/`subscriptions`, `channels`/`cards`) **replace wholesale** on update, so adding one recipient is a read-modify-write. `mb card alerts <id>` and `mb dashboard subscriptions <id>` list what's already attached to a card/dashboard; `archive` deactivates rather than deletes. Load the `notification` skill before authoring either body.
|
|
132
133
|
- **snippet `--archived` is a swap, not a union** — list returns _either_ active _or_ archived rows, never both. (Same for `--filter archived` on dashboard/collection.)
|
|
133
134
|
- **segment / measure.** `update` and `archive` require a non-blank `revision_message` (audit-logged); the CLI does not synthesize it on `update`. `archive` defaults to `"Archived via mb CLI"` — override with `--revision-message`. `definition` is a flat MBQL clause (→ `mbql`): segment = a filter, measure = exactly one aggregation.
|
|
134
135
|
- **timeline / timeline-event.** Timelines are collection-scoped event annotations for time-series charts: a timeline's events render only on time-series questions saved in the **same collection** (`collection_id`; null = root) — sub-collections do **not** inherit, and events never draw on dashboard cards, only in the question (and collection) view. To annotate a question's chart, create the timeline in that question's collection, then add events; an event only draws when its `timestamp` falls inside the chart's displayed time range. Event `create` requires `timestamp` (ISO 8601), `timezone` (IANA name), `time_matters` (true = the time of day is significant, false = date-only), and `timeline_id` — the API never auto-creates a default timeline (that's UI-only). There is no `timeline-event list`; enumerate with `timeline events <id>` (`--archived` to include archived). Archiving a timeline cascades `archived` to its events; `delete` is a **hard** delete of the timeline and all its events — prefer `archive`.
|
|
@@ -150,6 +151,7 @@ This file is enough for any single-command task. For anything deeper, load the r
|
|
|
150
151
|
- **`visualization`** — choosing a card's `display` and authoring `visualization_settings`. The presentation counterpart to `mbql`.
|
|
151
152
|
- **`dashboard`** — building interactive dashboards: wiring filters (parameters + mappings), linked/cascading filters, cross-filtering, click behavior, series, and tabs. Load beyond a plain card-layout task.
|
|
152
153
|
- **`metadata`** — setting field/table metadata: semantic types, foreign-key targets, dropdown/scan behavior, and column visibility, and the downstream features each unlocks. Load when editing what a column _means_, not its data.
|
|
154
|
+
- **`notification`** — scheduled delivery: question alerts (`mb alert`) and dashboard subscriptions (`mb subscription`). Choosing between them, the two schedule/recipient contracts, channel prerequisites, testing a send.
|
|
153
155
|
- **`transform`** — transform body JSON, create + run-with-wait, run inspection, tags, jobs.
|
|
154
156
|
- **`document`** — Metabase documents (TipTap body, embedding cards).
|
|
155
157
|
- **`git-sync`** — round-tripping content to/from a git remote.
|