@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.
Files changed (240) hide show
  1. package/README.md +198 -11
  2. package/dist/{add-collection-CUBn11d4.mjs → add-collection-B-Pf12HY.mjs} +4 -4
  3. package/dist/add-collection-B2PdVMRy.mjs +9 -0
  4. package/dist/alert-DGcECcDb.mjs +26 -0
  5. package/dist/alerts-CRGMX4eB.mjs +49 -0
  6. package/dist/{append-BgDaYJW9.mjs → append-lL0IaI6U.mjs} +5 -5
  7. package/dist/{archive-Czzktgho.mjs → archive-3rLXY0nS.mjs} +4 -4
  8. package/dist/{archive-BCPA0HhV.mjs → archive-BUFc1me2.mjs} +5 -5
  9. package/dist/{archive-EoYl-lS-.mjs → archive-Baz4OVDd.mjs} +4 -4
  10. package/dist/{archive-Bv59HYsU.mjs → archive-C9mJGN6J.mjs} +4 -4
  11. package/dist/{archive-BZpXnQSu.mjs → archive-CUGRnyRV.mjs} +4 -4
  12. package/dist/{archive-BM9HjJHQ.mjs → archive-D3DErepm.mjs} +4 -4
  13. package/dist/{archive-BncW2dGw.mjs → archive-D8YrImIU.mjs} +6 -6
  14. package/dist/{archive-DFCu5hVG.mjs → archive-DihHU042.mjs} +5 -5
  15. package/dist/archive-DyPsHSFb.mjs +39 -0
  16. package/dist/{archive-Oh1iZu2y.mjs → archive-ExcEma7q.mjs} +7 -7
  17. package/dist/archive-hKPQXgXa.mjs +38 -0
  18. package/dist/{auth-hgAnMUfi.mjs → auth-B8Yb4ZaN.mjs} +5 -5
  19. package/dist/{body-DKcQw7G5.mjs → body-DXJ2v3GY.mjs} +3 -3
  20. package/dist/{branches-CCmtr3W8.mjs → branches-ByCzTuiv.mjs} +4 -4
  21. package/dist/{cancel-72y10-Rg.mjs → cancel-DvehNbDD.mjs} +3 -3
  22. package/dist/{cancel-task-CGwdz91O.mjs → cancel-task-BM8ADd3Y.mjs} +4 -4
  23. package/dist/{capabilities-DOTcPraV.mjs → capabilities-1HTHeDa4.mjs} +1 -1
  24. package/dist/{card-B8G5jQQT.mjs → card-BFRRyTGs.mjs} +3 -3
  25. package/dist/card-BT7ce7uO.mjs +27 -0
  26. package/dist/{cards-CYSyvN7Z.mjs → cards-Bz6anDNX.mjs} +6 -6
  27. package/dist/cli.mjs +43 -28
  28. package/dist/{collection-CFoLPrY5.mjs → collection-BrrjbPLN.mjs} +4 -2
  29. package/dist/collection-ahFSJT-e.mjs +23 -0
  30. package/dist/{collection-namespace-C7mr_a8H.mjs → collection-namespace-8i_CvWsg.mjs} +2 -2
  31. package/dist/{create-C_WqoOf5.mjs → create--_4GZUNY.mjs} +7 -6
  32. package/dist/{create-Brh8WCa3.mjs → create-1O1UiTVt.mjs} +6 -6
  33. package/dist/{create-C3DThF9E.mjs → create-BnNRvoyz.mjs} +11 -11
  34. package/dist/{create-CPEOSxIH.mjs → create-BynNiG1N.mjs} +6 -6
  35. package/dist/{create-E7XhC0gJ.mjs → create-CHK9cJcK.mjs} +8 -8
  36. package/dist/create-COI80Veo.mjs +52 -0
  37. package/dist/{create-QYctYGSa.mjs → create-CtIOvInN.mjs} +8 -8
  38. package/dist/{create-7pbf5Wu0.mjs → create-Cy57naL0.mjs} +12 -12
  39. package/dist/{create-nXlnVzXl.mjs → create-D57tRDrg.mjs} +9 -8
  40. package/dist/{create-pTnveKkm.mjs → create-D6bXJlBS.mjs} +6 -6
  41. package/dist/{create-DFyZCXQD.mjs → create-DAj8pyfQ.mjs} +5 -4
  42. package/dist/create-DOpa2TmH.mjs +53 -0
  43. package/dist/{create-branch-DPE6itiS.mjs → create-branch-BwqFHYcZ.mjs} +4 -4
  44. package/dist/{create-BDY38_Kr.mjs → create-qzjhJFP8.mjs} +6 -6
  45. package/dist/{create-U_XDwsIX.mjs → create-t7z8Eb4T.mjs} +6 -6
  46. package/dist/{create-CaWFrPRU.mjs → create-yK1-fuX5.mjs} +9 -9
  47. package/dist/cron-93wjhtrP.mjs +7 -0
  48. package/dist/{csv-CR2qhmC6.mjs → csv-yoFA1hhv.mjs} +5 -5
  49. package/dist/{current-task-MUHaiHIg.mjs → current-task-D8Q1uFmk.mjs} +4 -4
  50. package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BSCXTX4H.mjs} +2 -2
  51. package/dist/dashboard-C__PiWrv.mjs +36 -0
  52. package/dist/{database-CIbVSfua.mjs → database-B-xwx5LA.mjs} +1 -1
  53. package/dist/{db-eWy7A-H3.mjs → db-BiLWl1J9.mjs} +7 -7
  54. package/dist/{delete-B58Cng0p.mjs → delete-B8dui6O6.mjs} +5 -5
  55. package/dist/{delete-BKMOtpjs.mjs → delete-BwPgIWV8.mjs} +5 -5
  56. package/dist/{delete-CW3dYmuT.mjs → delete-CA7IjA5J.mjs} +5 -5
  57. package/dist/{delete-BMa26SzX.mjs → delete-CawUDFud.mjs} +5 -5
  58. package/dist/{delete-doa3R-c5.mjs → delete-Dcu3iDkg.mjs} +5 -5
  59. package/dist/{delete-runtime-_YOukDRC.mjs → delete-runtime-00-R9iJm.mjs} +2 -2
  60. package/dist/{delete-table-D_tjBZPd.mjs → delete-table-DS0b3i0k.mjs} +5 -5
  61. package/dist/{dependencies-BR_4um7h.mjs → dependencies-BQVZylqV.mjs} +4 -4
  62. package/dist/{dirty-BKCg6oVN.mjs → dirty-BqdcrfUz.mjs} +4 -4
  63. package/dist/document-C9ykHYOG.mjs +22 -0
  64. package/dist/{eid-DSOk7Khb.mjs → eid-DcCAs-RP.mjs} +5 -5
  65. package/dist/{events-Dxm7me47.mjs → events-C9PqRUCO.mjs} +4 -4
  66. package/dist/{export-Gb_wfZpt.mjs → export-CdKR5nPT.mjs} +6 -6
  67. package/dist/field-P7aJaet9.mjs +21 -0
  68. package/dist/{fields-hZeq6IF2.mjs → fields-D2czTLKq.mjs} +5 -5
  69. package/dist/get-4rA8pbRu.mjs +38 -0
  70. package/dist/{get-CP3lrIYi.mjs → get-75Vdyusm.mjs} +4 -4
  71. package/dist/{get-nZW0W7Ui.mjs → get-B2vvnMpl.mjs} +5 -5
  72. package/dist/{get--rGDVyje.mjs → get-B6fSPCfp.mjs} +4 -4
  73. package/dist/{get-7Np_G2je.mjs → get-BbKC0fTx.mjs} +4 -4
  74. package/dist/{get-CH_JmPc-.mjs → get-BfFKIfpX.mjs} +5 -4
  75. package/dist/{get-DZatHVdn.mjs → get-Bpw05IUm.mjs} +7 -7
  76. package/dist/{get-DtvzjfjG.mjs → get-CJYv3CfV.mjs} +3 -3
  77. package/dist/{get-DB6Y9igl.mjs → get-CaIYg15K.mjs} +6 -6
  78. package/dist/get-CvXOGyFj.mjs +36 -0
  79. package/dist/{get-T85qZgnv.mjs → get-Cvkt6GcQ.mjs} +4 -4
  80. package/dist/{get-DRK5-UdU.mjs → get-DQ0pb4tT.mjs} +4 -4
  81. package/dist/{get-43Smv3RI.mjs → get-DXiL39gi.mjs} +6 -6
  82. package/dist/{get-DWzMR8sn.mjs → get-DXydDRVU.mjs} +4 -4
  83. package/dist/{get-BSdOE5J4.mjs → get-DZRB5S37.mjs} +4 -4
  84. package/dist/{get-CgZ5qjQx.mjs → get-Db8YNxId.mjs} +5 -4
  85. package/dist/{get-DT2MOZ8L.mjs → get-DhS4y0K9.mjs} +4 -4
  86. package/dist/{get-CuPCE_AG.mjs → get-Dy5f54pV.mjs} +4 -4
  87. package/dist/{get-run-Cwia6e0d.mjs → get-run-BF5ZBE8o.mjs} +4 -4
  88. package/dist/{get-CHAH_F37.mjs → get-vGqyjGSW.mjs} +4 -4
  89. package/dist/git-sync-BzievbUz.mjs +31 -0
  90. package/dist/{has-remote-changes-CIIib71u.mjs → has-remote-changes-CjDHphUH.mjs} +4 -4
  91. package/dist/{import-D9ID9Mz4.mjs → import-DzA5Ty9_.mjs} +6 -6
  92. package/dist/{input-DzbvxKYU.mjs → input-BpXlmJ5J.mjs} +1 -1
  93. package/dist/{is-dirty-CHbUJ-bh.mjs → is-dirty-4kIyD4oP.mjs} +3 -3
  94. package/dist/is-dirty-Cv0bdKkX.mjs +8 -0
  95. package/dist/{items-DN63mjpF.mjs → items-BXH0f1r6.mjs} +6 -6
  96. package/dist/{key-BnGRTX8U.mjs → key-B9AAqwjq.mjs} +1 -1
  97. package/dist/{library-DF2qx50w.mjs → library-BFZYsBcz.mjs} +5 -5
  98. package/dist/list-AyGEaws8.mjs +8 -0
  99. package/dist/{list-B3HoSfYj.mjs → list-Bar8uQRC.mjs} +3 -3
  100. package/dist/{list-KDHLmoUx.mjs → list-BiAVv9jX.mjs} +3 -3
  101. package/dist/{list-BSxMFDMR.mjs → list-Bm1PlZEV.mjs} +3 -3
  102. package/dist/{list-CQN2BpaW.mjs → list-BtgjcC2w.mjs} +3 -3
  103. package/dist/{list-n2PY3OIx.mjs → list-By1yYVGq.mjs} +7 -7
  104. package/dist/{list-De82cXvn.mjs → list-CG3ec9BZ.mjs} +4 -4
  105. package/dist/{list-C6YpaUpC.mjs → list-CLgkOcmY.mjs} +5 -5
  106. package/dist/{list-CvS68tLn.mjs → list-CSnpbFML.mjs} +3 -3
  107. package/dist/list-Cn-VruXD.mjs +8 -0
  108. package/dist/{list-C5Ir-96z.mjs → list-D7mMcRG5.mjs} +6 -6
  109. package/dist/{list-BeqcZVSn.mjs → list-DOhVPh95.mjs} +3 -3
  110. package/dist/{list-CY-jpBNE.mjs → list-DSHteJOl.mjs} +4 -3
  111. package/dist/{list-C0344yqi.mjs → list-Dl81pkVs.mjs} +6 -5
  112. package/dist/{list-MqqHcBvD.mjs → list-DwMcwucR.mjs} +3 -3
  113. package/dist/{list-B1sdMz6m.mjs → list-IxaPXKXu.mjs} +3 -3
  114. package/dist/list-SiSfX4wl.mjs +73 -0
  115. package/dist/{list-CkTsOOA7.mjs → list-hKRQUcGB.mjs} +3 -3
  116. package/dist/list-oRyXsJXs.mjs +50 -0
  117. package/dist/{list-C7TqbWG1.mjs → list-w61Uovt2.mjs} +5 -5
  118. package/dist/listing-1G8iFfZe.mjs +10 -0
  119. package/dist/{login-jy9rbYev.mjs → login-zUCMDLC8.mjs} +7 -7
  120. package/dist/{logout-CRbk1SuY.mjs → logout-BFh7QHx6.mjs} +3 -3
  121. package/dist/{measure-CPqisgyf.mjs → measure-DNldT89z.mjs} +6 -6
  122. package/dist/notification-BR5wehqg.mjs +201 -0
  123. package/dist/{parameter-values-CcgcG3S5.mjs → parameter-values-BYDFzxNY.mjs} +4 -4
  124. package/dist/{parse-enum-C_2lGr3g.mjs → parse-enum-D1zTYr_i.mjs} +1 -1
  125. package/dist/{parse-id-CD54Chc5.mjs → parse-id-waEVK-uR.mjs} +1 -1
  126. package/dist/{parse-ref-BLgKEEF-.mjs → parse-ref-C3DUXwci.mjs} +1 -1
  127. package/dist/patch-BpjI9BOz.mjs +20 -0
  128. package/dist/patch-DrMVqf34.mjs +36 -0
  129. package/dist/{path-CPMr1RJO.mjs → path-Bvs9IR4k.mjs} +3 -3
  130. package/dist/{poll-DVF9EnEb.mjs → poll-rqLkEJVP.mjs} +2 -2
  131. package/dist/{poll-task-CpHGQOd5.mjs → poll-task-CiB1o1wG.mjs} +2 -2
  132. package/dist/{preflight-xhwEOHAt.mjs → preflight-DJOBTWVq.mjs} +3 -3
  133. package/dist/{process-HDPKLS_z.mjs → process-BxAUv3Wx.mjs} +1 -1
  134. package/dist/{prompt-BgkWNgIR.mjs → prompt-DmxSLNrO.mjs} +1 -1
  135. package/dist/{publish-xVPABwE8.mjs → publish-C1y_vGGw.mjs} +12 -7
  136. package/dist/pulse-C8q469KD.mjs +186 -0
  137. package/dist/{query-Cxh9hmrP.mjs → query-B9LlGOZI.mjs} +8 -8
  138. package/dist/{query-B3HDIsJ-.mjs → query-DpVWKW-y.mjs} +12 -12
  139. package/dist/{query-result-Drvjv7DD.mjs → query-result-Bvh89K4f.mjs} +1 -1
  140. package/dist/{remove-collection-_a4uIlLB.mjs → remove-collection-DYQibG6d.mjs} +6 -6
  141. package/dist/{replace-BwvKDNur.mjs → replace-sHtPBNnA.mjs} +5 -5
  142. package/dist/{requests-qyh002pL.mjs → requests-Pc0u7PQS.mjs} +2 -2
  143. package/dist/{rescan-values-Bd0Joerq.mjs → rescan-values-CuPGOzKI.mjs} +6 -6
  144. package/dist/{resolve-Ct084wx3.mjs → resolve-BiL5scF0.mjs} +22 -15
  145. package/dist/{run-yrpSF6VL.mjs → run-Ce_gPVcg.mjs} +3 -3
  146. package/dist/{run-BfpKUjqL.mjs → run-D6jyZ0nv.mjs} +6 -6
  147. package/dist/{runs-D_08Ma08.mjs → runs-DRxrpAkU.mjs} +5 -5
  148. package/dist/{runtime-Ab96yYlM.mjs → runtime-CPIHg_Zg.mjs} +105 -101
  149. package/dist/{schema-tables-ChBYz4mO.mjs → schema-tables-D91DWM5l.mjs} +5 -5
  150. package/dist/{schemas-C2crnVML.mjs → schemas-OVYRgvz9.mjs} +3 -3
  151. package/dist/{search-DnGEh6sZ.mjs → search-msFNbxU6.mjs} +3 -3
  152. package/dist/{segment-DyVTZSIM.mjs → segment-BIKVTq_n.mjs} +6 -6
  153. package/dist/{selectors-Ll_TRxl5.mjs → selectors-Bsyhe1zP.mjs} +3 -3
  154. package/dist/send-BeFpVrwD.mjs +60 -0
  155. package/dist/{set-active-qqDoBh_Z.mjs → set-active-CFWtIWzX.mjs} +3 -3
  156. package/dist/{set-tHsHXRGV.mjs → set-jRnCLhvc.mjs} +6 -6
  157. package/dist/{setting-B9xSyMf6.mjs → setting-CApPg0Xr.mjs} +4 -4
  158. package/dist/{setup-CXGcyTuv.mjs → setup-CruHFQJz.mjs} +5 -5
  159. package/dist/{skills-rnvVgau4.mjs → skills-CxqkjkdQ.mjs} +3 -3
  160. package/dist/{skills-BKuiGkc1.mjs → skills-DlFbbaoS.mjs} +1 -1
  161. package/dist/snippet-DdoeL-7N.mjs +22 -0
  162. package/dist/{stash-DxmpBS7x.mjs → stash-CR-ESWiX.mjs} +6 -6
  163. package/dist/{status-B5ar0uXc.mjs → status-BMEdl-_G.mjs} +3 -3
  164. package/dist/{status-D5CR1SrS.mjs → status-DCIOvsc6.mjs} +26 -10
  165. package/dist/subscription-BOOBR5Ir.mjs +25 -0
  166. package/dist/subscriptions-C_1AQpZF.mjs +47 -0
  167. package/dist/summary-D1fKnwE3.mjs +8 -0
  168. package/dist/{summary-BEEJl2O1.mjs → summary-WUjzNITU.mjs} +4 -4
  169. package/dist/{sync-schema-B5HDpmrp.mjs → sync-schema-Cq5LzHHc.mjs} +8 -8
  170. package/dist/sync-scope-Dh1wBlrg.mjs +55 -0
  171. package/dist/table-BK56VDw8.mjs +21 -0
  172. package/dist/{table-C3RIKiYM.mjs → table-fDvuvqoU.mjs} +1 -1
  173. package/dist/timeline-Dl5pm5tN.mjs +24 -0
  174. package/dist/{timeline-event-BVDTt-pM.mjs → timeline-event-5JAeGVSI.mjs} +6 -6
  175. package/dist/transform-ATK6rJBl.mjs +31 -0
  176. package/dist/transform-job-BezBE6Y8.mjs +25 -0
  177. package/dist/{transform-job-CjsAXMej.mjs → transform-job-sJmW_En3.mjs} +4 -4
  178. package/dist/{transform-tag-B1xnFa9w.mjs → transform-tag-GqbcG_6_.mjs} +5 -5
  179. package/dist/{transforms-CLkv3e81.mjs → transforms-Cosz-Vq3.mjs} +4 -4
  180. package/dist/{tree-CB2IURsX.mjs → tree-BkXtw0c4.mjs} +3 -3
  181. package/dist/{unpublish-BkZldbkP.mjs → unpublish-BlGj7omM.mjs} +4 -4
  182. package/dist/{update-BghbOcv6.mjs → update-BHhEtxwC.mjs} +13 -13
  183. package/dist/update-C-ChEcI9.mjs +57 -0
  184. package/dist/{update-BHC3pwzR.mjs → update-C9K1QnOo.mjs} +8 -7
  185. package/dist/{update-B4atxTx0.mjs → update-CTWsiwme.mjs} +7 -7
  186. package/dist/{update-BacyVaLu.mjs → update-CXlhrcy8.mjs} +7 -7
  187. package/dist/update-Cbsgvopz.mjs +56 -0
  188. package/dist/{update-D7Ia9Qrt.mjs → update-CsYFWkVd.mjs} +12 -12
  189. package/dist/{update-DajyWtBN.mjs → update-CuKHukZ6.mjs} +7 -7
  190. package/dist/{update-CGWTX1Z0.mjs → update-CzrbMLZq.mjs} +7 -7
  191. package/dist/{update-CO9uCJxV.mjs → update-DDVuyquf.mjs} +9 -9
  192. package/dist/{update-B1dkPypu.mjs → update-DpIzJ8Ts.mjs} +10 -10
  193. package/dist/{update-iY9WZqy0.mjs → update-DrvAdi-O.mjs} +8 -8
  194. package/dist/{update-Cyxjg496.mjs → update-Tw0kARao.mjs} +7 -7
  195. package/dist/{update-D80GWpWl.mjs → update-ZJ5T-SBW.mjs} +9 -9
  196. package/dist/{update-dashcard-DLq7ihNO.mjs → update-dashcard-Dnfa8_aJ.mjs} +9 -9
  197. package/dist/{update-8bTrglfc.mjs → update-hoCyoR-u.mjs} +7 -7
  198. package/dist/{upgrade-CXoNQ4FH.mjs → upgrade-D0HiyTxw.mjs} +4 -4
  199. package/dist/upload-WT6SywFa.mjs +16 -0
  200. package/dist/{uuid-D6dao_q4.mjs → uuid-D7NcSTj8.mjs} +2 -2
  201. package/dist/{validate-Cqa14t7o.mjs → validate-BoY75_M3.mjs} +1 -1
  202. package/dist/{validate-query-D1N30wJ7.mjs → validate-query-Di0VKMF-.mjs} +2 -2
  203. package/dist/{values-DIBAgSyz.mjs → values-OBiEVCVH.mjs} +4 -4
  204. package/dist/{verify-DvhZWmS2.mjs → verify-VEB7TBQ_.mjs} +2 -2
  205. package/dist/{wait-CW1OawkI.mjs → wait-B9qNlcTe.mjs} +5 -5
  206. package/dist/{wait-flags-DvNU8ahZ.mjs → wait-flags-D0FEgH6k.mjs} +2 -2
  207. package/package.json +1 -1
  208. package/skill-data/core/SKILL.md +6 -4
  209. package/skill-data/git-sync/SKILL.md +20 -5
  210. package/skill-data/notification/SKILL.md +157 -0
  211. package/dist/add-collection-C8ZTPlIE.mjs +0 -9
  212. package/dist/card-Ct-q_C4S.mjs +0 -26
  213. package/dist/collection-K82kJWdj.mjs +0 -23
  214. package/dist/dashboard-B1iRSUBI.mjs +0 -35
  215. package/dist/document-CVxhTnUD.mjs +0 -22
  216. package/dist/field-BTCw6voJ.mjs +0 -21
  217. package/dist/git-sync-Cjrx2meo.mjs +0 -31
  218. package/dist/is-dirty-DY5Zhsbk.mjs +0 -8
  219. package/dist/snippet-C4h-GMUf.mjs +0 -22
  220. package/dist/table-DHmaW3Ec.mjs +0 -21
  221. package/dist/timeline-B0R6-dm8.mjs +0 -24
  222. package/dist/transform-Cq2_muWO.mjs +0 -31
  223. package/dist/transform-job-BpebgMnq.mjs +0 -25
  224. package/dist/upload-D3eiApa0.mjs +0 -16
  225. /package/dist/{body-flags-CgHgJBRC.mjs → body-flags-Cbv-Ba6W.mjs} +0 -0
  226. /package/dist/{document-CL4ML5FN.mjs → document-C7IR6T8c.mjs} +0 -0
  227. /package/dist/{embedding-CKdw8q7p.mjs → embedding-B0x9CPkU.mjs} +0 -0
  228. /package/dist/{field-DsXTeqBy.mjs → field-RYBTW2KS.mjs} +0 -0
  229. /package/dist/{group-CILtQqCL.mjs → group-DfTvzGz-.mjs} +0 -0
  230. /package/dist/{measure-S9WszHre.mjs → measure-DH3ow2ko.mjs} +0 -0
  231. /package/dist/{paginate-CMqbqhMC.mjs → paginate-DuDXvUPr.mjs} +0 -0
  232. /package/dist/{parameter-BZ6y-Gfs.mjs → parameter-hCQ80jnc.mjs} +0 -0
  233. /package/dist/{render-CkuFkWlQ.mjs → render-rgZBe3rO.mjs} +0 -0
  234. /package/dist/{revision-message-flag-CHzX0cqV.mjs → revision-message-flag-B4BxzDXJ.mjs} +0 -0
  235. /package/dist/{segment-BPb1H6DW.mjs → segment-cwIOOF0v.mjs} +0 -0
  236. /package/dist/{setting-Cko6bE_w.mjs → setting-CDEoJYO0.mjs} +0 -0
  237. /package/dist/{snippet-DWiXNy4T.mjs → snippet-1xYckIwc.mjs} +0 -0
  238. /package/dist/{timeline-BCTRThc-.mjs → timeline-BNwnJ3g9.mjs} +0 -0
  239. /package/dist/{transform-BVHYzWpK.mjs → transform-BkSkCvpx.mjs} +0 -0
  240. /package/dist/{transform-tag--IBQ-8Ij.mjs → transform-tag-qTjNVfTW.mjs} +0 -0
@@ -0,0 +1,47 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderList, wrapList } 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 "./parameter-hCQ80jnc.mjs";
6
+ import { Pulse, pulseView } from "./pulse-C8q469KD.mjs";
7
+ import { SubscriptionListEnvelope } from "./list-oRyXsJXs.mjs";
8
+ import { z } from "zod";
9
+
10
+ //#region src/commands/dashboard/subscriptions.ts
11
+ const PulseApiList = z.array(Pulse);
12
+ var subscriptions_default = defineMetabaseCommand({
13
+ meta: {
14
+ name: "subscriptions",
15
+ description: "List subscriptions on a dashboard"
16
+ },
17
+ details: "Manage them with `mb subscription create|update|archive`, which take the subscription id printed here.",
18
+ capabilities: { minVersion: 58 },
19
+ args: {
20
+ ...outputFlags,
21
+ ...profileFlag,
22
+ ...connectionFlags,
23
+ archived: {
24
+ type: "boolean",
25
+ description: "Show archived subscriptions instead of active ones"
26
+ },
27
+ id: {
28
+ type: "positional",
29
+ description: "Dashboard id",
30
+ required: true
31
+ }
32
+ },
33
+ outputSchema: SubscriptionListEnvelope,
34
+ examples: ["mb dashboard subscriptions 10", "mb dashboard subscriptions 10 --json"],
35
+ async run({ args, ctx, getClient }) {
36
+ const id = parseId(args.id);
37
+ const client = await getClient();
38
+ const items = await client.requestParsed(PulseApiList, "/api/pulse", { query: {
39
+ dashboard_id: id,
40
+ archived: args.archived || void 0
41
+ } });
42
+ renderList(wrapList(items), pulseView, ctx);
43
+ }
44
+ });
45
+
46
+ //#endregion
47
+ export { subscriptions_default as default };
@@ -0,0 +1,8 @@
1
+ //#region src/commands/alert/summary.ts
2
+ function describeAlert(verb, alert) {
3
+ if (alert.payload === null) return `${verb} alert ${alert.id}.`;
4
+ return `${verb} alert ${alert.id} on card ${alert.payload.card_id}.`;
5
+ }
6
+
7
+ //#endregion
8
+ export { describeAlert };
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-DsXTeqBy.mjs";
5
- import { parseId } from "./parse-id-CD54Chc5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-RYBTW2KS.mjs";
6
6
 
7
7
  //#region src/commands/field/summary.ts
8
8
  var summary_default = defineMetabaseCommand({
@@ -1,12 +1,12 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./field-DsXTeqBy.mjs";
5
- import { parseId } from "./parse-id-CD54Chc5.mjs";
6
- import "./table-C3RIKiYM.mjs";
7
- import { Database, DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-CIbVSfua.mjs";
8
- import { pollUntil } from "./poll-DVF9EnEb.mjs";
9
- import { parseWaitFlags, waitFlags } from "./wait-flags-DvNU8ahZ.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import "./field-RYBTW2KS.mjs";
6
+ import "./table-fDvuvqoU.mjs";
7
+ import { Database, DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-B-xwx5LA.mjs";
8
+ import { pollUntil } from "./poll-rqLkEJVP.mjs";
9
+ import { parseWaitFlags, waitFlags } from "./wait-flags-D0FEgH6k.mjs";
10
10
 
11
11
  //#region src/commands/db/sync-schema.ts
12
12
  var sync_schema_default = defineMetabaseCommand({
@@ -0,0 +1,55 @@
1
+ import { errorMessage, warn } from "./capabilities-1HTHeDa4.mjs";
2
+ import { HttpError } from "./runtime-CPIHg_Zg.mjs";
3
+ import { Collection } from "./collection-BrrjbPLN.mjs";
4
+ import { fetchCollectionsWithLibrary } from "./listing-1G8iFfZe.mjs";
5
+ import { fetchOptionalParsed } from "./poll-task-CiB1o1wG.mjs";
6
+ import { z } from "zod";
7
+
8
+ //#region src/commands/git-sync/sync-scope.ts
9
+ const REMOTE_SYNC_URL_SETTING_PATH = "/api/setting/remote-sync-url";
10
+ const RemoteSyncUrl = z.string().nullable();
11
+ const SyncedCollection = Collection.pick({
12
+ id: true,
13
+ name: true
14
+ }).strip();
15
+ const SyncScopeCollection = Collection.pick({
16
+ id: true,
17
+ name: true,
18
+ is_remote_synced: true
19
+ }).strip();
20
+ async function fetchSyncedCollections(client) {
21
+ const collections = await fetchCollectionsWithLibrary(client, SyncScopeCollection);
22
+ return collections.filter((collection) => collection.is_remote_synced === true).map((collection) => ({
23
+ id: collection.id,
24
+ name: collection.name
25
+ }));
26
+ }
27
+ async function fetchRemoteSyncUrlIfReadable(client) {
28
+ try {
29
+ const url = await fetchOptionalParsed(client, REMOTE_SYNC_URL_SETTING_PATH, RemoteSyncUrl);
30
+ return url === "" ? null : url;
31
+ } catch (error) {
32
+ if (error instanceof HttpError && (error.status === 403 || error.status === 404)) return null;
33
+ throw error;
34
+ }
35
+ }
36
+ function isOutsideSyncScope(collection) {
37
+ return collection !== null && collection.is_remote_synced === false;
38
+ }
39
+ function syncScopeHint(collection, remoteSyncUrl) {
40
+ if (!isOutsideSyncScope(collection) || remoteSyncUrl === null) return null;
41
+ return `Note: collection ${collection.id} "${collection.name}" is not marked for git-sync, so \`mb git-sync export\` will not carry it (or its published tables' metadata) to ${remoteSyncUrl}. Add it with: mb git-sync add-collection ${collection.id}`;
42
+ }
43
+ async function warnIfOutsideSyncScope(client, collection) {
44
+ if (!isOutsideSyncScope(collection)) return;
45
+ try {
46
+ const remoteSyncUrl = await fetchRemoteSyncUrlIfReadable(client);
47
+ const hint = syncScopeHint(collection, remoteSyncUrl);
48
+ if (hint !== null) warn(hint);
49
+ } catch (error) {
50
+ warn(`Could not check git-sync scope for collection ${collection.id}: ${errorMessage(error)}`);
51
+ }
52
+ }
53
+
54
+ //#endregion
55
+ export { SyncedCollection, fetchSyncedCollections, warnIfOutsideSyncScope };
@@ -0,0 +1,21 @@
1
+ import "./command-augment-D9pI9Vbh.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
+
4
+ //#region src/commands/table/index.ts
5
+ var table_default = defineCommandGroup({
6
+ name: "table",
7
+ description: "Manage Metabase tables",
8
+ skills: [{
9
+ skill: "metadata",
10
+ purpose: "table and column metadata, semantic types, visibility"
11
+ }],
12
+ subCommands: {
13
+ list: () => import("./list-CLgkOcmY.mjs").then((m) => m.default),
14
+ get: () => import("./get-B2vvnMpl.mjs").then((m) => m.default),
15
+ fields: () => import("./fields-D2czTLKq.mjs").then((m) => m.default),
16
+ update: () => import("./update-DrvAdi-O.mjs").then((m) => m.default)
17
+ }
18
+ });
19
+
20
+ //#endregion
21
+ export { table_default as default };
@@ -1,4 +1,4 @@
1
- import { Field, FieldCompact } from "./field-DsXTeqBy.mjs";
1
+ import { Field, FieldCompact } from "./field-RYBTW2KS.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/domain/table.ts
@@ -0,0 +1,24 @@
1
+ import "./command-augment-D9pI9Vbh.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
+
4
+ //#region src/commands/timeline/index.ts
5
+ var timeline_default = defineCommandGroup({
6
+ name: "timeline",
7
+ description: "Manage Metabase timelines (event annotations for time-series charts)",
8
+ skills: [{
9
+ skill: "core",
10
+ purpose: "collection scoping — events render only on questions in the timeline's collection"
11
+ }],
12
+ subCommands: {
13
+ list: () => import("./list-DOhVPh95.mjs").then((mod) => mod.default),
14
+ get: () => import("./get-Dy5f54pV.mjs").then((mod) => mod.default),
15
+ events: () => import("./events-C9PqRUCO.mjs").then((mod) => mod.default),
16
+ create: () => import("./create-1O1UiTVt.mjs").then((mod) => mod.default),
17
+ update: () => import("./update-CuKHukZ6.mjs").then((mod) => mod.default),
18
+ archive: () => import("./archive-Baz4OVDd.mjs").then((mod) => mod.default),
19
+ delete: () => import("./delete-CawUDFud.mjs").then((mod) => mod.default)
20
+ }
21
+ });
22
+
23
+ //#endregion
24
+ export { timeline_default as default };
@@ -1,5 +1,5 @@
1
1
  import "./command-augment-D9pI9Vbh.mjs";
2
- import { defineCommandGroup } from "./group-CILtQqCL.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
3
 
4
4
  //#region src/commands/timeline-event/index.ts
5
5
  var timeline_event_default = defineCommandGroup({
@@ -10,11 +10,11 @@ var timeline_event_default = defineCommandGroup({
10
10
  purpose: "required event fields and timeline collection scoping"
11
11
  }],
12
12
  subCommands: {
13
- get: () => import("./get-T85qZgnv.mjs").then((mod) => mod.default),
14
- create: () => import("./create-U_XDwsIX.mjs").then((mod) => mod.default),
15
- update: () => import("./update-8bTrglfc.mjs").then((mod) => mod.default),
16
- archive: () => import("./archive-Bv59HYsU.mjs").then((mod) => mod.default),
17
- delete: () => import("./delete-CW3dYmuT.mjs").then((mod) => mod.default)
13
+ get: () => import("./get-Cvkt6GcQ.mjs").then((mod) => mod.default),
14
+ create: () => import("./create-t7z8Eb4T.mjs").then((mod) => mod.default),
15
+ update: () => import("./update-hoCyoR-u.mjs").then((mod) => mod.default),
16
+ archive: () => import("./archive-C9mJGN6J.mjs").then((mod) => mod.default),
17
+ delete: () => import("./delete-CA7IjA5J.mjs").then((mod) => mod.default)
18
18
  }
19
19
  });
20
20
 
@@ -0,0 +1,31 @@
1
+ import "./command-augment-D9pI9Vbh.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
+
4
+ //#region src/commands/transform/index.ts
5
+ var transform_default = defineCommandGroup({
6
+ name: "transform",
7
+ description: "Manage Metabase transforms",
8
+ skills: [{
9
+ skill: "transform",
10
+ purpose: "body shape, run-with-wait, iterate"
11
+ }, {
12
+ skill: "mbql",
13
+ purpose: "MBQL source.query bodies"
14
+ }],
15
+ subCommands: {
16
+ list: () => import("./list-IxaPXKXu.mjs").then((mod) => mod.default),
17
+ get: () => import("./get-DhS4y0K9.mjs").then((mod) => mod.default),
18
+ dependencies: () => import("./dependencies-BQVZylqV.mjs").then((mod) => mod.default),
19
+ create: () => import("./create-yK1-fuX5.mjs").then((mod) => mod.default),
20
+ update: () => import("./update-DpIzJ8Ts.mjs").then((mod) => mod.default),
21
+ delete: () => import("./delete-Dcu3iDkg.mjs").then((mod) => mod.default),
22
+ "delete-table": () => import("./delete-table-DS0b3i0k.mjs").then((mod) => mod.default),
23
+ run: () => import("./run-D6jyZ0nv.mjs").then((mod) => mod.default),
24
+ cancel: () => import("./cancel-DvehNbDD.mjs").then((mod) => mod.default),
25
+ "get-run": () => import("./get-run-BF5ZBE8o.mjs").then((mod) => mod.default),
26
+ runs: () => import("./runs-DRxrpAkU.mjs").then((mod) => mod.default)
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ export { transform_default as default };
@@ -0,0 +1,25 @@
1
+ import "./command-augment-D9pI9Vbh.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
+
4
+ //#region src/commands/transform-job/index.ts
5
+ var transform_job_default = defineCommandGroup({
6
+ name: "transform-job",
7
+ description: "Manage Metabase transform jobs",
8
+ skills: [{
9
+ skill: "transform",
10
+ purpose: "tag-driven job schedules"
11
+ }],
12
+ subCommands: {
13
+ list: () => import("./list-DSHteJOl.mjs").then((mod) => mod.default),
14
+ get: () => import("./get-BfFKIfpX.mjs").then((mod) => mod.default),
15
+ create: () => import("./create--_4GZUNY.mjs").then((mod) => mod.default),
16
+ update: () => import("./update-C9K1QnOo.mjs").then((mod) => mod.default),
17
+ delete: () => import("./delete-BwPgIWV8.mjs").then((mod) => mod.default),
18
+ run: () => import("./run-Ce_gPVcg.mjs").then((mod) => mod.default),
19
+ transforms: () => import("./transforms-Cosz-Vq3.mjs").then((mod) => mod.default),
20
+ "set-active": () => import("./set-active-CFWtIWzX.mjs").then((mod) => mod.default)
21
+ }
22
+ });
23
+
24
+ //#endregion
25
+ export { transform_job_default as default };
@@ -1,7 +1,7 @@
1
+ import { CronUiDisplayType } from "./cron-93wjhtrP.mjs";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/domain/transform-job.ts
4
- const JobUiDisplayType = z.enum(["cron/raw", "cron/builder"]);
5
5
  const JobRunStatus = z.enum([
6
6
  "started",
7
7
  "succeeded",
@@ -26,7 +26,7 @@ const TransformJob = z.object({
26
26
  name: z.string(),
27
27
  description: z.string().nullable(),
28
28
  schedule: z.string(),
29
- ui_display_type: JobUiDisplayType,
29
+ ui_display_type: CronUiDisplayType,
30
30
  active: z.boolean().optional(),
31
31
  entity_id: z.string().nullable(),
32
32
  created_at: z.string(),
@@ -82,14 +82,14 @@ const TransformJobCreateInput = z.object({
82
82
  name: z.string().min(1),
83
83
  description: z.string().min(1).nullable().optional(),
84
84
  schedule: z.string().min(1),
85
- ui_display_type: JobUiDisplayType.optional(),
85
+ ui_display_type: CronUiDisplayType.optional(),
86
86
  tag_ids: z.array(z.number().int().positive()).optional()
87
87
  }).loose();
88
88
  const TransformJobUpdateInput = z.object({
89
89
  name: z.string().min(1).optional(),
90
90
  description: z.string().min(1).nullable().optional(),
91
91
  schedule: z.string().min(1).optional(),
92
- ui_display_type: JobUiDisplayType.optional(),
92
+ ui_display_type: CronUiDisplayType.optional(),
93
93
  active: z.boolean().optional(),
94
94
  tag_ids: z.array(z.number().int().positive()).optional()
95
95
  }).loose();
@@ -1,5 +1,5 @@
1
1
  import "./command-augment-D9pI9Vbh.mjs";
2
- import { defineCommandGroup } from "./group-CILtQqCL.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
3
 
4
4
  //#region src/commands/transform-tag/index.ts
5
5
  var transform_tag_default = defineCommandGroup({
@@ -10,10 +10,10 @@ var transform_tag_default = defineCommandGroup({
10
10
  purpose: "tags that drive job schedules"
11
11
  }],
12
12
  subCommands: {
13
- list: () => import("./list-BSxMFDMR.mjs").then((mod) => mod.default),
14
- create: () => import("./create-CPEOSxIH.mjs").then((mod) => mod.default),
15
- update: () => import("./update-BacyVaLu.mjs").then((mod) => mod.default),
16
- delete: () => import("./delete-B58Cng0p.mjs").then((mod) => mod.default)
13
+ list: () => import("./list-Bm1PlZEV.mjs").then((mod) => mod.default),
14
+ create: () => import("./create-BynNiG1N.mjs").then((mod) => mod.default),
15
+ update: () => import("./update-CXlhrcy8.mjs").then((mod) => mod.default),
16
+ delete: () => import("./delete-B8dui6O6.mjs").then((mod) => mod.default)
17
17
  }
18
18
  });
19
19
 
@@ -1,8 +1,8 @@
1
- import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { Transform, TransformCompact, transformView } from "./transform-BVHYzWpK.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { Transform, TransformCompact, transformView } from "./transform-BkSkCvpx.mjs";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/commands/transform-job/transforms.ts
@@ -1,7 +1,7 @@
1
- import { ConfigError, connectionFlags, outputFlags, profileFlag, writeJson } from "./capabilities-DOTcPraV.mjs";
1
+ import { ConfigError, connectionFlags, outputFlags, profileFlag, writeJson } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { CollectionTreeNode } from "./collection-CFoLPrY5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { CollectionTreeNode } from "./collection-BrrjbPLN.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/commands/collection/tree.ts
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./parse-id-CD54Chc5.mjs";
5
- import { parseTableSelectors, tableSelectorFlags } from "./selectors-Ll_TRxl5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import "./parse-id-waEVK-uR.mjs";
5
+ import { parseTableSelectors, tableSelectorFlags } from "./selectors-Bsyhe1zP.mjs";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/commands/library/unpublish.ts
@@ -1,17 +1,17 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./input-DzbvxKYU.mjs";
5
- import "./embedding-CKdw8q7p.mjs";
6
- import "./field-DsXTeqBy.mjs";
7
- import "./parameter-BZ6y-Gfs.mjs";
8
- import "./card-B8G5jQQT.mjs";
9
- import { parseId } from "./parse-id-CD54Chc5.mjs";
10
- import { readBody } from "./body-DKcQw7G5.mjs";
11
- import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
12
- import "./validate-Cqa14t7o.mjs";
13
- import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-B-MTpfeS.mjs";
14
- import { preflightDashcardCardReferences } from "./preflight-xhwEOHAt.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 "./embedding-B0x9CPkU.mjs";
9
+ import "./field-RYBTW2KS.mjs";
10
+ import "./parameter-hCQ80jnc.mjs";
11
+ import "./card-BFRRyTGs.mjs";
12
+ import "./validate-BoY75_M3.mjs";
13
+ import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-BSCXTX4H.mjs";
14
+ import { preflightDashcardCardReferences } from "./preflight-DJOBTWVq.mjs";
15
15
 
16
16
  //#region src/commands/dashboard/update.ts
17
17
  var update_default = defineMetabaseCommand({
@@ -0,0 +1,57 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
+ import "./command-augment-D9pI9Vbh.mjs";
3
+ import "./cron-93wjhtrP.mjs";
4
+ import { Notification, NotificationUpdateInput, notificationView } from "./notification-BR5wehqg.mjs";
5
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
6
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
7
+ import { patchAlert } from "./patch-DrMVqf34.mjs";
8
+ import { describeAlert } from "./summary-D1fKnwE3.mjs";
9
+ import "./input-BpXlmJ5J.mjs";
10
+ import { readBody } from "./body-DXJ2v3GY.mjs";
11
+ import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
12
+
13
+ //#region src/commands/alert/update.ts
14
+ var update_default = defineMetabaseCommand({
15
+ meta: {
16
+ name: "update",
17
+ description: "Update a question alert by id"
18
+ },
19
+ details: [
20
+ "Patches only the top-level fields you send: `payload`, `subscriptions`, `handlers`, `active`.",
21
+ "Fields inside `payload` merge over the current ones, so `{\"payload\":{\"send_condition\":\"goal_above\"}}` keeps the card.",
22
+ "`subscriptions` and `handlers` replace the whole list, so send every schedule and recipient you want to keep —",
23
+ "`mb alert get <id>` prints the current ones. An alert's card cannot be moved to a different card."
24
+ ].join(" "),
25
+ capabilities: { minVersion: 58 },
26
+ args: {
27
+ ...outputFlags,
28
+ ...profileFlag,
29
+ ...connectionFlags,
30
+ ...bodyInputFlags,
31
+ id: {
32
+ type: "positional",
33
+ description: "Alert id",
34
+ required: true
35
+ }
36
+ },
37
+ inputSchema: NotificationUpdateInput,
38
+ outputSchema: Notification,
39
+ examples: [
40
+ "mb alert update 9 --body '{\"payload\":{\"send_condition\":\"goal_above\"}}'",
41
+ "mb alert update 9 --body '{\"subscriptions\":[{\"cron_schedule\":\"0 0 9 * * ? *\"}]}'",
42
+ "mb alert update 9 --body '{\"active\":true}'"
43
+ ],
44
+ async run({ args, ctx, getClient }) {
45
+ const id = parseId(args.id);
46
+ const body = await readBody({
47
+ flag: args.body,
48
+ file: args.file
49
+ }, NotificationUpdateInput);
50
+ const client = await getClient();
51
+ const updated = await patchAlert(client, id, body);
52
+ renderSummary(updated, notificationView, describeAlert("Updated", updated), ctx);
53
+ }
54
+ });
55
+
56
+ //#endregion
57
+ export { update_default as default };
@@ -1,11 +1,12 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./input-DzbvxKYU.mjs";
5
- import { parseId } from "./parse-id-CD54Chc5.mjs";
6
- import { readBody } from "./body-DKcQw7G5.mjs";
7
- import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
8
- import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-CjsAXMej.mjs";
3
+ import "./cron-93wjhtrP.mjs";
4
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
5
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
6
+ import "./input-BpXlmJ5J.mjs";
7
+ import { readBody } from "./body-DXJ2v3GY.mjs";
8
+ import { bodyInputFlags } from "./body-flags-Cbv-Ba6W.mjs";
9
+ import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-sJmW_En3.mjs";
9
10
 
10
11
  //#region src/commands/transform-job/update.ts
11
12
  var update_default = defineMetabaseCommand({
@@ -1,11 +1,11 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./input-DzbvxKYU.mjs";
5
- import { Field, FieldUpdateInput, fieldView } from "./field-DsXTeqBy.mjs";
6
- import { parseId } from "./parse-id-CD54Chc5.mjs";
7
- import { readBody } from "./body-DKcQw7G5.mjs";
8
- import { bodyInputFlags } from "./body-flags-CgHgJBRC.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 { Field, FieldUpdateInput, fieldView } from "./field-RYBTW2KS.mjs";
9
9
 
10
10
  //#region src/commands/field/update.ts
11
11
  var update_default = defineMetabaseCommand({
@@ -1,11 +1,11 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./input-DzbvxKYU.mjs";
5
- import { parseId } from "./parse-id-CD54Chc5.mjs";
6
- import { readBody } from "./body-DKcQw7G5.mjs";
7
- import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
8
- import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag--IBQ-8Ij.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 { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-qTjNVfTW.mjs";
9
9
 
10
10
  //#region src/commands/transform-tag/update.ts
11
11
  var update_default = defineMetabaseCommand({
@@ -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-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./input-DzbvxKYU.mjs";
5
- import "./embedding-CKdw8q7p.mjs";
6
- import "./field-DsXTeqBy.mjs";
7
- import "./parameter-BZ6y-Gfs.mjs";
8
- import { Card, CardUpdateInput, cardView } from "./card-B8G5jQQT.mjs";
9
- import { parseId } from "./parse-id-CD54Chc5.mjs";
10
- import { readBody } from "./body-DKcQw7G5.mjs";
11
- import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
12
- import "./validate-Cqa14t7o.mjs";
13
- import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-D1N30wJ7.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 "./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({