@metabase/cli 0.1.15 → 0.1.17
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 +69 -32
- package/dist/{add-collection-CXhrMjXU.mjs → add-collection-C-t9SQBk.mjs} +5 -5
- package/dist/add-collection-Dek6kiRI.mjs +11 -0
- package/dist/{archive-BUwiCFnd.mjs → archive-C7dnyzVY.mjs} +9 -7
- package/dist/{archive-Blc1dz8Z.mjs → archive-CaoUUTIb.mjs} +8 -7
- package/dist/{archive-D-Ovk0-E.mjs → archive-D1FX-sbU.mjs} +7 -6
- package/dist/{archive-CQiaCBSj.mjs → archive-DS-KEB4a.mjs} +7 -6
- package/dist/{archive-yTvDRQUZ.mjs → archive-LG8u7ec5.mjs} +7 -6
- package/dist/{archive-BxGSR7El.mjs → archive-qSOcACQo.mjs} +8 -6
- package/dist/{archive-Drt-rWvU.mjs → archive-wNXwIiF0.mjs} +8 -7
- package/dist/auth-Kv2MRkRk.mjs +22 -0
- package/dist/{body-B9XTTDEu.mjs → body-IcJ5kFtk.mjs} +3 -3
- package/dist/{branches-Ct3PK5U3.mjs → branches-BlNCTmFB.mjs} +7 -6
- package/dist/{cancel-tST8Bh0w.mjs → cancel-BnveTPNw.mjs} +6 -5
- package/dist/{cancel-task-BHnzRQKL.mjs → cancel-task-CSVI8Zgl.mjs} +7 -6
- package/dist/{capabilities-BX1rnVuH.mjs → capabilities-N0jo5U7S.mjs} +1 -1
- package/dist/card-Bp58WEUF.mjs +26 -0
- package/dist/{card-wCPcuKSi.mjs → card-DEmcRlNO.mjs} +6 -5
- package/dist/{cards-BySIFsLG.mjs → cards-CMgGA8OZ.mjs} +8 -6
- package/dist/cli.mjs +54 -26
- package/dist/collection-D8TI20Ir.mjs +23 -0
- package/dist/{collection-namespace-D8ohM5gD.mjs → collection-namespace-CsaxEqOb.mjs} +2 -2
- package/dist/command-augment-DdZIfx1V.mjs +11 -0
- package/dist/{create-HZ-9GMLx.mjs → create-AeWNv0v-.mjs} +9 -8
- package/dist/create-B1xfaZJB.mjs +35 -0
- package/dist/{create-DxDD6n1d.mjs → create-B6LQutd0.mjs} +17 -12
- package/dist/{create-C7FPeJqF.mjs → create-B79M8YpX.mjs} +10 -9
- package/dist/{create-DGxZmbxh.mjs → create-Bg_uMu0p.mjs} +9 -8
- package/dist/{create-C43RQYgj.mjs → create-BpkWlgoR.mjs} +18 -12
- package/dist/{create-DnT1Sayk.mjs → create-C7u3umLj.mjs} +9 -8
- package/dist/{create-4mAGsBd0.mjs → create-FZOrCw5k.mjs} +21 -12
- package/dist/{create-fIDFkdox.mjs → create-I5Cv-MBa.mjs} +16 -11
- package/dist/{create-D3cVDtxM.mjs → create-LHqwcVbS.mjs} +16 -11
- package/dist/{create-BDWthCYq.mjs → create-SHKlj0z3.mjs} +9 -8
- package/dist/{create-branch-jPE7nW-E.mjs → create-branch-CGyT99Ny.mjs} +7 -6
- package/dist/{current-task-rW54KJax.mjs → current-task-C-0hw2Ae.mjs} +7 -6
- package/dist/dashboard-C9pQCnX6.mjs +28 -0
- package/dist/{dashboard-B4bn3z6t.mjs → dashboard-DOplbKyQ.mjs} +7 -5
- package/dist/{database-BmsxuRmO.mjs → database-D9fftP-i.mjs} +1 -1
- package/dist/db-DWykmBOh.mjs +28 -0
- package/dist/{delete-BWO6uB4P.mjs → delete--NYYN6wv.mjs} +8 -7
- package/dist/{delete-CeigtfRI.mjs → delete-Do3nn9sl.mjs} +8 -7
- package/dist/{delete-runtime-PzLFavb0.mjs → delete-runtime-B0ha5QR4.mjs} +3 -3
- package/dist/{delete-CBwztF6P.mjs → delete-tCVrYjKD.mjs} +8 -7
- package/dist/{delete-table-BXzvDEPG.mjs → delete-table-CWSGPw0i.mjs} +8 -7
- package/dist/{dependencies-D2N9eqm1.mjs → dependencies-CyFocD8I.mjs} +7 -6
- package/dist/{dirty-DoEZRSGB.mjs → dirty-BXM0YJ_a.mjs} +7 -6
- package/dist/document-DNDm8_Py.mjs +22 -0
- package/dist/{eid-1mROiwJr.mjs → eid-p-zn_1RJ.mjs} +13 -7
- package/dist/{error-D5bZ5BUX.mjs → error-5H_tcfL8.mjs} +2 -2
- package/dist/{export-Bgv5B4_F.mjs → export-B_8wghyo.mjs} +9 -8
- package/dist/field-CFt1-KDR.mjs +21 -0
- package/dist/{fields-VA7tXHJz.mjs → fields-BsufL9kv.mjs} +8 -7
- package/dist/{get-DAsaor0n.mjs → get-4lufgahL.mjs} +7 -6
- package/dist/{get-B8etVxWD.mjs → get-68P-L4ja.mjs} +7 -6
- package/dist/{get-qnGGGRTa.mjs → get-B45uYMAs.mjs} +8 -6
- package/dist/get-B67pe00Z.mjs +36 -0
- package/dist/{get-DvQoDU2m.mjs → get-BJoZkATD.mjs} +7 -6
- package/dist/{get-BgIE_YEg.mjs → get-BTKeO4vE.mjs} +7 -6
- package/dist/{get-RQFSmnpY.mjs → get-C7mq17-2.mjs} +7 -6
- package/dist/{get-CGkhSY5L.mjs → get-CDLa6LiC.mjs} +9 -8
- package/dist/{get-D9o38nK5.mjs → get-CPw0ROO4.mjs} +7 -6
- package/dist/{get-Wj88mnhn.mjs → get-Cl5Ak73C.mjs} +9 -7
- package/dist/{get-CqnCaosn.mjs → get-D3k2JUsa.mjs} +7 -6
- package/dist/{get-C-UeGtgW.mjs → get-DTqBuIf3.mjs} +6 -5
- package/dist/{get-eUYDNALt.mjs → get-DeLnNVQE.mjs} +8 -7
- package/dist/{get-DLRBq8kR.mjs → get-Df_3LCVC.mjs} +7 -6
- package/dist/{get-BtAD26gc.mjs → get-DurjkUKJ.mjs} +7 -6
- package/dist/{get-run-CATz-XMS.mjs → get-run-Dq4qfGfD.mjs} +7 -6
- package/dist/git-sync-ByvjqSiy.mjs +31 -0
- package/dist/group-BNE_RiH5.mjs +28 -0
- package/dist/{has-remote-changes-B6YEMC90.mjs → has-remote-changes-E-4N_O_t.mjs} +7 -6
- package/dist/{import-Bl2Wj9Xf.mjs → import-Dg0j3HCP.mjs} +9 -8
- package/dist/{input-BXWgdKiS.mjs → input-7Sj85_K7.mjs} +1 -1
- package/dist/is-dirty-D7UMN0mt.mjs +10 -0
- package/dist/{is-dirty-D9MoFj0T.mjs → is-dirty-DWw1yBeR.mjs} +4 -4
- package/dist/{items-LjtICjvX.mjs → items-CQtt9X4M.mjs} +9 -8
- package/dist/{key-C8q5oIr5.mjs → key-bltP32Pm.mjs} +1 -1
- package/dist/library-B5AvpACG.mjs +24 -0
- package/dist/{list-ChK06rJh.mjs → list-B1uVWy6A.mjs} +8 -6
- package/dist/{list-DaJk60dd.mjs → list-BAOTQHst.mjs} +6 -5
- package/dist/{list-C410Ptw_.mjs → list-BF-W4jOZ.mjs} +9 -7
- package/dist/{list-DMik04Dh.mjs → list-BFVuPodI.mjs} +6 -5
- package/dist/{list-DfoNv0gb.mjs → list-BHAWYZ1z.mjs} +6 -5
- package/dist/{list-DcjenlTM.mjs → list-BKUvhAs4.mjs} +6 -5
- package/dist/{list-Dq86BAMG.mjs → list-BgUWqZa2.mjs} +8 -7
- package/dist/{list-CfWblVHJ.mjs → list-C4bALfCs.mjs} +7 -6
- package/dist/{list-CoRX8Ruc.mjs → list-C9O2RY5u.mjs} +6 -5
- package/dist/{list-cnqPlJgC.mjs → list-CfqpDTna.mjs} +6 -5
- package/dist/{list-C6U3Ftg8.mjs → list-CvhVYOVl.mjs} +7 -6
- package/dist/{list-B5Q7E2Km.mjs → list-D3TSAqwl.mjs} +6 -5
- package/dist/list-D5Gdz8hi.mjs +100 -0
- package/dist/{list-Bjp9nd0o.mjs → list-DG0FIhTK.mjs} +6 -5
- package/dist/{list-DtrfE0sF.mjs → list-KxQNqp4T.mjs} +8 -7
- package/dist/{login-Cn2UtFUt.mjs → login-Bt6j6yBM.mjs} +10 -9
- package/dist/{logout-_HXgEmqA.mjs → logout-ANkL02p0.mjs} +6 -5
- package/dist/{manifest-DYeLri80.mjs → manifest-BVf8P4bl.mjs} +9 -2
- package/dist/measure-CgFwtL1r.mjs +25 -0
- package/dist/{metadata-8yqT8OZI.mjs → metadata-ClehtgZj.mjs} +9 -8
- package/dist/{metadata-DHODjg1d.mjs → metadata-DplshwI3.mjs} +8 -7
- package/dist/{command-augment-CAur0XOQ.mjs → notice-DyVl5aYB.mjs} +1 -11
- package/dist/parameter-CiJ4CwWE.mjs +118 -0
- package/dist/parameter-values-D4J8Ctu0.mjs +56 -0
- package/dist/{parse-enum-BatHQ-Gs.mjs → parse-enum-BL9i_brN.mjs} +1 -1
- package/dist/{parse-id-DNPeV0Iu.mjs → parse-id-D4LeTUsP.mjs} +1 -1
- package/dist/{parse-ref-CZr1bYIl.mjs → parse-ref-CB_KvF9h.mjs} +1 -1
- package/dist/{path-BflajM08.mjs → path-5nQgdvrs.mjs} +6 -5
- package/dist/{poll-CYkX02Bm.mjs → poll-BpAJpvb-.mjs} +2 -2
- package/dist/{poll-task-oXpl3wzp.mjs → poll-task-TilgciQn.mjs} +2 -2
- package/dist/{preflight-BdJr2amA.mjs → preflight-OfHU3Toi.mjs} +4 -4
- package/dist/{process-DsGf7Mg5.mjs → process-j8UHMHc2.mjs} +1 -1
- package/dist/{prompt-Bc_bHSD0.mjs → prompt-C85xd9HR.mjs} +1 -1
- package/dist/publish-DKiqyDwo.mjs +67 -0
- package/dist/{query-CxTjguwp.mjs → query-BWJ5h1g3.mjs} +19 -13
- package/dist/{query-DWQaN7hO.mjs → query-CQ3xXa9P.mjs} +10 -8
- package/dist/{query-result-L5_NrwQR.mjs → query-result-D6mfoVfQ.mjs} +1 -1
- package/dist/{remove-collection-BwcFi8Fs.mjs → remove-collection-CO-aMzTO.mjs} +9 -8
- package/dist/{rescan-values-B9Qtsd32.mjs → rescan-values-DpL6LGAK.mjs} +9 -8
- package/dist/resolve-Dj2MTBkn.mjs +84 -0
- package/dist/{run-C-vftXCu.mjs → run-DUcdaZs3.mjs} +6 -5
- package/dist/{run-3eFtdI2Z.mjs → run-QYJ-mAaG.mjs} +9 -8
- package/dist/{runs-CpRTkn1W.mjs → runs-DgasTnGd.mjs} +8 -7
- package/dist/{runtime-C1QgWHM7.mjs → runtime-BJtuxWM8.mjs} +5 -3
- package/dist/{schema-tables-rdeupgsu.mjs → schema-tables-ooYjimrV.mjs} +8 -7
- package/dist/{schemas-Cr7RjYqV.mjs → schemas-HjFPzsd-.mjs} +6 -5
- package/dist/{search-D7Yq2MDu.mjs → search-vaT5EwhG.mjs} +11 -5
- package/dist/segment-BPC725mo.mjs +25 -0
- package/dist/{selectors-DPc2ZDdd.mjs → selectors-DlmZpo2L.mjs} +4 -4
- package/dist/{set-X2N6x7pe.mjs → set-CLHJauzG.mjs} +9 -8
- package/dist/{set-active-BoBa3pOw.mjs → set-active-oZOUe9V7.mjs} +6 -5
- package/dist/setting-DHYO-W5g.mjs +20 -0
- package/dist/{setup-C47WUieB.mjs → setup-D1de5Sbc.mjs} +8 -7
- package/dist/{skills-CJ8g8fhQ.mjs → skills-B6gfH0iR.mjs} +1 -1
- package/dist/{skills-Po0YPVU5.mjs → skills-NhgVypJ7.mjs} +3 -3
- package/dist/snippet-DtLmHr2J.mjs +22 -0
- package/dist/{stash-BV4sEp73.mjs → stash-DoRwelwY.mjs} +9 -8
- package/dist/{status-BKF9rRnk.mjs → status-BpMOlfsA.mjs} +8 -7
- package/dist/{status-Cf8c0NON.mjs → status-CmRgHTrV.mjs} +6 -5
- package/dist/{summary-RgLcBcEh.mjs → summary-BEu7pmpq.mjs} +7 -6
- package/dist/{sync-schema-DKEel2Sv.mjs → sync-schema-DTUXubMg.mjs} +11 -10
- package/dist/table-B1iBqmNu.mjs +22 -0
- package/dist/{table-qDD2kApF.mjs → table-DE3i82T_.mjs} +9 -2
- package/dist/transform-BuIooRQh.mjs +31 -0
- package/dist/transform-job-C3yz0krA.mjs +25 -0
- package/dist/transform-tag-CJD6mJUe.mjs +21 -0
- package/dist/{transforms-BOQ9CG0l.mjs → transforms-CWvMpLc9.mjs} +7 -6
- package/dist/{tree-CF8mscd9.mjs → tree-D18vYSe4.mjs} +6 -5
- package/dist/{unpublish-CmaRNjK3.mjs → unpublish-CJbL4ZsC.mjs} +20 -18
- package/dist/{update-Kz4kyqY_.mjs → update-7DacwIvi.mjs} +10 -9
- package/dist/{update-CgQOSuZt.mjs → update-BjjZIe2W.mjs} +10 -9
- package/dist/{update-nwXgVNQa.mjs → update-Bos8nnv0.mjs} +18 -13
- package/dist/{update-BXZBEeUp.mjs → update-BvsvyBw9.mjs} +17 -12
- package/dist/{update-DQPg0_-d.mjs → update-CSxwZ2us.mjs} +11 -10
- package/dist/{update-BuypOaXq.mjs → update-Ck0Kxv8u.mjs} +10 -9
- package/dist/{update-B59h7KmS.mjs → update-DV7IY7IQ.mjs} +10 -9
- package/dist/{update-DERsb0eO.mjs → update-DhOfrW1j.mjs} +19 -13
- package/dist/{update-DR4WkAET.mjs → update-Doia9MP_.mjs} +17 -12
- package/dist/{update-rhfPHALN.mjs → update-Dxa_6H2A.mjs} +22 -13
- package/dist/{update-dashcard-BJVeSGvO.mjs → update-dashcard-CZUWZhal.mjs} +11 -9
- package/dist/{update-DoQpy9SA.mjs → update-mr9todHq.mjs} +10 -9
- package/dist/{upgrade-CNrkJF6s.mjs → upgrade-CBW8V9qZ.mjs} +7 -6
- package/dist/{uuid-Dpl3ALKq.mjs → uuid-D6JVJ-R1.mjs} +10 -5
- package/dist/{validate-VawhJ5Sc.mjs → validate-BqNW4Sk1.mjs} +2 -2
- package/dist/{validate-query-CSV-TTnd.mjs → validate-query-CcZVKYPV.mjs} +3 -3
- package/dist/{values-DMYpkoEH.mjs → values-DBvuGnnA.mjs} +7 -6
- package/dist/{verify-By9ZYzx4.mjs → verify-LIShMNZ2.mjs} +2 -2
- package/dist/{wait-BzIAj8lJ.mjs → wait-DUHze3_B.mjs} +8 -7
- package/dist/{wait-flags-DQrxnlwv.mjs → wait-flags-Ybpt98PK.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +45 -57
- package/skill-data/data-workflow/SKILL.md +116 -0
- package/skill-data/{data-analysis/SKILL.md → data-workflow/references/answering-questions.md} +7 -13
- package/skill-data/{data-transformation/SKILL.md → data-workflow/references/building-clean-tables.md} +46 -48
- package/skill-data/{semantic-layer/SKILL.md → data-workflow/references/reusable-definitions.md} +29 -54
- package/skill-data/document/SKILL.md +10 -20
- package/skill-data/git-sync/SKILL.md +36 -36
- package/skill-data/mbql/SKILL.md +3 -15
- package/skill-data/mbql/references/operators.md +9 -0
- package/skill-data/transform/SKILL.md +26 -42
- package/skill-data/visualization/SKILL.md +6 -6
- package/skill-data/visualization/references/settings.md +12 -0
- package/skills/metabase-cli/SKILL.md +2 -2
- package/dist/add-collection-Bnuh0d4j.mjs +0 -10
- package/dist/auth-Bkue4Psy.mjs +0 -19
- package/dist/card-faWo9ZWU.mjs +0 -20
- package/dist/collection-DcRz7fmf.mjs +0 -20
- package/dist/dashboard-pXAxJTTx.mjs +0 -21
- package/dist/db-CmHHj5eI.mjs +0 -22
- package/dist/document-DQIhL75C.mjs +0 -19
- package/dist/field-B-UcqFzm.mjs +0 -18
- package/dist/git-sync-CwOvcUI2.mjs +0 -28
- package/dist/is-dirty-MT0BT4CS.mjs +0 -9
- package/dist/list-Cx8JxS2C.mjs +0 -42
- package/dist/measure-BIAoqgcS.mjs +0 -19
- package/dist/publish-CGUkIqSm.mjs +0 -70
- package/dist/segment-BN8sFunv.mjs +0 -19
- package/dist/setting-zZjcOPyE.mjs +0 -17
- package/dist/snippet-DK0ZA8m5.mjs +0 -19
- package/dist/table-COAKXNuj.mjs +0 -21
- package/dist/transform-Bto4U82j.mjs +0 -25
- package/dist/transform-job-_fW1y2tg.mjs +0 -22
- package/dist/transform-tag-C8n1oTr1.mjs +0 -18
- package/skill-data/robot-data-engineer/SKILL.md +0 -142
- /package/dist/{body-flags-D7q87Btw.mjs → body-flags-DWTTxJpP.mjs} +0 -0
- /package/dist/{collection-Deiziuu2.mjs → collection-DrLpA1SO.mjs} +0 -0
- /package/dist/{document-qfwR0r63.mjs → document-1W7NRaO_.mjs} +0 -0
- /package/dist/{field-E0IBy4Uw.mjs → field-CMY_LWUe.mjs} +0 -0
- /package/dist/{measure-JJAdFoqK.mjs → measure-DoJvtCaA.mjs} +0 -0
- /package/dist/{paginate-BexjkjbY.mjs → paginate-FVZUxL4J.mjs} +0 -0
- /package/dist/{render-CkuFkWlQ.mjs → render-BTKnWL0d.mjs} +0 -0
- /package/dist/{revision-message-flag-C7zBeWEt.mjs → revision-message-flag-CHrJgFFx.mjs} +0 -0
- /package/dist/{segment-B9SEv9V_.mjs → segment-TXktTCfU.mjs} +0 -0
- /package/dist/{setting-i0pugNHl.mjs → setting-m46MUtW5.mjs} +0 -0
- /package/dist/{snippet-NNzqlksR.mjs → snippet-CtA2Pkoa.mjs} +0 -0
- /package/dist/{transform-n376akp8.mjs → transform-DEF38FWe.mjs} +0 -0
- /package/dist/{transform-job-C8lIS-7Q.mjs → transform-job-CtixL4An.mjs} +0 -0
- /package/dist/{transform-tag-DB46AhAj.mjs → transform-tag-rsIrckCM.mjs} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/db/schemas.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand, parseEnumCsv } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/domain/search.ts
|
|
@@ -79,6 +80,11 @@ var search_default = defineMetabaseCommand({
|
|
|
79
80
|
name: "search",
|
|
80
81
|
description: "Search Metabase content (cards, dashboards, collections, …)"
|
|
81
82
|
},
|
|
83
|
+
details: "Ranks content against a query string. To simply enumerate a resource, prefer its `… list` verb.",
|
|
84
|
+
skills: [{
|
|
85
|
+
skill: "core",
|
|
86
|
+
purpose: "search vs. list"
|
|
87
|
+
}],
|
|
82
88
|
capabilities: { minVersion: 58 },
|
|
83
89
|
args: {
|
|
84
90
|
...outputFlags,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/segment/index.ts
|
|
5
|
+
var segment_default = defineCommandGroup({
|
|
6
|
+
name: "segment",
|
|
7
|
+
description: "Manage Metabase segments",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "mbql",
|
|
10
|
+
purpose: "the definition filter clause"
|
|
11
|
+
}, {
|
|
12
|
+
skill: "data-workflow",
|
|
13
|
+
purpose: "define reusable segments"
|
|
14
|
+
}],
|
|
15
|
+
subCommands: {
|
|
16
|
+
list: () => import("./list-BKUvhAs4.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-D3k2JUsa.mjs").then((mod) => mod.default),
|
|
18
|
+
create: () => import("./create-I5Cv-MBa.mjs").then((mod) => mod.default),
|
|
19
|
+
update: () => import("./update-Doia9MP_.mjs").then((mod) => mod.default),
|
|
20
|
+
archive: () => import("./archive-CaoUUTIb.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { segment_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import { parseCsv } from "./runtime-
|
|
3
|
-
import { parseId } from "./parse-id-
|
|
1
|
+
import { ConfigError } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { parseCsv } from "./runtime-BJtuxWM8.mjs";
|
|
3
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
4
4
|
|
|
5
|
-
//#region src/commands/
|
|
5
|
+
//#region src/commands/library/selectors.ts
|
|
6
6
|
const tableSelectorFlags = {
|
|
7
7
|
"table-ids": {
|
|
8
8
|
type: "string",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { formatScalar, renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./input-7Sj85_K7.mjs";
|
|
7
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
8
|
+
import { SettingValue, settingValueView } from "./setting-m46MUtW5.mjs";
|
|
9
|
+
import { parseSettingKey, rethrowSettingError } from "./key-bltP32Pm.mjs";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
|
|
11
12
|
//#region src/commands/setting/set.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { parseEnumFlag } from "./parse-enum-BL9i_brN.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/transform-job/set-active.ts
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/setting/index.ts
|
|
5
|
+
var setting_default = defineCommandGroup({
|
|
6
|
+
name: "setting",
|
|
7
|
+
description: "Inspect and update Metabase settings",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "core",
|
|
10
|
+
purpose: "setting get/set JSON value quoting"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-C9O2RY5u.mjs").then((m) => m.default),
|
|
14
|
+
get: () => import("./get-CPw0ROO4.mjs").then((m) => m.default),
|
|
15
|
+
set: () => import("./set-CLHJauzG.mjs").then((m) => m.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { setting_default as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./input-7Sj85_K7.mjs";
|
|
7
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
|
|
10
11
|
//#region src/domain/setup.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigError, ValidationError, errorMessage, isNotFoundError } from "./
|
|
1
|
+
import { ConfigError, ValidationError, errorMessage, isNotFoundError } from "./notice-DyVl5aYB.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { closeSync, openSync, readFileSync, readSync, readdirSync, statSync } from "node:fs";
|
|
4
4
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -8,9 +8,9 @@ var skills_default = defineCommand({
|
|
|
8
8
|
},
|
|
9
9
|
default: "list",
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
path: () => import("./path-
|
|
11
|
+
list: () => import("./list-D5Gdz8hi.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-DTqBuIf3.mjs").then((m) => m.default),
|
|
13
|
+
path: () => import("./path-5nQgdvrs.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/snippet/index.ts
|
|
5
|
+
var snippet_default = defineCommandGroup({
|
|
6
|
+
name: "snippet",
|
|
7
|
+
description: "Manage Metabase native query snippets",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "core",
|
|
10
|
+
purpose: "native-SQL snippets and body input"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-CfqpDTna.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-68P-L4ja.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-SHKlj0z3.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-Ck0Kxv8u.mjs").then((mod) => mod.default),
|
|
17
|
+
archive: () => import("./archive-D1FX-sbU.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { snippet_default as default };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
1
|
+
import { ConfigError } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./parse-id-D4LeTUsP.mjs";
|
|
7
|
+
import "./poll-BpAJpvb-.mjs";
|
|
8
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Ybpt98PK.mjs";
|
|
9
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-TilgciQn.mjs";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
|
|
11
12
|
//#region src/commands/git-sync/stash.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./poll-BpAJpvb-.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-TilgciQn.mjs";
|
|
8
|
+
import { IsDirtyResult } from "./is-dirty-DWw1yBeR.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/git-sync/status.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, displayUrl, profileAuthMethod, readProfileRecord, resolveProfileName } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderItem } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { renderAuthMethod, renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-BTKnWL0d.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/auth/status.ts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderItem } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-CMY_LWUe.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/field/summary.ts
|
|
9
10
|
var summary_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./field-CMY_LWUe.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import "./table-DE3i82T_.mjs";
|
|
9
|
+
import { Database, DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-D9fftP-i.mjs";
|
|
10
|
+
import { pollUntil } from "./poll-BpAJpvb-.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-Ybpt98PK.mjs";
|
|
11
12
|
|
|
12
13
|
//#region src/commands/db/sync-schema.ts
|
|
13
14
|
var sync_schema_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.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: "core",
|
|
10
|
+
purpose: "table and column metadata, semantic types"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-KxQNqp4T.mjs").then((m) => m.default),
|
|
14
|
+
get: () => import("./get-DeLnNVQE.mjs").then((m) => m.default),
|
|
15
|
+
metadata: () => import("./metadata-DplshwI3.mjs").then((m) => m.default),
|
|
16
|
+
fields: () => import("./fields-BsufL9kv.mjs").then((m) => m.default),
|
|
17
|
+
update: () => import("./update-CSxwZ2us.mjs").then((m) => m.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { table_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field, FieldCompact } from "./field-
|
|
1
|
+
import { Field, FieldCompact } from "./field-CMY_LWUe.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/domain/table.ts
|
|
@@ -32,6 +32,8 @@ const Table = z.object({
|
|
|
32
32
|
entity_type: TableEntityType.nullable(),
|
|
33
33
|
visibility_type: TableVisibilityType.nullable().optional(),
|
|
34
34
|
active: z.boolean().optional(),
|
|
35
|
+
is_published: z.boolean().optional(),
|
|
36
|
+
collection_id: z.number().int().nullable().optional(),
|
|
35
37
|
fields: z.array(Field).optional()
|
|
36
38
|
}).loose();
|
|
37
39
|
const TableQueryMetadata = Table.extend({ fields: z.array(Field) });
|
|
@@ -42,7 +44,8 @@ const TableCompact = Table.pick({
|
|
|
42
44
|
description: true,
|
|
43
45
|
db_id: true,
|
|
44
46
|
schema: true,
|
|
45
|
-
entity_type: true
|
|
47
|
+
entity_type: true,
|
|
48
|
+
is_published: true
|
|
46
49
|
}).strip().extend({ fields: z.array(FieldCompact).optional() });
|
|
47
50
|
const tableView = {
|
|
48
51
|
compactPick: TableCompact,
|
|
@@ -70,6 +73,10 @@ const tableView = {
|
|
|
70
73
|
{
|
|
71
74
|
key: "description",
|
|
72
75
|
label: "Description"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "is_published",
|
|
79
|
+
label: "Published"
|
|
73
80
|
}
|
|
74
81
|
]
|
|
75
82
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.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-BFVuPodI.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-BTKeO4vE.mjs").then((mod) => mod.default),
|
|
18
|
+
dependencies: () => import("./dependencies-CyFocD8I.mjs").then((mod) => mod.default),
|
|
19
|
+
create: () => import("./create-B6LQutd0.mjs").then((mod) => mod.default),
|
|
20
|
+
update: () => import("./update-Bos8nnv0.mjs").then((mod) => mod.default),
|
|
21
|
+
delete: () => import("./delete--NYYN6wv.mjs").then((mod) => mod.default),
|
|
22
|
+
"delete-table": () => import("./delete-table-CWSGPw0i.mjs").then((mod) => mod.default),
|
|
23
|
+
run: () => import("./run-QYJ-mAaG.mjs").then((mod) => mod.default),
|
|
24
|
+
cancel: () => import("./cancel-BnveTPNw.mjs").then((mod) => mod.default),
|
|
25
|
+
"get-run": () => import("./get-run-Dq4qfGfD.mjs").then((mod) => mod.default),
|
|
26
|
+
runs: () => import("./runs-DgasTnGd.mjs").then((mod) => mod.default)
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { transform_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.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-D3TSAqwl.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-BJoZkATD.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-Bg_uMu0p.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-DV7IY7IQ.mjs").then((mod) => mod.default),
|
|
17
|
+
delete: () => import("./delete-Do3nn9sl.mjs").then((mod) => mod.default),
|
|
18
|
+
run: () => import("./run-DUcdaZs3.mjs").then((mod) => mod.default),
|
|
19
|
+
transforms: () => import("./transforms-CWvMpLc9.mjs").then((mod) => mod.default),
|
|
20
|
+
"set-active": () => import("./set-active-oZOUe9V7.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { transform_job_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/transform-tag/index.ts
|
|
5
|
+
var transform_tag_default = defineCommandGroup({
|
|
6
|
+
name: "transform-tag",
|
|
7
|
+
description: "Manage Metabase transform tags",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "transform",
|
|
10
|
+
purpose: "tags that drive job schedules"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-BAOTQHst.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-AeWNv0v-.mjs").then((mod) => mod.default),
|
|
15
|
+
update: () => import("./update-7DacwIvi.mjs").then((mod) => mod.default),
|
|
16
|
+
delete: () => import("./delete-tCVrYjKD.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { transform_tag_default as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
+
import { Transform, TransformCompact, transformView } from "./transform-DEF38FWe.mjs";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/transform-job/transforms.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ConfigError } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { writeJson } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { CollectionTreeNode } from "./collection-DrLpA1SO.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/collection/tree.ts
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./parse-id-D4LeTUsP.mjs";
|
|
7
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-DlmZpo2L.mjs";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
9
|
-
//#region src/commands/
|
|
10
|
-
const
|
|
10
|
+
//#region src/commands/library/unpublish.ts
|
|
11
|
+
const UNPUBLISH_TABLES_PATH = "/api/ee/data-studio/table/unpublish-tables";
|
|
12
|
+
const LibraryUnpublishResult = z.object({
|
|
11
13
|
unpublished: z.literal(true),
|
|
12
14
|
table_ids: z.array(z.number().int()).optional(),
|
|
13
15
|
database_ids: z.array(z.number().int()).optional(),
|
|
14
16
|
schema_ids: z.array(z.string()).optional()
|
|
15
17
|
});
|
|
16
|
-
const
|
|
17
|
-
compactPick:
|
|
18
|
+
const libraryUnpublishResultView = {
|
|
19
|
+
compactPick: LibraryUnpublishResult,
|
|
18
20
|
tableColumns: [
|
|
19
21
|
{
|
|
20
22
|
key: "unpublished",
|
|
@@ -37,9 +39,9 @@ const tableUnpublishResultView = {
|
|
|
37
39
|
var unpublish_default = defineMetabaseCommand({
|
|
38
40
|
meta: {
|
|
39
41
|
name: "unpublish",
|
|
40
|
-
description: "Unpublish tables (and their downstream dependents) from the
|
|
42
|
+
description: "Unpublish tables (and their downstream dependents) from the Library"
|
|
41
43
|
},
|
|
42
|
-
details: "Clears the
|
|
44
|
+
details: "Clears the Library collection for each selected table and recursively for every downstream table that depends on it. Select with --table-ids, --db-ids, or --schemas (each schema id is \"<db-id>:<schema>\", e.g. 1:public); the filters are combined.",
|
|
43
45
|
capabilities: {
|
|
44
46
|
minVersion: 59,
|
|
45
47
|
tokenFeature: "library"
|
|
@@ -50,16 +52,16 @@ var unpublish_default = defineMetabaseCommand({
|
|
|
50
52
|
...connectionFlags,
|
|
51
53
|
...tableSelectorFlags
|
|
52
54
|
},
|
|
53
|
-
outputSchema:
|
|
55
|
+
outputSchema: LibraryUnpublishResult,
|
|
54
56
|
examples: [
|
|
55
|
-
"mb
|
|
56
|
-
"mb
|
|
57
|
-
"mb
|
|
57
|
+
"mb library unpublish --table-ids 1,2,3",
|
|
58
|
+
"mb library unpublish --db-ids 1 --json",
|
|
59
|
+
"mb library unpublish --schemas 1:public,1:analytics"
|
|
58
60
|
],
|
|
59
61
|
async run({ args, ctx, getClient }) {
|
|
60
62
|
const selectors = parseTableSelectors(args);
|
|
61
63
|
const client = await getClient();
|
|
62
|
-
await client.requestRaw(
|
|
64
|
+
await client.requestRaw(UNPUBLISH_TABLES_PATH, {
|
|
63
65
|
method: "POST",
|
|
64
66
|
body: selectors,
|
|
65
67
|
expectContentType: "binary"
|
|
@@ -68,7 +70,7 @@ var unpublish_default = defineMetabaseCommand({
|
|
|
68
70
|
unpublished: true,
|
|
69
71
|
...selectors
|
|
70
72
|
};
|
|
71
|
-
renderSummary(result,
|
|
73
|
+
renderSummary(result, libraryUnpublishResultView, "Unpublished tables from the Library.", ctx);
|
|
72
74
|
}
|
|
73
75
|
});
|
|
74
76
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./input-7Sj85_K7.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
10
|
+
import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-rsIrckCM.mjs";
|
|
10
11
|
|
|
11
12
|
//#region src/commands/transform-tag/update.ts
|
|
12
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./input-7Sj85_K7.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
10
|
+
import { Document, DocumentUpdateInput, documentView } from "./document-1W7NRaO_.mjs";
|
|
10
11
|
|
|
11
12
|
//#region src/commands/document/update.ts
|
|
12
13
|
var update_default = defineMetabaseCommand({
|