@metabase/cli 0.1.12 → 0.1.14
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 +109 -22
- package/dist/add-collection-Cdhj6DJb.mjs +10 -0
- package/dist/{add-collection-DEME4IOy.mjs → add-collection-Cubho2HN.mjs} +5 -5
- package/dist/{archive-CMeTr8jv.mjs → archive-BBboJ-z3.mjs} +6 -6
- package/dist/{archive-DUlrUlok.mjs → archive-BrzOTxSA.mjs} +6 -6
- package/dist/{archive-BNioNJtG.mjs → archive-C8G0KIPI.mjs} +7 -7
- package/dist/{archive-BtDvBsr8.mjs → archive-D6eMYNI5.mjs} +6 -6
- package/dist/{archive-BFk-oupo.mjs → archive-DCIwtfv0.mjs} +6 -6
- package/dist/{archive-MTTQv3wR.mjs → archive-DTN6Anme.mjs} +7 -7
- package/dist/{archive-Dc-FwNZm.mjs → archive-F2g-bAXf.mjs} +7 -7
- package/dist/auth-D4cXDeiH.mjs +19 -0
- package/dist/{body-89w3r7In.mjs → body-CXpIB6hY.mjs} +3 -3
- package/dist/{branches-DuVKH8Ye.mjs → branches-r9SVJIV5.mjs} +6 -6
- package/dist/{cancel-BEMQKVuR.mjs → cancel-BbLZsVYQ.mjs} +5 -5
- package/dist/{cancel-task-D2mSPFXO.mjs → cancel-task-CojB-8XX.mjs} +6 -6
- package/dist/{capabilities-7L9GVMd_.mjs → capabilities-BX1rnVuH.mjs} +2 -14
- package/dist/card-BMN-mcxn.mjs +20 -0
- package/dist/{card-DnIeMmUn.mjs → card-wCPcuKSi.mjs} +1 -1
- package/dist/{cards-L9jksUMD.mjs → cards-e9Wgnbnq.mjs} +6 -6
- package/dist/cli.mjs +26 -25
- package/dist/collection-DZnA3zXr.mjs +20 -0
- package/dist/{collection-namespace-w26SavJH.mjs → collection-namespace-DmKMqLr0.mjs} +2 -2
- package/dist/{command-augment-BH9qgQ5u.mjs → command-augment-CAur0XOQ.mjs} +13 -2
- package/dist/{create-Cxg_h8Kf.mjs → create-Bbe2EM9f.mjs} +10 -10
- package/dist/{create-8hMjPz7j.mjs → create-Bu9edPBn.mjs} +8 -8
- package/dist/create-Bz4hf7W0.mjs +44 -0
- package/dist/{create-Bu9Jayck.mjs → create-BzKW27Hh.mjs} +12 -12
- package/dist/{create-Dew3rKsR.mjs → create-C4G_z8qO.mjs} +8 -8
- package/dist/{create-DoeqRVmx.mjs → create-C5-JhEUc.mjs} +11 -11
- package/dist/{create-zEq4ZJAT.mjs → create-Cq-ay6cJ.mjs} +8 -8
- package/dist/{create-D6QqOX6u.mjs → create-DFMpgUvH.mjs} +9 -9
- package/dist/{create-C3b3MoIN.mjs → create-UzeYyGq6.mjs} +10 -10
- package/dist/{create-branch-C5P2y8U5.mjs → create-branch--GJ_RxIN.mjs} +6 -6
- package/dist/{create-DCYc032c.mjs → create-onFRzFwS.mjs} +11 -11
- package/dist/{current-task-uD4QO5bM.mjs → current-task-C0mMBzdB.mjs} +6 -6
- package/dist/dashboard-PB_c3Irl.mjs +21 -0
- package/dist/{database-Dsv4QBs0.mjs → database-BmsxuRmO.mjs} +1 -1
- package/dist/db-q0lYg3k8.mjs +22 -0
- package/dist/{delete-DGaNAFdQ.mjs → delete-CGw1hwGZ.mjs} +7 -7
- package/dist/{delete-Bftif2R3.mjs → delete-CxTPHzom.mjs} +7 -7
- package/dist/delete-Dbzs51x3.mjs +50 -0
- package/dist/{delete-runtime-CjFc69tS.mjs → delete-runtime-BhZAAvjc.mjs} +3 -3
- package/dist/{delete-table-C0qxP6FE.mjs → delete-table-B6obSpLU.mjs} +7 -7
- package/dist/dependencies-DfkbJqzQ.mjs +40 -0
- package/dist/{dirty-CZZLpWt1.mjs → dirty-BqL_DE6p.mjs} +6 -6
- package/dist/document-4TwzGwl3.mjs +19 -0
- package/dist/{eid-C8xTmR8e.mjs → eid-C31VGHAM.mjs} +7 -7
- package/dist/{error-BGH4gxGN.mjs → error-BOi_ux9O.mjs} +40 -5
- package/dist/{export-DWdjnBKo.mjs → export--_0e40xU.mjs} +8 -8
- package/dist/field-Bi_O_Sdg.mjs +18 -0
- package/dist/{fields-Cq08PQec.mjs → fields-BRiL6KEF.mjs} +7 -7
- package/dist/{get-Bbij6RjC.mjs → get--bNbxDkk.mjs} +6 -6
- package/dist/{get-DHPN1716.mjs → get-B-phl324.mjs} +7 -7
- package/dist/{get-DtKv-gl3.mjs → get-B2-RLrYJ.mjs} +6 -6
- package/dist/{get-ug26gcOI.mjs → get-B_TdMKu-.mjs} +8 -8
- package/dist/{get-f5ENeUNw.mjs → get-C-o2-vnf.mjs} +6 -6
- package/dist/{get-BaKKF50e.mjs → get-C6njgZmF.mjs} +6 -6
- package/dist/{get-B_BJ10pV.mjs → get-CCyfx_AY.mjs} +6 -6
- package/dist/{get-Cr8oz_jr.mjs → get-CcGU3YaY.mjs} +6 -6
- package/dist/{get-8nAjRL2H.mjs → get-Cs7a7s2Z.mjs} +7 -7
- package/dist/{get-B2vGW7Aw.mjs → get-DGZw_U0s.mjs} +6 -6
- package/dist/{get-DzLAmSKd.mjs → get-DMeF2FLQ.mjs} +5 -5
- package/dist/{get-7IhxPyE_.mjs → get-DQOvqH9P.mjs} +6 -6
- package/dist/{get-Bcr_5fAb.mjs → get-LJam7ZQ-.mjs} +6 -6
- package/dist/{get-Rqz7UHv1.mjs → get-ev4Zw3Gj.mjs} +6 -6
- package/dist/{get-run-DhbHXaZE.mjs → get-run-Cp7ATZPQ.mjs} +6 -6
- package/dist/git-sync-BOZdFF09.mjs +28 -0
- package/dist/{has-remote-changes-CTLh3WjZ.mjs → has-remote-changes-Bw_Xp9Ii.mjs} +6 -6
- package/dist/{import-XakIQfRp.mjs → import-BmoC0ECq.mjs} +8 -8
- package/dist/{input-BZwm4yby.mjs → input-BXWgdKiS.mjs} +1 -1
- package/dist/is-dirty-B6usK-aU.mjs +9 -0
- package/dist/{is-dirty-DkOOyjsZ.mjs → is-dirty-BDmXm34E.mjs} +4 -4
- package/dist/{items-DC985V8K.mjs → items-BI-O48Sc.mjs} +8 -8
- package/dist/{key-y4TtxKwU.mjs → key-C8q5oIr5.mjs} +1 -1
- package/dist/{list-DfPwBQrZ.mjs → list-B7g2c9K7.mjs} +5 -5
- package/dist/{list-CEbMS6g3.mjs → list-BE3wVc-a.mjs} +5 -5
- package/dist/{list-CtAFlkLe.mjs → list-BcSjOiK1.mjs} +5 -5
- package/dist/{list-CIEI8XK_.mjs → list-BkEFHJe8.mjs} +5 -5
- package/dist/{list-STlBcPs8.mjs → list-CNeaMSjy.mjs} +5 -5
- package/dist/{list-BtNboYpZ.mjs → list-CRUjh592.mjs} +25 -18
- package/dist/{list-PYNFVJGM.mjs → list-CTfCgMTk.mjs} +7 -7
- package/dist/{list-OGkVAG6b.mjs → list-Cju3N2kB.mjs} +6 -6
- package/dist/{list-Df4MhR2A.mjs → list-Cqvt6gpK.mjs} +7 -7
- package/dist/{list-CyIgwqFB.mjs → list-Cz_2UyGV.mjs} +6 -6
- package/dist/{list-B83-hnq5.mjs → list-DIFjjwBV.mjs} +5 -5
- package/dist/list-DM-Oa-oB.mjs +32 -0
- package/dist/{list-Cnb9mQdd.mjs → list-DhWVjE6U.mjs} +7 -7
- package/dist/{list-xfmTxHNu.mjs → list-JCMQ06wX.mjs} +5 -5
- package/dist/{list-gy64AAWO.mjs → list-RC1HQ2dg.mjs} +5 -5
- package/dist/login-BF6LkxPI.mjs +453 -0
- package/dist/{logout-BUgUTFol.mjs → logout-Cg8Z_XD_.mjs} +15 -6
- package/dist/{manifest-BPHqF5LY.mjs → manifest-DYeLri80.mjs} +2 -2
- package/dist/measure-BRzkMY5y.mjs +19 -0
- package/dist/{metadata-B1EmV1l5.mjs → metadata-B15u_YYT.mjs} +7 -7
- package/dist/{metadata-Dwkcsa1c.mjs → metadata-CmvvOpKI.mjs} +8 -8
- package/dist/{parse-enum-Dr7ACrTR.mjs → parse-enum-BatHQ-Gs.mjs} +1 -1
- package/dist/{parse-id-sKNP6yu5.mjs → parse-id-DMs04KM3.mjs} +1 -1
- package/dist/{parse-ref-BiETXmvm.mjs → parse-ref-CZr1bYIl.mjs} +1 -1
- package/dist/{path-BZJR7YLR.mjs → path-YsfpMb_h.mjs} +5 -5
- package/dist/{poll-Cyw-dQi4.mjs → poll-13tgWrN_.mjs} +2 -2
- package/dist/{poll-task-BG0oVnfZ.mjs → poll-task-BuAHsDEK.mjs} +2 -2
- package/dist/{preflight-BjR63JnX.mjs → preflight-wCSgVqbX.mjs} +4 -4
- package/dist/process-DsGf7Mg5.mjs +73 -0
- package/dist/{prompt-u4WhE4T5.mjs → prompt-Bc_bHSD0.mjs} +13 -3
- package/dist/{query-Dk55Wp2p.mjs → query-DnYdI0fl.mjs} +12 -12
- package/dist/{query-result-B4kTRid7.mjs → query-result-L5_NrwQR.mjs} +1 -1
- package/dist/{query-C2xqnz24.mjs → query-x6g6unDt.mjs} +8 -8
- package/dist/{remove-collection-DbVNWGyb.mjs → remove-collection-CLTqx7ys.mjs} +8 -8
- package/dist/{render-BQHJhSP1.mjs → render-CkuFkWlQ.mjs} +6 -1
- package/dist/{rescan-values-CuLQ9UHP.mjs → rescan-values-C7b78yA2.mjs} +8 -8
- package/dist/{run-PDN33QjN.mjs → run-CsYI4Sqv.mjs} +8 -8
- package/dist/run-DR5O1_EU.mjs +59 -0
- package/dist/{runs-B9T-7lei.mjs → runs-DWbtqOyw.mjs} +7 -7
- package/dist/{runtime-DgHh4T6t.mjs → runtime-7JTC-usO.mjs} +591 -123
- package/dist/{schema-tables-DjmNwrlT.mjs → schema-tables-Cte09dhE.mjs} +7 -7
- package/dist/{schemas-CWL8gv1C.mjs → schemas-DAmSPGiC.mjs} +5 -5
- package/dist/{search-D7JzmvfR.mjs → search-Di-SFcZm.mjs} +5 -5
- package/dist/segment-DiHHHk2a.mjs +19 -0
- package/dist/{set-C0dCLnUA.mjs → set-C1rIETEg.mjs} +8 -8
- package/dist/set-active-CJ1VaxEC.mjs +56 -0
- package/dist/{setting-Licy7ZSs.mjs → setting-6WqN3L3F.mjs} +3 -3
- package/dist/{setup-BL4fqxoU.mjs → setup-DbXhTopr.mjs} +7 -7
- package/dist/{skills-CY_FmaPo.mjs → skills-CJ8g8fhQ.mjs} +1 -1
- package/dist/{skills-Cn8FMCxG.mjs → skills-CfWrH-1L.mjs} +3 -3
- package/dist/snippet-B-anQo6y.mjs +19 -0
- package/dist/{stash-SGod4B8-.mjs → stash-BCNSzoYQ.mjs} +8 -8
- package/dist/{status-CvUuZVvC.mjs → status-BocNdqNq.mjs} +14 -6
- package/dist/{status-BCb5iCsQ.mjs → status-CG3Lbl5_.mjs} +7 -7
- package/dist/{summary-qaTPTLWs.mjs → summary-TApK2JbW.mjs} +6 -6
- package/dist/{sync-schema-CjjAYTbO.mjs → sync-schema-COA-OlO3.mjs} +10 -10
- package/dist/table-Bnj8IBKx.mjs +19 -0
- package/dist/{table-CkWja2UH.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-QCDItglq.mjs +25 -0
- package/dist/transform-job-Dawm4Lag.mjs +22 -0
- package/dist/transform-tag-BLAbrywB.mjs +36 -0
- package/dist/transform-tag-CN-bTSne.mjs +18 -0
- package/dist/transforms-Bo4u0YqS.mjs +40 -0
- package/dist/{tree-C0MFcweC.mjs → tree-CGh-ZG4n.mjs} +5 -5
- package/dist/{update-BqsGGrzx.mjs → update-Bob7lvnr.mjs} +13 -13
- package/dist/{update-BUoWwmQV.mjs → update-Br_cd74H.mjs} +9 -9
- package/dist/{update-vk_M0eOR.mjs → update-BuJjTYAx.mjs} +11 -11
- package/dist/{update-CJASCsG4.mjs → update-CCIkTuxz.mjs} +9 -9
- package/dist/{update-Dty6LvU2.mjs → update-Co4WLVkK.mjs} +12 -12
- package/dist/update-DCvTlxUK.mjs +51 -0
- package/dist/{update-qoP7hZTg.mjs → update-DLQygCXg.mjs} +10 -10
- package/dist/{update-BTzsE8GU.mjs → update-DtUhmJar.mjs} +9 -9
- package/dist/{update-DCR0wFNl.mjs → update-ETzjZl17.mjs} +11 -11
- package/dist/{update-BImaz9vj.mjs → update-ZPsCSWR6.mjs} +12 -12
- package/dist/{update-dashcard-BkJaVVvf.mjs → update-dashcard-Du-h_8oY.mjs} +9 -9
- package/dist/{update-CHUUY-IB.mjs → update-ysNL-mE-.mjs} +9 -9
- package/dist/{upgrade-TdaiAYbH.mjs → upgrade-CavKMkQ4.mjs} +6 -34
- package/dist/{uuid-BeUz8VpP.mjs → uuid-BL33x41p.mjs} +4 -4
- package/dist/{validate-B62TRDGV.mjs → validate-VawhJ5Sc.mjs} +2 -2
- package/dist/{validate-query-BpiN1CFu.mjs → validate-query-CSV-TTnd.mjs} +3 -3
- package/dist/{values-DR-3HcK6.mjs → values-DVu97Fcd.mjs} +6 -6
- package/dist/{verify-D2uBlvmt.mjs → verify-BLUei79N.mjs} +5 -5
- package/dist/{wait-FAnqO-LT.mjs → wait-C0P8Qt37.mjs} +7 -7
- package/dist/{wait-flags-B5BI_xob.mjs → wait-flags-Z_JC7x4L.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +1 -1
- package/skill-data/transform/SKILL.md +17 -3
- package/dist/add-collection-BPtBMh8Y.mjs +0 -10
- package/dist/auth-CjFnuPe9.mjs +0 -19
- package/dist/card-DoDpwR4t.mjs +0 -20
- package/dist/collection-CF-1RIPY.mjs +0 -20
- package/dist/dashboard-C5zTX345.mjs +0 -21
- package/dist/db-4y5Z1CQw.mjs +0 -22
- package/dist/document-97l9Non_.mjs +0 -19
- package/dist/field-BwUTrelF.mjs +0 -18
- package/dist/git-sync-JIMEYW-E.mjs +0 -28
- package/dist/is-dirty-4gf8ujws.mjs +0 -9
- package/dist/login-C0VFlX8y.mjs +0 -180
- package/dist/measure-BmcmxRQ3.mjs +0 -19
- package/dist/segment-DrZNuxsM.mjs +0 -19
- package/dist/snippet-C5_4nPGj.mjs +0 -19
- package/dist/table-DK1B8Hzq.mjs +0 -19
- package/dist/transform-Dh5746zH.mjs +0 -24
- package/dist/transform-job-D0nRGPYN.mjs +0 -19
- /package/dist/{body-flags-D78h_-Ua.mjs → body-flags-D7q87Btw.mjs} +0 -0
- /package/dist/{collection-BPTlcFw5.mjs → collection-Deiziuu2.mjs} +0 -0
- /package/dist/{dashboard-FY5UzJ_Z.mjs → dashboard-B4bn3z6t.mjs} +0 -0
- /package/dist/{document-CcfiiV3b.mjs → document-qfwR0r63.mjs} +0 -0
- /package/dist/{field-MGxpNQUH.mjs → field-E0IBy4Uw.mjs} +0 -0
- /package/dist/{measure-COGAoZpo.mjs → measure-JJAdFoqK.mjs} +0 -0
- /package/dist/{paginate-Dfm9eO9A.mjs → paginate-BexjkjbY.mjs} +0 -0
- /package/dist/{revision-message-flag-Bo-Kvv6F.mjs → revision-message-flag-C7zBeWEt.mjs} +0 -0
- /package/dist/{segment-d-708KKO.mjs → segment-B9SEv9V_.mjs} +0 -0
- /package/dist/{setting-CSJvi1-6.mjs → setting-i0pugNHl.mjs} +0 -0
- /package/dist/{snippet-BZvo05ua.mjs → snippet-NNzqlksR.mjs} +0 -0
- /package/dist/{transform-job-n8W6tLqF.mjs → transform-job-B9pXBOwr.mjs} +0 -0
- /package/dist/{transform--dviwMA1.mjs → transform-qczxOAzn.mjs} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Table, TableCompact, tableView } from "./table-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
7
|
+
import { Table, TableCompact, tableView } from "./table-qDD2kApF.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/db/schema-tables.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/db/schemas.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnumCsv } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnumCsv } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/domain/search.ts
|
|
@@ -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-CNeaMSjy.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-ev4Zw3Gj.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-UzeYyGq6.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-ETzjZl17.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-F2g-bAXf.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { segment_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { formatScalar, renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { SettingValue, settingValueView } from "./setting-
|
|
8
|
-
import { parseSettingKey, rethrowSettingError } from "./key-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { formatScalar, renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-CXpIB6hY.mjs";
|
|
7
|
+
import { SettingValue, settingValueView } from "./setting-i0pugNHl.mjs";
|
|
8
|
+
import { parseSettingKey, rethrowSettingError } from "./key-C8q5oIr5.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/setting/set.ts
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.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-DIFjjwBV.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-DQOvqH9P.mjs").then((m) => m.default),
|
|
12
|
+
set: () => import("./set-C1rIETEg.mjs").then((m) => m.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-CXpIB6hY.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/domain/setup.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigError, ValidationError, errorMessage, isNotFoundError } from "./command-augment-
|
|
1
|
+
import { ConfigError, ValidationError, errorMessage, isNotFoundError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { closeSync, openSync, readFileSync, readSync, readdirSync, statSync } from "node:fs";
|
|
4
4
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -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-RC1HQ2dg.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-DMeF2FLQ.mjs").then((m) => m.default),
|
|
13
|
+
path: () => import("./path-YsfpMb_h.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-BE3wVc-a.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-C6njgZmF.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Cq-ay6cJ.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-Br_cd74H.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-BrzOTxSA.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ConfigError } from "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
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-
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./parse-id-DMs04KM3.mjs";
|
|
6
|
+
import "./poll-13tgWrN_.mjs";
|
|
7
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Z_JC7x4L.mjs";
|
|
8
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-BuAHsDEK.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/stash.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { ParsedVersionSchema, ProbedUser, ProfileLastFailure, TokenFeatures, defineMetabaseCommand,
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import { renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, displayUrl, profileAuthMethod, readProfileRecord, resolveProfileName } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { renderAuthMethod, renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-CkuFkWlQ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/auth/status.ts
|
|
@@ -10,6 +10,7 @@ const AuthStatus = z.object({
|
|
|
10
10
|
profile: z.string(),
|
|
11
11
|
present: z.boolean(),
|
|
12
12
|
url: z.string().nullable(),
|
|
13
|
+
method: ProfileAuthMethod.nullable(),
|
|
13
14
|
user: ProbedUser.nullable(),
|
|
14
15
|
version: ParsedVersionSchema.nullable(),
|
|
15
16
|
tokenFeatures: TokenFeatures.nullable(),
|
|
@@ -31,6 +32,11 @@ const authStatusView = {
|
|
|
31
32
|
key: "url",
|
|
32
33
|
label: "URL"
|
|
33
34
|
},
|
|
35
|
+
{
|
|
36
|
+
key: "method",
|
|
37
|
+
label: "Auth",
|
|
38
|
+
format: (value) => renderAuthMethod(value)
|
|
39
|
+
},
|
|
34
40
|
{
|
|
35
41
|
key: "user",
|
|
36
42
|
label: "Logged in as",
|
|
@@ -73,6 +79,7 @@ var status_default = defineMetabaseCommand({
|
|
|
73
79
|
profile: profileName,
|
|
74
80
|
present: false,
|
|
75
81
|
url: null,
|
|
82
|
+
method: null,
|
|
76
83
|
user: null,
|
|
77
84
|
version: null,
|
|
78
85
|
tokenFeatures: null,
|
|
@@ -85,7 +92,8 @@ var status_default = defineMetabaseCommand({
|
|
|
85
92
|
renderItem({
|
|
86
93
|
profile: profileName,
|
|
87
94
|
present: true,
|
|
88
|
-
url:
|
|
95
|
+
url: displayUrl(record.url),
|
|
96
|
+
method: profileAuthMethod(record),
|
|
89
97
|
user: probe?.user ?? null,
|
|
90
98
|
version: probe?.version ?? null,
|
|
91
99
|
tokenFeatures: probe?.tokenFeatures ?? null,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-
|
|
7
|
-
import { IsDirtyResult } from "./is-dirty-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./poll-13tgWrN_.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-BuAHsDEK.mjs";
|
|
7
|
+
import { IsDirtyResult } from "./is-dirty-BDmXm34E.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/status.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/field/summary.ts
|
|
9
9
|
var summary_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./table-
|
|
8
|
-
import { Database, DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-
|
|
9
|
-
import { pollUntil } from "./poll-
|
|
10
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
7
|
+
import "./table-qDD2kApF.mjs";
|
|
8
|
+
import { Database, DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-BmsxuRmO.mjs";
|
|
9
|
+
import { pollUntil } from "./poll-13tgWrN_.mjs";
|
|
10
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-Z_JC7x4L.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/db/sync-schema.ts
|
|
13
13
|
var sync_schema_default = defineMetabaseCommand({
|
|
@@ -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: "Manage Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CTfCgMTk.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-B-phl324.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-B15u_YYT.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-BRiL6KEF.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-DLQygCXg.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
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-B7g2c9K7.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CcGU3YaY.mjs").then((mod) => mod.default),
|
|
12
|
+
dependencies: () => import("./dependencies-DfkbJqzQ.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-onFRzFwS.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-ZPsCSWR6.mjs").then((mod) => mod.default),
|
|
15
|
+
delete: () => import("./delete-CGw1hwGZ.mjs").then((mod) => mod.default),
|
|
16
|
+
"delete-table": () => import("./delete-table-B6obSpLU.mjs").then((mod) => mod.default),
|
|
17
|
+
run: () => import("./run-CsYI4Sqv.mjs").then((mod) => mod.default),
|
|
18
|
+
cancel: () => import("./cancel-BbLZsVYQ.mjs").then((mod) => mod.default),
|
|
19
|
+
"get-run": () => import("./get-run-Cp7ATZPQ.mjs").then((mod) => mod.default),
|
|
20
|
+
runs: () => import("./runs-DWbtqOyw.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-JCMQ06wX.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-C-o2-vnf.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-C4G_z8qO.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-CCIkTuxz.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-CxTPHzom.mjs").then((mod) => mod.default),
|
|
15
|
+
run: () => import("./run-DR5O1_EU.mjs").then((mod) => mod.default),
|
|
16
|
+
transforms: () => import("./transforms-Bo4u0YqS.mjs").then((mod) => mod.default),
|
|
17
|
+
"set-active": () => import("./set-active-CJ1VaxEC.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { transform_job_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,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-DM-Oa-oB.mjs").then((mod) => mod.default),
|
|
11
|
+
create: () => import("./create-Bz4hf7W0.mjs").then((mod) => mod.default),
|
|
12
|
+
update: () => import("./update-DCvTlxUK.mjs").then((mod) => mod.default),
|
|
13
|
+
delete: () => import("./delete-Dbzs51x3.mjs").then((mod) => mod.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { transform_tag_default as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
6
|
+
import { Transform, TransformCompact, transformView } from "./transform-qczxOAzn.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,8 +1,8 @@
|
|
|
1
|
-
import { ConfigError } from "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { writeJson } from "./capabilities-
|
|
5
|
-
import { CollectionTreeNode } from "./collection-
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { writeJson } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { CollectionTreeNode } from "./collection-Deiziuu2.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/collection/tree.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import "./field-
|
|
7
|
-
import "./card-
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
9
|
-
import { readBody } from "./body-
|
|
10
|
-
import { bodyInputFlags } from "./body-flags-
|
|
11
|
-
import "./validate-
|
|
12
|
-
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-
|
|
13
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import "./card-wCPcuKSi.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
9
|
+
import { readBody } from "./body-CXpIB6hY.mjs";
|
|
10
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
12
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
13
|
+
import { preflightDashcardCardReferences } from "./preflight-wCSgVqbX.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/dashboard/update.ts
|
|
16
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
8
|
-
import { bodyInputFlags } from "./body-flags-
|
|
9
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
7
|
+
import { readBody } from "./body-CXpIB6hY.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/snippet/update.ts
|
|
12
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
8
|
-
import { bodyInputFlags } from "./body-flags-
|
|
9
|
-
import "./validate-
|
|
10
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
11
|
-
import { Measure, MeasureUpdateInput, measureView } from "./measure-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BOi_ux9O.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-7JTC-usO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DMs04KM3.mjs";
|
|
7
|
+
import { readBody } from "./body-CXpIB6hY.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
10
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
11
|
+
import { Measure, MeasureUpdateInput, measureView } from "./measure-JJAdFoqK.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/measure/update.ts
|
|
14
14
|
var update_default = defineMetabaseCommand({
|