@metabase/cli 0.1.14 → 0.1.15
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 +33 -0
- package/dist/add-collection-Bnuh0d4j.mjs +10 -0
- package/dist/{add-collection-Cubho2HN.mjs → add-collection-CXhrMjXU.mjs} +4 -4
- package/dist/{archive-C8G0KIPI.mjs → archive-BUwiCFnd.mjs} +3 -3
- package/dist/{archive-F2g-bAXf.mjs → archive-Blc1dz8Z.mjs} +3 -3
- package/dist/{archive-BBboJ-z3.mjs → archive-BxGSR7El.mjs} +3 -3
- package/dist/{archive-D6eMYNI5.mjs → archive-CQiaCBSj.mjs} +3 -3
- package/dist/{archive-BrzOTxSA.mjs → archive-D-Ovk0-E.mjs} +3 -3
- package/dist/{archive-DTN6Anme.mjs → archive-Drt-rWvU.mjs} +3 -3
- package/dist/{archive-DCIwtfv0.mjs → archive-yTvDRQUZ.mjs} +3 -3
- package/dist/auth-Bkue4Psy.mjs +19 -0
- package/dist/{body-CXpIB6hY.mjs → body-B9XTTDEu.mjs} +1 -1
- package/dist/{branches-r9SVJIV5.mjs → branches-Ct3PK5U3.mjs} +4 -4
- package/dist/{cancel-BbLZsVYQ.mjs → cancel-tST8Bh0w.mjs} +3 -3
- package/dist/{cancel-task-CojB-8XX.mjs → cancel-task-BHnzRQKL.mjs} +4 -4
- package/dist/card-faWo9ZWU.mjs +20 -0
- package/dist/{cards-e9Wgnbnq.mjs → cards-BySIFsLG.mjs} +3 -3
- package/dist/cli.mjs +24 -24
- package/dist/collection-DcRz7fmf.mjs +20 -0
- package/dist/{collection-namespace-DmKMqLr0.mjs → collection-namespace-D8ohM5gD.mjs} +1 -1
- package/dist/{create-C5-JhEUc.mjs → create-4mAGsBd0.mjs} +3 -3
- package/dist/{create-Cq-ay6cJ.mjs → create-BDWthCYq.mjs} +3 -3
- package/dist/{create-BzKW27Hh.mjs → create-C43RQYgj.mjs} +4 -4
- package/dist/{create-DFMpgUvH.mjs → create-C7FPeJqF.mjs} +3 -3
- package/dist/{create-Bbe2EM9f.mjs → create-D3cVDtxM.mjs} +3 -3
- package/dist/{create-C4G_z8qO.mjs → create-DGxZmbxh.mjs} +4 -4
- package/dist/{create-Bu9edPBn.mjs → create-DnT1Sayk.mjs} +3 -3
- package/dist/{create-onFRzFwS.mjs → create-DxDD6n1d.mjs} +5 -5
- package/dist/{create-Bz4hf7W0.mjs → create-HZ-9GMLx.mjs} +4 -4
- package/dist/{create-branch--GJ_RxIN.mjs → create-branch-jPE7nW-E.mjs} +4 -4
- package/dist/{create-UzeYyGq6.mjs → create-fIDFkdox.mjs} +3 -3
- package/dist/{current-task-C0mMBzdB.mjs → current-task-rW54KJax.mjs} +4 -4
- package/dist/dashboard-pXAxJTTx.mjs +21 -0
- package/dist/db-CmHHj5eI.mjs +22 -0
- package/dist/{delete-CGw1hwGZ.mjs → delete-BWO6uB4P.mjs} +4 -4
- package/dist/{delete-Dbzs51x3.mjs → delete-CBwztF6P.mjs} +4 -4
- package/dist/{delete-CxTPHzom.mjs → delete-CeigtfRI.mjs} +4 -4
- package/dist/{delete-table-B6obSpLU.mjs → delete-table-BXzvDEPG.mjs} +4 -4
- package/dist/{dependencies-DfkbJqzQ.mjs → dependencies-D2N9eqm1.mjs} +4 -4
- package/dist/{dirty-BqL_DE6p.mjs → dirty-DoEZRSGB.mjs} +4 -4
- package/dist/document-DQIhL75C.mjs +19 -0
- package/dist/{eid-C31VGHAM.mjs → eid-1mROiwJr.mjs} +3 -3
- package/dist/{error-BOi_ux9O.mjs → error-D5bZ5BUX.mjs} +1 -1
- package/dist/{export--_0e40xU.mjs → export-Bgv5B4_F.mjs} +6 -6
- package/dist/field-B-UcqFzm.mjs +18 -0
- package/dist/{fields-BRiL6KEF.mjs → fields-VA7tXHJz.mjs} +3 -3
- package/dist/{get-C6njgZmF.mjs → get-B8etVxWD.mjs} +3 -3
- package/dist/{get-CcGU3YaY.mjs → get-BgIE_YEg.mjs} +4 -4
- package/dist/{get-CCyfx_AY.mjs → get-BtAD26gc.mjs} +3 -3
- package/dist/{get-DMeF2FLQ.mjs → get-C-UeGtgW.mjs} +2 -2
- package/dist/{get-B_TdMKu-.mjs → get-CGkhSY5L.mjs} +3 -3
- package/dist/{get-ev4Zw3Gj.mjs → get-CqnCaosn.mjs} +3 -3
- package/dist/{get-DQOvqH9P.mjs → get-D9o38nK5.mjs} +2 -2
- package/dist/{get-LJam7ZQ-.mjs → get-DAsaor0n.mjs} +2 -2
- package/dist/{get-B2-RLrYJ.mjs → get-DLRBq8kR.mjs} +3 -3
- package/dist/{get-C-o2-vnf.mjs → get-DvQoDU2m.mjs} +4 -4
- package/dist/{get--bNbxDkk.mjs → get-RQFSmnpY.mjs} +3 -3
- package/dist/{get-Cs7a7s2Z.mjs → get-Wj88mnhn.mjs} +3 -3
- package/dist/{get-B-phl324.mjs → get-eUYDNALt.mjs} +3 -3
- package/dist/{get-DGZw_U0s.mjs → get-qnGGGRTa.mjs} +3 -3
- package/dist/{get-run-Cp7ATZPQ.mjs → get-run-CATz-XMS.mjs} +4 -4
- package/dist/git-sync-CwOvcUI2.mjs +28 -0
- package/dist/{has-remote-changes-Bw_Xp9Ii.mjs → has-remote-changes-B6YEMC90.mjs} +4 -4
- package/dist/{import-BmoC0ECq.mjs → import-Bl2Wj9Xf.mjs} +6 -6
- package/dist/{is-dirty-BDmXm34E.mjs → is-dirty-D9MoFj0T.mjs} +3 -3
- package/dist/is-dirty-MT0BT4CS.mjs +9 -0
- package/dist/{items-BI-O48Sc.mjs → items-LjtICjvX.mjs} +3 -3
- package/dist/{list-JCMQ06wX.mjs → list-B5Q7E2Km.mjs} +3 -3
- package/dist/{list-BcSjOiK1.mjs → list-Bjp9nd0o.mjs} +2 -2
- package/dist/{list-Cqvt6gpK.mjs → list-C410Ptw_.mjs} +2 -2
- package/dist/{list-CRUjh592.mjs → list-C6U3Ftg8.mjs} +3 -3
- package/dist/{list-Cz_2UyGV.mjs → list-CfWblVHJ.mjs} +2 -2
- package/dist/{list-Cju3N2kB.mjs → list-ChK06rJh.mjs} +2 -2
- package/dist/{list-DIFjjwBV.mjs → list-CoRX8Ruc.mjs} +2 -2
- package/dist/{list-RC1HQ2dg.mjs → list-Cx8JxS2C.mjs} +2 -2
- package/dist/{list-B7g2c9K7.mjs → list-DMik04Dh.mjs} +3 -3
- package/dist/{list-DM-Oa-oB.mjs → list-DaJk60dd.mjs} +3 -3
- package/dist/{list-CNeaMSjy.mjs → list-DcjenlTM.mjs} +2 -2
- package/dist/{list-BkEFHJe8.mjs → list-DfoNv0gb.mjs} +2 -2
- package/dist/{list-DhWVjE6U.mjs → list-Dq86BAMG.mjs} +2 -2
- package/dist/{list-CTfCgMTk.mjs → list-DtrfE0sF.mjs} +3 -3
- package/dist/{list-BE3wVc-a.mjs → list-cnqPlJgC.mjs} +2 -2
- package/dist/{login-BF6LkxPI.mjs → login-Cn2UtFUt.mjs} +3 -3
- package/dist/{logout-Cg8Z_XD_.mjs → logout-_HXgEmqA.mjs} +2 -2
- package/dist/measure-BIAoqgcS.mjs +19 -0
- package/dist/{metadata-CmvvOpKI.mjs → metadata-8yqT8OZI.mjs} +3 -3
- package/dist/{metadata-B15u_YYT.mjs → metadata-DHODjg1d.mjs} +3 -3
- package/dist/{parse-id-DMs04KM3.mjs → parse-id-DNPeV0Iu.mjs} +1 -1
- package/dist/{path-YsfpMb_h.mjs → path-BflajM08.mjs} +2 -2
- package/dist/{poll-13tgWrN_.mjs → poll-CYkX02Bm.mjs} +1 -1
- package/dist/{poll-task-BuAHsDEK.mjs → poll-task-oXpl3wzp.mjs} +2 -2
- package/dist/{preflight-wCSgVqbX.mjs → preflight-BdJr2amA.mjs} +1 -1
- package/dist/publish-CGUkIqSm.mjs +70 -0
- package/dist/{query-DnYdI0fl.mjs → query-CxTjguwp.mjs} +3 -3
- package/dist/{query-x6g6unDt.mjs → query-DWQaN7hO.mjs} +3 -3
- package/dist/{remove-collection-CLTqx7ys.mjs → remove-collection-BwcFi8Fs.mjs} +6 -6
- package/dist/{rescan-values-C7b78yA2.mjs → rescan-values-B9Qtsd32.mjs} +3 -3
- package/dist/{run-CsYI4Sqv.mjs → run-3eFtdI2Z.mjs} +6 -6
- package/dist/{run-DR5O1_EU.mjs → run-C-vftXCu.mjs} +3 -3
- package/dist/{runs-DWbtqOyw.mjs → runs-CpRTkn1W.mjs} +4 -4
- package/dist/{runtime-7JTC-usO.mjs → runtime-C1QgWHM7.mjs} +1 -1
- package/dist/{schema-tables-Cte09dhE.mjs → schema-tables-rdeupgsu.mjs} +3 -3
- package/dist/{schemas-DAmSPGiC.mjs → schemas-Cr7RjYqV.mjs} +3 -3
- package/dist/{search-Di-SFcZm.mjs → search-D7Yq2MDu.mjs} +3 -3
- package/dist/segment-BN8sFunv.mjs +19 -0
- package/dist/selectors-DPc2ZDdd.mjs +37 -0
- package/dist/{set-C1rIETEg.mjs → set-X2N6x7pe.mjs} +3 -3
- package/dist/{set-active-CJ1VaxEC.mjs → set-active-BoBa3pOw.mjs} +2 -2
- package/dist/{setting-6WqN3L3F.mjs → setting-zZjcOPyE.mjs} +3 -3
- package/dist/{setup-DbXhTopr.mjs → setup-C47WUieB.mjs} +3 -3
- package/dist/{skills-CfWrH-1L.mjs → skills-Po0YPVU5.mjs} +3 -3
- package/dist/snippet-DK0ZA8m5.mjs +19 -0
- package/dist/{stash-BCNSzoYQ.mjs → stash-BV4sEp73.mjs} +6 -6
- package/dist/{status-CG3Lbl5_.mjs → status-BKF9rRnk.mjs} +5 -5
- package/dist/{status-BocNdqNq.mjs → status-Cf8c0NON.mjs} +2 -2
- package/dist/{summary-TApK2JbW.mjs → summary-RgLcBcEh.mjs} +3 -3
- package/dist/{sync-schema-COA-OlO3.mjs → sync-schema-DKEel2Sv.mjs} +5 -5
- package/dist/table-COAKXNuj.mjs +21 -0
- package/dist/transform-Bto4U82j.mjs +25 -0
- package/dist/transform-job-_fW1y2tg.mjs +22 -0
- package/dist/transform-tag-C8n1oTr1.mjs +18 -0
- package/dist/{transforms-Bo4u0YqS.mjs → transforms-BOQ9CG0l.mjs} +4 -4
- package/dist/{tree-CGh-ZG4n.mjs → tree-CF8mscd9.mjs} +2 -2
- package/dist/unpublish-CmaRNjK3.mjs +76 -0
- package/dist/{update-CCIkTuxz.mjs → update-B59h7KmS.mjs} +5 -5
- package/dist/{update-BuJjTYAx.mjs → update-BXZBEeUp.mjs} +4 -4
- package/dist/{update-Br_cd74H.mjs → update-BuypOaXq.mjs} +4 -4
- package/dist/{update-ysNL-mE-.mjs → update-CgQOSuZt.mjs} +4 -4
- package/dist/{update-Bob7lvnr.mjs → update-DERsb0eO.mjs} +5 -5
- package/dist/{update-DLQygCXg.mjs → update-DQPg0_-d.mjs} +4 -4
- package/dist/{update-ETzjZl17.mjs → update-DR4WkAET.mjs} +4 -4
- package/dist/{update-DtUhmJar.mjs → update-DoQpy9SA.mjs} +4 -4
- package/dist/{update-DCvTlxUK.mjs → update-Kz4kyqY_.mjs} +5 -5
- package/dist/{update-dashcard-Du-h_8oY.mjs → update-dashcard-BJVeSGvO.mjs} +4 -4
- package/dist/{update-ZPsCSWR6.mjs → update-nwXgVNQa.mjs} +6 -6
- package/dist/{update-Co4WLVkK.mjs → update-rhfPHALN.mjs} +4 -4
- package/dist/{upgrade-CavKMkQ4.mjs → upgrade-CNrkJF6s.mjs} +2 -2
- package/dist/{uuid-BL33x41p.mjs → uuid-Dpl3ALKq.mjs} +2 -2
- package/dist/{values-DVu97Fcd.mjs → values-DMYpkoEH.mjs} +3 -3
- package/dist/{verify-BLUei79N.mjs → verify-By9ZYzx4.mjs} +1 -1
- package/dist/{wait-C0P8Qt37.mjs → wait-BzIAj8lJ.mjs} +5 -5
- package/dist/{wait-flags-Z_JC7x4L.mjs → wait-flags-DQrxnlwv.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +1 -0
- package/dist/add-collection-Cdhj6DJb.mjs +0 -10
- package/dist/auth-D4cXDeiH.mjs +0 -19
- package/dist/card-BMN-mcxn.mjs +0 -20
- package/dist/collection-DZnA3zXr.mjs +0 -20
- package/dist/dashboard-PB_c3Irl.mjs +0 -21
- package/dist/db-q0lYg3k8.mjs +0 -22
- package/dist/document-4TwzGwl3.mjs +0 -19
- package/dist/field-Bi_O_Sdg.mjs +0 -18
- package/dist/git-sync-BOZdFF09.mjs +0 -28
- package/dist/is-dirty-B6usK-aU.mjs +0 -9
- package/dist/measure-BRzkMY5y.mjs +0 -19
- package/dist/segment-DiHHHk2a.mjs +0 -19
- package/dist/snippet-B-anQo6y.mjs +0 -19
- package/dist/table-Bnj8IBKx.mjs +0 -19
- package/dist/transform-QCDItglq.mjs +0 -25
- package/dist/transform-job-Dawm4Lag.mjs +0 -22
- package/dist/transform-tag-CN-bTSne.mjs +0 -18
- /package/dist/{delete-runtime-BhZAAvjc.mjs → delete-runtime-PzLFavb0.mjs} +0 -0
- /package/dist/{transform-job-B9pXBOwr.mjs → transform-job-C8lIS-7Q.mjs} +0 -0
- /package/dist/{transform-qczxOAzn.mjs → transform-n376akp8.mjs} +0 -0
- /package/dist/{transform-tag-BLAbrywB.mjs → transform-tag-DB46AhAj.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/field/summary.ts
|
|
9
9
|
var summary_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
import "./table-qDD2kApF.mjs";
|
|
8
8
|
import { Database, DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-BmsxuRmO.mjs";
|
|
9
|
-
import { pollUntil } from "./poll-
|
|
10
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
9
|
+
import { pollUntil } from "./poll-CYkX02Bm.mjs";
|
|
10
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DQrxnlwv.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/db/sync-schema.ts
|
|
13
13
|
var sync_schema_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/table/index.ts
|
|
4
|
+
var table_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "table",
|
|
7
|
+
description: "Manage Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DtrfE0sF.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-eUYDNALt.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-DHODjg1d.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-VA7tXHJz.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-DQPg0_-d.mjs").then((m) => m.default),
|
|
15
|
+
publish: () => import("./publish-CGUkIqSm.mjs").then((m) => m.default),
|
|
16
|
+
unpublish: () => import("./unpublish-CmaRNjK3.mjs").then((m) => m.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { table_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform/index.ts
|
|
4
|
+
var transform_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform",
|
|
7
|
+
description: "Manage Metabase transforms"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DMik04Dh.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-BgIE_YEg.mjs").then((mod) => mod.default),
|
|
12
|
+
dependencies: () => import("./dependencies-D2N9eqm1.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-DxDD6n1d.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-nwXgVNQa.mjs").then((mod) => mod.default),
|
|
15
|
+
delete: () => import("./delete-BWO6uB4P.mjs").then((mod) => mod.default),
|
|
16
|
+
"delete-table": () => import("./delete-table-BXzvDEPG.mjs").then((mod) => mod.default),
|
|
17
|
+
run: () => import("./run-3eFtdI2Z.mjs").then((mod) => mod.default),
|
|
18
|
+
cancel: () => import("./cancel-tST8Bh0w.mjs").then((mod) => mod.default),
|
|
19
|
+
"get-run": () => import("./get-run-CATz-XMS.mjs").then((mod) => mod.default),
|
|
20
|
+
runs: () => import("./runs-CpRTkn1W.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { transform_default as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform-job/index.ts
|
|
4
|
+
var transform_job_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform-job",
|
|
7
|
+
description: "Manage Metabase transform jobs"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-B5Q7E2Km.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DvQoDU2m.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-DGxZmbxh.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-B59h7KmS.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-CeigtfRI.mjs").then((mod) => mod.default),
|
|
15
|
+
run: () => import("./run-C-vftXCu.mjs").then((mod) => mod.default),
|
|
16
|
+
transforms: () => import("./transforms-BOQ9CG0l.mjs").then((mod) => mod.default),
|
|
17
|
+
"set-active": () => import("./set-active-BoBa3pOw.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { transform_job_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform-tag/index.ts
|
|
4
|
+
var transform_tag_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform-tag",
|
|
7
|
+
description: "Manage Metabase transform tags"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DaJk60dd.mjs").then((mod) => mod.default),
|
|
11
|
+
create: () => import("./create-HZ-9GMLx.mjs").then((mod) => mod.default),
|
|
12
|
+
update: () => import("./update-Kz4kyqY_.mjs").then((mod) => mod.default),
|
|
13
|
+
delete: () => import("./delete-CBwztF6P.mjs").then((mod) => mod.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { transform_tag_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Transform, TransformCompact, transformView } from "./transform-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { Transform, TransformCompact, transformView } from "./transform-n376akp8.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform-job/transforms.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { writeJson } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { CollectionTreeNode } from "./collection-Deiziuu2.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-DPc2ZDdd.mjs";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
//#region src/commands/table/unpublish.ts
|
|
10
|
+
const TableUnpublishResult = z.object({
|
|
11
|
+
unpublished: z.literal(true),
|
|
12
|
+
table_ids: z.array(z.number().int()).optional(),
|
|
13
|
+
database_ids: z.array(z.number().int()).optional(),
|
|
14
|
+
schema_ids: z.array(z.string()).optional()
|
|
15
|
+
});
|
|
16
|
+
const tableUnpublishResultView = {
|
|
17
|
+
compactPick: TableUnpublishResult,
|
|
18
|
+
tableColumns: [
|
|
19
|
+
{
|
|
20
|
+
key: "unpublished",
|
|
21
|
+
label: "Unpublished"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "table_ids",
|
|
25
|
+
label: "Tables"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "database_ids",
|
|
29
|
+
label: "Databases"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: "schema_ids",
|
|
33
|
+
label: "Schemas"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
var unpublish_default = defineMetabaseCommand({
|
|
38
|
+
meta: {
|
|
39
|
+
name: "unpublish",
|
|
40
|
+
description: "Unpublish tables (and their downstream dependents) from the library"
|
|
41
|
+
},
|
|
42
|
+
details: "Clears the library collection for each selected table and recursively for every downstream table that depends on it. Select tables with --table-ids, whole databases with --db-ids, or schemas with --schemas (each schema id is \"<db-id>:<schema>\", e.g. 1:public); the filters are combined.",
|
|
43
|
+
capabilities: {
|
|
44
|
+
minVersion: 59,
|
|
45
|
+
tokenFeature: "library"
|
|
46
|
+
},
|
|
47
|
+
args: {
|
|
48
|
+
...outputFlags,
|
|
49
|
+
...profileFlag,
|
|
50
|
+
...connectionFlags,
|
|
51
|
+
...tableSelectorFlags
|
|
52
|
+
},
|
|
53
|
+
outputSchema: TableUnpublishResult,
|
|
54
|
+
examples: [
|
|
55
|
+
"mb table unpublish --table-ids 1,2,3",
|
|
56
|
+
"mb table unpublish --db-ids 1 --json",
|
|
57
|
+
"mb table unpublish --schemas 1:public,1:analytics"
|
|
58
|
+
],
|
|
59
|
+
async run({ args, ctx, getClient }) {
|
|
60
|
+
const selectors = parseTableSelectors(args);
|
|
61
|
+
const client = await getClient();
|
|
62
|
+
await client.requestRaw("/api/ee/data-studio/table/unpublish-tables", {
|
|
63
|
+
method: "POST",
|
|
64
|
+
body: selectors,
|
|
65
|
+
expectContentType: "binary"
|
|
66
|
+
});
|
|
67
|
+
const result = {
|
|
68
|
+
unpublished: true,
|
|
69
|
+
...selectors
|
|
70
|
+
};
|
|
71
|
+
renderSummary(result, tableUnpublishResultView, "Unpublished tables from the library.", ctx);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { unpublish_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-C8lIS-7Q.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/transform-job/update.ts
|
|
12
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-VawhJ5Sc.mjs";
|
|
10
10
|
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import { Document, DocumentUpdateInput, documentView } from "./document-qfwR0r63.mjs";
|
|
10
10
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import "./field-E0IBy4Uw.mjs";
|
|
7
7
|
import "./card-wCPcuKSi.mjs";
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
9
|
-
import { readBody } from "./body-
|
|
8
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
9
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
import "./validate-VawhJ5Sc.mjs";
|
|
12
12
|
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
13
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
13
|
+
import { preflightDashcardCardReferences } from "./preflight-BdJr2amA.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/dashboard/update.ts
|
|
16
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import "./field-E0IBy4Uw.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
8
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
import { Table, TableUpdateInput, tableView } from "./table-qDD2kApF.mjs";
|
|
11
11
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-VawhJ5Sc.mjs";
|
|
10
10
|
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import { Field, FieldUpdateInput, fieldView } from "./field-E0IBy4Uw.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
8
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/field/update.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-
|
|
9
|
+
import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-DB46AhAj.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/transform-tag/update.ts
|
|
12
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-B4bn3z6t.mjs";
|
|
10
10
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-VawhJ5Sc.mjs";
|
|
10
10
|
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
11
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
12
|
-
import { enrichTransformCollectionError } from "./collection-namespace-
|
|
11
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-n376akp8.mjs";
|
|
12
|
+
import { enrichTransformCollectionError } from "./collection-namespace-D8ohM5gD.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/transform/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import "./field-E0IBy4Uw.mjs";
|
|
7
7
|
import { Card, CardUpdateInput, cardView } from "./card-wCPcuKSi.mjs";
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
9
|
-
import { readBody } from "./body-
|
|
8
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
9
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
import "./validate-VawhJ5Sc.mjs";
|
|
12
12
|
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags, package_default } from "./error-
|
|
3
|
-
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-
|
|
2
|
+
import { outputFlags, package_default } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem, writeText } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { promptConfirm } from "./prompt-Bc_bHSD0.mjs";
|
|
6
6
|
import { streamProcess } from "./process-DsGf7Mg5.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseInteger } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseInteger } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { writeJson, writeText } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { formatScalar, renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { FieldValues, fieldValuesView } from "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/field/values.ts
|
|
9
9
|
var values_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetabaseError, NetworkError, TimeoutError, errorMessage } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { HttpError, createClient, probeServer } from "./runtime-
|
|
2
|
+
import { HttpError, createClient, probeServer } from "./runtime-C1QgWHM7.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/user.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
7
|
-
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-oXpl3wzp.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/wait.ts
|
|
10
10
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseId } from "./parse-id-
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
1
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CYkX02Bm.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitScheduleFlags = {
|
package/package.json
CHANGED
package/skill-data/core/SKILL.md
CHANGED
|
@@ -128,6 +128,7 @@ Routine verb shapes (list / get / create / update), every flag, and output JSON
|
|
|
128
128
|
|
|
129
129
|
- **db traversal vs. rollup.** Default to granular: `database list` → `database schemas <db-id>` → `database schema-tables <db-id> <schema>` → `table get <table-id> --include fields`. The rollup endpoints (`database get --include tables.fields`, `database metadata <db-id>`) pull megabytes and blow the context window on any real warehouse — use them only on a small/dev db. `sync-schema` / `rescan-values` queue async work and return `{status:"ok"}` immediately; `sync-schema --wait` blocks until `initial_sync_status: complete`.
|
|
130
130
|
- **table fields.** `table get` never returns fields on its own — pass `--include fields` (compact) or use `table fields <id>` (list envelope). `table metadata <id>` adds FKs + dimensions (heavier). `table update` patches table-level metadata only; physical columns aren't editable here.
|
|
131
|
+
- **table publish / unpublish.** EE-only (`library` premium feature, v59+) bulk Library curation. Pick targets with `--table-ids` / `--db-ids` / `--schemas` (combined as OR), where each `--schemas` entry is `<db-id>:<schema>` (e.g. `1:public`), **not** a bare schema name. `publish --collection-id` must point at a `library-data` collection (a regular collection is rejected with a 400). `publish` cascades to upstream FK dependencies, `unpublish` to downstream dependents; both exit **403** unless you have write **and** query permission on every affected table.
|
|
131
132
|
- **field has no `list`.** Fields are per-table — get them via `table get <id> --include fields`. Never enumerate fields across a whole db (context blow-up). `field summary` is live cardinality `{field_id, count, distincts}`; `field values` is the cached distinct set (`has_more_values: true` ⇒ truncated cache). `field update` patches metadata only; `base_type` isn't editable.
|
|
132
133
|
- **card.** `dataset_query` is the **flat** `mbql/query` value, not a legacy `{type:"query",query:…}` envelope (→ `mbql` skill). `--export-format csv|xlsx` streams the raw export (pipe to a file), bypassing the JSON envelope. `archive` is the only delete; unarchive with `update --body '{"archived":false}'`. `visualization_settings` keys are scoped by `display` and aren't pre-flighted — see the `viz` skill.
|
|
133
134
|
- **dashboard.** Dashcards round-trip through `PUT /api/dashboard/:id` (no per-dashcard endpoint): `update-dashcard <dash-id> <dashcard-id>` patches one safely; `update --body '{"dashcards":[…]}'` replaces the whole set (omitted ids are deleted server-side; negative ids for new cards). `create` accepts the **same** `dashcards` array in its initial body — lay out the whole dashboard in one call: negative ids for new cards, and `card_id:null` plus a `visualization_settings.virtual_card` block (`{display:"text"|"heading"|"link"|…}`) for non-question cards. `create`/`update` pre-flight every positive `card_id` against live server state and exit **2** with `{ok:false,errors:[…]}` on a bad ref — non-bypassable (no `--skip-validate`). `dashboard get <id>` (or `--full`) hydrates dashcards/tabs; `list` omits them. **Dashcard geometry: the grid is 24 columns wide.** Each dashcard's `{col, row, size_x, size_y}` is in grid units — `col` (0-indexed, left edge) and `size_x` are columns, `row`/`size_y` are rows; **full-width is `size_x: 24`** (`size_x: 12` is half a row — the usual cause of a card filling only half the width, since it's a common per-chart default). Keep `col + size_x ≤ 24`, start each card's `col` at 0 for a full-width stack, and don't overlap cards (the server stores whatever you send — it won't auto-fix collisions).
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import "./error-BOi_ux9O.mjs";
|
|
3
|
-
import "./runtime-7JTC-usO.mjs";
|
|
4
|
-
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./parse-id-DMs04KM3.mjs";
|
|
6
|
-
import "./poll-13tgWrN_.mjs";
|
|
7
|
-
import "./poll-task-BuAHsDEK.mjs";
|
|
8
|
-
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-Cubho2HN.mjs";
|
|
9
|
-
|
|
10
|
-
export { add_collection_default as default };
|
package/dist/auth-D4cXDeiH.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/auth/index.ts
|
|
4
|
-
var auth_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "auth",
|
|
7
|
-
description: "Authenticate against a Metabase instance"
|
|
8
|
-
},
|
|
9
|
-
default: "login",
|
|
10
|
-
subCommands: {
|
|
11
|
-
login: () => import("./login-BF6LkxPI.mjs").then((m) => m.default),
|
|
12
|
-
status: () => import("./status-BocNdqNq.mjs").then((m) => m.default),
|
|
13
|
-
list: () => import("./list-CRUjh592.mjs").then((m) => m.default),
|
|
14
|
-
logout: () => import("./logout-Cg8Z_XD_.mjs").then((m) => m.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { auth_default as default };
|
package/dist/card-BMN-mcxn.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/card/index.ts
|
|
4
|
-
var card_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "card",
|
|
7
|
-
description: "Manage Metabase cards (questions, models, metrics)"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-Cqvt6gpK.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-Cs7a7s2Z.mjs").then((mod) => mod.default),
|
|
12
|
-
query: () => import("./query-x6g6unDt.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-C5-JhEUc.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-Co4WLVkK.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-C8G0KIPI.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { card_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/collection/index.ts
|
|
4
|
-
var collection_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "collection",
|
|
7
|
-
description: "Manage Metabase collections"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-Cz_2UyGV.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-LJam7ZQ-.mjs").then((mod) => mod.default),
|
|
12
|
-
items: () => import("./items-BI-O48Sc.mjs").then((mod) => mod.default),
|
|
13
|
-
tree: () => import("./tree-CGh-ZG4n.mjs").then((mod) => mod.default),
|
|
14
|
-
create: () => import("./create-DFMpgUvH.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-D6eMYNI5.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { collection_default as default };
|