@metabase/cli 0.2.1 → 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 +198 -11
- package/dist/{add-collection-CUBn11d4.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-BgDaYJW9.mjs → append-lL0IaI6U.mjs} +5 -5
- package/dist/{archive-Czzktgho.mjs → archive-3rLXY0nS.mjs} +4 -4
- package/dist/{archive-BCPA0HhV.mjs → archive-BUFc1me2.mjs} +5 -5
- package/dist/{archive-EoYl-lS-.mjs → archive-Baz4OVDd.mjs} +4 -4
- package/dist/{archive-Bv59HYsU.mjs → archive-C9mJGN6J.mjs} +4 -4
- package/dist/{archive-BZpXnQSu.mjs → archive-CUGRnyRV.mjs} +4 -4
- package/dist/{archive-BM9HjJHQ.mjs → archive-D3DErepm.mjs} +4 -4
- package/dist/{archive-BncW2dGw.mjs → archive-D8YrImIU.mjs} +6 -6
- package/dist/{archive-DFCu5hVG.mjs → archive-DihHU042.mjs} +5 -5
- package/dist/archive-DyPsHSFb.mjs +39 -0
- package/dist/{archive-Oh1iZu2y.mjs → archive-ExcEma7q.mjs} +7 -7
- package/dist/archive-hKPQXgXa.mjs +38 -0
- package/dist/{auth-hgAnMUfi.mjs → auth-B8Yb4ZaN.mjs} +5 -5
- package/dist/{body-DKcQw7G5.mjs → body-DXJ2v3GY.mjs} +3 -3
- package/dist/{branches-CCmtr3W8.mjs → branches-ByCzTuiv.mjs} +4 -4
- package/dist/{cancel-72y10-Rg.mjs → cancel-DvehNbDD.mjs} +3 -3
- package/dist/{cancel-task-CGwdz91O.mjs → cancel-task-BM8ADd3Y.mjs} +4 -4
- package/dist/{capabilities-DOTcPraV.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-CYSyvN7Z.mjs → cards-Bz6anDNX.mjs} +6 -6
- package/dist/cli.mjs +43 -28
- package/dist/{collection-CFoLPrY5.mjs → collection-BrrjbPLN.mjs} +4 -2
- package/dist/collection-ahFSJT-e.mjs +23 -0
- package/dist/{collection-namespace-C7mr_a8H.mjs → collection-namespace-8i_CvWsg.mjs} +2 -2
- package/dist/{create-C_WqoOf5.mjs → create--_4GZUNY.mjs} +7 -6
- package/dist/{create-Brh8WCa3.mjs → create-1O1UiTVt.mjs} +6 -6
- package/dist/{create-C3DThF9E.mjs → create-BnNRvoyz.mjs} +11 -11
- package/dist/{create-CPEOSxIH.mjs → create-BynNiG1N.mjs} +6 -6
- package/dist/{create-E7XhC0gJ.mjs → create-CHK9cJcK.mjs} +8 -8
- package/dist/create-COI80Veo.mjs +52 -0
- package/dist/{create-QYctYGSa.mjs → create-CtIOvInN.mjs} +8 -8
- package/dist/{create-7pbf5Wu0.mjs → create-Cy57naL0.mjs} +12 -12
- package/dist/{create-nXlnVzXl.mjs → create-D57tRDrg.mjs} +9 -8
- package/dist/{create-pTnveKkm.mjs → create-D6bXJlBS.mjs} +6 -6
- package/dist/{create-DFyZCXQD.mjs → create-DAj8pyfQ.mjs} +5 -4
- package/dist/create-DOpa2TmH.mjs +53 -0
- package/dist/{create-branch-DPE6itiS.mjs → create-branch-BwqFHYcZ.mjs} +4 -4
- package/dist/{create-BDY38_Kr.mjs → create-qzjhJFP8.mjs} +6 -6
- package/dist/{create-U_XDwsIX.mjs → create-t7z8Eb4T.mjs} +6 -6
- package/dist/{create-CaWFrPRU.mjs → create-yK1-fuX5.mjs} +9 -9
- package/dist/cron-93wjhtrP.mjs +7 -0
- package/dist/{csv-CR2qhmC6.mjs → csv-yoFA1hhv.mjs} +5 -5
- package/dist/{current-task-MUHaiHIg.mjs → current-task-D8Q1uFmk.mjs} +4 -4
- package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BSCXTX4H.mjs} +2 -2
- package/dist/dashboard-C__PiWrv.mjs +36 -0
- package/dist/{database-CIbVSfua.mjs → database-B-xwx5LA.mjs} +1 -1
- package/dist/{db-eWy7A-H3.mjs → db-BiLWl1J9.mjs} +7 -7
- package/dist/{delete-B58Cng0p.mjs → delete-B8dui6O6.mjs} +5 -5
- package/dist/{delete-BKMOtpjs.mjs → delete-BwPgIWV8.mjs} +5 -5
- package/dist/{delete-CW3dYmuT.mjs → delete-CA7IjA5J.mjs} +5 -5
- package/dist/{delete-BMa26SzX.mjs → delete-CawUDFud.mjs} +5 -5
- package/dist/{delete-doa3R-c5.mjs → delete-Dcu3iDkg.mjs} +5 -5
- package/dist/{delete-runtime-_YOukDRC.mjs → delete-runtime-00-R9iJm.mjs} +2 -2
- package/dist/{delete-table-D_tjBZPd.mjs → delete-table-DS0b3i0k.mjs} +5 -5
- package/dist/{dependencies-BR_4um7h.mjs → dependencies-BQVZylqV.mjs} +4 -4
- package/dist/{dirty-BKCg6oVN.mjs → dirty-BqdcrfUz.mjs} +4 -4
- package/dist/document-C9ykHYOG.mjs +22 -0
- package/dist/{eid-DSOk7Khb.mjs → eid-DcCAs-RP.mjs} +5 -5
- package/dist/{events-Dxm7me47.mjs → events-C9PqRUCO.mjs} +4 -4
- package/dist/{export-Gb_wfZpt.mjs → export-CdKR5nPT.mjs} +6 -6
- package/dist/field-P7aJaet9.mjs +21 -0
- package/dist/{fields-hZeq6IF2.mjs → fields-D2czTLKq.mjs} +5 -5
- package/dist/get-4rA8pbRu.mjs +38 -0
- package/dist/{get-CP3lrIYi.mjs → get-75Vdyusm.mjs} +4 -4
- package/dist/{get-nZW0W7Ui.mjs → get-B2vvnMpl.mjs} +5 -5
- package/dist/{get--rGDVyje.mjs → get-B6fSPCfp.mjs} +4 -4
- package/dist/{get-7Np_G2je.mjs → get-BbKC0fTx.mjs} +4 -4
- package/dist/{get-CH_JmPc-.mjs → get-BfFKIfpX.mjs} +5 -4
- package/dist/{get-DZatHVdn.mjs → get-Bpw05IUm.mjs} +7 -7
- package/dist/{get-DtvzjfjG.mjs → get-CJYv3CfV.mjs} +3 -3
- package/dist/{get-DB6Y9igl.mjs → get-CaIYg15K.mjs} +6 -6
- package/dist/get-CvXOGyFj.mjs +36 -0
- package/dist/{get-T85qZgnv.mjs → get-Cvkt6GcQ.mjs} +4 -4
- package/dist/{get-DRK5-UdU.mjs → get-DQ0pb4tT.mjs} +4 -4
- package/dist/{get-43Smv3RI.mjs → get-DXiL39gi.mjs} +6 -6
- package/dist/{get-DWzMR8sn.mjs → get-DXydDRVU.mjs} +4 -4
- package/dist/{get-BSdOE5J4.mjs → get-DZRB5S37.mjs} +4 -4
- package/dist/{get-CgZ5qjQx.mjs → get-Db8YNxId.mjs} +5 -4
- package/dist/{get-DT2MOZ8L.mjs → get-DhS4y0K9.mjs} +4 -4
- package/dist/{get-CuPCE_AG.mjs → get-Dy5f54pV.mjs} +4 -4
- package/dist/{get-run-Cwia6e0d.mjs → get-run-BF5ZBE8o.mjs} +4 -4
- package/dist/{get-CHAH_F37.mjs → get-vGqyjGSW.mjs} +4 -4
- package/dist/git-sync-BzievbUz.mjs +31 -0
- package/dist/{has-remote-changes-CIIib71u.mjs → has-remote-changes-CjDHphUH.mjs} +4 -4
- package/dist/{import-D9ID9Mz4.mjs → import-DzA5Ty9_.mjs} +6 -6
- package/dist/{input-DzbvxKYU.mjs → input-BpXlmJ5J.mjs} +1 -1
- package/dist/{is-dirty-CHbUJ-bh.mjs → is-dirty-4kIyD4oP.mjs} +3 -3
- package/dist/is-dirty-Cv0bdKkX.mjs +8 -0
- package/dist/{items-DN63mjpF.mjs → items-BXH0f1r6.mjs} +6 -6
- package/dist/{key-BnGRTX8U.mjs → key-B9AAqwjq.mjs} +1 -1
- package/dist/{library-DF2qx50w.mjs → library-BFZYsBcz.mjs} +5 -5
- package/dist/list-AyGEaws8.mjs +8 -0
- package/dist/{list-B3HoSfYj.mjs → list-Bar8uQRC.mjs} +3 -3
- package/dist/{list-KDHLmoUx.mjs → list-BiAVv9jX.mjs} +3 -3
- package/dist/{list-BSxMFDMR.mjs → list-Bm1PlZEV.mjs} +3 -3
- package/dist/{list-CQN2BpaW.mjs → list-BtgjcC2w.mjs} +3 -3
- package/dist/{list-n2PY3OIx.mjs → list-By1yYVGq.mjs} +7 -7
- package/dist/{list-De82cXvn.mjs → list-CG3ec9BZ.mjs} +4 -4
- package/dist/{list-C6YpaUpC.mjs → list-CLgkOcmY.mjs} +5 -5
- package/dist/{list-CvS68tLn.mjs → list-CSnpbFML.mjs} +3 -3
- package/dist/list-Cn-VruXD.mjs +8 -0
- package/dist/{list-C5Ir-96z.mjs → list-D7mMcRG5.mjs} +6 -6
- package/dist/{list-BeqcZVSn.mjs → list-DOhVPh95.mjs} +3 -3
- package/dist/{list-CY-jpBNE.mjs → list-DSHteJOl.mjs} +4 -3
- package/dist/{list-C0344yqi.mjs → list-Dl81pkVs.mjs} +6 -5
- package/dist/{list-MqqHcBvD.mjs → list-DwMcwucR.mjs} +3 -3
- package/dist/{list-B1sdMz6m.mjs → list-IxaPXKXu.mjs} +3 -3
- package/dist/list-SiSfX4wl.mjs +73 -0
- package/dist/{list-CkTsOOA7.mjs → list-hKRQUcGB.mjs} +3 -3
- package/dist/list-oRyXsJXs.mjs +50 -0
- package/dist/{list-C7TqbWG1.mjs → list-w61Uovt2.mjs} +5 -5
- package/dist/listing-1G8iFfZe.mjs +10 -0
- package/dist/{login-jy9rbYev.mjs → login-zUCMDLC8.mjs} +7 -7
- package/dist/{logout-CRbk1SuY.mjs → logout-BFh7QHx6.mjs} +3 -3
- package/dist/{measure-CPqisgyf.mjs → measure-DNldT89z.mjs} +6 -6
- package/dist/notification-BR5wehqg.mjs +201 -0
- package/dist/{parameter-values-CcgcG3S5.mjs → parameter-values-BYDFzxNY.mjs} +4 -4
- package/dist/{parse-enum-C_2lGr3g.mjs → parse-enum-D1zTYr_i.mjs} +1 -1
- package/dist/{parse-id-CD54Chc5.mjs → parse-id-waEVK-uR.mjs} +1 -1
- package/dist/{parse-ref-BLgKEEF-.mjs → parse-ref-C3DUXwci.mjs} +1 -1
- package/dist/patch-BpjI9BOz.mjs +20 -0
- package/dist/patch-DrMVqf34.mjs +36 -0
- package/dist/{path-CPMr1RJO.mjs → path-Bvs9IR4k.mjs} +3 -3
- package/dist/{poll-DVF9EnEb.mjs → poll-rqLkEJVP.mjs} +2 -2
- package/dist/{poll-task-CpHGQOd5.mjs → poll-task-CiB1o1wG.mjs} +2 -2
- package/dist/{preflight-xhwEOHAt.mjs → preflight-DJOBTWVq.mjs} +3 -3
- package/dist/{process-HDPKLS_z.mjs → process-BxAUv3Wx.mjs} +1 -1
- package/dist/{prompt-BgkWNgIR.mjs → prompt-DmxSLNrO.mjs} +1 -1
- package/dist/{publish-xVPABwE8.mjs → publish-C1y_vGGw.mjs} +12 -7
- package/dist/pulse-C8q469KD.mjs +186 -0
- package/dist/{query-Cxh9hmrP.mjs → query-B9LlGOZI.mjs} +8 -8
- package/dist/{query-B3HDIsJ-.mjs → query-DpVWKW-y.mjs} +12 -12
- package/dist/{query-result-Drvjv7DD.mjs → query-result-Bvh89K4f.mjs} +1 -1
- package/dist/{remove-collection-_a4uIlLB.mjs → remove-collection-DYQibG6d.mjs} +6 -6
- package/dist/{replace-BwvKDNur.mjs → replace-sHtPBNnA.mjs} +5 -5
- package/dist/{requests-qyh002pL.mjs → requests-Pc0u7PQS.mjs} +2 -2
- package/dist/{rescan-values-Bd0Joerq.mjs → rescan-values-CuPGOzKI.mjs} +6 -6
- package/dist/{resolve-Ct084wx3.mjs → resolve-BiL5scF0.mjs} +22 -15
- package/dist/{run-yrpSF6VL.mjs → run-Ce_gPVcg.mjs} +3 -3
- package/dist/{run-BfpKUjqL.mjs → run-D6jyZ0nv.mjs} +6 -6
- package/dist/{runs-D_08Ma08.mjs → runs-DRxrpAkU.mjs} +5 -5
- package/dist/{runtime-Ab96yYlM.mjs → runtime-CPIHg_Zg.mjs} +105 -101
- package/dist/{schema-tables-ChBYz4mO.mjs → schema-tables-D91DWM5l.mjs} +5 -5
- package/dist/{schemas-C2crnVML.mjs → schemas-OVYRgvz9.mjs} +3 -3
- package/dist/{search-DnGEh6sZ.mjs → search-msFNbxU6.mjs} +3 -3
- package/dist/{segment-DyVTZSIM.mjs → segment-BIKVTq_n.mjs} +6 -6
- package/dist/{selectors-Ll_TRxl5.mjs → selectors-Bsyhe1zP.mjs} +3 -3
- package/dist/send-BeFpVrwD.mjs +60 -0
- package/dist/{set-active-qqDoBh_Z.mjs → set-active-CFWtIWzX.mjs} +3 -3
- package/dist/{set-tHsHXRGV.mjs → set-jRnCLhvc.mjs} +6 -6
- package/dist/{setting-B9xSyMf6.mjs → setting-CApPg0Xr.mjs} +4 -4
- package/dist/{setup-CXGcyTuv.mjs → setup-CruHFQJz.mjs} +5 -5
- package/dist/{skills-rnvVgau4.mjs → skills-CxqkjkdQ.mjs} +3 -3
- package/dist/{skills-BKuiGkc1.mjs → skills-DlFbbaoS.mjs} +1 -1
- package/dist/snippet-DdoeL-7N.mjs +22 -0
- package/dist/{stash-DxmpBS7x.mjs → stash-CR-ESWiX.mjs} +6 -6
- package/dist/{status-B5ar0uXc.mjs → status-BMEdl-_G.mjs} +3 -3
- package/dist/{status-D5CR1SrS.mjs → status-DCIOvsc6.mjs} +26 -10
- 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-BEEJl2O1.mjs → summary-WUjzNITU.mjs} +4 -4
- package/dist/{sync-schema-B5HDpmrp.mjs → sync-schema-Cq5LzHHc.mjs} +8 -8
- package/dist/sync-scope-Dh1wBlrg.mjs +55 -0
- package/dist/table-BK56VDw8.mjs +21 -0
- package/dist/{table-C3RIKiYM.mjs → table-fDvuvqoU.mjs} +1 -1
- package/dist/timeline-Dl5pm5tN.mjs +24 -0
- package/dist/{timeline-event-BVDTt-pM.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-CjsAXMej.mjs → transform-job-sJmW_En3.mjs} +4 -4
- package/dist/{transform-tag-B1xnFa9w.mjs → transform-tag-GqbcG_6_.mjs} +5 -5
- package/dist/{transforms-CLkv3e81.mjs → transforms-Cosz-Vq3.mjs} +4 -4
- package/dist/{tree-CB2IURsX.mjs → tree-BkXtw0c4.mjs} +3 -3
- package/dist/{unpublish-BkZldbkP.mjs → unpublish-BlGj7omM.mjs} +4 -4
- package/dist/{update-BghbOcv6.mjs → update-BHhEtxwC.mjs} +13 -13
- package/dist/update-C-ChEcI9.mjs +57 -0
- package/dist/{update-BHC3pwzR.mjs → update-C9K1QnOo.mjs} +8 -7
- package/dist/{update-B4atxTx0.mjs → update-CTWsiwme.mjs} +7 -7
- package/dist/{update-BacyVaLu.mjs → update-CXlhrcy8.mjs} +7 -7
- package/dist/update-Cbsgvopz.mjs +56 -0
- package/dist/{update-D7Ia9Qrt.mjs → update-CsYFWkVd.mjs} +12 -12
- package/dist/{update-DajyWtBN.mjs → update-CuKHukZ6.mjs} +7 -7
- package/dist/{update-CGWTX1Z0.mjs → update-CzrbMLZq.mjs} +7 -7
- package/dist/{update-CO9uCJxV.mjs → update-DDVuyquf.mjs} +9 -9
- package/dist/{update-B1dkPypu.mjs → update-DpIzJ8Ts.mjs} +10 -10
- package/dist/{update-iY9WZqy0.mjs → update-DrvAdi-O.mjs} +8 -8
- package/dist/{update-Cyxjg496.mjs → update-Tw0kARao.mjs} +7 -7
- package/dist/{update-D80GWpWl.mjs → update-ZJ5T-SBW.mjs} +9 -9
- package/dist/{update-dashcard-DLq7ihNO.mjs → update-dashcard-Dnfa8_aJ.mjs} +9 -9
- package/dist/{update-8bTrglfc.mjs → update-hoCyoR-u.mjs} +7 -7
- package/dist/{upgrade-CXoNQ4FH.mjs → upgrade-D0HiyTxw.mjs} +4 -4
- package/dist/upload-WT6SywFa.mjs +16 -0
- package/dist/{uuid-D6dao_q4.mjs → uuid-D7NcSTj8.mjs} +2 -2
- package/dist/{validate-Cqa14t7o.mjs → validate-BoY75_M3.mjs} +1 -1
- package/dist/{validate-query-D1N30wJ7.mjs → validate-query-Di0VKMF-.mjs} +2 -2
- package/dist/{values-DIBAgSyz.mjs → values-OBiEVCVH.mjs} +4 -4
- package/dist/{verify-DvhZWmS2.mjs → verify-VEB7TBQ_.mjs} +2 -2
- package/dist/{wait-CW1OawkI.mjs → wait-B9qNlcTe.mjs} +5 -5
- package/dist/{wait-flags-DvNU8ahZ.mjs → wait-flags-D0FEgH6k.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +6 -4
- package/skill-data/git-sync/SKILL.md +20 -5
- package/skill-data/notification/SKILL.md +157 -0
- package/dist/add-collection-C8ZTPlIE.mjs +0 -9
- package/dist/card-Ct-q_C4S.mjs +0 -26
- package/dist/collection-K82kJWdj.mjs +0 -23
- package/dist/dashboard-B1iRSUBI.mjs +0 -35
- package/dist/document-CVxhTnUD.mjs +0 -22
- package/dist/field-BTCw6voJ.mjs +0 -21
- package/dist/git-sync-Cjrx2meo.mjs +0 -31
- package/dist/is-dirty-DY5Zhsbk.mjs +0 -8
- package/dist/snippet-C4h-GMUf.mjs +0 -22
- package/dist/table-DHmaW3Ec.mjs +0 -21
- package/dist/timeline-B0R6-dm8.mjs +0 -24
- package/dist/transform-Cq2_muWO.mjs +0 -31
- package/dist/transform-job-BpebgMnq.mjs +0 -25
- package/dist/upload-D3eiApa0.mjs +0 -16
- /package/dist/{body-flags-CgHgJBRC.mjs → body-flags-Cbv-Ba6W.mjs} +0 -0
- /package/dist/{document-CL4ML5FN.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/{measure-S9WszHre.mjs → measure-DH3ow2ko.mjs} +0 -0
- /package/dist/{paginate-CMqbqhMC.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-CHzX0cqV.mjs → revision-message-flag-B4BxzDXJ.mjs} +0 -0
- /package/dist/{segment-BPb1H6DW.mjs → segment-cwIOOF0v.mjs} +0 -0
- /package/dist/{setting-Cko6bE_w.mjs → setting-CDEoJYO0.mjs} +0 -0
- /package/dist/{snippet-DWiXNy4T.mjs → snippet-1xYckIwc.mjs} +0 -0
- /package/dist/{timeline-BCTRThc-.mjs → timeline-BNwnJ3g9.mjs} +0 -0
- /package/dist/{transform-BVHYzWpK.mjs → transform-BkSkCvpx.mjs} +0 -0
- /package/dist/{transform-tag--IBQ-8Ij.mjs → transform-tag-qTjNVfTW.mjs} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { defineMetabaseCommand, parseOptionalInteger } from "./runtime-CPIHg_Zg.mjs";
|
|
3
|
+
import { Pulse, PulseCompact, pulseView } from "./pulse-C8q469KD.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/commands/subscription/list.ts
|
|
7
|
+
const PulseApiList = z.array(Pulse);
|
|
8
|
+
const SubscriptionListEnvelope = listEnvelopeSchema(PulseCompact);
|
|
9
|
+
var list_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "list",
|
|
12
|
+
description: "List dashboard subscriptions"
|
|
13
|
+
},
|
|
14
|
+
capabilities: { minVersion: 58 },
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
dashboardId: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "Only subscriptions on this dashboard id",
|
|
22
|
+
alias: "dashboard-id"
|
|
23
|
+
},
|
|
24
|
+
archived: {
|
|
25
|
+
type: "boolean",
|
|
26
|
+
description: "Show archived subscriptions instead of active ones"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
outputSchema: SubscriptionListEnvelope,
|
|
30
|
+
examples: [
|
|
31
|
+
"mb subscription list",
|
|
32
|
+
"mb subscription list --dashboard-id 10 --json",
|
|
33
|
+
"mb subscription list --archived --json"
|
|
34
|
+
],
|
|
35
|
+
async run({ args, ctx, getClient }) {
|
|
36
|
+
const dashboardId = parseOptionalInteger(args.dashboardId, {
|
|
37
|
+
name: "dashboard-id",
|
|
38
|
+
min: 1
|
|
39
|
+
});
|
|
40
|
+
const client = await getClient();
|
|
41
|
+
const items = await client.requestParsed(PulseApiList, "/api/pulse", { query: {
|
|
42
|
+
dashboard_id: dashboardId ?? void 0,
|
|
43
|
+
archived: args.archived || void 0
|
|
44
|
+
} });
|
|
45
|
+
renderList(wrapList(items), pulseView, ctx);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { SubscriptionListEnvelope, list_default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList } from "./capabilities-
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
4
|
-
import "./field-
|
|
5
|
-
import "./table-
|
|
6
|
-
import { Database, DatabaseCompact, databaseView } from "./database-
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./field-RYBTW2KS.mjs";
|
|
5
|
+
import "./table-fDvuvqoU.mjs";
|
|
6
|
+
import { Database, DatabaseCompact, databaseView } from "./database-B-xwx5LA.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/db/list.ts
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/collection/listing.ts
|
|
4
|
+
const COLLECTIONS_PATH = "/api/collection";
|
|
5
|
+
async function fetchCollectionsWithLibrary(client, itemSchema) {
|
|
6
|
+
return await client.requestParsed(z.array(itemSchema), COLLECTIONS_PATH, { query: { "include-library": true } });
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { COLLECTIONS_PATH, fetchCollectionsWithLibrary };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ConfigError, connectionFlags, errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-
|
|
1
|
+
import { ConfigError, connectionFlags, errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { DEFAULT_PROFILE, OAUTH_SCOPE, ParsedVersionSchema, ProbedUser, consumeKeychainResidualWarning, consumeKeyringDowngradeWarning, defineMetabaseCommand, discoverMetadata, exchangeCode, explicitProfileName, keyringFallbackWarning, normalizeUrl, oauthCredentialFromTokens, readEnvCredentials, registerClient, revokeOAuthCredential, tryDiscoverMetadata, writeOAuthProfile, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { DEFAULT_PROFILE, OAUTH_SCOPE, ParsedVersionSchema, ProbedUser, consumeKeychainResidualWarning, consumeKeyringDowngradeWarning, defineMetabaseCommand, discoverMetadata, exchangeCode, explicitProfileName, keyringFallbackWarning, normalizeUrl, oauthCredentialFromTokens, readEnvCredentials, registerClient, revokeOAuthCredential, tryDiscoverMetadata, writeOAuthProfile, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { readInput } from "./input-BpXlmJ5J.mjs";
|
|
5
|
+
import { verifyAndProbe } from "./verify-VEB7TBQ_.mjs";
|
|
6
|
+
import { EMPTY_CELL, renderUserName, renderUserRole, renderVersionTag } from "./render-rgZBe3rO.mjs";
|
|
7
|
+
import { promptPassword, promptSelect, promptText } from "./prompt-DmxSLNrO.mjs";
|
|
8
|
+
import { openBrowser } from "./process-BxAUv3Wx.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
11
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-
|
|
1
|
+
import { errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { clearProfile, consumeKeychainResidualWarning, defineMetabaseCommand, readProfileCredential, resolveProfileName, revokeOAuthCredential } from "./runtime-
|
|
4
|
-
import { promptConfirm } from "./prompt-
|
|
3
|
+
import { clearProfile, consumeKeychainResidualWarning, defineMetabaseCommand, readProfileCredential, resolveProfileName, revokeOAuthCredential } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { promptConfirm } from "./prompt-DmxSLNrO.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/auth/logout.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
-
import { defineCommandGroup } from "./group-
|
|
2
|
+
import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/measure/index.ts
|
|
5
5
|
var measure_default = defineCommandGroup({
|
|
@@ -13,11 +13,11 @@ var measure_default = defineCommandGroup({
|
|
|
13
13
|
purpose: "define reusable measures"
|
|
14
14
|
}],
|
|
15
15
|
subCommands: {
|
|
16
|
-
list: () => import("./list-
|
|
17
|
-
get: () => import("./get
|
|
18
|
-
create: () => import("./create-
|
|
19
|
-
update: () => import("./update-
|
|
20
|
-
archive: () => import("./archive-
|
|
16
|
+
list: () => import("./list-DwMcwucR.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-B6fSPCfp.mjs").then((mod) => mod.default),
|
|
18
|
+
create: () => import("./create-CHK9cJcK.mjs").then((mod) => mod.default),
|
|
19
|
+
update: () => import("./update-ZJ5T-SBW.mjs").then((mod) => mod.default),
|
|
20
|
+
archive: () => import("./archive-DihHU042.mjs").then((mod) => mod.default)
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { CronUiDisplayType } from "./cron-93wjhtrP.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/domain/notification.ts
|
|
5
|
+
const NotificationPayloadType = z.enum([
|
|
6
|
+
"notification/card",
|
|
7
|
+
"notification/dashboard",
|
|
8
|
+
"notification/system-event",
|
|
9
|
+
"notification/testing"
|
|
10
|
+
]);
|
|
11
|
+
const CARD_PAYLOAD_TYPE = "notification/card";
|
|
12
|
+
const NotificationSendCondition = z.enum([
|
|
13
|
+
"has_result",
|
|
14
|
+
"goal_above",
|
|
15
|
+
"goal_below"
|
|
16
|
+
]);
|
|
17
|
+
const NotificationChannelType = z.enum([
|
|
18
|
+
"channel/email",
|
|
19
|
+
"channel/slack",
|
|
20
|
+
"channel/http"
|
|
21
|
+
]);
|
|
22
|
+
const NotificationRecipientType = z.enum([
|
|
23
|
+
"notification-recipient/user",
|
|
24
|
+
"notification-recipient/group",
|
|
25
|
+
"notification-recipient/raw-value",
|
|
26
|
+
"notification-recipient/template"
|
|
27
|
+
]);
|
|
28
|
+
const NotificationSubscriptionType = z.enum(["notification-subscription/cron", "notification-subscription/system-event"]);
|
|
29
|
+
const NotificationRecipientDetails = z.object({
|
|
30
|
+
value: z.string().optional(),
|
|
31
|
+
channel_id: z.string().nullable().optional()
|
|
32
|
+
}).loose();
|
|
33
|
+
const NotificationRecipientDetailsCompact = NotificationRecipientDetails.pick({
|
|
34
|
+
value: true,
|
|
35
|
+
channel_id: true
|
|
36
|
+
}).strip();
|
|
37
|
+
const NotificationRecipient = z.object({
|
|
38
|
+
id: z.number().int().optional(),
|
|
39
|
+
type: NotificationRecipientType,
|
|
40
|
+
user_id: z.number().int().nullable().optional(),
|
|
41
|
+
permissions_group_id: z.number().int().nullable().optional(),
|
|
42
|
+
details: NotificationRecipientDetails.nullable().optional()
|
|
43
|
+
}).loose();
|
|
44
|
+
const NotificationRecipientCompact = NotificationRecipient.pick({
|
|
45
|
+
type: true,
|
|
46
|
+
user_id: true,
|
|
47
|
+
permissions_group_id: true
|
|
48
|
+
}).strip().extend({ details: NotificationRecipientDetailsCompact.nullable().optional() });
|
|
49
|
+
const NotificationHandler = z.object({
|
|
50
|
+
id: z.number().int().optional(),
|
|
51
|
+
channel_type: NotificationChannelType,
|
|
52
|
+
channel_id: z.number().int().nullable().optional(),
|
|
53
|
+
template_id: z.number().int().nullable().optional(),
|
|
54
|
+
active: z.boolean().optional(),
|
|
55
|
+
recipients: z.array(NotificationRecipient).optional()
|
|
56
|
+
}).loose();
|
|
57
|
+
const NotificationHandlerCompact = NotificationHandler.pick({
|
|
58
|
+
channel_type: true,
|
|
59
|
+
channel_id: true
|
|
60
|
+
}).strip().extend({ recipients: z.array(NotificationRecipientCompact).optional() });
|
|
61
|
+
const NotificationSubscription = z.object({
|
|
62
|
+
id: z.number().int().optional(),
|
|
63
|
+
type: NotificationSubscriptionType,
|
|
64
|
+
cron_schedule: z.string().nullable().optional(),
|
|
65
|
+
event_name: z.string().nullable().optional(),
|
|
66
|
+
ui_display_type: CronUiDisplayType.nullable().optional()
|
|
67
|
+
}).loose();
|
|
68
|
+
const NotificationSubscriptionCompact = NotificationSubscription.pick({
|
|
69
|
+
type: true,
|
|
70
|
+
cron_schedule: true
|
|
71
|
+
}).strip();
|
|
72
|
+
const NotificationCardPayload = z.object({
|
|
73
|
+
id: z.number().int().optional(),
|
|
74
|
+
card_id: z.number().int(),
|
|
75
|
+
send_condition: NotificationSendCondition,
|
|
76
|
+
send_once: z.boolean()
|
|
77
|
+
}).loose();
|
|
78
|
+
const NotificationCardPayloadCompact = NotificationCardPayload.pick({
|
|
79
|
+
card_id: true,
|
|
80
|
+
send_condition: true,
|
|
81
|
+
send_once: true
|
|
82
|
+
}).strip();
|
|
83
|
+
const Notification = z.object({
|
|
84
|
+
id: z.number().int(),
|
|
85
|
+
payload_type: NotificationPayloadType,
|
|
86
|
+
payload_id: z.number().int().nullable(),
|
|
87
|
+
payload: NotificationCardPayload.nullable(),
|
|
88
|
+
active: z.boolean(),
|
|
89
|
+
creator_id: z.number().int().nullable(),
|
|
90
|
+
subscriptions: z.array(NotificationSubscription),
|
|
91
|
+
handlers: z.array(NotificationHandler)
|
|
92
|
+
}).loose();
|
|
93
|
+
const NotificationCompact = Notification.pick({
|
|
94
|
+
id: true,
|
|
95
|
+
payload_type: true,
|
|
96
|
+
active: true,
|
|
97
|
+
creator_id: true
|
|
98
|
+
}).strip().extend({
|
|
99
|
+
payload: NotificationCardPayloadCompact.nullable(),
|
|
100
|
+
subscriptions: z.array(NotificationSubscriptionCompact),
|
|
101
|
+
handlers: z.array(NotificationHandlerCompact)
|
|
102
|
+
});
|
|
103
|
+
const NullableCardPayload = NotificationCardPayload.nullable();
|
|
104
|
+
const NotificationSubscriptionList = z.array(NotificationSubscription);
|
|
105
|
+
const NotificationHandlerList = z.array(NotificationHandler);
|
|
106
|
+
const notificationView = {
|
|
107
|
+
compactPick: NotificationCompact,
|
|
108
|
+
tableColumns: [
|
|
109
|
+
{
|
|
110
|
+
key: "id",
|
|
111
|
+
label: "ID"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
key: "payload",
|
|
115
|
+
label: "Card",
|
|
116
|
+
format: formatPayload
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
key: "subscriptions",
|
|
120
|
+
label: "Schedule",
|
|
121
|
+
format: formatSubscriptions
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: "handlers",
|
|
125
|
+
label: "Delivery",
|
|
126
|
+
format: formatHandlers
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
key: "active",
|
|
130
|
+
label: "Active"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
};
|
|
134
|
+
function formatPayload(value) {
|
|
135
|
+
const parsed = NullableCardPayload.safeParse(value);
|
|
136
|
+
if (!parsed.success || parsed.data === null) return "";
|
|
137
|
+
const { card_id, send_condition, send_once } = parsed.data;
|
|
138
|
+
const once = send_once ? ", once" : "";
|
|
139
|
+
return `${card_id} (${send_condition}${once})`;
|
|
140
|
+
}
|
|
141
|
+
function formatSubscriptions(value) {
|
|
142
|
+
const parsed = NotificationSubscriptionList.safeParse(value);
|
|
143
|
+
if (!parsed.success) return "";
|
|
144
|
+
return parsed.data.map((subscription) => subscription.cron_schedule ?? subscription.event_name ?? "").filter((label) => label !== "").join("; ");
|
|
145
|
+
}
|
|
146
|
+
function formatHandlers(value) {
|
|
147
|
+
const parsed = NotificationHandlerList.safeParse(value);
|
|
148
|
+
if (!parsed.success) return "";
|
|
149
|
+
return parsed.data.map(describeHandler).join("; ");
|
|
150
|
+
}
|
|
151
|
+
function describeHandler(handler) {
|
|
152
|
+
const channel = handler.channel_type.replace("channel/", "");
|
|
153
|
+
const recipients = (handler.recipients ?? []).map(describeRecipient).join(", ");
|
|
154
|
+
return recipients === "" ? channel : `${channel} → ${recipients}`;
|
|
155
|
+
}
|
|
156
|
+
function describeRecipient(recipient) {
|
|
157
|
+
switch (recipient.type) {
|
|
158
|
+
case "notification-recipient/user": return `user:${recipient.user_id}`;
|
|
159
|
+
case "notification-recipient/group": return `group:${recipient.permissions_group_id}`;
|
|
160
|
+
case "notification-recipient/raw-value": return recipient.details?.value ?? "";
|
|
161
|
+
case "notification-recipient/template": return "template";
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const NotificationRecipientInput = z.object({
|
|
165
|
+
type: NotificationRecipientType,
|
|
166
|
+
user_id: z.number().int().positive().optional(),
|
|
167
|
+
permissions_group_id: z.number().int().positive().optional(),
|
|
168
|
+
details: NotificationRecipientDetails.optional()
|
|
169
|
+
}).loose();
|
|
170
|
+
const NotificationHandlerInput = z.object({
|
|
171
|
+
channel_type: NotificationChannelType,
|
|
172
|
+
channel_id: z.number().int().positive().nullable().optional(),
|
|
173
|
+
active: z.boolean().optional(),
|
|
174
|
+
recipients: z.array(NotificationRecipientInput).optional()
|
|
175
|
+
}).loose();
|
|
176
|
+
const NotificationSubscriptionInput = z.object({
|
|
177
|
+
type: NotificationSubscriptionType.default("notification-subscription/cron"),
|
|
178
|
+
cron_schedule: z.string().min(1)
|
|
179
|
+
}).loose();
|
|
180
|
+
const NotificationCardPayloadInput = z.object({
|
|
181
|
+
card_id: z.number().int().positive(),
|
|
182
|
+
send_condition: NotificationSendCondition.optional(),
|
|
183
|
+
send_once: z.boolean().optional()
|
|
184
|
+
}).loose();
|
|
185
|
+
const NotificationCreateInput = z.object({
|
|
186
|
+
payload_type: NotificationPayloadType.default(CARD_PAYLOAD_TYPE),
|
|
187
|
+
payload: NotificationCardPayloadInput,
|
|
188
|
+
subscriptions: z.array(NotificationSubscriptionInput).min(1),
|
|
189
|
+
handlers: z.array(NotificationHandlerInput).min(1),
|
|
190
|
+
active: z.boolean().optional()
|
|
191
|
+
}).loose();
|
|
192
|
+
const NotificationCardPayloadPatch = NotificationCardPayloadInput.partial();
|
|
193
|
+
const NotificationUpdateInput = z.object({
|
|
194
|
+
payload: NotificationCardPayloadPatch.optional(),
|
|
195
|
+
subscriptions: z.array(NotificationSubscriptionInput).min(1).optional(),
|
|
196
|
+
handlers: z.array(NotificationHandlerInput).min(1).optional(),
|
|
197
|
+
active: z.boolean().optional()
|
|
198
|
+
}).loose();
|
|
199
|
+
|
|
200
|
+
//#endregion
|
|
201
|
+
export { CARD_PAYLOAD_TYPE, Notification, NotificationCardPayload, NotificationCompact, NotificationCreateInput, NotificationUpdateInput, notificationView };
|
|
@@ -1,8 +1,8 @@
|
|
|
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 {
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import { ParameterValues, parameterValuesView } from "./parameter-hCQ80jnc.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/dashboard/parameter-values.ts
|
|
8
8
|
var parameter_values_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Pulse } from "./pulse-C8q469KD.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/subscription/patch.ts
|
|
4
|
+
function mergeSubscriptionUpdate(current, patch) {
|
|
5
|
+
return {
|
|
6
|
+
...patch,
|
|
7
|
+
archived: patch.archived ?? current.archived,
|
|
8
|
+
skip_if_empty: patch.skip_if_empty ?? current.skip_if_empty
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
async function patchSubscription(client, id, patch) {
|
|
12
|
+
const current = await client.requestParsed(Pulse, `/api/pulse/${id}`);
|
|
13
|
+
return client.requestParsed(Pulse, `/api/pulse/${id}`, {
|
|
14
|
+
method: "PUT",
|
|
15
|
+
body: mergeSubscriptionUpdate(current, patch)
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { patchSubscription };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ConfigError } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { CARD_PAYLOAD_TYPE, Notification, NotificationCardPayload } from "./notification-BR5wehqg.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/alert/patch.ts
|
|
5
|
+
async function fetchAlert(client, id) {
|
|
6
|
+
return assertCardAlert(await client.requestParsed(Notification, `/api/notification/${id}`));
|
|
7
|
+
}
|
|
8
|
+
function assertCardAlert(notification) {
|
|
9
|
+
if (notification.payload_type !== CARD_PAYLOAD_TYPE) throw new ConfigError(`notification ${notification.id} is a ${notification.payload_type}, not a question alert — \`mb alert\` manages card alerts only`);
|
|
10
|
+
return notification;
|
|
11
|
+
}
|
|
12
|
+
function mergeAlertUpdate(current, patch) {
|
|
13
|
+
return Notification.parse({
|
|
14
|
+
...current,
|
|
15
|
+
...patch,
|
|
16
|
+
id: current.id,
|
|
17
|
+
payload: patch.payload === void 0 ? current.payload : mergePayload(current, patch.payload)
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function mergePayload(current, patch) {
|
|
21
|
+
if (current.payload === null) throw new ConfigError(`alert ${current.id} has lost its card payload — it can be archived, but not patched`);
|
|
22
|
+
return NotificationCardPayload.parse({
|
|
23
|
+
...current.payload,
|
|
24
|
+
...patch
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async function patchAlert(client, id, patch) {
|
|
28
|
+
const current = await fetchAlert(client, id);
|
|
29
|
+
return client.requestParsed(Notification, `/api/notification/${id}`, {
|
|
30
|
+
method: "PUT",
|
|
31
|
+
body: mergeAlertUpdate(current, patch)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { fetchAlert, patchAlert };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { listEnvelopeSchema, outputFlags, renderList, wrapList } from "./capabilities-
|
|
1
|
+
import { listEnvelopeSchema, outputFlags, renderList, wrapList } from "./capabilities-1HTHeDa4.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-DlFbbaoS.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/skills/path.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TimeoutError } from "./capabilities-
|
|
2
|
-
import { combineAborts, throwIfAborted } from "./runtime-
|
|
1
|
+
import { TimeoutError } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { combineAborts, throwIfAborted } from "./runtime-CPIHg_Zg.mjs";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/poll.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseJsonOrPlain } from "./runtime-
|
|
2
|
-
import { pollUntil } from "./poll-
|
|
1
|
+
import { parseJsonOrPlain } from "./runtime-CPIHg_Zg.mjs";
|
|
2
|
+
import { pollUntil } from "./poll-rqLkEJVP.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/git-sync.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChainedRequestError, ConfigError, MetabaseError, writeJson } from "./capabilities-
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
3
|
-
import { Card } from "./card-
|
|
1
|
+
import { ChainedRequestError, ConfigError, MetabaseError, writeJson } from "./capabilities-1HTHeDa4.mjs";
|
|
2
|
+
import { HttpError } from "./runtime-CPIHg_Zg.mjs";
|
|
3
|
+
import { Card } from "./card-BFRRyTGs.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/dashboard/preflight.ts
|
|
@@ -1,10 +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 "./parse-id-
|
|
5
|
-
import { Collection, CollectionCompact } from "./collection-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
|
|
4
|
+
import "./parse-id-waEVK-uR.mjs";
|
|
5
|
+
import { Collection, CollectionCompact } from "./collection-BrrjbPLN.mjs";
|
|
6
|
+
import "./listing-1G8iFfZe.mjs";
|
|
7
|
+
import "./poll-rqLkEJVP.mjs";
|
|
8
|
+
import "./poll-task-CiB1o1wG.mjs";
|
|
9
|
+
import { warnIfOutsideSyncScope } from "./sync-scope-Dh1wBlrg.mjs";
|
|
10
|
+
import { ensureLibraryDataCollectionId } from "./resolve-BiL5scF0.mjs";
|
|
11
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-Bsyhe1zP.mjs";
|
|
8
12
|
import { z } from "zod";
|
|
9
13
|
|
|
10
14
|
//#region src/commands/library/publish.ts
|
|
@@ -23,7 +27,7 @@ var publish_default = defineMetabaseCommand({
|
|
|
23
27
|
name: "publish",
|
|
24
28
|
description: "Publish tables (and their upstream dependencies) to the Library Data collection"
|
|
25
29
|
},
|
|
26
|
-
details: "Sets each selected table and every upstream table it depends on into the Library Data collection, so they appear first in data pickers and rank up in search. The Library Data collection is resolved automatically (and the Library is created if it doesn't exist yet). Select with --table-ids, --db-ids, or --schemas (each schema id is \"<db-id>:<schema>\", e.g. 1:public); the filters are combined.",
|
|
30
|
+
details: "Sets each selected table and every upstream table it depends on into the Library Data collection, so they appear first in data pickers and rank up in search. The Library Data collection is resolved automatically (and the Library is created if it doesn't exist yet). Select with --table-ids, --db-ids, or --schemas (each schema id is \"<db-id>:<schema>\", e.g. 1:public); the filters are combined. Publishing does not add the Library Data collection to the git-sync scope — on an instance with remote sync configured, run `mb git-sync add-collection <collection-id>` so exports carry the published tables' metadata.",
|
|
27
31
|
capabilities: {
|
|
28
32
|
minVersion: 59,
|
|
29
33
|
tokenFeature: "library"
|
|
@@ -53,6 +57,7 @@ var publish_default = defineMetabaseCommand({
|
|
|
53
57
|
body
|
|
54
58
|
});
|
|
55
59
|
renderSummary(result, libraryPublishResultView, summaryLine(result), ctx);
|
|
60
|
+
await warnIfOutsideSyncScope(client, result.target_collection);
|
|
56
61
|
}
|
|
57
62
|
});
|
|
58
63
|
function summaryLine(result) {
|