@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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/runtime/command-augment.ts
|
|
2
|
+
const augments = new WeakMap();
|
|
3
|
+
function setMetabaseAugment(cmd, augment) {
|
|
4
|
+
augments.set(cmd, augment);
|
|
5
|
+
}
|
|
6
|
+
function getMetabaseAugment(cmd) {
|
|
7
|
+
return augments.get(cmd) ?? null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { getMetabaseAugment, setMetabaseAugment };
|
|
@@ -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 { 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";
|
|
9
|
+
import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-rsIrckCM.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/transform-tag/create.ts
|
|
11
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,35 @@
|
|
|
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 "./collection-DrLpA1SO.mjs";
|
|
7
|
+
import { Library, createLibrary, libraryView } from "./resolve-Dj2MTBkn.mjs";
|
|
8
|
+
|
|
9
|
+
//#region src/commands/library/create.ts
|
|
10
|
+
var create_default = defineMetabaseCommand({
|
|
11
|
+
meta: {
|
|
12
|
+
name: "create",
|
|
13
|
+
description: "Create the Library (Data + Metrics collections); idempotent"
|
|
14
|
+
},
|
|
15
|
+
details: "Creates the Library subtree if it doesn't exist and returns it; a no-op that returns the existing Library when it's already there. Only admins and data analysts can curate the Library.",
|
|
16
|
+
capabilities: {
|
|
17
|
+
minVersion: 59,
|
|
18
|
+
tokenFeature: "library"
|
|
19
|
+
},
|
|
20
|
+
args: {
|
|
21
|
+
...outputFlags,
|
|
22
|
+
...profileFlag,
|
|
23
|
+
...connectionFlags
|
|
24
|
+
},
|
|
25
|
+
outputSchema: Library,
|
|
26
|
+
examples: ["mb library create", "mb library create --json"],
|
|
27
|
+
async run({ ctx, getClient }) {
|
|
28
|
+
const client = await getClient();
|
|
29
|
+
const library = await createLibrary(client);
|
|
30
|
+
renderSummary(library, libraryView, `Library ready (collection ${library.id}).`, ctx);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { create_default as default };
|
|
@@ -1,14 +1,15 @@
|
|
|
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 {
|
|
11
|
-
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";
|
|
9
|
+
import "./validate-BqNW4Sk1.mjs";
|
|
10
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CcZVKYPV.mjs";
|
|
11
|
+
import { Transform, TransformCreateInput, transformView } from "./transform-DEF38FWe.mjs";
|
|
12
|
+
import { enrichTransformCollectionError } from "./collection-namespace-CsaxEqOb.mjs";
|
|
12
13
|
|
|
13
14
|
//#region src/commands/transform/create.ts
|
|
14
15
|
var create_default = defineMetabaseCommand({
|
|
@@ -16,7 +17,11 @@ var create_default = defineMetabaseCommand({
|
|
|
16
17
|
name: "create",
|
|
17
18
|
description: "Create a transform from JSON"
|
|
18
19
|
},
|
|
19
|
-
details: "The JSON body needs a `name`, a `source` (the query to run — native SQL or MBQL — under `source.query`), and a `target` (the warehouse table to write, with `database`/`schema`/`name`). When `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.
|
|
20
|
+
details: "The JSON body needs a `name`, a `source` (the query to run — native SQL or MBQL — under `source.query`), and a `target` (the warehouse table to write, with `database`/`schema`/`name`). When `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
21
|
+
skills: [{
|
|
22
|
+
skill: "mbql",
|
|
23
|
+
purpose: "MBQL source.query bodies"
|
|
24
|
+
}],
|
|
20
25
|
capabilities: { minVersion: 59 },
|
|
21
26
|
args: {
|
|
22
27
|
...outputFlags,
|
|
@@ -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 { readBody } from "./body-IcJ5kFtk.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
9
|
+
import { parseEnumFlag } from "./parse-enum-BL9i_brN.mjs";
|
|
10
|
+
import { Collection, CollectionCreateInput, CollectionNamespace, collectionView } from "./collection-DrLpA1SO.mjs";
|
|
10
11
|
|
|
11
12
|
//#region src/commands/collection/create.ts
|
|
12
13
|
var create_default = defineMetabaseCommand({
|
|
@@ -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 { 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";
|
|
9
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-CtixL4An.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/transform-job/create.ts
|
|
11
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,15 +1,17 @@
|
|
|
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 "./
|
|
11
|
-
import {
|
|
12
|
-
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 "./field-CMY_LWUe.mjs";
|
|
8
|
+
import "./parameter-CiJ4CwWE.mjs";
|
|
9
|
+
import "./card-DEmcRlNO.mjs";
|
|
10
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
11
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
12
|
+
import "./validate-BqNW4Sk1.mjs";
|
|
13
|
+
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-DOplbKyQ.mjs";
|
|
14
|
+
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-OfHU3Toi.mjs";
|
|
13
15
|
|
|
14
16
|
//#region src/commands/dashboard/create.ts
|
|
15
17
|
var create_default = defineMetabaseCommand({
|
|
@@ -18,6 +20,10 @@ var create_default = defineMetabaseCommand({
|
|
|
18
20
|
description: "Create a dashboard from JSON"
|
|
19
21
|
},
|
|
20
22
|
details: "Any positive card_id referenced from dashcards is pre-flight-validated (exists and readable, not archived) before the dashboard is created.",
|
|
23
|
+
skills: [{
|
|
24
|
+
skill: "visualization",
|
|
25
|
+
purpose: "dashcard visualization_settings and the 24-column grid"
|
|
26
|
+
}],
|
|
21
27
|
capabilities: { minVersion: 58 },
|
|
22
28
|
args: {
|
|
23
29
|
...outputFlags,
|
|
@@ -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 { 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";
|
|
9
|
+
import { Document, DocumentCreateInput, documentView } from "./document-1W7NRaO_.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/document/create.ts
|
|
11
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,16 @@
|
|
|
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 "./
|
|
11
|
-
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 "./field-CMY_LWUe.mjs";
|
|
8
|
+
import "./parameter-CiJ4CwWE.mjs";
|
|
9
|
+
import { Card, CardCreateInput, cardView } from "./card-DEmcRlNO.mjs";
|
|
10
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
11
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
12
|
+
import "./validate-BqNW4Sk1.mjs";
|
|
13
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CcZVKYPV.mjs";
|
|
12
14
|
|
|
13
15
|
//#region src/commands/card/create.ts
|
|
14
16
|
var create_default = defineMetabaseCommand({
|
|
@@ -16,7 +18,14 @@ var create_default = defineMetabaseCommand({
|
|
|
16
18
|
name: "create",
|
|
17
19
|
description: "Create a card (question, model, or metric) from JSON"
|
|
18
20
|
},
|
|
19
|
-
details: "The JSON body needs `name`, `display` (the visualization — e.g. table, bar, scalar), `dataset_query` (the query powering the card), and `visualization_settings` (`{}` is fine). When `dataset_query` is an MBQL 5 query it is checked against a bundled JSON Schema before sending — fix the reported errors, or pass --skip-validate to send anyway. Native-SQL and legacy queries are sent unchecked.
|
|
21
|
+
details: "The JSON body needs `name`, `display` (the visualization — e.g. table, bar, scalar), `dataset_query` (the query powering the card), and `visualization_settings` (`{}` is fine). When `dataset_query` is an MBQL 5 query it is checked against a bundled JSON Schema before sending — fix the reported errors, or pass --skip-validate to send anyway. Native-SQL and legacy queries are sent unchecked.",
|
|
22
|
+
skills: [{
|
|
23
|
+
skill: "mbql",
|
|
24
|
+
purpose: "author the dataset_query"
|
|
25
|
+
}, {
|
|
26
|
+
skill: "visualization",
|
|
27
|
+
purpose: "choose display and visualization_settings"
|
|
28
|
+
}],
|
|
20
29
|
capabilities: { minVersion: 58 },
|
|
21
30
|
args: {
|
|
22
31
|
...outputFlags,
|
|
@@ -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 "./input-7Sj85_K7.mjs";
|
|
7
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
9
|
+
import "./validate-BqNW4Sk1.mjs";
|
|
10
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CcZVKYPV.mjs";
|
|
11
|
+
import { Segment, SegmentCreateInput, segmentView } from "./segment-TXktTCfU.mjs";
|
|
11
12
|
|
|
12
13
|
//#region src/commands/segment/create.ts
|
|
13
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -15,7 +16,11 @@ var create_default = defineMetabaseCommand({
|
|
|
15
16
|
name: "create",
|
|
16
17
|
description: "Create a segment (saved filter) from JSON"
|
|
17
18
|
},
|
|
18
|
-
details: "A segment is a reusable, saved row filter tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding the filter). An MBQL 5 `definition` is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.
|
|
19
|
+
details: "A segment is a reusable, saved row filter tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding the filter). An MBQL 5 `definition` is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
20
|
+
skills: [{
|
|
21
|
+
skill: "mbql",
|
|
22
|
+
purpose: "the definition filter clause"
|
|
23
|
+
}],
|
|
19
24
|
capabilities: { minVersion: 58 },
|
|
20
25
|
args: {
|
|
21
26
|
...outputFlags,
|
|
@@ -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 "./input-7Sj85_K7.mjs";
|
|
7
|
+
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
9
|
+
import "./validate-BqNW4Sk1.mjs";
|
|
10
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CcZVKYPV.mjs";
|
|
11
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-DoJvtCaA.mjs";
|
|
11
12
|
|
|
12
13
|
//#region src/commands/measure/create.ts
|
|
13
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -15,7 +16,11 @@ var create_default = defineMetabaseCommand({
|
|
|
15
16
|
name: "create",
|
|
16
17
|
description: "Create a measure (saved aggregation) from JSON"
|
|
17
18
|
},
|
|
18
|
-
details: "A measure is a reusable, saved aggregation tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding exactly one aggregation). An MBQL 5 `definition` is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.
|
|
19
|
+
details: "A measure is a reusable, saved aggregation tied to a table. The JSON body needs `name`, `table_id`, and a `definition` (an MBQL query holding exactly one aggregation). An MBQL 5 `definition` is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
20
|
+
skills: [{
|
|
21
|
+
skill: "mbql",
|
|
22
|
+
purpose: "the definition aggregation"
|
|
23
|
+
}],
|
|
19
24
|
capabilities: { minVersion: 59 },
|
|
20
25
|
args: {
|
|
21
26
|
...outputFlags,
|
|
@@ -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 { 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";
|
|
9
|
+
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-CtA2Pkoa.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/snippet/create.ts
|
|
11
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
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 "./poll-BpAJpvb-.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-TilgciQn.mjs";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/git-sync/create-branch.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 { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./poll-BpAJpvb-.mjs";
|
|
7
|
+
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-TilgciQn.mjs";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/git-sync/current-task.ts
|
|
9
10
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/dashboard/index.ts
|
|
5
|
+
var dashboard_default = defineCommandGroup({
|
|
6
|
+
name: "dashboard",
|
|
7
|
+
description: "Manage Metabase dashboards",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "visualization",
|
|
10
|
+
purpose: "dashcard display and visualization_settings"
|
|
11
|
+
}, {
|
|
12
|
+
skill: "core",
|
|
13
|
+
purpose: "the 24-column dashcard grid layout"
|
|
14
|
+
}],
|
|
15
|
+
subCommands: {
|
|
16
|
+
list: () => import("./list-B1uVWy6A.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-B45uYMAs.mjs").then((mod) => mod.default),
|
|
18
|
+
cards: () => import("./cards-CMgGA8OZ.mjs").then((mod) => mod.default),
|
|
19
|
+
"parameter-values": () => import("./parameter-values-D4J8Ctu0.mjs").then((mod) => mod.default),
|
|
20
|
+
create: () => import("./create-BpkWlgoR.mjs").then((mod) => mod.default),
|
|
21
|
+
update: () => import("./update-DhOfrW1j.mjs").then((mod) => mod.default),
|
|
22
|
+
"update-dashcard": () => import("./update-dashcard-CZUWZhal.mjs").then((mod) => mod.default),
|
|
23
|
+
archive: () => import("./archive-qSOcACQo.mjs").then((mod) => mod.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { dashboard_default as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Parameter, ParameterMapping } from "./parameter-CiJ4CwWE.mjs";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/domain/dashboard.ts
|
|
@@ -13,7 +14,7 @@ const Dashcard = z.object({
|
|
|
13
14
|
size_y: z.number().int(),
|
|
14
15
|
entity_id: z.string().nullable(),
|
|
15
16
|
visualization_settings: z.unknown(),
|
|
16
|
-
parameter_mappings: z.array(
|
|
17
|
+
parameter_mappings: z.array(ParameterMapping).nullable(),
|
|
17
18
|
inline_parameters: z.array(z.string()).nullable()
|
|
18
19
|
}).loose();
|
|
19
20
|
const DashcardCompact = Dashcard.pick({
|
|
@@ -85,11 +86,12 @@ const Dashboard = z.object({
|
|
|
85
86
|
enable_embedding: z.boolean(),
|
|
86
87
|
public_uuid: z.string().nullable(),
|
|
87
88
|
cache_ttl: z.number().int().nullable(),
|
|
88
|
-
parameters: z.array(
|
|
89
|
+
parameters: z.array(Parameter).nullable(),
|
|
89
90
|
dashcards: z.array(Dashcard).optional(),
|
|
90
91
|
tabs: z.array(DashboardTab).optional()
|
|
91
92
|
}).loose();
|
|
92
93
|
const DashboardDetail = Dashboard.extend({
|
|
94
|
+
parameters: z.array(Parameter),
|
|
93
95
|
dashcards: z.array(Dashcard),
|
|
94
96
|
tabs: z.array(DashboardTab)
|
|
95
97
|
});
|
|
@@ -127,7 +129,7 @@ const dashboardView = {
|
|
|
127
129
|
const DashboardCreateInput = z.object({
|
|
128
130
|
name: z.string().min(1),
|
|
129
131
|
description: z.string().nullable().optional(),
|
|
130
|
-
parameters: z.array(
|
|
132
|
+
parameters: z.array(Parameter).optional(),
|
|
131
133
|
cache_ttl: z.number().int().positive().optional(),
|
|
132
134
|
collection_id: z.number().int().positive().nullable().optional(),
|
|
133
135
|
collection_position: z.number().int().positive().nullable().optional(),
|
|
@@ -141,7 +143,7 @@ const DashboardUpdateInput = z.object({
|
|
|
141
143
|
width: DashboardWidth.optional(),
|
|
142
144
|
enable_embedding: z.boolean().optional(),
|
|
143
145
|
embedding_params: z.unknown().optional(),
|
|
144
|
-
parameters: z.array(
|
|
146
|
+
parameters: z.array(Parameter).optional(),
|
|
145
147
|
cache_ttl: z.number().int().positive().nullable().optional(),
|
|
146
148
|
collection_id: z.number().int().positive().nullable().optional(),
|
|
147
149
|
collection_position: z.number().int().positive().nullable().optional(),
|
|
@@ -154,7 +156,7 @@ const DashcardPatchInput = z.object({
|
|
|
154
156
|
size_x: z.number().int().positive().optional(),
|
|
155
157
|
size_y: z.number().int().positive().optional(),
|
|
156
158
|
dashboard_tab_id: z.number().int().nullable().optional(),
|
|
157
|
-
parameter_mappings: z.array(
|
|
159
|
+
parameter_mappings: z.array(ParameterMapping).optional(),
|
|
158
160
|
inline_parameters: z.array(z.string()).optional(),
|
|
159
161
|
visualization_settings: z.unknown().optional(),
|
|
160
162
|
series: z.array(z.unknown()).optional()
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/db/index.ts
|
|
5
|
+
var db_default = defineCommandGroup({
|
|
6
|
+
name: "db",
|
|
7
|
+
description: "Inspect and sync Metabase databases",
|
|
8
|
+
alias: "database",
|
|
9
|
+
skills: [{
|
|
10
|
+
skill: "core",
|
|
11
|
+
purpose: "the database traversal ladder and schema sync"
|
|
12
|
+
}, {
|
|
13
|
+
skill: "data-workflow",
|
|
14
|
+
purpose: "model a raw database into clean tables"
|
|
15
|
+
}],
|
|
16
|
+
subCommands: {
|
|
17
|
+
list: () => import("./list-BgUWqZa2.mjs").then((m) => m.default),
|
|
18
|
+
get: () => import("./get-CDLa6LiC.mjs").then((m) => m.default),
|
|
19
|
+
metadata: () => import("./metadata-ClehtgZj.mjs").then((m) => m.default),
|
|
20
|
+
schemas: () => import("./schemas-HjFPzsd-.mjs").then((m) => m.default),
|
|
21
|
+
"schema-tables": () => import("./schema-tables-ooYjimrV.mjs").then((m) => m.default),
|
|
22
|
+
"sync-schema": () => import("./sync-schema-DTUXubMg.mjs").then((m) => m.default),
|
|
23
|
+
"rescan-values": () => import("./rescan-values-DpL6LGAK.mjs").then((m) => m.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { db_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 "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./prompt-C85xd9HR.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B0ha5QR4.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/transform/delete.ts
|
|
10
11
|
var delete_default = defineMetabaseCommand({
|
|
@@ -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 "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./prompt-C85xd9HR.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B0ha5QR4.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/transform-job/delete.ts
|
|
10
11
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import { renderSummary } from "./capabilities-
|
|
3
|
-
import { promptConfirm } from "./prompt-
|
|
1
|
+
import { ConfigError } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
3
|
+
import { promptConfirm } from "./prompt-C85xd9HR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/delete-runtime.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 "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./prompt-C85xd9HR.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B0ha5QR4.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/transform-tag/delete.ts
|
|
10
11
|
var delete_default = defineMetabaseCommand({
|
|
@@ -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 "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./prompt-C85xd9HR.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B0ha5QR4.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/transform/delete-table.ts
|
|
10
11
|
var delete_table_default = defineMetabaseCommand({
|