@metabase/cli 0.1.2 → 0.1.4-alpha.skill-packaging.1c8ec40
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/.claude-plugin/marketplace.json +19 -0
- package/README.md +467 -388
- package/dist/add-collection-B3NhkLRT.mjs +11 -0
- package/dist/{add-collection-DwxQDXzL.mjs → add-collection-CEvZTea_.mjs} +5 -5
- package/dist/{api-key-BktzvPb7.mjs → api-key-BpmnzLLb.mjs} +1 -1
- package/dist/{archive-CLWtbvvH.mjs → archive-BPLLOdfL.mjs} +7 -7
- package/dist/{archive-C1mF-9Kj.mjs → archive-CazAWIrV.mjs} +6 -6
- package/dist/{archive-kYoy5LK5.mjs → archive-D596Cq7R.mjs} +7 -7
- package/dist/{archive-Cq4WKmJt.mjs → archive-DqPqXMZm.mjs} +7 -7
- package/dist/auth-DJp4QoWI.mjs +19 -0
- package/dist/{body-rDrR-C1c.mjs → body-CVSMGqZk.mjs} +3 -3
- package/dist/{branches-CH2UcCpX.mjs → branches--TavvEK1.mjs} +7 -7
- package/dist/{cancel-CgLZcItQ.mjs → cancel-BUitag4_.mjs} +6 -6
- package/dist/{cancel-task-DcYrFsM6.mjs → cancel-task-BHcWJUMu.mjs} +7 -7
- package/dist/card-DtUIadDM.mjs +20 -0
- package/dist/{cards-C4NIaERo.mjs → cards-Bir6wRS_.mjs} +6 -6
- package/dist/cli.mjs +31 -27
- package/dist/collection-4-gZeCWg.mjs +19 -0
- package/dist/{create-CNvd5T8h.mjs → create-4OjxTGAe.mjs} +10 -10
- package/dist/{create-bqc_rmix.mjs → create-BISpvrml.mjs} +10 -10
- package/dist/{create-BUCLNqiN.mjs → create-Bi8sqzL-.mjs} +13 -13
- package/dist/{create-Cbh1cGj9.mjs → create-C1cdoSw5.mjs} +12 -12
- package/dist/{create-Dh0p-c2Y.mjs → create-C3TiMJhQ.mjs} +10 -10
- package/dist/{create-QgN369N5.mjs → create-CZZc1KM8.mjs} +13 -13
- package/dist/{create-DU0ZhnZu.mjs → create-CxMpPsRO.mjs} +9 -9
- package/dist/{create-CB0Yp__0.mjs → create-Dj-fO-nV.mjs} +12 -12
- package/dist/{create-DvrVZ2hS.mjs → create-DuyWlx-S.mjs} +11 -11
- package/dist/{create-branch-BJFH9Hda.mjs → create-branch-CH1FmnxS.mjs} +7 -7
- package/dist/{create-CzfNOhOF.mjs → create-hYdLOyw_.mjs} +12 -12
- package/dist/{credentials-DTP1xuKz.mjs → credentials-BARfQeBr.mjs} +11 -9
- package/dist/{current-task-z_TiJ0kt.mjs → current-task-TX7rJmon.mjs} +7 -7
- package/dist/dashboard-C-azCGk-.mjs +20 -0
- package/dist/{database-DQkUxTLd.mjs → database-BKfGtTmB.mjs} +3 -3
- package/dist/db-D--IArxI.mjs +22 -0
- package/dist/{delete-DeZQ1r9w.mjs → delete-BxUaF8kW.mjs} +8 -8
- package/dist/{delete-CVYII8mq.mjs → delete-DzTd5w_y.mjs} +8 -8
- package/dist/{delete-runtime-BMzvfj_B.mjs → delete-runtime-DfFMWJJ6.mjs} +2 -2
- package/dist/{delete-table-ZiR9-ndv.mjs → delete-table-DWfA7uVn.mjs} +8 -8
- package/dist/{deprovision-BhD3J-Am.mjs → deprovision-CadXjs_7.mjs} +12 -12
- package/dist/{dirty-D9agt7Os.mjs → dirty-an-DQtBG.mjs} +7 -7
- package/dist/{docker-CHpV8PRz.mjs → docker-C9WQCjkt.mjs} +6 -103
- package/dist/{eid-B5wawMmO.mjs → eid-Cz9r5RX5.mjs} +1 -1
- package/dist/{export-Bfk7JAlR.mjs → export-BHq8ztFL.mjs} +10 -10
- package/dist/field-Do1HcUfq.mjs +18 -0
- package/dist/{fields-7ByLsxLg.mjs → fields-B21DeL2I.mjs} +6 -6
- package/dist/{flag-pair-DtR1AiBQ.mjs → flag-pair-Fmcdkrfx.mjs} +1 -1
- package/dist/{get-DikegGzi.mjs → get-BAqeeIQ-.mjs} +6 -6
- package/dist/{get-tISo-cmg.mjs → get-BHCgwPPT.mjs} +9 -9
- package/dist/{get-CQGeF-eP.mjs → get-BPah4iYM.mjs} +6 -6
- package/dist/{get-DKy3DAJX.mjs → get-C4_7ZrIS.mjs} +7 -7
- package/dist/{get-cuHp9-6U.mjs → get-CAYnc9sd.mjs} +6 -6
- package/dist/{get-BE6Izpus.mjs → get-ChEFd1sT.mjs} +7 -7
- package/dist/{get-gOT_RarI.mjs → get-ChxcxY2D.mjs} +7 -7
- package/dist/{get-DUSR5i99.mjs → get-Cy9YIesM.mjs} +6 -6
- package/dist/{get-bYc7eGYe.mjs → get-D-zU7VmK.mjs} +6 -6
- package/dist/{get-D2m4jhwT.mjs → get-DFm7pR7F.mjs} +8 -8
- package/dist/get-DWttywn_.mjs +79 -0
- package/dist/{get-StkjKuh0.mjs → get-RPL4h0It.mjs} +8 -8
- package/dist/{get-C3CcAJGg.mjs → get-dqrzLuwA.mjs} +8 -8
- package/dist/{get-run-D59Yqaoh.mjs → get-run-CG3QFs9T.mjs} +7 -7
- package/dist/git-sync-COKsdLkS.mjs +28 -0
- package/dist/{has-remote-changes-B1TciDVD.mjs → has-remote-changes-ecra9BFO.mjs} +7 -7
- package/dist/{import-DnnmmJbp.mjs → import-BzOKkYnp.mjs} +10 -10
- package/dist/{input-ikCiip6x.mjs → input-BQ-BZA8h.mjs} +1 -1
- package/dist/{is-dirty-DlfX7e39.mjs → is-dirty-7afLBOtn.mjs} +4 -4
- package/dist/is-dirty-Dnw0AHFw.mjs +10 -0
- package/dist/{items-DQFQSpjF.mjs → items-BEWSuEfe.mjs} +10 -10
- package/dist/{key-NDEARu2L.mjs → key-CCJdVWKc.mjs} +1 -1
- package/dist/{license-DBh13sc8.mjs → license-D3mFdxAq.mjs} +3 -3
- package/dist/{list-DQj-QJAs.mjs → list-B5E7LFDb.mjs} +8 -8
- package/dist/{list-BwjqQ6pp.mjs → list-B9mEqMZ5.mjs} +5 -5
- package/dist/{list-D067ZSE5.mjs → list-BJAC356Q.mjs} +7 -7
- package/dist/{list-Di529OJD.mjs → list-BOQWvb8b.mjs} +5 -5
- package/dist/{list-Cy0VhXQs.mjs → list-BZFTuiBr.mjs} +6 -6
- package/dist/{list-DJN-OvTZ.mjs → list-By3t67Y8.mjs} +7 -7
- package/dist/{list-GFfR9SuT.mjs → list-ByPzCM2G.mjs} +5 -5
- package/dist/{list-9AOWhxqp.mjs → list-C8b-KxY6.mjs} +8 -8
- package/dist/{list-iFVEdi2J.mjs → list-CiHlWufc.mjs} +6 -6
- package/dist/{list-DlKzgnqo.mjs → list-D_exD3LP.mjs} +7 -7
- package/dist/{list-4kYCGv01.mjs → list-DiAyv9l3.mjs} +6 -6
- package/dist/{list-CP5RNjO6.mjs → list-DtSOfMZ2.mjs} +6 -6
- package/dist/list-DwF6on6O.mjs +44 -0
- package/dist/{list-DAZP-IM5.mjs → list-nIxzXqr-.mjs} +5 -5
- package/dist/{login-DxgkosGx.mjs → login-Cka2HZWz.mjs} +9 -9
- package/dist/{logout-BlVwqBog.mjs → logout-rA25M-oa.mjs} +6 -6
- package/dist/{logs-CudNEkT4.mjs → logs-B5cGXoDi.mjs} +11 -10
- package/dist/{manifest-Dv5B9Blc.mjs → manifest-CGM7XNLC.mjs} +2 -2
- package/dist/measure-CwJ2o89T.mjs +19 -0
- package/dist/{metadata-BTJAFVvZ.mjs → metadata-BEd6s_Qf.mjs} +6 -6
- package/dist/{metadata-B2Td415K.mjs → metadata-DirWO0cS.mjs} +6 -6
- package/dist/{package-DV6Asqim.mjs → package-VV3qWWIQ.mjs} +10 -3
- package/dist/{parse-id-B38zTlYs.mjs → parse-id-DbSjfzoU.mjs} +1 -1
- package/dist/{parse-ref-DGvh4aDn.mjs → parse-ref-D1yeDOn8.mjs} +1 -1
- package/dist/{parse-schemas-Ds-cVE-O.mjs → parse-schemas-BXTlpoaf.mjs} +2 -2
- package/dist/path-DarsuSkB.mjs +58 -0
- package/dist/{poll-Bh6oAifO.mjs → poll-Cd8bRMmZ.mjs} +2 -2
- package/dist/{poll-task-vPwV31Fs.mjs → poll-task-BwKuhZ9P.mjs} +2 -2
- package/dist/{predicates-DiIiS3k7.mjs → predicates-CGO17Q15.mjs} +1 -1
- package/dist/{preflight-DxJb-hUV.mjs → preflight-RkDLqtNm.mjs} +3 -3
- package/dist/process-zJeVJZTM.mjs +105 -0
- package/dist/{prompt-Bf3DQ-qE.mjs → prompt-DgDNy_Pc.mjs} +1 -1
- package/dist/{provision-B-I0zuDe.mjs → provision-DBqPA-De.mjs} +15 -15
- package/dist/{ps-CaiOFCv2.mjs → ps-Cn3lzak-.mjs} +4 -4
- package/dist/ps-DIm7IScc.mjs +11 -0
- package/dist/{query-BtF1yWZZ.mjs → query-BoOismbH.mjs} +13 -13
- package/dist/{query-jmfqaXRP.mjs → query-CkNa5Nam.mjs} +9 -9
- package/dist/{remove-xskleeru.mjs → remove-B7NUBOqF.mjs} +6 -6
- package/dist/{remove-C2iv0g03.mjs → remove-C08c3vne.mjs} +10 -9
- package/dist/{remove-collection-DhZghaZy.mjs → remove-collection-cFO9M-qV.mjs} +9 -9
- package/dist/{render-DXv-D6fU.mjs → render-DuoDUTVL.mjs} +1 -1
- package/dist/{rescan-values-DW6u90ep.mjs → rescan-values-D1-IyyU7.mjs} +6 -6
- package/dist/{revision-message-flag-CWQbKhdl.mjs → revision-message-flag-oyq2xrDU.mjs} +1 -1
- package/dist/{run-DxVzhcF3.mjs → run-BCzKf_TV.mjs} +9 -9
- package/dist/{runs-BOHk1XnM.mjs → runs-pVgTv7cK.mjs} +9 -9
- package/dist/{runtime-cwBS8wwK.mjs → runtime-DPdP0sl1.mjs} +6 -6
- package/dist/{schema-tables-CcFbY_jN.mjs → schema-tables-c6K9AkS-.mjs} +6 -6
- package/dist/{schemas-DZmv_V62.mjs → schemas-s3PRMTwc.mjs} +6 -6
- package/dist/{search-CYMuc7Fg.mjs → search-DsF08cm9.mjs} +8 -8
- package/dist/segment-CvPF5gLG.mjs +19 -0
- package/dist/{set-CbGfQ7Ye.mjs → set-BNQjt8S1.mjs} +12 -12
- package/dist/{set-B_rrVwU4.mjs → set-DlfevPxG.mjs} +9 -9
- package/dist/{setting-DqZY9NXP.mjs → setting-Cc5FWSNN.mjs} +3 -3
- package/dist/{setup-DxmcAorA.mjs → setup-CIsvZgEA.mjs} +9 -9
- package/dist/skills-CHU7uuDU.mjs +191 -0
- package/dist/skills-Dws-azxD.mjs +18 -0
- package/dist/snippet-W-TaXdio.mjs +19 -0
- package/dist/{start-Cn0epTks.mjs → start-xREv6hev.mjs} +19 -17
- package/dist/{stash-BFZIl9F4.mjs → stash-ZLbOejYk.mjs} +9 -9
- package/dist/{status-UALK3OJl.mjs → status-CYWbB67d.mjs} +5 -5
- package/dist/{status-FDIDmqvM.mjs → status-DiXaGNmb.mjs} +5 -5
- package/dist/{status-BjCeJNLp.mjs → status-DjRAgzXl.mjs} +8 -8
- package/dist/{stop-DUwrDWw8.mjs → stop-CWKn_jI8.mjs} +10 -9
- package/dist/{summary-CS4UGiFJ.mjs → summary-CIFwiame.mjs} +6 -6
- package/dist/{sync-schema-IrHdJxmX.mjs → sync-schema-_SRMfBSQ.mjs} +6 -6
- package/dist/table-uhBlfNYj.mjs +19 -0
- package/dist/transform-UJ7T_BSb.mjs +24 -0
- package/dist/transform-job-DXs5apQ1.mjs +19 -0
- package/dist/{translate-B__zbDKm.mjs → translate-DVN_sIVb.mjs} +10 -10
- package/dist/{tree-Mh0uQ_Wy.mjs → tree-BTZfgldu.mjs} +5 -5
- package/dist/{update-D2VI_5cy.mjs → update-Bjd7YRyh.mjs} +13 -13
- package/dist/{update-Bw0WZix_.mjs → update-CCFegz4q.mjs} +15 -15
- package/dist/{update-BfBsM_y1.mjs → update-CDdML0mE.mjs} +14 -14
- package/dist/{update-B9DBMo30.mjs → update-CGYM_wWQ.mjs} +12 -12
- package/dist/{update-Cp1789qq.mjs → update-CYMsVUQX.mjs} +10 -10
- package/dist/{update-j9vgemKR.mjs → update-D48EYMKn.mjs} +10 -10
- package/dist/{update-1Di9hbPo.mjs → update-D6jptFDw.mjs} +14 -14
- package/dist/{update-B5_pp6Jj.mjs → update-DSjj9UQb.mjs} +15 -15
- package/dist/{update-Masp5WeT.mjs → update-DjfNbEgo.mjs} +11 -11
- package/dist/{update-D8GwQTcL.mjs → update-ZRF-sYqN.mjs} +16 -16
- package/dist/{update-dashcard-CNiQw1MD.mjs → update-dashcard-BfcB6pFx.mjs} +10 -10
- package/dist/upgrade-Cw_mP31_.mjs +432 -0
- package/dist/{url-GFM76VIK.mjs → url-DsDSVEnK.mjs} +9 -8
- package/dist/{uuid-Uif0lNk8.mjs → uuid-DbtHyH33.mjs} +7 -7
- package/dist/{validate-DCYx6jdL.mjs → validate-CB0bu50i.mjs} +3 -3
- package/dist/{validate-query-B07oGG4K.mjs → validate-query-CavIA0Q2.mjs} +3 -3
- package/dist/{values-DrwNHUAI.mjs → values-C1JRC3O2.mjs} +6 -6
- package/dist/{wait-DO7tS7NI.mjs → wait-Ed4Q7ccW.mjs} +2 -2
- package/dist/{wait-BoKk8CJy.mjs → wait-LRmiGepb.mjs} +8 -8
- package/dist/{wait-flags-CjX2sEGm.mjs → wait-flags-pItBfuzi.mjs} +2 -2
- package/dist/workspace-BozpZKez.mjs +24 -0
- package/dist/{workspace-credentials-B6BL-X0d.mjs → workspace-credentials-4lIxxz4g.mjs} +2 -41
- package/dist/yaml-ECiog374.mjs +43 -0
- package/package.json +8 -3
- package/skill-data/core/SKILL.md +575 -0
- package/skill-data/git-sync/SKILL.md +196 -0
- package/skill-data/transform/SKILL.md +235 -0
- package/skill-data/workspace/SKILL.md +408 -0
- package/skills/metabase-cli/SKILL.md +42 -0
- package/dist/add-collection-SL08iMub.mjs +0 -11
- package/dist/auth-DfYkakP3.mjs +0 -19
- package/dist/card-ZCGU2JEh.mjs +0 -20
- package/dist/collection-D_uFLIAS.mjs +0 -19
- package/dist/dashboard-G1-dGLUR.mjs +0 -20
- package/dist/db-CBaEfumR.mjs +0 -22
- package/dist/field-BDJ1pEgr.mjs +0 -18
- package/dist/git-sync-BiTWfLgY.mjs +0 -28
- package/dist/is-dirty-DClGFOGV.mjs +0 -10
- package/dist/measure-C7SbdYQk.mjs +0 -19
- package/dist/ps-BmYQYC7t.mjs +0 -10
- package/dist/segment-Df4pfjco.mjs +0 -19
- package/dist/snippet-CwSHjQyn.mjs +0 -19
- package/dist/table-Cdr5bKp1.mjs +0 -19
- package/dist/transform-CeZusR_w.mjs +0 -24
- package/dist/transform-job-BOn9-CGa.mjs +0 -19
- package/dist/workspace-CyEX40D-.mjs +0 -24
- /package/dist/{snippet-Dw0Sjzkr.mjs → snippet-CSWqkslB.mjs} +0 -0
- /package/dist/{transform-IEX4Mx3X.mjs → transform-DR4ejuPM.mjs} +0 -0
- /package/dist/{transform-job-Csr86muI.mjs → transform-job-BrhOLO4M.mjs} +0 -0
- /package/dist/{workspace-DVuqKJGG.mjs → workspace-DUfqhPm5.mjs} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import { defineMetabaseCommand, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import { defineMetabaseCommand, outputFlags } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
|
+
import "./poll-Cd8bRMmZ.mjs";
|
|
8
|
+
import "./process-zJeVJZTM.mjs";
|
|
9
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-C9WQCjkt.mjs";
|
|
10
|
+
import { LocalWorkspaceState } from "./ps-Cn3lzak-.mjs";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
|
|
12
13
|
//#region src/commands/workspace/stop.ts
|
|
@@ -55,7 +56,7 @@ var stop_default = defineMetabaseCommand({
|
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
outputSchema: StopResult,
|
|
58
|
-
examples: ["
|
|
59
|
+
examples: ["mb workspace stop 1", "mb workspace stop 1 --json"],
|
|
59
60
|
async run({ args, ctx }) {
|
|
60
61
|
const workspaceId = parseId(args.id);
|
|
61
62
|
const containerName = containerNameFor(workspaceId);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
7
|
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-B3gvaqpK.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/summary.ts
|
|
@@ -23,7 +23,7 @@ var summary_default = defineMetabaseCommand({
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
outputSchema: FieldSummary,
|
|
26
|
-
examples: ["
|
|
26
|
+
examples: ["mb field summary 100", "mb field summary 100 --json"],
|
|
27
27
|
async run({ args, ctx, getClient }) {
|
|
28
28
|
const id = parseId(args.id);
|
|
29
29
|
const client = await getClient();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
7
|
import "./field-B3gvaqpK.mjs";
|
|
8
8
|
import "./table-B-PYcgGb.mjs";
|
|
9
9
|
import { DatabaseSyncResult, databaseSyncResultView } from "./database-vvig8k4x.mjs";
|
|
@@ -27,7 +27,7 @@ var sync_schema_default = defineMetabaseCommand({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
outputSchema: DatabaseSyncResult,
|
|
30
|
-
examples: ["
|
|
30
|
+
examples: ["mb db sync-schema 1", "mb db sync-schema 1 --json"],
|
|
31
31
|
async run({ args, ctx, getClient }) {
|
|
32
32
|
const id = parseId(args.id);
|
|
33
33
|
const client = await getClient();
|
|
@@ -0,0 +1,19 @@
|
|
|
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: "Inspect Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DtSOfMZ2.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-DFm7pR7F.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-BEd6s_Qf.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-B21DeL2I.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-CYMsVUQX.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { table_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
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-CiHlWufc.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-ChxcxY2D.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Bi8sqzL-.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DSjj9UQb.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-DzTd5w_y.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-DWfA7uVn.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-BCzKf_TV.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-BUitag4_.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-CG3QFs9T.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-pVgTv7cK.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { transform_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
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-BZFTuiBr.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-C4_7ZrIS.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BISpvrml.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DjfNbEgo.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BxUaF8kW.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import { ConfigError } from "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { requireBothOrNeither } from "./flag-pair-
|
|
9
|
+
import { requireBothOrNeither } from "./flag-pair-Fmcdkrfx.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/domain/eid-translation.ts
|
|
@@ -72,9 +72,9 @@ var translate_default = defineMetabaseCommand({
|
|
|
72
72
|
},
|
|
73
73
|
outputSchema: EidTranslateResult,
|
|
74
74
|
examples: [
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
75
|
+
"mb eid translate --model card --eids abc123XYZ,def456ABC",
|
|
76
|
+
"mb eid translate --file translate.json",
|
|
77
|
+
"mb eid translate --body '{\"entity_ids\":{\"card\":[\"abc123XYZ\"]}}'"
|
|
78
78
|
],
|
|
79
79
|
async run({ args, ctx, getClient }) {
|
|
80
80
|
const pair = requireBothOrNeither({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { writeJson } from "./render-
|
|
4
|
-
import { ConfigError } from "./predicates-
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
3
|
+
import { writeJson } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
6
|
import { CollectionTreeNode } from "./collection-B3sPXRLs.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ var tree_default = defineMetabaseCommand({
|
|
|
19
19
|
...connectionFlags
|
|
20
20
|
},
|
|
21
21
|
outputSchema: CollectionTreeResponse,
|
|
22
|
-
examples: ["
|
|
22
|
+
examples: ["mb collection tree", "mb collection tree --json"],
|
|
23
23
|
async run({ ctx, getClient }) {
|
|
24
24
|
if (ctx.format === "text") throw new ConfigError("collection tree output is JSON-only; --format text is not supported");
|
|
25
25
|
const client = await getClient();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
10
|
import "./field-B3gvaqpK.mjs";
|
|
11
11
|
import "./card-CQxvHeyP.mjs";
|
|
12
|
-
import "./validate-
|
|
12
|
+
import "./validate-CB0bu50i.mjs";
|
|
13
13
|
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-CnMD04PQ.mjs";
|
|
14
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
14
|
+
import { preflightDashcardCardReferences } from "./preflight-RkDLqtNm.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/dashboard/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -32,10 +32,10 @@ var update_default = defineMetabaseCommand({
|
|
|
32
32
|
},
|
|
33
33
|
outputSchema: DashboardDetail,
|
|
34
34
|
examples: [
|
|
35
|
-
"cat patch.json |
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"cat patch.json | mb dashboard update 1",
|
|
36
|
+
"mb dashboard update 1 --file patch.json",
|
|
37
|
+
"mb dashboard update 1 --body '{\"name\":\"renamed\"}'",
|
|
38
|
+
"mb dashboard update 1 --body '{\"dashcards\":[{\"id\":-1,\"card_id\":42,\"row\":0,\"col\":0,\"size_x\":12,\"size_y\":6}]}'"
|
|
39
39
|
],
|
|
40
40
|
async run({ args, ctx, getClient }) {
|
|
41
41
|
const id = parseId(args.id);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
12
|
-
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
14
|
-
import { parseSchemasCsv } from "./parse-schemas-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./poll-Cd8bRMmZ.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-pItBfuzi.mjs";
|
|
12
|
+
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-DUfqhPm5.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-Ed4Q7ccW.mjs";
|
|
14
|
+
import { parseSchemasCsv } from "./parse-schemas-BXTlpoaf.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/workspace/database/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -42,9 +42,9 @@ var update_default = defineMetabaseCommand({
|
|
|
42
42
|
},
|
|
43
43
|
outputSchema: Workspace,
|
|
44
44
|
examples: [
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
45
|
+
"mb workspace database update 1 5 --schemas analytics,github",
|
|
46
|
+
"mb workspace database update 1 5 --schemas analytics --wait",
|
|
47
|
+
"mb workspace database update 1 5 --file update.json"
|
|
48
48
|
],
|
|
49
49
|
async run({ args, ctx, getClient }) {
|
|
50
50
|
const workspaceId = parseId(args.id);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./validate-CB0bu50i.mjs";
|
|
11
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
12
|
import { Segment, SegmentUpdateInput, segmentView } from "./segment-BMrUBz94.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/segment/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
16
16
|
meta: {
|
|
17
17
|
name: "update",
|
|
18
|
-
description: "Update a segment by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `
|
|
18
|
+
description: "Update a segment by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `mb query` (see `mb query --print-schema`)"
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
21
|
...outputFlags,
|
|
@@ -31,10 +31,10 @@ var update_default = defineMetabaseCommand({
|
|
|
31
31
|
},
|
|
32
32
|
outputSchema: Segment,
|
|
33
33
|
examples: [
|
|
34
|
-
"cat patch.json |
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"cat patch.json | mb segment update 1",
|
|
35
|
+
"mb segment update 1 --file patch.json",
|
|
36
|
+
"mb segment update 1 --body '{\"name\":\"renamed\",\"revision_message\":\"rename\"}'",
|
|
37
|
+
"mb segment update 1 --file patch.json --skip-validate"
|
|
38
38
|
],
|
|
39
39
|
async run({ args, ctx, getClient }) {
|
|
40
40
|
const id = parseId(args.id);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-CSWqkslB.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/snippet/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -28,10 +28,10 @@ var update_default = defineMetabaseCommand({
|
|
|
28
28
|
},
|
|
29
29
|
outputSchema: Snippet,
|
|
30
30
|
examples: [
|
|
31
|
-
"cat patch.json |
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
31
|
+
"cat patch.json | mb snippet update 1",
|
|
32
|
+
"mb snippet update 1 --file patch.json",
|
|
33
|
+
"mb snippet update 1 --body '{\"name\":\"renamed\"}'",
|
|
34
|
+
"mb snippet update 1 --body '{\"archived\":true}'"
|
|
35
35
|
],
|
|
36
36
|
async run({ args, ctx, getClient }) {
|
|
37
37
|
const id = parseId(args.id);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
10
|
import "./field-B3gvaqpK.mjs";
|
|
11
11
|
import { Table, TableUpdateInput, tableView } from "./table-B-PYcgGb.mjs";
|
|
12
12
|
|
|
@@ -29,9 +29,9 @@ var update_default = defineMetabaseCommand({
|
|
|
29
29
|
},
|
|
30
30
|
outputSchema: Table,
|
|
31
31
|
examples: [
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"cat patch.json |
|
|
32
|
+
"mb table update 42 --body '{\"display_name\":\"Customers\"}'",
|
|
33
|
+
"mb table update 42 --file patch.json",
|
|
34
|
+
"cat patch.json | mb table update 42"
|
|
35
35
|
],
|
|
36
36
|
async run({ args, ctx, getClient }) {
|
|
37
37
|
const id = parseId(args.id);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
10
|
import { Field, FieldUpdateInput, fieldView } from "./field-B3gvaqpK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/field/update.ts
|
|
@@ -28,9 +28,9 @@ var update_default = defineMetabaseCommand({
|
|
|
28
28
|
},
|
|
29
29
|
outputSchema: Field,
|
|
30
30
|
examples: [
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"cat patch.json |
|
|
31
|
+
"mb field update 100 --body '{\"description\":\"customer email\"}'",
|
|
32
|
+
"mb field update 100 --file patch.json",
|
|
33
|
+
"cat patch.json | mb field update 100"
|
|
34
34
|
],
|
|
35
35
|
async run({ args, ctx, getClient }) {
|
|
36
36
|
const id = parseId(args.id);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./validate-CB0bu50i.mjs";
|
|
11
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
12
|
import { Measure, MeasureUpdateInput, measureView } from "./measure-BEQfnLdN.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/measure/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
16
16
|
meta: {
|
|
17
17
|
name: "update",
|
|
18
|
-
description: "Update a measure by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `
|
|
18
|
+
description: "Update a measure by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `mb query` (see `mb query --print-schema`)"
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
21
|
...outputFlags,
|
|
@@ -31,10 +31,10 @@ var update_default = defineMetabaseCommand({
|
|
|
31
31
|
},
|
|
32
32
|
outputSchema: Measure,
|
|
33
33
|
examples: [
|
|
34
|
-
"cat patch.json |
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"cat patch.json | mb measure update 1",
|
|
35
|
+
"mb measure update 1 --file patch.json",
|
|
36
|
+
"mb measure update 1 --body '{\"name\":\"renamed\",\"revision_message\":\"rename\"}'",
|
|
37
|
+
"mb measure update 1 --file patch.json --skip-validate"
|
|
38
38
|
],
|
|
39
39
|
async run({ args, ctx, getClient }) {
|
|
40
40
|
const id = parseId(args.id);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./validate-CB0bu50i.mjs";
|
|
11
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-DR4ejuPM.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/transform/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
16
16
|
meta: {
|
|
17
17
|
name: "update",
|
|
18
|
-
description: "Update a transform by id; if source is provided with type `query` and source.query is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `
|
|
18
|
+
description: "Update a transform by id; if source is provided with type `query` and source.query is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `mb query` (see `mb query --print-schema`)"
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
21
|
...outputFlags,
|
|
@@ -31,10 +31,10 @@ var update_default = defineMetabaseCommand({
|
|
|
31
31
|
},
|
|
32
32
|
outputSchema: Transform,
|
|
33
33
|
examples: [
|
|
34
|
-
"cat patch.json |
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"cat patch.json | mb transform update 1",
|
|
35
|
+
"mb transform update 1 --file patch.json",
|
|
36
|
+
"mb transform update 1 --body '{\"name\":\"renamed\"}'",
|
|
37
|
+
"mb transform update 1 --file patch.json --skip-validate"
|
|
38
38
|
],
|
|
39
39
|
async run({ args, ctx, getClient }) {
|
|
40
40
|
const id = parseId(args.id);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./predicates-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
|
+
import "./predicates-CGO17Q15.mjs";
|
|
5
|
+
import "./input-BQ-BZA8h.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-BrhOLO4M.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform-job/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -28,9 +28,9 @@ var update_default = defineMetabaseCommand({
|
|
|
28
28
|
},
|
|
29
29
|
outputSchema: TransformJob,
|
|
30
30
|
examples: [
|
|
31
|
-
"cat patch.json |
|
|
32
|
-
"
|
|
33
|
-
"
|
|
31
|
+
"cat patch.json | mb transform-job update 1",
|
|
32
|
+
"mb transform-job update 1 --file patch.json",
|
|
33
|
+
"mb transform-job update 1 --body '{\"schedule\":\"0 0 6 * * ?\"}'"
|
|
34
34
|
],
|
|
35
35
|
async run({ args, ctx, getClient }) {
|
|
36
36
|
const id = parseId(args.id);
|