@metabase/cli 0.3.0 → 0.3.1-alpha.transform-tests.3fbcf8b
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/dist/{add-collection-B3Ty8SzB.mjs → add-collection-C-XJPp3F.mjs} +2 -2
- package/dist/{alert-DT-ee7yf.mjs → alert-Klz8Bhst.mjs} +6 -6
- package/dist/{alerts-Bf2RH_p_.mjs → alerts-Bp2vByJf.mjs} +3 -3
- package/dist/{append-DFzQRPMd.mjs → append-D16_s1HW.mjs} +4 -3
- package/dist/{archive-ChORH5JH.mjs → archive-BOJUGwyL.mjs} +2 -2
- package/dist/{archive-CwAdlv63.mjs → archive-Bj4MjbJY.mjs} +2 -2
- package/dist/{archive-ByvA49Kz.mjs → archive-C9iNjXcI.mjs} +2 -2
- package/dist/{archive-Cd29QC0c.mjs → archive-CA-HIfQq.mjs} +2 -2
- package/dist/{archive-4tmm946K.mjs → archive-D4nGMs8A.mjs} +2 -2
- package/dist/{archive-B6eXiyER.mjs → archive-Dd7ZTibw.mjs} +2 -2
- package/dist/{archive-lQqs13Uz.mjs → archive-Q_qUuYh8.mjs} +2 -2
- package/dist/{archive-BxNPHxOY.mjs → archive-RzzXt2V0.mjs} +2 -2
- package/dist/{archive-C7w49Grr.mjs → archive-lDnTIypd.mjs} +2 -2
- package/dist/{archive-gid9Y09v.mjs → archive-nDvHMzTv.mjs} +2 -2
- package/dist/{archive-Dr9Xnx_Z.mjs → archive-vzu8ghZZ.mjs} +4 -4
- package/dist/{auth-Dltxua89.mjs → auth-kyPQfiND.mjs} +4 -4
- package/dist/{body-Cur4NJt9.mjs → body-DxRSAMNC.mjs} +1 -1
- package/dist/{branches-DchlyU0i.mjs → branches-QixvzIpl.mjs} +1 -1
- package/dist/{cancel-BMQa5R1Z.mjs → cancel-CPStS4zJ.mjs} +2 -2
- package/dist/{cancel-task-C5CU1pxU.mjs → cancel-task--cuSISnl.mjs} +1 -1
- package/dist/{card-CHI2bmds.mjs → card-p2r_szeS.mjs} +7 -7
- package/dist/{cards-SccWvRQD.mjs → cards-CNbV8aGO.mjs} +4 -4
- package/dist/cli.mjs +32 -30
- package/dist/{client-BqhzKdLM.mjs → client-DynvZqa0.mjs} +98 -10
- package/dist/{collection-CY0AB99E.mjs → collection-CAM47Der.mjs} +6 -6
- package/dist/{collection-namespace-GwydWBF3.mjs → collection-namespace-CEoQ7G08.mjs} +1 -1
- package/dist/content-translation-BrHOrmj9.mjs +5 -0
- package/dist/content-translation-CxTabpLF.mjs +12 -0
- package/dist/{create-DV-Ln5Mo.mjs → create-BGV7ejai.mjs} +2 -2
- package/dist/{create-C79vErX0.mjs → create-BGy4L_yh.mjs} +2 -2
- package/dist/{create-DJmXXQoq.mjs → create-BMokmmLp2.mjs} +3 -3
- package/dist/{create-CAWytBE5.mjs → create-BTvSwLws.mjs} +2 -2
- package/dist/{create-Beh-2uoN.mjs → create-BikaTHCw.mjs} +2 -2
- package/dist/{create-zeveFdnd.mjs → create-BsvpUxJq.mjs} +1 -1
- package/dist/{create-DF4QtgDL.mjs → create-CEP4Jsrd.mjs} +2 -2
- package/dist/{create-i14Wv3Tj.mjs → create-CYhsYOOJ.mjs} +2 -2
- package/dist/{create-CD008jdE.mjs → create-CsABLrSI.mjs} +6 -6
- package/dist/{create-tQbnuz-I.mjs → create-CtDaASGO.mjs} +2 -2
- package/dist/{create-CHQx7jq4.mjs → create-DMLjSEkF.mjs} +2 -2
- package/dist/{create-CAQV2g6V.mjs → create-M8qXs24L.mjs} +2 -2
- package/dist/{create-BNQ_DytP.mjs → create-U15wd8_9.mjs} +2 -2
- package/dist/{create-BOLwWt8Q.mjs → create-UxWtLwXT.mjs} +2 -2
- package/dist/{create-CCh_LyW9.mjs → create-WIIp7MVV.mjs} +2 -2
- package/dist/{create-branch-CYo6jZth.mjs → create-branch-Bkq9rtf7.mjs} +1 -1
- package/dist/create-ku05K1Oj.mjs +34 -0
- package/dist/{csv-B2Jgb1GM.mjs → csv-GincCch9.mjs} +4 -3
- package/dist/{current-task-MpBFGttd.mjs → current-task-CbnNWQ7H.mjs} +1 -1
- package/dist/{dashboard-CsIFFpzK.mjs → dashboard-BlbNszi8.mjs} +1 -1
- package/dist/{dashboard-BCpSq_G-.mjs → dashboard-CKUR8ZpQ.mjs} +1 -0
- package/dist/{dashboard-BHJBoaG7.mjs → dashboard-ReNaou5J.mjs} +9 -9
- package/dist/{db-DsfojyeH.mjs → db-2hSYsqHk.mjs} +6 -6
- package/dist/{delete-BApOjQvl.mjs → delete-B2wmUpj_.mjs} +2 -2
- package/dist/{delete-DFmX7jTp.mjs → delete-BEPw7WRT.mjs} +2 -2
- package/dist/{delete-B8e01xAG.mjs → delete-Bv3_SIqh.mjs} +2 -2
- package/dist/{delete-Ob06PPie.mjs → delete-C1YmyeVy.mjs} +2 -2
- package/dist/delete-CZqleA9Q.mjs +44 -0
- package/dist/{delete-Ck0q4Dzp.mjs → delete-DNsY94Ok.mjs} +2 -2
- package/dist/{delete-table-DuyhGrvA.mjs → delete-table-DySwoEaq.mjs} +2 -2
- package/dist/{dependencies-Bj3QrGIm.mjs → dependencies-ygT6uMu4.mjs} +2 -2
- package/dist/{dirty-DNYoM6Bp.mjs → dirty-BkiHZ8gb.mjs} +1 -1
- package/dist/{document-BbskZPTT.mjs → document-DGbDloCb.mjs} +5 -5
- package/dist/download-Chr-YNTG.mjs +28 -0
- package/dist/{eid-WTZmDdsr.mjs → eid-BvY-YGpN.mjs} +2 -2
- package/dist/{events-Bn7jh5lP.mjs → events-B01P0G7C.mjs} +2 -2
- package/dist/{export-BjfoZRDJ.mjs → export-CG23iezf.mjs} +2 -2
- package/dist/{field-Zau6Hc6X.mjs → field-DikmNcAt.mjs} +4 -4
- package/dist/{fields-CBBa-Prp.mjs → fields-C9BF3jHL.mjs} +2 -2
- package/dist/{get-ByBOq30r.mjs → get-B3jvGI0b.mjs} +2 -2
- package/dist/{get-CvI--9S_.mjs → get-B4GltkXP.mjs} +1 -1
- package/dist/get-BHpVRSbm.mjs +32 -0
- package/dist/{get-DmpB6J9g.mjs → get-BYSFFlsd.mjs} +2 -2
- package/dist/{get-Dn9ZiSZr.mjs → get-Blbcl76m.mjs} +2 -2
- package/dist/{get-D_h-G9bn.mjs → get-BtauixMx.mjs} +2 -2
- package/dist/{get-CDJFVvhj.mjs → get-Buxkx-RX.mjs} +1 -1
- package/dist/{get-C2-Q3iQ5.mjs → get-C1V7vZse.mjs} +2 -2
- package/dist/{get-Dmj9Ygz1.mjs → get-C99cjjD0.mjs} +2 -2
- package/dist/{get-DRvsATp-.mjs → get-CMMXBVff.mjs} +2 -2
- package/dist/{get-CnbUCzDM.mjs → get-CkMLxzVy.mjs} +2 -2
- package/dist/{get-Bz99dAxK.mjs → get-DY-e5oP7.mjs} +4 -4
- package/dist/{get-DdsoHaKH.mjs → get-DZpRq_Fw.mjs} +2 -2
- package/dist/{get-DYO1kywc.mjs → get-DdSB-fpR.mjs} +2 -2
- package/dist/{get-CDMGbgrh.mjs → get-DvqYIBp5.mjs} +2 -2
- package/dist/{get-DkWO0EI0.mjs → get-FJofgEPB.mjs} +1 -1
- package/dist/{get-B_xdF1kq.mjs → get-N5EUCDL0.mjs} +2 -2
- package/dist/{get-00lyLv6R.mjs → get-PKhv8WUf.mjs} +2 -2
- package/dist/{get-B7sMgsFs.mjs → get-UW0DOjH5.mjs} +2 -2
- package/dist/{get-DY03Azx9.mjs → get-gFM8-HHP.mjs} +1 -1
- package/dist/{get-run-Cnux9ln0.mjs → get-run-F7ARJeAD.mjs} +2 -2
- package/dist/git-sync-IW4T2sKq.mjs +28 -0
- package/dist/{has-remote-changes-C684Redh.mjs → has-remote-changes-Bwyp8mc-.mjs} +1 -1
- package/dist/{import-Rmmttboo.mjs → import-CPY8aM8d.mjs} +2 -2
- package/dist/{is-dirty-DYeJYhBz.mjs → is-dirty-0F_UJY7Q.mjs} +1 -1
- package/dist/{items-CQlPXBXE.mjs → items-FUop0zGR.mjs} +1 -1
- package/dist/{library-Bsm5KsFF.mjs → library-DpOtb0E0.mjs} +4 -4
- package/dist/{list-CQwOgIlj.mjs → list--B2EUWJg.mjs} +1 -1
- package/dist/list-B-74c1BD.mjs +35 -0
- package/dist/{list-BpFp9Wre.mjs → list-BASNYNJr.mjs} +1 -1
- package/dist/{list-CKK-s3Ty.mjs → list-BQaXU1bp.mjs} +1 -1
- package/dist/{list-CQDprvW0.mjs → list-BQrk4Ua4.mjs} +3 -3
- package/dist/{list-BP3MPq-M.mjs → list-Beoh2AYD.mjs} +1 -1
- package/dist/{list-CNUiF8Z7.mjs → list-Bqm0F1Y-.mjs} +1 -1
- package/dist/{list-B4hJuMhA.mjs → list-C2qxVTu7.mjs} +1 -1
- package/dist/{list-DMKDsBRd.mjs → list-CGkgypYz.mjs} +1 -1
- package/dist/{list-UhpKG6_m.mjs → list-CvzWE6CS.mjs} +1 -1
- package/dist/{list-C5Zs8nrb.mjs → list-DMlFbccD.mjs} +1 -1
- package/dist/{list-B8nAGwP4.mjs → list-DdFViPYS.mjs} +1 -1
- package/dist/{list-BtkWNtvY.mjs → list-DfbsmsHv.mjs} +2 -2
- package/dist/{list-CMpoc2TN.mjs → list-GyP4b_tU.mjs} +1 -1
- package/dist/{list-DF2rvoO1.mjs → list-Uc1OxV36.mjs} +3 -3
- package/dist/{list-BzVTHOoH.mjs → list-ba7lI44w.mjs} +1 -1
- package/dist/{list-BtmsNOEn.mjs → list-lzIKVtE9.mjs} +1 -1
- package/dist/{list-BOET6zhP.mjs → list-rQ-6XSua.mjs} +1 -1
- package/dist/{list-DE9FM957.mjs → list-xC99-2X0.mjs} +1 -1
- package/dist/{login-CGHeSjlP.mjs → login-D5jt0q9K.mjs} +3 -3
- package/dist/{logout-DAxOlbv4.mjs → logout-DViy0VzV.mjs} +1 -1
- package/dist/{measure-BsYv0p26.mjs → measure-IPlonpqU.mjs} +5 -5
- package/dist/{network-error-CEb9ymDW.mjs → network-error-D6CiOEBw.mjs} +10 -2
- package/dist/{parameter-values-CJTdqd8c.mjs → parameter-values-CHyOCxmR.mjs} +2 -2
- package/dist/{parse-id-C_jmKFaa.mjs → parse-id-CPINxy7h.mjs} +1 -1
- package/dist/{path-B5gHvrYL.mjs → path-bMZzUOVo.mjs} +1 -1
- package/dist/{preflight-YpPQo-sa.mjs → preflight-CoF1Em99.mjs} +1 -1
- package/dist/{publish-DijrxaCW.mjs → publish-Cs-OUG6n.mjs} +2 -2
- package/dist/{query-Dc__-KJH.mjs → query-CEdmSEq8.mjs} +2 -2
- package/dist/{query-BbqECzmF.mjs → query-CpD46hL6.mjs} +4 -9
- package/dist/{remove-collection-BOnxYvhj.mjs → remove-collection-DynsqkwG.mjs} +2 -2
- package/dist/{replace-Cq4CxVa-.mjs → replace-C6YqqCG9.mjs} +4 -3
- package/dist/{rescan-values-Dr_j416g.mjs → rescan-values-C6PB02uT.mjs} +2 -2
- package/dist/run-C7PXBBEl.mjs +50 -0
- package/dist/{run-C3DkS6NP.mjs → run-Cb86sH_c.mjs} +3 -3
- package/dist/{run-DdGJ544X.mjs → run-CpmWoOGp.mjs} +2 -2
- package/dist/{runs-CUNWiidL.mjs → runs-CCRszsbB.mjs} +2 -2
- package/dist/{runtime-DiKyBxOw.mjs → runtime-BMJv4VOi.mjs} +2 -2
- package/dist/{schema-tables-CV386fnC.mjs → schema-tables-BQdFNy1B.mjs} +2 -2
- package/dist/{schemas-DM-UqZBQ.mjs → schemas-CNAPFh4n.mjs} +2 -2
- package/dist/{search-DmGScXs8.mjs → search-BKVV6YtB.mjs} +2 -2
- package/dist/{segment-BzUGM2Fr.mjs → segment-CDoZHSYX.mjs} +5 -5
- package/dist/{selectors-DGDn0Hto.mjs → selectors-BXbjj36S.mjs} +2 -2
- package/dist/{send-CVxxEpDB.mjs → send-D2eXL9lt.mjs} +2 -2
- package/dist/{set-active-BD8L1lPX.mjs → set-active-DT61WwV0.mjs} +1 -1
- package/dist/{set-DFolTjbd.mjs → set-sHBtSGLi.mjs} +2 -2
- package/dist/{setting-DyhaeICs.mjs → setting-dkfKvCxc.mjs} +3 -3
- package/dist/{setup-BbDQN8fe.mjs → setup-TOwWatgm.mjs} +2 -2
- package/dist/{skills--vK6J-e4.mjs → skills-BcOjZldN.mjs} +3 -3
- package/dist/{snippet-DRwKb2x7.mjs → snippet-DMdFqvNq.mjs} +5 -5
- package/dist/{stash-D0S4JmAz.mjs → stash-BgWw2lyu.mjs} +2 -2
- package/dist/{status-hL1am-HV.mjs → status-B14FO8n7.mjs} +2 -2
- package/dist/{status-BhswxJL1.mjs → status-J4pEIm-c.mjs} +1 -1
- package/dist/stream-McixcoUl.mjs +7 -0
- package/dist/{subscription-_d5fB45F.mjs → subscription-B1uuKxM7.mjs} +5 -5
- package/dist/{subscriptions-s4TF6Ax3.mjs → subscriptions-BHIATSN6.mjs} +3 -3
- package/dist/{summary-CsPvcUwW.mjs → summary-B1V5TXaZ.mjs} +2 -2
- package/dist/{sync-schema-DaZ_MV-u.mjs → sync-schema-D1vX-rpv.mjs} +3 -3
- package/dist/{table-DYoC1kPn.mjs → table-CDeO1WbH.mjs} +4 -4
- package/dist/{timeline-xlDbEKWg.mjs → timeline-MQFX3Fla.mjs} +7 -7
- package/dist/{timeline-event-CNQdCTDg.mjs → timeline-event-oGmne082.mjs} +5 -5
- package/dist/transform-CWIqW64R.mjs +28 -0
- package/dist/transform-job-DpF2MARE.mjs +22 -0
- package/dist/{transform-tag-_tgwlsdB.mjs → transform-tag-Bpj8l5Ci.mjs} +4 -4
- package/dist/transform-test-BJOPAwKl.mjs +25 -0
- package/dist/transform-test-BhkpwFqD.mjs +16 -0
- package/dist/transform-test-Dhcj7u-U.mjs +142 -0
- package/dist/{transforms-oU4zizbO.mjs → transforms-K7Y4ON_q.mjs} +2 -2
- package/dist/{tree-CH-f3bjP.mjs → tree-CtFtroe4.mjs} +1 -1
- package/dist/{unpublish-BUl9RU5C.mjs → unpublish-D7UaaIWA.mjs} +2 -2
- package/dist/{update-C4YJQFDS.mjs → update-3ksm443P.mjs} +3 -3
- package/dist/{update-BiFDBcEH.mjs → update-B7veBLhx.mjs} +3 -3
- package/dist/{update-CmDTljK-.mjs → update-BicO3Lio.mjs} +3 -3
- package/dist/{update-CHNSUHK4.mjs → update-BlBEKrNE.mjs} +3 -3
- package/dist/{update-tX9mKBN_.mjs → update-BpuZsX9z.mjs} +7 -7
- package/dist/{update-CVPAwJaH.mjs → update-BvbPpgOL.mjs} +3 -3
- package/dist/{update-BZPllQoR.mjs → update-CGJXd_E3.mjs} +3 -3
- package/dist/{update-BCS5FxKr.mjs → update-C_wTtrtX.mjs} +4 -4
- package/dist/{update-BzMDeZiU.mjs → update-D9Nfv864.mjs} +3 -3
- package/dist/{update-D-NE60AV.mjs → update-DUNJEk8m.mjs} +3 -3
- package/dist/{update-cYkvbqK8.mjs → update-HqUKBeM2.mjs} +3 -3
- package/dist/{update-CO4m4wH3.mjs → update-MWaDj2VX.mjs} +3 -3
- package/dist/{update-bD_Jh5-s.mjs → update-YkB3xWUh.mjs} +3 -3
- package/dist/{update-CvOO8TED.mjs → update-bix8NoKq.mjs} +3 -3
- package/dist/{update-Nfi44RrE.mjs → update-dRAPKE3c.mjs} +3 -3
- package/dist/{update-dashcard-C3TuYO_k.mjs → update-dashcard-BGqKMqQb.mjs} +5 -5
- package/dist/update-e4ufwrkF.mjs +41 -0
- package/dist/{upgrade-DXMV4AyP.mjs → upgrade-DkQ1wk4z.mjs} +2 -2
- package/dist/upload-BfGc-L4t.mjs +42 -0
- package/dist/upload-C3z5ZaXA.mjs +24 -0
- package/dist/{upload-CH632qW6.mjs → upload-CD555ui1.mjs} +1 -24
- package/dist/{upload-Dey_8rLf.mjs → upload-JN6EK96c.mjs} +3 -3
- package/dist/{uuid-BJkDWj9p.mjs → uuid-BLBLkWAF.mjs} +1 -1
- package/dist/{values-Dxf1JEoA.mjs → values-8CrXBkyg.mjs} +2 -2
- package/dist/{verify-K96rItG5.mjs → verify-nNVN-0CR.mjs} +3 -3
- package/dist/{wait-DoMDH226.mjs → wait-YrD7UYFF.mjs} +2 -2
- package/dist/{wait-flags-DWEF9tX4.mjs → wait-flags-CDtMS8FP.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +6 -5
- package/skill-data/dashboard/SKILL.md +2 -2
- package/skill-data/transform/SKILL.md +55 -1
- package/dist/git-sync-MQQYRYLg.mjs +0 -28
- package/dist/transform-Bs0EWijQ.mjs +0 -28
- package/dist/transform-job-BcLChRup.mjs +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { s as SyncSettingsUpdateResult } from "./git-sync-BDnxPrqU.mjs";
|
|
5
5
|
import { o as syncSettingsUpdateView } from "./git-sync-DxD_ng48.mjs";
|
|
6
6
|
//#region src/commands/git-sync/add-collection.ts
|
|
@@ -11,12 +11,12 @@ var alert_default = defineCommandGroup({
|
|
|
11
11
|
purpose: "the card an alert watches and how to find its id"
|
|
12
12
|
}],
|
|
13
13
|
subCommands: {
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
get: () => import("./get-
|
|
16
|
-
create: () => import("./create-
|
|
17
|
-
update: () => import("./update-
|
|
18
|
-
send: () => import("./send-
|
|
19
|
-
archive: () => import("./archive-
|
|
14
|
+
list: () => import("./list-GyP4b_tU.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-DdSB-fpR.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-DMLjSEkF.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-YkB3xWUh.mjs").then((mod) => mod.default),
|
|
18
|
+
send: () => import("./send-D2eXL9lt.mjs").then((mod) => mod.default),
|
|
19
|
+
archive: () => import("./archive-C9iNjXcI.mjs").then((mod) => mod.default)
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, N as listFlags, s as renderList } from "./cli.mjs";
|
|
2
2
|
import { t as notificationView } from "./notification-Fcq1fIPw.mjs";
|
|
3
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
4
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
5
5
|
import { n as windowList } from "./window-BkvrP0gB.mjs";
|
|
6
|
-
import { AlertListEnvelope } from "./list-
|
|
6
|
+
import { AlertListEnvelope } from "./list-GyP4b_tU.mjs";
|
|
7
7
|
//#region src/commands/card/alerts.ts
|
|
8
8
|
var alerts_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { n as UploadUpdateResult } from "./upload-DAtxBBms.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { n as requireUploadFilePath, t as readCsvFile } from "./upload-CD555ui1.mjs";
|
|
6
|
+
import { n as uploadUpdateResultView } from "./upload-C3z5ZaXA.mjs";
|
|
6
7
|
//#region src/commands/upload/append.ts
|
|
7
8
|
var append_default = defineMetabaseCommand({
|
|
8
9
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
5
5
|
import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
|
|
6
6
|
//#region src/commands/snippet/archive.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Pulse } from "./pulse-BmsDenXm.mjs";
|
|
5
5
|
import { t as pulseView } from "./pulse-DhG6I9mI.mjs";
|
|
6
6
|
//#region src/commands/subscription/archive.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
2
|
import { n as Notification } from "./notification-DaA4bBHW.mjs";
|
|
3
3
|
import { t as notificationView } from "./notification-Fcq1fIPw.mjs";
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
5
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
5
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
6
6
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
7
7
|
//#region src/commands/alert/archive.ts
|
|
8
8
|
var archive_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
5
5
|
import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
|
|
6
6
|
//#region src/commands/timeline/archive.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
5
5
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
6
6
|
import { t as revisionMessageFlag } from "./revision-message-flag-8TCHYJV6.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { i as TimelineEvent } from "./timeline-CCSU2qOS.mjs";
|
|
5
5
|
import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
|
|
6
6
|
//#region src/commands/timeline-event/archive.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Document } from "./document-Cd2mmqCp.mjs";
|
|
5
5
|
import { t as documentView } from "./document-D6OybtP2.mjs";
|
|
6
6
|
//#region src/commands/document/archive.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { r as Collection } from "./collection-CfulNRBG.mjs";
|
|
5
5
|
import { n as collectionView } from "./collection-CGoVLvcD.mjs";
|
|
6
6
|
//#region src/commands/collection/archive.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Card } from "./card-DZxRmver.mjs";
|
|
5
5
|
import { n as cardView } from "./card-zyUkr2nS.mjs";
|
|
6
6
|
//#region src/commands/card/archive.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
5
5
|
import { t as revisionMessageFlag } from "./revision-message-flag-8TCHYJV6.mjs";
|
|
6
6
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as Dashboard } from "./dashboard-
|
|
5
|
-
import { t as dashboardView } from "./dashboard-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
|
+
import { t as Dashboard } from "./dashboard-CKUR8ZpQ.mjs";
|
|
5
|
+
import { t as dashboardView } from "./dashboard-BlbNszi8.mjs";
|
|
6
6
|
//#region src/commands/dashboard/archive.ts
|
|
7
7
|
var archive_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -9,10 +9,10 @@ var auth_default = defineCommandGroup({
|
|
|
9
9
|
purpose: "authentication and named profiles"
|
|
10
10
|
}],
|
|
11
11
|
subCommands: {
|
|
12
|
-
login: () => import("./login-
|
|
13
|
-
status: () => import("./status-
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
logout: () => import("./logout-
|
|
12
|
+
login: () => import("./login-D5jt0q9K.mjs").then((m) => m.default),
|
|
13
|
+
status: () => import("./status-B14FO8n7.mjs").then((m) => m.default),
|
|
14
|
+
list: () => import("./list-Uc1OxV36.mjs").then((m) => m.default),
|
|
15
|
+
logout: () => import("./logout-DViy0VzV.mjs").then((m) => m.default)
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
-
import { h as parseJson } from "./network-error-
|
|
2
|
+
import { h as parseJson } from "./network-error-D6CiOEBw.mjs";
|
|
3
3
|
import { r as readInput, t as DEFAULT_FLAG_NAME } from "./input-DH9i67x_.mjs";
|
|
4
4
|
//#region src/runtime/body.ts
|
|
5
5
|
async function readBody(sources, schema) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, N as listFlags, R as listEnvelopeSchema, s as renderList } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
3
|
import { n as windowList } from "./window-BkvrP0gB.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/git-sync/branches.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/transform/cancel.ts
|
|
6
6
|
const TransformCancelResult = z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
3
|
import { l as SyncTask } from "./git-sync-BDnxPrqU.mjs";
|
|
4
4
|
import { c as syncTaskView } from "./git-sync-DxD_ng48.mjs";
|
|
5
5
|
//#region src/commands/git-sync/cancel-task.ts
|
|
@@ -11,13 +11,13 @@ var card_default = defineCommandGroup({
|
|
|
11
11
|
purpose: "choose display and visualization_settings"
|
|
12
12
|
}],
|
|
13
13
|
subCommands: {
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
get: () => import("./get-
|
|
16
|
-
query: () => import("./query-
|
|
17
|
-
alerts: () => import("./alerts-
|
|
18
|
-
create: () => import("./create-
|
|
19
|
-
update: () => import("./update-
|
|
20
|
-
archive: () => import("./archive-
|
|
14
|
+
list: () => import("./list-C2qxVTu7.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-N5EUCDL0.mjs").then((mod) => mod.default),
|
|
16
|
+
query: () => import("./query-CpD46hL6.mjs").then((mod) => mod.default),
|
|
17
|
+
alerts: () => import("./alerts-Bp2vByJf.mjs").then((mod) => mod.default),
|
|
18
|
+
create: () => import("./create-BGy4L_yh.mjs").then((mod) => mod.default),
|
|
19
|
+
update: () => import("./update-MWaDj2VX.mjs").then((mod) => mod.default),
|
|
20
|
+
archive: () => import("./archive-lDnTIypd.mjs").then((mod) => mod.default)
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, N as listFlags, R as listEnvelopeSchema, s as renderList } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { n as windowList } from "./window-BkvrP0gB.mjs";
|
|
5
|
-
import { c as DashcardCompact } from "./dashboard-
|
|
6
|
-
import { n as dashcardView } from "./dashboard-
|
|
5
|
+
import { c as DashcardCompact } from "./dashboard-CKUR8ZpQ.mjs";
|
|
6
|
+
import { n as dashcardView } from "./dashboard-BlbNszi8.mjs";
|
|
7
7
|
//#region src/commands/dashboard/cards.ts
|
|
8
8
|
const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
|
|
9
9
|
var cards_default = defineMetabaseCommand({
|
package/dist/cli.mjs
CHANGED
|
@@ -175,7 +175,7 @@ function trustSystemCa() {
|
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region package.json
|
|
177
177
|
var name = "@metabase/cli";
|
|
178
|
-
var version = "0.3.
|
|
178
|
+
var version = "0.3.1-alpha.transform-tests.3fbcf8b";
|
|
179
179
|
var description = "Metabase CLI";
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region src/runtime/command-augment.ts
|
|
@@ -195,35 +195,37 @@ const main = defineCommand({
|
|
|
195
195
|
description
|
|
196
196
|
},
|
|
197
197
|
subCommands: {
|
|
198
|
-
auth: () => import("./auth-
|
|
199
|
-
db: () => import("./db-
|
|
200
|
-
table: () => import("./table-
|
|
201
|
-
field: () => import("./field-
|
|
202
|
-
upload: () => import("./upload-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
"transform-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
198
|
+
auth: () => import("./auth-kyPQfiND.mjs").then((mod) => mod.default),
|
|
199
|
+
db: () => import("./db-2hSYsqHk.mjs").then((mod) => mod.default),
|
|
200
|
+
table: () => import("./table-CDeO1WbH.mjs").then((mod) => mod.default),
|
|
201
|
+
field: () => import("./field-DikmNcAt.mjs").then((mod) => mod.default),
|
|
202
|
+
upload: () => import("./upload-JN6EK96c.mjs").then((mod) => mod.default),
|
|
203
|
+
"content-translation": () => import("./content-translation-CxTabpLF.mjs").then((mod) => mod.default),
|
|
204
|
+
card: () => import("./card-p2r_szeS.mjs").then((mod) => mod.default),
|
|
205
|
+
dashboard: () => import("./dashboard-ReNaou5J.mjs").then((mod) => mod.default),
|
|
206
|
+
subscription: () => import("./subscription-B1uuKxM7.mjs").then((mod) => mod.default),
|
|
207
|
+
alert: () => import("./alert-Klz8Bhst.mjs").then((mod) => mod.default),
|
|
208
|
+
collection: () => import("./collection-CAM47Der.mjs").then((mod) => mod.default),
|
|
209
|
+
library: () => import("./library-DpOtb0E0.mjs").then((mod) => mod.default),
|
|
210
|
+
document: () => import("./document-DGbDloCb.mjs").then((mod) => mod.default),
|
|
211
|
+
transform: () => import("./transform-CWIqW64R.mjs").then((mod) => mod.default),
|
|
212
|
+
"transform-job": () => import("./transform-job-DpF2MARE.mjs").then((mod) => mod.default),
|
|
213
|
+
"transform-tag": () => import("./transform-tag-Bpj8l5Ci.mjs").then((mod) => mod.default),
|
|
214
|
+
"transform-test": () => import("./transform-test-BhkpwFqD.mjs").then((mod) => mod.default),
|
|
215
|
+
setting: () => import("./setting-dkfKvCxc.mjs").then((mod) => mod.default),
|
|
216
|
+
search: () => import("./search-BKVV6YtB.mjs").then((mod) => mod.default),
|
|
217
|
+
"git-sync": () => import("./git-sync-IW4T2sKq.mjs").then((mod) => mod.default),
|
|
218
|
+
setup: () => import("./setup-TOwWatgm.mjs").then((mod) => mod.default),
|
|
219
|
+
snippet: () => import("./snippet-DMdFqvNq.mjs").then((mod) => mod.default),
|
|
220
|
+
segment: () => import("./segment-CDoZHSYX.mjs").then((mod) => mod.default),
|
|
221
|
+
measure: () => import("./measure-IPlonpqU.mjs").then((mod) => mod.default),
|
|
222
|
+
timeline: () => import("./timeline-MQFX3Fla.mjs").then((mod) => mod.default),
|
|
223
|
+
"timeline-event": () => import("./timeline-event-oGmne082.mjs").then((mod) => mod.default),
|
|
224
|
+
eid: () => import("./eid-BvY-YGpN.mjs").then((mod) => mod.default),
|
|
225
|
+
query: () => import("./query-CEdmSEq8.mjs").then((mod) => mod.default),
|
|
226
|
+
uuid: () => import("./uuid-BLBLkWAF.mjs").then((mod) => mod.default),
|
|
227
|
+
upgrade: () => import("./upgrade-DkQ1wk4z.mjs").then((mod) => mod.default),
|
|
228
|
+
skills: () => import("./skills-BcOjZldN.mjs").then((mod) => mod.default)
|
|
227
229
|
}
|
|
228
230
|
});
|
|
229
231
|
setMetabaseAugment(main, {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { a as InternalError, c as ResponseShapeError, d as ValidationError, f as errorMessage, i as ConfigError, l as TimeoutError, s as NetworkError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
2
|
import { n as Notification, r as NotificationCardPayload, t as CARD_PAYLOAD_TYPE } from "./notification-DaA4bBHW.mjs";
|
|
3
|
-
import { a as isRetryableStatus, c as normalizeUrl, d as credentialSecrets, g as parseJsonOrPlain, h as parseJson, l as assertCredentialHeaderSafe, m as JSON_CONTENT_TYPE, n as isConnectionClosed, r as HttpError, t as buildNetworkError, u as credentialAuthHeader } from "./network-error-
|
|
3
|
+
import { a as isRetryableStatus, c as normalizeUrl, d as credentialSecrets, g as parseJsonOrPlain, h as parseJson, l as assertCredentialHeaderSafe, m as JSON_CONTENT_TYPE, n as isConnectionClosed, r as HttpError, t as buildNetworkError, u as credentialAuthHeader } from "./network-error-D6CiOEBw.mjs";
|
|
4
4
|
import { n as throwIfAborted, t as combineAborts } from "./signal-CMd0EFUa.mjs";
|
|
5
5
|
import { s as FieldValues, t as Field } from "./field-Cr2DPUG9.mjs";
|
|
6
6
|
import { r as ParameterValues } from "./parameter-DUKR8NXo.mjs";
|
|
7
7
|
import { o as CardQueryResult, t as Card } from "./card-DZxRmver.mjs";
|
|
8
8
|
import { f as CollectionTreeNode, o as CollectionItem, r as Collection } from "./collection-CfulNRBG.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { t as ContentTranslationUploadResult } from "./content-translation-BrHOrmj9.mjs";
|
|
10
|
+
import { i as DashboardDetail, s as Dashcard, t as Dashboard } from "./dashboard-CKUR8ZpQ.mjs";
|
|
10
11
|
import { i as TableQueryMetadata, t as Table } from "./table-CeeTJgQb.mjs";
|
|
11
12
|
import { t as Database } from "./database-C8G6ZKG0.mjs";
|
|
12
13
|
import { r as pollUntil } from "./poll-75SvT7Zv.mjs";
|
|
@@ -25,6 +26,7 @@ import { i as TimelineEvent, t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
|
25
26
|
import { i as TransformRun, l as isTransformRunFailed, t as Transform, u as isTransformRunTerminal } from "./transform-D3QX0jxA.mjs";
|
|
26
27
|
import { a as TransformJobRunResult, n as TransformJobActiveResult, t as TransformJob } from "./transform-job-DRrK28IH.mjs";
|
|
27
28
|
import { t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
29
|
+
import { i as TransformTestRunResult, t as TransformTest } from "./transform-test-Dhcj7u-U.mjs";
|
|
28
30
|
import { t as UploadResult } from "./upload-DAtxBBms.mjs";
|
|
29
31
|
import { z } from "zod";
|
|
30
32
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -539,6 +541,36 @@ function collectionResource(transport) {
|
|
|
539
541
|
};
|
|
540
542
|
}
|
|
541
543
|
//#endregion
|
|
544
|
+
//#region ../client/src/resources/csv-upload.ts
|
|
545
|
+
const CSV_CONTENT_TYPE = "text/csv";
|
|
546
|
+
function buildCsvFormData(file) {
|
|
547
|
+
const form = new FormData();
|
|
548
|
+
form.append("file", new Blob([file.bytes], { type: CSV_CONTENT_TYPE }), file.filename);
|
|
549
|
+
return form;
|
|
550
|
+
}
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region ../client/src/resources/content-translation.ts
|
|
553
|
+
const CONTENT_TRANSLATION_PATH = "/api/ee/content-translation";
|
|
554
|
+
function contentTranslationResource(transport) {
|
|
555
|
+
/** Download the complete content translation dictionary as CSV. */
|
|
556
|
+
async function download(options = {}) {
|
|
557
|
+
return transport.requestStream(`${CONTENT_TRANSLATION_PATH}/csv`, options);
|
|
558
|
+
}
|
|
559
|
+
/** Replace the complete content translation dictionary with the attached CSV. */
|
|
560
|
+
async function upload(file, options = {}) {
|
|
561
|
+
const form = buildCsvFormData(file);
|
|
562
|
+
return transport.requestParsed(ContentTranslationUploadResult, `${CONTENT_TRANSLATION_PATH}/upload-dictionary`, {
|
|
563
|
+
...options,
|
|
564
|
+
method: "POST",
|
|
565
|
+
body: form
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
return {
|
|
569
|
+
download,
|
|
570
|
+
upload
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
//#endregion
|
|
542
574
|
//#region ../client/src/resources/dashboard.ts
|
|
543
575
|
const DashboardApiList = z.array(Dashboard);
|
|
544
576
|
const PreflightDashcard = z.looseObject({ card_id: z.number().int().nullable().optional() });
|
|
@@ -1617,14 +1649,6 @@ function snippetResource(transport) {
|
|
|
1617
1649
|
};
|
|
1618
1650
|
}
|
|
1619
1651
|
//#endregion
|
|
1620
|
-
//#region ../client/src/resources/csv-upload.ts
|
|
1621
|
-
const CSV_CONTENT_TYPE = "text/csv";
|
|
1622
|
-
function buildCsvFormData(file) {
|
|
1623
|
-
const form = new FormData();
|
|
1624
|
-
form.append("file", new Blob([file.bytes], { type: CSV_CONTENT_TYPE }), file.filename);
|
|
1625
|
-
return form;
|
|
1626
|
-
}
|
|
1627
|
-
//#endregion
|
|
1628
1652
|
//#region ../client/src/resources/table.ts
|
|
1629
1653
|
const TableApiList = z.array(Table);
|
|
1630
1654
|
const UPLOAD_UPDATE_PATHS = {
|
|
@@ -2087,6 +2111,68 @@ function transformTagResource(transport) {
|
|
|
2087
2111
|
};
|
|
2088
2112
|
}
|
|
2089
2113
|
//#endregion
|
|
2114
|
+
//#region ../client/src/resources/transform-test.ts
|
|
2115
|
+
const TransformTestApiList = z.array(TransformTest);
|
|
2116
|
+
function transformTestResource(transport) {
|
|
2117
|
+
/** List the transform tests the caller can see, optionally only those of one transform. */
|
|
2118
|
+
async function list(params = {}, options = {}) {
|
|
2119
|
+
return {
|
|
2120
|
+
data: await transport.requestParsed(TransformTestApiList, "/api/transform-test", {
|
|
2121
|
+
...options,
|
|
2122
|
+
query: { "transform-id": params["transform-id"] }
|
|
2123
|
+
}),
|
|
2124
|
+
total: null
|
|
2125
|
+
};
|
|
2126
|
+
}
|
|
2127
|
+
/** Get one transform test by id. */
|
|
2128
|
+
async function get(id, options = {}) {
|
|
2129
|
+
return transport.requestParsed(TransformTest, `/api/transform-test/${id}`, { ...options });
|
|
2130
|
+
}
|
|
2131
|
+
/** Create a transform test — the inputs standing in for the transform's source tables, and the expectations checked against its output. */
|
|
2132
|
+
async function create(params, options = {}) {
|
|
2133
|
+
return transport.requestParsed(TransformTest, "/api/transform-test", {
|
|
2134
|
+
...options,
|
|
2135
|
+
method: "POST",
|
|
2136
|
+
body: params
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
/** Update a transform test by id, patching only the fields the body carries. */
|
|
2140
|
+
async function update(id, params, options = {}) {
|
|
2141
|
+
return transport.requestParsed(TransformTest, `/api/transform-test/${id}`, {
|
|
2142
|
+
...options,
|
|
2143
|
+
method: "PUT",
|
|
2144
|
+
body: params
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
/** Delete a transform test by id. */
|
|
2148
|
+
async function remove(id, options = {}) {
|
|
2149
|
+
await transport.requestRaw(`/api/transform-test/${id}`, {
|
|
2150
|
+
...options,
|
|
2151
|
+
method: "DELETE",
|
|
2152
|
+
expectContentType: "binary"
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
* Run a transform test against temp tables and report what each expectation found. The transform
|
|
2157
|
+
* itself never runs against real tables, and a failing expectation is a result rather than an
|
|
2158
|
+
* error.
|
|
2159
|
+
*/
|
|
2160
|
+
async function run(id, options = {}) {
|
|
2161
|
+
return transport.requestParsed(TransformTestRunResult, `/api/transform-test/${id}/run`, {
|
|
2162
|
+
...options,
|
|
2163
|
+
method: "POST"
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
return {
|
|
2167
|
+
list,
|
|
2168
|
+
get,
|
|
2169
|
+
create,
|
|
2170
|
+
update,
|
|
2171
|
+
delete: remove,
|
|
2172
|
+
run
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
//#endregion
|
|
2090
2176
|
//#region ../client/src/resources/upload.ts
|
|
2091
2177
|
const UPLOAD_TABLE_ID_HEADER = "metabase-table-id";
|
|
2092
2178
|
function uploadResource(transport) {
|
|
@@ -2161,6 +2247,7 @@ function createClient(config, options) {
|
|
|
2161
2247
|
return {
|
|
2162
2248
|
card: cardResource(transport),
|
|
2163
2249
|
collection: collectionResource(transport),
|
|
2250
|
+
contentTranslation: contentTranslationResource(transport),
|
|
2164
2251
|
dashboard: dashboardResource(transport),
|
|
2165
2252
|
database: databaseResource(transport),
|
|
2166
2253
|
dataset: datasetResource(transport),
|
|
@@ -2183,6 +2270,7 @@ function createClient(config, options) {
|
|
|
2183
2270
|
transform: transformResource(transport),
|
|
2184
2271
|
transformJob: transformJobResource(transport),
|
|
2185
2272
|
transformTag: transformTagResource(transport),
|
|
2273
|
+
transformTest: transformTestResource(transport),
|
|
2186
2274
|
upload: uploadResource(transport),
|
|
2187
2275
|
user: userResource(transport),
|
|
2188
2276
|
requestParsed: transport.requestParsed,
|
|
@@ -8,12 +8,12 @@ var collection_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "collection ref forms and the transforms namespace"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
items: () => import("./items-
|
|
14
|
-
tree: () => import("./tree-
|
|
15
|
-
create: () => import("./create-
|
|
16
|
-
archive: () => import("./archive-
|
|
11
|
+
list: () => import("./list-CGkgypYz.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-FJofgEPB.mjs").then((mod) => mod.default),
|
|
13
|
+
items: () => import("./items-FUop0zGR.mjs").then((mod) => mod.default),
|
|
14
|
+
tree: () => import("./tree-CtFtroe4.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-M8qXs24L.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-RzzXt2V0.mjs").then((mod) => mod.default)
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
-
import { r as HttpError } from "./network-error-
|
|
2
|
+
import { r as HttpError } from "./network-error-D6CiOEBw.mjs";
|
|
3
3
|
//#region src/commands/transform/collection-namespace.ts
|
|
4
4
|
const TRANSFORMS_NAMESPACE_HINT = "transforms can only be filed in a :transforms-namespace collection. Create one with `mb collection create --body '{\"name\":\"…\"}' --namespace transforms` and pass its id as collection_id, or omit collection_id to leave the transform uncollected.";
|
|
5
5
|
function enrichTransformCollectionError(error) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-DBM87IgC.mjs";
|
|
2
|
+
//#region src/commands/content-translation/index.ts
|
|
3
|
+
var content_translation_default = defineCommandGroup({
|
|
4
|
+
name: "content-translation",
|
|
5
|
+
description: "Download or replace the content translation dictionary",
|
|
6
|
+
subCommands: {
|
|
7
|
+
download: () => import("./download-Chr-YNTG.mjs").then((mod) => mod.default),
|
|
8
|
+
upload: () => import("./upload-BfGc-L4t.mjs").then((mod) => mod.default)
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { content_translation_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TimelineCreateInput, t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
6
6
|
import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as CardCreateInput, t as Card } from "./card-DZxRmver.mjs";
|
|
6
6
|
import { n as cardView } from "./card-zyUkr2nS.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformCreateInput, t as Transform } from "./transform-D3QX0jxA.mjs";
|
|
6
6
|
import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-DaGYSmpQ.mjs";
|
|
7
7
|
import { n as transformView } from "./transform-DoTyyXAu.mjs";
|
|
8
|
-
import { t as enrichTransformCollectionError } from "./collection-namespace-
|
|
8
|
+
import { t as enrichTransformCollectionError } from "./collection-namespace-CEoQ7G08.mjs";
|
|
9
9
|
//#region src/commands/transform/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as MeasureCreateInput, t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
6
6
|
import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-DaGYSmpQ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as TransformJobCreateInput, t as TransformJob } from "./transform-job-DRrK28IH.mjs";
|
|
6
6
|
import { t as transformJobView } from "./transform-job-50GZHhKH.mjs";
|