@metabase/cli 0.1.13 → 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 +108 -0
- package/dist/add-collection-Bnuh0d4j.mjs +10 -0
- package/dist/{add-collection-BQsx2Q-S.mjs → add-collection-CXhrMjXU.mjs} +4 -4
- package/dist/{archive-FLrOqODN.mjs → archive-BUwiCFnd.mjs} +3 -3
- package/dist/{archive-BS4U2_gi.mjs → archive-Blc1dz8Z.mjs} +3 -3
- package/dist/{archive-D7qtYihp.mjs → archive-BxGSR7El.mjs} +3 -3
- package/dist/{archive-BP53zrzs.mjs → archive-CQiaCBSj.mjs} +3 -3
- package/dist/{archive-BrYMa87Z.mjs → archive-D-Ovk0-E.mjs} +3 -3
- package/dist/{archive-H8wBIt8q.mjs → archive-Drt-rWvU.mjs} +3 -3
- package/dist/{archive-Dt5zuiwu.mjs → archive-yTvDRQUZ.mjs} +3 -3
- package/dist/auth-Bkue4Psy.mjs +19 -0
- package/dist/{body-3vzTm8Jj.mjs → body-B9XTTDEu.mjs} +1 -1
- package/dist/{branches-Lr1cCUdg.mjs → branches-Ct3PK5U3.mjs} +4 -4
- package/dist/{cancel-Br3FHyDR.mjs → cancel-tST8Bh0w.mjs} +3 -3
- package/dist/{cancel-task-BXgeq3MH.mjs → cancel-task-BHnzRQKL.mjs} +4 -4
- package/dist/card-faWo9ZWU.mjs +20 -0
- package/dist/{cards-D-AkjCxr.mjs → cards-BySIFsLG.mjs} +3 -3
- package/dist/cli.mjs +24 -23
- package/dist/collection-DcRz7fmf.mjs +20 -0
- package/dist/{collection-namespace-BQ_ebqOP.mjs → collection-namespace-D8ohM5gD.mjs} +1 -1
- package/dist/{create-DHUhRzcV.mjs → create-4mAGsBd0.mjs} +3 -3
- package/dist/{create-Dx1SDXyQ.mjs → create-BDWthCYq.mjs} +3 -3
- package/dist/{create-DUdkitlQ.mjs → create-C43RQYgj.mjs} +4 -4
- package/dist/{create-BpAak62U.mjs → create-C7FPeJqF.mjs} +3 -3
- package/dist/{create-CDL9WHiR.mjs → create-D3cVDtxM.mjs} +3 -3
- package/dist/{create-C1xYECl-.mjs → create-DGxZmbxh.mjs} +4 -4
- package/dist/{create-CcZEV9xx.mjs → create-DnT1Sayk.mjs} +3 -3
- package/dist/{create-y4j2I1aH.mjs → create-DxDD6n1d.mjs} +5 -5
- package/dist/create-HZ-9GMLx.mjs +44 -0
- package/dist/{create-branch-BvZKizC4.mjs → create-branch-jPE7nW-E.mjs} +4 -4
- package/dist/{create-ux0yPpq1.mjs → create-fIDFkdox.mjs} +3 -3
- package/dist/{current-task-DaWn0DYt.mjs → current-task-rW54KJax.mjs} +4 -4
- package/dist/dashboard-pXAxJTTx.mjs +21 -0
- package/dist/db-CmHHj5eI.mjs +22 -0
- package/dist/{delete-CW3cEHlr.mjs → delete-BWO6uB4P.mjs} +4 -4
- package/dist/delete-CBwztF6P.mjs +50 -0
- package/dist/{delete-DFWjBpzl.mjs → delete-CeigtfRI.mjs} +4 -4
- package/dist/{delete-table-Wa0yRsnM.mjs → delete-table-BXzvDEPG.mjs} +4 -4
- package/dist/dependencies-D2N9eqm1.mjs +40 -0
- package/dist/{dirty-CKcGYIpv.mjs → dirty-DoEZRSGB.mjs} +4 -4
- package/dist/document-DQIhL75C.mjs +19 -0
- package/dist/{eid-m44hs7Ul.mjs → eid-1mROiwJr.mjs} +3 -3
- package/dist/{error-DR_i1hxJ.mjs → error-D5bZ5BUX.mjs} +1 -1
- package/dist/{export-8C4F9pYn.mjs → export-Bgv5B4_F.mjs} +6 -6
- package/dist/field-B-UcqFzm.mjs +18 -0
- package/dist/{fields-hXrRjf7e.mjs → fields-VA7tXHJz.mjs} +3 -3
- package/dist/{get-8r-_QuSr.mjs → get-B8etVxWD.mjs} +3 -3
- package/dist/{get-cjqlMKF5.mjs → get-BgIE_YEg.mjs} +4 -4
- package/dist/{get-xVPjvf7O.mjs → get-BtAD26gc.mjs} +3 -3
- package/dist/{get-CqU4xVSg.mjs → get-C-UeGtgW.mjs} +2 -2
- package/dist/{get-9MCrsgTf.mjs → get-CGkhSY5L.mjs} +3 -3
- package/dist/{get-BxgSKzca.mjs → get-CqnCaosn.mjs} +3 -3
- package/dist/{get-DWg3riaY.mjs → get-D9o38nK5.mjs} +2 -2
- package/dist/{get-BlNLGR-F.mjs → get-DAsaor0n.mjs} +2 -2
- package/dist/{get-D7WUNQYY.mjs → get-DLRBq8kR.mjs} +3 -3
- package/dist/{get-C7EKJGTP.mjs → get-DvQoDU2m.mjs} +4 -4
- package/dist/{get-BjCQctuS.mjs → get-RQFSmnpY.mjs} +3 -3
- package/dist/{get-3zFOkcl_.mjs → get-Wj88mnhn.mjs} +3 -3
- package/dist/{get-Cit5liJv.mjs → get-eUYDNALt.mjs} +3 -3
- package/dist/{get-CvLECgtm.mjs → get-qnGGGRTa.mjs} +3 -3
- package/dist/{get-run-CTDPEDcU.mjs → get-run-CATz-XMS.mjs} +4 -4
- package/dist/git-sync-CwOvcUI2.mjs +28 -0
- package/dist/{has-remote-changes-DYo4PQfC.mjs → has-remote-changes-B6YEMC90.mjs} +4 -4
- package/dist/{import-Cwd-_wYv.mjs → import-Bl2Wj9Xf.mjs} +6 -6
- package/dist/{is-dirty-HynZex-f.mjs → is-dirty-D9MoFj0T.mjs} +3 -3
- package/dist/is-dirty-MT0BT4CS.mjs +9 -0
- package/dist/{items-D4pSBGxR.mjs → items-LjtICjvX.mjs} +3 -3
- package/dist/{list-Ctze3nfU.mjs → list-B5Q7E2Km.mjs} +3 -3
- package/dist/{list-ET066OdN.mjs → list-Bjp9nd0o.mjs} +2 -2
- package/dist/{list-CI1WQ8U3.mjs → list-C410Ptw_.mjs} +2 -2
- package/dist/{list-F0BQNbaZ.mjs → list-C6U3Ftg8.mjs} +3 -3
- package/dist/{list-DBjOFesD.mjs → list-CfWblVHJ.mjs} +2 -2
- package/dist/{list-XgdM17ix.mjs → list-ChK06rJh.mjs} +2 -2
- package/dist/{list-DMZumpNv.mjs → list-CoRX8Ruc.mjs} +2 -2
- package/dist/{list-D3BBrpoQ.mjs → list-Cx8JxS2C.mjs} +2 -2
- package/dist/{list-_xdr1WKh.mjs → list-DMik04Dh.mjs} +3 -3
- package/dist/list-DaJk60dd.mjs +32 -0
- package/dist/{list-D7o0DOZe.mjs → list-DcjenlTM.mjs} +2 -2
- package/dist/{list-Bqy3rN6k.mjs → list-DfoNv0gb.mjs} +2 -2
- package/dist/{list-D-Ms9fhd.mjs → list-Dq86BAMG.mjs} +2 -2
- package/dist/{list-De2qX1w8.mjs → list-DtrfE0sF.mjs} +3 -3
- package/dist/{list-B2QX8BZ3.mjs → list-cnqPlJgC.mjs} +2 -2
- package/dist/{login-BHDdLJzw.mjs → login-Cn2UtFUt.mjs} +3 -3
- package/dist/{logout-ClizU0OL.mjs → logout-_HXgEmqA.mjs} +2 -2
- package/dist/measure-BIAoqgcS.mjs +19 -0
- package/dist/{metadata-D23RdbEZ.mjs → metadata-8yqT8OZI.mjs} +3 -3
- package/dist/{metadata-a_N6Sx30.mjs → metadata-DHODjg1d.mjs} +3 -3
- package/dist/{parse-id-B1BlAunl.mjs → parse-id-DNPeV0Iu.mjs} +1 -1
- package/dist/{path-FSfPscAQ.mjs → path-BflajM08.mjs} +2 -2
- package/dist/{poll-Dl5Zv4Ed.mjs → poll-CYkX02Bm.mjs} +1 -1
- package/dist/{poll-task-BoRK94WQ.mjs → poll-task-oXpl3wzp.mjs} +2 -2
- package/dist/{preflight-CVlo39xa.mjs → preflight-BdJr2amA.mjs} +1 -1
- package/dist/publish-CGUkIqSm.mjs +70 -0
- package/dist/{query-yZ9HeaGp.mjs → query-CxTjguwp.mjs} +3 -3
- package/dist/{query-CSvpJssD.mjs → query-DWQaN7hO.mjs} +3 -3
- package/dist/{remove-collection-CV7ssevw.mjs → remove-collection-BwcFi8Fs.mjs} +6 -6
- package/dist/{rescan-values-CMeOv6yx.mjs → rescan-values-B9Qtsd32.mjs} +3 -3
- package/dist/{run-CIJOYXor.mjs → run-3eFtdI2Z.mjs} +6 -6
- package/dist/run-C-vftXCu.mjs +59 -0
- package/dist/{runs--CzbmfPg.mjs → runs-CpRTkn1W.mjs} +4 -4
- package/dist/{runtime-DJTGfiKO.mjs → runtime-C1QgWHM7.mjs} +1 -1
- package/dist/{schema-tables-BII9pHR8.mjs → schema-tables-rdeupgsu.mjs} +3 -3
- package/dist/{schemas-BzxVz71I.mjs → schemas-Cr7RjYqV.mjs} +3 -3
- package/dist/{search-CjJZdaM0.mjs → search-D7Yq2MDu.mjs} +3 -3
- package/dist/segment-BN8sFunv.mjs +19 -0
- package/dist/selectors-DPc2ZDdd.mjs +37 -0
- package/dist/{set-Ds_brNWu.mjs → set-X2N6x7pe.mjs} +3 -3
- package/dist/set-active-BoBa3pOw.mjs +56 -0
- package/dist/{setting-YDJRWd1m.mjs → setting-zZjcOPyE.mjs} +3 -3
- package/dist/{setup-DJb-NgSM.mjs → setup-C47WUieB.mjs} +3 -3
- package/dist/{skills-Dn-kn8Wj.mjs → skills-Po0YPVU5.mjs} +3 -3
- package/dist/snippet-DK0ZA8m5.mjs +19 -0
- package/dist/{stash-DGujowmx.mjs → stash-BV4sEp73.mjs} +6 -6
- package/dist/{status-Cx0TIn1I.mjs → status-BKF9rRnk.mjs} +5 -5
- package/dist/{status-3-Tl07gu.mjs → status-Cf8c0NON.mjs} +2 -2
- package/dist/{summary-CT-xFvnX.mjs → summary-RgLcBcEh.mjs} +3 -3
- package/dist/{sync-schema-BTF7O3FM.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/transform-tag-DB46AhAj.mjs +36 -0
- package/dist/transforms-BOQ9CG0l.mjs +40 -0
- package/dist/{tree-CLUxXw-Z.mjs → tree-CF8mscd9.mjs} +2 -2
- package/dist/unpublish-CmaRNjK3.mjs +76 -0
- package/dist/{update-DD5Q37bz.mjs → update-B59h7KmS.mjs} +5 -5
- package/dist/{update-Z_LMzsiz.mjs → update-BXZBEeUp.mjs} +4 -4
- package/dist/{update-I0t_6Mni.mjs → update-BuypOaXq.mjs} +4 -4
- package/dist/{update-BeH_S7h9.mjs → update-CgQOSuZt.mjs} +4 -4
- package/dist/{update-BfNmqvuN.mjs → update-DERsb0eO.mjs} +5 -5
- package/dist/{update-tQvEYuzD.mjs → update-DQPg0_-d.mjs} +4 -4
- package/dist/{update-6IuvkFCk.mjs → update-DR4WkAET.mjs} +4 -4
- package/dist/{update-DpCv5Mdo.mjs → update-DoQpy9SA.mjs} +4 -4
- package/dist/update-Kz4kyqY_.mjs +51 -0
- package/dist/{update-dashcard-Bl3wbB8-.mjs → update-dashcard-BJVeSGvO.mjs} +4 -4
- package/dist/{update-C_Ui5qPU.mjs → update-nwXgVNQa.mjs} +6 -6
- package/dist/{update-DdqzxPIr.mjs → update-rhfPHALN.mjs} +4 -4
- package/dist/{upgrade-r2ZlfstE.mjs → upgrade-CNrkJF6s.mjs} +2 -2
- package/dist/{uuid-BduDonqb.mjs → uuid-Dpl3ALKq.mjs} +2 -2
- package/dist/{values-DuNE6Jxc.mjs → values-DMYpkoEH.mjs} +3 -3
- package/dist/{verify-D_yq68-R.mjs → verify-By9ZYzx4.mjs} +1 -1
- package/dist/{wait-CoDzO37B.mjs → wait-BzIAj8lJ.mjs} +5 -5
- package/dist/{wait-flags-BxUfF5zy.mjs → wait-flags-DQrxnlwv.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +2 -1
- package/skill-data/transform/SKILL.md +17 -3
- package/dist/add-collection-BiBKEHwz.mjs +0 -10
- package/dist/auth-DWA7DSo9.mjs +0 -19
- package/dist/card-DQV8WOIa.mjs +0 -20
- package/dist/collection-DIUWkVFY.mjs +0 -20
- package/dist/dashboard-CohHWhkV.mjs +0 -21
- package/dist/db-BD8JZUDw.mjs +0 -22
- package/dist/document-CRuag6F5.mjs +0 -19
- package/dist/field-CuabjsR7.mjs +0 -18
- package/dist/git-sync-CKsGGVOm.mjs +0 -28
- package/dist/is-dirty-Mkgi21bq.mjs +0 -9
- package/dist/measure-SmyQt9Lg.mjs +0 -19
- package/dist/segment-dkO4Ualw.mjs +0 -19
- package/dist/snippet-DqTiC73e.mjs +0 -19
- package/dist/table-DNGPtV4P.mjs +0 -19
- package/dist/transform-DEbvouxo.mjs +0 -24
- package/dist/transform-job-Du8npb7F.mjs +0 -19
- /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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/segment/index.ts
|
|
4
|
+
var segment_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "segment",
|
|
7
|
+
description: "Manage Metabase segments"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DcjenlTM.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CqnCaosn.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-fIDFkdox.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DR4WkAET.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-Blc1dz8Z.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { segment_default as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { parseCsv } from "./runtime-C1QgWHM7.mjs";
|
|
3
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/commands/table/selectors.ts
|
|
6
|
+
const tableSelectorFlags = {
|
|
7
|
+
"table-ids": {
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "Comma-separated table ids"
|
|
10
|
+
},
|
|
11
|
+
"db-ids": {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "Comma-separated database ids"
|
|
14
|
+
},
|
|
15
|
+
schemas: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "Comma-separated schema ids, each \"<db-id>:<schema>\" (e.g. 1:public)"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
function parseIdList(value, name) {
|
|
21
|
+
if (value === void 0) return [];
|
|
22
|
+
return parseCsv(value).map((part) => parseId(part, name));
|
|
23
|
+
}
|
|
24
|
+
function parseTableSelectors(args) {
|
|
25
|
+
const tableIds = parseIdList(args["table-ids"], "table id");
|
|
26
|
+
const databaseIds = parseIdList(args["db-ids"], "database id");
|
|
27
|
+
const schemaNames = args.schemas === void 0 ? [] : parseCsv(args.schemas);
|
|
28
|
+
const selectors = {};
|
|
29
|
+
if (tableIds.length > 0) selectors.table_ids = tableIds;
|
|
30
|
+
if (databaseIds.length > 0) selectors.database_ids = databaseIds;
|
|
31
|
+
if (schemaNames.length > 0) selectors.schema_ids = schemaNames;
|
|
32
|
+
if (Object.keys(selectors).length === 0) throw new ConfigError("provide at least one selector: --table-ids, --db-ids, or --schemas");
|
|
33
|
+
return selectors;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { parseTableSelectors, tableSelectorFlags };
|
|
@@ -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 "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
7
7
|
import { SettingValue, settingValueView } from "./setting-i0pugNHl.mjs";
|
|
8
8
|
import { parseSettingKey, rethrowSettingError } from "./key-C8q5oIr5.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { parseEnumFlag } from "./parse-enum-BatHQ-Gs.mjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/transform-job/set-active.ts
|
|
9
|
+
const ActiveWord = z.enum(["true", "false"]);
|
|
10
|
+
const TransformJobActiveResult = z.object({
|
|
11
|
+
updated: z.number().int(),
|
|
12
|
+
failed: z.number().int()
|
|
13
|
+
});
|
|
14
|
+
const transformJobActiveView = {
|
|
15
|
+
compactPick: TransformJobActiveResult,
|
|
16
|
+
tableColumns: [{
|
|
17
|
+
key: "updated",
|
|
18
|
+
label: "Updated"
|
|
19
|
+
}, {
|
|
20
|
+
key: "failed",
|
|
21
|
+
label: "Failed"
|
|
22
|
+
}]
|
|
23
|
+
};
|
|
24
|
+
var set_active_default = defineMetabaseCommand({
|
|
25
|
+
meta: {
|
|
26
|
+
name: "set-active",
|
|
27
|
+
description: "Activate or deactivate every transform job"
|
|
28
|
+
},
|
|
29
|
+
details: "Flips the active flag on every transform job at once. Inactive jobs do not run on schedule; manual runs ignore the flag. Requires admin.",
|
|
30
|
+
capabilities: { minVersion: 61 },
|
|
31
|
+
args: {
|
|
32
|
+
...outputFlags,
|
|
33
|
+
...profileFlag,
|
|
34
|
+
...connectionFlags,
|
|
35
|
+
active: {
|
|
36
|
+
type: "positional",
|
|
37
|
+
description: "true to activate all jobs, false to deactivate",
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
outputSchema: TransformJobActiveResult,
|
|
42
|
+
examples: ["mb transform-job set-active false", "mb transform-job set-active true --json"],
|
|
43
|
+
async run({ args, ctx, getClient }) {
|
|
44
|
+
const active = parseEnumFlag(args.active, ActiveWord, "active") === "true";
|
|
45
|
+
const client = await getClient();
|
|
46
|
+
const result = await client.requestParsed(TransformJobActiveResult, "/api/transform-job/active", {
|
|
47
|
+
method: "PUT",
|
|
48
|
+
body: { active }
|
|
49
|
+
});
|
|
50
|
+
const label = active ? "Activated" : "Deactivated";
|
|
51
|
+
renderSummary(result, transformJobActiveView, `${label} all transform jobs (${result.updated} updated, ${result.failed} failed).`, ctx);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
export { set_active_default as default };
|
|
@@ -7,9 +7,9 @@ var setting_default = defineCommand({
|
|
|
7
7
|
description: "Inspect and update Metabase settings"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
list: () => import("./list-
|
|
11
|
-
get: () => import("./get-
|
|
12
|
-
set: () => import("./set-
|
|
10
|
+
list: () => import("./list-CoRX8Ruc.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-D9o38nK5.mjs").then((m) => m.default),
|
|
12
|
+
set: () => import("./set-X2N6x7pe.mjs").then((m) => m.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -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 { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -8,9 +8,9 @@ var skills_default = defineCommand({
|
|
|
8
8
|
},
|
|
9
9
|
default: "list",
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
path: () => import("./path-
|
|
11
|
+
list: () => import("./list-Cx8JxS2C.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-C-UeGtgW.mjs").then((m) => m.default),
|
|
13
|
+
path: () => import("./path-BflajM08.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/snippet/index.ts
|
|
4
|
+
var snippet_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "snippet",
|
|
7
|
+
description: "Manage Metabase native query snippets"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-cnqPlJgC.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-B8etVxWD.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BDWthCYq.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BuypOaXq.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-D-Ovk0-E.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
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-DNPeV0Iu.mjs";
|
|
6
|
+
import "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-DQrxnlwv.mjs";
|
|
8
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-oXpl3wzp.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/stash.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 "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-
|
|
7
|
-
import { IsDirtyResult } from "./is-dirty-
|
|
5
|
+
import "./poll-CYkX02Bm.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-oXpl3wzp.mjs";
|
|
7
|
+
import { IsDirtyResult } from "./is-dirty-D9MoFj0T.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/status.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, displayUrl, profileAuthMethod, readProfileRecord, resolveProfileName } from "./runtime-
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, displayUrl, profileAuthMethod, readProfileRecord, resolveProfileName } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { renderAuthMethod, renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-CkuFkWlQ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -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 };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/domain/transform-tag.ts
|
|
4
|
+
const TransformTag = z.object({
|
|
5
|
+
id: z.number().int(),
|
|
6
|
+
name: z.string(),
|
|
7
|
+
entity_id: z.string().nullable(),
|
|
8
|
+
built_in_type: z.string().nullable()
|
|
9
|
+
}).loose();
|
|
10
|
+
const TransformTagCompact = TransformTag.pick({
|
|
11
|
+
id: true,
|
|
12
|
+
name: true,
|
|
13
|
+
built_in_type: true
|
|
14
|
+
}).strip();
|
|
15
|
+
const transformTagView = {
|
|
16
|
+
compactPick: TransformTagCompact,
|
|
17
|
+
tableColumns: [
|
|
18
|
+
{
|
|
19
|
+
key: "id",
|
|
20
|
+
label: "ID"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "name",
|
|
24
|
+
label: "Name"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "built_in_type",
|
|
28
|
+
label: "Built-in"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
const TransformTagCreateInput = z.object({ name: z.string().min(1) }).loose();
|
|
33
|
+
const TransformTagUpdateInput = TransformTagCreateInput;
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { TransformTag, TransformTagCompact, TransformTagCreateInput, TransformTagUpdateInput, transformTagView };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { Transform, TransformCompact, transformView } from "./transform-n376akp8.mjs";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
//#region src/commands/transform-job/transforms.ts
|
|
10
|
+
const TransformApiList = z.array(Transform);
|
|
11
|
+
const TransformJobTransformsEnvelope = listEnvelopeSchema(TransformCompact);
|
|
12
|
+
var transforms_default = defineMetabaseCommand({
|
|
13
|
+
meta: {
|
|
14
|
+
name: "transforms",
|
|
15
|
+
description: "List the transforms a job will run"
|
|
16
|
+
},
|
|
17
|
+
details: "Resolves the transforms a job would execute, matched by the job's tags. The positional id is a JOB id, not a transform id.",
|
|
18
|
+
capabilities: { minVersion: 59 },
|
|
19
|
+
args: {
|
|
20
|
+
...outputFlags,
|
|
21
|
+
...profileFlag,
|
|
22
|
+
...connectionFlags,
|
|
23
|
+
id: {
|
|
24
|
+
type: "positional",
|
|
25
|
+
description: "Transform job id",
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
outputSchema: TransformJobTransformsEnvelope,
|
|
30
|
+
examples: ["mb transform-job transforms 1", "mb transform-job transforms 1 --json"],
|
|
31
|
+
async run({ args, ctx, getClient }) {
|
|
32
|
+
const id = parseId(args.id);
|
|
33
|
+
const client = await getClient();
|
|
34
|
+
const items = await client.requestParsed(TransformApiList, `/api/transform-job/${id}/transforms`);
|
|
35
|
+
renderList(wrapList(items), transformView, ctx);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { transforms_default as default };
|
|
@@ -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
|
|