@metabase/cli 0.1.9 → 0.1.11
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 +1 -1
- package/README.md +71 -5
- package/dist/{add-collection-CoP-6FZR.mjs → add-collection-DKULSPwT.mjs} +4 -4
- package/dist/add-collection-DyEe_xRO.mjs +10 -0
- package/dist/{archive-BxwGVDpd.mjs → archive-BJ6uL3hh.mjs} +3 -3
- package/dist/{archive-CPLXsrzD.mjs → archive-BL_0fXhf.mjs} +4 -4
- package/dist/{archive-C17qIvFW.mjs → archive-BLbaqc-5.mjs} +5 -5
- package/dist/archive-BLxX3J6I.mjs +39 -0
- package/dist/{archive-Blt0TxxA.mjs → archive-DQsV2uwy.mjs} +5 -5
- package/dist/{archive-BY8nrgnq.mjs → archive-ibJVYsBC.mjs} +3 -3
- package/dist/{archive-BeslLaal.mjs → archive-y-_m3XID.mjs} +3 -3
- package/dist/auth-BKaQjcmP.mjs +19 -0
- package/dist/{body-2jl-YSxT.mjs → body-DCQg78AF.mjs} +1 -1
- package/dist/{branches-Vlu44J51.mjs → branches-CJVscsZe.mjs} +4 -4
- package/dist/{cancel-D0aBPUhs.mjs → cancel-C8W0sPix.mjs} +3 -3
- package/dist/{cancel-task-DoL2bqs1.mjs → cancel-task-dDgQDswT.mjs} +4 -4
- package/dist/card-CGBvUmCW.mjs +20 -0
- package/dist/{cards-6MTreYAo.mjs → cards-B7HE8BT6.mjs} +3 -3
- package/dist/cli.mjs +24 -23
- package/dist/collection-Ch7pPKHD.mjs +20 -0
- package/dist/{collection-namespace-BdqQJb7j.mjs → collection-namespace-CBCApZJf.mjs} +1 -1
- package/dist/{create-dVmIemXi.mjs → create-84jcfY4N.mjs} +3 -3
- package/dist/{create-BZRA7nPu.mjs → create-B6mzc8UK.mjs} +4 -4
- package/dist/{create-DcoF52Kx.mjs → create-BQA6nM5n.mjs} +4 -4
- package/dist/{create-C_Z3IDrW.mjs → create-BWaBYzhC.mjs} +4 -4
- package/dist/{create-BsOdn1Q1.mjs → create-DN8us8si.mjs} +3 -3
- package/dist/{create-BWD8H6yw.mjs → create-DPASPFGi.mjs} +5 -5
- package/dist/create-Di9NY7kK.mjs +44 -0
- package/dist/{create-DNYFXAsy.mjs → create-VjvMdgM5.mjs} +4 -4
- package/dist/{create-branch-40Xm4DN7.mjs → create-branch-CCoDX2Qf.mjs} +4 -4
- package/dist/{create-k59K2qf1.mjs → create-vNcD4jfq.mjs} +4 -4
- package/dist/{current-task-BN_XEFSX.mjs → current-task-QdxA3mSX.mjs} +4 -4
- package/dist/dashboard-BDb2krMr.mjs +21 -0
- package/dist/db-CoVdkdVm.mjs +22 -0
- package/dist/{delete-DEFgs5LE.mjs → delete-ByJ6guaH.mjs} +4 -4
- package/dist/{delete-tPjicYO4.mjs → delete-CE_Jfjni.mjs} +4 -4
- package/dist/{delete-table-CDj19Qn6.mjs → delete-table-D5LDUkOk.mjs} +4 -4
- package/dist/{dirty-DGCa6W1F.mjs → dirty-C6yzkIPn.mjs} +4 -4
- package/dist/document-BA2S1ev3.mjs +19 -0
- package/dist/document-CcfiiV3b.mjs +100 -0
- package/dist/{eid-3v5MAKNA.mjs → eid-ZOyix96k.mjs} +3 -3
- package/dist/{error-BndUmcwS.mjs → error-C1bUYXn7.mjs} +2 -1
- package/dist/{export-BIZ-UR_M.mjs → export-BhbBX-pl.mjs} +6 -6
- package/dist/field-B5bptFqL.mjs +18 -0
- package/dist/{fields-9lOrO8UH.mjs → fields-CZ6IK8Qf.mjs} +3 -3
- package/dist/{get-LI2xsRoT.mjs → get-157SWRte.mjs} +3 -3
- package/dist/{get-CHaIVT6Y.mjs → get-9b0ZEWh1.mjs} +4 -4
- package/dist/{get-6Cj360cH.mjs → get-B03gdAun.mjs} +3 -3
- package/dist/{get-BYSj7tMP.mjs → get-BKWZA_22.mjs} +4 -4
- package/dist/{get-BSJN5TwW.mjs → get-Bbo2Y-aL.mjs} +3 -3
- package/dist/{get-BpWjLkKT.mjs → get-BtqQ98nb.mjs} +3 -3
- package/dist/{get-Bk81meka.mjs → get-C0emTO1r.mjs} +2 -2
- package/dist/{get-BuM6QPjZ.mjs → get-CqKttHWW.mjs} +4 -4
- package/dist/{get-BIH72g0v.mjs → get-D49EdHgH.mjs} +3 -3
- package/dist/{get-DFe2WoJ2.mjs → get-DIyv2a7h.mjs} +4 -4
- package/dist/get-DclzgC5G.mjs +36 -0
- package/dist/{get-w-WqpjKy.mjs → get-DlzC0xCg.mjs} +3 -3
- package/dist/{get-CRa-h69C.mjs → get-mR01pCNG.mjs} +4 -4
- package/dist/{get-DlGlnciR.mjs → get-nl41R-2q.mjs} +4 -4
- package/dist/{get-run-hCZaw8-h.mjs → get-run-_dlMCGp5.mjs} +4 -4
- package/dist/git-sync-DqJmONiB.mjs +28 -0
- package/dist/{has-remote-changes-DcpW1_KX.mjs → has-remote-changes-CToITRyl.mjs} +4 -4
- package/dist/{import-CTQT1atq.mjs → import-xnYHb4QX.mjs} +6 -6
- package/dist/{is-dirty-DGrmt1ss.mjs → is-dirty-BHyMmUVV.mjs} +3 -3
- package/dist/is-dirty-BvA3yzRc.mjs +9 -0
- package/dist/{items-Kr0oN2V7.mjs → items-D3AmbIOO.mjs} +3 -3
- package/dist/{list-Cl_O4_U4.mjs → list-5ZZfaOzm.mjs} +3 -3
- package/dist/{list-Ccj8-vb5.mjs → list-BHCVZh7Q.mjs} +2 -2
- package/dist/{list-DzKKdfCI.mjs → list-BdStkg8G.mjs} +3 -3
- package/dist/{list-Cj3v4Lgv.mjs → list-BhZYkbc9.mjs} +2 -2
- package/dist/{list-DNmekF2B.mjs → list-BkzrFyJO.mjs} +3 -3
- package/dist/{list-tklIxo38.mjs → list-BtTRJyrR.mjs} +2 -2
- package/dist/{list-CLvlEVQo.mjs → list-Byn-dRW4.mjs} +3 -3
- package/dist/{list-CCtYVgPN.mjs → list-C5NywUBH.mjs} +3 -3
- package/dist/list-CA6MlByL.mjs +32 -0
- package/dist/{list-Bz2ej0Cl.mjs → list-CIu1zfpU.mjs} +3 -3
- package/dist/{list-D2D5Mw1E.mjs → list-C_d7ppOJ.mjs} +3 -3
- package/dist/{list-zRQsvrH6.mjs → list-D7Np4fwk.mjs} +3 -3
- package/dist/{list-DaESiI72.mjs → list-DKPhFATP.mjs} +3 -3
- package/dist/{list-jcgK0thu.mjs → list-DSJwMHXB.mjs} +2 -2
- package/dist/{login-BMKBmgeQ.mjs → login-jWvDDvEm.mjs} +3 -3
- package/dist/{logout-C5pod937.mjs → logout-Bltlsm6u.mjs} +2 -2
- package/dist/measure-DBX4k13t.mjs +19 -0
- package/dist/{metadata-DIEbyQeS.mjs → metadata-BKcyjsoA.mjs} +3 -3
- package/dist/{metadata-CG4VZ5NW.mjs → metadata-Bf2TfG8F.mjs} +3 -3
- package/dist/{parse-id-Boqc4wn4.mjs → parse-id-CWRJlQVK.mjs} +1 -1
- package/dist/{path-ur3NsMFr.mjs → path-Djw9IARu.mjs} +3 -3
- package/dist/{poll-BMjCkDaj.mjs → poll-hJrV0cPm.mjs} +1 -1
- package/dist/{poll-task-CiRA0ER9.mjs → poll-task-DK6X9Juu.mjs} +2 -2
- package/dist/{preflight-CSqcIlbX.mjs → preflight-DjSPp3Ct.mjs} +1 -1
- package/dist/{query-B8JzsQ_I.mjs → query-Cc-9oPsW.mjs} +3 -3
- package/dist/{query-CG0rEMS-.mjs → query-Do5n5SZc.mjs} +3 -3
- package/dist/{remove-collection-Clwz3EHQ.mjs → remove-collection-DVvnmU06.mjs} +6 -6
- package/dist/{rescan-values-DuHBnFjK.mjs → rescan-values-CHluR3JC.mjs} +3 -3
- package/dist/{run-JXRivkfH.mjs → run-CcJbcaw8.mjs} +6 -6
- package/dist/{runs-FxgbXvax.mjs → runs-Dc8qZBhl.mjs} +4 -4
- package/dist/{runtime-Ck8KKQe-.mjs → runtime-jWkzCPlL.mjs} +1 -1
- package/dist/{schema-tables-izDPI4f5.mjs → schema-tables-CZ6EMHUZ.mjs} +3 -3
- package/dist/{schemas-CyzplnXl.mjs → schemas-Br1cpOZc.mjs} +3 -3
- package/dist/{search-BeuoOEQV.mjs → search-DB2joPgt.mjs} +3 -3
- package/dist/segment-BWcyA1P-.mjs +19 -0
- package/dist/{set-ClzB_5Jk.mjs → set-BRhVzEWd.mjs} +5 -5
- package/dist/{setting-CBJVEx7_.mjs → setting-CuxO4T1n.mjs} +3 -3
- package/dist/{setup-vKXEUMM7.mjs → setup-Bn4jwxdl.mjs} +3 -3
- package/dist/{skills-1Z5Wj7Kp.mjs → skills-Db1r65S5.mjs} +3 -3
- package/dist/snippet-C9UM6NwC.mjs +19 -0
- package/dist/{stash-DLtVf4_D.mjs → stash-Dp2JFgmp.mjs} +6 -6
- package/dist/{status-AnPzI1f7.mjs → status-BxGBwALE.mjs} +2 -2
- package/dist/{status-DHFYn9kO.mjs → status-j09luNai.mjs} +5 -5
- package/dist/{summary-DDed1LOz.mjs → summary-DVrj7DSa.mjs} +3 -3
- package/dist/{sync-schema-BGQVq2JA.mjs → sync-schema-BVHvjzGX.mjs} +5 -5
- package/dist/table-DYI8K12W.mjs +19 -0
- package/dist/transform-CvbMbJtI.mjs +24 -0
- package/dist/transform-job-CtzgvccZ.mjs +19 -0
- package/dist/{tree-BlYgJOn9.mjs → tree-BEPw6xbY.mjs} +2 -2
- package/dist/{update-CgOPxKXK.mjs → update-B5VBJFU9.mjs} +6 -6
- package/dist/{update-CoVvsU-I.mjs → update-BXaT0Faw.mjs} +5 -5
- package/dist/{update-B0z-2zqC.mjs → update-Bd0ASKUG.mjs} +5 -5
- package/dist/{update-DBN7yfAk.mjs → update-Bn5wUyTQ.mjs} +4 -4
- package/dist/{update-BHtliIr_.mjs → update-C5vlBTII.mjs} +5 -5
- package/dist/{update-CilTW98H.mjs → update-C875_WGf.mjs} +5 -5
- package/dist/{update-DqSG5_Ie.mjs → update-CAoOJRwz.mjs} +5 -5
- package/dist/update-DiG6SSGm.mjs +52 -0
- package/dist/{update-DykqQLfo.mjs → update-DzKPxRBE.mjs} +4 -4
- package/dist/{update-dashcard-DZ8oV8up.mjs → update-dashcard-7bZtw04E.mjs} +4 -4
- package/dist/{update-CdfAogO2.mjs → update-fVqLtZ_t.mjs} +4 -4
- package/dist/{upgrade-B8sEEQdQ.mjs → upgrade-DdCxE9Ml.mjs} +2 -2
- package/dist/{uuid-lLVnEoBN.mjs → uuid-DywghRXO.mjs} +2 -2
- package/dist/{values-oD72EtRq.mjs → values-DSul3siC.mjs} +3 -3
- package/dist/{verify-Bg6F0oFN.mjs → verify-DzDyKXOa.mjs} +1 -1
- package/dist/{wait-BtzuqQC3.mjs → wait-CacFZI5Y.mjs} +5 -5
- package/dist/{wait-flags-DyFfZeav.mjs → wait-flags-DV419apK.mjs} +2 -2
- package/package.json +2 -1
- package/skill-data/core/SKILL.md +24 -25
- package/skill-data/data-analysis/SKILL.md +65 -0
- package/skill-data/data-transformation/SKILL.md +200 -0
- package/skill-data/document/SKILL.md +162 -0
- package/skill-data/mbql/SKILL.md +20 -20
- package/skill-data/robot-data-engineer/SKILL.md +142 -0
- package/skill-data/semantic-layer/SKILL.md +166 -0
- package/skill-data/transform/SKILL.md +46 -48
- package/skill-data/visualization/SKILL.md +5 -3
- package/skills/metabase-cli/SKILL.md +6 -0
- package/dist/add-collection-EPp89tcs.mjs +0 -10
- package/dist/auth-CCUDM9Sv.mjs +0 -19
- package/dist/card-UwczcLjq.mjs +0 -20
- package/dist/collection-Cexywhlj.mjs +0 -20
- package/dist/dashboard-B_CuVbMX.mjs +0 -21
- package/dist/db-DULi5MOr.mjs +0 -22
- package/dist/field-CfrrLetM.mjs +0 -18
- package/dist/git-sync-BpRstrZo.mjs +0 -28
- package/dist/is-dirty-DuWCgrz2.mjs +0 -9
- package/dist/measure-BkwFsP44.mjs +0 -19
- package/dist/segment-ChYmSM0p.mjs +0 -19
- package/dist/snippet-De70ayL1.mjs +0 -19
- package/dist/table-C_bP2ao-.mjs +0 -19
- package/dist/transform-B4RZfm6A.mjs +0 -24
- package/dist/transform-job-C4pZcrIF.mjs +0 -19
- /package/dist/{delete-runtime-DVb-Pkzp.mjs → delete-runtime-CjFc69tS.mjs} +0 -0
- /package/dist/{key-C2XG394c.mjs → key-y4TtxKwU.mjs} +0 -0
- /package/dist/{manifest-Cmu--CG5.mjs → manifest-BPHqF5LY.mjs} +0 -0
- /package/dist/{measure-ClESGxIb.mjs → measure-COGAoZpo.mjs} +0 -0
- /package/dist/{revision-message-flag-WmsIzUOM.mjs → revision-message-flag-Bo-Kvv6F.mjs} +0 -0
- /package/dist/{segment-Be2v4ilr.mjs → segment-d-708KKO.mjs} +0 -0
- /package/dist/{setting-oL97SNeO.mjs → setting-CSJvi1-6.mjs} +0 -0
- /package/dist/{skills-BDPVoBWU.mjs → skills-CY_FmaPo.mjs} +0 -0
- /package/dist/{snippet-xh42tYly.mjs → snippet-BZvo05ua.mjs} +0 -0
- /package/dist/{transform-DyWCoiO-.mjs → transform--dviwMA1.mjs} +0 -0
- /package/dist/{transform-job-DpDGoqQt.mjs → transform-job-n8W6tLqF.mjs} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./input-xewHccej.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DCQg78AF.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
8
|
-
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-
|
|
8
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-n8W6tLqF.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform-job/create.ts
|
|
11
11
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
5
|
+
import "./poll-hJrV0cPm.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-DK6X9Juu.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/create-branch.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./input-xewHccej.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DCQg78AF.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
8
8
|
import "./validate-B62TRDGV.mjs";
|
|
9
9
|
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BpiN1CFu.mjs";
|
|
10
|
-
import { Measure, MeasureCreateInput, measureView } from "./measure-
|
|
10
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-COGAoZpo.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/create.ts
|
|
13
13
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-
|
|
5
|
+
import "./poll-hJrV0cPm.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-DK6X9Juu.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/current-task.ts
|
|
9
9
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/dashboard/index.ts
|
|
4
|
+
var dashboard_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "dashboard",
|
|
7
|
+
description: "Manage Metabase dashboards"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BHCVZh7Q.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-157SWRte.mjs").then((mod) => mod.default),
|
|
12
|
+
cards: () => import("./cards-B7HE8BT6.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-BQA6nM5n.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-Bd0ASKUG.mjs").then((mod) => mod.default),
|
|
15
|
+
"update-dashcard": () => import("./update-dashcard-7bZtw04E.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-ibJVYsBC.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { dashboard_default as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/db/index.ts
|
|
4
|
+
var db_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "db",
|
|
7
|
+
description: "Inspect and sync Metabase databases",
|
|
8
|
+
alias: "database"
|
|
9
|
+
},
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-BtTRJyrR.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-DlzC0xCg.mjs").then((m) => m.default),
|
|
13
|
+
metadata: () => import("./metadata-BKcyjsoA.mjs").then((m) => m.default),
|
|
14
|
+
schemas: () => import("./schemas-Br1cpOZc.mjs").then((m) => m.default),
|
|
15
|
+
"schema-tables": () => import("./schema-tables-CZ6EMHUZ.mjs").then((m) => m.default),
|
|
16
|
+
"sync-schema": () => import("./sync-schema-BVHvjzGX.mjs").then((m) => m.default),
|
|
17
|
+
"rescan-values": () => import("./rescan-values-CHluR3JC.mjs").then((m) => m.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { db_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./prompt-u4WhE4T5.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-CjFc69tS.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform-job/delete.ts
|
|
10
10
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./prompt-u4WhE4T5.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-CjFc69tS.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/delete.ts
|
|
10
10
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./prompt-u4WhE4T5.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-CjFc69tS.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/delete-table.ts
|
|
10
10
|
var delete_table_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-
|
|
5
|
+
import "./poll-hJrV0cPm.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-DK6X9Juu.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/dirty.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/document/index.ts
|
|
4
|
+
var document_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "document",
|
|
7
|
+
description: "Manage Metabase documents"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CA6MlByL.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DclzgC5G.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Di9NY7kK.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DiG6SSGm.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-BLxX3J6I.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { document_default as default };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/domain/document.ts
|
|
4
|
+
const TipTapNode = z.looseObject({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
text: z.string().optional(),
|
|
7
|
+
attrs: z.record(z.string(), z.unknown()).optional(),
|
|
8
|
+
marks: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
9
|
+
get content() {
|
|
10
|
+
return z.array(TipTapNode).optional();
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const NODE_TYPES_WITH_ID = new Set([
|
|
14
|
+
"paragraph",
|
|
15
|
+
"heading",
|
|
16
|
+
"codeBlock",
|
|
17
|
+
"orderedList",
|
|
18
|
+
"bulletList",
|
|
19
|
+
"blockquote",
|
|
20
|
+
"cardEmbed",
|
|
21
|
+
"supportingText"
|
|
22
|
+
]);
|
|
23
|
+
function validateNodeId({ type, attrs, content = [] }) {
|
|
24
|
+
const id = attrs?.["_id"];
|
|
25
|
+
if (NODE_TYPES_WITH_ID.has(type) && (typeof id !== "string" || id === "")) return false;
|
|
26
|
+
return content.every(validateNodeId);
|
|
27
|
+
}
|
|
28
|
+
const TipTapNodeInput = TipTapNode.refine(validateNodeId, { message: `every ${[...NODE_TYPES_WITH_ID].join(", ")} node needs a non-empty string \`_id\` (mint with \`mb uuid\`)` });
|
|
29
|
+
const DocumentCreator = z.object({
|
|
30
|
+
id: z.number().int(),
|
|
31
|
+
email: z.string(),
|
|
32
|
+
first_name: z.string().nullable(),
|
|
33
|
+
last_name: z.string().nullable()
|
|
34
|
+
}).loose();
|
|
35
|
+
const Document = z.object({
|
|
36
|
+
id: z.number().int(),
|
|
37
|
+
name: z.string(),
|
|
38
|
+
document: TipTapNode.nullable(),
|
|
39
|
+
entity_id: z.string().nullable(),
|
|
40
|
+
collection_id: z.number().int().nullable(),
|
|
41
|
+
collection_position: z.number().int().nullable().optional(),
|
|
42
|
+
creator_id: z.number().int(),
|
|
43
|
+
creator: DocumentCreator.nullable().optional(),
|
|
44
|
+
archived: z.boolean(),
|
|
45
|
+
can_write: z.boolean().optional(),
|
|
46
|
+
can_delete: z.boolean().optional(),
|
|
47
|
+
can_restore: z.boolean().optional(),
|
|
48
|
+
is_remote_synced: z.boolean().optional(),
|
|
49
|
+
created_at: z.string(),
|
|
50
|
+
updated_at: z.string()
|
|
51
|
+
}).loose();
|
|
52
|
+
const DocumentCompact = Document.pick({
|
|
53
|
+
id: true,
|
|
54
|
+
name: true,
|
|
55
|
+
collection_id: true,
|
|
56
|
+
archived: true,
|
|
57
|
+
creator_id: true,
|
|
58
|
+
can_write: true
|
|
59
|
+
}).strip();
|
|
60
|
+
const documentView = {
|
|
61
|
+
compactPick: DocumentCompact,
|
|
62
|
+
tableColumns: [
|
|
63
|
+
{
|
|
64
|
+
key: "id",
|
|
65
|
+
label: "ID"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: "name",
|
|
69
|
+
label: "Name"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: "collection_id",
|
|
73
|
+
label: "Collection"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: "creator_id",
|
|
77
|
+
label: "Creator"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: "archived",
|
|
81
|
+
label: "Archived"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
};
|
|
85
|
+
const DocumentCreateInput = z.object({
|
|
86
|
+
name: z.string().min(1),
|
|
87
|
+
document: TipTapNodeInput,
|
|
88
|
+
collection_id: z.number().int().positive().nullable().optional(),
|
|
89
|
+
collection_position: z.number().int().positive().nullable().optional()
|
|
90
|
+
}).loose();
|
|
91
|
+
const DocumentUpdateInput = z.object({
|
|
92
|
+
name: z.string().min(1).optional(),
|
|
93
|
+
document: TipTapNodeInput.optional(),
|
|
94
|
+
collection_id: z.number().int().positive().nullable().optional(),
|
|
95
|
+
collection_position: z.number().int().positive().nullable().optional(),
|
|
96
|
+
archived: z.boolean().nullable().optional()
|
|
97
|
+
}).loose();
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { Document, DocumentCompact, DocumentCreateInput, DocumentUpdateInput, documentView };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./input-xewHccej.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DCQg78AF.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -75,7 +75,7 @@ const connectionFlags = {
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region package.json
|
|
77
77
|
var name = "@metabase/cli";
|
|
78
|
-
var version = "0.1.
|
|
78
|
+
var version = "0.1.11";
|
|
79
79
|
var description = "Metabase CLI";
|
|
80
80
|
var license = "AGPL-3.0";
|
|
81
81
|
var repository = {
|
|
@@ -110,6 +110,7 @@ var scripts = {
|
|
|
110
110
|
"typecheck": "tsc --noEmit",
|
|
111
111
|
"lint": "oxlint",
|
|
112
112
|
"lint:fix": "oxlint --fix",
|
|
113
|
+
"lint:skills": "uvx skillsaw lint skill-data/ --strict",
|
|
113
114
|
"format": "oxfmt",
|
|
114
115
|
"format:check": "oxfmt --check",
|
|
115
116
|
"sync:representations": "bun run scripts/sync-representations.ts",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderSummary, warn } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import "./parse-id-
|
|
6
|
-
import "./poll-
|
|
7
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-
|
|
8
|
-
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
5
|
+
import "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import "./poll-hJrV0cPm.mjs";
|
|
7
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-DV419apK.mjs";
|
|
8
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-DK6X9Juu.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/export.ts
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/field/index.ts
|
|
4
|
+
var field_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "field",
|
|
7
|
+
description: "Manage Metabase fields"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
get: () => import("./get-B03gdAun.mjs").then((m) => m.default),
|
|
11
|
+
values: () => import("./values-DSul3siC.mjs").then((m) => m.default),
|
|
12
|
+
summary: () => import("./summary-DVrj7DSa.mjs").then((m) => m.default),
|
|
13
|
+
update: () => import("./update-fVqLtZ_t.mjs").then((m) => m.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { field_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import { FieldCompact, fieldView } from "./field-MGxpNQUH.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
7
|
import { TableQueryMetadata } from "./table-CkWja2UH.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/table/fields.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
6
|
import { DashboardDetail, dashboardView } from "./dashboard-FY5UzJ_Z.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/dashboard/get.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Segment, segmentView } from "./segment-
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { Segment, segmentView } from "./segment-d-708KKO.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/segment/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import { Field, fieldView } from "./field-MGxpNQUH.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/field/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseJsonOrPlain } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJsonOrPlain } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { formatScalar, renderSummary } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { SettingValue, settingValueView } from "./setting-
|
|
6
|
-
import { parseSettingKey, rethrowSettingError } from "./key-
|
|
5
|
+
import { SettingValue, settingValueView } from "./setting-CSJvi1-6.mjs";
|
|
6
|
+
import { parseSettingKey, rethrowSettingError } from "./key-y4TtxKwU.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/setting/get.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./field-MGxpNQUH.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
7
|
import { Table, TableQueryMetadata, tableView } from "./table-CkWja2UH.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderList, writeText } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-
|
|
5
|
+
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-CY_FmaPo.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/skills/get.ts
|
|
8
8
|
const SkillGetEnvelope = listEnvelopeSchema(SkillContent);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import { Collection, collectionView } from "./collection-BPTlcFw5.mjs";
|
|
6
6
|
import { parseCollectionRef } from "./parse-ref-BiETXmvm.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Snippet, snippetView } from "./snippet-
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { Snippet, snippetView } from "./snippet-BZvo05ua.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/snippet/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./field-MGxpNQUH.mjs";
|
|
6
6
|
import { Card, cardView } from "./card-DnIeMmUn.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
7
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/card/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Transform, transformView } from "./transform
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { Transform, transformView } from "./transform--dviwMA1.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { Document, documentView } from "./document-CcfiiV3b.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/document/get.ts
|
|
9
|
+
var get_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "get",
|
|
12
|
+
description: "Get a document by id"
|
|
13
|
+
},
|
|
14
|
+
capabilities: { minVersion: 58 },
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
id: {
|
|
20
|
+
type: "positional",
|
|
21
|
+
description: "Document id",
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
outputSchema: Document,
|
|
26
|
+
examples: ["mb document get 1", "mb document get 1 --full --json"],
|
|
27
|
+
async run({ args, ctx, getClient }) {
|
|
28
|
+
const id = parseId(args.id);
|
|
29
|
+
const client = await getClient();
|
|
30
|
+
const document = await client.requestParsed(Document, `/api/document/${id}`);
|
|
31
|
+
renderItem(document, documentView, ctx);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { get_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
5
|
import "./field-MGxpNQUH.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
7
7
|
import "./table-CkWja2UH.mjs";
|
|
8
8
|
import { Database, databaseView } from "./database-Dsv4QBs0.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { TransformJob, transformJobView } from "./transform-job-
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { TransformJob, transformJobView } from "./transform-job-n8W6tLqF.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-job/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Measure, measureView } from "./measure-
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { Measure, measureView } from "./measure-COGAoZpo.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/measure/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-C1bUYXn7.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-jWkzCPlL.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-7L9GVMd_.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { TransformRun, transformRunView } from "./transform
|
|
5
|
+
import { parseId } from "./parse-id-CWRJlQVK.mjs";
|
|
6
|
+
import { TransformRun, transformRunView } from "./transform--dviwMA1.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/get-run.ts
|
|
9
9
|
var get_run_default = defineMetabaseCommand({
|